0290a0d02077858e97a0ddf8c8b741c193f06c3d
[gnulib.git] / ChangeLog
1 2011-04-10  Jim Meyering  <meyering@redhat.com>
2
3         test-chown.h: correct a cast
4         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5         when the destination is a stat.st_gid.
6
7 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8
9         getaddrinfo: Fix test for sa_len member.
10         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11         include <sys/types.h> before <sys/socket.h>.
12
13 2011-04-08  Eric Blake  <eblake@redhat.com>
14
15         fcntl-h: fix O_ACCMODE on cygwin
16         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18
19 2011-04-06  Eric Blake  <eblake@redhat.com>
20
21         binary-io: relicense under LGPLv2+
22         * modules/binary-io (License): Relax to LGPLv2+.
23         Requested for libvirt, and required by pipe2.
24
25 2011-04-05  Bruno Haible  <bruno@clisp.org>
26
27         pipe2: Relicense under LGPLv2+.
28         * modules/pipe2 (License): Change to LGPLv2+.
29         Requested by Eric Blake, for libvirt.
30
31 2011-04-05  Simon Josefsson  <simon@josefsson.org>
32
33         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
34         sc_space_tab check.
35
36 2011-04-01  Bruno Haible  <bruno@clisp.org>
37
38         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
39         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
40         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
42         Reported by Bruce Korb <bruce.korb@gmail.com>.
43
44 2011-04-01  Bruno Haible  <bruno@clisp.org>
45
46         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
47         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
48         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
49         * modules/wcpcpy (Depends-on): Add extensions.
50         * modules/wcpncpy (Depends-on): Likewise.
51         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
52         systems.
53         * doc/posix-functions/wcpncpy.texi: Likewise.
54         * doc/posix-functions/wcwidth.texi: Likewise.
55
56 2011-03-31  Eric Blake  <eblake@redhat.com>
57
58         nonblocking: fix mingw test failures
59         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
60         non-blocking flag on regular file.
61         (get_nonblocking_flag): Set errno on invalid fd.
62         * tests/test-nonblocking.c (main): Avoid test failure on
63         directories if fchdir is not active.
64         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
65
66 2011-03-31  Bruno Haible  <bruno@clisp.org>
67
68         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
69         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
70         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
71         Reported by Simon Josefsson <simon@josefsson.org>.
72
73 2011-03-31  Bruno Haible  <bruno@clisp.org>
74         and Eric Blake  <eblake@redhat.com>
75
76         nonblocking: new module
77         * modules/nonblocking: New module.
78         * modules/nonblocking-tests: Likewise.
79         * lib/nonblocking.h: New file.
80         * lib/nonblocking.c: Likewise.
81         * tests/test-nonblocking.c: New test.
82         * lib/ioctl.c (ioctl) [mingw]: Update comment.
83
84 2011-03-30  Bruno Haible  <bruno@clisp.org>
85
86         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
87         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
88         instead of 'printf' format for GCC >= 4.4.
89         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
90         (fprintf, printf, vfprintf, vprintf): Declare with
91         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
92         the system's vfprintf() function.
93         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
94
95 2011-03-30  Eric Blake  <eblake@redhat.com>
96
97         passfd: fix scoping bug
98         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
99         before sendmsg/recvmsg.
100
101         passfd: standardize coding conventions
102         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
103         can be learned at compile time.
104         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
105         ifdefs.
106         (sendfd, recvfd): Follow gnulib code conventions.
107
108         passfd: fix incorrect sendmsg arguments
109         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
110         incorrect msg_controllen value.
111         * modules/passfd-tests (Depends-on): Check for alarm.
112         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
113         Reported by Bastien ROUCARIES.
114
115 2011-03-30  Bruno Haible  <bruno@clisp.org>
116
117         c-strcasestr: Relicense under LGPLv2+.
118         * modules/c-strcasestr (License): Change to LGPLv2+.
119         Requested by Eric Blake, for libvirt.
120
121 2011-03-30  Simon Josefsson  <simon@josefsson.org>
122
123         * users.txt: Add libidn2.  Fix libtasn1 link.
124
125 2011-03-30  Jim Meyering  <meyering@redhat.com>
126
127         tests: readlink* ("",... fails with EINVAL on newer kernels
128         readlink and readlinkat have typically failed with ENOENT for
129         the invalid, empty file name,  "".  However, with the advent
130         of linux-2.6.39, they fail with EINVAL.
131         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
132         when operating on the empty file name.
133         * tests/test-readlink.h (test_readlink): Likewise.
134
135 2011-03-29  Bruno Haible  <bruno@clisp.org>
136
137         Relicense some modules under LGPLv2+, for libidn2.
138         * modules/array-mergesort (License): Change to LGPLv2+.
139         * modules/c-strcaseeq (License): Likewise.
140         * modules/striconveh (License): Likewise.
141         * modules/striconveha (License): Likewise.
142         * modules/uniconv/base (License): Likewise.
143         * modules/uniconv/u8-conv-from-enc (License): Likewise.
144         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
145         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
146         * modules/unictype/base (License): Likewise.
147         * modules/unictype/bidiclass-of (License): Likewise.
148         * modules/unictype/category-M (License): Likewise.
149         * modules/unictype/category-none (License): Likewise.
150         * modules/unictype/category-of (License): Likewise.
151         * modules/unictype/category-test (License): Likewise.
152         * modules/unictype/category-test-withtable (License): Likewise.
153         * modules/unictype/combining-class (License): Likewise.
154         * modules/unictype/joiningtype-of (License): Likewise.
155         * modules/unictype/scripts (License): Likewise.
156         * modules/uninorm/base (License): Likewise.
157         * modules/uninorm/canonical-decomposition (License): Likewise.
158         * modules/uninorm/composition (License): Likewise.
159         * modules/uninorm/decompose-internal (License): Likewise.
160         * modules/uninorm/decomposition-table (License): Likewise.
161         * modules/uninorm/nfc (License): Likewise.
162         * modules/uninorm/nfd (License): Likewise.
163         * modules/uninorm/u32-normalize (License): Likewise.
164         * modules/unistr/base (License): Likewise.
165         * modules/unistr/u32-cpy (License): Likewise.
166         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
167         * modules/unistr/u32-to-u8 (License): Likewise.
168         * modules/unistr/u32-uctomb (License): Likewise.
169         * modules/unistr/u8-check (License): Likewise.
170         * modules/unistr/u8-mblen (License): Likewise.
171         * modules/unistr/u8-mbtouc (License): Likewise.
172         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
173         * modules/unistr/u8-mbtoucr (License): Likewise.
174         * modules/unistr/u8-prev (License): Likewise.
175         * modules/unistr/u8-strlen (License): Likewise.
176         * modules/unistr/u8-to-u32 (License): Likewise.
177         * modules/unistr/u8-uctomb (License): Likewise.
178         * modules/unitypes (License): Likewise.
179         Requested by Simon Josefsson.
180
181 2011-03-29  Simon Josefsson  <simon@josefsson.org>
182
183         lib-symbol-visibility: Add a notice.
184         * modules/lib-symbol-visibility (Notice): New field.
185
186 2011-03-29  Bruno Haible  <bruno@clisp.org>
187
188         getaddrinfo: Doc fix.
189         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
190         section "fixed in Gnulib".
191
192 2011-03-28  Simon Josefsson  <simon@josefsson.org>
193
194         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
195         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
196
197 2011-03-26  Bruno Haible  <bruno@clisp.org>
198
199         unictype/property-byname: Reduce the number of load-time relocations.
200         * lib/unictype/pr_byname.c: Include <stdlib.h>.
201         (UC_PROPERTY_INDEX_*): New enumeration values.
202         (uc_property_byname): Convert an index from the lookup table to an
203         uc_property_t.
204         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
205         values.
206
207 2011-03-26  Bruno Haible  <bruno@clisp.org>
208
209         unictype/property-byname: Allow omitted word separators and aliases.
210         * lib/unictype/pr_byname.gperf: Add property names without word
211         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
212         for 'space'.
213
214 2011-03-26  Bruno Haible  <bruno@clisp.org>
215
216         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
217         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
218         also hyphens to space.
219         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
220         without spaces.
221         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
222
223 2011-03-26  Bruno Haible  <bruno@clisp.org>
224
225         unictype/joiningtype-byname: Recognize long names as well.
226         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
227         a long name.
228         * lib/unictype/joiningtype_byname.c: Include <string.h>,
229         unictype/joiningtype_byname.h.
230         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
231         * lib/unictype/joiningtype_byname.gperf: New file.
232         * modules/unictype/joiningtype-byname (Files): Add
233         lib/unictype/joiningtype_byname.gperf.
234         (Depends-on): Add gperf.
235         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
236         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
237         long names.
238
239         Tests for module 'unictype/joiningtype-longname'.
240         * modules/unictype/joiningtype-longname-tests: New file.
241         * tests/unictype/test-joiningtype_longname.c: New file.
242
243         New module 'unictype/joiningtype-longname'.
244         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
245         * lib/unictype/joiningtype_longname.c: New file.
246         * modules/unictype/joiningtype-longname: New file.
247         * modules/unictype/joiningtype-all (Depends-on): Add
248         unictype/joiningtype-longname.
249
250 2011-03-26  Bruno Haible  <bruno@clisp.org>
251
252         unictype/bidiclass-byname: Recognize long names as well.
253         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
254         name.
255         * lib/unictype/bidi_byname.c: Include <string.h>,
256         unictype/bidi_byname.h.
257         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
258         * lib/unictype/bidi_byname.gperf: New file.
259         * modules/unictype/bidiclass-byname (Files): Add
260         lib/unictype/bidi_byname.gperf.
261         (Depends-on): Add gperf.
262         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
263         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
264         long names.
265
266         Tests for module 'unictype/bidiclass-longname'.
267         * modules/unictype/bidiclass-longname-tests: New file.
268         * tests/unictype/test-bidi_longname.c: New file.
269
270         New module 'unictype/bidiclass-longname'.
271         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
272         * lib/unictype/bidi_longname.c: New file.
273         * modules/unictype/bidiclass-longname: New file.
274         * modules/unictype/bidiclass-all (Depends-on): Add
275         unictype/bidiclass-longname.
276
277 2011-03-26  Bruno Haible  <bruno@clisp.org>
278
279         unictype/bidi*: Rename modules.
280         * modules/unictype/bidiclass-all: Renamed from
281         modules/unictype/bidicategory-all.
282         * modules/unictype/bidiclass-name: Renamed from
283         modules/unictype/bidiclass-name.
284         (Description): Update.
285         * modules/unictype/bidiclass-name-tests: Renamed from
286         modules/unictype/bidicategory-name-tests.
287         * modules/unictype/bidiclass-byname: Renamed from
288         modules/unictype/bidicategory-byname.
289         (Description): Update.
290         * modules/unictype/bidiclass-byname-tests: Renamed from
291         modules/unictype/bidicategory-byname-tests.
292         * modules/unictype/bidiclass-of: Renamed from
293         modules/unictype/bidicategory-of.
294         (Description): Update.
295         * modules/unictype/bidiclass-of-tests: Renamed from
296         modules/unictype/bidicategory-of-tests.
297         * modules/unictype/bidiclass-test: Renamed from
298         modules/unictype/bidicategory-test.
299         (Description): Update.
300         * modules/unictype/bidiclass-test-tests: Renamed from
301         modules/unictype/bidicategory-test-tests.
302         * modules/unictype/bidicategory-all: New file, a simple redirection.
303         * modules/unictype/bidicategory-name: Likewise.
304         * modules/unictype/bidicategory-byname: Likewise.
305         * modules/unictype/bidicategory-of: Likewise.
306         * modules/unictype/bidicategory-test: Likewise.
307         * modules/unictype/property-bidi-* (Dependencies): Update.
308         * lib/unictype/bidi_*.c: Update comment.
309
310 2011-03-26  Bruno Haible  <bruno@clisp.org>
311
312         unictype/bidi*: Rename functions, part 2.
313         * modules/unictype/bidicategory-name (configure.ac): Update required
314         libunistring version.
315         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
316
317 2011-03-25  Bruno Haible  <bruno@clisp.org>
318
319         New module 'unictype/combining-class-all'.
320         * modules/unictype/combining-class-all: New file.
321
322         Tests for module 'unictype/combining-class-byname'.
323         * modules/unictype/combining-class-byname-tests: New file.
324         * tests/unictype/test-combiningclass_byname.c: New file.
325
326         New module 'unictype/combining-class-byname'.
327         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
328         * lib/unictype/combiningclass_byname.c: New file.
329         * lib/unictype/combiningclass_byname.gperf: New file.
330         * modules/unictype/combining-class-byname: New file.
331
332         Tests for module 'unictype/combining-class-longname'.
333         * modules/unictype/combining-class-longname-tests: New file.
334         * tests/unictype/test-combiningclass_longname.c: New file.
335
336         New module 'unictype/combining-class-longname'.
337         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
338         * lib/unictype/combiningclass_longname.c: New file.
339         * modules/unictype/combining-class-longname: New file.
340
341         Tests for module 'unictype/combining-class-name'.
342         * modules/unictype/combining-class-name-tests: New file.
343         * tests/unictype/test-combiningclass_name.c: New file.
344
345         New module 'unictype/combining-class-name'.
346         * lib/unictype.in.h (uc_combining_class_name): New declaration.
347         * lib/unictype/combiningclass_name.c: New file.
348         * modules/unictype/combining-class-name: New file.
349
350 2011-03-25  Bruno Haible  <bruno@clisp.org>
351
352         unictype/combining-class: Rename source files.
353         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
354         of unictype/combining.h.
355         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
356         Update.
357         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
358         * modules/unictype/combining-class (Description): Fix.
359         (Files, Makefile.am): Update.
360         * tests/unictype/test-combiningclass.c: Renamed from
361         tests/unictype/test-combining.c.
362         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
363
364 2011-03-25  Bruno Haible  <bruno@clisp.org>
365
366         unictype: Update list of canonical combining classes.
367         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
368
369 2011-03-25  Bruno Haible  <bruno@clisp.org>
370
371         unictype/category-byname: Recognize long names as well.
372         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
373         a long name.
374         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
375         unictype/categ_byname.h.
376         (UC_CATEGORY_INDEX_*): New enumeration values.
377         (uc_general_category_byname): Use uc_general_category_lookup and
378         convert from index to value.
379         * lib/unictype/categ_byname.gperf: New file.
380         * modules/unictype/category-byname (Files): Add
381         lib/unictype/categ_byname.gperf.
382         (Depends-on): Add gperf.
383         (Makefile.am): Add rule for generating unictype/categ_byname.h.
384         * tests/unictype/test-categ_byname.c (main): Test the recognition of
385         long names.
386
387         Tests for module 'unictype/category-longname'.
388         * modules/unictype/category-longname-tests: New file.
389         * tests/unictype/test-categ_longname.c: New file.
390
391         New module 'unictype/category-longname'.
392         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
393         * lib/unictype/categ_longname.c: New file.
394         * modules/unictype/category-longname: New file.
395         * modules/unictype/category-all (Depends-on): Add it.
396
397 2011-03-25  Bruno Haible  <bruno@clisp.org>
398
399         Tests for module 'unictype/category-LC'.
400         * modules/unictype/category-LC-tests: New file.
401         * tests/unictype/test-categ_LC.c: New file, automatically generated.
402
403         New module 'unictype/category-LC'.
404         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
405         (UC_CATEGORY_LC): New declaration.
406         (UC_CASED_LETTER): New macro.
407         * lib/gen-uni-tables.c (is_category_LC): New function.
408         (output_categories): Also handle category LC.
409         (UC_CATEGORY_MASK_LC): New enumeration value.
410         (general_category_byname): Also handle category LC.
411         * lib/unictype/categ_LC.c: New file.
412         * lib/unictype/categ_LC.h: New file, automatically generated.
413         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
414         category LC.
415         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
416         * modules/unictype/category-LC: New file.
417         * modules/unictype/category-byname (Depends-on): Add
418         unictype/category-LC.
419         * modules/unictype/category-all (Depends-on): Likewise.
420
421 2011-03-25  Eric Blake  <eblake@redhat.com>
422
423         xmalloc: revert yesterday's regression
424         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
425         realloc's underlying behavior (allowing allocation of zero-size
426         objects, especially if malloc-gnu is also in use).
427
428 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
429
430         maint.mk: add missing version to VC-tag
431         * top/maint.mk: git tag was missing actual tag name; add it.
432
433         valgrind: do leak checking, and exit with code 1 on error (not 0)
434         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
435         to VALGRIND.
436
437 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
438
439         posix-modules: say what it does.
440         * posix-modules: Add a line to the --help output saying what it does.
441
442 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
443
444         xmalloc: Do not leak if underlying realloc is C99 compatible.
445         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
446         This avoids a leak on C99-based systems.  See
447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
448
449 2011-03-24  Eric Blake  <eblake@redhat.com>
450
451         realloc: document portability problem
452         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
453         passing 0 size to realloc.
454
455 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
456
457         doc: update users.txt
458         * users.txt: Add cvsps, tmpwatch
459
460 2011-03-23  Matt Rice  <ratmice@gmail.com>
461
462         doc: update users.txt
463         * users.txt: Add gdb.
464
465 2011-03-23  Jim Meyering  <meyering@redhat.com>
466
467         doc: update users.txt
468         Looking through matches up to the following URL (there are still
469         several more pages), I found several projects that use gnulib:
470         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
471         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
472         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
473
474 2011-03-22  Bruno Haible  <bruno@clisp.org>
475
476         unictype/bidi*: Rename functions.
477         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
478         uc_bidi_class, uc_is_bidi_class): New declarations.
479         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
480         uc_bidi_category_byname.
481         (uc_bidi_category_byname): New function.
482         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
483         u_bidi_category_name.
484         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
485         (uc_bidi_category_name): New function.
486         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
487         uc_bidi_category.
488         (uc_bidi_category): New function.
489         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
490         uc_is_bidi_category. Invoke uc_bidi_class.
491         (uc_is_bidi_category): New function.
492         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
493         instead of uc_bidi_category_byname.
494         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
495         instead of uc_bidi_category_name.
496         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
497         uc_bidi_category.
498         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
499         instead of uc_is_bidi_category.
500
501 2011-03-21  Bruno Haible  <bruno@clisp.org>
502
503         New module 'unictype/joininggroup-all'.
504         * modules/unictype/joininggroup-all: New file.
505
506         Tests for module 'unictype/joininggroup-of'.
507         * modules/unictype/joininggroup-of-tests: New file.
508         * tests/unictype/test-joininggroup_of.c: New file.
509         * tests/unictype/test-joininggroup_of.h: New file, automatically
510         generated by gen-uni-tables.
511
512         New module 'unictype/joininggroup-of'.
513         * modules/unictype/joininggroup-of: New file.
514         * lib/unictype/joininggroup_of.c: New file.
515         * lib/unictype/joininggroup_of.h: New file, automatically generated by
516         gen-uni-tables.
517
518         Tests for module 'unictype/joininggroup-byname'.
519         * modules/unictype/joininggroup-byname-tests: New file.
520         * tests/unictype/test-joininggroup_byname.c: New file.
521
522         New module 'unictype/joininggroup-byname'.
523         * modules/unictype/joininggroup-byname: New file.
524         * lib/unictype/joininggroup_byname.c: New file.
525         * lib/unictype/joininggroup_byname.gperf: New file.
526
527         Tests for module 'unictype/joininggroup-name'.
528         * modules/unictype/joininggroup-name-tests: New file.
529         * tests/unictype/test-joininggroup_name.c: New file.
530
531         New module 'unictype/joininggroup-name'.
532         * modules/unictype/joininggroup-name: New file.
533         * lib/unictype/joininggroup_name.c: New file.
534         * lib/unictype/joininggroup_name.h: New file.
535
536         New module 'unictype/joiningtype-all'.
537         * modules/unictype/joiningtype-all: New file.
538
539         Tests for module 'unictype/joiningtype-of'.
540         * modules/unictype/joiningtype-of-tests: New file.
541         * tests/unictype/test-joiningtype_of.c: New file.
542         * tests/unictype/test-joiningtype_of.h: New file, automatically
543         generated by gen-uni-tables.
544
545         New module 'unictype/joiningtype-of'.
546         * modules/unictype/joiningtype-of: New file.
547         * lib/unictype/joiningtype_of.c: New file.
548         * lib/unictype/joiningtype_of.h: New file, automatically generated by
549         gen-uni-tables.
550
551         Tests for module 'unictype/joiningtype-byname'.
552         * modules/unictype/joiningtype-byname-tests: New file.
553         * tests/unictype/test-joiningtype_byname.c: New file.
554
555         New module 'unictype/joiningtype-byname'.
556         * modules/unictype/joiningtype-byname: New file.
557         * lib/unictype/joiningtype_byname.c: New file.
558
559         Tests for module 'unictype/joiningtype-name'.
560         * modules/unictype/joiningtype-name-tests: New file.
561         * tests/unictype/test-joiningtype_name.c: New file.
562
563         New module 'unictype/joiningtype-name'.
564         * modules/unictype/joiningtype-name: New file.
565         * lib/unictype/joiningtype_name.c: New file.
566
567         unictype: Add support for Arabic shaping properties.
568         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
569         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
570         declarations.
571         (UC_JOINING_GROUP_*): New enumeration values.
572         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
573         declarations.
574         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
575         (unicode_joining_type): New variable.
576         (UC_JOINING_GROUP_*): New enumeration values.
577         (unicode_joining_group): New variable.
578         (fill_arabicshaping, joining_type_as_c_identifier,
579         output_joining_type_test, output_joining_type,
580         joining_group_as_c_identifier, output_joining_group_test,
581         output_joining_group): New functions.
582         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
583         fill_arabicshaping and output_joining_type_test, output_joining_type,
584         output_joining_group_test, output_joining_group.
585         Reported by Simon Josefsson.
586
587 2011-03-21  Jim Meyering  <meyering@redhat.com>
588
589         strftime: fix a bug in yesterday's change
590         * lib/strftime.c (add): Accommodate width's initial value of -1.
591         Otherwise, nstrftime would copy uninitialized data into
592         the result buffer.
593
594 2011-03-21  Jim Meyering  <meyering@redhat.com>
595
596         tests: add strftime-tests module
597         * tests/test-strftime.c: New file.
598         * modules/strftime-tests: New module.
599
600 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
601
602         strftime: don't assume a byte count fits in 'int'
603         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
604         found this problem by static analysis, using gcc -Wstrict-overflow
605         (GCC 4.5.2, x86-64).  This reported an optimization that depended
606         on an integer overflow having undefined behavior, but it turns out
607         that the argument is a size, which might not fit in 'int' anyway,
608
609 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
610
611         stdio: don't require ignore_value around fwrite
612
613         This patch works around libc bug 11959
614         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
615         Without this patch, applications must often write
616         ignore_value (fwrite (...)) even though the ignore_value is
617         not helpful here.  It's common to write many objects, using
618         fwrite/printf/etc., and then use ferror to detect output error.
619
620         I considered making this patch optional, but decided against it,
621         because libc is obviously being inconsistent here: there is no
622         reason libc should insist that user code must inspect fwrite
623         return's value without also insisting that it inspect printf's,
624         putchar's, etc.  If user code wants to have a strict style where
625         all these functions' values are checked (so that ferror need not
626         be checked), we could add support for that style in a new gnulib
627         module, but in the meantime it's better to be consistent and to
628         support common usage.
629
630         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
631         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
632         that we are compiling in checking mode, and if not C++, and
633         if not already wrapping fwrite for some other reason.
634         (fwrite): #define to rpl_fwrite if the latter is defined.
635
636 2011-03-20  Bruno Haible  <bruno@clisp.org>
637
638         verror: Fix compilation error introduced on 2011-02-13.
639         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
640         instead of __attribute__.
641         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
642
643 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
644             Bruno Haible  <bruno@clisp.org>
645
646         socklen: do not depend on sys_socket
647         While trying to modify Emacs to use gnulib's socklen module,
648         I discovered a circular dependency: socklen depends on sys_socket
649         and vice versa.  Emacs can use socklen, but it does not need
650         sys_socket because it has its own substitute for sys/socket.h.
651         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
652         gl_TYPE_SOCKLEN_T.
653         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
654         gl_PREREQ_SYS_H_SOCKET.
655         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
656         gl_PREREQ_SYS_H_SOCKET.
657         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
658         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
659         * modules/socklen (Depends-on): Do not depend on sys_socket.
660         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
661
662 2011-03-20  Jim Meyering  <meyering@redhat.com>
663
664         maint.mk: sort file names *after* new transformation
665         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
666         prefix would have led to an unwarranted failure in GNU parted.
667         Sort after that transformation.
668
669 2011-03-19  Jim Meyering  <meyering@redhat.com>
670
671         maint.mk: fix po-file syntax-check rule
672         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
673         Patch by Bruno Haible.
674
675 2011-03-19  Bruno Haible  <bruno@clisp.org>
676
677         socklen: Update comment.
678         * m4/socklen.m4: Update comment about platforms.
679
680 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
681             Bruno Haible  <bruno@clisp.org>
682
683         inet_ntop, inet_pton: Simplify.
684         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
685         documented to provide socklen_t and we already depend on sys_socket.
686         * modules/inet_pton (Depends-on): Likewise.
687         * lib/arpa_inet.in.h: Adjust comment.
688
689 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
690             Bruno Haible  <bruno@clisp.org>
691
692         netdb: Simplify.
693         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
694         documented to provide socklen_t and we already depend on sys_socket.
695         * lib/netdb.in.h: Adjust comment.
696
697 2011-03-19  Bruno Haible  <bruno@clisp.org>
698
699         sys_socket, netdb: Document problem with socklen_t.
700         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
701         platforms.
702         * doc/posix-headers/netdb.texi: Likewise.
703
704 2011-03-18  Eric Blake  <eblake@redhat.com>
705
706         maint.mk: let po check work in VPATH build
707         * top/maint.mk (po_file): Allow cfg.mk override.
708         (sc_po_check): Allow VPATH use.
709         Reported by Jiri Denemark.
710
711 2011-03-16  Jim Meyering  <meyering@redhat.com>
712
713         maint.mk: allow fine-grained syntax-check exclusion via Make variables
714         Before, you would have had to create one .x-sc_ file per rule in order
715         to exempt offending files.  Now, you may instead use a Make variable --
716         usually defined in cfg.mk -- whose name identifies the affected rule.
717         * top/maint.mk (_sc_excl): Define.
718         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
719         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
720
721 2011-03-13  Bruno Haible  <bruno@clisp.org>
722
723         ignore-value tests: Avoid warnings.
724         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
725         empty for gcc < 3.4.
726
727 2011-03-13  Bruno Haible  <bruno@clisp.org>
728
729         passfd: Fix link error on Solaris.
730         * modules/passfd (Description): Correct.
731         (Depends-on): Add socketlib.
732         (Link): New section.
733         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
734
735 2011-03-13  Bruno Haible  <bruno@clisp.org>
736
737         passfd: Fix link error on AIX 5.2.
738         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
739
740 2011-03-13  Bruno Haible  <bruno@clisp.org>
741
742         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
743         * lib/sys_socket.in.h: Include <stddef.h>.
744         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
745         CMSG_FIRSTHDR. Remove unused variable.
746
747 2011-03-13  Bruno Haible  <bruno@clisp.org>
748
749         passfd: Fix compilation error on OpenBSD.
750         * lib/passfd.c: Include <sys/uio.h>.
751
752 2011-03-13  Bruno Haible  <bruno@clisp.org>
753
754         passfd test: Fix warnings.
755         * tests/test-passfd.c: Include <sys/wait.h>.
756         (main): Fix typo.
757
758 2011-03-13  Bruno Haible  <bruno@clisp.org>
759
760         passfd module, part 4, tweaks.
761         * tests/test-passfd.c: Reorder includes.
762         (main): Fix perror and printf calls.
763
764 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
765
766         passfd module, part 4.
767         * modules/passfd-tests: New file.
768         * tests/test-passfd.c: New file.
769
770 2011-03-13  Jim Meyering  <meyering@redhat.com>
771
772         Makefile: rely on GNU make; derive syntax-check rule names
773         Rather than requiring that each sc_ rule be listed as a dependent
774         of "check", use features of GNU make to derive the list.
775         * Makefile (syntax-check-rules): Define.
776         (check): Depend on the new variable, not the hard-coded list.
777
778 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
779             Bruno Haible  <bruno@clisp.org>
780
781         passfd module, part 3.
782         * lib/passfd.h (recvfd): Add a flags argument.
783         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
784         (recvfd): Add a flags argument.
785         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
786         exists.
787         * modules/passfd (Depends-on): Add cloexec.
788         Suggested by Eric Blake.
789
790 2011-03-13  Bruno Haible  <bruno@clisp.org>
791
792         passfd module, part 2, tweaks.
793         * modules/passfd (Files): Reorder.
794         (Depends-on): Remove errno.
795         (Include): Remove <sys/socket.h>, <sys/un.h>.
796         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
797         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
798         specification header. Include <sys/socket.h> always. Don't include
799         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
800         (sendfd): Clarify that it sets errno when it fails.
801         (recvfd): Fix specification.
802
803 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
804
805         passfd module, part 2.
806         * modules/passfd: New file.
807         * lib/passfd.h: New file.
808         * lib/passfd.c: New file.
809
810 2011-03-12  Bruno Haible  <bruno@clisp.org>
811
812         wcswidth, mbswidth: Avoid integer overflow.
813         * lib/wcswidth.c: Include <limits.h>.
814         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
815         * lib/mbswidth.c: Include <limits.h>.
816         (mbsnwidth): Avoid 'int' overflow.
817         Reported by Jim Meyering.
818
819 2011-03-12  Bruno Haible  <bruno@clisp.org>
820
821         futimens, utimensat: Avoid endless recursion on Solaris 10.
822         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
823         Solaris.
824         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
825         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
826
827 2011-03-11  Jim Meyering  <meyering@redhat.com>
828
829         maint.mk: relax a regexp to accommodate other formatting styles
830         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
831         between "ngettext" and the following "(".
832
833 2011-03-11  Pádraig Brady <P@draigBrady.com>
834
835         maint.mk: suppress a false positive warning
836         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
837         diagnostics are marked with ngettext.
838
839 2011-03-10  Eric Blake  <eblake@redhat.com>
840
841         wchar: add explicit dependencies, for Tru64
842         * modules/mbmemcasecoll (Depends-on): Add wchar.
843         * modules/mbtowc (Depends-on): Likewise.
844         * modules/vasnprintf (Depends-on): Likewise.
845         * modules/unistdio/u-printf-args (Depends-on): Likewise.
846         * modules/wctomb (Depends-on): Likewise.
847         Reported by Peter O'Gorman.
848
849 2011-03-08  Bruno Haible  <bruno@clisp.org>
850
851         passfd module, part 1, tweaks.
852         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
853         Improve indentation. Improve AC_MSG_CHECKING messages.
854         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
855         gl_SOCKET_FAMILIES.
856
857 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
858
859         passfd module, part 1.
860         * m4/afunix.m4: New file.
861         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
862         sockets.
863
864 2011-03-08  Bruno Haible  <bruno@clisp.org>
865
866         regex-quote: New API.
867         * lib/regex-quote.h: Include <stdbool.h>.
868         (struct regex_quote_spec): New type.
869         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
870         New declarations.
871         (regex_quote_length, regex_quote_copy, regex_quote): Take a
872         'const struct regex_quote_spec *' argument.
873         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
874         (pcre_special): New constant.
875         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
876         New functions.
877         (regex_quote_length, regex_quote_copy, regex_quote): Take a
878         'const struct regex_quote_spec *' argument.
879         * modules/regex-quote (Depends-on): Add stdbool.
880         * tests/test-regex-quote.c (check): Update for new API. Add test for
881         anchored results.
882         * NEWS: Mention the API change.
883         Reported by Reuben Thomas and Eric Blake.
884
885 2011-03-06  Bruno Haible  <bruno@clisp.org>
886
887         regex-quote: Fix creation of POSIX extended regular expressions.
888         * lib/regex-quote.c (ere_special): Add grouping and alternation
889         operators.
890
891 2011-03-05  Bruno Haible  <bruno@clisp.org>
892
893         doc: Improve doc regarding autopoint vs. gnulib.
894         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
895         disable autopoint while running autoreconf.
896         Suggested by Ralf Wildenhues.
897
898 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
899
900         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
901         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
902
903 2011-03-03  Bruce Korb  <bkorb@gnu.org>
904
905         parse-duration: remove xalloc.h dependency
906         * lib/parse-duration.c (parse_period): handle NULL return from
907         strdup instead of calling xstrdup().
908         * modules/parse-duration: remove "xalloc" dependency
909
910 2011-03-03  Matthew Booth  <mbooth@redhat.com>
911
912         bootstrap: honor m4_base when running aclocal
913         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
914
915 2011-03-02  Jim Meyering  <meyering@redhat.com>
916
917         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
918         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
919         on request from Matt Booth.
920
921 2011-03-01  Eric Blake  <eblake@redhat.com>
922
923         test-link: work on Hurd
924         * tests/test-link.h (test_link): Hurd rejects linking directories
925         with EISDIR instead of the POSIX-mandated EPERM.
926
927 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
928
929         stdio: simplify by moving files to printf-posix, sigpipe
930         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
931         since this symbol is needed only if printf is replaced.
932         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
933         Require gl_ASM_SYMBOL_PREFIX.
934         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
935         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
936         (Depends-on): Add 'raise'.
937         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
938         * modules/stdio (Files): Remove lib/stdio-write.c,
939         m4/asm-underscore.m4.
940         (Depends-on): Remove 'raise'.
941
942         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
943         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
944         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
945         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
946
947 2011-02-28  Bruno Haible  <bruno@clisp.org>
948
949         localcharset: Assume ANSI C behaviour of free().
950         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
951         calling free().
952         Suggested by Simon Josefsson <simon@josefsson.org>.
953
954 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
955             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
956             Bruno Haible  <bruno@clisp.org>  (tiny change)
957
958         On Cygwin, use /proc file system instead of win32 API.
959         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
960         Win32 file names.
961         (DllMain): Simplify by removing Cygwin specific code.
962         (find_shared_library_fullname): Use Linux specific implementation also
963         for Cygwin.
964         (get_shared_library_fullname): Update accordingly.
965         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
966         Win32 file names.
967         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
968         Cygwin specific code.
969
970 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
971             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
972
973         Fix OpenMP flag detection for various Fortran compilers.
974         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
975         OpenMP-conditional compilation construct, to force compile
976         failure with missing OpenMP flag.
977         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
978
979 2011-02-25  Eric Blake  <eblake@redhat.com>
980
981         strstr: expand test coverage
982         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
983         compilation.
984         * tests/test-memmem.c (main): Duplicate tests.
985         * tests/test-strcasestr.c (main): Likewise.
986         * tests/test-c-strcasestr.c (main): Likewise.
987
988 2011-02-25  Jim Meyering  <meyering@redhat.com>
989
990         maint.mk: detect missing-NL-at-EOF, too
991         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
992         it also detects when a file lacks a newline at EOF.
993         (require_exactly_one_NL_at_EOF_): Renamed from
994         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
995         since people may well have .x-sc_... file names tied to the
996         existing name.  Suggested by Eric Blake.
997
998 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         dirname: move m4/dos.m4 functionality into lib/dosname.h
1001
1002         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1003         extracts symbols from it, puts them into config.h; but it's much
1004         easier to use the symbols directly.  filename.h already does this,
1005         but it disagrees with dos.m4 in some respects.  This patch
1006         introduces a different include file dosname.h that packages up
1007         dos.m4, and then later we can work on merging filename.h and
1008         dosname.h.  Applications that need only the easy-to-configure
1009         symbols should consider including dosname.h rather than dirname.h.
1010         * NEWS: Mention incompatible changes.
1011         * m4/dos.m4: Remove.
1012         * lib/dosname.h, modules/dosname: New files.
1013         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1014         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1015         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1016         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1017         Include dosname.h, not dirname.h.
1018         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1019         Include dosname.h, for definitions of symbols like ISSLASH
1020         that used to be in config.h.
1021         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1022         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1023         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1024         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1025         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1026         * modules/rmdir (Files): Likewise.
1027         * modules/stat (Files): Likewise.
1028         * modules/unlink (Files): Likewise.
1029         * modules/dirname-lgpl (Depends-on): Add dosname.
1030         * modules/lstat (Depends-on): Likewise.
1031         * modules/openat (Depends-on): Likewise.
1032         * modules/rmdir (Depends-on): Likewise.
1033         * modules/savewd (Depends-on): Likewise.
1034         * modules/stat (Depends-on): Likewise.
1035         * modules/unlink (Depends-on): Likewise.
1036         * modules/openat (Depends-on): Remove dirname-lgpl.
1037         * modules/savewd (Depends-on): Likewise.
1038         * tests/test-dirname.c: Do not use removed symbols like
1039         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1040         the remaining symbols, e.g., ISSLASH ('\\').
1041
1042 2011-02-25  Eric Blake  <eblake@redhat.com>
1043
1044         strstr: revert patches that introduced bug and pessimization
1045         * lib/str-two-way.h: Add another reference.
1046         (two_way_short_needle, two_way_long_needle): Revert changes from
1047         2011-02-24; they pessimize search speed.
1048         (critical_factorization): Partially revert changes from
1049         2010-06-22; they violate the requirement that the left half of the
1050         needle be smaller than the period of the needle.
1051
1052 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1053
1054         filenamecat: remove unnecessary dependency on dirname-lgpl
1055         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1056         is no direct dependency, just an indirect one via filenamecat-lgpl.
1057
1058         remove: remove unnecessary use of m4/dos.m4
1059         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1060         * modules/remove (FILES): Remove m4/dos.m4.
1061
1062         * lib/openat-proc.c: Don't include dirname.h; not needed.
1063
1064         backupfile: remove unnecessary use of m4/dos.m4
1065         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1066         of its symbols are used by the backupfile code.  backupfile.c does
1067         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1068         for the rare case of programs that want all their backup file
1069         names to live within 8+3 limits, and dos.m4 doesn't address that.
1070         * modules/backupfile (Files): Remove m4/dos.m4.
1071
1072 2011-02-24  Jim Meyering  <meyering@redhat.com>
1073
1074         strstr: fix a bug whereby strstr would mistakenly return NULL
1075         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1076         in period calculation.
1077         (two_way_long_needle): Likewise.
1078         The original problem was reported by Mike Stump in
1079         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1080         Ralf Wildenhues provided the short needle and haystack.
1081         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1082         Add a more involved test to trigger the bug in two_way_long_needle.
1083
1084 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1085
1086         gnulib-tool: remove use of bold display in help screen
1087         * gnulib-tool (func_usage): Do not use bold display anymore in the
1088         help screen.  That was just meant to be a temporary emphasis for a
1089         backward-incompatible change.
1090
1091 2011-02-23  Bruno Haible  <bruno@clisp.org>
1092
1093         Fix misindentation of preprocessor directives.
1094         * lib/argp-namefrob.h: Reindent preprocessor directives.
1095         * lib/getopt_int.h (struct _getopt_data): Likewise.
1096         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1097         * lib/vasnprintf.c (decode_long_double): Likewise.
1098         * tests/test-argmatch.c: Insert blank lines, for clarity.
1099         * tests/test-exclude.c: Likewise.
1100
1101 2011-02-22  Bruno Haible  <bruno@clisp.org>
1102
1103         ioctl: Fix for MacOS X in 64-bit mode.
1104         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1105         value.
1106         Suggested by Eric Blake.
1107         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1108
1109 2011-02-22  Jim Meyering  <meyering@redhat.com>
1110
1111         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1112         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1113         in lib/.
1114
1115 2011-02-22  Eric Blake  <eblake@redhat.com>
1116
1117         maint: avoid any CDPATH issue
1118         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1119
1120         maint: adjust cpp indentation for my modules, as well
1121         * Makefile (sc_cpp_indent_check): Add my name.
1122         * lib/fbufmode.c: Filter through cppi.
1123         * lib/fpurge.c: Likewise.
1124         * lib/freadable.c: Likewise.
1125         * lib/freading.c: Likewise.
1126         * lib/fwritable.c: Likewise.
1127         * lib/fwriting.c: Likewise.
1128         * lib/sigaction.c: Likewise.
1129
1130 2011-02-22  Jim Meyering  <meyering@redhat.com>
1131
1132         maint: adjust cpp indentation to reflect nesting depth
1133         I.e., in a block of code that begins with an unnested "#if",
1134         put one space between the "#" in column 1 and following token.
1135         For example,
1136         -#include <sys/vfs.h>
1137         +# include <sys/vfs.h>
1138         Do this only in .c files that are part of a module I maintain.
1139         * lib/linkat.c: Filter through cppi.
1140         * lib/nanosleep.c: Likewise.
1141         * lib/openat.c: Likewise.
1142         * lib/openat-die.c: Likewise.
1143         * lib/dup3.c: Likewise.
1144         * lib/fchownat.c: Likewise.
1145         * lib/flock.c: Likewise.
1146         * lib/fsync.c: Likewise.
1147         * lib/fts.c: Likewise.
1148         * lib/getpass.c: Likewise.
1149         * lib/gettimeofday.c: Likewise.
1150         * lib/userspec.c: Likewise.
1151         * Makefile (sc_cpp_indent_check): New rule, to check this.
1152
1153 2011-02-22  Bruno Haible  <bruno@clisp.org>
1154
1155         New module 'wctomb'.
1156         * lib/stdlib.in.h (wctomb): New declaration.
1157         * lib/wctomb.c: New file.
1158         * lib/wctomb-impl.h: New file.
1159         * m4/wctomb.m4: New file.
1160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1161         REPLACE_WCTOMB.
1162         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1163         REPLACE_WCTOMB.
1164         * modules/wctomb: New file.
1165         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1166         * doc/posix-functions/wctomb.texi: Mention the new module.
1167         * modules/wctob (Depends-on): Add wctomb.
1168
1169 2011-02-22  Bruno Haible  <bruno@clisp.org>
1170
1171         New module 'mbtowc'.
1172         * lib/stdlib.in.h (mbtowc): New declaration.
1173         * lib/mbtowc.c: New file.
1174         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1175         * m4/mbtowc.m4: New file.
1176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
1177         REPLACE_MBTOWC.
1178         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
1179         REPLACE_MBTOWC.
1180         * modules/mbtowc: New file.
1181         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
1182         * doc/posix-functions/mbtowc.texi: Mention the new module.
1183         * modules/btowc (Depends-on): Add mbtowc.
1184
1185 2011-02-22  Bruno Haible  <bruno@clisp.org>
1186
1187         wcrtomb: Add more tests for native Windows platforms.
1188         * tests/test-wcrtomb-w32-1.sh: New file.
1189         * tests/test-wcrtomb-w32-2.sh: New file.
1190         * tests/test-wcrtomb-w32-3.sh: New file.
1191         * tests/test-wcrtomb-w32-4.sh: New file.
1192         * tests/test-wcrtomb-w32-5.sh: New file.
1193         * tests/test-wcrtomb-w32.c: New file.
1194         * modules/wcrtomb-tests (Files): Add them.
1195         (Makefile.am): Arrange to run these tests.
1196         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
1197         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
1198
1199 2011-02-20  Bruno Haible  <bruno@clisp.org>
1200
1201         wcrtomb: Enhance test.
1202         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
1203
1204 2011-02-20  Bruno Haible  <bruno@clisp.org>
1205
1206         mbrtowc: Tiny optimization.
1207         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
1208
1209 2011-02-20  Jim Meyering  <meyering@redhat.com>
1210
1211         test-exclude.c: remove unmatched #endif
1212         * tests/test-exclude.c: Remove stray #endif, left over from
1213         the change of a week ago.
1214
1215 2011-02-19  Jim Meyering  <meyering@redhat.com>
1216
1217         git-version-gen: skip "-dirty" check when appropriate
1218         * build-aux/git-version-gen: Don't run any git commands when the
1219         version string comes from .tarball-version.  Prior to this, we
1220         would run git update-index --refresh even from a just-unpacked
1221         tarball directory, and that could affect a .git/ directory in a
1222         parent of the build directory.  Reported by Mike Frysinger.
1223
1224 2011-02-19  Bruno Haible  <bruno@clisp.org>
1225
1226         unictype/property-byname: Reduce the size of the 'data' segment.
1227         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
1228
1229 2011-02-19  Bruno Haible  <bruno@clisp.org>
1230
1231         unictype/scripts: Reduce the size of the 'data' segment.
1232         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
1233         '%pic'.
1234         * lib/unictype/scripts_byname.gperf: Regenerated.
1235
1236 2011-02-19  Bruno Haible  <bruno@clisp.org>
1237
1238         stdint: Update documentation.
1239         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
1240
1241 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1242
1243         stdint: omit redundant check for wchar.h
1244         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
1245         always tests whether wchar.h exists, so remove the now-redundant test.
1246
1247 2011-02-18  Bruno Haible  <bruno@clisp.org>
1248
1249         stdint: Cut dependency to module 'wchar'.
1250         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
1251         include the necessary prerequisites.
1252         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
1253         * modules/stdint (Depends-on): Remove wchar.
1254         (Makefile.am): Substitute HAVE_WCHAR_H.
1255         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
1256
1257 2011-02-18  Eric Blake  <eblake@redhat.com>
1258
1259         longlong: skip, rather than fail, on cross-compilation
1260         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
1261         when cross-compiling; regression from 2011-02-16.
1262
1263 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1264
1265         * NEWS: Mention 2011-02-08 change to stdlib.
1266
1267 2011-02-17  Bruno Haible  <bruno@clisp.org>
1268
1269         getloadavg: Add comments about platforms.
1270         * m4/getloadavg.m4: Add comment.
1271         * lib/getloadavg.c: Likewise.
1272
1273 2011-02-17  Bruno Haible  <bruno@clisp.org>
1274
1275         getloadavg: Fix link error on Solaris 2.6.
1276         * modules/getloadavg (Link): New section.
1277         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
1278         linking test-getloadavg.
1279         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
1280         getloadavg.
1281
1282 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1283
1284         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
1285         It was 'int', but this doesn't match the IRIX 6.5 manual.
1286         Suggested by Bruno Haible in
1287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
1288
1289 2011-02-17  Bruno Haible  <bruno@clisp.org>
1290
1291         havelib: Fix comments.
1292         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
1293         change.
1294
1295 2011-02-17  Bruno Haible  <bruno@clisp.org>
1296
1297         havelib: Update config.rpath.
1298         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
1299
1300 2011-02-17  Bruno Haible  <bruno@clisp.org>
1301
1302         getloadavg test: Add some plausibility checks.
1303         * tests/test-getloadavg.c (check_avg): Print a warning when the value
1304         is improbable.
1305
1306 2011-02-16  Eric Blake  <eblake@redhat.com>
1307
1308         maintainer-makefile: make syntax-check a no-op from tarballs
1309         * top/maint.mk (no-vc-detected): New rule.
1310         (local-checks-available): Use it to avoid hanging if someone tries
1311         'make syntax-check' from a tarball.  Also append to any non-syntax
1312         checks already defined in cfg.mk.
1313
1314 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1315
1316         longlong: tune, particularly for common case of c99
1317
1318         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
1319         or running anything if c99, or if unsigned long long int does not
1320         work.  In either case, we know the answer without further tests.
1321         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
1322         it at most once, and use its results for both long long int and
1323         unsigned long long int.  This is more likely to be efficient in
1324         the common case where the program wants to check for both long
1325         long int and unsigned long long int.
1326         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
1327         since the answer is already known.
1328
1329 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1330
1331         getloadavg: set errno
1332         * lib/getloadavg.c: Set errno when returning -1.  If no other
1333         error number looks appropriate, set it to ENOSYS if the getloadavg
1334         looks like it can't possibly ever work, ENOTSUP otherwise.
1335         Suggested by Bruno Haible in
1336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
1337
1338         getloadavg: trim unused parts and speed up 'configure'
1339         * NEWS: Document this.
1340         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
1341         always compiled if getloadavg is absent.
1342         Move test code to ...
1343         * tests/test-getloadavg.c: New file, containing previous
1344         contents of test from lib/getloadavg.c.  It also contains
1345         suggestions by Bruno Haible in
1346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
1347         * modules/getloadavg-tests: New file.
1348         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
1349         Do tests in the same order as they're needed for getloadavg.c.
1350         Omit setgid-related tests that generate symbols KMEM_GROUP,
1351         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
1352         Do only the tests that are needed to see whether the system has
1353         getloadavg, moving the other tests into ...
1354         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
1355         NLIST_NAME_UNION; nobody should be using it.  Do not define
1356         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
1357         relevant, as the user of this module shouldn't care how getloadavg
1358         is implemented.
1359
1360         getloadavg: omit unused var
1361         * lib/getloadavg.c (getloadavg): Omit unused local variable.
1362
1363 2011-02-15  Jim Meyering  <meyering@redhat.com>
1364
1365         doc: update users.txt
1366         * users.txt: Update iwhd's URL.
1367
1368 2011-02-13  Bruno Haible  <bruno@clisp.org>
1369
1370         Consistent macro naming for macros that use GCC __attribute__.
1371         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
1372         _ATTRIBUTE_NONNULL_.
1373         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
1374         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
1375         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
1376         ATTRIBUTE_DEPRECATED.
1377         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
1378         ATTRIBUTE_NORETURN.
1379         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1380         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1381         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1382         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1383         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
1384         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
1385         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
1386         ATTRIBUTE_SENTINEL.
1387         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
1388         ATTRIBUTE_RETURN_CHECK.
1389         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
1390         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
1391         ATTRIBUTE_NORETURN.
1392         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
1393         Reported by Paul Eggert.
1394
1395 2011-02-13  Bruno Haible  <bruno@clisp.org>
1396
1397         Don't interfere with a program's definition of __attribute__.
1398         * lib/argp.h (__attribute__): Remove definition.
1399         (_GL_ATTRIBUTE_FORMAT): New macro.
1400         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
1401         * lib/argp-fmtstream.h (__attribute__): Remove definition.
1402         (_GL_ATTRIBUTE_FORMAT): New macro.
1403         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
1404         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
1405         GCC 3 or newer.
1406         * lib/error.h (__attribute__): Remove definition.
1407         (_GL_ATTRIBUTE_FORMAT): New macro.
1408         (error, error_at_line): Use it.
1409         * lib/hash.h (__attribute__): Remove definition.
1410         (ATTRIBUTE_WUR): Update definition. Define always.
1411         * lib/openat.h (__attribute__): Remove definition.
1412         (ATTRIBUTE_NORETURN): Update definition. Define always.
1413         * lib/sigpipe-die.h (__attribute__): Remove definition.
1414         (ATTRIBUTE_NORETURN): Update definition. Define always.
1415         * lib/vasnprintf.h (__attribute__): Remove definition.
1416         (_GL_ATTRIBUTE_FORMAT): New macro.
1417         (asnprintf, vasnprintf): Use it.
1418         * lib/xalloc.h (__attribute__): Remove definition.
1419         (ATTRIBUTE_NORETURN): Update definition. Define always.
1420         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
1421         * lib/xmemdup0.h (__attribute__): Remove definition.
1422         (ATTRIBUTE_NORETURN): Update definition. Define always.
1423         * lib/xprintf.h (__attribute__): Remove definition.
1424         (_GL_ATTRIBUTE_FORMAT): New macro.
1425         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
1426         * lib/xstrtol.h (__attribute__): Remove definition.
1427         (ATTRIBUTE_NORETURN): Update definition. Define always.
1428         * lib/xvasprintf.h (__attribute__): Remove definition.
1429         (_GL_ATTRIBUTE_FORMAT): New macro.
1430         (xasprintf, xvasprintf): Use it.
1431         * tests/test-argmatch.c (__attribute__): Remove definition.
1432         (ATTRIBUTE_NORETURN): Update definition. Define always.
1433         * tests/test-exclude.c (__attribute__): Remove definition.
1434         (ATTRIBUTE_NORETURN): Update definition. Define always.
1435         Reported by Paul Eggert.
1436
1437 2011-02-13  Bruno Haible  <bruno@clisp.org>
1438
1439         mbrtowc: Add more tests for native Windows platforms.
1440         * tests/test-mbrtowc-w32-1.sh: New file.
1441         * tests/test-mbrtowc-w32-2.sh: New file.
1442         * tests/test-mbrtowc-w32-3.sh: New file.
1443         * tests/test-mbrtowc-w32-4.sh: New file.
1444         * tests/test-mbrtowc-w32-5.sh: New file.
1445         * tests/test-mbrtowc-w32.c: New file.
1446         * modules/mbrtowc-tests (Files): Add them.
1447         (Makefile.am): Arrange to run these tests.
1448         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
1449         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
1450
1451 2011-02-13  Bruno Haible  <bruno@clisp.org>
1452
1453         mbrtowc: Work around native Windows bug.
1454         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
1455         guess when no suitable locale for testing was found.
1456         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
1457
1458 2011-02-13  Bruno Haible  <bruno@clisp.org>
1459
1460         mbsinit: Work around mingw bug.
1461         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
1462         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
1463         Windows.
1464         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
1465
1466 2011-02-13  Bruno Haible  <bruno@clisp.org>
1467
1468         mbsinit: Don't crash for a NULL argument.
1469         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
1470         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
1471
1472 2011-02-13  Bruno Haible  <bruno@clisp.org>
1473
1474         Don't interfere with a program's definition of __attribute__.
1475         * lib/stdio.in.h (__attribute__): Remove definition.
1476         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
1477         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
1478         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
1479         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
1480         * lib/string.in.h (__attribute__): Remove definition.
1481         Reported by Paul Eggert.
1482
1483 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1484
1485         stdlib: don't get in the way of non-GCC __attribute__
1486         See thread starting at
1487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
1488         Revert previous stdlib change, installing the following instead:
1489         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
1490         to get in the way of a non-GCC compiler that supports __attribute__.
1491         (_GL_ATTRIBUTE_RETURN): New macro.
1492         (_Exit): Use it instead of __attribute__.
1493
1494 2011-02-12  Bruno Haible  <bruno@clisp.org>
1495
1496         quotearg test: Avoid test failure on mingw.
1497         * tests/test-quotearg.sh: Convert the locale identifier from native
1498         Windows syntax to Unix syntax.
1499
1500 2011-02-12  Bruno Haible  <bruno@clisp.org>
1501
1502         setlocale: Prefer gnulib's override over libintl's override.
1503         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
1504         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
1505         GNULIB_defined_setlocale is set.
1506
1507 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         stdlib: support non-GCC __attribute__
1510
1511         Fix a serious and tricky problem encountered when attempting to
1512         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
1513         5.5, but it crashed due to memory corruption on Solaris 10 with
1514         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
1515         bits that are otherwise zero.  This tagging is optional inside
1516         Emacs but is preferred and is used when __attribute__ ((__aligned
1517         (8))) works, as it does with both recent-enough GCC and with Sun C
1518         5.11.  However, Sun C 5.11 is not GCC and does not #define
1519         __GNUC__ and __GNUC_MINOR__.
1520
1521         When I added the getloadavg module to Emacs, it brought in
1522         stdlib.in.h, which contained this fragment:
1523
1524            #ifndef __attribute__
1525            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
1526            #  define __attribute__(Spec)   /* empty */
1527            # endif
1528            #endif
1529
1530         When files that include <stdlib.h> were compiled with Sun C 5.11,
1531         the above code disabled __attribute__ ((__aligned (8))), which
1532         caused variables to not be properly aligned, which eventually led
1533         to the pointer corruption mentioned above.  (This was a bit hard
1534         to diagnose, unfortunately.)
1535
1536         Several "#define __attribute__(X) /* empty */" code snippets need
1537         to be eradicated from Gnulib to work with non-GCC compilers that
1538         support __attribute__.  The Autoconf way to do this is to test for
1539         each kind of attribute that we want support for, and selectively
1540         enable that in source code.
1541
1542         Fix this problem just for stdlib.h, by adding a test for the
1543         __noreturn__ attribute, and change stdlib.in.h to use that test
1544         when needed.  This technique can be easily generalized to the
1545         other *.in.h files and attributes, and a similar technique can be
1546         used for *.h and *.c files.  This patch is enough to solve the
1547         problem for Emacs + getloadavg, and I thought I'd publish it for
1548         feedback before undertaking further, similar fixes in other
1549         modules.
1550
1551         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
1552         because it's not needed for stdlib.h.  It merely substitutes the
1553         value directly into stdlib.h.  We may well need to #define it, or
1554         similar symbols, for other modules, but it's nice to also have an
1555         option to not #define it for applications like Emacs that do not
1556         need it.
1557
1558         * lib/stdlib.in.h (__attribute__): Do not #define.
1559         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
1560         be defined only if the _Exit module is also used.
1561         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
1562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
1563         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
1564         platforms.
1565         * modules/_Exit (Files): Add m4/attribute.m4.
1566         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
1567         * m4/attribute.m4: New file.
1568
1569 2011-02-12  Bruno Haible  <bruno@clisp.org>
1570
1571         wcsrtombs: Work around bug on native Windows.
1572         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
1573         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
1574         instead of len.
1575         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
1576
1577 2011-02-12  Bruno Haible  <bruno@clisp.org>
1578
1579         mbsrtowcs: Work around bug on native Windows.
1580         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
1581         against mingw bug.
1582         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
1583
1584 2011-02-12  Bruno Haible  <bruno@clisp.org>
1585
1586         Avoid setlocale bugs in tests.
1587         * modules/btowc (Dependencies): Add setlocale.
1588         * modules/c-strcase (Dependencies): Likewise.
1589         * modules/mbmemcasecmp (Dependencies): Likewise.
1590         * modules/mbmemcasecoll (Dependencies): Likewise.
1591         * modules/mbrtowc (Dependencies): Likewise.
1592         * modules/mbscasecmp (Dependencies): Likewise.
1593         * modules/mbscasestr (Dependencies): Likewise.
1594         * modules/mbschr (Dependencies): Likewise.
1595         * modules/mbscspn (Dependencies): Likewise.
1596         * modules/mbsinit (Dependencies): Likewise.
1597         * modules/mbsncasecmp (Dependencies): Likewise.
1598         * modules/mbsnrtowcs (Dependencies): Likewise.
1599         * modules/mbspbrk (Dependencies): Likewise.
1600         * modules/mbspcasecmp (Dependencies): Likewise.
1601         * modules/mbsrchr (Dependencies): Likewise.
1602         * modules/mbsrtowcs (Dependencies): Likewise.
1603         * modules/mbsspn (Dependencies): Likewise.
1604         * modules/mbsstr (Dependencies): Likewise.
1605         * modules/nl_langinfo (Dependencies): Likewise.
1606         * modules/quotearg (Dependencies): Likewise.
1607         * modules/unicase/locale-language (Dependencies): Likewise.
1608         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
1609         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
1610         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
1611         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
1612         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
1613         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
1614         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
1615         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
1616         * modules/vasnprintf-posix (Dependencies): Likewise.
1617         * modules/wcrtomb (Dependencies): Likewise.
1618         * modules/wcsnrtombs (Dependencies): Likewise.
1619         * modules/wcsrtombs (Dependencies): Likewise.
1620
1621 2011-02-12  Bruno Haible  <bruno@clisp.org>
1622
1623         setlocale: Workaround native Windows bug.
1624         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
1625         succeeds but sets LC_CTYPE to "C", report a failure.
1626         * tests/test-setlocale2.sh: New file.
1627         * tests/test-setlocale2.c: New file.
1628         * modules/setlocale-tests (Files): Add the new files.
1629         (Makefile.am): Enable test-setlocale2.sh test.
1630         * doc/posix-functions/setlocale.texi: Mention workaround.
1631
1632 2011-02-11  Bruno Haible  <bruno@clisp.org>
1633
1634         Tests for module 'setlocale'.
1635         * modules/setlocale-tests: New file.
1636         * tests/test-setlocale1.sh: New file.
1637         * tests/test-setlocale1.c: New file.
1638
1639         New module 'setlocale'.
1640         * lib/locale.in.h (setlocale): New declaration.
1641         * lib/setlocale.c: New file, based on
1642         gettext/gettext-runtime/intl/setlocale.c.
1643         * m4/setlocale.m4: New file.
1644         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1645         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1646         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1647         REPLACE_SETLOCALE.
1648         * modules/setlocale: New file.
1649         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1650         * doc/posix-functions/setlocale.texi: Mention the new module.
1651
1652 2011-02-11  Bruno Haible  <bruno@clisp.org>
1653
1654         Prepare for locale dependent tests on mingw.
1655         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1656         because it has the wrong locale encoding.
1657         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1658         French_France.1252 instead of "fr".
1659         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1660         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1661         because it has the wrong locale encoding.
1662         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1663         native Windows, try Turkish_Turkey.65001.
1664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1665         Chinese_China.54936.
1666
1667         Prepare for locale dependent tests on mingw.
1668         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
1669         differently.
1670         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1671         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1672         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1673         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1674
1675 2011-02-11  Eric Blake  <eblake@redhat.com>
1676
1677         strptime: avoid compiler warnings
1678         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
1679         compiler warnings about dead code.
1680         Reported by Daniel P. Berrange.
1681
1682 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
1683
1684         doc: update users.txt
1685         * users.txt: Add rcs.
1686
1687 2011-02-10  John W. Eaton  <jwe@gnu.org>
1688
1689         doc: update users.txt
1690         * users.txt: Add octave.
1691
1692 2011-02-10  Jim Meyering  <meyering@redhat.com>
1693
1694         doc: update users.txt
1695         * users.txt: Add iwhd.
1696
1697 2011-02-09  Bruno Haible  <bruno@clisp.org>
1698
1699         gnulib-tool: Make copyright notice adjustment more robust.
1700         * gnulib-tool (func_import): In sed_transform_main_lib_file,
1701         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
1702         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
1703         License".
1704         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
1705
1706 2011-02-06  Bruno Haible  <bruno@clisp.org>
1707
1708         New module 'towctrans'.
1709         * modules/towctrans: New file.
1710         * lib/wctype.in.h (towctrans): New declaration.
1711         * lib/towctrans.c: New file.
1712         * lib/towctrans-impl.h: New file.
1713         * m4/towctrans.m4: New file.
1714         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
1715         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
1716         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
1717         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
1718         * doc/posix-functions/towctrans.texi: Mention the new module.
1719
1720 2011-02-06  Bruno Haible  <bruno@clisp.org>
1721
1722         New module 'wctrans'.
1723         * modules/wctrans: New file.
1724         * lib/wctype.in.h (wctrans): New declaration.
1725         * lib/wctrans.c: New file.
1726         * lib/wctrans-impl.h: New file.
1727         * m4/wctrans.m4: New file.
1728         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
1729         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
1730         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
1731         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
1732         * doc/posix-functions/wctrans.texi: Mention the new module.
1733
1734 2011-02-06  Bruno Haible  <bruno@clisp.org>
1735
1736         New module 'iswctype'.
1737         * modules/iswctype: New file.
1738         * lib/wctype.in.h (iswctype): New declaration.
1739         * lib/iswctype.c: New file.
1740         * lib/iswctype-impl.h: New file.
1741         * m4/iswctype.m4: New file.
1742         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
1743         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
1744         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
1745         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
1746         * doc/posix-functions/iswctype.texi: Mention the new module and the
1747         HP-UX 11.00 problem.
1748
1749 2011-02-06  Bruno Haible  <bruno@clisp.org>
1750
1751         New module 'wctype'.
1752         * modules/wctype: Change to represent the wctype() substitute.
1753         * lib/wctype.in.h (wctype): New declaration.
1754         * lib/wctype.c: New file.
1755         * lib/wctype-impl.h: New file.
1756         * m4/wctype.m4: New file.
1757         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
1758         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
1759         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
1760         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
1761         * doc/posix-functions/wctype.texi: Mention the new module and the
1762         HP-UX 11.00 problem.
1763
1764 2011-02-06  Bruno Haible  <bruno@clisp.org>
1765
1766         wctype-h: Ensure wctype_t and wctrans_t are defined.
1767         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
1768         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1769         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1770         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
1771         HAVE_WCTRANS_T.
1772         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
1773
1774 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1775
1776         flock: fix license typo
1777
1778         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1779         omitted.
1780
1781 2011-02-08  Bruno Haible  <bruno@clisp.org>
1782
1783         Split large sed scripts, for HP-UX sed.
1784         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1785         to avoid HP-UX limit of 99 commands, in the near future.
1786         * modules/stdlib (Makefile.am): Likewise.
1787         * modules/unistd (Makefile.am): Likewise.
1788         * modules/wchar (Makefile.am): Likewise.
1789         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1790         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1792
1793 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1794             Bruno Haible  <bruno@clisp.org>
1795
1796         stdlib: improve random_r modularization
1797         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1798         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1799         you also need the random_r module to get this material right.
1800         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1801         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1802         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1803
1804 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1805
1806         stdlib: don't depend on stdint
1807         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1808         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1809         be independent of whether stdint.h is needed.
1810         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1811         here, instead of ...
1812         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1813         struct random_data should be using the random_r module, not just
1814         the stdlib module (which wouldn't make sense: what package needs
1815         just struct random_data without also needing random_r?).
1816         * modules/stdlib (Depends-on): Remove stdint.
1817
1818         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
1819         See the thread rooted at
1820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
1821         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
1822         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
1823         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
1824         __VMS)); previously it was always included (via fcntl--.h).
1825         (getloadavg): Do not use c_strtod.  Instead, approximate it by
1826         hand; this is good enough for load averages.  Also, do not use
1827         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
1828         flags directly if available and don't bother otherwise.  (Packages
1829         that need the extra reliability should use the modules that define
1830         these flags on older platforms that lack them.)
1831         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
1832         fcntl-safer.
1833
1834 2011-02-08  Jim Meyering  <meyering@redhat.com>
1835
1836         di-set.h, ino-map.h: add multiple-inclusion guard
1837         Technically, the guard is required only for ino-map.h, due to its
1838         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
1839         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
1840         * lib/ino-map.h: Likewise.
1841
1842 2011-02-06  Bruno Haible  <bruno@clisp.org>
1843
1844         iswblank: Ensure declaration on glibc systems.
1845         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
1846         * modules/iswblank (Dependencies): Add 'extensions'.
1847         * doc/posix-functions/iswblank.texi: Document the glibc problem.
1848
1849 2011-02-06  Bruno Haible  <bruno@clisp.org>
1850
1851         New module 'iswblank'.
1852         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
1853         * modules/iswblank: New file.
1854         * modules/wctype-h (Files): Remove lib/iswblank.c.
1855         (Makefile.am): Substitute GNULIB_ISWBLANK.
1856         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
1857         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
1858         (gl_WCTYPE_H_DEFAULTS): New macro.
1859         (gl_WCTYPE_H): Require it. Remove iswblank related code.
1860         * modules/iswblank-tests: New file.
1861         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
1862         * tests/test-wctype-h.c (main): Remove iswblank tests.
1863         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
1864         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
1865         of 'wctype-h'.
1866         * NEWS: Mention the change.
1867         * modules/mbchar (Depends-on): Add iswblank.
1868
1869 2011-02-08  Bruno Haible  <bruno@clisp.org>
1870
1871         di-set tests: Refactor.
1872         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
1873         unnecessary includes.
1874         (ASSERT): Remove macro.
1875         (main): Make C90 compliant by avoiding variable declaration after
1876         statement.
1877         * modules/di-set-tests (Files): Add tests/macros.h.
1878
1879 2011-02-08  Bruno Haible  <bruno@clisp.org>
1880
1881         ino-map tests: Refactor.
1882         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
1883         unnecessary includes.
1884         (ASSERT): Remove macro.
1885         (main): Make C90 compliant by avoiding variable declaration after
1886         statement.
1887         * modules/ino-map-tests (Files): Add tests/macros.h.
1888
1889 2011-02-08  Jim Meyering  <meyering@redhat.com>
1890
1891         di-set: add "const" to a cast
1892         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
1893         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
1894
1895 2011-02-06  Bruno Haible  <bruno@clisp.org>
1896
1897         Rename module 'wctype' to 'wctype-h'.
1898         * modules/wctype-h: Renamed from modules/wctype.
1899         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
1900         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
1901         (Files, Depends-on, Makefile.am): Update.
1902         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
1903         (Files, Makefile.am): Update.
1904         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
1905         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
1906         * doc/posix-headers/wctype.texi: Update.
1907         * doc/posix-functions/iswalnum.texi: Update.
1908         * doc/posix-functions/iswalpha.texi: Update.
1909         * doc/posix-functions/iswblank.texi: Update.
1910         * doc/posix-functions/iswcntrl.texi: Update.
1911         * doc/posix-functions/iswdigit.texi: Update.
1912         * doc/posix-functions/iswgraph.texi: Update.
1913         * doc/posix-functions/iswlower.texi: Update.
1914         * doc/posix-functions/iswprint.texi: Update.
1915         * doc/posix-functions/iswpunct.texi: Update.
1916         * doc/posix-functions/iswspace.texi: Update.
1917         * doc/posix-functions/iswupper.texi: Update.
1918         * doc/posix-functions/iswxdigit.texi: Update.
1919         * doc/posix-functions/towlower.texi: Update.
1920         * doc/posix-functions/towupper.texi: Update.
1921         * NEWS: Mention the change.
1922         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
1923         * modules/mbchar (Dependencies): Likewise.
1924         * modules/mbswidth (Dependencies): Likewise.
1925         * modules/quotearg (Dependencies): Likewise.
1926         * modules/regex (Dependencies): Likewise.
1927         * modules/wcscasecmp (Dependencies): Likewise.
1928         * modules/wcsncasecmp (Dependencies): Likewise.
1929         * modules/wcwidth (Dependencies): Likewise.
1930
1931 2011-02-06  Bruno Haible  <bruno@clisp.org>
1932
1933         New module 'wcswidth'.
1934         * modules/wcswidth: New file.
1935         * lib/wchar.in.h (wcswidth): New declaration.
1936         * lib/wcswidth.c: New file.
1937         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
1938         * m4/wcswidth.m4: New file.
1939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
1940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
1941         REPLACE_WCSWIDTH.
1942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
1943         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
1944         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
1945         * doc/posix-functions/wcswidth.texi: Mention the new module.
1946
1947 2011-02-06  Bruno Haible  <bruno@clisp.org>
1948
1949         New module 'wcstok'.
1950         * modules/wcstok: New file.
1951         * lib/wchar.in.h (wcstok): New declaration.
1952         * lib/wcstok.c: New file.
1953         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
1954         * m4/wcstok.m4: New file.
1955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
1956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
1957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
1958         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
1959         * doc/posix-functions/wcstok.texi: Mention the new module.
1960
1961 2011-02-06  Bruno Haible  <bruno@clisp.org>
1962
1963         New module 'wcsstr'.
1964         * modules/wcsstr: New file.
1965         * lib/wchar.in.h (wcsstr): New declaration.
1966         * lib/wcsstr.c: New file.
1967         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
1968         * m4/wcsstr.m4: New file.
1969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
1970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
1971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
1972         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
1973         * doc/posix-functions/wcsstr.texi: Mention the new module.
1974
1975 2011-02-06  Bruno Haible  <bruno@clisp.org>
1976
1977         New module 'wcspbrk'.
1978         * modules/wcspbrk: New file.
1979         * lib/wchar.in.h (wcspbrk): New declaration.
1980         * lib/wcspbrk.c: New file.
1981         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
1982         * m4/wcspbrk.m4: New file.
1983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
1984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
1985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
1986         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
1987         * doc/posix-functions/wcspbrk.texi: Mention the new module.
1988
1989 2011-02-06  Bruno Haible  <bruno@clisp.org>
1990
1991         New module 'wcsspn'.
1992         * modules/wcsspn: New file.
1993         * lib/wchar.in.h (wcsspn): New declaration.
1994         * lib/wcsspn.c: New file.
1995         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
1996         * m4/wcsspn.m4: New file.
1997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
1998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
1999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2000         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2001         * doc/posix-functions/wcsspn.texi: Mention the new module.
2002
2003 2011-02-06  Bruno Haible  <bruno@clisp.org>
2004
2005         New module 'wcscspn'.
2006         * modules/wcscspn: New file.
2007         * lib/wchar.in.h (wcscspn): New declaration.
2008         * lib/wcscspn.c: New file.
2009         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2010         * m4/wcscspn.m4: New file.
2011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2014         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2015         * doc/posix-functions/wcscspn.texi: Mention the new module.
2016
2017 2011-02-06  Bruno Haible  <bruno@clisp.org>
2018
2019         New module 'wcsrchr'.
2020         * modules/wcsrchr: New file.
2021         * lib/wchar.in.h (wcsrchr): New declaration.
2022         * lib/wcsrchr.c: New file.
2023         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2024         * m4/wcsrchr.m4: New file.
2025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2028         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2029         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2030
2031 2011-02-06  Bruno Haible  <bruno@clisp.org>
2032
2033         New module 'wcschr'.
2034         * modules/wcschr: New file.
2035         * lib/wchar.in.h (wcschr): New declaration.
2036         * lib/wcschr.c: New file.
2037         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2038         * m4/wcschr.m4: New file.
2039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2042         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2043         * doc/posix-functions/wcschr.texi: Mention the new module.
2044
2045 2011-02-06  Bruno Haible  <bruno@clisp.org>
2046
2047         New module 'wcsdup'.
2048         * modules/wcsdup: New file.
2049         * lib/wchar.in.h (wcsdup): New declaration.
2050         * lib/wcsdup.c: New file.
2051         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2052         * m4/wcsdup.m4: New file.
2053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2056         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2057         * doc/posix-functions/wcsdup.texi: Mention the new module.
2058
2059 2011-02-06  Bruno Haible  <bruno@clisp.org>
2060
2061         New module 'wcsxfrm'.
2062         * modules/wcsxfrm: New file.
2063         * lib/wchar.in.h (wcsxfrm): New declaration.
2064         * lib/wcsxfrm.c: New file.
2065         * lib/wcsxfrm-impl.h: New file.
2066         * m4/wcsxfrm.m4: New file.
2067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2070         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2071         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2072
2073 2011-02-06  Bruno Haible  <bruno@clisp.org>
2074
2075         New module 'wcscoll'.
2076         * modules/wcscoll: New file.
2077         * lib/wchar.in.h (wcscoll): New declaration.
2078         * lib/wcscoll.c: New file.
2079         * lib/wcscoll-impl.h: New file.
2080         * m4/wcscoll.m4: New file.
2081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2084         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2085         * doc/posix-functions/wcscoll.texi: Mention the new module.
2086
2087 2011-02-06  Bruno Haible  <bruno@clisp.org>
2088
2089         New module 'wcsncasecmp'.
2090         * modules/wcsncasecmp: New file.
2091         * lib/wchar.in.h (wcsncasecmp): New declaration.
2092         * lib/wcsncasecmp.c: New file.
2093         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2094         * m4/wcsncasecmp.m4: New file.
2095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2098         HAVE_WCSNCASECMP.
2099         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2100         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2101
2102 2011-02-06  Bruno Haible  <bruno@clisp.org>
2103
2104         New module 'wcscasecmp'.
2105         * modules/wcscasecmp: New file.
2106         * lib/wchar.in.h (wcscasecmp): New declaration.
2107         * lib/wcscasecmp.c: New file.
2108         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2109         * m4/wcscasecmp.m4: New file.
2110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2113         HAVE_WCSCASECMP.
2114         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2115         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2116
2117 2011-02-05  Bruno Haible  <bruno@clisp.org>
2118
2119         New module 'wcsncmp'.
2120         * modules/wcsncmp: New file.
2121         * lib/wchar.in.h (wcsncmp): New declaration.
2122         * lib/wcsncmp.c: New file.
2123         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2124         * m4/wcsncmp.m4: New file.
2125         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2126         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2127         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2128         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2129         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2130
2131 2011-02-05  Bruno Haible  <bruno@clisp.org>
2132
2133         New module 'wcscmp'.
2134         * modules/wcscmp: New file.
2135         * lib/wchar.in.h (wcscmp): New declaration.
2136         * lib/wcscmp.c: New file.
2137         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2138         * m4/wcscmp.m4: New file.
2139         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2140         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2141         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2142         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2143         * doc/posix-functions/wcscmp.texi: Mention the new module.
2144
2145 2011-02-05  Bruno Haible  <bruno@clisp.org>
2146
2147         New module 'wcsncat'.
2148         * modules/wcsncat: New file.
2149         * lib/wchar.in.h (wcsncat): New declaration.
2150         * lib/wcsncat.c: New file.
2151         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2152         * m4/wcsncat.m4: New file.
2153         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2154         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2156         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2157         * doc/posix-functions/wcsncat.texi: Mention the new module.
2158
2159 2011-02-05  Bruno Haible  <bruno@clisp.org>
2160
2161         New module 'wcscat'.
2162         * modules/wcscat: New file.
2163         * lib/wchar.in.h (wcscat): New declaration.
2164         * lib/wcscat.c: New file.
2165         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2166         * m4/wcscat.m4: New file.
2167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2170         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2171         * doc/posix-functions/wcscat.texi: Mention the new module.
2172
2173 2011-02-05  Bruno Haible  <bruno@clisp.org>
2174
2175         New module 'wcpncpy'.
2176         * modules/wcpncpy: New file.
2177         * lib/wchar.in.h (wcpncpy): New declaration.
2178         * lib/wcpncpy.c: New file.
2179         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
2180         * m4/wcpncpy.m4: New file.
2181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
2182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
2183         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
2184         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
2185         * doc/posix-functions/wcpncpy.texi: Mention the new module.
2186
2187 2011-02-05  Bruno Haible  <bruno@clisp.org>
2188
2189         New module 'wcsncpy'.
2190         * modules/wcsncpy: New file.
2191         * lib/wchar.in.h (wcsncpy): New declaration.
2192         * lib/wcsncpy.c: New file.
2193         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
2194         * m4/wcsncpy.m4: New file.
2195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
2196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
2197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
2198         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
2199         * doc/posix-functions/wcsncpy.texi: Mention the new module.
2200
2201 2011-02-05  Bruno Haible  <bruno@clisp.org>
2202
2203         New module 'wcpcpy'.
2204         * modules/wcpcpy: New file.
2205         * lib/wchar.in.h (wcpcpy): New declaration.
2206         * lib/wcpcpy.c: New file.
2207         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
2208         * m4/wcpcpy.m4: New file.
2209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
2210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
2211         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
2212         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
2213         * doc/posix-functions/wcpcpy.texi: Mention the new module.
2214
2215 2011-02-05  Bruno Haible  <bruno@clisp.org>
2216
2217         New module 'wcscpy'.
2218         * modules/wcscpy: New file.
2219         * lib/wchar.in.h (wcscpy): New declaration.
2220         * lib/wcscpy.c: New file.
2221         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
2222         * m4/wcscpy.m4: New file.
2223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
2224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
2225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
2226         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
2227         * doc/posix-functions/wcscpy.texi: Mention the new module.
2228
2229 2011-02-05  Bruno Haible  <bruno@clisp.org>
2230
2231         New module 'wcsnlen'.
2232         * modules/wcsnlen: New file.
2233         * lib/wchar.in.h (wcsnlen): New declaration.
2234         * lib/wcsnlen.c: New file.
2235         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
2236         * m4/wcsnlen.m4: New file.
2237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
2238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
2239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
2240         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
2241         * doc/posix-functions/wcsnlen.texi: Mention the new module.
2242
2243 2011-02-05  Bruno Haible  <bruno@clisp.org>
2244
2245         New module 'wcslen'.
2246         * modules/wcslen: New file.
2247         * lib/wchar.in.h (wcslen): New declaration.
2248         * lib/wcslen.c: New file.
2249         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
2250         * m4/wcslen.m4: New file.
2251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
2252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
2253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
2254         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
2255         * doc/posix-functions/wcslen.texi: Mention the new module.
2256
2257 2011-02-05  Bruno Haible  <bruno@clisp.org>
2258
2259         New module 'wmemset'.
2260         * modules/wmemset: New file.
2261         * lib/wchar.in.h (wmemset): New declaration.
2262         * lib/wmemset.c: New file.
2263         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
2264         * m4/wmemset.m4: New file.
2265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
2266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
2267         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
2268         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
2269         * doc/posix-functions/wmemset.texi: Mention the new module.
2270
2271 2011-02-05  Bruno Haible  <bruno@clisp.org>
2272
2273         New module 'wmemmove'.
2274         * modules/wmemmove: New file.
2275         * lib/wchar.in.h (wmemmove): New declaration.
2276         * lib/wmemmove.c: New file.
2277         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
2278         * m4/wmemmove.m4: New file.
2279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
2280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
2281         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
2282         HAVE_WMEMMOVE.
2283         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
2284         * doc/posix-functions/wmemmove.texi: Mention the new module.
2285
2286 2011-02-05  Bruno Haible  <bruno@clisp.org>
2287
2288         New module 'wmemcpy'.
2289         * modules/wmemcpy: New file.
2290         * lib/wchar.in.h (wmemcpy): New declaration.
2291         * lib/wmemcpy.c: New file.
2292         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
2293         * m4/wmemcpy.m4: New file.
2294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
2295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
2296         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
2297         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
2298         * doc/posix-functions/wmemcpy.texi: Mention the new module.
2299
2300 2011-02-05  Bruno Haible  <bruno@clisp.org>
2301
2302         New module 'wmemcmp'.
2303         * modules/wmemcmp: New file.
2304         * lib/wchar.in.h (wmemcmp): New declaration.
2305         * lib/wmemcmp.c: New file.
2306         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
2307         * m4/wmemcmp.m4: New file.
2308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
2309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
2310         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
2311         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
2312         * doc/posix-functions/wmemcmp.texi: Mention the new module.
2313
2314 2011-02-07  Jim Meyering  <meyering@redhat.com>
2315
2316         di-set, ino-map: new modules, from coreutils
2317         * lib/di-set.c: New file.
2318         * lib/di-set.h: Likewise.
2319         * lib/ino-map.c: Likewise.
2320         * lib/ino-map.h: Likewise.
2321         * modules/di-set: Likewise.
2322         * modules/di-set-tests: Likewise.
2323         * modules/ino-map: Likewise.
2324         * modules/ino-map-tests: Likewise.
2325         * tests/test-di-set.c: Likewise.
2326         * tests/test-ino-map.c: Likewise.
2327
2328 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2329
2330         getloadavg: merge minor changes from Emacs
2331
2332         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
2333         (getloadavg): Use memset, not bzero.
2334
2335         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
2336         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2337         clash (bug#86).
2338
2339 2010-11-14  Bruno Haible  <bruno@clisp.org>
2340
2341         Allow multiple gnulib generated replacements to coexist.
2342         * lib/getopt.in.h (struct option): Avoid identical redefinition.
2343         * lib/inttypes.in.h (imaxdiv_t): Likewise.
2344         * lib/langinfo.in.h (nl_item): Likewise.
2345         * lib/math.in.h (_NaN, NAN): Likewise.
2346         * lib/netdb.in.h (struct addrinfo): Likewise.
2347         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
2348         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
2349         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
2350         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
2351         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
2352         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
2353         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
2354         pthread_mutexattr_init, pthread_mutexattr_settype,
2355         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
2356         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
2357         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
2358         pthread_spin_trylock, pthread_spin_unlock): Likewise.
2359         * lib/sched.in.h (struct sched_param): Likewise.
2360         * lib/se-selinux.in.h (security_class_t, security_context_t,
2361         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
2362         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
2363         lsetfilecon, fsetfilecon, security_check_context,
2364         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
2365         Likewise.
2366         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
2367         Likewise.
2368         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
2369         _gl_function_taking_int_returning_void_t, union sigval,
2370         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
2371         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
2372         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2373         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
2374         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
2375         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
2376         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
2377         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
2378         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
2379         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
2380         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
2381         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
2382         socklen_t, rpl_fd_isset): Likewise.
2383         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
2384         * lib/sys_time.in.h (struct timeval): Likewise.
2385         * lib/sys_times.in.h (struct tms): Likewise.
2386         * lib/sys_utsname.in.h (struct utsname):
2387         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
2388         * lib/unistd.in.h (getpagesize): Likewise.
2389         * lib/wchar.in.h (mbstate_t): Likewise.
2390         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2391         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
2392         towlower, towupper): Likewise.
2393         Reported by Sam Steingold <sds@gnu.org>.
2394
2395 2011-02-05  Eric Blake  <eblake@redhat.com>
2396
2397         unsetenv: work around Haiku issues
2398         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
2399         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
2400
2401 2010-12-30  Bruce Korb  <bkorb@gnu.org>
2402
2403         libposix: avoid calling error() within libposix
2404         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
2405         is defined.
2406
2407 2011-02-05  Eric Blake  <eblake@redhat.com>
2408
2409         strerror_r-posix: port to cygwin
2410         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
2411         implementation.
2412         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
2413         * tests/test-strerror_r.c (main): Fix test.
2414         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2415         issue.
2416
2417 2011-02-05  Bruno Haible  <bruno@clisp.org>
2418
2419         New module 'wmemchr'.
2420         * modules/wmemchr: New file.
2421         * lib/wchar.in.h (wmemchr): New declaration.
2422         * lib/wmemchr.c: New file.
2423         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
2424         * m4/wmemchr.m4: New file.
2425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
2426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
2427         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
2428         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
2429         * doc/posix-functions/wmemchr.texi: Mention the new module.
2430
2431 2011-02-04  Eric Blake  <eblake@redhat.com>
2432
2433         fdopendir: detect FreeBSD bug
2434         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2435         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2436
2437 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2438
2439         stdbool: do not define HAVE_STDBOOL_H
2440         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2441         AC_HEADER_STDBOOL.  All uses changed.  Do not define
2442         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
2443         imported from the latest Autoconf git.  It was motivated by Emacs,
2444         which uses gnulib but does not need HAVE_STDBOOL_H.
2445
2446 2011-02-04  Bruno Haible  <bruno@clisp.org>
2447
2448         wcsnrtombs: Prepare for new module wwcsnrtombs.
2449         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
2450         * lib/wcsnrtombs.c: Include it.
2451         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
2452
2453         wcsrtombs: Prepare for new module wwcsrtombs.
2454         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
2455         * lib/wcsrtombs.c: Include it.
2456         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
2457
2458         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
2459         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
2460         * lib/mbsnrtowcs.c: Include it.
2461         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
2462
2463         mbsrtowcs: Prepare for new module mbsrtowwcs.
2464         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
2465         * lib/mbsrtowcs.c: Include it.
2466         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
2467
2468 2011-02-04  Bruno Haible  <bruno@clisp.org>
2469
2470         vasnprintf: Reduce use of malloc for small format strings.
2471         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
2472         (arguments): Add room for the first 7 arguments.
2473         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
2474         (char_directives, u8_directives, u16_directives, u32_directives): Add
2475         room for the first 7 directives.
2476         * lib/printf-parse.c: Include <string.h>.
2477         (PRINTF_PARSE): Change memory handling code so that it uses the first
2478         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
2479         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
2480         Reported by Pádraig Brady <P@draigbrady.com>.
2481
2482 2011-01-31  Eric Blake  <eblake@redhat.com>
2483
2484         dup2: work around Haiku bug
2485         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
2486         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
2487         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2488         * tests/test-dup2.c (main): Enhance test.
2489
2490 2011-01-31  Simon Josefsson  <simon@josefsson.org>
2491
2492         doc: off_t is not available in eglibc 2.11.2 stdio.h.
2493         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
2494         declared by eglibc 2.11.2.
2495         * lib/stdio.in.h: Likewise.
2496
2497 2011-01-31  Eric Blake  <eblake@redhat.com>
2498
2499         ignore-value: add missing test dependency
2500         * tests/test-ignore-value.c: Revert previous change; stdio.h
2501         provides off_t.
2502         * modules/ignore-value-tests (Depends-on): Add missing dependency.
2503
2504 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2505
2506         mktime: clarify long_int width checking
2507         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
2508         the top level, to make it clearer that the assumption about
2509         long_int width is being checked.  See
2510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
2511
2512 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2513
2514         ignore-value: Fix self-test.
2515         * tests/test-ignore-value.c: Include sys/types.h for off_t.
2516
2517 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2518
2519         TYPE_MAXIMUM: avoid theoretically undefined behavior
2520         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
2521         negative number, which the C Standard says has undefined behavior.
2522         In practice this is not a problem, but might as well do it by the book.
2523         Reported by Rich Felker and Eric Blake; see
2524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
2525         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
2526         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2528         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
2529         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2530         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
2531
2532         mktime: #undef mktime before #defining it
2533         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
2534
2535         mktime: systematically normalize tm_isdst comparisons
2536         * lib/mktime.c (isdst_differ): New function.
2537         (__mktime_internal): Use it systematically for all isdst comparisons.
2538         This completes the fix for libc BZ #6723, and removes the need for
2539         normalizing tm_isdst.  See
2540         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
2541         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
2542
2543         mktime: fix some integer overflow issues and sidestep the rest
2544
2545         This was prompted by a bug report by Benjamin Lindner for MinGW
2546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
2547         His bug is due to signed integer overflow (0 - INT_MIN), and I
2548         I scanned through mktime.c looking for other integer overflow
2549         problems, fixing all the bugs I found.
2550
2551         Although the C Standard says the resulting code is still not safe
2552         in the presence of integer overflow, in practice it should be good
2553         enough for all real-world two's-complement implementations, except
2554         for debugging environments that deliberately trap on integer
2555         overflow (e.g., gcc -ftrapv).
2556
2557         * lib/mktime.c (WRAPV): New macro.
2558         (SHR): Also check that long_int and time_t shift right in the
2559         usual way, before using the fast-but-unportable method.
2560         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
2561         used.  The code already assumed two's complement, so there's
2562         no need to test for alternatives.  All uses removed.
2563         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
2564         the C standard.  Problem reported by Rich Felker in
2565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
2566         (twos_complement_arithmetic): Also check long_int and time_t.
2567         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
2568         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
2569         (__mktime_internal): Avoid integer overflow with unary subtraction
2570         in two instances where -1 - X is an adequate replacement for -X,
2571         since the calculations are approximate.
2572
2573 2011-01-29  Eric Blake  <eblake@redhat.com>
2574
2575         mktime: avoid infinite loop
2576         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
2577         type; behavior is still undefined but portable to all known targets.
2578         Reported by Rich Felker.
2579
2580 2011-01-29  Simon Josefsson  <simon@josefsson.org>
2581
2582         rename, unlink, same-inode: Relicense.
2583         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
2584         * modules/unlink (License): Likewise.
2585         * modules/same-inode (License): Likewise.
2586
2587 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         mktime: avoid problems on NetBSD 5 / i386
2590         * lib/mktime.c (long_int): New type.  This works around a problem
2591         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
2592         but time_t is 64 bits, and where I expect the existing code is
2593         wrong in some cases.
2594         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
2595         (ydhms_diff): Bring back the compile-time check for wide-enough
2596         year and yday.
2597
2598         mktime: fix misspelling in comment
2599         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
2600         This merges all recent glibc changes of importance.
2601
2602 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2603
2604         move-if-change: cope with concurrent mv of identical file.
2605         * build-aux/move-if-change (CMPPROG): Accept environment
2606         variable as an override for `cmp'.
2607         (usage): Document CMPPROG.
2608         Adjust comparison to drop stdout.  Cope with failure of mv if
2609         the target file exists and is identical to the source, for
2610         parallel builds.
2611         Report from H.J. Lu against binutils in PR binutils/12283.
2612
2613 2011-01-28  Bruce Korb  <bkorb@gnu.org>
2614
2615         * users.txt: Mention sharutils.
2616
2617 2011-01-28  Simon Josefsson  <simon@josefsson.org>
2618
2619         * users.txt: Mention OATH Toolkit.
2620
2621 2011-01-27  Bruno Haible  <bruno@clisp.org>
2622
2623         Prepare for supporting FreeBSD 10.
2624         * build-aux/config.libpath: Remove handling of freebsd1*.
2625
2626 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
2627
2628         Prepare for supporting FreeBSD 10.
2629         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
2630         match FreeBSD 10.0.
2631
2632 2011-01-27  Bruno Haible  <bruno@clisp.org>
2633
2634         vma-iter, get-rusage-as: Add OpenBSD support.
2635         * modules/vma-iter (configure.ac): Test for mquery.
2636         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
2637         * lib/vma-iter.c: Include <sys/mman.h>.
2638         (vma_iterate): Add an implementation based on mquery().
2639         * lib/resource-ext.h (get_rusage_as): Update comments.
2640         * lib/get-rusage-as.c: Likewise.
2641         * lib/get-rusage-data.c: Likewise.
2642
2643 2011-01-26  Karl Berry  <karl@gnu.org>
2644
2645         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2646         variables to make it easier to override the makeinfo program used.
2647
2648 2011-01-26  Eric Blake  <eblake@redhat.com>
2649
2650         fcntl: work around Haiku F_DUPFD bugs
2651         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2652         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2653         cloexec bit on duplication.
2654         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2655
2656 2011-01-26  Bruno Haible  <bruno@clisp.org>
2657
2658         Enable memory leak tests on AIX.
2659         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2660         * tests/test-fprintf-posix3.c (main): Likewise.
2661
2662 2011-01-26  Bruno Haible  <bruno@clisp.org>
2663
2664         Tests for module 'get-rusage-data'.
2665         * modules/get-rusage-data-tests: New file.
2666         * tests/test-get-rusage-data.c: New file.
2667
2668         New module 'get-rusage-data'.
2669         * lib/resource-ext.h (get_rusage_data): New declaration.
2670         * lib/get-rusage-data.c: New file.
2671         * modules/get-rusage-data: New file.
2672
2673 2011-01-25  Bruno Haible  <bruno@clisp.org>
2674
2675         get-rusage-as: Allow for easier testing.
2676         * lib/resource-ext.h (get_rusage_as): Add comment.
2677         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
2678         (main): New function for interactive testing.
2679
2680 2011-01-25  Bruno Haible  <bruno@clisp.org>
2681
2682         vma-iter: Treat Haiku like BeOS.
2683         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
2684         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
2685
2686 2011-01-25  Eric Blake  <eblake@redhat.com>
2687
2688         c-stack: fix regression on cygwin when libsigsegv is present
2689         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
2690
2691 2011-01-24  Bruno Haible  <bruno@clisp.org>
2692
2693         vma-iter: Avoid empty intervals.
2694         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
2695         on an empty interval.
2696
2697 2011-01-24  Jim Meyering  <meyering@redhat.com>
2698
2699         u64: remove unnecessary #include
2700         * lib/u64.h: Don't include <stddef.h>.  It was not used.
2701
2702 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2703
2704         Allow the user to avoid the HAVE_RAW_DECL_* macros.
2705         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
2706
2707 2011-01-23  Bruno Haible  <bruno@clisp.org>
2708
2709         New module 'vma-iter'.
2710         * lib/vma-iter.h: New file.
2711         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
2712         * modules/vma-iter: New file.
2713         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
2714         for get_rusage_as_via_iterator.
2715         (vma_iterate_callback): New function.
2716         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
2717         * modules/get-rusage-as (Depends-on): Add vma-iter.
2718
2719 2011-01-23  Bruno Haible  <bruno@clisp.org>
2720
2721         uninorm: Tweak includes.
2722         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
2723         Reported by Jim Meyering.
2724
2725 2011-01-23  Bruno Haible  <bruno@clisp.org>
2726
2727         get-rusage-as: Improve on NetBSD.
2728         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
2729         /proc, like on FreeBSD.
2730
2731 2011-01-23  Jim Meyering  <meyering@redhat.com>
2732
2733         xreadlink.h: remove unnecessary #include
2734         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
2735
2736         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
2737         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
2738
2739 2011-01-23  Bruno Haible  <bruno@clisp.org>
2740
2741         get-rusage-as: Fix bug.
2742         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
2743         original limit when aborting the first loop.
2744
2745 2011-01-23  Bruno Haible  <bruno@clisp.org>
2746
2747         wctype: Ensure valid C syntax.
2748         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
2749         unconditionally, instead of gl_NEXT_HEADERS conditionally.
2750
2751 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2752
2753         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
2754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
2755         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
2756         as they are needed only for configure's test case.
2757         This removes two unnecessary symbols from config.h.
2758
2759         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
2760         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
2761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
2762         AC_CHECK_HEADERS_ONCE on a header that we also invoke
2763         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
2764         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
2765         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
2766         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2767         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2768         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2769         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2770         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2771         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2772         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2773         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2774         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2775         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2776         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2777
2778 2011-01-21  Eric Blake  <eblake@redhat.com>
2779
2780         maintainer-makefile: work with older git for submodule check
2781         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2782         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2783         Reported by Matthias Bolte.
2784
2785         bootstrap: minor portability fixes
2786         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2787         (usage): Omit leading capital and trailing . on help phrases, per
2788         GNU Coding Standards.
2789         (check_versions, top level): Prefix messages with script name.
2790
2791 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2792
2793         bootstrap: support --no-git option
2794         * build-aux/bootstrap: Add --no-git option, to be used when
2795         --gnulib-srcdir points to the exact desired checkout.
2796
2797 2011-01-21  Eric Blake  <eblake@redhat.com>
2798
2799         strerror_r-posix: work with glibc 2.13
2800         * lib/strerror_r.c (strerror_r): Fix return type.
2801
2802 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2803             Bruno Haible  <bruno@clisp.org>
2804
2805         uN_strstr: New unit tests.
2806         * modules/unistr/u8-strstr-tests: New file.
2807         * modules/unistr/u16-strstr-tests: New file.
2808         * modules/unistr/u32-strstr-tests: New file.
2809         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2810         * tests/unistr/test-u8-strstr.c: New file.
2811         * tests/unistr/test-u16-strstr.c: New file.
2812         * tests/unistr/test-u32-strstr.c: New file.
2813
2814 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2815             Bruno Haible  <bruno@clisp.org>
2816
2817         Make uN_strstr functions O(n) worst-case.
2818         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
2819         16-bit and 32-bit unit cases, use the unibyte algorithm from
2820         lib/mbsstr.c.
2821         * lib/unistr/u8-strstr.c: Include <string.h>.
2822         (UNIT_IS_UINT8_T): New macro.
2823         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
2824         (U_STRLEN, U_STRNLEN): New macros.
2825         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
2826         (U_STRLEN, U_STRNLEN): New macros.
2827         * modules/unistr/u8-strstr (Depends-on): Add strstr.
2828         (configure.ac): Update required libunistring version.
2829         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
2830         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
2831         malloca.
2832         (configure.ac): Update required libunistring version.
2833         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
2834         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
2835         malloca.
2836         (configure.ac): Update required libunistring version.
2837
2838 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2839             Bruno Haible  <bruno@clisp.org>
2840
2841         Prepare for faster uN_strstr functions.
2842         * lib/str-kmp.h: Support definable UNITs.
2843         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
2844         needle_len argument.
2845         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
2846         * lib/mbscasestr.c (mbscasestr): Likewise.
2847
2848 2011-01-21  Pádraig Brady <P@draigBrady.com>
2849
2850         malloca-tests: make faster by unsetting MALLOC_PERTURB_
2851         * tests/test-malloca.c (main): Unset the environment variable
2852         to greatly speed up the test.
2853         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
2854         * modules/malloca-tests: Depend on unsetenv.
2855
2856 2011-01-21  Pádraig Brady <P@draigBrady.com>
2857
2858         ignore-value: remove stdint dependency
2859         * lib/ignore-value.h: Remove <stdint.h>
2860         * modules/ignore-value: Remove stdint dependency.
2861
2862 2011-01-21  Jim Meyering  <meyering@redhat.com>
2863
2864         maint.mk: adjust variable name to be consistent with other gl_ vars
2865         * top/maint.mk (gl_public_submodule_commit): Rename the variable
2866         to be lower case.
2867
2868 2011-01-20  Jim Meyering  <meyering@redhat.com>
2869
2870         maint.mk: make "check" depend on public-submodule-commit by default
2871         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
2872
2873 2011-01-20  Bruno Haible  <bruno@clisp.org>
2874
2875         mbfile, mbiter: Complete change from 2008-12-21.
2876         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
2877         * m4/mbiter.m4 (gl_MBITER): Likewise.
2878
2879 2011-01-20  Jim Meyering  <meyering@redhat.com>
2880
2881         init.sh: insert space between each function name and "()"
2882         * tests/init.sh: Make it a little easier to see that a function's
2883         name is "warn_", and not "warn" when looking at the first part of
2884         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
2885
2886 2011-01-20  Jim Meyering  <meyering@redhat.com>
2887
2888         mountlist: clean up code formatting
2889         * lib/mountlist.c (read_file_system_list): Split a long line,
2890         correct bracing style, use NULL in place of "(struct statfs *)0",
2891         don't parenthesize return value, add spaces around "=" and after
2892         ";-in-for-stmt".
2893
2894 2011-01-14  Markus Duft <mduft@gentoo.org>
2895
2896         mountlist: add support for Interix
2897         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
2898         Apply statvfs to all entries of /dev/fs.
2899         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
2900         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
2901
2902 2011-01-20  Jim Meyering  <meyering@redhat.com>
2903
2904         maint.mk: improve the public-submodule-commit rule
2905         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
2906         to suppress printing of its commands... unless V=1.
2907         Add git submodule's --quiet option to suppress printing of e.g.,
2908         "Entering gnulib" output.
2909         "cd" into $(srcdir) before running git submodule.
2910
2911 2011-01-20  Bruno Haible  <bruno@clisp.org>
2912
2913         include_next: Fix bug introduced on 2011-01-18.
2914         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
2915         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
2916         ac_cv_header_... variable if the second argument is not 'check'.
2917         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
2918         gl_NEXT_HEADERS_INTERNAL.
2919
2920 2011-01-20  Bruno Haible  <bruno@clisp.org>
2921
2922         Allow the user to avoid the GNULIB_TEST_* macros.
2923         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
2924         Suggested by Paul Eggert.
2925
2926 2011-01-14  Jim Meyering  <meyering@redhat.com>
2927
2928         bootstrap: avoid failure when there is no .gitmodules file
2929         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
2930         has been assigned to, even when its value is the empty string.
2931         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
2932         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
2933         Reported by John W. Eaton <jwe@gnu.org>.
2934
2935 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         assume <ctype.h>, ..., <time.h> exist
2938         For years gnulib has been assuming the existence of the headers
2939         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
2940         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
2941         them, since they don't appear to be needed.
2942         * README (Portability guidelines): Document this.
2943         * lib/flock.c: Assume <fcntl.h> exists.
2944         * lib/regex_internal.h: Assume <locale.h> exists.
2945         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
2946         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
2947         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
2948         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
2949         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
2950         * m4/regex.m4 (gl_REGEX): Likewise.
2951         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
2952         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
2953         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
2954         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
2955         * tests/test-argp.c: Likewise.
2956         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
2957
2958         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
2959         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
2960         AA_APPLE_UNIVERSAL_BUILD.  See
2961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
2962         * NEWS: Document this.
2963
2964 2011-01-19  Eric Blake  <eblake@redhat.com>
2965
2966         c-stack: assume stack overflow if SA_SIGINFO unsupported
2967         * lib/c-stack.c (SIGACTION_WORKS): Rename...
2968         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
2969         sigaction will work.
2970         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
2971         behavior match Linux.
2972         * tests/test-c-stack.c (main): Prefer NULL for pointers.
2973
2974         stdbool-tests: accomodate Haiku
2975         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
2976
2977         binary-io: fix O_TEXT on Haiku
2978         * modules/binary-io (Depends-on): Add fcntl-h.
2979         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
2980         than blindly undefining O_TEXT.
2981         Reported by Scott McCreary.
2982
2983 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2984
2985         include_next: do not check for standard headers like stddef.h
2986
2987         I found this problem when modifying Emacs to use gnulib.
2988         I noticed that it added HAVE_STDDEF_H to config.h, even though
2989         gnulib always assumes <stddef.h> exists as per README and this
2990         symbol is unnecessary.
2991         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
2992         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
2993         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
2994         faster for headers like stddef.h that are known to exist.
2995         (gl_CHECK_NEXT_HEADERS): Use it.
2996         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
2997         rather than gl_CHECK_NEXT_HEADERS.
2998         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
2999         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3000
3001 2011-01-18  Eric Blake  <eblake@redhat.com>
3002
3003         ansi-c++-opt: skip C++ dependency style if C++ is unused
3004         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3005         tests when we know C++ compilation is not desired.
3006         Reported by Scott McCreary.
3007
3008 2011-01-18  Bruno Haible  <bruno@clisp.org>
3009
3010         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3011         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3012         (main): Perform test also when getrlimit and setrlimit don't exist or
3013         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3014         limiting the address space size using setrlimit, compare the address
3015         space size before and after the the test.
3016         * tests/test-dprintf-posix2.c: Likewise.
3017         * tests/test-fprintf-posix3.sh: Update skip messages.
3018         * tests/test-dprintf-posix2.sh: Likewise.
3019         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3020         * modules/dprintf-posix-tests (Depends-on): Likewise.
3021         Reported by Bruce Korb <bkorb@gnu.org> and
3022         Gary V. Vaughan <gary@gnu.org>.
3023
3024 2011-01-18  Bruno Haible  <bruno@clisp.org>
3025
3026         get-rusage-as: Improvement for Cygwin.
3027         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3028         areas that are merely reserved.
3029
3030 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3031
3032         strftime: remove dependencies on multibyte modules
3033
3034         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3035         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3036         only if __osf__ is defined, and I suspect OSF doesn't need these
3037         other modules.  If my guess is wrong, we'll need to come up with a
3038         variant of strftime that doesn't need the multibyte modules.
3039
3040         I discovered this problem when attempting modify Emacs to use the
3041         strftime module.  With the previous gnulib, this caused Emacs to
3042         need 31 new files, ranging from lib/config.charset to
3043         m4/wint_t.m4.  This was overkill and I expect would be offputting
3044         to the Emacs maintainers.  After this change, only 6 new files are
3045         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3046         stdbool.m4, and tm_gmtoff.m4.
3047
3048         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3049         Suggested by Bruno Haible in
3050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3051         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3052         and do not check for wchar.h.
3053         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3054         (Depends-on): Remove mbrlen, mbsinit, wchar.
3055
3056 2011-01-18  Bruno Haible  <bruno@clisp.org>
3057
3058         Tests for module 'get-rusage-as'.
3059         * modules/get-rusage-as-tests: New file.
3060         * tests/test-get-rusage-as.c: New file.
3061
3062         New module 'get-rusage-as'.
3063         * modules/get-rusage-as: New file.
3064         * lib/resource-ext.h: New file.
3065         * lib/get-rusage-as.c: New file.
3066
3067 2011-01-17  Eric Blake  <eblake@redhat.com>
3068
3069         sigaction: relax license from LGPLv3+ to LGPLv2+
3070         * modules/sigaction (License): Relax to LGPLv2+.
3071
3072 2011-01-14  Bruno Haible  <bruno@clisp.org>
3073
3074         filemode: Make function declarations usable in C++ mode.
3075         * lib/filemode.h: Enclose function declarations in extern "C" block.
3076         Reported by John W. Eaton <jwe@gnu.org>.
3077
3078 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3079
3080         save-cwd: no longer include "xgetcwd.h"
3081         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3082         This avoids a compilation failure in projects that use save-cwd
3083         without also using the xgetcwd module.
3084
3085 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3086
3087         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3088         This is so that a program like Emacs, which needs only dtoastr,
3089         does not have to bother with distributing and compiling ftoastr
3090         and ldtoastr.
3091         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3092         * modules/dtoastr, modules/ldtoastr: New files.
3093         * modules/ftoastr: Now works just for 'float'.
3094         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3095         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3096         dtoastr.c, ldtoastr.c.
3097
3098 2011-01-11  Jim Meyering  <meyering@redhat.com>
3099
3100         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3101         There is no need to work around the lack of the fchdir function,
3102         since gnulib can now provide a replacement when required.
3103         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3104         * modules/save-cwd (Depends-on): Add fchdir.
3105
3106 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3107
3108         openat, save-cwd: avoid xmalloc
3109
3110         This removes a direct (but undocumented) dependency of openat on
3111         xalloc, along with an indirect dependency via save-cwd.  It also
3112         removes a dependency of save-cwd on xgetcwd, and thereby
3113         indirectly on xalloc.  This change causes the openat substitute
3114         to fall back on save_cwd when memory is tight, and for save_cwd to
3115         fail instead of dying when memory is tight, but that's good enough.
3116         Problem and initial idea for fix reported by Bastien Roucaries in
3117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3118
3119         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3120         xalloc.h (for xmalloc).
3121         (openat_proc_name): Use malloc, not xmalloc.
3122         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3123         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3124
3125         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3126         This avoids heap allocation for file names whose lengths are in
3127         the range 512..1023, with the upper bound increasing to at most
3128         4031 depending on the platform's PATH_MAX.  (We do not want
3129         pathmax.h here as it might supply a non-constant PATH_MAX.)
3130         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3131         Perhaps they should be moved to malloca.h?
3132         (OPENAT_BUFFER_SIZE): Use them.
3133
3134 2011-01-10  Bruno Haible  <bruno@clisp.org>
3135
3136         doc: Update users.txt.
3137         * users.txt: Add recutils.
3138
3139 2011-01-09  Karl Berry  <karl@gnu.org>
3140
3141         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3142
3143         * doc/configmake.texi: New file.
3144         * doc/gnulib.texi: Include it.
3145         * modules/configmake: Move documentation from here.
3146
3147 2011-01-09  Bruno Haible  <bruno@clisp.org>
3148
3149         Update to Unicode 6.0.0.
3150         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3151         (get_lbp): Update for Unicode 6.0.0.
3152         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3153         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3154         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3155         U+11001, U+11038..U+11046. Remove U+06DE.
3156         (uc_width): Fix bounds of planes.
3157         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3158         lib/uniwidth/width.c.
3159         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3160         trailing whitespace removed.
3161         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3162         without comments, but with the original copyright notice.
3163         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3164         * lib/unicase/ignorable.h: Likewise.
3165         * lib/unicase/tocasefold.h: Likewise.
3166         * lib/unicase/tolower.h: Likewise.
3167         * lib/unicase/totitle.h: Likewise.
3168         * lib/unicase/toupper.h: Likewise.
3169         * lib/unictype/bidi_of.h: Likewise.
3170         * lib/unictype/blocks.h: Likewise.
3171         * lib/unictype/categ_C.h: Likewise.
3172         * lib/unictype/categ_Cn.h: Likewise.
3173         * lib/unictype/categ_L.h: Likewise.
3174         * lib/unictype/categ_Ll.h: Likewise.
3175         * lib/unictype/categ_Lm.h: Likewise.
3176         * lib/unictype/categ_Lo.h: Likewise.
3177         * lib/unictype/categ_Lu.h: Likewise.
3178         * lib/unictype/categ_M.h: Likewise.
3179         * lib/unictype/categ_Mc.h: Likewise.
3180         * lib/unictype/categ_Me.h: Likewise.
3181         * lib/unictype/categ_Mn.h: Likewise.
3182         * lib/unictype/categ_N.h: Likewise.
3183         * lib/unictype/categ_Nd.h: Likewise.
3184         * lib/unictype/categ_No.h: Likewise.
3185         * lib/unictype/categ_P.h: Likewise.
3186         * lib/unictype/categ_Po.h: Likewise.
3187         * lib/unictype/categ_S.h: Likewise.
3188         * lib/unictype/categ_Sc.h: Likewise.
3189         * lib/unictype/categ_Sk.h: Likewise.
3190         * lib/unictype/categ_Sm.h: Likewise.
3191         * lib/unictype/categ_So.h: Likewise.
3192         * lib/unictype/categ_of.h: Likewise.
3193         * lib/unictype/combining.h: Likewise.
3194         * lib/unictype/ctype_alnum.h: Likewise.
3195         * lib/unictype/ctype_alpha.h: Likewise.
3196         * lib/unictype/ctype_graph.h: Likewise.
3197         * lib/unictype/ctype_lower.h: Likewise.
3198         * lib/unictype/ctype_print.h: Likewise.
3199         * lib/unictype/ctype_punct.h: Likewise.
3200         * lib/unictype/ctype_upper.h: Likewise.
3201         * lib/unictype/decdigit.h: Likewise.
3202         * lib/unictype/digit.h: Likewise.
3203         * lib/unictype/numeric.h: Likewise.
3204         * lib/unictype/pr_alphabetic.h: Likewise.
3205         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3206         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3207         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3208         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3209         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3210         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3211         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3212         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3213         * lib/unictype/pr_case_ignorable.h: Likewise.
3214         * lib/unictype/pr_cased.h: Likewise.
3215         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
3216         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
3217         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
3218         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
3219         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
3220         * lib/unictype/pr_combining.h: Likewise.
3221         * lib/unictype/pr_composite.h: Likewise.
3222         * lib/unictype/pr_currency_symbol.h: Likewise.
3223         * lib/unictype/pr_decimal_digit.h: Likewise.
3224         * lib/unictype/pr_deprecated.h: Likewise.
3225         * lib/unictype/pr_format_control.h: Likewise.
3226         * lib/unictype/pr_grapheme_base.h: Likewise.
3227         * lib/unictype/pr_grapheme_extend.h: Likewise.
3228         * lib/unictype/pr_grapheme_link.h: Likewise.
3229         * lib/unictype/pr_id_continue.h: Likewise.
3230         * lib/unictype/pr_id_start.h: Likewise.
3231         * lib/unictype/pr_ideographic.h: Likewise.
3232         * lib/unictype/pr_lowercase.h: Likewise.
3233         * lib/unictype/pr_math.h: Likewise.
3234         * lib/unictype/pr_numeric.h: Likewise.
3235         * lib/unictype/pr_other_alphabetic.h: Likewise.
3236         * lib/unictype/pr_other_id_continue.h: Likewise.
3237         * lib/unictype/pr_other_math.h: Likewise.
3238         * lib/unictype/pr_punctuation.h: Likewise.
3239         * lib/unictype/pr_sentence_terminal.h: Likewise.
3240         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3241         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3242         * lib/unictype/pr_unified_ideograph.h: Likewise.
3243         * lib/unictype/pr_uppercase.h: Likewise.
3244         * lib/unictype/pr_xid_continue.h: Likewise.
3245         * lib/unictype/pr_xid_start.h: Likewise.
3246         * lib/unictype/scripts.h: Likewise.
3247         * lib/unictype/scripts_byname.gperf: Likewise.
3248         * lib/unictype/sy_java_ident.h: Likewise.
3249         * lib/unigbrk/gbrkprop.h: Likewise.
3250         * lib/unilbrk/lbrkprop1.h: Likewise.
3251         * lib/unilbrk/lbrkprop2.h: Likewise.
3252         * lib/uninorm/decomposition-table2.h: Likewise.
3253         * lib/uniwbrk/wbrkprop.h: Likewise.
3254         * tests/unicase/test-cased.c: Likewise.
3255         * tests/unicase/test-ignorable.c: Likewise.
3256         * tests/unicase/test-uc_tolower.c: Likewise.
3257         * tests/unicase/test-uc_totitle.c: Likewise.
3258         * tests/unicase/test-uc_toupper.c: Likewise.
3259         * tests/unictype/test-categ_C.c: Likewise.
3260         * tests/unictype/test-categ_Cn.c: Likewise.
3261         * tests/unictype/test-categ_L.c: Likewise.
3262         * tests/unictype/test-categ_Ll.c: Likewise.
3263         * tests/unictype/test-categ_Lm.c: Likewise.
3264         * tests/unictype/test-categ_Lo.c: Likewise.
3265         * tests/unictype/test-categ_Lu.c: Likewise.
3266         * tests/unictype/test-categ_M.c: Likewise.
3267         * tests/unictype/test-categ_Mc.c: Likewise.
3268         * tests/unictype/test-categ_Me.c: Likewise.
3269         * tests/unictype/test-categ_Mn.c: Likewise.
3270         * tests/unictype/test-categ_N.c: Likewise.
3271         * tests/unictype/test-categ_Nd.c: Likewise.
3272         * tests/unictype/test-categ_No.c: Likewise.
3273         * tests/unictype/test-categ_P.c: Likewise.
3274         * tests/unictype/test-categ_Po.c: Likewise.
3275         * tests/unictype/test-categ_S.c: Likewise.
3276         * tests/unictype/test-categ_Sc.c: Likewise.
3277         * tests/unictype/test-categ_Sk.c: Likewise.
3278         * tests/unictype/test-categ_Sm.c: Likewise.
3279         * tests/unictype/test-categ_So.c: Likewise.
3280         * tests/unictype/test-ctype_alnum.c: Likewise.
3281         * tests/unictype/test-ctype_alpha.c: Likewise.
3282         * tests/unictype/test-ctype_graph.c: Likewise.
3283         * tests/unictype/test-ctype_lower.c: Likewise.
3284         * tests/unictype/test-ctype_print.c: Likewise.
3285         * tests/unictype/test-ctype_punct.c: Likewise.
3286         * tests/unictype/test-ctype_upper.c: Likewise.
3287         * tests/unictype/test-decdigit.h: Likewise.
3288         * tests/unictype/test-digit.h: Likewise.
3289         * tests/unictype/test-numeric.h: Likewise.
3290         * tests/unictype/test-pr_alphabetic.c: Likewise.
3291         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3292         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3293         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3294         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3295         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3296         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3297         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3298         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3299         * tests/unictype/test-pr_case_ignorable.c: Likewise.
3300         * tests/unictype/test-pr_cased.c: Likewise.
3301         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
3302         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
3303         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
3304         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
3305         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
3306         * tests/unictype/test-pr_combining.c: Likewise.
3307         * tests/unictype/test-pr_composite.c: Likewise.
3308         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3309         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3310         * tests/unictype/test-pr_deprecated.c: Likewise.
3311         * tests/unictype/test-pr_format_control.c: Likewise.
3312         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3313         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3314         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3315         * tests/unictype/test-pr_id_continue.c: Likewise.
3316         * tests/unictype/test-pr_id_start.c: Likewise.
3317         * tests/unictype/test-pr_ideographic.c: Likewise.
3318         * tests/unictype/test-pr_lowercase.c: Likewise.
3319         * tests/unictype/test-pr_math.c: Likewise.
3320         * tests/unictype/test-pr_numeric.c: Likewise.
3321         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3322         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3323         * tests/unictype/test-pr_other_math.c: Likewise.
3324         * tests/unictype/test-pr_punctuation.c: Likewise.
3325         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3326         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3327         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3328         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3329         * tests/unictype/test-pr_uppercase.c: Likewise.
3330         * tests/unictype/test-pr_xid_continue.c: Likewise.
3331         * tests/unictype/test-pr_xid_start.c: Likewise.
3332         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3333         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3334         changes.
3335         * lib/unictype/categ_Cc.h: Likewise.
3336         * lib/unictype/categ_Cf.h: Likewise.
3337         * lib/unictype/categ_Co.h: Likewise.
3338         * lib/unictype/categ_Cs.h: Likewise.
3339         * lib/unictype/categ_Lt.h: Likewise.
3340         * lib/unictype/categ_Nl.h: Likewise.
3341         * lib/unictype/categ_Pc.h: Likewise.
3342         * lib/unictype/categ_Pd.h: Likewise.
3343         * lib/unictype/categ_Pe.h: Likewise.
3344         * lib/unictype/categ_Pf.h: Likewise.
3345         * lib/unictype/categ_Pi.h: Likewise.
3346         * lib/unictype/categ_Ps.h: Likewise.
3347         * lib/unictype/categ_Z.h: Likewise.
3348         * lib/unictype/categ_Zl.h: Likewise.
3349         * lib/unictype/categ_Zp.h: Likewise.
3350         * lib/unictype/categ_Zs.h: Likewise.
3351         * lib/unictype/ctype_blank.h: Likewise.
3352         * lib/unictype/ctype_cntrl.h: Likewise.
3353         * lib/unictype/ctype_digit.h: Likewise.
3354         * lib/unictype/ctype_space.h: Likewise.
3355         * lib/unictype/ctype_xdigit.h: Likewise.
3356         * lib/unictype/mirror.h: Likewise.
3357         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3358         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3359         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3360         * lib/unictype/pr_bidi_control.h: Likewise.
3361         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3362         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3363         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3364         * lib/unictype/pr_bidi_pdf.h: Likewise.
3365         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3366         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3367         * lib/unictype/pr_dash.h: Likewise.
3368         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3369         * lib/unictype/pr_diacritic.h: Likewise.
3370         * lib/unictype/pr_extender.h: Likewise.
3371         * lib/unictype/pr_hex_digit.h: Likewise.
3372         * lib/unictype/pr_hyphen.h: Likewise.
3373         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3374         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3375         * lib/unictype/pr_ignorable_control.h: Likewise.
3376         * lib/unictype/pr_iso_control.h: Likewise.
3377         * lib/unictype/pr_join_control.h: Likewise.
3378         * lib/unictype/pr_left_of_pair.h: Likewise.
3379         * lib/unictype/pr_line_separator.h: Likewise.
3380         * lib/unictype/pr_logical_order_exception.h: Likewise.
3381         * lib/unictype/pr_non_break.h: Likewise.
3382         * lib/unictype/pr_not_a_character.h: Likewise.
3383         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3384         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3385         * lib/unictype/pr_other_id_start.h: Likewise.
3386         * lib/unictype/pr_other_lowercase.h: Likewise.
3387         * lib/unictype/pr_other_uppercase.h: Likewise.
3388         * lib/unictype/pr_paired_punctuation.h: Likewise.
3389         * lib/unictype/pr_paragraph_separator.h: Likewise.
3390         * lib/unictype/pr_pattern_syntax.h: Likewise.
3391         * lib/unictype/pr_pattern_white_space.h: Likewise.
3392         * lib/unictype/pr_private_use.h: Likewise.
3393         * lib/unictype/pr_quotation_mark.h: Likewise.
3394         * lib/unictype/pr_radical.h: Likewise.
3395         * lib/unictype/pr_soft_dotted.h: Likewise.
3396         * lib/unictype/pr_space.h: Likewise.
3397         * lib/unictype/pr_titlecase.h: Likewise.
3398         * lib/unictype/pr_variation_selector.h: Likewise.
3399         * lib/unictype/pr_white_space.h: Likewise.
3400         * lib/unictype/pr_zero_width.h: Likewise.
3401         * lib/unictype/sy_c_ident.h: Likewise.
3402         * lib/unictype/sy_c_whitespace.h: Likewise.
3403         * lib/unictype/sy_java_whitespace.h: Likewise.
3404         * lib/uninorm/composition-table.gperf: Likewise.
3405         * lib/uninorm/decomposition-table1.h: Likewise.
3406         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
3407         LB8.
3408         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3409         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3410         * modules/unictype/*: Bump version number of expected libunistring
3411         version.
3412
3413 2011-01-09  Bruno Haible  <bruno@clisp.org>
3414
3415         Update to Unicode 5.2.0.
3416         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
3417         trailing whitespace removed.
3418
3419 2011-01-09  Bruno Haible  <bruno@clisp.org>
3420
3421         New Unicode character properties, from Unicode 5.2.0.
3422         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
3423         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
3424         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
3425         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
3426         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
3427         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
3428         uc_is_property_cased, uc_is_property_case_ignorable,
3429         uc_is_property_changes_when_lowercased,
3430         uc_is_property_changes_when_uppercased,
3431         uc_is_property_changes_when_titlecased,
3432         uc_is_property_changes_when_casefolded,
3433         uc_is_property_changes_when_casemapped): New declarations.
3434         * lib/unictype/pr_byname.gperf: Add the new properties.
3435         * modules/unictype/property-byname (Depends-on): Depend on the new
3436         properties modules.
3437         * modules/unictype/property-all (Depends-on): Likewise.
3438         * MODULES.html.sh (Unicode string functions): Add
3439         unictype/property-case-ignorable, unictype/property-cased,
3440         unictype/property-changes-when-casefolded,
3441         unictype/property-changes-when-casemapped,
3442         unictype/property-changes-when-lowercased,
3443         unictype/property-changes-when-titlecased,
3444         unictype/property-changes-when-uppercased.
3445
3446         New module 'unictype/property-changes-when-casemapped'.
3447         * modules/unictype/property-changes-when-casemapped: New file.
3448         * lib/unictype/pr_changes_when_casemapped.c: New file.
3449         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
3450         generated by gen-uni-tables.
3451         * modules/unictype/property-changes-when-casemapped-tests: New file.
3452         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
3453         automatically generated by gen-uni-tables.
3454
3455         New module 'unictype/property-changes-when-casefolded'.
3456         * modules/unictype/property-changes-when-casefolded: New file.
3457         * lib/unictype/pr_changes_when_casefolded.c: New file.
3458         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
3459         generated by gen-uni-tables.
3460         * modules/unictype/property-changes-when-casefolded-tests: New file.
3461         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
3462         automatically generated by gen-uni-tables.
3463
3464         New module 'unictype/property-changes-when-titlecased'.
3465         * modules/unictype/property-changes-when-titlecased: New file.
3466         * lib/unictype/pr_changes_when_titlecased.c: New file.
3467         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
3468         generated by gen-uni-tables.
3469         * modules/unictype/property-changes-when-titlecased-tests: New file.
3470         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
3471         automatically generated by gen-uni-tables.
3472
3473         New module 'unictype/property-changes-when-uppercased'.
3474         * modules/unictype/property-changes-when-uppercased: New file.
3475         * lib/unictype/pr_changes_when_uppercased.c: New file.
3476         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
3477         generated by gen-uni-tables.
3478         * modules/unictype/property-changes-when-uppercased-tests: New file.
3479         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
3480         automatically generated by gen-uni-tables.
3481
3482         New module 'unictype/property-changes-when-lowercased'.
3483         * modules/unictype/property-changes-when-lowercased: New file.
3484         * lib/unictype/pr_changes_when_lowercased.c: New file.
3485         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
3486         generated by gen-uni-tables.
3487         * modules/unictype/property-changes-when-lowercased-tests: New file.
3488         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
3489         automatically generated by gen-uni-tables.
3490
3491         New module 'unictype/property-case-ignorable'.
3492         * modules/unictype/property-case-ignorable: New file.
3493         * lib/unictype/pr_case_ignorable.c: New file.
3494         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
3495         by gen-uni-tables.
3496         * modules/unictype/property-case-ignorable-tests: New file.
3497         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
3498         generated by gen-uni-tables.
3499
3500         New module 'unictype/property-cased'.
3501         * modules/unictype/property-cased: New file.
3502         * lib/unictype/pr_cased.c: New file.
3503         * lib/unictype/pr_cased.h: New file, automatically generated by
3504         gen-uni-tables.
3505         * modules/unictype/property-cased-tests: New file.
3506         * tests/unictype/test-pr_cased.c: New file, automatically generated by
3507         gen-uni-tables.
3508
3509 2011-01-09  Bruno Haible  <bruno@clisp.org>
3510
3511         Update to Unicode 5.2.0.
3512         * lib/gen-uni-tables.c (output_predicate, output_category,
3513         output_combclass, output_bidi_category, output_decimal_digit_test,
3514         output_decimal_digit, output_digit_test, output_digit,
3515         output_numeric_test, output_numeric, output_mirror, output_scripts,
3516         output_scripts_byname, output_blocks, output_ident_category): Fix
3517         comment header.
3518         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
3519         get_wbp.
3520         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
3521         items.
3522         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
3523         Changes_When_Lowercased, Changes_When_Uppercased,
3524         Changes_When_Titlecased, Changes_When_Casefolded,
3525         Changes_When_Casemapped.
3526         (is_property_alphabetic, is_property_default_ignorable_code_point):
3527         Update for Unicode 5.2.0.
3528         (is_property_cased, is_property_case_ignorable,
3529         is_property_changes_when_lowercased,
3530         is_property_changes_when_uppercased,
3531         is_property_changes_when_titlecased,
3532         is_property_changes_when_casefolded,
3533         is_property_changes_when_casemapped): New functions.
3534         (output_properties): Output also the properties cased, case_ignorable,
3535         changes_when_lowercased, changes_when_uppercased,
3536         changes_when_titlecased, changes_when_casefolded,
3537         changes_when_casemapped.
3538         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
3539         Unicode TR#11 revision 17 -> 19.
3540         (LBP_CP): New enumeration value.
3541         (LBP_*): Adjust values accordingly.
3542         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3543         TR#14 revision 22 -> 24.
3544         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
3545         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
3546         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3547         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
3548         is_WBP_MIDLETTER.
3549         (output_composition_tables): Allow for 24 bits instead of 16 bits in
3550         the code1 and code2 of each composition rule.
3551         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
3552         * lib/unicase/ignorable.h: Likewise.
3553         * lib/unicase/tocasefold.h: Likewise.
3554         * lib/unicase/tolower.h: Likewise.
3555         * lib/unicase/totitle.h: Likewise.
3556         * lib/unicase/toupper.h: Likewise.
3557         * lib/unictype/bidi_of.h: Likewise.
3558         * lib/unictype/blocks.h: Likewise.
3559         * lib/unictype/categ_C.h: Likewise.
3560         * lib/unictype/categ_Cf.h: Likewise.
3561         * lib/unictype/categ_Cn.h: Likewise.
3562         * lib/unictype/categ_L.h: Likewise.
3563         * lib/unictype/categ_Ll.h: Likewise.
3564         * lib/unictype/categ_Lm.h: Likewise.
3565         * lib/unictype/categ_Lo.h: Likewise.
3566         * lib/unictype/categ_Lu.h: Likewise.
3567         * lib/unictype/categ_M.h: Likewise.
3568         * lib/unictype/categ_Mc.h: Likewise.
3569         * lib/unictype/categ_Mn.h: Likewise.
3570         * lib/unictype/categ_N.h: Likewise.
3571         * lib/unictype/categ_Nd.h: Likewise.
3572         * lib/unictype/categ_Nl.h: Likewise.
3573         * lib/unictype/categ_No.h: Likewise.
3574         * lib/unictype/categ_P.h: Likewise.
3575         * lib/unictype/categ_Pd.h: Likewise.
3576         * lib/unictype/categ_Po.h: Likewise.
3577         * lib/unictype/categ_S.h: Likewise.
3578         * lib/unictype/categ_Sc.h: Likewise.
3579         * lib/unictype/categ_So.h: Likewise.
3580         * lib/unictype/categ_of.h: Likewise.
3581         * lib/unictype/combining.h: Likewise.
3582         * lib/unictype/ctype_alnum.h: Likewise.
3583         * lib/unictype/ctype_alpha.h: Likewise.
3584         * lib/unictype/ctype_graph.h: Likewise.
3585         * lib/unictype/ctype_lower.h: Likewise.
3586         * lib/unictype/ctype_print.h: Likewise.
3587         * lib/unictype/ctype_punct.h: Likewise.
3588         * lib/unictype/ctype_upper.h: Likewise.
3589         * lib/unictype/decdigit.h: Likewise.
3590         * lib/unictype/digit.h: Likewise.
3591         * lib/unictype/numeric.h: Likewise.
3592         * lib/unictype/pr_alphabetic.h: Likewise.
3593         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3594         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3595         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3596         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3597         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3598         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3599         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3600         * lib/unictype/pr_combining.h: Likewise.
3601         * lib/unictype/pr_composite.h: Likewise.
3602         * lib/unictype/pr_currency_symbol.h: Likewise.
3603         * lib/unictype/pr_dash.h: Likewise.
3604         * lib/unictype/pr_decimal_digit.h: Likewise.
3605         * lib/unictype/pr_deprecated.h: Likewise.
3606         * lib/unictype/pr_diacritic.h: Likewise.
3607         * lib/unictype/pr_extender.h: Likewise.
3608         * lib/unictype/pr_grapheme_base.h: Likewise.
3609         * lib/unictype/pr_grapheme_extend.h: Likewise.
3610         * lib/unictype/pr_grapheme_link.h: Likewise.
3611         * lib/unictype/pr_id_continue.h: Likewise.
3612         * lib/unictype/pr_id_start.h: Likewise.
3613         * lib/unictype/pr_ideographic.h: Likewise.
3614         * lib/unictype/pr_ignorable_control.h: Likewise.
3615         * lib/unictype/pr_logical_order_exception.h: Likewise.
3616         * lib/unictype/pr_lowercase.h: Likewise.
3617         * lib/unictype/pr_numeric.h: Likewise.
3618         * lib/unictype/pr_other_alphabetic.h: Likewise.
3619         * lib/unictype/pr_punctuation.h: Likewise.
3620         * lib/unictype/pr_sentence_terminal.h: Likewise.
3621         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3622         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3623         * lib/unictype/pr_unified_ideograph.h: Likewise.
3624         * lib/unictype/pr_uppercase.h: Likewise.
3625         * lib/unictype/pr_xid_continue.h: Likewise.
3626         * lib/unictype/pr_xid_start.h: Likewise.
3627         * lib/unictype/pr_zero_width.h: Likewise.
3628         * lib/unictype/scripts.h: Likewise.
3629         * lib/unictype/scripts_byname.gperf: Likewise.
3630         * lib/unictype/sy_java_ident.h: Likewise.
3631         * lib/unigbrk/gbrkprop.h: Likewise.
3632         * lib/unilbrk/lbrkprop1.h: Likewise.
3633         * lib/unilbrk/lbrkprop2.h: Likewise.
3634         * lib/unilbrk/lbrktables.h: Likewise.
3635         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
3636         LBP_CP. Implement rule LB30.
3637         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
3638         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
3639         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
3640         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
3641         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3642         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3643         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3644         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3645         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3646         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3647         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3648         bits instead of 16 bits in the code1 and code2 of each composition
3649         rule.
3650         (uc_composition): Update for Unicode 5.2.0.
3651         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3652         * lib/uninorm/decomposition-table2.h: Likewise.
3653         * lib/uniwbrk/wbrkprop.h: Likewise.
3654         * tests/unicase/test-cased.c: Likewise.
3655         * tests/unicase/test-ignorable.c: Likewise.
3656         * tests/unicase/test-uc_tolower.c: Likewise.
3657         * tests/unicase/test-uc_totitle.c: Likewise.
3658         * tests/unicase/test-uc_toupper.c: Likewise.
3659         * tests/unictype/test-categ_C.c: Likewise.
3660         * tests/unictype/test-categ_Cf.c: Likewise.
3661         * tests/unictype/test-categ_Cn.c: Likewise.
3662         * tests/unictype/test-categ_L.c: Likewise.
3663         * tests/unictype/test-categ_Ll.c: Likewise.
3664         * tests/unictype/test-categ_Lm.c: Likewise.
3665         * tests/unictype/test-categ_Lo.c: Likewise.
3666         * tests/unictype/test-categ_Lu.c: Likewise.
3667         * tests/unictype/test-categ_M.c: Likewise.
3668         * tests/unictype/test-categ_Mc.c: Likewise.
3669         * tests/unictype/test-categ_Mn.c: Likewise.
3670         * tests/unictype/test-categ_N.c: Likewise.
3671         * tests/unictype/test-categ_Nd.c: Likewise.
3672         * tests/unictype/test-categ_Nl.c: Likewise.
3673         * tests/unictype/test-categ_No.c: Likewise.
3674         * tests/unictype/test-categ_P.c: Likewise.
3675         * tests/unictype/test-categ_Pd.c: Likewise.
3676         * tests/unictype/test-categ_Po.c: Likewise.
3677         * tests/unictype/test-categ_S.c: Likewise.
3678         * tests/unictype/test-categ_Sc.c: Likewise.
3679         * tests/unictype/test-categ_So.c: Likewise.
3680         * tests/unictype/test-ctype_alnum.c: Likewise.
3681         * tests/unictype/test-ctype_alpha.c: Likewise.
3682         * tests/unictype/test-ctype_graph.c: Likewise.
3683         * tests/unictype/test-ctype_lower.c: Likewise.
3684         * tests/unictype/test-ctype_print.c: Likewise.
3685         * tests/unictype/test-ctype_punct.c: Likewise.
3686         * tests/unictype/test-ctype_upper.c: Likewise.
3687         * tests/unictype/test-decdigit.h: Likewise.
3688         * tests/unictype/test-digit.h: Likewise.
3689         * tests/unictype/test-numeric.h: Likewise.
3690         * tests/unictype/test-pr_alphabetic.c: Likewise.
3691         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3692         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3693         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3694         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3695         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3696         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3697         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3698         * tests/unictype/test-pr_combining.c: Likewise.
3699         * tests/unictype/test-pr_composite.c: Likewise.
3700         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3701         * tests/unictype/test-pr_dash.c: Likewise.
3702         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3703         * tests/unictype/test-pr_deprecated.c: Likewise.
3704         * tests/unictype/test-pr_diacritic.c: Likewise.
3705         * tests/unictype/test-pr_extender.c: Likewise.
3706         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3707         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3708         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3709         * tests/unictype/test-pr_id_continue.c: Likewise.
3710         * tests/unictype/test-pr_id_start.c: Likewise.
3711         * tests/unictype/test-pr_ideographic.c: Likewise.
3712         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3713         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3714         * tests/unictype/test-pr_lowercase.c: Likewise.
3715         * tests/unictype/test-pr_numeric.c: Likewise.
3716         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3717         * tests/unictype/test-pr_punctuation.c: Likewise.
3718         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3719         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3720         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3721         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3722         * tests/unictype/test-pr_uppercase.c: Likewise.
3723         * tests/unictype/test-pr_xid_continue.c: Likewise.
3724         * tests/unictype/test-pr_xid_start.c: Likewise.
3725         * tests/unictype/test-pr_zero_width.c: Likewise.
3726         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3727         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
3728         changed behaviour: line breaking is now disallowed between a letter
3729         or '=' and '('.
3730         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3731         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3732         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3733         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
3734         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3735         lib/uniwidth/width.c.
3736         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
3737         without comments, but with the original copyright notice.
3738         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3739         changes.
3740         * lib/unictype/categ_Cc.h: Likewise.
3741         * lib/unictype/categ_Co.h: Likewise.
3742         * lib/unictype/categ_Cs.h: Likewise.
3743         * lib/unictype/categ_Lt.h: Likewise.
3744         * lib/unictype/categ_Me.h: Likewise.
3745         * lib/unictype/categ_Pc.h: Likewise.
3746         * lib/unictype/categ_Pe.h: Likewise.
3747         * lib/unictype/categ_Pf.h: Likewise.
3748         * lib/unictype/categ_Pi.h: Likewise.
3749         * lib/unictype/categ_Ps.h: Likewise.
3750         * lib/unictype/categ_Sk.h: Likewise.
3751         * lib/unictype/categ_Sm.h: Likewise.
3752         * lib/unictype/categ_Z.h: Likewise.
3753         * lib/unictype/categ_Zl.h: Likewise.
3754         * lib/unictype/categ_Zp.h: Likewise.
3755         * lib/unictype/categ_Zs.h: Likewise.
3756         * lib/unictype/ctype_blank.h: Likewise.
3757         * lib/unictype/ctype_cntrl.h: Likewise.
3758         * lib/unictype/ctype_digit.h: Likewise.
3759         * lib/unictype/ctype_space.h: Likewise.
3760         * lib/unictype/ctype_xdigit.h: Likewise.
3761         * lib/unictype/mirror.h: Likewise.
3762         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3763         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3764         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3765         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3766         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3767         * lib/unictype/pr_bidi_control.h: Likewise.
3768         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3769         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3770         * lib/unictype/pr_bidi_pdf.h: Likewise.
3771         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3772         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3773         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3774         * lib/unictype/pr_format_control.h: Likewise.
3775         * lib/unictype/pr_hex_digit.h: Likewise.
3776         * lib/unictype/pr_hyphen.h: Likewise.
3777         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3778         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3779         * lib/unictype/pr_iso_control.h: Likewise.
3780         * lib/unictype/pr_join_control.h: Likewise.
3781         * lib/unictype/pr_left_of_pair.h: Likewise.
3782         * lib/unictype/pr_line_separator.h: Likewise.
3783         * lib/unictype/pr_math.h: Likewise.
3784         * lib/unictype/pr_non_break.h: Likewise.
3785         * lib/unictype/pr_not_a_character.h: Likewise.
3786         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3787         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3788         * lib/unictype/pr_other_id_continue.h: Likewise.
3789         * lib/unictype/pr_other_id_start.h: Likewise.
3790         * lib/unictype/pr_other_lowercase.h: Likewise.
3791         * lib/unictype/pr_other_math.h: Likewise.
3792         * lib/unictype/pr_other_uppercase.h: Likewise.
3793         * lib/unictype/pr_paired_punctuation.h: Likewise.
3794         * lib/unictype/pr_paragraph_separator.h: Likewise.
3795         * lib/unictype/pr_pattern_syntax.h: Likewise.
3796         * lib/unictype/pr_pattern_white_space.h: Likewise.
3797         * lib/unictype/pr_private_use.h: Likewise.
3798         * lib/unictype/pr_quotation_mark.h: Likewise.
3799         * lib/unictype/pr_radical.h: Likewise.
3800         * lib/unictype/pr_soft_dotted.h: Likewise.
3801         * lib/unictype/pr_space.h: Likewise.
3802         * lib/unictype/pr_titlecase.h: Likewise.
3803         * lib/unictype/pr_variation_selector.h: Likewise.
3804         * lib/unictype/pr_white_space.h: Likewise.
3805         * lib/unictype/sy_c_ident.h: Likewise.
3806         * lib/unictype/sy_c_whitespace.h: Likewise.
3807         * lib/unictype/sy_java_whitespace.h: Likewise.
3808         * modules/uni*/*: Bump version number of expected libunistring version.
3809         Reported by Simon Josefsson.
3810
3811 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3812
3813         useless-if-before-free: fix typo in --help and make the internal,
3814         automatic version date update process work once again.
3815         --help output contained a NUL character instead of the
3816         backslash-zero that was intended.  Also, the "must lie within
3817         the first 8 lines" line is on line 9, and hence not getting
3818         automatically updated.
3819         * build-aux/useless-if-before-free: Fix the former by adding a
3820         backslash, and the latter by condensing the three lines of what-it-does
3821         to a single line, leaving one line of slack for the future.
3822
3823 2011-01-09  Bruno Haible  <bruno@clisp.org>
3824
3825         uniwidth/width: Fix width of U+1D173..U+1D17A.
3826         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
3827         symbolic_width, output_width_property_test): New functions.
3828         (main): Invoke output_nonspacing_property, output_width_property_test.
3829         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
3830         U+1D173..U+1D17A.
3831         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
3832         1.
3833         * modules/uniwidth/*: Bump version number of expected libunistring
3834         version.
3835         * modules/unilbrk/*: Likewise.
3836
3837 2011-01-08  Bruno Haible  <bruno@clisp.org>
3838
3839         uninorm tests: Preserve copyright of Unicode data file.
3840         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
3841         Mention modifications.
3842
3843 2011-01-08  Bruno Haible  <bruno@clisp.org>
3844
3845         gen-uni-tables: Prepare for Unicode 5.2.0.
3846         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
3847         (debug_output_lbp, output_lbp): Update.
3848
3849 2011-01-08  Bruno Haible  <bruno@clisp.org>
3850
3851         unilbrk: Clarify gen-uni-tables.c code.
3852         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
3853         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
3854         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
3855
3856 2011-01-07  Bruno Haible  <bruno@clisp.org>
3857
3858         strtod: Restore errno when successfully parsing Infinity or NaN.
3859         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
3860         restore the original errno.
3861
3862 2011-01-07  Bruno Haible  <bruno@clisp.org>
3863
3864         remove test: Avoid failure on HP-UX 11.
3865         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
3866
3867 2011-01-07  Bruno Haible  <bruno@clisp.org>
3868
3869         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
3870         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
3871         error code.
3872
3873 2011-01-07  Pádraig Brady <P@draigBrady.com>
3874
3875         ignore-value: fixup comments, and add Eric Blake
3876         as an author since he rewrote the macros.
3877         * lib/ignore-value.h (ignore_value):  State that
3878         we now support aggregates.  Also specify exactly
3879         when the GCC warn_unused_result feature was added.
3880
3881 2011-01-06  Eric Blake  <eblake@redhat.com>
3882
3883         ignore-value: support aggregate types
3884         * lib/ignore-value.h (ignore_value): Provide separate gcc
3885         definition.
3886         * modules/ignore-value-tests: New test module.
3887         * tests/test-ignore-value.c: New test.
3888
3889         maint.mk: improve sc_prohibit_strcmp regex
3890         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
3891         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
3892         definition of STRNEQ.
3893
3894         signal: work around Haiku issue with SIGBUS
3895         * lib/siglist.h: Add comment.
3896         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
3897         strsignal's favoring of SIGSEGV.
3898         * tests/test-signal.c (main): Avoid test failure.
3899         * doc/posix-headers/signal.texi (signal.h): Document the issue.
3900         Reported by Scott McCreary.
3901
3902         maint.mk: add pre-release check to ensure submodule commits are public
3903         * top/maint.mk (public-submodule-commit): New rule.
3904         (submodule-checks): New variable.
3905         (alpha beta stable): Depend on the variable.
3906
3907 2011-01-05  Pádraig Brady <P@draigBrady.com>
3908         and Jim Meyering  <meyering@redhat.com>
3909
3910         ignore-value: make ignore_value more generic; deprecate ignore_ptr
3911         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
3912         (ATTRIBUTE_DEPRECATED): Define.
3913         (_ignore_case): New function.
3914         (ignore_value): New macro, to replace the old function.
3915         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
3916         * modules/ignore-value (Depends-on): Add stdint.
3917
3918 2011-01-04  Eric Blake  <eblake@redhat.com>
3919
3920         doc: regenerate INSTALL
3921         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
3922         @firstparagraphindent support, now that autoconf dropped it.
3923         (INSTALL_PRELUDE): Reinstate old macro.
3924         * doc/install.texi: Resync from autoconf.
3925         * doc/INSTALL: Reflect recent autoconf update.
3926         * doc/INSTALL.ISO: Likewise.
3927         * doc/INSTALL.UTF-8: Likewise.
3928         Reported by Karl Berry.
3929
3930 2011-01-04  Bruce Korb  <address@hidden>
3931
3932         git-version-gen: avoid a sub-shell
3933         * build-aux/git-version-gen: Redirect stderr in `...` via
3934         "exec 2>...", rather than via an added sub-shell.
3935
3936 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
3937
3938         git-version-gen: use (...) rather than sh -c '...'
3939         * build-aux/git-version-gen: Rather than hard-coding a shell's name
3940         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
3941
3942 2011-01-03  Jim Meyering  <meyering@redhat.com>
3943
3944         git-version-gen: convert leading TABs to spaces
3945         * build-aux/git-version-gen: Expand leading TABs.
3946
3947         git-version-gen: handle failed "git rev-list"
3948         * build-aux/git-version-gen: Rather than leaking a "fatal" error
3949         from git and proceeding as if it had succeeded but printed no SHA1
3950         checksums, suppress the diagnostic and handle the failure.
3951         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
3952
3953         git-version-gen: include command name in one more diagnostic
3954         * build-aux/git-version-gen: When the required .tarball-version file
3955         was missing or unreadable, you might see the diagnostic from "cat",
3956         but no trace of the name of the invoking script.  Now, you still see
3957         the diagnostic from cat, but also get one from "git-version-gen: ".
3958         Inspired by a patch from Bruce Korb.
3959
3960         update-copyright: adjust test to match changed code
3961         * tests/test-update-copyright.sh: Change test's expected output
3962         to match new actual output.
3963
3964 2011-01-02  Bruno Haible  <bruno@clisp.org>
3965
3966         getlogin_r: Avoid test failure on HP-UX 11.
3967         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
3968         ERANGE when the second argument is zero.
3969         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
3970         portability problem.
3971
3972 2011-01-02  Bruce Korb  <bkorb@gnu.org>
3973
3974         * build-aux/update-copyright: doc Simon's changes
3975
3976 2011-01-02  Simon Josefsson  <simon@josefsson.org>
3977
3978         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
3979         environment variable.
3980
3981 2011-01-02  Bruno Haible  <bruno@clisp.org>
3982
3983         unigbrk: Avoid gcc warnings.
3984         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
3985         unused variable.
3986         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
3987         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
3988         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
3989         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
3990         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
3991         Change type of first argument to 'const char *'.
3992         (main): Remove unused variable.
3993         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
3994         type of first argument to 'const char *'.
3995         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
3996         Likewise.
3997         (main): Change type of variable 's'.
3998         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
3999         to 'int'.
4000
4001 2011-01-02  Bruno Haible  <bruno@clisp.org>
4002
4003         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4004         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4005         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4006         bug.
4007         * lib/pwrite.c: Undo 2010-12-31 patch.
4008         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4009
4010 2011-01-02  Bruno Haible  <bruno@clisp.org>
4011
4012         pread: Fix test whether it works.
4013         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4014
4015 2011-01-02  Bruno Haible  <bruno@clisp.org>
4016
4017         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4018         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4019         ends in "6". Don't require a specific month name. Try also the locale
4020         names found on HP-UX 11 and Solaris 7.
4021
4022 2011-01-02  Bruno Haible  <bruno@clisp.org>
4023
4024         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4025         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4026         C linkage.
4027         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4028
4029 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4030
4031         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4032         for consistency, since the "cluster" term is not used elsewhere.
4033         * lib/unigbrk.in.h: Update name.
4034         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4035         * lib/unigbrk/u16-grapheme-next.c: Update name.
4036         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4037         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4038         * lib/unigbrk/u32-grapheme-next.c: Update name.
4039         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4040         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4041         * lib/unigbrk/u8-grapheme-next.c: Update name.
4042         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4043         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4044         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4045         Suggested by Bruno Haible.
4046
4047 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4048
4049         Remove module 'u8-grapheme-len' as too redundant with
4050         'u8-grapheme-next'.
4051         * modules/unigbrk/u8-grapheme-len: Delete file.
4052         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4053         * lib/unigbrk.in.h: Remove prototype for deleted function.
4054         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4055         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4056
4057         Remove module 'u16-grapheme-len' as too redundant with
4058         'u16-grapheme-next'.
4059         * modules/unigbrk/u16-grapheme-len: Delete file.
4060         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4061         * lib/unigbrk.in.h: Remove prototype for deleted function.
4062         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4063         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4064
4065         Remove module 'u32-grapheme-len' as too redundant with
4066         'u32-grapheme-next'.
4067         * modules/unigbrk/u32-grapheme-len: Delete file.
4068         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4069         * lib/unigbrk.in.h: Remove prototype for deleted function.
4070         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4071         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4072
4073         Suggested by Bruno Haible.
4074
4075 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4076
4077         * unigbrk.in.h: Fix typo: "ben" => "been".
4078         Reported by Bruno Haible.
4079
4080 2011-01-01  Jim Meyering  <meyering@redhat.com>
4081
4082         maint: update almost all copyright ranges to include 2011
4083         Run the new "make update-copyright" rule.
4084
4085 2011-01-01  Jim Meyering  <meyering@redhat.com>
4086
4087         maint: update-copyright: exempt doc/INSTALL*
4088         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4089         since they are generated.  Suggested by Bruno Haible.
4090
4091 2011-01-01  Jim Meyering  <meyering@redhat.com>
4092
4093         maint: refine the update-copyright rule
4094         * Makefile (update-copyright): Also exclude any file that includes
4095         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4096         code that merely generates the comment.
4097
4098 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4099
4100         New module 'u8-grapheme-len'.
4101         * modules/unigbrk/u8-grapheme-len: New file.
4102         * modules/unigbrk/u8-grapheme-len-tests: New file.
4103         * lib/unigbrk.in.h: Add prototype for new function.
4104         * lib/unigbrk/u8-grapheme-len.c: New file.
4105         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4106
4107         New module 'u16-grapheme-len'.
4108         * modules/unigbrk/u16-grapheme-len: New file.
4109         * modules/unigbrk/u16-grapheme-len-tests: New file.
4110         * lib/unigbrk.in.h: Add prototype for new function.
4111         * lib/unigbrk/u16-grapheme-len.c: New file.
4112         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4113
4114         New module 'u32-grapheme-len'.
4115         * modules/unigbrk/u32-grapheme-len: New file.
4116         * modules/unigbrk/u32-grapheme-len-tests: New file.
4117         * lib/unigbrk.in.h: Add prototype for new function.
4118         * lib/unigbrk/u32-grapheme-len.c: New file.
4119         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4120
4121         New module 'u8-grapheme-next'.
4122         * modules/unigbrk/u8-grapheme-next: New file.
4123         * modules/unigbrk/u8-grapheme-next-tests: New file.
4124         * lib/unigbrk.in.h: Add prototype for new function.
4125         * lib/unigbrk/u8-grapheme-next.c: New file.
4126         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4127
4128         New module 'u16-grapheme-next'.
4129         * modules/unigbrk/u16-grapheme-next: New file.
4130         * modules/unigbrk/u16-grapheme-next-tests: New file.
4131         * lib/unigbrk.in.h: Add prototype for new function.
4132         * lib/unigbrk/u16-grapheme-next.c: New file.
4133         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4134
4135         New module 'u32-grapheme-next'.
4136         * modules/unigbrk/u32-grapheme-next: New file.
4137         * modules/unigbrk/u32-grapheme-next-tests: New file.
4138         * lib/unigbrk.in.h: Add prototype for new function.
4139         * lib/unigbrk/u32-grapheme-next.c: New file.
4140         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4141
4142         New module 'u8-grapheme-prev'.
4143         * modules/unigbrk/u8-grapheme-prev: New file.
4144         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4145         * lib/unigbrk.in.h: Add prototype for new function.
4146         * lib/unigbrk/u8-grapheme-prev.c: New file.
4147         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4148
4149         New module 'u16-grapheme-prev'.
4150         * modules/unigbrk/u16-grapheme-prev: New file.
4151         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4152         * lib/unigbrk.in.h: Add prototype for new function.
4153         * lib/unigbrk/u16-grapheme-prev.c: New file.
4154         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4155
4156         New module 'u32-grapheme-prev'.
4157         * modules/unigbrk/u32-grapheme-prev: New file.
4158         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4159         * lib/unigbrk.in.h: Add prototype for new function.
4160         * lib/unigbrk/u32-grapheme-prev.c: New file.
4161         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4162
4163         New module 'u8-grapheme-breaks'.
4164         * modules/unigbrk/u8-grapheme-breaks: New file.
4165         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4166         * lib/unigbrk.in.h: Add prototype for new function.
4167         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4168         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4169
4170         New module 'u16-grapheme-breaks'.
4171         * modules/unigbrk/u16-grapheme-breaks: New file.
4172         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4173         * lib/unigbrk.in.h: Add prototype for new function.
4174         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4175         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4176
4177         New module 'u32-grapheme-breaks'.
4178         * modules/unigbrk/u32-grapheme-breaks: New file.
4179         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
4180         * lib/unigbrk.in.h: Add prototype for new function.
4181         * lib/unigbrk/u32-grapheme-breaks.c: New file.
4182         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
4183
4184         New module 'ulc-grapheme-breaks'.
4185         * modules/unigbrk/ulc-grapheme-breaks: New file.
4186         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
4187         * m4/locale-ar.m4: New file.
4188         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
4189         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
4190         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
4191
4192 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4193
4194         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
4195         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
4196         modified how this file was generated before I initially submitted
4197         the module, but failed to regenerate it.  This meant that several
4198         of the level2 entries were wrong.
4199         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
4200         Remove the division-by-2 that is folded into the table now that
4201         gbrkprop.h has been regenerated properly.  Now -1 entries are
4202         handled correctly.
4203
4204         New module 'unigbrk/uc-gbrk-prop-tests'.
4205         * modules/unigbrk/uc-gbrk-prop-tests: New file.
4206         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
4207         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
4208         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
4209
4210 2011-01-01  Bruno Haible  <bruno@clisp.org>
4211
4212         Avoid use of hexadecimal escapes.
4213         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
4214         instead of hexadecimal escapes.
4215
4216 2011-01-01  Jim Meyering  <meyering@redhat.com>
4217
4218         maint: new rule to update copyright year ranges
4219         * Makefile (update-copyright): New rule.
4220
4221         maint: indent with TABs in Makefile
4222         * Makefile: Expand leading sequences of spaces to TABs
4223
4224         version-etc: update the copyright year it reports
4225         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
4226
4227 2010-12-31  Bruno Haible  <bruno@clisp.org>
4228
4229         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
4230         * lib/isfinite.c (zerof, zerod, zerol): New variables.
4231         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
4232         zero.
4233
4234 2010-12-31  Bruno Haible  <bruno@clisp.org>
4235
4236         pwrite: Work around HP-UX 11.11 bug.
4237         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
4238         works and set REPLACE_PWRITE if not.
4239         * lib/pwrite.c (pwrite): Add an implementation that uses the system
4240         function.
4241         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
4242
4243 2010-12-31  Bruno Haible  <bruno@clisp.org>
4244
4245         pread: Work around HP-UX 11 bugs.
4246         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
4247         and set REPLACE_PREAD if not.
4248         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
4249
4250 2010-12-31  Eric Blake  <eblake@redhat.com>
4251
4252         nl_langinfo: fix YESEXPR on Irix 6.5
4253         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
4254         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
4255         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
4256         it.
4257
4258 2010-12-31  Bruno Haible  <bruno@clisp.org>
4259
4260         iconv: Document HP-UX 11 bug.
4261         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
4262
4263 2010-12-31  Bruno Haible  <bruno@clisp.org>
4264
4265         ldexpl: Fix link error on HP-UX 11.
4266         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
4267         LDEXPL_LIBM, using $ISNANL_LIBM.
4268
4269 2010-12-31  Eric Blake  <eblake@redhat.com>
4270
4271         ftello: avoid compilation failure with SunStudio c89
4272         * lib/ftello.c (ftello): Use lseek, not llseek.
4273
4274         tests: avoid failing coreutils tests on cygwin
4275         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
4276         (create_exe_shims_): Return 0 when skipping.
4277
4278 2010-12-31  Bruno Haible  <bruno@clisp.org>
4279
4280         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
4281         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
4282
4283 2010-12-31  Bruno Haible  <bruno@clisp.org>
4284
4285         waitpid: Fix link error in C++ mode.
4286         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
4287
4288 2010-12-31  Bruno Haible  <bruno@clisp.org>
4289
4290         isnan: Use GCC built-ins when possible.
4291         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
4292         __builtin_isnan.
4293         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
4294         (isnan): Define using GCC built-ins for GCC >= 4.0.
4295
4296 2010-12-31  Bruno Haible  <bruno@clisp.org>
4297
4298         isnand: Fix mistake.
4299         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
4300         __builtin_isnand.
4301
4302 2010-12-31  Bruno Haible  <bruno@clisp.org>
4303
4304         open: Avoid C++ error on HP-UX 11.
4305         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
4306
4307 2010-12-31  Bruno Haible  <bruno@clisp.org>
4308
4309         time_r: Add missing declarations on HP-UX 11.
4310         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
4311         instead of HAVE_LOCALTIME_R.
4312         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
4313         HAVE_LOCALTIME_R always.
4314         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
4315         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
4316         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
4317         HAVE_LOCALTIME_R.
4318         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
4319         * doc/posix-functions/localtime_r.texi: Likewise.
4320
4321 2010-12-29  Eric Blake  <eblake@redhat.com>
4322
4323         mountlist: tweak previous commit
4324         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
4325         Reported by Paul Eggert.
4326
4327         mountlist: fix local drive detection on cygwin
4328         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
4329         that works for cygwin.
4330
4331 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4332
4333         ftoastr, snprintf: ftoastr + snprintf module
4334         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
4335         since the snprintf module now should be good enough here.
4336         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
4337         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
4338         and gl_MODULE_INDICATOR([snprintf]), but the former enables
4339         GNULIB_SNPRINTF only for the test directory, and the latter
4340         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
4341         seems to suffice by itself.
4342
4343 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
4344
4345         alloca: one step towards thread-safety
4346         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
4347         need for a static variable.  All callers changed.  This does not
4348         make the alloca replacement thread-safe, but it's one step.
4349
4350         tests: minor indenting change
4351         * tests/init.sh: Sync from coreutils housekeeping patch
4352         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
4353         to keep lines within 80 columns.
4354
4355 2010-12-28  Jim Meyering  <meyering@redhat.com>
4356
4357         regex: don't infloop on persistent failing calloc
4358         * lib/regexec.c (build_trtable): Return failure indication upon
4359         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4360         In glibc, this was fixed for version 2.13:
4361         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
4362
4363 2010-12-28  Bruno Haible  <bruno@clisp.org>
4364             Paul Eggert <eggert@cs.ucla.edu>
4365
4366         linkat: Make implementation robust against system behaviour variations.
4367         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
4368         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
4369         way, and to -2 if it needs a generic runtime test.
4370         * lib/linkat.c (solaris_optimized_link_immediate,
4371         solaris_optimized_link_follow): New functions.
4372         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
4373         (check_same_link): Use it.
4374
4375 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
4376
4377         New module 'unigbrk/base'.
4378         * modules/unigbrk/base: New file.
4379         * lib/unigbrk.in.h: New file.
4380
4381         New module 'unigbrk/uc-gbrk-prop'.
4382         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
4383         * modules/unigbrk/uc-gbrk-prop: New file.
4384         * lib/unigbrk/gbrkprop.h: New file.
4385         * lib/unigbrk/uc-gbrk-prop.c: New file.
4386
4387         New module 'unigbrk/uc-is-grapheme-break'.
4388         * modules/unigbrk/uc-is-grapheme-break: New file.
4389         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
4390         * lib/unigbrk/uc-is-grapheme-break.c: New file.
4391         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
4392         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
4393         * tests/unigbrk/GraphemeBreakTest.txt: New file.
4394
4395         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
4396
4397 2010-12-27  Bruno Haible  <bruno@clisp.org>
4398
4399         linkat test: Avoid failure on Solaris 11 2010-11.
4400         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
4401
4402 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4403
4404         utimens: work around glibc rounding bug on more platforms
4405         * lib/utimens.c (fdutimens): Work around rounding bug even if
4406         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
4407         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
4408
4409 2010-12-27  Bruno Haible  <bruno@clisp.org>
4410
4411         select tests: Improve comments.
4412         * tests/test-select.c (do_select): Add comments.
4413
4414 2010-12-27  Bruno Haible  <bruno@clisp.org>
4415
4416         select tests: Safer way of handling timeout.
4417         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
4418         at every invocation.
4419
4420 2010-12-27  Bruno Haible  <bruno@clisp.org>
4421
4422         select tests: Use 'bool' where appropriate.
4423         * tests/test-select.c (connect_to_socket): Change argument type to
4424         'bool'.
4425
4426 2010-12-27  Bruno Haible  <bruno@clisp.org>
4427
4428         select tests: Use existing modules.
4429         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4430         (configure.ac): Don't test for unistd.h.
4431         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4432         declared in <unistd.h>.
4433
4434 2010-12-27  Bruno Haible  <bruno@clisp.org>
4435
4436         mbrtowc: Work around a Solaris 7 bug.
4437         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4438         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4439         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4440         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4441         MBRTOWC_NULL_ARG1_BUG.
4442         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
4443         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
4444         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
4445         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
4446
4447 2010-12-27  Jim Meyering  <meyering@redhat.com>
4448
4449         read-file.c: tweak syntax
4450         * lib/read-file.c (fread_file): Remove space after "*" in function
4451         definitions.
4452
4453 2010-12-27  Bruno Haible  <bruno@clisp.org>
4454
4455         times test: Avoid gcc warnings on OSF/1.
4456         * tests/test-times.c (main): Cast printf arguments from clock_t to
4457         'long int'.
4458
4459 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4460
4461         utimens: work around glibc rounding bug on older Linux kernels
4462         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
4463         on Linux with a glibc whose utimes might not work, then work
4464         around a longstanding glibc bug involving rounding rather than
4465         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
4466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4467
4468 2010-12-26  Bruno Haible  <bruno@clisp.org>
4469
4470         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
4471         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
4472         _GL_CXXALIAS_SYS.
4473         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4474
4475 2010-12-26  Bruno Haible  <bruno@clisp.org>
4476
4477         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
4478         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
4479         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4480         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
4481         looking for the declaration.
4482         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4483         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
4484         problem.
4485         * doc/posix-functions/inet_pton.texi: Likewise.
4486
4487 2010-12-26  Bruno Haible  <bruno@clisp.org>
4488
4489         arpa_inet: Use the common idioms with C++ support.
4490         * lib/arpa_inet.in.h: Include c++defs.h.
4491         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
4492         support.
4493         * modules/arpa_inet (Depends-on): Add c++defs.
4494         (Makefile.am): Substitute the contents of c++defs.h.
4495         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
4496         * modules/arpa_inet-c++-tests: New file.
4497         * tests/test-arpa_inet-c++.cc: New file.
4498
4499 2010-12-25  Bruno Haible  <bruno@clisp.org>
4500
4501         Fix more C++ link errors on Solaris 8.
4502         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
4503         $(LIB_EACCESS).
4504         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
4505         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
4506         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
4507         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
4508         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
4509
4510 2010-12-25  Bruno Haible  <bruno@clisp.org>
4511
4512         printf-posix: Fix link error when a non-GCC compiler is used.
4513         * lib/stdio.in.h (printf): When not using GCC, override printf
4514         correctly.
4515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4516
4517 2010-12-25  Bruno Haible  <bruno@clisp.org>
4518
4519         strerror_r-posix: Update doc.
4520         * doc/posix-functions/strerror_r.texi: Update doc about the return
4521         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
4522
4523 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4524
4525         utimens: simplify the logic of the previous change
4526         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
4527         This should not affect whether the test succeeds or fails.
4528
4529         utimens: configure better on hosts with NFS clock skew
4530         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
4531         uses the clock of the local host.  It might use the clock of the
4532         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
4533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4534
4535 2010-12-25  Bruno Haible  <bruno@clisp.org>
4536
4537         ptsname test: Avoid failure on Solaris.
4538         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
4539         open a pseudo-terminal; don't use BSD-style ptys.
4540         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
4541
4542 2010-12-25  Bruno Haible  <bruno@clisp.org>
4543
4544         ptsname: Avoid ERANGE failure on some systems.
4545         * lib/ptsname.c (buffer): Increase size.
4546
4547 2010-12-25  Bruno Haible  <bruno@clisp.org>
4548
4549         rename, renameat: Avoid test failures at NFS mounted locations.
4550         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
4551         so that subsequent mkdir calls succeed.
4552
4553 2010-12-25  Bruno Haible  <bruno@clisp.org>
4554
4555         iswblank: Fix C++ link error on Solaris 8.
4556         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
4557         _GL_FUNCDECL_SYS.
4558
4559 2010-12-25  Bruno Haible  <bruno@clisp.org>
4560
4561         unistd: Fix C++ link error on Solaris 8.
4562         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
4563
4564 2010-12-25  Bruno Haible  <bruno@clisp.org>
4565
4566         readlink doc: Mention an old glibc bug.
4567         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
4568
4569 2010-12-25  Bruno Haible  <bruno@clisp.org>
4570
4571         fcntl-h: Fix for use of C++ on glibc systems.
4572         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4573         also on glibc systems in C++ mode.
4574         Reported by Gary V. Vaughan <gary@gnu.org>.
4575
4576 2010-12-25  Bruno Haible  <bruno@clisp.org>
4577
4578         roundl-ieee: Make it work on OSF/1 5.1 with cc.
4579         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
4580
4581 2010-12-25  Bruno Haible  <bruno@clisp.org>
4582
4583         truncl-ieee: Make it work on OSF/1 5.1 with cc.
4584         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
4585         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
4586         test whether truncl works according to ISO C 99 with IEC 60559.
4587         * m4/truncl-ieee.m4: New file.
4588         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
4589         m4/signbit.m4.
4590         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
4591
4592 2010-12-25  Bruno Haible  <bruno@clisp.org>
4593
4594         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4595         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
4596         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
4597         test whether ceill works according to ISO C 99 with IEC 60559.
4598         * m4/ceill-ieee.m4: New file.
4599         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
4600         m4/signbit.m4.
4601         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
4602
4603 2010-12-25  Bruno Haible  <bruno@clisp.org>
4604
4605         Ensure all prerequisites of <wchar.h> are included.
4606         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
4607         before <wchar.h>.
4608         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4609         gl_MBRLEN_NUL_RETVAL): Likewise.
4610         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4611         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
4612         AC_FUNC_MBRTOWC): Likewise.
4613         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4614         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4615         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4616         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4617         Likewise.
4618         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4619         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
4620         (gl_WCHAR_H): Improve comments.
4621         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4622
4623 2010-12-25  Bruno Haible  <bruno@clisp.org>
4624
4625         strtok_r: Fix C syntax error in autoconf macro.
4626         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
4627         characters in test program.
4628
4629 2010-12-24  Bruno Haible  <bruno@clisp.org>
4630
4631         ceil, trunc, round: Fix gcc warnings.
4632         * lib/ceil.c (MIN): Undefine before redefining.
4633         * lib/trunc.c (MIN): Likewise.
4634         * lib/round.c (MIN): Likewise.
4635         Include <math.h> first.
4636
4637 2010-12-24  Bruno Haible  <bruno@clisp.org>
4638
4639         select tests: Avoid failures on OSF/1 5.1.
4640         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
4641         failure of closing the last socket; it may fail with ECONNRESET.
4642
4643 2010-12-24  Eric Blake  <eblake@redhat.com>
4644
4645         stdint: avoid HP-UX 10.20 preprocessor bug
4646         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4647         than #if.
4648         * tests/test-floor2.c (main): Likewise.
4649         Reported by Peter O'Gorman.
4650
4651         pipe: make obsoletion transition easier
4652         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4653         * modules/pipe (Files): Include revived file.
4654         (Include): Drop reference, to mirror getdate's behavior.
4655
4656 2010-12-24  Bruno Haible  <bruno@clisp.org>
4657
4658         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4659         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4660         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4661         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4662
4663 2010-12-24  Bruno Haible  <bruno@clisp.org>
4664
4665         gethostname: Ensure declaration on NonStop Kernel.
4666         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4667         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4668
4669 2010-12-24  Bruno Haible  <bruno@clisp.org>
4670
4671         sys_select: Ensure all necessary types on NonStop Kernel.
4672         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
4673         include <sys/time.h>.
4674         * doc/posix-headers/sys_select.texi: Mention that it's missing on
4675         NonStop Kernel.
4676         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4677
4678 2010-12-24  Bruno Haible  <bruno@clisp.org>
4679
4680         sys_select: Remove unneeded include.
4681         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
4682         have <sys/select.h>.
4683
4684 2010-12-24  Bruno Haible  <bruno@clisp.org>
4685
4686         gethostname: Provide a fallback for HOST_NAME_MAX.
4687         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
4688         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
4689         instead.
4690         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4691
4692 2010-12-24  Bruno Haible  <bruno@clisp.org>
4693
4694         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
4695         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
4696         (SA_RESTART): Likewise.
4697         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4698
4699 2010-12-24  Bruno Haible  <bruno@clisp.org>
4700
4701         signal: Define NSIG.
4702         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
4703         * tests/test-signal.c (nsig): New variable.
4704         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4705
4706 2010-12-24  Bruno Haible  <bruno@clisp.org>
4707
4708         rename, renameat: Avoid test failures on OSF/1 5.1.
4709         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
4710         alternative error codes.
4711         * tests/test-renameat.c (main): Likewise.
4712
4713 2010-12-24  Bruno Haible  <bruno@clisp.org>
4714
4715         *printf: Detect large precisions bug on Solaris 10/SPARC.
4716         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
4717         by Paul Eggert.
4718         * tests/test-snprintf-posix.h (test_function): Add this test code here
4719         too.
4720         * tests/test-sprintf-posix.h (test_function): Likewise.
4721         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4722         * tests/test-vasprintf-posix.c (test_function): Likewise.
4723         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
4724         around by gnulib.
4725         * doc/posix-functions/printf.texi: Likewise.
4726         * doc/posix-functions/snprintf.texi: Likewise.
4727         * doc/posix-functions/sprintf.texi: Likewise.
4728         * doc/posix-functions/vfprintf.texi: Likewise.
4729         * doc/posix-functions/vprintf.texi: Likewise.
4730         * doc/posix-functions/vsnprintf.texi: Likewise.
4731         * doc/posix-functions/vsprintf.texi: Likewise.
4732         * doc/posix-functions/dprintf.texi: Undo last commit.
4733         * doc/posix-functions/vdprintf.texi: Likewise.
4734
4735 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4736
4737         tests: port test-fdutimensat.c to Solaris 8
4738         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
4739         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
4740         On Solaris 8, it fails with errno == ENOSYS, because there is no
4741         futimens (so it can't use the fd), and there is no lutimens (so it
4742         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
4743
4744         vsnprintf: make more consistent with snprintf; doc fixes
4745
4746         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
4747         the byte count return problem was promoted from the snprintf-posix
4748         to the snprintf module.
4749         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4750         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
4751         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
4752         * tests/test-snprintf.c (main): Check the byte count returned.
4753         * tests/test-vsnprintf.c (main): Likewise.
4754
4755 2010-12-23  Eric Blake  <eblake@redhat.com>
4756
4757         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
4758         * modules/sigpipe (License): Relax license.
4759
4760 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4761
4762         doc: document Solaris printf bug with large float precisions
4763         * doc/posix-functions/dprintf.texi (dprintf):
4764         * doc/posix-functions/fprintf.texi (fprintf):
4765         * doc/posix-functions/printf.texi (printf):
4766         * doc/posix-functions/snprintf.texi (snprintf):
4767         * doc/posix-functions/sprintf.texi (sprintf):
4768         * doc/posix-functions/vdprintf.texi (vdprintf):
4769         * doc/posix-functions/vfprintf.texi (vfprintf):
4770         * doc/posix-functions/vprintf.texi (vprintf):
4771         * doc/posix-functions/vsnprintf.texi (vsnprintf):
4772         * doc/posix-functions/vsprintf.texi (vsprintf):
4773         Mention that these functions mishandle large floating point
4774         precisions on Solaris 10.  The same bug is also present in Solaris
4775         8, and I assume earlier.  This causes "cd gnulib-tests; make
4776         check" to fail on Solaris 8 (and I assume, later) when building
4777         the latest coreutils, in test-vasprintf-posix's call to
4778         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4779         the wide flavors (e.g., wprintf) so this patch just updates the
4780         documentation for the narrow ones.
4781
4782         test-posixtm.c: add two tests
4783         * tests/test-posixtm.c: Add two tests, to highlight the
4784         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4785         around this bug; this is merely to document it.
4786
4787 2010-12-22  Bruno Haible  <bruno@clisp.org>
4788
4789         getlogin_r: Work around portability problem on OSF/1.
4790         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4791         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4792         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4793         test for a truncated result.
4794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4795         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4796         * modules/getlogin_r (Depends-on): Add memchr.
4797         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4798
4799 2010-12-22  Bruno Haible  <bruno@clisp.org>
4800
4801         ptsname: Avoid test failure on OSF/1 5.1.
4802         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4803         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4804         (same_slave): New function.
4805         (main): Use it to compare ptsname's result with the expected file name.
4806
4807 2010-12-22  Bruno Haible  <bruno@clisp.org>
4808
4809         Port extended stdio modules to HP NonStop Kernel.
4810         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4811         macros.
4812         * lib/fbufmode.c: Update comments.
4813         * lib/fflush.c: Likewise.
4814         * lib/fpurge.c: Likewise.
4815         * lib/freadable.c: Likewise.
4816         * lib/freadahead.c: Likewise.
4817         * lib/freading.c: Likewise.
4818         * lib/freadptr.c: Likewise.
4819         * lib/freadseek.c: Likewise.
4820         * lib/fseeko.c: Likewise.
4821         * lib/fseterr.c: Likewise.
4822         * lib/fwritable.c: Likewise.
4823         * lib/fwriting.c: Likewise.
4824         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4825
4826 2010-12-22  Bruno Haible  <bruno@clisp.org>
4827
4828         ttyname_r: Work around bug on OSF/1 5.1.
4829         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
4830         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
4831         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
4832         present.
4833         * lib/ttyname_r.c (ttyname_r): Update comments.
4834
4835 2010-12-22  Bruno Haible  <bruno@clisp.org>
4836
4837         round: Implement result sign according to IEEE 754.
4838         * lib/round.c (MIN, MINUS_ZERO): New macros.
4839         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
4840         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
4841         * tests/test-round-ieee.c (main): Likewise.
4842         * tests/test-roundl-ieee.c (main): Likewise.
4843
4844         trunc: Implement result sign according to IEEE 754.
4845         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
4846         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
4847         * tests/test-trunc2.c: Include minus-zero.h.
4848         (MINUS_ZERO): New macro.
4849         (trunc_reference): Keep in sync with lib/trunc.c.
4850         * tests/test-truncf2.c: Include minus-zero.h.
4851         (MINUS_ZERO): New macro.
4852         (truncf_reference): Keep in sync with lib/trunc.c.
4853         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
4854         * tests/test-trunc-ieee.c (main): Likewise.
4855         * tests/test-truncl-ieee.c (main): Likewise.
4856
4857         ceil: Implement result sign according to IEEE 754.
4858         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
4859         (FUNC): Return -0.0 for -1 < x < 0.
4860         * tests/test-ceil2.c: Include minus-zero.h.
4861         (MINUS_ZERO): New macro.
4862         (ceil_reference): Keep in sync with lib/ceil.c.
4863         * tests/test-ceilf2.c: Include minus-zero.h.
4864         (MINUS_ZERO): New macro.
4865         (ceilf_reference): Keep in sync with lib/ceil.c.
4866         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
4867         * tests/test-ceil-ieee.c (main): Likewise.
4868         * tests/test-ceill-ieee.c (main): Likewise.
4869
4870         floor: Implement result sign according to IEEE 754.
4871         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
4872         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
4873         * tests/test-floorf2.c (floorf_reference): Likewise.
4874         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
4875         * tests/test-floor-ieee.c (main): Likewise.
4876         * tests/test-floorl-ieee.c (main): Likewise.
4877
4878 2010-12-22  Bruno Haible  <bruno@clisp.org>
4879
4880         getaddrinfo: Update doc.
4881         * doc/posix-functions/gai_strerror.texi: Return type is also different
4882         on AIX and HP-UX.
4883
4884 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4885
4886         getaddrinfo, inet_ntop: Update doc for Solaris.
4887         * doc/posix-functions/gai_strerror.texi: Return type is also an
4888         issue on Solaris 9 and earlier.
4889         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
4890         on Solaris 10 and earlier.
4891
4892 2010-12-21  Bruno Haible  <bruno@clisp.org>
4893
4894         New module 'roundl-ieee'.
4895         * modules/roundl-ieee: New file.
4896         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
4897         test whether roundl works according to ISO C 99 with IEC 60559.
4898         * m4/roundl-ieee.m4: New file.
4899         * modules/roundl-ieee-tests: New file.
4900         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
4901         * tests/test-roundl.c (main): Remove signbit tests.
4902         * modules/roundl-tests (Depends-on): Remove signbit.
4903         * doc/posix-functions/roundl.texi: Mention the new module.
4904
4905 2010-12-21  Bruno Haible  <bruno@clisp.org>
4906
4907         New module 'truncl-ieee'.
4908         * modules/truncl-ieee: New file.
4909         * modules/truncl-ieee-tests: New file.
4910         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
4911         * tests/test-truncl.c (main): Remove signbit tests.
4912         * modules/truncl-tests (Depends-on): Remove signbit.
4913         * doc/posix-functions/truncl.texi: Mention the new module.
4914
4915 2010-12-21  Bruno Haible  <bruno@clisp.org>
4916
4917         New module 'ceill-ieee'.
4918         * modules/ceill-ieee: New file.
4919         * modules/ceill-ieee-tests: New file.
4920         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
4921         * tests/test-ceill.c (main): Remove signbit tests.
4922         * modules/ceill-tests (Depends-on): Remove signbit.
4923         * doc/posix-functions/ceill.texi: Mention the new module.
4924
4925 2010-12-21  Bruno Haible  <bruno@clisp.org>
4926
4927         New module 'floorl-ieee'.
4928         * modules/floorl-ieee: New file.
4929         * modules/floorl-ieee-tests: New file.
4930         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
4931         * tests/test-floorl.c (main): Remove signbit tests.
4932         * modules/floorl-tests (Depends-on): Remove signbit.
4933         * doc/posix-functions/floorl.texi: Mention the new module.
4934
4935 2010-12-21  Bruno Haible  <bruno@clisp.org>
4936
4937         New module 'round-ieee'.
4938         * modules/round-ieee: New file.
4939         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
4940         whether round works according to ISO C 99 with IEC 60559.
4941         * m4/round-ieee.m4: New file.
4942         * modules/round-ieee-tests: New file.
4943         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
4944         * tests/test-round1.c (main): Remove signbit tests.
4945         * modules/round-tests (Depends-on): Remove 'signbit'.
4946         * doc/posix-functions/round.texi: Mention the new module.
4947
4948 2010-12-21  Bruno Haible  <bruno@clisp.org>
4949
4950         New module 'trunc-ieee'.
4951         * modules/trunc-ieee: New file.
4952         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
4953         whether trunc works according to ISO C 99 with IEC 60559.
4954         * m4/trunc-ieee.m4: New file.
4955         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
4956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
4957         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
4958         * modules/trunc-ieee-tests: New file.
4959         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
4960         * tests/test-trunc1.c (main): Remove signbit tests.
4961         * modules/trunc-tests (Depends-on): Remove 'signbit'.
4962         * doc/posix-functions/trunc.texi: Mention the new module.
4963
4964 2010-12-21  Bruno Haible  <bruno@clisp.org>
4965
4966         New module 'ceil-ieee'.
4967         * modules/ceil-ieee: New file.
4968         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
4969         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
4970         ISO C 99 with IEC 60559.
4971         * m4/ceil-ieee.m4: New file.
4972         * modules/ceil (Files): Add lib/ceil.c.
4973         (Depends-on): Add 'float'.
4974         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4975         * lib/math.in.h (ceil): New declaration.
4976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
4977         REPLACE_CEIL.
4978         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
4979         * modules/ceil-ieee-tests: New file.
4980         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
4981         * tests/test-math-c++.cc: Check the signature of 'ceil'.
4982         * doc/posix-functions/ceil.texi: Mention the new module.
4983
4984 2010-12-21  Bruno Haible  <bruno@clisp.org>
4985
4986         New module 'floor-ieee'.
4987         * modules/floor-ieee: New file.
4988         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
4989         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
4990         ISO C 99 with IEC 60559.
4991         * m4/floor-ieee.m4: New file.
4992         * modules/floor (Files): Add lib/floor.c.
4993         (Depends-on): Add 'float'.
4994         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4995         * lib/math.in.h (floor): New declaration.
4996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
4997         REPLACE_FLOOR.
4998         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
4999         * modules/floor-ieee-tests: New file.
5000         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5001         * tests/test-math-c++.cc: Check the signature of 'floor'.
5002         * doc/posix-functions/floor.texi: Mention the new module.
5003
5004 2010-12-21  Bruno Haible  <bruno@clisp.org>
5005
5006         New module 'roundf-ieee'.
5007         * modules/roundf-ieee: New file.
5008         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5009         test whether roundf works according to ISO C 99 with IEC 60559.
5010         * m4/roundf-ieee.m4: New file.
5011         * modules/roundf-ieee-tests: New file.
5012         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5013         * tests/test-roundf1.c (main): Remove signbit tests.
5014         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5015         * doc/posix-functions/roundf.texi: Mention the new module.
5016
5017 2010-12-21  Bruno Haible  <bruno@clisp.org>
5018
5019         New module 'truncf-ieee'.
5020         * modules/truncf-ieee: New file.
5021         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5022         test whether truncf works according to ISO C 99 with IEC 60559.
5023         * m4/truncf-ieee.m4: New file.
5024         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5026         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5027         * modules/truncf-ieee-tests: New file.
5028         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5029         * tests/test-truncf1.c (main): Remove signbit tests.
5030         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5031         * doc/posix-functions/truncf.texi: Mention the new module.
5032
5033 2010-12-21  Bruno Haible  <bruno@clisp.org>
5034
5035         New module 'ceilf-ieee'.
5036         * modules/ceilf-ieee: New file.
5037         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5038         test whether ceilf works according to ISO C 99 with IEC 60559.
5039         * m4/ceilf-ieee.m4: New file.
5040         * modules/ceilf-ieee-tests: New file.
5041         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5042         * tests/test-ceilf1.c (main): Remove signbit tests.
5043         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5044         * doc/posix-functions/ceilf.texi: Mention the new module.
5045
5046 2010-12-21  Bruno Haible  <bruno@clisp.org>
5047
5048         New module 'floorf-ieee'.
5049         * modules/floorf-ieee: New file.
5050         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5051         test whether floorf works according to ISO C 99 with IEC 60559.
5052         * m4/floorf-ieee.m4: New file.
5053         * modules/floorf-ieee-tests: New file.
5054         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5055         * tests/test-floorf1.c (main): Remove signbit tests.
5056         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5057         * doc/posix-functions/floorf.texi: Mention the new module.
5058
5059 2010-12-21  Bruno Haible  <bruno@clisp.org>
5060
5061         Support for minus zero in autoconf macros.
5062         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5063         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5064         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5065         * tests/minus-zero.h: Update comments.
5066
5067 2010-12-21  Bruno Haible  <bruno@clisp.org>
5068
5069         Tests for module 'ceil'.
5070         * modules/ceil-tests: New file.
5071         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5072         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5073
5074 2010-12-21  Bruno Haible  <bruno@clisp.org>
5075
5076         Tests for module 'floor'.
5077         * modules/floor-tests: New file.
5078         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5079         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5080
5081 2010-12-21  Bruno Haible  <bruno@clisp.org>
5082
5083         math: Fix indentation.
5084         * lib/math.in.h (floorf): Fix indentation.
5085
5086 2010-12-21  Bruno Haible  <bruno@clisp.org>
5087
5088         Fix cross-compilation guesses on Solaris.
5089         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5090         not match "solaris2.10".
5091         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5092         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5093         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5094
5095 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5096
5097         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5098         This fixes a problem observed with the latest coreutils snapshot
5099         that caused a test to fail on Solaris 8.  src/csplit.c's call
5100         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5101         earlier, instead of returning the number of bytes that would have
5102         been generated; this causes csplit to incorrectly report memory
5103         exhaustion.
5104         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5105         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5106         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5107         comments to match.
5108         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5109         Fix typo in matching older versions of Solaris: "solaris2.10"
5110         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5111         only for guessing while cross-compiling.
5112         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5113
5114 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5115
5116         ftoastr: fix comment again
5117         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5118         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5119         Also, simplify example a bit by using flags = 0.
5120
5121 2010-12-20  Bruno Haible  <bruno@clisp.org>
5122
5123         round*, trunc*: Update documentation regarding glibc.
5124         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5125         * doc/posix-functions/round.texi: Likewise.
5126         * doc/posix-functions/roundl.texi: Likewise.
5127         * doc/posix-functions/truncf.texi: Likewise.
5128         * doc/posix-functions/trunc.texi: Likewise.
5129         * doc/posix-functions/truncl.texi: Likewise.
5130
5131 2010-12-20  Bruno Haible  <bruno@clisp.org>
5132
5133         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5134         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5135         * doc/posix-functions/round.texi: Likewise.
5136         * doc/posix-functions/roundl.texi: Likewise.
5137
5138 2010-12-20  Bruno Haible  <bruno@clisp.org>
5139
5140         ttyname_r: Add missing declaration on HP-UX 11.
5141         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5142         HAVE_TTYNAME_R.
5143         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5144         declared. Set HAVE_TTYNAME_R always.
5145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5146         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5147         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5148         HAVE_TTYNAME_R.
5149         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5150
5151 2010-12-20  Bruno Haible  <bruno@clisp.org>
5152
5153         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5154         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5155         * doc/posix-functions/getlogin_r.texi: Likewise.
5156         * tests/test-getlogin.c: Include <errno.h>.
5157         (main): Avoid test failure on HP-UX 11.11.
5158         * tests/test-getlogin_r.c (main): Likewise.
5159
5160 2010-12-20  Bruno Haible  <bruno@clisp.org>
5161
5162         getlogin_r: Add missing declaration on HP-UX 11.
5163         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5164         declared also when it exists as a function.
5165         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5166
5167 2010-12-20  Bruno Haible  <bruno@clisp.org>
5168
5169         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5170         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5171         through wcrtomb.
5172
5173 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5174
5175         ftoastr: fix comment
5176         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
5178
5179 2010-12-19  Bruno Haible  <bruno@clisp.org>
5180
5181         isnan: Ensure it is a macro.
5182         * lib/math.in.h (isnan): Define as a macro if not already a macro.
5183         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
5184         Solaris.
5185
5186 2010-12-19  Bruno Haible  <bruno@clisp.org>
5187
5188         ldexpl test: Fix link error on OSF/1 5.1.
5189         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5190
5191 2010-12-19  Bruno Haible  <bruno@clisp.org>
5192
5193         wctype: Make it work in C++ mode on OSF/1 5.1.
5194         * lib/wctype.in.h (iswblank): Declare but not define here.
5195         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
5196         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
5197         * modules/wctype (Files): Add lib/iswblank.c.
5198
5199 2010-12-19  Bruno Haible  <bruno@clisp.org>
5200
5201         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
5202         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
5203         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
5204
5205 2010-12-19  Bruno Haible  <bruno@clisp.org>
5206
5207         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
5208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
5209         _POSIX_PII_SOCKET.
5210         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
5211         * doc/posix-functions/recvfrom.texi: Likewise.
5212         * doc/posix-functions/send.texi: Likewise.
5213         * doc/posix-functions/sendto.texi: Likewise.
5214
5215 2010-12-19  Bruno Haible  <bruno@clisp.org>
5216
5217         tcgetsid: Add missing declaration on OSF/1 5.1.
5218         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5219         HAVE_TCGETSID.
5220         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
5221         Don't set HAVE_TCGETSID.
5222         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
5223         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
5224         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
5225         HAVE_TCGETSID.
5226         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
5227
5228 2010-12-19  Bruno Haible  <bruno@clisp.org>
5229
5230         stdio: Fix problem with popen() declaration on OSF/1 5.1.
5231         * lib/stdio.in.h: During the include_next statement, let recursive
5232         includes of this file include only the system header file.
5233
5234 2010-12-19  Bruno Haible  <bruno@clisp.org>
5235
5236         iconv_open: Fix regression from 2010-12-04.
5237         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
5238         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
5239
5240 2010-12-19  Bruno Haible  <bruno@clisp.org>
5241
5242         stdbool test: Avoid a gcc warning.
5243         * tests/test-stdbool.c (main): Fail if e1 is false.
5244         Reported by Jim Meyering.
5245
5246 2010-12-19  Jim Meyering  <meyering@redhat.com>
5247
5248         setenv: restore to working order
5249         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
5250         mistakenly removed.
5251         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
5252         HAVE_SETENV.
5253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
5254         HAVE_SETENV.
5255
5256 2010-12-19  Bruno Haible  <bruno@clisp.org>
5257
5258         Document some different function declarations on OSF/1 5.1.
5259         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
5260         * doc/posix-functions/inet_ntop.texi: Likewise.
5261         * doc/posix-functions/gethostname.texi: Likewise.
5262         * lib/unistd.in.h (gethostname): Update comment.
5263
5264 2010-12-19  Bruno Haible  <bruno@clisp.org>
5265
5266         doc: Mention vasprintf-posix module.
5267         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
5268         the 'vasprintf-posix' module.
5269         * doc/glibc-functions/vasprintf.texi: Likewise.
5270
5271 2010-12-19  Bruno Haible  <bruno@clisp.org>
5272
5273         unsetenv: Add missing declaration on OSF/1 5.1.
5274         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
5275         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
5276         Don't set HAVE_UNSETENV. In the test program, set _BSD.
5277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
5278         not HAVE_UNSETENV.
5279         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
5280         HAVE_UNSETENV.
5281         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
5282
5283 2010-12-19  Bruno Haible  <bruno@clisp.org>
5284
5285         setenv: Add missing declaration on OSF/1 5.1.
5286         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
5287         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
5288         declared. Don't set HAVE_SETENV.
5289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
5290         not HAVE_SETENV.
5291         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
5292         HAVE_SETENV.
5293         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
5294
5295 2010-12-19  Bruno Haible  <bruno@clisp.org>
5296
5297         nl_langinfo tests: Avoid gcc warning.
5298         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
5299
5300 2010-12-19  Bruno Haible  <bruno@clisp.org>
5301
5302         mknod: Avoid error in C++ mode on OSF/1 with GCC.
5303         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
5304         _GL_CXXALIAS_SYS.
5305
5306 2010-12-19  Bruno Haible  <bruno@clisp.org>
5307
5308         stdbool: Relax test.
5309         * tests/test-stdbool.c (e): Don't require that casts from a variable's
5310         address to 'bool' work in static initializer, for compilers other than
5311         GCC.
5312
5313 2010-12-19  Bruno Haible  <bruno@clisp.org>
5314
5315         ftello: Add missing declaration on OSF/1 5.1.
5316         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
5317         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
5318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
5319         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
5320         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
5321
5322 2010-12-19  Bruno Haible  <bruno@clisp.org>
5323
5324         fseeko: Add missing declaration on OSF/1 5.1.
5325         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
5326         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
5327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
5328         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
5329         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
5330
5331 2010-12-19  Bruno Haible  <bruno@clisp.org>
5332
5333         fchdir: Add missing declaration on OSF/1 5.1.
5334         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
5335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
5336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
5337         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
5338         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
5339
5340 2010-12-19  Bruno Haible  <bruno@clisp.org>
5341
5342         relocatable-prog-wrapper: Separate from relocatable-prog.
5343         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
5344         uninstall-relocwrapper rule here.
5345         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
5346         Reported by Ian Beckwith <ianb@erislabs.net>.
5347
5348 2010-12-19  Bruno Haible  <bruno@clisp.org>
5349
5350         unistr/u8-mbsnlen: Add missing dependency.
5351         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
5352         Reported by Ian Beckwith <ianb@erislabs.net>.
5353
5354 2010-12-19  Bruno Haible  <bruno@clisp.org>
5355
5356         iconv: Make it possible again to use this module without 'iconv-h'.
5357         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
5358         if it is not defined.
5359         Reported by Ian Beckwith <ianb@erislabs.net>.
5360
5361 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5362
5363         acl: port to Solaris 8 when copying from tmpfs to ufs
5364         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
5365         error number.  Problem observed on Solaris 8 with latest
5366         coreutils, with "mv A B", where A is on a tmpfs file system and B
5367         is on a ufs file system.  This caused coreutils' mv/part-symlink
5368         test to fail.
5369
5370         tests: set fail=0 at start
5371         * tests/init.sh (setup_): Move fail=0 initialization here ...
5372         (mktempd_): ... from here, so that tests can rely on fail being
5373         set to 0 initially.  This fixes a problem in coreutils; see:
5374         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
5375
5376 2010-12-18  Bruno Haible  <bruno@clisp.org>
5377
5378         memmem-simple: Stylistic changes.
5379         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
5380         Fix preprocessor directive indentation.
5381
5382 2010-12-15  Pádraig Brady <P@draigBrady.com>
5383
5384         memmem, memmem-simple: reorganize and expand empty needle check
5385         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
5386         functional checks to memmem-simple so that one has a fully functional
5387         memmem by using just this module.
5388         Restrict the performance only check to the memmem module.
5389         Also expand the empty needle check to ensure the correct
5390         pointer is returned, not just a non NULL pointer.
5391         * doc/glibc-functions/memmem.texi: Rearrange the portability
5392         documentation to correlate with the rearranged checks.
5393         Clarify exactly how the memmem and memmem-simple modules
5394         relate to each other.
5395
5396 2010-12-15  Pádraig Brady <P@draigBrady.com>
5397             Bruno Haible  <bruno@clisp.org>
5398
5399         Improve cross-compilation guesses for uClibc.
5400         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
5401         that uClibc does not have the glibc bug.
5402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5403         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
5404
5405 2010-12-14  Eric Blake  <eblake@redhat.com>
5406
5407         configmake: provide fallbacks for oldest supported autotools
5408         * m4/configmake.m4: New file.
5409         * modules/configmake (Files): Ship it.
5410         (configure.ac): Use it to guarantee fallbacks.
5411
5412 2010-12-13  Pádraig Brady <P@draigBrady.com>
5413
5414         read-file: Improve handling of large files
5415         * lib/read-file.c (fread_file): Minimize realloc()s
5416         for regular files, and better manage sizes around SIZE_MAX.
5417
5418 2010-12-13  Eric Blake  <eblake@redhat.com>
5419
5420         cloexec, fcntl: relax license
5421         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
5422         consent from all contributors.
5423         * modules/fcntl (License): Likewise.
5424
5425 2010-12-10  Bruno Haible  <bruno@clisp.org>
5426
5427         Tests for module 'pipe-posix'.
5428         * modules/pipe-posix-tests: New file.
5429         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5430
5431 2010-12-10  Bruno Haible  <bruno@clisp.org>
5432
5433         pipe-posix: Make it work in C++ mode.
5434         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5435         (pipe): Use common idiom, not a macro definition.
5436         * lib/pipe.c: New file.
5437         * m4/pipe.m4: New file.
5438         * modules/pipe-posix (Description): Enhance.
5439         (Files): Add lib/pipe.c, m4/pipe.m4.
5440         (configure.ac): Invoke gl_FUNC_PIPE.
5441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
5442         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
5443         * tests/test-unistd-c++.cc: Check the signature of pipe.
5444
5445 2010-12-10  Bruno Haible  <bruno@clisp.org>
5446
5447         Rename module 'pipe' to 'spawn-pipe'.
5448         * modules/spawn-pipe: New file, renamed from modules/pipe.
5449         (Files, configure.ac, Makefile.am): Update.
5450         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
5451         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
5452         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
5453         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
5454         "spawn-pipe.h" instead of "pipe.h".
5455         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
5456         to gl_SPAWN_PIPE.
5457         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
5458         (Files, Makefile.am): Update.
5459         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
5460         Update.
5461         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
5462         Include "spawn-pipe.h" instead of "pipe.h".
5463         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
5464         * lib/javacomp.c: Likewise.
5465         * lib/javaversion.c: Likewise.
5466         * lib/pipe-filter-gi.c: Likewise.
5467         * lib/pipe-filter-ii.c: Likewise.
5468         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
5469         * modules/javacomp (Depends-on): Likewise.
5470         * modules/javaversion (Depends-on): Likewise.
5471         * modules/pipe-filter-gi (Depends-on): Likewise.
5472         * modules/pipe-filter-ii (Depends-on): Likewise.
5473         * MODULES.html.sh (Executing programs): Update.
5474         * NEWS: Mention the change.
5475
5476 2010-12-10  Eric Blake  <eblake@redhat.com>
5477
5478         pipe-posix: new module
5479         * modules/pipe-posix: New file.
5480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
5481         (gl_UNISTD_H): Check for declaration.
5482         * modules/unistd (Makefile.am): Substitute it.
5483         * lib/unistd.in.h (pipe): Provide it for mingw.
5484         * doc/posix-functions/pipe.texi (pipe): Update documentation.
5485         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
5486
5487 2010-12-07  Bruno Haible  <bruno@clisp.org>
5488
5489         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
5490         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
5491         u8_strcmp_gnu.
5492         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
5493
5494 2010-12-06  Bruno Haible  <bruno@clisp.org>
5495
5496         Update internal documentation.
5497         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
5498
5499 2010-12-04  Bruno Haible  <bruno@clisp.org>
5500
5501         Put more information about failed tests into the test return codes.
5502         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
5503         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
5504         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5505         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5506         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5508         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5509         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5510         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
5511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5512         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5513         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5514         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5515         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5516         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
5517         returns a bit mask.
5518         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5519         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5520         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5521         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5522         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5523         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5526         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5527         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5528         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5529         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5530         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5532         * m4/link.m4 (gl_FUNC_LINK): Likewise.
5533         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5534         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
5535         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
5536         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5537         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
5538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5539         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5540         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5541         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5542         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5543         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5544         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5545         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5546         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5547         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
5548         gl_PRINTF_PRECISION): Likewise.
5549         * m4/regex.m4 (gl_REGEX): Likewise.
5550         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5551         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5552         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
5553         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5557         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
5558         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5559         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5560         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5561         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5562         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5563         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5564         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5565         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5566         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5567         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5569         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
5570         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
5571         enumerated value.
5572         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
5573
5574 2010-12-04  Bruno Haible  <bruno@clisp.org>
5575
5576         Update for Solaris 11 2010-11.
5577         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5578         Express, released in November 2010.
5579
5580 2010-12-04  Bruno Haible  <bruno@clisp.org>
5581
5582         nproc: Relax license.
5583         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5584         and Paul Eggert.
5585         Requested by Ludovic Courtès <ludo@gnu.org>.
5586
5587 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5588
5589         utimecmp: fine-grained src to nearby coarse-grained dest
5590
5591         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
5592         and the source is on a file system with higher-resolution time
5593         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
5594         not work, and the time stamps are close together, the algorithm to
5595         determine the exact resolution from the read-back mtime was buggy:
5596         it had a "!=" where it should have had an "==".  This bug has been
5597         in the code ever since it was introduced to gnulib.
5598         Problem reported by Dan Jacobson in
5599         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
5600
5601 2010-11-30  Bruno Haible  <bruno@clisp.org>
5602
5603         strerror_r-posix: Fix autoconf test.
5604         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
5605
5606 2010-11-28  Bruno Haible  <bruno@clisp.org>
5607             Paul Eggert  <eggert@cs.ucla.edu>
5608
5609         Tests for module 'getdomainname'.
5610         * modules/getdomainname-tests: New file.
5611         * tests/test-getdomainname.c: New file, based on
5612         tests/test-gethostname.c.
5613
5614 2010-11-28  Bruno Haible  <bruno@clisp.org>
5615             Paul Eggert  <eggert@cs.ucla.edu>
5616
5617         getdomainname: Use the system function when possible.
5618         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
5619         (getdomainname): Replace if needed. Provide the declaration if it is
5620         missing. Don't use _GL_CXXALIAS_SYS_CAST.
5621         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
5622         (getdomainname): When the system has getdomainname, call the system
5623         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
5624         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5625         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
5626         found in libnsl. Look for the declaration also in <netdb.h>. Replace
5627         the function if its second argument is of type 'int' or if it is found
5628         in libnsl.
5629         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
5630         <sys/systeminfo.h> and sysinfo().
5631         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
5632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5633         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
5634         HAVE_GETDOMAINNAME.
5635         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
5636         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
5637         * doc/glibc-functions/getdomainname.texi: Document the problems with
5638         the getdomainname declaration.
5639
5640 2010-11-28  Bruno Haible  <bruno@clisp.org>
5641
5642         sys_socket: Ensure ss_family field on AIX.
5643         * lib/sys_socket.in.h (ss_family): New macro definition.
5644         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5645         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5646         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5647         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5648         * modules/sys_socket (Makefile.am): Substitute
5649         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5650         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5651
5652 2010-11-27  Bruno Haible  <bruno@clisp.org>
5653
5654         readline: Improve configure output.
5655         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5656         "checking for readline..." result understandable.
5657
5658 2010-11-27  Bruno Haible  <bruno@clisp.org>
5659
5660         *printf-posix: Detect a bug on Solaris 10/x86.
5661         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5662         for floating-point output.
5663         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5664         directive.
5665         * tests/test-snprintf-posix.h (test_function): Likewise.
5666         * tests/test-sprintf-posix.h (test_function): Likewise.
5667         * tests/test-vasprintf-posix.c (test_function): Likewise.
5668         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
5669         * doc/posix-functions/printf.texi: Likewise.
5670         * doc/posix-functions/snprintf.texi: Likewise.
5671         * doc/posix-functions/sprintf.texi: Likewise.
5672         * doc/posix-functions/vfprintf.texi: Likewise.
5673         * doc/posix-functions/vprintf.texi: Likewise.
5674         * doc/posix-functions/vsnprintf.texi: Likewise.
5675         * doc/posix-functions/vsprintf.texi: Likewise.
5676         * doc/glibc-functions/obstack_printf.texi: Likewise.
5677         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5678
5679 2010-11-27  Bruno Haible  <bruno@clisp.org>
5680
5681         Fix link error when module libunistring-optional is in use.
5682         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
5683         * modules/striconveha-tests (Makefile.am): Likewise.
5684
5685 2010-11-27  Bruno Haible  <bruno@clisp.org>
5686
5687         regex: Mention link dependencies.
5688         * modules/regex (Link): New section.
5689         * modules/rpmatch (Link): Likewise.
5690         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
5691
5692 2010-11-27  Bruno Haible  <bruno@clisp.org>
5693
5694         ftoastr: Fix compilation error on Solaris.
5695         * lib/ftoastr.c: Include <config.h>.
5696
5697 2010-11-27  Bruno Haible  <bruno@clisp.org>
5698
5699         getloadavg: Update documentation.
5700         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5701
5702 2010-11-27  Bruno Haible  <bruno@clisp.org>
5703
5704         sys_socket: Fix test whether the functions are declared.
5705         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
5706         not <sys/select.h>.
5707
5708 2010-11-27  Bruno Haible  <bruno@clisp.org>
5709
5710         getpass: Make sure to get system declaration on some platforms.
5711         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
5712         gl_USE_SYSTEM_EXTENSIONS.
5713         * modules/getpass (Depends-on): Add extensions.
5714
5715 2010-11-26  Bruno Haible  <bruno@clisp.org>
5716
5717         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
5718         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
5719         'iconv' module is present.
5720         (ICONV_CONST): New macro.
5721         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
5722         ICONV_CONST.
5723         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
5724         set ICONV_CONST.
5725         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
5726         here.
5727         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
5728         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
5729         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
5730         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
5731         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
5732         present.
5733
5734 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5735
5736         ftoastr: comment fix
5737         * lib/ftoastr.c: "little" -> "little or no" in comment
5738
5739 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5740
5741         stdint: port to GCC 4.3 + OSX + Octave
5742         On this platform, stdint.h is buggy and defines int64_t to long
5743         long int.  The replacement defined it to long int, causing
5744         problems with C++ style name mangling.  Instead, trust the system
5745         definition if INT64_MAX is defined, and likewise for the unsigned
5746         variant.   Problem reported by Jarno Rajahalme in
5747         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
5748         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
5749         and don't mess with int64_t and INT64_MAX in this case.
5750         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
5751
5752 2010-11-24  Bruno Haible  <bruno@clisp.org>
5753
5754         doc: Corrections regarding MacOS X 10.4 and 10.5.
5755         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5756         MacOS X.
5757         Reported by Simon Josefsson.
5758
5759 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
5760
5761         Uninstall ".bin" files installed by relocwrapper.
5762         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
5763         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
5764         unless it is already there.
5765
5766 2010-11-21  Bruno Haible  <bruno@clisp.org>
5767
5768         Update for NetBSD 5.0.
5769         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5770         NetBSD; the test fails on NetBSD 5.0.
5771         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5772         about NetBSD.
5773
5774 2010-11-21  Bruno Haible  <bruno@clisp.org>
5775
5776         Update for HP-UX 11.23 and HP-UX 11.31.
5777         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5778         HP-UX.
5779
5780 2010-11-21  Bruno Haible  <bruno@clisp.org>
5781
5782         Update for MacOS X 10.5.
5783         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5784         MacOS X; the test fails on MacOS X 10.5.8.
5785         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5786         about MacOS X.
5787
5788 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5789
5790         bootstrap: add bootstrap_sync option.
5791         See discussion at
5792         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5793         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5794         * build-aux/bootstrap: Accept --bootstrap-sync to update
5795         bootstrap if it is not identical to the local gnulib's
5796         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5797         enable this by default.  Accept --no-bootstrap-sync to disable
5798         it.
5799
5800 2010-11-20  Bruno Haible  <bruno@clisp.org>
5801
5802         Ensure that <features.h> is included before __GLIBC__ is tested.
5803         * lib/printf-parse.h: Include <features.h>.
5804         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5805         Reported by Mike Frysinger <vapier@gentoo.org>.
5806
5807         Ensure that <features.h> is included before __GLIBC__ is tested.
5808         * lib/wchar.in.h: Include <features.h>.
5809         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5810         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5811         Reported by Mike Frysinger <vapier@gentoo.org>.
5812
5813         Ensure that <features.h> is included before __GLIBC__ is tested.
5814         * lib/arpa_inet.in.h: Include <features.h>.
5815         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
5816         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
5817         Reported by Mike Frysinger <vapier@gentoo.org>.
5818
5819         Ensure that <features.h> is included before __GLIBC__ is tested.
5820         * build-aux/link-warning.h: Include <features.h>.
5821         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
5822         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
5823         Reported by Mike Frysinger <vapier@gentoo.org>.
5824
5825         Ensure that <features.h> is included before __GLIBC__ is tested.
5826         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
5827         Reported by Mike Frysinger <vapier@gentoo.org>.
5828
5829 2010-11-20  Bruno Haible  <bruno@clisp.org>
5830
5831         memmem: Fix autoconf test.
5832         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5833
5834 2010-11-20  Bruno Haible  <bruno@clisp.org>
5835
5836         Port to uClibc.
5837         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
5838         * lib/fcntl.in.h: Likewise.
5839         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
5840         * lib/mbrtowc.c (mbrtowc): Likewise.
5841         * lib/relocatable.c (find_shared_library_fullname): Likewise.
5842         * lib/strerror_r.c: Likewise.
5843         * lib/unistr/u8-strnlen.c: Likewise.
5844         * lib/vasnprintf.c (decimal_point_char): Likewise.
5845         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5846         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5847         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5848         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5849         * tests/test-sigaction.c (handler, main): Likewise.
5850         * lib/freading.h: Treat uClibc like a non-glibc platform.
5851         * lib/freading.c: Likewise.
5852         * lib/gettext.h: Likewise.
5853         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
5854         Likewise.
5855         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
5856         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5857         * lib/propername.c (proper_name_utf8): Likewise.
5858         * lib/spawn.in.h: Likewise.
5859         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
5860         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
5861         mem_cd_iconveh_internal): Likewise.
5862         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
5863         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5864         strstr, strcasestr): Likewise.
5865         * lib/unicodeio.c (unicode_to_mb): Likewise.
5866         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
5867         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
5868         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
5869         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
5870         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
5871         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
5872         * lib/unistr/u8-stpncpy.c: Likewise.
5873         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5874         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
5875         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5876         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5877         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5878         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
5879         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
5880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
5881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5882         Likewise.
5883         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5884         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5885         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5888         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5889         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5890         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5891         * tests/test-getopt.h (OPTIND_MIN): Likewise.
5892         * tests/test-striconveha.c (main): Likewise.
5893         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5894         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
5895         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
5896         * doc/posix-functions/getline.texi: Likewise.
5897         Reported by Mike Frysinger <vapier@gentoo.org>.
5898
5899 2010-11-20  Bruno Haible  <bruno@clisp.org>
5900
5901         nproc: Fix condition.
5902         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
5903         HAVE_PTHREAD_AFFINITY_NP.
5904
5905 2010-11-20  Bruno Haible  <bruno@clisp.org>
5906
5907         Fix a comment.
5908         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
5909
5910 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5911
5912         ftoastr: don't assume snprintf
5913         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
5914         Implement a subset of snprintf here, by using sprintf safely.
5915         * modules/ftoastr (Depends-on): Remove snprintf.
5916
5917 2010-11-19  Jim Meyering  <meyering@redhat.com>
5918
5919         test-rename.h: fix compilation failure
5920         * tests/test-rename.h (test_rename): Add omitted "}".
5921
5922 2010-11-17  Jim Meyering  <meyering@redhat.com>
5923
5924         maint.mk: add a URL discussing the no-@acronym policy
5925         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
5926
5927 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5928
5929         ftoastr: depend on snprintf, improve comments
5930         * lib/ftoastr.c: Also mention Loitsch's draft.
5931         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
5932         needed in the current implementation, but it might simplify
5933         speeding up the code later.
5934         * modules/ftoastr: Depend on snprintf; this improves portability.
5935         Suggested by Bruno Haible in the same email.
5936
5937         ftoastr: port to hosts lacking strtof and strtold
5938         Problem reported by Bruno Haible in
5939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
5940         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
5941         environment and strtold (and presumably strtof) are not available.
5942         * modules/ftoastr (Files): Add m4/c-strtod.m4.
5943         (configure.ac): Require gl_C99_STRTOLD.
5944
5945 2010-11-18  Bruno Haible  <bruno@clisp.org>
5946
5947         c-strtold: Avoid link error on AIX 7.
5948         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
5949         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
5950         (gl_C_STRTOLD): Test whether strtold_l exists.
5951         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5952
5953 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5954
5955         intprops: new macro INT_BITS_STRLEN_BOUND
5956         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
5957         ftoastr.h.  This exposes an internal of intprops.h that was formerly
5958         not exposed.  Also, it uses a slightly tighter bound than before;
5959         though this makes no practical difference, we might as well be as
5960         tight as we easily can.
5961
5962         ftoastr: new module, for lossless conversion of floats to short strings
5963         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
5964         * modules/ftoastr: New files.
5965
5966 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5967
5968         bootstrap: port to Solaris sed
5969         * build-aux/bootstrap (get_version): Port to Solaris sed.
5970         See Ralf Wildenhues's note in
5971         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
5972
5973 2010-11-14  Jim Meyering  <meyering@redhat.com>
5974
5975         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
5976         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
5977         and move definition closer to sole use.
5978
5979 2010-11-13  Jim Meyering  <meyering@redhat.com>
5980
5981         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
5982         Now we require at least autoconf-2.59, which means the work-around
5983         is no longer needed.
5984         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
5985         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5986         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5987         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5988         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5989
5990 2010-11-13  Bruno Haible  <bruno@clisp.org>
5991
5992         rename, renameat: Avoid test failures at NFS mounted locations.
5993         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5994         functions.
5995         (test_rename): Use assert_nonexistent.
5996         * tests/test-rename.c: Include <dirent.h>.
5997         * tests/test-renameat.c: Likewise.
5998         Reported by Gary V. Vaughan <gary@gnu.org>.
5999
6000         rename, renameat: Document Linux bug with NFS
6001         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6002         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6003         * doc/posix-functions/renameat.texi: Likewise.
6004         Suggested by Eric Blake.
6005
6006 2010-11-13  Bruno Haible  <bruno@clisp.org>
6007
6008         rename test: Add comments.
6009         * tests/test-rename.h (test_rename): Add structure and comments.
6010
6011 2010-11-13  Eric Blake  <eblake@redhat.com>
6012
6013         maintainer-makefile: cover a few more files
6014         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6015         scripts generated within C files, for libvirt.
6016
6017 2010-11-13  Bruno Haible  <bruno@clisp.org>
6018
6019         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6020         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6021         character, return the number of bytes that belong together, not always
6022         1.
6023         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6024         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6025         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6026         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6027         number of bytes of an invalid character.
6028         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6029         (main): Invoke it.
6030         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6031         results.
6032         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6033         malformed byte sequences.
6034         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6035         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6036         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6037         Reported by Ben Pfaff and Paolo Bonzini.
6038
6039 2010-11-13  Bruno Haible  <bruno@clisp.org>
6040
6041         openat: Work around glibc bug with fchownat() and empty file names.
6042         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6043         (gl_FUNC_FCHOWNAT): Invoke it.
6044         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6045         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6046         Reported by Gary V. Vaughan <gary@gnu.org>.
6047
6048 2010-11-13  Bruno Haible  <bruno@clisp.org>
6049
6050         openat: Ensure autoconf macro ordering.
6051         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6052         gl_USE_SYSTEM_EXTENSIONS.
6053         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6054
6055 2010-11-13  Bruno Haible  <bruno@clisp.org>
6056
6057         Update comments.
6058         * lib/unistr/u8-check.c: Update file name in comments.
6059         * lib/unistr/u8-mblen.c: Likewise.
6060         * lib/unistr/u8-prev.c: Likewise.
6061         * lib/unistr/u8-strmblen.c: Likewise.
6062         * lib/unistr/u8-strmbtouc.c: Likewise.
6063
6064 2010-11-13  Jim Meyering  <meyering@redhat.com>
6065
6066         tests: avoid test failure on Solaris 10 due to lack of PATH export
6067         * tests/test-update-copyright.sh: Don't forget to export PATH.
6068
6069         init.sh: ensure that IFS is defined, just in case...
6070         * tests/init.sh (setup_): Ensure that IFS is defined,
6071         so that saving and restoring it works as expected.  This
6072         appears to be useful at least for an old version of dash
6073         from a long time ago (RH 6).  See here for details:
6074         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6075
6076         maint.mk: tighten "test a == b" check
6077         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6078         test to files that contain something like #!/bin/sh.
6079         Without this, coreutils would get two false positives in
6080         the comments of C source files.
6081
6082 2010-11-12  Eric Blake  <eblake@redhat.com>
6083
6084         bootstrap: fix typo in previous attempt
6085         * build-aux/bootstrap (buildreq): Correct the grouping.
6086         Reported by Paul Eggert.
6087
6088         maintainer-makefile: prohibit test x == x
6089         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6090         Based on a report by Matthias Bolte.
6091
6092         bootstrap: allow FreeBSD gzip
6093         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6094         which has no '.' and goes to stderr.
6095         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6096         Reported by Matthias Bolte.
6097
6098         maintainer-makefile: check for i18n setup
6099         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6100         will likely work.
6101
6102 2010-11-12  Bruno Haible  <bruno@clisp.org>
6103
6104         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6105         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6106         * lib/nanosleep.c (nanosleep): Likewise.
6107
6108 2010-11-11  Bruno Haible  <bruno@clisp.org>
6109
6110         fcntl-h: Fix for use of C++ on glibc systems.
6111         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6112         also on glibc systems in C++ mode.
6113         Reported by Gary V. Vaughan <gary@gnu.org>.
6114
6115 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6116
6117         mknod: avoid false failure with dash
6118         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6119
6120 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6121
6122         unlink: Fix "is it should" typo in diagnostic.
6123         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6124         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6125
6126 2010-11-11  Bruno Haible  <bruno@clisp.org>
6127
6128         Tests for module 'strerror_r-posix'.
6129         * modules/strerror_r-posix-tests: New file.
6130         * tests/test-strerror_r.c: New file.
6131         * tests/test-string-c++.cc: Check the signature of strerror_r.
6132
6133         New module 'strerror_r-posix'.
6134         * lib/string.in.h (strerror_r): New declaration.
6135         * lib/strerror_r.c: New file.
6136         * m4/strerror_r.m4: New file.
6137         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6138         of strerror_r.
6139         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6140         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6141         * modules/strerror_r-posix: New file.
6142         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6143         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6144         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6145         portability problems.
6146
6147 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6148
6149         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6150         line is also considered for output. Quoted function name in shell
6151         command, so temporary files for functions like MyClass::operator()
6152         are removed correctly without errors.
6153
6154 2010-11-09  Bruno Haible  <bruno@clisp.org>
6155
6156         * doc/posix-functions/strerror.texi: List more failing platforms.
6157
6158         * doc/posix-functions/strerror.texi: Add a comment.
6159
6160 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6161
6162         fdopendir: fix bug on MacOS X when low on file descriptors
6163
6164         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6165         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6166         All callers changed.
6167         (fdopendir): Invoke save_cwd at the top level, not after using
6168         multiple dup() calls to use up file descriptors.  Then retry
6169         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6170         less than the maximum number of open file descriptors, because
6171         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6172         on Mac OS X 10.6.4 for tar 1.24
6173         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6174         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6175         and for tar 1.25
6176         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
6177
6178 2010-11-07  Bruno Haible  <bruno@clisp.org>
6179
6180         vasnprintf: Support I flag on glibc systems.
6181         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
6182         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6183         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
6184         snprintf function.
6185         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
6186         glibc systems.
6187         * tests/test-vasnprintf-posix3.c: New file.
6188         * modules/vasnprintf-posix-tests (Files): Add it.
6189         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
6190
6191 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6192
6193         [html] Fix copy/paste bug: Use unique name for compiler warnings.
6194         * MODULES.html.sh: For compiler warnings, use name
6195         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
6196
6197 2010-11-05  Eric Blake  <eblake@redhat.com>
6198
6199         ceil, floor: avoid spurious failure with icc
6200         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
6201         [denormals-as-zero] when optimizing without -mieee-fp option.
6202         * tests/test-floorf2.c (floorf_reference): Likewise.
6203         * tests/test-ceilf1.c (dummy): New function.
6204         (main): Use it to outsmart icc's optimization.
6205         * tests/test-floorf1.c (dummy, main): Likewise.
6206
6207         tests: require working signbit
6208         * modules/ceilf-tests (Depends-on): Add signbit.
6209         * modules/ceill-tests (Depends-on): Likewise.
6210         * modules/floorf-tests (Depends-on): Likewise.
6211         * modules/floorl-tests (Depends-on): Likewise.
6212         * modules/round-tests (Depends-on): Likewise.
6213         * modules/roundf-tests (Depends-on): Likewise.
6214         * modules/roundl-tests (Depends-on): Likewise.
6215         * modules/trunc-tests (Depends-on): Likewise.
6216         * modules/truncf-tests (Depends-on): Likewise.
6217         * modules/truncl-tests (Depends-on): Likewise.
6218
6219         strtod: work around icc bug
6220         * lib/strtod.c (minus_zero): Define to working value.
6221         (strtod): Use it to avoid icc bug.
6222
6223         copysign: enhance tests
6224         * modules/copysign-tests (Files): Add minus-zero.h.
6225         * tests/test-copysign.c (main): Also test zeros.
6226
6227 2010-11-04  Eric Blake  <eblake@redhat.com>
6228
6229         ceil, floor, round, trunc: enhance tests of -0
6230         * tests/test-ceilf1.c (main): Ensure correct sign of result.
6231         * tests/test-ceill.c (main): Likewise.
6232         * tests/test-floorf1.c (main): Likewise.
6233         * tests/test-floorl.c (main): Likewise.
6234         * tests/test-round1.c (main): Likewise.
6235         * tests/test-roundf1.c (main): Likewise.
6236         * tests/test-roundl.c (main): Likewise.
6237         * tests/test-trunc1.c (main): Likewise.
6238         * tests/test-truncf1.c (main): Likewise.
6239         * tests/test-truncl.c (main): Likewise.
6240
6241 2010-11-04  Eric Blake  <eblake@redhat.com>
6242
6243         frexp, tests: work around ICC bug with -zero
6244         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
6245         works with more compilers.
6246         * tests/minus-zero.h: New file.
6247         * modules/ceilf-tests (Files): Include it.
6248         * modules/ceill-tests (Files): Likewise.
6249         * modules/floorf-tests (Files): Likewise.
6250         * modules/floorl-tests (Files): Likewise.
6251         * modules/frexp-nolibm-tests (Files): Likewise.
6252         * modules/frexp-tests (Files): Likewise.
6253         * modules/frexpl-nolibm-tests (Files): Likewise.
6254         * modules/frexpl-tests (Files): Likewise.
6255         * modules/isnan-tests (Files): Likewise.
6256         * modules/isnand-nolibm-tests (Files): Likewise.
6257         * modules/isnand-tests (Files): Likewise.
6258         * modules/isnanf-nolibm-tests (Files): Likewise.
6259         * modules/isnanf-tests (Files): Likewise.
6260         * modules/isnanl-nolibm-tests (Files): Likewise.
6261         * modules/isnanl-tests (Files): Likewise.
6262         * modules/round-tests (Files): Likewise.
6263         * modules/roundf-tests (Files): Likewise.
6264         * modules/roundl-tests (Files): Likewise.
6265         * modules/ldexpl-tests (Files): Likewise.
6266         * modules/signbit-tests (Files): Likewise.
6267         * modules/snprintf-posix-tests (Files): Likewise.
6268         * modules/sprintf-posix-tests (Files): Likewise.
6269         * modules/strtod-tests (Files): Likewise.
6270         * modules/trunc-tests (Files): Likewise.
6271         * modules/truncf-tests (Files): Likewise.
6272         * modules/truncl-tests (Files): Likewise.
6273         * modules/vsnprintf-posix-tests (Files): Likewise.
6274         * modules/vsprintf-posix-tests (Files): Likewise.
6275         * modules/vasnprintf-posix-tests (Files): Likewise.
6276         * modules/vasprintf-posix-tests (Files): Likewise.
6277         * tests/test-ceilf1.c (main): Use it.
6278         * tests/test-ceill.c (main): Likewise.
6279         * tests/test-floorf1.c (main): Likewise.
6280         * tests/test-floorl.c (main): Likewise.
6281         * tests/test-frexp.c (main): Likewise.
6282         * tests/test-frexpl.c (main): Likewise.
6283         * tests/test-isnan.c (main): Likewise.
6284         * tests/test-isnand.h (main): Likewise.
6285         * tests/test-isnanf.h (main): Likewise.
6286         * tests/test-isnanl.h (main): Likewise.
6287         * tests/test-ldexpl.c (main): Likewise.
6288         * tests/test-round.c (main): Likewise.
6289         * tests/test-roundf.c (main): Likewise.
6290         * tests/test-roundl.c (main): Likewise.
6291         * tests/test-signbit.c (test_signbitf, test_signbitd)
6292         (test_signbitl): Likewise.
6293         * tests/test-snprintf-posix.h (test_function): Likewise.
6294         * tests/test-sprintf-posix.h (test_function): Likewise.
6295         * tests/test-strtod.c (main): Likewise.
6296         * tests/test-trunc1.c (main): Likewise.
6297         * tests/test-truncf1.c (main): Likewise.
6298         * tests/test-truncl.c (main): Likewise.
6299
6300         isnanl: work around icc bug
6301         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
6302
6303 2010-11-03  Eric Blake  <eblake@redhat.com>
6304
6305         tests: fix compiler warnings
6306         * tests/test-getopt.h (test_getopt): Fix condition.
6307         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6308         * tests/test-pipe2.c (main): Likewise.
6309         * tests/test-quotearg-simple.c (main): Avoid icc warning.
6310
6311         utimens: fix broken m4 test
6312         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
6313
6314 2010-10-28  Bruno Haible  <bruno@clisp.org>
6315
6316         posix_spawn*, getdtablesize: Relax license.
6317         * modules/posix_spawn (License): Change to LGPLv2+.
6318         * modules/posix_spawnp (License): Likewise.
6319         * modules/posix_spawn-internal (License): Likewise.
6320         * modules/posix_spawnattr_init (License): Likewise.
6321         * modules/posix_spawnattr_getflags (License): Likewise.
6322         * modules/posix_spawnattr_setflags (License): Likewise.
6323         * modules/posix_spawnattr_getpgroup (License): Likewise.
6324         * modules/posix_spawnattr_setpgroup (License): Likewise.
6325         * modules/posix_spawnattr_getschedparam (License): Likewise.
6326         * modules/posix_spawnattr_setschedparam (License): Likewise.
6327         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
6328         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
6329         * modules/posix_spawnattr_getsigdefault (License): Likewise.
6330         * modules/posix_spawnattr_setsigdefault (License): Likewise.
6331         * modules/posix_spawnattr_getsigmask (License): Likewise.
6332         * modules/posix_spawnattr_setsigmask (License): Likewise.
6333         * modules/posix_spawnattr_destroy (License): Likewise.
6334         * modules/posix_spawn_file_actions_init (License): Likewise.
6335         * modules/posix_spawn_file_actions_addclose (License): Likewise.
6336         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
6337         * modules/posix_spawn_file_actions_addopen (License): Likewise.
6338         * modules/posix_spawn_file_actions_destroy (License): Likewise.
6339         * modules/getdtablesize (License): Likewise.
6340         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
6341
6342 2010-10-26  Bruno Haible  <bruno@clisp.org>
6343
6344         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
6345         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
6346         Cygwin and mingw.
6347         Suggested by Eric Blake.
6348
6349 2010-10-26  Bruno Haible  <bruno@clisp.org>
6350
6351         stdio: Work around compilation error due to renameat() on Solaris 10.
6352         * lib/stdio.in.h: Include <unistd.h> on Solaris.
6353         * lib/renameat.c: Don't include <unistd.h> here.
6354         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
6355         Reported by Paul Eggert and Eric Blake.
6356
6357 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6358
6359         renameat: port to Solaris 10, which declares renameat in unistd.h
6360
6361         * lib/renameat.c: Include unistd.h before stdio.h, because
6362         Solaris 10 declares renameat in unistd.h.  Problem encountered
6363         when building GNU tar 1.24 on Solaris 10.
6364
6365 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6366
6367         fdopendir: fix C89 compilation
6368         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
6369         compilers.
6370
6371 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6372
6373         inttostr: simplify by removing unnecessary redundancy
6374         * lib/anytostr.c: Don't include verify.h.
6375         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
6376         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
6377         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
6378         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
6379         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
6380         Likewise.
6381         * modules/inttostr (Depends-on): Remove 'verify'.
6382
6383 2010-10-23  Bruno Haible  <bruno@clisp.org>
6384
6385         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
6386         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
6387         Reported by Eric Blake.
6388
6389 2010-10-23  Bruno Haible  <bruno@clisp.org>
6390
6391         Tests: Fix LOCALE_JA on MirBSD 10.
6392         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
6393         to an UTF-8 locale.
6394         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
6395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6396         Reported by Eric Blake.
6397
6398 2010-10-21  Bruno Haible  <bruno@clisp.org>
6399
6400         nl_langinfo test: Avoid test failure on NetBSD 5.
6401         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
6402         Reported by Eric Blake.
6403
6404 2010-10-21  Eric Blake  <eblake@redhat.com>
6405
6406         c-stack: work around libsigsegv 2.8 bug
6407         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
6408         overflow on at least PowerPC64.
6409
6410 2010-10-17  Bruno Haible  <bruno@clisp.org>
6411
6412         userspec: Drop redundant file.
6413         * modules/userspec (Files): Remove lib/inttostr.h.
6414
6415 2010-10-17  Bruno Haible  <bruno@clisp.org>
6416
6417         nl_langinfo tests: Silence some warnings.
6418         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
6419         Reported by Jim Meyering.
6420
6421 2010-10-17  Bruno Haible  <bruno@clisp.org>
6422
6423         Make use of GCC's attribute __alloc_size__.
6424         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
6425         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
6426         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
6427         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
6428         __alloc_size__.
6429         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6430         Suggested by Jim Meyering.
6431
6432 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6433
6434         bootstrap: anchor .gitignore entries.
6435         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6436         with...
6437         (insert_vc_ignore): ... this new function, which prepends `/' to
6438         all .gitignore entries before passing them to
6439         insert_sorted_if_absent.
6440
6441 2010-10-16  Bruno Haible  <bruno@clisp.org>
6442
6443         nextafter: Fix configure check.
6444         * modules/nextafter (configure.ac): Correct expected prototype.
6445
6446 2010-10-16  Bruno Haible  <bruno@clisp.org>
6447
6448         termios: Update documentation.
6449         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
6450
6451 2010-10-16  Bruno Haible  <bruno@clisp.org>
6452
6453         tests: Make them compile with TinyCC.
6454         * tests/test-strstr.c (main): Remove parentheses around array
6455         initializer.
6456
6457 2010-10-15  Eric Blake  <eblake@redhat.com>
6458
6459         ignore-value: make header idempotent
6460         * lib/ignore-value.h: Add double-inclusion guards.
6461         Reported by Stefan Berger.
6462
6463 2010-10-15  Jim Meyering  <meyering@redhat.com>
6464
6465         GNUmakefile: handle "stable" target, not "major"
6466         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
6467         lists in maint.mk and announce-gen.  Without this, "make stable"
6468         would fail to ensure that $(VERSION) is up to date.
6469
6470 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
6471
6472         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
6473         & co.
6474
6475 2010-10-14  Bruno Haible  <bruno@clisp.org>
6476
6477         vasnprintf: Don't set errno to 0.
6478         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
6479         block that sets it to 0.
6480         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6481
6482 2010-10-14  Bruno Haible  <bruno@clisp.org>
6483
6484         socketlib: Fix.
6485         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
6486         gl_PREREQ_SYS_H_WINSOCK2.
6487         Reported by Ian Beckwith <ianb@erislabs.net>.
6488
6489 2010-10-13  Jim Meyering  <meyering@redhat.com>
6490
6491         test-select-stdin.c: avoid warn_unused_result warnings
6492         * tests/test-select-stdin.c: Include "macros.h".
6493         ASSERT that read and fflush succeed.
6494
6495 2010-10-13  Jim Meyering  <meyering@redhat.com>
6496
6497         git-version-gen: do require git-VC'd files in cwd
6498         * build-aux/git-version-gen: Reject a git version string
6499         if there are no commits associated with the current directory.
6500         This avoids an unlikely false-positive (unrelated dir whose parent
6501         repository also contains a tag matching v*), as pointed out
6502         by Giuseppe Scrivano in
6503         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
6504
6505 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6506
6507         argv-iter: omit nonconforming declaration
6508         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
6509         enum arg_iter_err declaration, which doesn't conform to C99.
6510         Solaris 10 cc warns about this.
6511
6512 2010-10-13  Eric Blake  <eblake@redhat.com>
6513
6514         termios: fix compilation on mingw
6515         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
6516         (gl_TERMIOS_H): Adjust it on mingw.
6517         * modules/termios (Makefile.am): Substitute new key.
6518         * lib/termios.in.h (includes): Make include_next conditional.
6519         * doc/posix-headers/termios.texi (termios.h): Update
6520         documentation.
6521         Reported by Daniel P. Berrange.
6522
6523 2010-10-13  Jim Meyering  <meyering@redhat.com>
6524
6525         git-version-gen: don't require that .git/ be in the current dir
6526         * build-aux/git-version-gen: Adjust this script so that it works
6527         when run from any working directory beneath the top-level .git/-
6528         containing directory.  Inspired by a patch from Giuseppe Scrivano,
6529         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
6530
6531         test-select: avoid warn_unused_result warnings
6532         * tests/test-select.c: Include "macros.h".
6533         ASSERT that each call to read, write, and pipe succeeds.
6534         While not technically required, also check each "close".
6535         * modules/select-tests (Files): Add tests/macros.h.
6536
6537         test-symlinkat: remove declaration of unused local
6538         * tests/test-symlinkat.c (main): Remove unused local, "buf".
6539
6540         test-inttostr: avoid shadowing warnings
6541         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
6542         and use malloc rather than the stack for the same reason as
6543         mentioned in the comment justifying the other allocation.
6544
6545 2010-10-11  Bruno Haible  <bruno@clisp.org>
6546
6547         stdlib: Allow multiple gnulib generated replacements to coexist.
6548         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
6549         Reported by Sam Steingold <sds@gnu.org>.
6550
6551 2010-10-11  Jim Meyering  <meyering@redhat.com>
6552
6553         fix a documentation typo
6554         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
6555
6556 2010-10-11  Eric Blake  <eblake@redhat.com>
6557
6558         futimens: work around Solaris 11 bug
6559         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
6560         * tests/test-futimens.h (test_futimens): Enhance, rather than
6561         weaken test.
6562         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6563
6564 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6565
6566         Indentation.
6567         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
6568         higher-level operators more to the left.
6569
6570 2010-10-11  Jim Meyering  <meyering@redhat.com>
6571
6572         test-futimens: avoid unwarranted test failure on Solaris 5.11
6573         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
6574         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
6575         because it tries to dereference the NULL name argument.
6576
6577 2010-10-11  Bruno Haible  <bruno@clisp.org>
6578
6579         Indentation.
6580         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
6581         indentation.
6582
6583 2010-10-11  Jim Meyering  <meyering@redhat.com>
6584
6585         spawn.in.h: make indentation consistent with parentheses
6586         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
6587         Make indentation consistent with parentheses.
6588
6589 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
6590
6591         Fix mismatched parens in previous commit
6592         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
6593         parens.
6594
6595 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
6596
6597         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
6598
6599         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
6600         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
6601         * lib/malloca.c: Include "verify.h".
6602         (verify1): Remove, replacing with a verify call.
6603         * lib/relocwrapper.c (verify1): Likewise.
6604         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
6605         Likewise.
6606         * modules/malloca (Depends-on): Add 'verify'.
6607         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
6608         * modules/vasnprintf (Depends-on): Add 'verify'.
6609         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6610         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6611         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6612         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6613         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6614         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6615         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6616
6617         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
6618
6619         Formerly the style was sometimes 2*X - 1, because the C standard
6620         was wrongly thought to disallow ?: in integral constant expressions.
6621         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
6622         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
6623         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6624         * lib/stdint.in.h (_verify_intmax_size): Likewise.
6625         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
6626         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
6627         verify that time_t cannot be floating.
6628
6629 2010-10-08  Eric Blake  <eblake@redhat.com>
6630
6631         time: enforce recent POSIX ruling that time_t is integral
6632         * lib/time.in.h (__time_t_must_be_integral): Detect any
6633         problematic systems, allowing the rest of gnulib to assume POSIX.
6634
6635 2010-10-08  Jim Meyering  <meyering@redhat.com>
6636
6637         fdopendir: fix a bug on systems lacking openat and /proc support
6638         OpenBSD 4.7 is one such system.  The most noticeable effect was
6639         failure of any application making nontrivial use of fts: rm, du,
6640         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
6641           ./rm: traversal failed: `a': Bad file descriptor
6642         Debugging that, you see that even though FD 6 was closed just
6643         prior to the opendir call in fd_clone_opendir, its resulting
6644         dir->dd_fd was 8, rather than the expected value of 6:
6645
6646         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6647         93                close (fd);
6648         (gdb) n
6649         94                dir = fd_clone_opendir (dupfd);
6650         (gdb) n
6651         95                saved_errno = errno;
6652         (gdb) p dir->dd_fd
6653         $11 = 8
6654
6655         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6656         The problem is that on OpenBSD, fd_clone_opendir has to resort
6657         to using the old-style save/restore CWD mechanism, due to its
6658         lack of openat/proc support, and *that* would steal the FD (6)
6659         that opendir was supposed to use.
6660
6661         The fix is to squirrel away the desired FD so that save_cwd uses a
6662         different one, and then free the dest FD right before calling opendir.
6663         That guarantees opendir will use the required file descriptor.
6664
6665         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6666
6667 2010-10-08  Bruno Haible  <bruno@clisp.org>
6668
6669         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
6670         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
6671
6672 2010-10-08  Bruno Haible  <bruno@clisp.org>
6673
6674         nanosleep: Make replacement POSIX compliant.
6675         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
6676         is out of range.
6677         Reported by Jim Meyering.
6678
6679 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         bootstrap: add hook for altering gnulib.mk, for Bison
6682         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
6683         the Bison bootstrapping process can rewrite file names and variables
6684         in this file before later parts of 'bootstrap' use the file.
6685         Bison wants to include lib/gnulib.mk from the top-level makefile,
6686         so it needs the file names in this file to be relative to the top
6687         level, not relative to lib; plus it needs variable names to be
6688         rewritten.
6689         (slurp): Use the new function.
6690
6691         bootstrap: reformat for readability
6692         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
6693
6694 2010-10-08  Eric Blake  <eblake@redhat.com>
6695
6696         docs: update cygwin progress
6697         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
6698         1.7.7.
6699         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
6700         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
6701         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
6702         * doc/posix-functions/carg.texi (carg): Likewise.
6703         * doc/posix-functions/cargf.texi (cargf): Likewise.
6704         * doc/posix-functions/casin.texi (casin): Likewise.
6705         * doc/posix-functions/casinf.texi (casinf): Likewise.
6706         * doc/posix-functions/casinh.texi (casinh): Likewise.
6707         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
6708         * doc/posix-functions/catan.texi (catan): Likewise.
6709         * doc/posix-functions/catanf.texi (catanf): Likewise.
6710         * doc/posix-functions/catanh.texi (catanh): Likewise.
6711         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
6712         * doc/posix-functions/ccos.texi (ccos): Likewise.
6713         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
6714         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
6715         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
6716         * doc/posix-functions/cexp.texi (cexp): Likewise.
6717         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
6718         * doc/posix-functions/cimag.texi (cimag): Likewise.
6719         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
6720         * doc/posix-functions/clog.texi (clog): Likewise.
6721         * doc/posix-functions/clogf.texi (clogf): Likewise.
6722         * doc/posix-functions/conj.texi (conj): Likewise.
6723         * doc/posix-functions/conjf.texi (conjf): Likewise.
6724         * doc/posix-functions/cpow.texi (cpow): Likewise.
6725         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
6726         * doc/posix-functions/cproj.texi (cproj): Likewise.
6727         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
6728         * doc/posix-functions/creal.texi (creal): Likewise.
6729         * doc/posix-functions/crealf.texi (crealf): Likewise.
6730         * doc/posix-functions/csin.texi (csin): Likewise.
6731         * doc/posix-functions/csinf.texi (csinf): Likewise.
6732         * doc/posix-functions/csinh.texi (csinh): Likewise.
6733         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
6734         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
6735         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
6736         * doc/posix-functions/ctan.texi (ctan): Likewise.
6737         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
6738         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
6739         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
6740         * doc/posix-headers/complex.texi (complex.h): Likewise.
6741
6742 2010-10-07  Jim Meyering  <meyering@redhat.com>
6743
6744         parse-datetime: avoid compilation failure on OpenBSD 4.7
6745         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
6746         This works around a compilation failure on OpenBSD 4.7:
6747         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
6748
6749 2010-10-07  Eric Blake  <eblake@redhat.com>
6750
6751         docs: update cygwin progress
6752         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
6753         1.7.6.
6754         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6755         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
6756         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
6757         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
6758         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
6759         Likewise.
6760         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
6761         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
6762         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
6763         Likewise.
6764         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
6765         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
6766         Likewise.
6767         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
6768         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
6769         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
6770         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
6771         Likewise.
6772         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
6773         Likewise.
6774         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
6775
6776         docs: update parse-datetime history
6777         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6778         documentation of this function's history and alternatives.
6779
6780         cygwin: use more robust version check
6781         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6782         exclude an eventual cygwin 1.9.1.
6783         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6785         (gl_FUNC_STRCASESTR): Likewise.
6786         Reported by Bruno Haible.
6787
6788 2010-10-06  Bruno Haible  <bruno@clisp.org>
6789
6790         string, sys_select: Avoid #including large headers unless necessary.
6791         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6792         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6793         OSF/1, BeOS, Haiku.
6794         Reported by Jim Meyering.
6795
6796 2010-10-05  Eric Blake  <eblake@redhat.com>
6797
6798         memmem, strstr, strcasestr: fix bug with long periodic needle
6799         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6800         periodic needle having false positive.
6801         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6802         and cygwin 1.7.7.
6803         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6805         (gl_FUNC_STRCASESTR): Likewise.
6806         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6807         * tests/test-memmem.c (main): Expose the bug.
6808         * tests/test-strcasestr.c (main): Likewise.
6809         * tests/test-strstr.c (main): Likewise.
6810         * tests/test-c-strcasestr.c (main): Likewise.
6811         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6812         * doc/posix-functions/strstr.texi (strstr): Likewise.
6813         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6814         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6815
6816 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6817
6818         parse-datetime: do some more renaming
6819         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
6820         parse_datetime, not get_date.  Mention the renaming.
6821         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
6822         in comments.
6823         * m4/bison.m4: Likewise.
6824
6825 2010-10-05  Eric Blake  <eblake@redhat.com>
6826
6827         parse-datetime: better name than get_date
6828         * NEWS: Reword the deprecation notice.
6829         * modules/get_date: Rename to modules/parse-datetime.
6830         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
6831         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
6832         * lib/get_date.y: Rename to lib/parse-datetime.y.
6833         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
6834         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
6835         * doc/getdate.texi: Provide fallback wrapper.
6836         * lib/getdate.h: Move guts, and wrap...
6837         * lib/parse-datetime.h: ...new file.
6838         * lib/parse-datetime.y (get_date): Rename...
6839         (parse_datetime): ...to this.
6840         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
6841         (gl_PARSE_DATETIME): ...to this.
6842         * doc/posix-functions/getdate.texi (get_date): Provide fallback
6843         documentation.
6844         * modules/getdate (Files): Provide fallback docs and header.
6845         (Notice, Depends-on): Update references.
6846         * tests/test-parse-datetime.c: Likewise.
6847         * DEPENDENCIES: Likewise.
6848         * MODULES.html.sh (Date and time <time.h>): Likewise.
6849         * doc/parse-datetime.texi (Date input formats)
6850         (Authors of parse_datetime): Likewise.
6851         * modules/parse-datetime (Files, configure.ac, Makefile.am)
6852         (Include): Likewise.
6853         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
6854         * gnulib-tool: Likewise.
6855         * m4/bison.m4 (gl_BISON): Likewise.
6856         Suggested by Bruno Haible.
6857
6858 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6859
6860         more ports to Solaris tr, which needs [] around ranges
6861         * gnulib-tool: Solaris tr needs [] around ranges.
6862         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6863         * tests/test-pipe-filter-gi1.c (main): Likewise.
6864         * tests/test-pipe-filter-ii1.c (main): Likewise.
6865
6866 2010-10-05  Eric Blake  <eblake@redhat.com>
6867
6868         bootstrap: fix Solaris regression
6869         * build-aux/bootstrap (check_versions): Solaris tr still needs []
6870         around ranges.
6871         Reported by Pádraig Brady.
6872
6873         bootstrap: work with pkg-config
6874         * build-aux/bootstrap (check_versions): Also transliterate - in
6875         prerequisite name.
6876         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
6877         prerequisites that were already found, to avoid confusion.
6878         Reported by Justin Clift.
6879
6880         faccessat: remove unused wrappers
6881         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
6882         presence of these wrappers dragged in -lgen on Solaris.
6883         Reported by Clemens Brogi; fix suggested by Paul Eggert.
6884
6885 2010-10-05  Jim Meyering  <meyering@redhat.com>
6886
6887         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
6888         * Makefile (sc_pragma_columns): New syntax-check rule.
6889
6890 2010-10-04  Bruno Haible  <bruno@clisp.org>
6891
6892         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
6893         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
6894         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
6895         Reported by Bruce Korb and Eric Blake.
6896
6897 2010-10-04  Bruno Haible  <bruno@clisp.org>
6898
6899         threadlib: Make option --with-libpth-prefix work.
6900         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
6901         use $LIBPTH, not just -lpth.
6902
6903 2010-10-04  Bruno Haible  <bruno@clisp.org>
6904
6905         Avoid line length limitation from HP NonStop system header files.
6906         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
6907         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
6908         * lib/ctype.in.h: Likewise.
6909         * lib/dirent.in.h: Likewise.
6910         * lib/errno.in.h: Likewise.
6911         * lib/fcntl.in.h: Likewise.
6912         * lib/float.in.h: Likewise.
6913         * lib/getopt.in.h: Likewise.
6914         * lib/iconv.in.h: Likewise.
6915         * lib/inttypes.in.h: Likewise.
6916         * lib/langinfo.in.h: Likewise.
6917         * lib/locale.in.h: Likewise.
6918         * lib/math.in.h: Likewise.
6919         * lib/netdb.in.h: Likewise.
6920         * lib/netinet_in.in.h: Likewise.
6921         * lib/poll.in.h: Likewise.
6922         * lib/pthread.in.h: Likewise.
6923         * lib/pty.in.h: Likewise.
6924         * lib/sched.in.h: Likewise.
6925         * lib/se-selinux.in.h: Likewise.
6926         * lib/search.in.h: Likewise.
6927         * lib/signal.in.h: Likewise.
6928         * lib/spawn.in.h: Likewise.
6929         * lib/stdarg.in.h: Likewise.
6930         * lib/stddef.in.h: Likewise.
6931         * lib/stdint.in.h: Likewise.
6932         * lib/stdio.in.h: Likewise.
6933         * lib/stdlib.in.h: Likewise.
6934         * lib/string.in.h: Likewise.
6935         * lib/strings.in.h: Likewise.
6936         * lib/sys_file.in.h: Likewise.
6937         * lib/sys_ioctl.in.h: Likewise.
6938         * lib/sys_select.in.h: Likewise.
6939         * lib/sys_socket.in.h: Likewise.
6940         * lib/sys_stat.in.h: Likewise.
6941         * lib/sys_time.in.h: Likewise.
6942         * lib/sys_times.in.h: Likewise.
6943         * lib/sys_utsname.in.h: Likewise.
6944         * lib/sys_wait.in.h: Likewise.
6945         * lib/sysexits.in.h: Likewise.
6946         * lib/termios.in.h: Likewise.
6947         * lib/time.in.h: Likewise.
6948         * lib/unistd.in.h: Likewise.
6949         * lib/wchar.in.h: Likewise.
6950         * lib/wctype.in.h: Likewise.
6951         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
6952         * modules/ctype (Makefile.am): Likewise.
6953         * modules/dirent (Makefile.am): Likewise.
6954         * modules/errno (Makefile.am): Likewise.
6955         * modules/fcntl-h (Makefile.am): Likewise.
6956         * modules/float (Makefile.am): Likewise.
6957         * modules/getopt-posix (Makefile.am): Likewise.
6958         * modules/iconv-h (Makefile.am): Likewise.
6959         * modules/inttypes (Makefile.am): Likewise.
6960         * modules/langinfo (Makefile.am): Likewise.
6961         * modules/locale (Makefile.am): Likewise.
6962         * modules/math (Makefile.am): Likewise.
6963         * modules/netdb (Makefile.am): Likewise.
6964         * modules/netinet_in (Makefile.am): Likewise.
6965         * modules/poll-h (Makefile.am): Likewise.
6966         * modules/pthread (Makefile.am): Likewise.
6967         * modules/pty (Makefile.am): Likewise.
6968         * modules/sched (Makefile.am): Likewise.
6969         * modules/search (Makefile.am): Likewise.
6970         * modules/selinux-h (Makefile.am): Likewise.
6971         * modules/signal (Makefile.am): Likewise.
6972         * modules/spawn (Makefile.am): Likewise.
6973         * modules/stdarg (Makefile.am): Likewise.
6974         * modules/stddef (Makefile.am): Likewise.
6975         * modules/stdint (Makefile.am): Likewise.
6976         * modules/stdio (Makefile.am): Likewise.
6977         * modules/stdlib (Makefile.am): Likewise.
6978         * modules/string (Makefile.am): Likewise.
6979         * modules/strings (Makefile.am): Likewise.
6980         * modules/sys_file (Makefile.am): Likewise.
6981         * modules/sys_ioctl (Makefile.am): Likewise.
6982         * modules/sys_select (Makefile.am): Likewise.
6983         * modules/sys_socket (Makefile.am): Likewise.
6984         * modules/sys_stat (Makefile.am): Likewise.
6985         * modules/sys_time (Makefile.am): Likewise.
6986         * modules/sys_times (Makefile.am): Likewise.
6987         * modules/sys_utsname (Makefile.am): Likewise.
6988         * modules/sys_wait (Makefile.am): Likewise.
6989         * modules/sysexits (Makefile.am): Likewise.
6990         * modules/termios (Makefile.am): Likewise.
6991         * modules/time (Makefile.am): Likewise.
6992         * modules/unistd (Makefile.am): Likewise.
6993         * modules/wchar (Makefile.am): Likewise.
6994         * modules/wctype (Makefile.am): Likewise.
6995
6996 2010-10-04  Bruno Haible  <bruno@clisp.org>
6997
6998         read-file tests: Avoid a test failure on NonStop Kernel.
6999         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7000         a regular file.
7001         Reported by Joachim Schmitz <schmitz@hp.com>.
7002
7003 2010-10-03  Bruno Haible  <bruno@clisp.org>
7004
7005         gnulib-tool: Fixes for --create-testdir with --libtool.
7006         * gnulib-tool (func_get_automake_snippet): Don't augment
7007         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7008         an executable.
7009         (func_create_testdir): Handle module 'alloca' like func_import.
7010         Reported by Bruce Korb <bruce.korb@gmail.com>.
7011
7012 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7013
7014         Avoid some lines longer than 80 characters.
7015         * lib/stdint.in.h: Break long comment lines.
7016         * lib/math.in.h: Likewise.
7017         (_GL_NUM_UINT_WORDS): New macro, for readability.
7018         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7019         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7020         * lib/stdlib.in.h: Likewise.
7021         * lib/spawn.in.h: Likewise.
7022         * lib/sys_socket.in.h: Update an URL.
7023         * lib/sys_stat.in.h: Break long line.
7024
7025 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7026
7027         Improve pmccabe2html.
7028         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7029         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7030         when the sources change. Remove the line in the HTML about "Used
7031         ranges" (which implied that there might be other unused ranges),
7032         rename "Resume" to "Summary" (easier to understand for more users).
7033         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7034         styles, and some unnecessary blank lines.
7035
7036 2010-10-03  Bruno Haible  <bruno@clisp.org>
7037             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7038
7039         acl: Add support for ACLs on NonStop Kernel.
7040         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7041         Check whether the function aclsort() exists.
7042         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7043         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7044         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7045         (acl_nontrivial [HAVE_ACLSORT]: New function.
7046         (file_has_acl): Implement for NonStop Kernel.
7047         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7048         (qset_acl): Implement for NonStop Kernel.
7049         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7050         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7051         (main): Implement for NonStop Kernel.
7052         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7053         Kernel. Handle this flavor.
7054         * tests/test-set-mode-acl.sh: Likewise.
7055         * tests/test-copy-acl.sh: Likewise.
7056         * tests/test-copy-file.sh: Likewise.
7057
7058 2010-10-03  Bruno Haible  <bruno@clisp.org>
7059
7060         Info about ACLs on NonStop Kernel.
7061         * doc/acl-resources.txt: Add info about NonStop Kernel.
7062         References by Joachim Schmitz <schmitz@hp.com>.
7063
7064 2010-10-02  Bruno Haible  <bruno@clisp.org>
7065
7066         Define missing EDQUOT on NonStop Kernel.
7067         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7068         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7069         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7070         missing.
7071         * doc/posix-headers/errno.texi: Mention the NSK bug.
7072         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7073         Reported by Joachim Schmitz <schmitz@hp.com>.
7074
7075 2010-10-02  Bruno Haible  <bruno@clisp.org>
7076
7077         Update doc for POSIX:2008.
7078         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7079         Update URL of POSIX specification.
7080
7081 2010-10-02  Bruno Haible  <bruno@clisp.org>
7082
7083         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7084         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7085         from gnulib, not from Automake.
7086
7087 2010-10-02  Bruno Haible  <bruno@clisp.org>
7088
7089         New module 'system-posix'.
7090         * modules/system-posix: New file.
7091         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7092         module is present.
7093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7094         GNULIB_SYSTEM_POSIX.
7095         * modules/stdlib (Depends-on): Remove sys_wait.
7096         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7097         * doc/posix-functions/system.texi: Mention the new module.
7098         * doc/posix-headers/stdlib.texi: Likewise.
7099         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7100         define test_sys_wait_macros to a no-op.
7101         Reported by Sam Steingold <sds@gnu.org>.
7102
7103 2010-09-30  Bruno Haible  <bruno@clisp.org>
7104
7105         More renaming from 'getdate' to 'get_date'.
7106         * doc/get_date.texi: Renamed from doc/getdate.texi.
7107         * modules/get_date (Files): Update.
7108         * MODULES.html.sh (Date and time <time.h>): Update.
7109         * DEPENDENCIES: Update.
7110         * gnulib-tool: Update comment.
7111         * m4/bison.m4 (gl_BISON): Likewise.
7112         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7113
7114 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7115
7116         bootstrap: support ACLOCAL_FLAGS during aclocal
7117         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7118         can add additional -I dir for third-party .m4 files.
7119
7120 2010-09-30  Eric Blake  <eblake@redhat.com>
7121
7122         bootstrap: use glibtoolize on MacOS
7123         * build-aux/bootstrap (check_versions): Convert libtool into
7124         libtoolize.
7125         (tool search): Move libtool check earlier, and look for
7126         glibtoolize for MacOS.
7127         (gnulib_tool_options): Auto-add --libtool when appropriate.
7128         Reported by Justin Clift.
7129
7130         poll: fix typo that broke test on MacOS
7131         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7132         Reported by Justin Clift.
7133
7134         getdate: rename to get_date
7135         Note: getdate.h is not renamed, to minimize client impact.
7136         * modules/getdate: Mark obsolete.  Move old contents...
7137         * modules/get_date: ...to new module name.
7138         * modules/getdate-tests: Move...
7139         * modules/get_date-tests: ...here.
7140         * m4/getdate.m4: Move...
7141         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7142         * lib/getdate.y: Move...
7143         * lib/get_date.y: ...here.
7144         * tests/test-getdate.c: Move...
7145         * tests/test-get_date.c: ...here.
7146         * doc/posix-functions/getdate.texi (getdate): Update name.
7147         * NEWS: Mention the change.
7148
7149 2010-09-29  Bruno Haible  <bruno@clisp.org>
7150
7151         Separate the module 'waitpid' from the module 'sys_wait'.
7152         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7153         present.
7154         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7155         gl_MODULE_INDICATOR_FOR_TESTS.
7156         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7157         * modules/sys_wait (Depends-on): Remove waitpid.
7158         (Makefile.am): Substitute GNULIB_WAITPID.
7159         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7160         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7161         signature only if the 'waitpid' module is present.
7162         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7163         * NEWS: Mention the change.
7164         * modules/grantpt (Depends-on): Add waitpid.
7165         * modules/wait-process (Depends-on): Likewise.
7166
7167 2010-09-29  Bruno Haible  <bruno@clisp.org>
7168
7169         More tests for module 'sys_wait'.
7170         * modules/sys_wait-c++-tests: New file.
7171         * tests/test-sys_wait-c++.cc: New file.
7172         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7173         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7174
7175 2010-09-29  Bruno Haible  <bruno@clisp.org>
7176
7177         New module 'waitpid'.
7178         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
7179         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
7180         Don't include <process.h>.
7181         (waitpid): Declare only, using modern idiom.
7182         * m4/waitpid.m4: New file.
7183         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
7184         * modules/waitpid: New file.
7185         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
7186         (Makefile.am): Update.
7187         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7188
7189 2010-09-28  Bruno Haible  <bruno@clisp.org>
7190
7191         poll: Assume ANSI C.
7192         * lib/poll.c (poll): Use an ANSI C declaration.
7193
7194 2010-09-28  Bruno Haible  <bruno@clisp.org>
7195
7196         poll-h: Create poll.h on all platforms.
7197         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
7198         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
7199         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
7200         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
7201         (gl_REPLACE_POLL_H): Don't set POLL_H.
7202         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
7203         * modules/poll-h (Depends-on): Add include_next.
7204         (Makefile.am): Create poll.h unconditionally. Substitute also
7205         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
7206
7207 2010-09-28  Bruno Haible  <bruno@clisp.org>
7208
7209         Tests for module 'poll-h'.
7210         * modules/poll-h-c++-tests: New file.
7211         * tests/test-poll-h-c++.cc: New file.
7212
7213         Tests for module 'poll-h'.
7214         * modules/poll-h-tests: New file.
7215         * tests/test-poll-h.c: New file.
7216
7217 2010-09-28  Bruno Haible  <bruno@clisp.org>
7218
7219         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
7220         * modules/poll-h (Depends-on): Add 'extensions'.
7221
7222 2010-09-28  Bruno Haible  <bruno@clisp.org>
7223
7224         New module 'poll-h'.
7225         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
7226         (poll): Use modern idiom.
7227         * modules/poll-h: New file.
7228         * modules/poll (Files): Remove lib/poll.in.h.
7229         (Depends-on): Add poll-h.
7230         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
7231         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
7232         * m4/poll_h.m4: New file.
7233         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
7234         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
7235         and invoke gl_REPLACE_POLL_H.
7236         * lib/poll.c: Use common idiom.
7237         * tests/test-poll.c: Likewise.
7238         * doc/posix-headers/poll.texi: Mention the poll-h module.
7239         Suggested by Eric Blake.
7240
7241 2010-09-26  Bruno Haible  <bruno@clisp.org>
7242
7243         sys_wait: Implement WSTOPSIG.
7244         * lib/sys_wait.in.h (WSTOPSIG): New macro.
7245         Reported by Simon Josefsson.
7246
7247 2010-09-26  Simon Josefsson  <simon@josefsson.org>
7248
7249         stdlib, sys_wait: Avoid compilation error on mingw.
7250         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
7251
7252 2010-09-26  Bruno Haible  <bruno@clisp.org>
7253
7254         stdlib tests: Avoid code duplication.
7255         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
7256         * modules/sys_wait-tests (Files): Likewise.
7257         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
7258         * tests/test-stdlib.c: Include test-sys_wait.h.
7259         (main): Invoke test_sys_wait_macros.
7260         * tests/test-sys_wait.c: Include test-sys_wait.h.
7261         (main): Invoke test_sys_wait_macros.
7262
7263 2010-09-25  Simon Josefsson  <simon@josefsson.org>
7264
7265         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
7266         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
7267         sure Windows sockets are working before calling getaddrinfo.
7268         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
7269         * doc/gnulib.texi (Windows sockets): Fix typo.
7270
7271 2010-09-25  Bruno Haible  <bruno@clisp.org>
7272
7273         Tests for module 'regex-quote'.
7274         * modules/regex-quote-tests: New file.
7275         * tests/test-regex-quote.c: New file.
7276
7277         New module 'regex-quote'.
7278         * lib/regex-quote.h: New file.
7279         * lib/regex-quote.c: New file.
7280         * modules/regex-quote: New file.
7281         Suggested by Reuben Thomas <rrt@sc3d.org>.
7282
7283 2010-09-24  Bruno Haible  <bruno@clisp.org>
7284
7285         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
7286         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
7287
7288 2010-09-23  Bruno Haible  <bruno@clisp.org>
7289
7290         setenv: Relax license.
7291         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
7292         Blake.
7293         Requested by Eric Blake.
7294
7295 2010-09-22  Bruno Haible  <bruno@clisp.org>
7296
7297         termios: Relax license.
7298         * modules/termios (License): Change to LGPLv2+.
7299         Requested by Eric Blake.
7300
7301 2010-09-22  Bruno Haible  <bruno@clisp.org>
7302
7303         threadlib: Allow the package to change the default to 'no'.
7304         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
7305         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
7306         Reported by Paul Eggert.
7307
7308 2010-09-22  Pádraig Brady  <P@draigbrady.com>
7309             Bruno Haible  <bruno@clisp.org>
7310
7311         Fix endless loop in mbmemcasecoll.
7312         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
7313         byte.
7314         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
7315
7316 2010-09-22  Bruno Haible  <bruno@clisp.org>
7317
7318         Tests for module 'memcoll'.
7319         * modules/memcoll-tests: New file.
7320         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
7321
7322         memcoll, xmemcoll: Clarify size vs. length.
7323         * modules/memcoll.c (memcoll0): Clarify specification.
7324         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
7325         passed to collate_error.
7326
7327 2010-09-22  Bruno Haible  <bruno@clisp.org>
7328
7329         Tests for module 'memcasecmp'.
7330         * modules/memcasecmp-tests: New file.
7331         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
7332
7333 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7334
7335         * lib/pthread.in.h: Add split double-inclusion guard, and include
7336         system <pthread.h> if there is one.  Use @@-style as in other
7337         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
7338         pthread.h doesn't.
7339         (pthread_mutexattr_destroy, pthread_mutexattr_init):
7340         (pthread_mutexattr_settype, pthread_mutex_trylock):
7341         New static inline functions, if there's no system <pthread.h>.
7342         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
7343         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
7344         Approximate with mutexes if the system lacks spinlocks, as in
7345         MacOS.
7346         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
7347         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
7348         @@-style.  Check for spinlocks separately.
7349         (gl_PTHREAD_DEFAULTS): New macro.
7350         * modules/pthread: Redo to use a more typical style for in.h files.
7351
7352 2010-09-21  Eric Blake  <eblake@redhat.com>
7353
7354         net_if: enhance tests
7355         * tests/test-net_if.c (main): Move signature checks earlier.
7356         Print failures to stderr.
7357         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7358         Document the bug that we do not yet fix.
7359
7360 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7361
7362         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
7363         about gnulib, not GSS.
7364
7365 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7366
7367         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
7368         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
7369         for Emacs.
7370         * build-aux/pmccabe2html: Make Makefile.am example code more
7371         cut-and-paste friendly.
7372
7373 2010-09-21  Simon Josefsson  <simon@josefsson.org>
7374
7375         * tests/test-net_if.c: New file.
7376         * modules/net_if-tests: New file.
7377
7378 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7379
7380         pthread: add pthread_spin_destroy
7381         * lib/pthread.in.h (pthread_spin_destroy): New function.
7382
7383 2010-09-19  Bruno Haible  <bruno@clisp.org>
7384
7385         gnulib-tool: Fix --help output.
7386         * gnulib-tool (func_usage): Fix help message.
7387         Reported by Reuben Thomas <rrt@sc3d.org>.
7388
7389 2010-09-18  Jim Meyering  <meyering@redhat.com>
7390
7391         maint.mk: avoid unexpanded \n in two diagnostics
7392         * top/maint.mk (sc_prohibit_always_true_header_tests):
7393         Don't use a literal \n in a halt=... assignment.  It would not be
7394         expanded, and the two \n bytes would appear in the diagnostic output
7395         rather than the desired newline.  Use halt=$$(printf ... instead.
7396         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7397
7398 2010-09-18  Bruno Haible  <bruno@clisp.org>
7399
7400         netinet_in: Doc tweak.
7401         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
7402         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7403
7404 2010-09-18  Jim Meyering  <meyering@redhat.com>
7405
7406         init.sh: correct an outdated comment
7407         * tests/init.sh (create_exe_shims_):  s/function/alias/
7408
7409         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
7410         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
7411         a file named "*.exe" is removed between the glob expansion and the
7412         processing of that oddly named file.
7413
7414 2010-09-17  Eric Blake  <eblake@redhat.com>
7415
7416         mirbsd: add some more support
7417         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
7418         in BSD family.
7419         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
7420         devices as OpenBSD.
7421         * m4/host-os.m4 (mirbsd): Add MirBSD.
7422
7423         tests: fix unportable assumption on sys/wait.h
7424         * tests/test-sys_wait.c (main): Relax test.
7425         * tests/test-stdlib.c (main): Likewise.
7426
7427         init.sh: accomodate directory with no .exes
7428         * tests/init.sh: Accomodate directory containing only scripts.
7429
7430         tests: avoid compiler warning
7431         * tests/test-stdlib.c (main): Use the variable.
7432
7433         fdutimens, fdutimensat: update signature, again
7434         * lib/utimens.h (gl_futimens): Delete, and move signature...
7435         (fdutimens): ...here.
7436         (fdutimensat): Rearrange signature.
7437         (lutimensat): Rename variable for clarity.
7438         * lib/fdutimensat.c (fdutimensat): Update signature.
7439         * lib/utimens.c (fdutimens): Likewise.
7440         (gl_futimens): Delete.
7441         (utimens, lutimens): Update callers.
7442         * lib/futimens.c (futimens): Likewise.
7443         * tests/test-fdutimensat.c: Likewise.
7444         * tests/test-utimens.c: Likewise.
7445         * tests/test-futimens.h: Update comment.
7446         * NEWS: Mention this.
7447         Suggested by Paul Eggert.
7448
7449 2010-09-17  Bruno Haible  <bruno@clisp.org>
7450
7451         Take over the maintenance of some older macros from Autoconf.
7452         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
7453         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
7454         GNU Autoconf.
7455         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
7456         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
7457
7458 2010-09-17  Eric Blake  <eblake@redhat.com>
7459
7460         fdutimensat: drop atflag validation
7461         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
7462         with valid fd, to close a race scenario where futimens is
7463         unsupported and FILE was replaced by a symlink.
7464         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
7465         accordingly.
7466         Suggested by Paul Eggert.
7467
7468 2010-09-16  Bruno Haible  <bruno@clisp.org>
7469
7470         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
7471         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
7472
7473 2010-09-16  Bruno Haible  <bruno@clisp.org>
7474
7475         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
7476         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
7477         login_tty exists.
7478         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7479
7480 2010-09-16  Bruno Haible  <bruno@clisp.org>
7481
7482         login_tty: Make the replacement code work on BSD systems.
7483         * lib/login_tty.c: Include <sys/ioctl.h>.
7484         (login_tty): Use ioctl TIOCSCTTY when available.
7485         * modules/login_tty (Depends-on): Add sys_ioctl.
7486         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7487
7488 2010-09-16  Bruno Haible  <bruno@clisp.org>
7489
7490         login_tty: Stricter unit test.
7491         * modules/login_tty-tests (Depends-on): Add tcgetsid.
7492         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
7493         and tcgetsid() after login_tty.
7494         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7495
7496 2010-09-16  Bruno Haible  <bruno@clisp.org>
7497
7498         New module 'tcgetsid'.
7499         * lib/tcgetsid.c: New file.
7500         * m4/tcgetsid.m4: New file.
7501         * modules/tcgetsid: New file.
7502         * modules/termios (Depends-on): Add c++defs, warn-on-use.
7503         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
7504         GNULIB_TCGETSID, HAVE_TCGETSID.
7505         * lib/termios.in.h: Include <sys/types.h>.
7506         (tcgetsid): New declaration.
7507         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
7508         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
7509         * doc/posix-functions/tcgetsid.texi: Mention the new module.
7510         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
7511
7512 2010-09-16  Bruno Haible  <bruno@clisp.org>
7513
7514         Tests for module 'termios'.
7515         * modules/termios-c++-tests: New file.
7516         * modules/termios-tests: New file.
7517         * tests/test-termios-c++.cc: New file.
7518         * tests/test-termios.c: New file.
7519
7520         New module 'termios'.
7521         * modules/termios: New file.
7522         * lib/termios.in.h: New file.
7523         * m4/termios_h.m4: New file.
7524         * doc/posix-headers/termios.texi: Mention the new module.
7525
7526 2010-09-16  Eric Blake  <eblake@redhat.com>
7527
7528         fdutimensat: add an atflag parameter
7529         * lib/fdutimensat.c (fdutimensat): Add new parameter.
7530         * lib/utimens.h (fdutimensat): Update prototype.
7531         * tests/test-fdutimensat.c: Adjust test to match.
7532         * NEWS: Document the change.
7533         Suggested by Paul Eggert.
7534
7535 2010-09-16  Bruno Haible  <bruno@clisp.org>
7536
7537         Fix typos in comments.
7538         * lib/striconveh.h: Fix typo in comment.
7539         * lib/login_tty.c (login_tty): Likewise.
7540
7541 2010-09-15  Bruno Haible  <bruno@clisp.org>
7542
7543         stdlib: clarify MirBSD WEXITSTATUS bug
7544         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
7545         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7546
7547 2010-09-15  Eric Blake  <eblake@redhat.com>
7548
7549         stdlib: work around MirBSD WEXITSTATUS bug
7550         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
7551         * modules/stdlib (Depends-on): Add sys_wait.
7552         * tests/test-sys_wait.c (main): Enhance test.
7553         * tests/test-stdlib.c (main): Likewise.
7554         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
7555
7556         docs: mention MacOS issue with WEXITSTATUS(constant)
7557         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
7558         issue.
7559         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7560
7561         strnlen: add tests
7562         * modules/strnlen-tests: New file.
7563         * tests/test-strnlen.c: Likewise.
7564
7565 2010-09-14  Bruno Haible  <bruno@clisp.org>
7566
7567         unistr/base: Avoid link errors when module 'libunistring' is also used.
7568         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
7569         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
7570         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
7571         Declare also when HAVE_LIBUNISTRING is set.
7572         Reported by Pádraig Brady <P@draigbrady.com>.
7573
7574 2010-09-14  Eric Blake  <eblake@redhat.com>
7575
7576         test-rawmemchr: make more robust
7577         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
7578         (Depends-on, configure.ac): Add needed prerequisites to use it.
7579         * modules/memchr-tests (Files, Depends-on, configure.ac):
7580         Likewise, to avoid implicit reliance on memchr module prereqs.
7581         * tests/test-memchr.c (main): Ensure proper masking.
7582         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
7583         reads.
7584
7585         memchr: detect glibc Alpha bug
7586         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
7587         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
7588         Alpha.
7589         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
7590         * tests/test-memchr.c (main): Enhance test.
7591         Reported by Nelson H. F. Beebe.
7592
7593 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7594
7595         fts, getcwd, glob: audit for dirfd returning -1
7596         * lib/fts.c (opendir): Remove #define; no longer used.
7597         (opendirat): New arg PDIR_FD.  All callers changed.
7598         (fts_build, _opendir2): Use new opendirat to avoid the need for
7599         dirfd, or for checking whether dirfd returns a negative value.
7600         Don't use opendir; always use openat followed by fdopendir.
7601         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
7602         it.
7603         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
7604         returns -1 here.
7605         * modules/fts (Depends-on): Remove dirfd.
7606         * modules/getcwd (Depends-on): Likewise.
7607
7608 2010-09-13  Eric Blake  <eblake@redhat.com>
7609
7610         float: fix broken MirBSD header
7611         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
7612         * doc/posix-headers/float.texi (float.h): Document it.
7613
7614 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7615
7616         fts: use O_NOFOLLOW to avoid race condition when opening a directory
7617         * lib/fts.c (opendirat): New arg extra_flags.
7618         (__opendir2): Use it to avoid following symlinks when opening
7619         a directory, if symlinks are not supposed to be followed.  See
7620         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
7621
7622         fdopendir: preserve argument fd before returning
7623         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
7624         (fdopendir_with_dup, fd_clone_opendir): New static functions.
7625         (fdopendir): Use them, arranging for FD to be open to the same
7626         directory that it was when it started.  (It might be temporarily
7627         closed while fdopendir is running, so this not thread- or
7628         signal-safe.)  Be careful to do the right thing even when file
7629         descriptors are scarce and dup fails with errno == EMFILE.  See
7630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
7631
7632 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
7633
7634         regex: Pass the system regex if its only problem is 32-bit regoff_t.
7635         * NEWS: Document change.
7636         * m4/regex.m4: Disable test for regoff_t size.
7637
7638 2010-09-13  Jim Meyering  <meyering@redhat.com>
7639
7640         fts: don't operate on an invalid file descriptor after failed dup
7641         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7642         negative file descriptor.
7643
7644 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7645
7646         savedir: add streamsavedir, deprecate fdsavedir
7647         * NEWS: Mention deprecation of fdsavedir.
7648         * lib/savedir.c (streamsavedir): New extern function, whose name
7649         ends in "savedir" to be consistent with the others.  This differs
7650         from savedirstream in that it doesn't close its argument.  The
7651         next version of GNU tar will use this instead of fdsavedir, to
7652         avoid some race conditions and conserve file descriptors.
7653         (savedirstream): Reimplement as a wrapper around streamsavedir.
7654         (fdsavedir): Add a comment deprecating this function.  As far as
7655         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7656         * lib/savedir.h (streamsavedir): New decl.
7657         (fdsavedir): Add a comment deprecating this.
7658
7659 2010-09-10  Bruno Haible  <bruno@clisp.org>
7660
7661         langinfo: Fix last commit.
7662         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7663         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7665
7666 2010-09-10  Bruno Haible  <bruno@clisp.org>
7667
7668         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
7669         * lib/progreloc.c (O_EXEC): Define fallback.
7670
7671 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7672
7673         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
7674         * NEWS: Document recent changes to fcntl-h.
7675         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
7676         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
7677         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
7678         Similarly for O_SEARCH; this last was already true, but not documented.
7679         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
7680         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
7681         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
7682         Likewise.
7683         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
7684         is zero, not whether it is defined.
7685         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
7686         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
7687         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
7688
7689 2010-09-10  Bruno Haible  <bruno@clisp.org>
7690
7691         langinfo, nl_langinfo: Fix for IRIX 5.3.
7692         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
7693         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
7694         HAVE_LANGINFO_YESEXPR.
7695         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
7696         HAVE_LANGINFO_YESEXPR.
7697         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
7698         HAVE_LANGINFO_T_FMT_AMPM is 0.
7699         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
7700         HAVE_LANGINFO_YESEXPR is 0.
7701         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
7702         NOEXPR.
7703         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
7704         * doc/posix-functions/nl_langinfo.texi: Likewise.
7705         Reported by Eric Blake.
7706
7707 2010-09-10  Bruno Haible  <bruno@clisp.org>
7708
7709         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
7710         * doc/glibc-functions/login_tty.texi: Mention the include file problem
7711         on FreeBSD 8.0 and OpenBSD 4.6.
7712         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
7713         * m4/pty_h.m4 (gl_PTY_H): Likewise.
7714         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
7715         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
7716         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
7717         ac_includes_default.
7718         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7719
7720 2010-09-09  Eric Blake  <eblake@redhat.com>
7721
7722         strsignal: work around NetBSD bug
7723         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
7724         * lib/string.in.h (includes): Likewise.
7725         * doc/posix-functions/strsignal.texi (strsignal): Document the
7726         bug.
7727         Reported by Nelson H. F. Beebe.
7728
7729         gnulib-tool: work with NetBSD /bin/sh
7730         * gnulib-tool (func_cache_var, func_cache_lookup_module)
7731         (func_get_description, func_get_comment, func_get_status)
7732         (func_get_notice, func_get_applicability, func_get_filelist)
7733         (func_get_dependencies, func_get_autoconf_early_snippet)
7734         (func_get_autoconf_snippet, func_get_automake_snippet)
7735         (func_get_include_directive, func_get_link_directive)
7736         (func_get_license, func_get_maintainer, func_import): Avoid
7737         shell syntax errors from parsing syntax extensions.
7738
7739 2010-09-09  Bruno Haible  <bruno@clisp.org>
7740
7741         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7742         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
7743         a reliable way to determine whether the 'alias' command works.
7744
7745 2010-09-08  Jim Meyering  <meyering@redhat.com>
7746
7747         init.sh: penalize a set-x-impaired shell; don't disqualify it
7748         * tests/init.sh: Too many shells corrupt application stderr when
7749         you set -x, so we can't afford to disqualify them, since at least
7750         on Irix-6.5, that would disqualify all bourne shells.
7751         Instead, use a two-pass approach.
7752         On the first pass, try to find a shell that meets the stricter
7753         condition that set -x does not corrupt stderr.
7754         If no shell meets the stricter condition, retest each candidate
7755         shell, but without that extra condition.  Finally, when
7756         VERBOSE=yes is requested and set -x might cause trouble, simply
7757         issue a warning and refrain from enabling debug output.
7758
7759 2010-09-08  Eric Blake  <eblake@redhat.com>
7760
7761         unsetenv: fix OpenBSD bug
7762         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
7763         * doc/posix-functions/unsetenv.texi (unsetenv): Update
7764         documentation.
7765         Reported by Jim Meyering.
7766
7767         strtod: work around IRIX 6.5 bug
7768         * lib/strtod.c (strtod): Reparse number on shorter string if
7769         exponent parse was invalid.
7770         * tests/test-strtod.c (main): Add check for "0x1p 2".
7771         Reported by Tom G. Christensen.
7772
7773         getopt: optimize previous patch
7774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
7775         empty variable.  Speed up awk script.
7776         Reported by Paolo Bonzini.
7777
7778 2010-09-08  Jim Meyering  <meyering@redhat.com>
7779
7780         test.sh: disqualify shells for which set -x corrupts stderr
7781         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7782         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7783         appear in stderr output.  For example, this command:
7784             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7785         prints "P=1" on those two systems:
7786
7787 2010-09-08  Bruno Haible  <bruno@clisp.org>
7788
7789         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7790         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7791         commands, because some shells ignore redirections when there is an
7792         error in the command lookup.
7793         Reported by Eric Blake.
7794
7795 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7796
7797         * lib/regex.h: Fix a mention of `regex_compile' (should be
7798         `re_compile_pattern').
7799         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7800         (re_set_registers): Correct name of parameter in comment.
7801
7802         * doc/regex.texi: Add documentation for missing syntax flags.
7803         Remove commented-out documentation of defunct syntax option
7804         RE_NO_EMPTY_ALTS.
7805         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7806         Add documentation of re_set_registers.
7807         Document trick to re-use a pattern buffer by setting fastmap manually.
7808         Update documentation of struct re_pattern_buffer per public members.
7809         Uncomment documentation of equivalence class operators and
7810         collating symbol operators, since they are now implemented,
7811         Explain leftmost-longest matching in relation to alternatives.
7812         Tidy documentation of substring matching.
7813         Remove POSIX documentation, which is done better in
7814         glibc, and refer the reader there. Keep BSD API documentation, as
7815         that is not readily available elsewhere.
7816
7817 2010-09-07  Eric Blake  <eblake@redhat.com>
7818
7819         getopt: handle POSIXLY_CORRECT set but not exported
7820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
7821         export state of POSIXLY_CORRECT, due to bash set -o posix.
7822         Reported by Dustin J. Mitchell.
7823
7824 2010-09-05  Bruno Haible  <bruno@clisp.org>
7825
7826         gnulib-tool: Highlight the changed options.
7827         * gnulib-tool (func_usage): Display the --import, --add-import,
7828         --remove-import explanations in bold font.
7829
7830 2010-09-06  Karl Berry  <karl@gnu.org>
7831
7832         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
7833
7834 2010-09-05  Bruno Haible  <bruno@clisp.org>
7835
7836         uniwidth/width: Update comment.
7837         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
7838         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
7839
7840 2010-09-05  Bruno Haible  <bruno@clisp.org>
7841
7842         isinf, isnan: Relax license.
7843         * modules/isinf (License): Change from GPL to LGPL, with consent from
7844         Ben Pfaff.
7845         * modules/isnan (License): Likewise.
7846         Requested by Ludovic Courtès.
7847
7848 2010-09-04  Bruno Haible  <bruno@clisp.org>
7849
7850         gnulib-tool: Help migration from --import to --add-import or --update.
7851         * gnulib-tool: Emit a verbose error message when --import is used
7852         without any module name.
7853
7854 2010-09-04  Bruno Haible  <bruno@clisp.org>
7855
7856         Update doc about gnulib-tool.
7857         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
7858         'gnulib-tool --update' in more detail.
7859         Reported by Eric Blake.
7860
7861 2010-09-04  Bruno Haible  <bruno@clisp.org>
7862
7863         gnulib-tool: Change --import. New options --add/remove-import.
7864         * gnulib-tool: New options --add-import, --remove-import.
7865         (func_usage): Document them.
7866         (have_associative): Define always.
7867         (func_import): In import mode, don't merge the specified settings with
7868         the cached settings. Implement remove-import mode.
7869         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
7870         Explain when to use them versus --import.
7871         (Simple update): Use --add-import instead of --import.
7872         * NEWS: Mention the change.
7873
7874 2010-09-04  Bruno Haible  <bruno@clisp.org>
7875
7876         * doc/gnulib-tool.texi (Initial import): Update paragraph about
7877         separate gnulib.mk.
7878
7879 2010-09-04  Bruno Haible  <bruno@clisp.org>
7880
7881         gnulib-tool: Don't talk about CVS any more.
7882         * gnulib-tool (func_usage, func_import): Write "version control"
7883         instead of CVS.
7884
7885 2010-09-04  Jim Meyering  <meyering@redhat.com>
7886
7887         maint.mk: avoid obscure sc_copyright_check failure in coreutils
7888         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
7889         false positives (whose names may be ill-chosen) when searching
7890         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
7891         would cause a false-positive.
7892
7893         avoid coreutils "make distcheck" failure
7894         Coreutils tests with an absolute build directory name that contains
7895         a space.  Not quoting this directory name caused a failure.
7896         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
7897         * tests/test-vc-list-files-cvs.sh: Likewise.
7898
7899 2010-09-04  Bruno Haible  <bruno@clisp.org>
7900
7901         gnulib-tool: Avoid error when run in a package without Makefile.am.
7902         * gnulib-tool: When collecting the m4dirs in a package that does not
7903         have a Makefile.am, eliminate those directories that contain no
7904         gnulib-cache.m4. Fix expression that counts these directories.
7905
7906 2010-09-04  Bruno Haible  <bruno@clisp.org>
7907
7908         update-copyright test: Improve output when perl is missing or too old.
7909         * tests/test-update-copyright.sh: Move test of Perl version down after
7910         the test whether Perl exists. Provide an explanation relating Perl's
7911         error message to Automake's SKIP: message.
7912
7913 2010-09-04  Bruno Haible  <bruno@clisp.org>
7914
7915         Don't augment PATH in TESTS_ENVIRONMENT.
7916         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
7917         set abs_aux_dir instead of augmenting PATH.
7918         * modules/vc-list-files-tests (Makefile.am): Likewise.
7919         * tests/test-update-copyright.sh: Augment PATH here.
7920         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
7921         path_prepend_.
7922         * tests/test-vc-list-files-git.sh: Likewise.
7923
7924 2010-09-04  Jim Meyering  <meyering@redhat.com>
7925
7926         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
7927         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
7928
7929 2010-09-04  Bruno Haible  <bruno@clisp.org>
7930
7931         strdup: Fix compilation error in C++ mode.
7932         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
7933         the macro.
7934
7935 2010-09-04  Bruno Haible  <bruno@clisp.org>
7936
7937         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
7938         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
7939         macro into a function.
7940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7941
7942 2010-09-04  Bruno Haible  <bruno@clisp.org>
7943
7944         Set PATH_SEPARATOR the same way autoconf does.
7945         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
7946         the value of PATH_SEPARATOR the same way autoconf-generated configure
7947         scripts do.
7948         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
7949         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7950
7951 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7952
7953         Set PATH_SEPARATOR the same way autoconf does.
7954         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
7955         the same way autoconf-generated configure scripts do.
7956         * posix-modules: Likewise.
7957
7958 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7959
7960         hash: fix safe_hasher const typo
7961         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
7962         const; otherwise, there is a type error later.
7963
7964 2010-09-02  Jim Meyering  <meyering@redhat.com>
7965
7966         test-update-copyright.sh: require perl 5.8.0
7967         * tests/test-update-copyright.sh: Require 5.8.0,
7968         which Tom G. Christensen has confirmed is adequate,
7969         while 5.6.1 is not.
7970
7971 2010-09-02  Eric Blake  <eblake@redhat.com>
7972
7973         tests: init.sh improvements for re-exec'ing with zsh
7974         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
7975         -vx through shell re-exec.
7976         Reported by Tom G. Christensen.
7977
7978         wctype: fix typo in previous commit
7979         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
7980         Reported by Ludovic Courtès.
7981
7982 2010-09-02  Jim Meyering  <meyering@redhat.com>
7983
7984         test-update-copyright.sh: skip test if Perl is too old
7985         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
7986         Reported by Tom G. Christensen.
7987
7988 2010-09-02  Bruno Haible  <bruno@clisp.org>
7989
7990         wctype: Avoid compilation error on IRIX 6.5.30.
7991         * lib/wctype.in.h (iswblank): Declare with a replacement if
7992         REPLACE_ISWBLANK is set.
7993         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
7994         declared. Set REPLACE_ISWBLANK.
7995         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
7996         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
7997         * doc/posix-headers/wctype.texi: Likewise.
7998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7999
8000 2010-09-01  Bruno Haible  <bruno@clisp.org>
8001
8002         New module 'socketlib'.
8003         * modules/socketlib: New file.
8004         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8005         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8006         * modules/sockets (Depends-on): Add socketlib.
8007         Suggested by Sam Steingold <sds@gnu.org>.
8008
8009 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8010
8011         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8012
8013         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8014         when one needs search access to a directory but not read access.
8015         On systems where it is available, it works in some cases where
8016         O_RDONLY does not, namely on directories that are searchable but
8017         not readable, and which need only to be searchable.  If O_SEARCH
8018         is not available, fall back to the traditional method of using
8019         O_RDONLY.
8020
8021         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8022         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8023         when opening a directory that needs only to be searchable.
8024         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8025         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8026         * lib/openat-proc.c (openat_proc_name): Likewise.
8027         * lib/openat.c (openat_needs_fchdir): Likewise.
8028         * lib/save-cwd.c (save_cwd): Likewise.
8029         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8030
8031 2010-08-28  Bruno Haible  <bruno@clisp.org>
8032
8033         New module 'host-cpu-c-abi'.
8034         * modules/host-cpu-c-abi: New file.
8035         * m4/host-cpu-c-abi.m4: New file, based on part of
8036         clisp/src/m4/general.m4.
8037         Requested by Sam Steingold <sds@gnu.org>.
8038
8039 2010-08-31  Eric Blake  <eblake@redhat.com>
8040         and Jim Meyering  <meyering@redhat.com>
8041
8042         hash: factor, and guard against misbehaving hasher function
8043         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8044         of table->hasher's return value.  Also protect against a hash value
8045         so large that adding it to table->bucket results in a NULL pointer.
8046         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8047         Use it in place of open-coded check-and-abort.
8048
8049 2010-08-30  Bruno Haible  <bruno@clisp.org>
8050
8051         hash: silence spurious clang warning
8052         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8053         Reported by Eric Blake.
8054
8055 2010-08-30  Eric Blake  <eblake@redhat.com>
8056
8057         strstr, memmem, strcasestr: avoid leaked shell message
8058         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8059         FreeBSD.
8060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8062
8063         tests: silence clang warning
8064         * tests/test-malloca.c (do_allocation): Avoid dead store.
8065
8066 2010-08-29  Bruno Haible  <bruno@clisp.org>
8067
8068         gettext: Fix recent mistake.
8069         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8070
8071 2010-08-29  Bruno Haible  <bruno@clisp.org>
8072
8073         selinux-h: Offer a --without-selinux option.
8074         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8075         --without-selinux was specified, skip all tests and define
8076         HAVE_SELINUX_SELINUX_H to 0.
8077         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8078         set LIB_SELINUX to empty.
8079         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8080         gl_LIBSELINUX. If --without-selinux was specified, replace
8081         selinux/context.h.
8082         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8083
8084 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8085             Bruno Haible  <bruno@clisp.org>
8086
8087         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8088         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8089         of HAVE_REALLOC.
8090         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8091         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8092         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8093         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8094
8095 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8096             Bruno Haible  <bruno@clisp.org>
8097
8098         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8099         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8100         HAVE_CALLOC.
8101         * lib/xmalloc.c: Update accordingly.
8102         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8103         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8104         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8105
8106 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8107             Bruno Haible  <bruno@clisp.org>
8108
8109         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8110         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8111         HAVE_MALLOC.
8112         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8113         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8114         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8115
8116 2010-08-29  Bruno Haible  <bruno@clisp.org>
8117
8118         Update modules list.
8119         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8120         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8121         (String handling <string.h>): Add astrxfrm.
8122         (File system functions): Add readlinkat.
8123
8124 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8125
8126         Tests for module 'realloc-gnu'.
8127         * modules/realloc-gnu-tests: New file.
8128         * tests/test-realloc-gnu.c: New file.
8129
8130         Tests for module 'calloc-gnu'.
8131         * modules/calloc-gnu-tests: New file.
8132         * tests/test-calloc-gnu.c: New file.
8133
8134         Tests for module 'malloc-gnu'.
8135         * modules/malloc-gnu-tests: New file.
8136         * tests/test-malloc-gnu.c: New file.
8137
8138 2010-08-28  Bruno Haible  <bruno@clisp.org>
8139
8140         Rename module 'realloc' -> 'realloc-gnu'.
8141         * modules/realloc-gnu: New file, copied from modules/realloc.
8142         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8143         obsolete.
8144         * modules/mgetgroups (Depends-on): Update.
8145         * doc/posix-functions/realloc.texi: Update.
8146         * NEWS: Mention the change.
8147
8148         Rename module 'calloc' -> 'calloc-gnu'.
8149         * modules/calloc-gnu: New file, copied from modules/calloc.
8150         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8151         obsolete.
8152         * doc/posix-functions/calloc.texi: Update.
8153         * NEWS: Mention the change.
8154
8155         Rename module 'malloc' -> 'malloc-gnu'.
8156         * modules/malloc-gnu: New file, copied from modules/malloc.
8157         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8158         obsolete.
8159         * modules/argp (Depends-on): Update.
8160         * modules/regex (Depends-on): Update.
8161         * doc/posix-functions/malloc.texi: Update.
8162         * NEWS: Mention the change.
8163
8164 2010-08-28  Eric Blake  <eblake@redhat.com>
8165
8166         pread, pwrite: add missing dependency
8167         * modules/pread (Depends-on): Add extensions.
8168         * modules/pwrite (Depends-on): Likewise.
8169
8170 2010-08-28  Bruno Haible  <bruno@clisp.org>
8171
8172         unistr/u*-strchr: Fix tests dependencies.
8173         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8174         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8175         Reported by Ian Beckwith <ianb@erislabs.net>.
8176
8177 2010-08-28  Bruno Haible  <bruno@clisp.org>
8178
8179         read-file: Don't occupy too much unused memory.
8180         * lib/read-file.c (fread_file): Shrink the buffer at the end.
8181
8182 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
8183             Eric Blake  <eblake@redhat.com>
8184             Bruno Haible  <bruno@clisp.org>
8185
8186         read-file: Avoid memory reallocations with regular files.
8187         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
8188         (fread_file): With regular files, use the remaining length as the
8189         initial buffer size.  Check against overflow.
8190         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
8191         sys_stat.
8192
8193 2010-08-28  Bruno Haible  <bruno@clisp.org>
8194
8195         ftello: Relax license.
8196         * modules/ftello (License): Relax to LGPLv2+.
8197         Reported by Eric Blake.
8198
8199 2010-08-28  Bruno Haible  <bruno@clisp.org>
8200
8201         Avoid relocwrapper link errors due to gnulib replacement functions.
8202         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
8203         function.
8204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8205
8206 2010-08-28  Bruno Haible  <bruno@clisp.org>
8207
8208         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
8209         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
8210         defined.
8211         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
8212         Suggested by Eric Blake.
8213
8214 2010-08-28  Bruno Haible  <bruno@clisp.org>
8215
8216         sys_socket, netdb: Ensure socklen_t gets defined.
8217         * modules/sys_socket (Depends-on): Add socklen.
8218         * modules/netdb (Depends-on): Likewise.
8219         * modules/getaddrinfo (Depends-on): Remove socklen.
8220         * modules/getsockopt (Depends-on): Likewise.
8221         * modules/setsockopt (Depends-on): Likewise.
8222         * tests/test-sys_socket.c: Check that socklen_t is defined.
8223         * tests/test-netdb.c: Likewise.
8224         * m4/socklen.m4: Update comments.
8225         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8226
8227 2010-08-27  Eric Blake  <eblake@redhat.com>
8228
8229         login_tty: add missing dependency
8230         * modules/login_tty (Depends-on): Add pty.
8231
8232 2010-08-26  Eric Blake  <eblake@redhat.com>
8233
8234         lib-symbol-versions: fix m4 quoting
8235         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
8236         format for AC_LINK_IFELSE.
8237
8238         glob: fix compile test
8239         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
8240
8241         btowc: fix missing file
8242         * modules/btowc (Files): Also ship locale-fr.m4.
8243
8244         lseek: fix link test
8245         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
8246         AC_LINK_IFELSE.
8247
8248         include_next: silence autoconf 2.68 warning
8249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
8250         AC_COMPILE_IFELSE as special.
8251         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
8252         autoconf < 2.68.
8253
8254         acl: fix compilation test
8255         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
8256         AC_COMPILE_IFELSE.
8257
8258 2010-08-26  Bruno Haible  <bruno@clisp.org>
8259
8260         Modernize AC_TRY_RUN invocations.
8261         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
8262         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8263         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
8264         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
8265         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
8266         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8267         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8269         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8270         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8271         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8272         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8273         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8274         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8275         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8276         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8277         gl_MBRLEN_NUL_RETVAL): Likewise.
8278         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8279         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8280         Likewise.
8281         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8282         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8283         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8284         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8285         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
8286         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
8287         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
8288         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8289         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
8290         Likewise.
8291         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8292         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
8293         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8294         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8295         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8296         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8297         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8298         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
8299         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8301
8302 2010-08-26  Bruno Haible  <bruno@clisp.org>
8303
8304         Modernize AC_TRY_LINK invocations.
8305         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
8306         AC_TRY_LINK.
8307         * m4/argp.m4 (gl_ARGP): Likewise.
8308         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8309         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8310         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8311         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8312         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8313         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
8314         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8315         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8316         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8317         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8318         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8319         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
8320         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
8321         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8322         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8323         * m4/hostent.m4 (gl_HOSTENT): Likewise.
8324         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8325         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
8326         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8327         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
8328         Likewise.
8329         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
8330         Likewise.
8331         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
8332         Likewise.
8333         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
8335         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
8336         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8337         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8338         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8339         * m4/servent.m4 (gl_SERVENT): Likewise.
8340         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8341         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8342         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8343         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8344         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8345         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8346         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8347         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8348         * modules/tsearch-tests (configure.ac): Likewise.
8349
8350 2010-08-26  Bruno Haible  <bruno@clisp.org>
8351
8352         Modernize AC_TRY_COMPILE invocations.
8353         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
8354         AC_TRY_COMPILE.
8355         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
8356         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
8357         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8358         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
8359         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8360         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8361         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8362         * m4/lock.m4 (gl_LOCK): Likewise.
8363         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8364         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8365         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
8366         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8367         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8368         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
8369         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
8371         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8372         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8373         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8374         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8375         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
8376         extraneous semicolon.
8377
8378 2010-08-26  Jim Meyering  <meyering@redhat.com>
8379
8380         stat-time: relax license LGPL
8381         * modules/stat-time (License): Change from GPL to LGPL,
8382         with consent from all contributors, for use in libguile.
8383         Requested by Ludovic Courtès.
8384
8385 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
8386
8387         poll: return immediately on POLLHUP.
8388         * lib/poll.c (poll): Always set timeout before wait_timeout is
8389         computed.
8390
8391 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8392
8393         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
8394         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
8395         rmdir ("dir/.//"), unlinkat.
8396
8397 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8398
8399         stdbool: avoid spurious failure with modern xlc
8400         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8401
8402 2010-08-24  Bruno Haible  <bruno@clisp.org>
8403
8404         getloadavg: simplify code
8405         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
8406         gl_have_func. Update comments.
8407
8408 2010-08-24  Eric Blake  <eblake@redhat.com>
8409
8410         getloadavg: don't define SVR4 on cygwin
8411         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
8412         only define SVR4 when -lkvm is required.
8413         Reported by Yaakov Selkowitz.
8414
8415 2010-08-24  Bruno Haible  <bruno@clisp.org>
8416
8417         priv-set: fix comment
8418         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
8419
8420 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8421
8422         priv-set: fix comments
8423         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
8424         to match code, as suggested by David Bartley in:
8425         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
8426
8427 2010-08-23  Eric Blake  <eblake@redhat.com>
8428
8429         stdbool: avoid rejecting clang
8430         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8431         * tests/test-stdbool.c: Enable more tests if using the system
8432         <stdbool.h> instead of the gnulib replacement.
8433         (main): Move xlc bug test to a runtime test for all compilers.
8434         Reported by Anders Kaseorg.
8435
8436         argz: fix shell quoting issue
8437         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8438         Reported by Charles Wilson.
8439
8440 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8441             Erik Faye-Lund <kusmabite@gmail.com>
8442
8443         poll, select: handle ERROR_BROKEN_PIPE.
8444         * lib/poll.c (win32_compute_revents): Return POLLHUP when
8445         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8446         * lib/select.c (win32_compute_revents): Do not mark a pipe
8447         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8448
8449 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
8450
8451         fts: allow compilation with C++
8452         * lib/fts_.h: Specify extern "C" linkage with C++.
8453
8454 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8455
8456         Fix gnulib-tool sed script de-commentation for AIX sed.
8457         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
8458         sed.
8459
8460 2010-08-17  Eric Blake  <eblake@redhat.com>
8461
8462         test-stddef: test for (some) offsetof bugs
8463         * tests/test-stddef.c: Enhance test to ensure correct type of
8464         offsetof.
8465         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
8466         that we are not fixing at this time.
8467
8468 2010-08-15  Bruno Haible  <bruno@clisp.org>
8469
8470         stpncpy: Allow stpncpy to be defined as a macro.
8471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
8472         if it's already correctly declared.
8473         * lib/string.in.h (stpncpy): Undefine before redefining.
8474         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
8475
8476 2010-08-14  Bruno Haible  <bruno@clisp.org>
8477
8478         Rename module 'memxfrm' to 'amemxfrm'.
8479         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
8480         (amemxfrm): Renamed from memxfrm.
8481         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
8482         (amemxfrm): Renamed from memxfrm.
8483         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
8484         * NEWS: Mention the change.
8485         * MODULES.html.sh (String handling <string.h>): Update.
8486         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
8487         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
8488         * lib/unicase/u16-casexfrm.c: Likewise.
8489         * lib/unicase/u32-casexfrm.c: Likewise.
8490         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
8491         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
8492         * lib/uninorm/u16-normxfrm.c: Likewise.
8493         * lib/uninorm/u32-normxfrm.c: Likewise.
8494         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
8495         memxfrm.
8496         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
8497         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
8498         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
8499         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
8500         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
8501         Suggested by Paul Eggert.
8502
8503 2010-08-14  Bruno Haible  <bruno@clisp.org>
8504
8505         Tests for module 'astrxfrm'.
8506         * modules/astrxfrm-tests: New file.
8507         * tests/test-astrxfrm.c: New file.
8508
8509         New module 'astrxfrm'.
8510         * lib/astrxfrm.h: New file.
8511         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
8512         * modules/astrxfrm: New file.
8513
8514 2010-08-14  Reuben Thomas <rrt@sc3d.org>
8515
8516         regex: Tweak doc.
8517         * doc/regex.texi (Overview): Don't mention regex.c.
8518         (GNU Regular Expression Compiling): Likewise.
8519         (Match-end-of-line Operator): Mention 'not_eol'.
8520
8521 2010-08-14  Brian Gough  <bjg@gnu.org>
8522             Bruno Haible  <bruno@clisp.org>
8523
8524         git-merge-changelog: add doc relating to use with bzr and hg.
8525         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
8526
8527 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
8528
8529         pthread: fix pthread.h creation for srcdir != builddir
8530         * modules/pthread (Makefile.am): Fix the rule to work also in a
8531         non-srcdir build.
8532
8533 2010-08-13  Karl Berry  <karl@gnu.org>
8534
8535         * doc/regex.texi (Predefined Syntaxes): @smallexample.
8536         * doc/posix-*/*: force line break before @url of POSIX
8537         specifications.
8538         Suggested by Werner Lemberg.
8539
8540 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8541
8542         strtod: fix const diagnostic
8543         * lib/strtod.c (strtod): Don't assign const char * to char *,
8544         as this elicits a warning from GCC when warnings are enabled.
8545
8546 2010-08-10  Pádraig Brady <P@draigbrady.com>
8547         and Eric Blake  <eblake@redhat.com>
8548
8549         copy-acl: ignore ENOTSUP on HP-UX
8550         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
8551         so that it is available for HP-UX.
8552         * lib/copy-acl.c (qcopy_acl): Use it.
8553         Reported by Patrick M. Callahan.
8554
8555 2010-08-10  Eric Blake  <eblake@redhat.com>
8556
8557         open, chown: relax license
8558         * modules/open (License): Change to LGPLv2+, with consent by all
8559         authors, for use in augeas.
8560         * modules/chown (License): Likewise.
8561         * modules/lchown (Likewise): Likewise.
8562         Requested by Adam Stokes.
8563
8564 2010-08-09  Karl Berry  <karl@gnu.org>
8565
8566         * build-aux/ar-lib: new file, import from Automake.
8567         * config/srclist.txt: autocheck for updates.
8568
8569 2010-08-09  Eric Blake  <eblake@redhat.com>
8570
8571         readlinkat: adjust client modules
8572         * modules/areadlinkat (Depends-on): Use readlinkat, not
8573         symlinkat.
8574         * modules/areadlinkat-with-size (Depends-on): Likewise.
8575
8576         mknod: be more vocal about danger of running tests as root
8577         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
8578         root, since that is just asking for problems.
8579         Suggested by Bruno Haible, based on a report by Rainer Tammer.
8580
8581         readlinkat: split into its own module
8582         * modules/symlinkat: Split readlinkat...
8583         * modules/readlinkat: ...into separate module.
8584         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
8585         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
8586         * lib/symlinkat.c (readlinkat): Move...
8587         * lib/readlinkat.c: ...into new file.
8588         * modules/symlinkat-tests: Split readlinkat test...
8589         * modules/readlinkat-tests: ...into separate module.
8590         * tests/test-symlinkat.c: Split...
8591         * tests/test-readlinkat.c: ...into new file.
8592         * NEWS: Document the split.
8593         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8594         * lib/unistd.in.h (readlinkat): Likewise.
8595         Suggested by Bruno Haible.
8596
8597 2010-08-08  Bruno Haible  <bruno@clisp.org>
8598
8599         memxfrm: Speed up.
8600         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
8601         that usually only one call to strxfrm is necessary for each string
8602         part.
8603         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8604
8605 2010-08-07  Karl Berry  <karl@gnu.org>
8606
8607         * doc/posix-headers/limits.texi,
8608         * doc/posix-functions/malloc.texi,
8609         * doc/posix-functions/strsignal.texi: missing @item.
8610         * doc/ld-version-script.texi: spurious leading i.
8611         * doc/regex.texi (Interval Operators): no commas inside @var.
8612
8613 2010-08-01  Bruno Haible  <bruno@clisp.org>
8614
8615         Integrate the regex documentation.
8616         * doc/gnulib.texi: Define 'cn' index.
8617         (Regular expressions): New a chapter that includes regex.texi and
8618         regexprops-generic.texi.
8619         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
8620         syntax.
8621
8622         Whitespace cleanup.
8623         * doc/regex.texi: Remove trailing spaces.
8624
8625         Add regex documentation.
8626         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
8627         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
8628         Written by Kathy A. Hargreaves and Karl Berry.
8629
8630 2010-08-01  Bruno Haible  <bruno@clisp.org>
8631
8632         link: Update documentation.
8633         * doc/posix-functions/link.texi: Update regarding Solaris.
8634
8635 2010-07-31  Bruno Haible  <bruno@clisp.org>
8636
8637         Update modules list.
8638         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
8639         (String handling <string.h>): Add memcmp2, memxfrm.
8640         (Container data structures): Add xlist, xsublist, xoset.
8641         (Core language properties): Add alignof, unused-parameter.
8642         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8643         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8644         (Unibyte characters <ctype.h>): New section.
8645         (String handling <string.h>): New section.
8646         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8647         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8648         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8649         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8650         tan, tanh, tanl, y0, y1, yn.
8651         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8652         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8653         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8654         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8655         unlockpt, vdprintf, vdprintf-posix.
8656         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8657         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8658         xconcat-filename.
8659         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8660         getdtablesize, pipe2, pipe2-safer.
8661         (Security): New section.
8662         (Networking functions): Add accept4.
8663         (Signal handling): Add sigpipe.
8664         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8665         mbmemcasecoll.
8666         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8667         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
8668         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
8669         pipe-filter-ii.
8670         (Misc): Add argp-version-etc, login_tty, parse-duration.
8671
8672 2010-07-31  Bruno Haible  <bruno@clisp.org>
8673
8674         Improve doc in MODULES.html.
8675         * modules/linkat (Description): Add the word "function".
8676         * modules/mkfifo (Description): Likewise.
8677         * modules/mknod (Description): Likewise.
8678         * modules/remove (Description): Likewise.
8679         * modules/renameat (Description): Likewise.
8680         * modules/stat (Description): Likewise.
8681         * modules/symlink (Description): Likewise.
8682         * modules/unlink (Description): Likewise.
8683
8684 2010-07-31  Bruno Haible  <bruno@clisp.org>
8685
8686         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
8687         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
8688         option --enable/disable-c++ instead of --enable/disable-cxx.
8689         * NEWS: Mention the change.
8690
8691 2010-07-31  Bruno Haible  <bruno@clisp.org>
8692
8693         readlink, areadlink: Relax test a bit.
8694         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
8695         alternative to ENOTDIR.
8696         * tests/test-areadlink.h (test_areadlink): Likewise.
8697         Reported by Rainer Tammer.
8698
8699 2010-07-31  Bruno Haible  <bruno@clisp.org>
8700
8701         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
8702         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
8703         character, perform the search using U_STRCHR.
8704         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
8705         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
8706         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
8707         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
8708         Suggested by Paolo Bonzini.
8709
8710 2010-07-31  Bruno Haible  <bruno@clisp.org>
8711
8712         unistr/u*-strstr: Fix dependencies.
8713         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
8714         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
8715         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
8716
8717 2010-07-31  Bruno Haible  <bruno@clisp.org>
8718
8719         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
8720         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
8721         the beginning of the loop.
8722         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
8723         cases in 'switch' statement.
8724
8725         unistr/u8-strchr: Fix several bugs.
8726         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
8727         the string. When not found, return NULL, not a pointer near the end.
8728
8729         More tests for unistr/u8-strchr.
8730         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
8731         that the function does not read past the first occurrence of the byte
8732         being searched.
8733         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
8734         * tests/unistr/test-u16-strchr.c (main): New function.
8735         * tests/unistr/test-u32-strchr.c (main): New function.
8736
8737 2010-07-31  Bruno Haible  <bruno@clisp.org>
8738
8739         posix-modules: Ignore backup files of documentation files.
8740         * posix-modules: grep only through files named *.texi.
8741
8742 2010-07-31  Bruno Haible  <bruno@clisp.org>
8743
8744         symlinkat: Fix documentation.
8745         * doc/posix-functions/readlinkat.texi: Fix module name.
8746
8747 2010-07-31  Bruno Haible  <bruno@clisp.org>
8748
8749         fchownat: Replace also when chown has the trailing slash bug.
8750         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
8751         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
8752         introduced on 2010-04-10.
8753         Reported by Rainer Tammer.
8754
8755 2010-07-31  Bruno Haible  <bruno@clisp.org>
8756
8757         linkat: Work around AIX 7.1 bug.
8758         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
8759         whether linkat handles trailing slash correctly. If not, replace linkat
8760         and define LINKAT_TRAILING_SLASH_BUG.
8761         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
8762         check whether (fd1,file1) points to a directory if file1 or file2 ends
8763         in a slash. Code taken from lib/link.c.
8764         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
8765         Reported by Rainer Tammer.
8766
8767 2010-07-31  Bruno Haible  <bruno@clisp.org>
8768
8769         Correctly determine whether pow is available in libc on AIX 7 with xlc.
8770         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
8771         This disables an xlc optimization that was causing wrong test results.
8772         Reported by Rainer Tammer.
8773
8774 2010-07-31  Bruno Haible  <bruno@clisp.org>
8775
8776         iconv: Work around AIX 6.1..7.1 bug.
8777         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8778         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8779         cross-compiling, guess no on all versions of AIX.
8780         Reported by Rainer Tammer.
8781
8782 2010-07-31  Bruno Haible  <bruno@clisp.org>
8783
8784         readlink: Relax test a bit.
8785         * tests/test-readlink.h (test_readlink): Allow different errno value
8786         when readlink is called with a file name that ends in / and refers to
8787         a file.
8788         Suggested by Eric Blake.
8789         Reported by Rainer Tammer.
8790
8791 2010-07-31  Bruno Haible  <bruno@clisp.org>
8792
8793         copysign: Does not require -lm on glibc systems.
8794         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8795         gl_COMMON_DOUBLE_MATHFUNC.
8796         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8797
8798 2010-07-31  Bruno Haible  <bruno@clisp.org>
8799
8800         duplocale: Work around AIX 7.1 bug.
8801         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8802         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8803         * lib/duplocale.c (rpl_duplocale): Update comment.
8804         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8805         Reported by Rainer Tammer.
8806
8807 2010-07-30  Bruno Haible  <bruno@clisp.org>
8808
8809         dirfd: Avoid link error on AIX 7.1.
8810         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8811         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8812         exist, set REPLACE_DIRFD.
8813         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8814         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8815         * doc/posix-functions/dirfd.texi: Update.
8816         Reported by Rainer Tammer.
8817
8818 2010-07-30  Eric Blake  <eblake@redhat.com>
8819
8820         strtod: next round of AIX fixes
8821         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
8822         exponent.
8823         * tests/test-strtod.c (main): Enhance tests.
8824         * doc/posix-functions/strtod.texi (strtod): Document next bug.
8825         Reported by Rainer Tammer.
8826
8827         futimens: fix configure check
8828         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
8829         Reported by Bruno Haible.
8830
8831 2010-07-30  Bruno Haible  <bruno@clisp.org>
8832
8833         getline: Update regarding AIX.
8834         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
8835         Reported by Rainer Tammer.
8836
8837 2010-07-30  Bruno Haible  <bruno@clisp.org>
8838
8839         wcwidth: Drop replacement on AIX 7.
8840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
8841         AIX 7.
8842         Reported by Rainer Tammer.
8843
8844 2010-07-30  Bruno Haible  <bruno@clisp.org>
8845
8846         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
8847         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
8848         a 'char *'.
8849         Reported by Rainer Tammer.
8850
8851 2010-07-30  Bruno Haible  <bruno@clisp.org>
8852
8853         unlink: Update regarding AIX.
8854         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
8855         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
8856         Reported by Rainer Tammer.
8857
8858 2010-07-30  Bruno Haible  <bruno@clisp.org>
8859
8860         symlink: Update regarding AIX.
8861         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
8862         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
8863         Reported by Rainer Tammer.
8864
8865 2010-07-30  Bruno Haible  <bruno@clisp.org>
8866
8867         strndup: Update regarding AIX.
8868         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
8869         AIX 7.
8870         Reported by Rainer Tammer.
8871
8872 2010-07-30  Bruno Haible  <bruno@clisp.org>
8873
8874         stat: Update regarding AIX.
8875         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
8876         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
8877         Reported by Rainer Tammer.
8878
8879 2010-07-30  Bruno Haible  <bruno@clisp.org>
8880
8881         truncl: Fix autoconf test.
8882         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
8883         whether truncl works.
8884         Reported by Rainer Tammer.
8885
8886 2010-07-30  Bruno Haible  <bruno@clisp.org>
8887
8888         round: Update regarding AIX.
8889         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
8890         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
8891         Reported by Rainer Tammer.
8892
8893 2010-07-30  Bruno Haible  <bruno@clisp.org>
8894
8895         rename: Update regarding AIX.
8896         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
8897         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
8898         Reported by Rainer Tammer.
8899
8900 2010-07-30  Bruno Haible  <bruno@clisp.org>
8901
8902         printf.m4: Update regarding AIX.
8903         * m4/printf.m4: Update comments regarding AIX.
8904         Reported by Rainer Tammer.
8905
8906 2010-07-30  Bruno Haible  <bruno@clisp.org>
8907
8908         iconv: Update regarding AIX.
8909         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
8910         AIX 7.
8911         Reported by Rainer Tammer.
8912
8913 2010-07-30  Bruno Haible  <bruno@clisp.org>
8914
8915         getopt: Update regarding AIX.
8916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
8917         no on AIX.
8918         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
8919         Reported by Rainer Tammer.
8920
8921 2010-07-30  Bruno Haible  <bruno@clisp.org>
8922
8923         ldexpl; Update regarding AIX.
8924         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
8925         on AIX 7.
8926         Reported by Rainer Tammer.
8927
8928 2010-07-30  Bruno Haible  <bruno@clisp.org>
8929
8930         frexpl: Update regarding AIX.
8931         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
8932         on AIX 7.
8933         Reported by Rainer Tammer.
8934
8935 2010-07-30  Bruno Haible  <bruno@clisp.org>
8936
8937         open, fopen: Update regarding AIX.
8938         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
8939         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8940         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
8941         * doc/posix-functions/fopen.texi: Likewise.
8942         Reported by Rainer Tammer.
8943
8944 2010-07-30  Bruno Haible  <bruno@clisp.org>
8945
8946         chown: Update doc regarding AIX.
8947         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
8948         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
8949         Reported by Rainer Tammer.
8950
8951 2010-07-30  Eric Blake  <eblake@redhat.com>
8952
8953         strtod: fix bug in replacement function on AIX
8954         * lib/strtod.c (strtod): Special case broken "0x" parse in
8955         underlying strtod.
8956         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
8957         * doc/posix-functions/strtod.texi (strtod): Likewise.
8958         Reported by Rainer Tammer.
8959
8960 2010-07-30  Bruno Haible  <bruno@clisp.org>
8961
8962         mbrlen: Fix cross-compilation guess for AIX.
8963         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
8964         guess. Leftover from 2008-12-22.
8965
8966 2010-07-30  Bruno Haible  <bruno@clisp.org>
8967
8968         mbrtowc: Fix cross-compilation guess for AIX.
8969         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
8970         guess. Leftover from 2008-12-21.
8971
8972 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
8973
8974         init.sh: work around trap limitation of some shells
8975         * tests/init.sh (setup_): Move exit trap outside of shell function.
8976
8977 2010-07-29  Eric Blake  <eblake@redhat.com>
8978
8979         strtod: aid debugging
8980         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
8981         understanding why strtod is rejected.
8982
8983 2010-07-28  Bruno Haible  <bruno@clisp.org>
8984
8985         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
8986         * lib/unistr/u8-chr.c: Include <string.h>.
8987         * tests/unistr/test-u8-chr.c: Likewise.
8988         * tests/unistr/test-u16-chr.c: Likewise.
8989         * tests/unistr/test-u32-chr.c: Likewise.
8990         * tests/unistr/test-u8-strchr.c: Likewise.
8991         * tests/unistr/test-u16-strchr.c: Likewise.
8992         * tests/unistr/test-u32-strchr.c: Likewise.
8993         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
8994         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
8995         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
8996         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
8997
8998 2010-07-28  Bruno Haible  <bruno@clisp.org>
8999
9000         Use spaces for indentation, not tabs.
9001         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9002
9003 2010-07-27  Bruno Haible  <bruno@clisp.org>
9004
9005         mbspcasecmp: Fix function specification.
9006         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9007         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9008         Reported by Eric Blake <eblake@redhat.com>.
9009
9010 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9011
9012         timespec: use cast and not conditional, as truncation isn't possible
9013         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9014         instead of a conditional.  Comment about the situation in more detail.
9015         This undoes most of the 2009-10-29 patch.
9016
9017 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9018
9019         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9020         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9021         * lib/unistr/u8-strchr.c: Likewise.
9022         * modules/unistr/u8-chr: Depend on memchr.
9023
9024         unistr/u*-strchr: add tests
9025         * modules/unistr/u8-strchr-tests: New file.
9026         * modules/unistr/u16-strchr-tests: New file.
9027         * modules/unistr/u32-strchr-tests: New file.
9028         * tests/unistr/test-strchr.h: New file.
9029         * tests/unistr/test-u8-strchr.c: New file.
9030         * tests/unistr/test-u16-strchr.c: New file.
9031         * tests/unistr/test-u32-strchr.c: New file.
9032
9033         unistr/u*-chr: test multibyte sequences more
9034         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9035         test vector.
9036         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9037         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9038         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9039
9040         unistr/u*-chr: test multibyte sequences
9041         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9042
9043         unistr/u*-chr: prepare for multibyte tests
9044         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9045         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9046         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9047         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9048         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9049         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9050
9051 2010-07-18  Bruno Haible  <bruno@clisp.org>
9052
9053         unistr/u8-strchr: Optimize non-ASCII argument case.
9054         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9055         because the first byte often matches anyway.
9056         Reported by Pádraig Brady <P@draigbrady.com>.
9057
9058 2010-07-15  Karl Berry  <karl@gnu.org>
9059
9060         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9061
9062 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9063
9064         getcwd: on Solaris, work better if ancestors are inaccessible
9065         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9066         buffer and size, try again with a large buffer.  This works better
9067         on Solaris, since its getcwd succeeds even if the path to the root
9068         is inaccessible, and this is helpful in common cases such as .zfs
9069         hidden directories.  Problem reported by J Chapman Flack in
9070         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9071         Use system getcwd if it's declared, not merely if it's partly
9072         working; use the partly-working test only to avoid needless effort
9073         if the system getcwd fails.
9074         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9075         comment that was already obsolete and is now even more obsolete.
9076         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9077         now might call strdup.
9078
9079 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9080
9081         pthread: Add enough so that coreutils/src/sort.c compiles.
9082         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9083         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9084         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9085         Include <sys/types.h>, in case it defines pthread_t.
9086         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9087         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9088         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9089         (pthread_rwlockattr_t, pthread_spinlock_t):
9090         New typedefs, if HAVE_PTHREAD_T is not defined.
9091         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9092         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9093         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9094         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9095         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9096         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9097         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9098         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9099         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9100         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9101         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9102         New macros.
9103         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9104         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9105         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9106         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9107         (pthread_spin_unlock): New dummy functions.
9108         (pthread_create): Return EAGAIN; don't set errno.
9109         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9110         require AC_C_INLINE.
9111         * modules/pthread (Depends-on): Add sched, time.
9112         (pthread.h): Use AM_V_GEN.
9113
9114 2010-07-13  Bruno Haible  <bruno@clisp.org>
9115
9116         striconveh: Don't malloc memory if the result buffer is sufficient.
9117         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9118         buffer if its size is sufficient.
9119         Reported by Ludovic Courtès <ludo@gnu.org>.
9120
9121 2010-07-13  Bruno Haible  <bruno@clisp.org>
9122
9123         strtod: Add safety check.
9124         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9125
9126 2010-07-12  Bruno Haible  <bruno@clisp.org>
9127
9128         Unify tests that set gl_cv_func_ldexpl_no_libm.
9129         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9130         gl_FUNC_LDEXPL.
9131         (gl_FUNC_LDEXPL): Invoke it.
9132         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9133
9134 2010-07-12  Bruno Haible  <bruno@clisp.org>
9135
9136         Unify tests that set gl_cv_func_ldexp_no_libm.
9137         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9138         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9139         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9140         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9141         * modules/strtod (Files): Add m4/ldexp.m4.
9142
9143 2010-07-12  Bruno Haible  <bruno@clisp.org>
9144
9145         Unify tests that set gl_cv_func_frexpl_no_libm.
9146         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9147         gl_FUNC_FREXPL_NO_LIBM.
9148         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9149         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9150
9151 2010-07-12  Bruno Haible  <bruno@clisp.org>
9152
9153         Unify tests that set gl_cv_func_frexp_no_libm.
9154         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9155         gl_FUNC_FREXP_NO_LIBM.
9156         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9157         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9158
9159 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9160
9161         memcoll: clarify sizes versus lengths, document better, and tweak perf
9162         * lib/memcoll.c (strcoll_loop, memcoll0):
9163         Improve quality of descriptive comments.  Name variables
9164         consistently as to whether they are lengths (which do not include
9165         terminating null) versus sizes (which do).
9166         * lib/xmemcoll.c (xmemcoll0): Likewise.
9167         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9168         returned when s1size == 0; this is easier to compile and saves
9169         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9170
9171 2010-07-12  Bruno Haible  <bruno@clisp.org>
9172
9173         Tests for module '_Exit'.
9174         * modules/_Exit-tests: New file.
9175         * tests/test-_Exit.sh: New file.
9176         * tests/test-_Exit.c: New file.
9177
9178         New module '_Exit'.
9179         * lib/stdlib.in.h (__attribute__): New macro.
9180         (_Exit): New declaration.
9181         * lib/_Exit.c: New file.
9182         * m4/_Exit.m4: New file.
9183         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9184         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
9185         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
9186         * modules/_Exit: New file.
9187         * tests/test-stdlib-c++.cc (_Exit): Check signature.
9188         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
9189
9190 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9191
9192         strtod: make it more-accurate typically, and don't require libm
9193         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
9194         Include limits.h.  Don't include string.h.
9195         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
9196         (locale_isspace): New function, so that no casts are needed to
9197         check whether *s is a space.
9198         (ldexp): Provide an unused dummy if not available.
9199         (scale_radix_exp, parse_number, underlying_strtod): New functions.
9200         (strtod): Use them.  This implementation prefers to use the
9201         underlying strtod if available, falling back on our own code
9202         only to fix known bugs.  This is more likely to produce an
9203         accurate result.  Also, it avoids the use of libm functions.
9204         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
9205         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
9206         was absent, but it caused a test failure with coreutils.
9207         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
9208         with libm.
9209         * modules/strtod (Makefile.am, Link): libm is no longer needed.
9210         * modules/strtod-tests (Makefile.am): Likewise.
9211
9212 2010-07-11  Pádraig Brady  <P@draigBrady.com>
9213             Bruno Haible  <bruno@clisp.org>
9214
9215         unistr/u8-strchr: Optimize ASCII argument case.
9216         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
9217
9218 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9219
9220         (x)memcoll: minor tweaks
9221         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
9222         is after the type that it qualifies.
9223         (memcoll0): Likewise.
9224         * lib/memcoll.h (memcoll0): Likewise.
9225         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
9226         * lib/xmemcoll.h (xmemcoll0): Likewise.
9227         * lib/memcoll.c (memcoll0): Correct the comment.  This function
9228         differs from memcoll in that the NUL byte is part of the argument.
9229         Omit the abort-checks, as performance is a real issue here.  Plus,
9230         the checks were wrong anyway (an off-by-one error).  Omit local
9231         variable 'diff', as it's a bit clearer that way.
9232         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
9233         no longer needed.
9234
9235 2010-07-08  Chen Guo <chenguo4@yahoo.com>
9236
9237         (x)memcoll: speedup when input is known to be NUL delimited
9238         * lib/memcoll.c: Include stdlib.
9239         (memcoll0) New function.
9240         (strcoll_loop) New function, refactored for use in both memcoll
9241         and memcoll0.
9242         * lib/memcoll.h: Add prototype for memcoll0.
9243         * lib/xmemcoll.c: (xmemcoll0) New function.
9244         (collate_error) New function, refactored for use in both xmemcoll
9245         and xmemcoll0.
9246         * lib/xmemcoll.h: Add prototype for xmemcoll0.
9247         * m4/memcoll.m4: add inline invocation.
9248
9249 2010-07-06  Pádraig Brady  <P@draigBrady.com>
9250
9251         * build-aux/bootstrap: Remove any local translations
9252         from the translation project synchronization directory,
9253         so that local only translations are not distributed.
9254
9255 2010-07-04  Bruno Haible  <bruno@clisp.org>
9256
9257         fsusage: Clarify which code applies to which platforms.
9258         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
9259         platform.
9260         * lib/fsusage.c (get_fs_usage): Likewise.
9261
9262 2010-07-04  Bruno Haible  <bruno@clisp.org>
9263
9264         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
9265         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
9266         Reported by Martin Lambers <marlam@marlam.de>.
9267
9268 2010-07-04  Jim Meyering  <meyering@redhat.com>
9269
9270         hash: once again explicitly disallow insertion of NULL
9271         * lib/hash.c (hash_insert0): Reinstate just-removed test:
9272         inserting a NULL pointer cannot work with these functions.
9273         Add a comment with details.
9274         This reverts part of the 2010-07-01 commit, 5bef1a35
9275         "hash: extend module to deal with non-pointer keys".
9276
9277 2010-07-01  Bruno Haible  <bruno@clisp.org>
9278
9279         stdbool: Update doc.
9280         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
9281         Info from Christian Weisgerber <naddy@mips.inka.de>.
9282
9283 2010-07-01  Jim Meyering  <meyering@redhat.com>
9284
9285         hash: extend module to deal with non-pointer keys
9286         * lib/hash.c (hash_insert0): New interface, much like hash_insert
9287         but that allows insertion of non-pointer entries.
9288         Do not disallow an ENTRY value of NULL.
9289         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
9290         * lib/hash.h (hash_insert0): Declare.
9291
9292 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9293
9294         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
9295         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
9296         not present (i.e. with autoconf 2.59 and when using gettextize, not
9297         gnulib), require AC_GNU_SOURCE instead.
9298
9299 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
9300
9301         idpriv-drop: Fix tests.
9302         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
9303         not to the test-idpriv-droptemp program.
9304
9305 2010-06-29  Bruno Haible  <bruno@clisp.org>
9306
9307         string: Fix syntax error with g++ 2.96.
9308         * lib/string.in.h (__pure__): Remove definition.
9309         (_GL_ATTRIBUTE_PURE): New macro.
9310         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
9311         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
9312         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9313
9314 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
9315
9316         unitypes: Fix bug introduced on 2010-05-18.
9317         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
9318
9319 2010-06-22  Eric Blake  <eblake@redhat.com>
9320
9321         memmem: slight optimization
9322         * lib/str-two-way.h (critical_factorization): Update comments.
9323         Reduce work during factorization phase.
9324         Reported by Carlos Bueno <carlos@bueno.org>.
9325
9326 2010-06-21  Bruno Haible  <bruno@clisp.org>
9327
9328         Fix HAVE_CALLOC_POSIX misnomer.
9329         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
9330         !HAVE_CALLOC_POSIX.
9331         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
9332         HAVE_CALLOC_POSIX.
9333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
9334         instead of HAVE_CALLOC_POSIX.
9335         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
9336         HAVE_CALLOC_POSIX.
9337
9338         Use modern idiom for calloc() replacement.
9339         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
9340         AC_FUNC_CALLOC.
9341         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
9342         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
9343         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9344         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
9345         (gl_REPLACE_CALLOC): New macro.
9346
9347 2010-06-21  Bruno Haible  <bruno@clisp.org>
9348
9349         Fix HAVE_REALLOC_POSIX misnomer.
9350         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
9351         !HAVE_REALLOC_POSIX.
9352         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
9353         HAVE_REALLOC_POSIX.
9354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
9355         instead of HAVE_REALLOC_POSIX.
9356         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
9357         HAVE_REALLOC_POSIX.
9358
9359         Use modern idiom for realloc() replacement.
9360         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
9361         AC_FUNC_REALLOC.
9362         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
9363         Autoconf's AC_FUNC_REALLOC.
9364         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9365         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
9366         (gl_REPLACE_REALLOC): New macro.
9367         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9368
9369 2010-06-21  Bruno Haible  <bruno@clisp.org>
9370
9371         Fix HAVE_MALLOC_POSIX misnomer.
9372         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
9373         !HAVE_MALLOC_POSIX.
9374         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
9375         HAVE_MALLOC_POSIX.
9376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
9377         instead of HAVE_MALLOC_POSIX.
9378         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
9379         HAVE_MALLOC_POSIX.
9380
9381         Use modern idiom for malloc() replacement.
9382         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
9383         AC_FUNC_MALLOC.
9384         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
9385         Autoconf's AC_FUNC_MALLOC.
9386         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9387         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
9388         (gl_REPLACE_MALLOC): New macro.
9389         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9390
9391 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
9392
9393         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
9394         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
9395         This macro takes 3 arguments, not 4.
9396
9397 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
9398
9399         ipv6: fix detection under mingw
9400         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
9401         in6_addr.
9402
9403 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
9404
9405         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
9406         that strtod() works when cross-compiling to a glibc version known
9407         to work.
9408
9409 2010-06-15  Bruno Haible  <bruno@clisp.org>
9410
9411         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
9412
9413 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
9414
9415         select: Correct timeout.
9416         * lib/select.c (rpl_select): Compute wait_timeout correctly.
9417
9418 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9419
9420         git-version-gen: init shell var to avoid env var influence
9421         * build-aux/git-version-gen (v): Init shell var to empty.
9422
9423 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9424
9425         priv-set: Don't assume that priv.h exists merely because getppriv does.
9426         See Jan Andersen's bug report about AIX 5L in
9427         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
9428         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
9429         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9430         * lib/priv-set.h: Likewise.
9431         * tests/test-priv-set.c: Likewise.
9432
9433 2010-06-13  Bruno Haible  <bruno@clisp.org>
9434
9435         relocatable: Make it easier to test whether to install wrappers.
9436         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9437         RELOCATABLE_VIA_WRAPPER.
9438
9439 2010-06-13  Bruno Haible  <bruno@clisp.org>
9440
9441         gnulib-tool: Display specified modules and dependencies differently.
9442         * gnulib-tool (func_show_module_list): New function.
9443         (func_import, func_create_testdir): Invoke it.
9444         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9445
9446 2010-06-13  Bruno Haible  <bruno@clisp.org>
9447
9448         gnulib-tool: Align code of func_import and func_create_testdir.
9449         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
9450         specified_modules.
9451
9452 2010-06-12  Jim Meyering  <meyering@redhat.com>
9453
9454         test-inttostr: avoid spurious failure on Solaris 9
9455         * tests/test-inttostr.c (main): Skip the test when snprintf fails
9456         to accept "%ju".  Reported by Bruno Haible.
9457
9458 2010-06-11  Jim Meyering  <meyering@redhat.com>
9459
9460         test-sys_socket: mark variables as used more readably
9461         * tests/test-sys_socket.c (main): Mark otherwise unused variables
9462         as "used" explicitly via (void) statement casts.  This is more
9463         readable than using them in an artificial return expression.
9464         Suggestion from Bruno Haible.
9465
9466 2010-06-11  Bruno Haible  <bruno@clisp.org>
9467
9468         Avoid some more warnings from "gcc -Wwrite-strings".
9469         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
9470         to 'const char *'.
9471         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
9472         * tests/test-c-strcasestr.c (main): Likewise.
9473         * tests/test-mbscasestr1.c (main): Likewise.
9474         * tests/test-mbscasestr2.c (main): Likewise.
9475         * tests/test-memmem.c (main): Likewise.
9476         * tests/test-strstr.c (main): Likewise.
9477         * tests/test-strcasestr.c (main): Likewise.
9478
9479 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9480
9481         init.sh: change framework_failure_ to fail with status 99, not 1
9482         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
9483         automake's parallel-tests rule that this is an unexpected failure,
9484         even if the test is listed in XFAIL_TESTS.
9485
9486 2010-06-11  Jim Meyering  <meyering@redhat.com>
9487
9488         test-inttostr: avoid warnings about 4-6KB literal strings
9489         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
9490         Include "macros.h", for its definition of ASSERT.
9491         (CK): s/assert/ASSERT/
9492         * modules/inttostr-tests (Files): Add macros.h.
9493
9494         init.sh: don't use $ME_ or skip_ before they are defined
9495         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
9496         their first uses.  Also hoist their companions: warn_, fail_,
9497         framework_failure_, $stderr_fileno.  Prompted by a patch from
9498         Stefano Lattarini.
9499
9500         test-sys_socket: avoid set-but-not-used warnings from gcc
9501         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
9502         avoid warning about set-but-not-used variables.
9503
9504         test-xvasprintf: avoid 'const' discard warnings
9505         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
9506         "const" when assigning from literal strings.
9507         (test_xasprintf): Add "void" in function argument list to placate
9508         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
9509
9510         tests: avoid compilation warnings in argmatch and exclude tests...
9511         in packages that define ARGMATCH_DIE_DECL, like coreutils.
9512         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
9513         Since it always exits, declare with the "noreturn" attribute.
9514         * tests/test-argmatch.c: Likewise.
9515
9516         tests: avoid 'const' discard warnings in mbsstr tests
9517         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
9518         * tests/test-mbsstr2.c (main): Likewise.
9519
9520         test-verify: avoid warning from gcc's -Wmissing-declarations
9521         * tests/test-verify.c (function): Declare to be static.
9522
9523         test-inttostr.c: include <string.h> for use of strcmp
9524         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
9525
9526         test-linkat: avoid failed assertion on "other" architectures
9527         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
9528         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
9529         sparc: https://bugs.launchpad.net/bugs/591968
9530
9531 2010-06-11  Jim Meyering  <meyering@redhat.com>
9532
9533         printf.m4: avoid autoconf's "Expanded Before Required" warning
9534         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
9535         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
9536         autoconf warning.
9537
9538 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
9539
9540         Replacement header templates are now named with ".in", not "_".
9541         * doc/gnulib-intro.texi: Correct.
9542
9543 2010-06-10  Jim Meyering  <meyering@redhat.com>
9544
9545         inttostr-tests: depend on snprintf, not snprintf-posix
9546         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
9547         snprintf-posix, to avoid this aclocal failure:
9548           missing file gnulib-tests/vasnprintf.c
9549           configure.ac:45: error: expected source file, required through \
9550           AC_LIBSOURCES, not found
9551
9552 2010-06-10  Jim Meyering  <meyering@redhat.com>
9553
9554         inttostr: add a new function, inttostr, and tests
9555         The namesake function was not available.  The existence of the
9556         template file, inttostr.c makes its addition nontrivial.
9557         * lib/anytostr.c: Rename from inttostr.c.
9558         (anytostr): Rename from inttostr.
9559         * lib/inttostr.c: New file.
9560         * modules/inttostr (Files): Add anytostr.c.
9561         (Makefile.am): Set lib_SOURCES instead of ...
9562         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
9563         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
9564         * lib/offtostr.c: Likewise.
9565         * lib/uinttostr.c: Likewise.
9566         * lib/umaxtostr.c: Likewise.
9567         * modules/inttostr-tests: New file.
9568         * tests/test-inttostr.c: New file.  Test these functions.
9569
9570 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
9571             Bruno Haible  <bruno@clisp.org>
9572
9573         Add "Extending Gnulib" chapter to manual.
9574         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
9575         chapter.
9576         (Extending Gnulib): New chapter.
9577         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
9578         chapter.
9579
9580 2010-06-09  Bruno Haible  <bruno@clisp.org>
9581
9582         Avoid relocwrapper link errors due to gnulib replacement functions.
9583         * lib/areadlink.c: Use the system's malloc, realloc functions.
9584         (areadlink): Set errno to ENOMEM explicitly.
9585         * modules/areadlink (Depends-on): Remove malloc-posix.
9586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9587
9588 2010-06-09  Bruno Haible  <bruno@clisp.org>
9589
9590         Avoid relocwrapper link errors due to gnulib replacement functions.
9591         * lib/canonicalize-lgpl.c: Use the system's malloc function.
9592         * lib/malloca.c: Likewise.
9593         * lib/relocatable.c: Likewise.
9594         * lib/progreloc.c: Use the system's malloc, sprintf functions.
9595         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
9596         * lib/setenv.c: Use the system's malloc, realloc functions.
9597         * lib/strerror.c: Use the system's sprintf function.
9598         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9599
9600 2010-06-04  Bruno Haible  <bruno@clisp.org>
9601
9602         Prefer documented low-level autoconf macro names.
9603         * m4/lib-link.m4: Use m4_translit instead of translit.
9604         * m4/environ.m4: Likewise.
9605         * m4/mathfunc.m4: Likewise.
9606         * m4/onceonly.m4: Likewise.
9607         * m4/stdint.m4: Likewise.
9608         Suggested by Eric Blake.
9609
9610 2010-06-04  Martin Lambers  <marlam@marlam.de>
9611             Bruno Haible  <bruno@clisp.org>
9612
9613         havelib: Allow library names with '+' characters.
9614         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9615         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
9616
9617 2010-06-09  Bruno Haible  <bruno@clisp.org>
9618
9619         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
9620         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
9621         realloc failed.
9622
9623 2010-06-08  Peter Simons  <simons@cryp.to>
9624
9625         maint.mk: make the news-check rule more configurable
9626         * top/maint.mk (news-check-lines-spec) New variable.
9627         (news-check): Use "sed -n 1,10p" in place of "head".
9628
9629 2010-06-07  Jim Meyering  <meyering@redhat.com>
9630
9631         do-release-commit-and-tag: fix typo in --help
9632         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
9633
9634         regex: avoid new dead-code warning with gcc-4.6.0
9635         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
9636         if-block containing a while-loop.  It's been unused for at least
9637         5 years.
9638
9639 2010-06-05  Bruno Haible  <bruno@clisp.org>
9640
9641         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9642         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9643
9644 2010-06-04  Bruno Haible  <bruno@clisp.org>
9645
9646         Update to GNU gettext 0.18.1.
9647         * modules/gettext (configure.ac): Require gettext infrastructure from
9648         version 0.18.1.
9649
9650 2010-06-03  Bruno Haible  <bruno@clisp.org>
9651
9652         Don't use AC_LIBOBJ with file names in subdirectories.
9653         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9654         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9655         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9656         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9657         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9658         gl_LIBUNISTRING_LIBSOURCE.
9659         (Makefile.am): Augment lib_SOURCES here, conditionally.
9660         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9661
9662 2010-06-03  Bruno Haible  <bruno@clisp.org>
9663
9664         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9665         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9666         expansion does not end with a newline.
9667         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
9668         unnecessary newline.
9669
9670 2010-06-03  Bruno Haible  <bruno@clisp.org>
9671
9672         Reduce dependencies.
9673         * tests/test-quotearg.h: New file, extracted from
9674         tests/test-quotearg.c.
9675         * tests/test-quotearg-simple.c: New file, extracted from
9676         tests/test-quotearg.c.
9677         * tests/test-quotearg.c: Don't include <ctype.h>.
9678         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
9679         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
9680         use_quote_double_quotes, use_quotearg_colon): Moved to
9681         tests/test-quotearg.h.
9682         (results_g, flag_results, custom_quotes, custom_results): Moved
9683         to tests/test-quotearg-simple.c.
9684         (main): Moved the part that does not depend on gettext to
9685         tests/test-quotearg-simple.c. Return 77 if the test cannot be
9686         performed.
9687         * modules/quotearg-simple: New file.
9688         * modules/quotearg-simple-tests: New file.
9689         * modules/quotearg (Depends-on): Add quotearg-simple.
9690         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
9691         (Files): Add tests/test-quotearg.h.
9692         Reported by Paolo Bonzini.
9693
9694 2010-06-03  Bruno Haible  <bruno@clisp.org>
9695
9696         Reduce dependencies.
9697         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
9698
9699 2010-06-03  Bruno Haible  <bruno@clisp.org>
9700
9701         time: Undefine more broken macros.
9702         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
9703         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
9704         Reported by Eric Blake.
9705
9706 2010-06-03  Bruno Haible  <bruno@clisp.org>
9707
9708         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
9709         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
9710         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
9711         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
9712         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
9713         Reported by Ludovic Courtès <ludo@gnu.org>.
9714
9715 2010-06-02  Eric Blake  <eblake@redhat.com>
9716
9717         time: work with mingw + pthreads-win32 library
9718         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
9719         if timespec is defined only in pthread.h.
9720         * modules/time (Makefile.am): Substitute it.
9721         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
9722         <pthread.h>, when needed.
9723         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
9724         from the library.
9725
9726 2010-05-31  Bruno Haible  <bruno@clisp.org>
9727
9728         Avoid expanding two macros in the wrong order.
9729         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
9730         gl_LIBUNISTRING if it is defined.
9731         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
9732         autoconf >= 2.64.
9733         Reported by Ludovic Courtès <ludo@gnu.org>.
9734
9735 2010-05-27  Jim Meyering  <meyering@redhat.com>
9736
9737         maint.mk: also prohibit "#undef" of always-defined symbols
9738         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
9739         Allow more than one space before the symbol name.
9740         (sc_prohibit_always-defined_macros): Use grep's -E, now that
9741         the regexp uses alternation.
9742
9743 2010-05-26  Eric Blake  <eblake@redhat.com>
9744
9745         maint.mk: avoid echo -e
9746         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
9747         Convert all uses of echo -* to printf.
9748         Reported by Matthias Bolte.
9749
9750 2010-05-25  Bruno Haible  <bruno@clisp.org>
9751
9752         Update to GNU gettext 0.18, part 2.
9753         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
9754         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
9755
9756 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9757
9758         Add missing include in test-pwrite.c.
9759         * tests/test-pwrite.c: Include string.h, for strcmp.
9760
9761 2010-05-24  Bruno Haible  <bruno@clisp.org>
9762
9763         * NEWS: Mention requirement for Automake option 'subdir-objects'.
9764
9765 2010-05-24  Bruno Haible  <bruno@clisp.org>
9766
9767         Don't use conversion with transliteration in u{8,16,32}_strcoll.
9768         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
9769         iconveh_error argument.
9770         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
9771         U_STRCONV_TO_LOCALE.
9772         * lib/unistr/u16-strcoll.c: Likewise.
9773         * lib/unistr/u32-strcoll.c: Likewise.
9774         * modules/unistr/u8-strcoll (Depends-on): Add
9775         uniconv/u8-strconv-to-enc, localcharset. Remove
9776         uniconv/u8-strconv-to-locale.
9777         (configure.ac): Bump version number.
9778         * modules/unistr/u16-strcoll (Depends-on): Add
9779         uniconv/u16-strconv-to-enc, localcharset. Remove
9780         uniconv/u16-strconv-to-locale.
9781         (configure.ac): Bump version number.
9782         * modules/unistr/u32-strcoll (Depends-on): Add
9783         uniconv/u32-strconv-to-enc, localcharset. Remove
9784         uniconv/u32-strconv-to-locale.
9785         (configure.ac): Bump version number.
9786
9787 2010-05-24  Bruno Haible  <bruno@clisp.org>
9788
9789         Avoid a test failure on NetBSD 5.0.
9790         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9791         an iconv() bug.
9792
9793 2010-05-24  Bruno Haible  <bruno@clisp.org>
9794
9795         Adjust #include directive style.
9796         * modules/regex (Includes): Recommend to write <regex.h>.
9797
9798 2010-05-24  Bruno Haible  <bruno@clisp.org>
9799
9800         regex: Don't require alloca.
9801         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9802         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9803         only inside if (0).
9804
9805 2010-05-23  Jim Meyering  <meyering@redhat.com>
9806
9807         test-renameat.c: include <sys/stat.h>
9808         * tests/test-renameat.c: Include <sys/stat.h>; required for
9809         definition of S_IS* macros.
9810
9811 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9812
9813         Update maintainer documentation for 'relocatable-prog' module.
9814         * doc/relocatable-maint.texi: Update.
9815         Comments by Bruno Haible.
9816
9817 2010-05-23  Bruno Haible  <bruno@clisp.org>
9818
9819         git-merge-changelog: Enable --split-merged-entry by default.
9820         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
9821         (usage): Don't mention this option any more.
9822         Reported by Ralf Wildenhues.
9823
9824 2010-05-23  Jim Meyering  <meyering@redhat.com>
9825
9826         test-pwrite: do not leave behind a test file named "out"
9827         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
9828         The trivial-looking use of init.sh is really necessary.
9829         It ensures that the temporary file, "out", is created in
9830         a temporary directory, and removed upon termination.
9831         * tests/test-pwrite.sh: Re-add file.
9832         * modules/pwrite-tests: Reference it.
9833
9834 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9835
9836         Fix output redirection buglet in init.sh.
9837         * tests/init.sh: Fix redirection of stderr.
9838
9839 2010-05-20  Simon Josefsson  <simon@josefsson.org>
9840
9841         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
9842
9843 2010-05-17  Simon Josefsson  <simon@josefsson.org>
9844
9845         * modules/valgrind-tests: New file.
9846         * m4/valgrind-tests.m4: New file.
9847         * doc/valgrind-tests.texi: New file.
9848         * doc/gnulib.texi (Running self-tests under valgrind): New
9849         section.
9850
9851 2010-05-19  Bruno Haible  <bruno@clisp.org>
9852
9853         Clean up dead code in recent commit.
9854         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
9855         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
9856         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
9857         Suggested by Paolo Bonzini.
9858
9859 2010-05-19  Bruno Haible  <bruno@clisp.org>
9860
9861         Avoid valgrind error reports from libunistring.
9862         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
9863         * modules/libunistring (Files): Add it.
9864         * modules/libunistring-optional (Files): Likewise.
9865
9866 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
9867             Bruno Haible  <bruno@clisp.org>
9868
9869         New module 'libunistring-optional'.
9870         * modules/libunistring-optional: New file.
9871         * m4/libunistring-base.m4: New file.
9872         * m4/libunistring-optional.m4: New file.
9873         * lib/unicase.in.h: Renamed from lib/unicase.h.
9874         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
9875         * lib/unictype.in.h: Renamed from lib/unictype.h.
9876         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
9877         * lib/uniname.in.h: Renamed from lib/uniname.h.
9878         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
9879         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
9880         * lib/unistr.in.h: Renamed from lib/unistr.h.
9881         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
9882         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
9883         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
9884         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
9885         gl_LIBUNISTRING. If the library was found, determine the installed
9886         version and set LIBUNISTRING_VERSION.
9887         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
9888         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
9889         handle a configuration option --with-included-libunistring.
9890         * modules/libunistring (Files): Add m4/absolute-header.m4.
9891         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
9892         Add m4/libunistring-base.m4.
9893         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9894         (Makefile.am): Build unicase.h from unicase.in.h.
9895         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
9896         Add m4/libunistring-base.m4.
9897         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9898         (Makefile.am): Build uniconv.h from uniconv.in.h.
9899         * modules/unictype/base (Files): Use unictype.in.h instead of
9900         unictype.h. Add m4/libunistring-base.m4.
9901         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9902         (Makefile.am): Build unictype.h from unictype.in.h.
9903         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
9904         Add m4/libunistring-base.m4.
9905         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9906         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
9907         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
9908         Add m4/libunistring-base.m4.
9909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9910         (Makefile.am): Build uniname.h from uniname.in.h.
9911         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
9912         Add m4/libunistring-base.m4.
9913         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9914         (Makefile.am): Build uninorm.h from uninorm.in.h.
9915         * modules/unistdio/base (Files): Use unistdio.in.h instead of
9916         unistdio.h. Add m4/libunistring-base.m4.
9917         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9918         (Makefile.am): Build unistdio.h from unistdio.in.h.
9919         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
9920         Add m4/libunistring-base.m4.
9921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9922         (Makefile.am): Build unistr.h from unistr.in.h.
9923         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
9924         Add m4/libunistring-base.m4.
9925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9926         (Makefile.am): Build unitypes.h from unitypes.in.h.
9927         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
9928         Add m4/libunistring-base.m4.
9929         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9930         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
9931         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
9932         uniwidth.h. Add m4/libunistring-base.m4.
9933         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9934         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
9935         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
9936         instead of augmenting lib_SOURCES.
9937         * modules/unicase/empty-suffix-context: Likewise.
9938         * modules/unicase/locale-language: Likewise.
9939         * modules/unicase/tolower: Likewise.
9940         * modules/unicase/totitle: Likewise.
9941         * modules/unicase/toupper: Likewise.
9942         * modules/unicase/u8-casecmp: Likewise.
9943         * modules/unicase/u8-casecoll: Likewise.
9944         * modules/unicase/u8-casefold: Likewise.
9945         * modules/unicase/u8-casexfrm: Likewise.
9946         * modules/unicase/u8-ct-casefold: Likewise.
9947         * modules/unicase/u8-ct-tolower: Likewise.
9948         * modules/unicase/u8-ct-totitle: Likewise.
9949         * modules/unicase/u8-ct-toupper: Likewise.
9950         * modules/unicase/u8-is-cased: Likewise.
9951         * modules/unicase/u8-is-casefolded: Likewise.
9952         * modules/unicase/u8-is-lowercase: Likewise.
9953         * modules/unicase/u8-is-titlecase: Likewise.
9954         * modules/unicase/u8-is-uppercase: Likewise.
9955         * modules/unicase/u8-prefix-context: Likewise.
9956         * modules/unicase/u8-suffix-context: Likewise.
9957         * modules/unicase/u8-tolower: Likewise.
9958         * modules/unicase/u8-totitle: Likewise.
9959         * modules/unicase/u8-toupper: Likewise.
9960         * modules/unicase/u16-casecmp: Likewise.
9961         * modules/unicase/u16-casecoll: Likewise.
9962         * modules/unicase/u16-casefold: Likewise.
9963         * modules/unicase/u16-casexfrm: Likewise.
9964         * modules/unicase/u16-ct-casefold: Likewise.
9965         * modules/unicase/u16-ct-tolower: Likewise.
9966         * modules/unicase/u16-ct-totitle: Likewise.
9967         * modules/unicase/u16-ct-toupper: Likewise.
9968         * modules/unicase/u16-is-cased: Likewise.
9969         * modules/unicase/u16-is-casefolded: Likewise.
9970         * modules/unicase/u16-is-lowercase: Likewise.
9971         * modules/unicase/u16-is-titlecase: Likewise.
9972         * modules/unicase/u16-is-uppercase: Likewise.
9973         * modules/unicase/u16-prefix-context: Likewise.
9974         * modules/unicase/u16-suffix-context: Likewise.
9975         * modules/unicase/u16-tolower: Likewise.
9976         * modules/unicase/u16-totitle: Likewise.
9977         * modules/unicase/u16-toupper: Likewise.
9978         * modules/unicase/u32-casecmp: Likewise.
9979         * modules/unicase/u32-casecoll: Likewise.
9980         * modules/unicase/u32-casefold: Likewise.
9981         * modules/unicase/u32-casexfrm: Likewise.
9982         * modules/unicase/u32-ct-casefold: Likewise.
9983         * modules/unicase/u32-ct-tolower: Likewise.
9984         * modules/unicase/u32-ct-totitle: Likewise.
9985         * modules/unicase/u32-ct-toupper: Likewise.
9986         * modules/unicase/u32-is-cased: Likewise.
9987         * modules/unicase/u32-is-casefolded: Likewise.
9988         * modules/unicase/u32-is-lowercase: Likewise.
9989         * modules/unicase/u32-is-titlecase: Likewise.
9990         * modules/unicase/u32-is-uppercase: Likewise.
9991         * modules/unicase/u32-prefix-context: Likewise.
9992         * modules/unicase/u32-suffix-context: Likewise.
9993         * modules/unicase/u32-tolower: Likewise.
9994         * modules/unicase/u32-totitle: Likewise.
9995         * modules/unicase/u32-toupper: Likewise.
9996         * modules/unicase/ulc-casecmp: Likewise.
9997         * modules/unicase/ulc-casecoll: Likewise.
9998         * modules/unicase/ulc-casexfrm: Likewise.
9999         * modules/uniconv/u8-conv-from-enc: Likewise.
10000         * modules/uniconv/u8-conv-to-enc: Likewise.
10001         * modules/uniconv/u8-strconv-from-enc: Likewise.
10002         * modules/uniconv/u8-strconv-from-locale: Likewise.
10003         * modules/uniconv/u8-strconv-to-enc: Likewise.
10004         * modules/uniconv/u8-strconv-to-locale: Likewise.
10005         * modules/uniconv/u16-conv-from-enc: Likewise.
10006         * modules/uniconv/u16-conv-to-enc: Likewise.
10007         * modules/uniconv/u16-strconv-from-enc: Likewise.
10008         * modules/uniconv/u16-strconv-from-locale: Likewise.
10009         * modules/uniconv/u16-strconv-to-enc: Likewise.
10010         * modules/uniconv/u16-strconv-to-locale: Likewise.
10011         * modules/uniconv/u32-conv-from-enc: Likewise.
10012         * modules/uniconv/u32-conv-to-enc: Likewise.
10013         * modules/uniconv/u32-strconv-from-enc: Likewise.
10014         * modules/uniconv/u32-strconv-from-locale: Likewise.
10015         * modules/uniconv/u32-strconv-to-enc: Likewise.
10016         * modules/uniconv/u32-strconv-to-locale: Likewise.
10017         * modules/unictype/bidicategory-byname: Likewise.
10018         * modules/unictype/bidicategory-name: Likewise.
10019         * modules/unictype/bidicategory-of: Likewise.
10020         * modules/unictype/bidicategory-test: Likewise.
10021         * modules/unictype/block-list: Likewise.
10022         * modules/unictype/block-test: Likewise.
10023         * modules/unictype/category-C: Likewise.
10024         * modules/unictype/category-Cc: Likewise.
10025         * modules/unictype/category-Cf: Likewise.
10026         * modules/unictype/category-Cn: Likewise.
10027         * modules/unictype/category-Co: Likewise.
10028         * modules/unictype/category-Cs: Likewise.
10029         * modules/unictype/category-L: Likewise.
10030         * modules/unictype/category-Ll: Likewise.
10031         * modules/unictype/category-Lm: Likewise.
10032         * modules/unictype/category-Lo: Likewise.
10033         * modules/unictype/category-Lt: Likewise.
10034         * modules/unictype/category-Lu: Likewise.
10035         * modules/unictype/category-M: Likewise.
10036         * modules/unictype/category-Mc: Likewise.
10037         * modules/unictype/category-Me: Likewise.
10038         * modules/unictype/category-Mn: Likewise.
10039         * modules/unictype/category-N: Likewise.
10040         * modules/unictype/category-Nd: Likewise.
10041         * modules/unictype/category-Nl: Likewise.
10042         * modules/unictype/category-No: Likewise.
10043         * modules/unictype/category-P: Likewise.
10044         * modules/unictype/category-Pc: Likewise.
10045         * modules/unictype/category-Pd: Likewise.
10046         * modules/unictype/category-Pe: Likewise.
10047         * modules/unictype/category-Pf: Likewise.
10048         * modules/unictype/category-Pi: Likewise.
10049         * modules/unictype/category-Po: Likewise.
10050         * modules/unictype/category-Ps: Likewise.
10051         * modules/unictype/category-S: Likewise.
10052         * modules/unictype/category-Sc: Likewise.
10053         * modules/unictype/category-Sk: Likewise.
10054         * modules/unictype/category-Sm: Likewise.
10055         * modules/unictype/category-So: Likewise.
10056         * modules/unictype/category-Z: Likewise.
10057         * modules/unictype/category-Zl: Likewise.
10058         * modules/unictype/category-Zp: Likewise.
10059         * modules/unictype/category-Zs: Likewise.
10060         * modules/unictype/category-and: Likewise.
10061         * modules/unictype/category-and-not: Likewise.
10062         * modules/unictype/category-byname: Likewise.
10063         * modules/unictype/category-name: Likewise.
10064         * modules/unictype/category-none: Likewise.
10065         * modules/unictype/category-of: Likewise.
10066         * modules/unictype/category-or: Likewise.
10067         * modules/unictype/category-test: Likewise.
10068         * modules/unictype/combining-class: Likewise.
10069         * modules/unictype/ctype-alnum: Likewise.
10070         * modules/unictype/ctype-alpha: Likewise.
10071         * modules/unictype/ctype-blank: Likewise.
10072         * modules/unictype/ctype-cntrl: Likewise.
10073         * modules/unictype/ctype-digit: Likewise.
10074         * modules/unictype/ctype-graph: Likewise.
10075         * modules/unictype/ctype-lower: Likewise.
10076         * modules/unictype/ctype-print: Likewise.
10077         * modules/unictype/ctype-punct: Likewise.
10078         * modules/unictype/ctype-space: Likewise.
10079         * modules/unictype/ctype-upper: Likewise.
10080         * modules/unictype/ctype-xdigit: Likewise.
10081         * modules/unictype/decimal-digit: Likewise.
10082         * modules/unictype/digit: Likewise.
10083         * modules/unictype/mirror: Likewise.
10084         * modules/unictype/numeric: Likewise.
10085         * modules/unictype/property-alphabetic: Likewise.
10086         * modules/unictype/property-ascii-hex-digit: Likewise.
10087         * modules/unictype/property-bidi-arabic-digit: Likewise.
10088         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10089         * modules/unictype/property-bidi-block-separator: Likewise.
10090         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10091         * modules/unictype/property-bidi-common-separator: Likewise.
10092         * modules/unictype/property-bidi-control: Likewise.
10093         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10094         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10095         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10096         * modules/unictype/property-bidi-european-digit: Likewise.
10097         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10098         * modules/unictype/property-bidi-left-to-right: Likewise.
10099         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10100         * modules/unictype/property-bidi-other-neutral: Likewise.
10101         * modules/unictype/property-bidi-pdf: Likewise.
10102         * modules/unictype/property-bidi-segment-separator: Likewise.
10103         * modules/unictype/property-bidi-whitespace: Likewise.
10104         * modules/unictype/property-byname: Likewise.
10105         * modules/unictype/property-combining: Likewise.
10106         * modules/unictype/property-composite: Likewise.
10107         * modules/unictype/property-currency-symbol: Likewise.
10108         * modules/unictype/property-dash: Likewise.
10109         * modules/unictype/property-decimal-digit: Likewise.
10110         * modules/unictype/property-default-ignorable-code-point: Likewise.
10111         * modules/unictype/property-deprecated: Likewise.
10112         * modules/unictype/property-diacritic: Likewise.
10113         * modules/unictype/property-extender: Likewise.
10114         * modules/unictype/property-format-control: Likewise.
10115         * modules/unictype/property-grapheme-base: Likewise.
10116         * modules/unictype/property-grapheme-extend: Likewise.
10117         * modules/unictype/property-grapheme-link: Likewise.
10118         * modules/unictype/property-hex-digit: Likewise.
10119         * modules/unictype/property-hyphen: Likewise.
10120         * modules/unictype/property-id-continue: Likewise.
10121         * modules/unictype/property-id-start: Likewise.
10122         * modules/unictype/property-ideographic: Likewise.
10123         * modules/unictype/property-ids-binary-operator: Likewise.
10124         * modules/unictype/property-ids-trinary-operator: Likewise.
10125         * modules/unictype/property-ignorable-control: Likewise.
10126         * modules/unictype/property-iso-control: Likewise.
10127         * modules/unictype/property-join-control: Likewise.
10128         * modules/unictype/property-left-of-pair: Likewise.
10129         * modules/unictype/property-line-separator: Likewise.
10130         * modules/unictype/property-logical-order-exception: Likewise.
10131         * modules/unictype/property-lowercase: Likewise.
10132         * modules/unictype/property-math: Likewise.
10133         * modules/unictype/property-non-break: Likewise.
10134         * modules/unictype/property-not-a-character: Likewise.
10135         * modules/unictype/property-numeric: Likewise.
10136         * modules/unictype/property-other-alphabetic: Likewise.
10137         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10138         * modules/unictype/property-other-grapheme-extend: Likewise.
10139         * modules/unictype/property-other-id-continue: Likewise.
10140         * modules/unictype/property-other-id-start: Likewise.
10141         * modules/unictype/property-other-lowercase: Likewise.
10142         * modules/unictype/property-other-math: Likewise.
10143         * modules/unictype/property-other-uppercase: Likewise.
10144         * modules/unictype/property-paired-punctuation: Likewise.
10145         * modules/unictype/property-paragraph-separator: Likewise.
10146         * modules/unictype/property-pattern-syntax: Likewise.
10147         * modules/unictype/property-pattern-white-space: Likewise.
10148         * modules/unictype/property-private-use: Likewise.
10149         * modules/unictype/property-punctuation: Likewise.
10150         * modules/unictype/property-quotation-mark: Likewise.
10151         * modules/unictype/property-radical: Likewise.
10152         * modules/unictype/property-sentence-terminal: Likewise.
10153         * modules/unictype/property-soft-dotted: Likewise.
10154         * modules/unictype/property-space: Likewise.
10155         * modules/unictype/property-terminal-punctuation: Likewise.
10156         * modules/unictype/property-test: Likewise.
10157         * modules/unictype/property-titlecase: Likewise.
10158         * modules/unictype/property-unassigned-code-value: Likewise.
10159         * modules/unictype/property-unified-ideograph: Likewise.
10160         * modules/unictype/property-uppercase: Likewise.
10161         * modules/unictype/property-variation-selector: Likewise.
10162         * modules/unictype/property-white-space: Likewise.
10163         * modules/unictype/property-xid-continue: Likewise.
10164         * modules/unictype/property-xid-start: Likewise.
10165         * modules/unictype/property-zero-width: Likewise.
10166         * modules/unictype/scripts: Likewise.
10167         * modules/unictype/syntax-c-ident: Likewise.
10168         * modules/unictype/syntax-c-whitespace: Likewise.
10169         * modules/unictype/syntax-java-ident: Likewise.
10170         * modules/unictype/syntax-java-whitespace: Likewise.
10171         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10172         * modules/unilbrk/u8-width-linebreaks: Likewise.
10173         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10174         * modules/unilbrk/u16-width-linebreaks: Likewise.
10175         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10176         * modules/unilbrk/u32-width-linebreaks: Likewise.
10177         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
10178         * modules/unilbrk/ulc-width-linebreaks: Likewise.
10179         * modules/uniname/uniname: Likewise.
10180         * modules/uninorm/canonical-decomposition: Likewise.
10181         * modules/uninorm/composition: Likewise.
10182         * modules/uninorm/decomposing-form: Likewise.
10183         * modules/uninorm/decomposition: Likewise.
10184         * modules/uninorm/filter: Likewise.
10185         * modules/uninorm/nfc: Likewise.
10186         * modules/uninorm/nfd: Likewise.
10187         * modules/uninorm/nfkc: Likewise.
10188         * modules/uninorm/nfkd: Likewise.
10189         * modules/uninorm/u8-normalize: Likewise.
10190         * modules/uninorm/u8-normcmp: Likewise.
10191         * modules/uninorm/u8-normcoll: Likewise.
10192         * modules/uninorm/u8-normxfrm: Likewise.
10193         * modules/uninorm/u16-normalize: Likewise.
10194         * modules/uninorm/u16-normcmp: Likewise.
10195         * modules/uninorm/u16-normcoll: Likewise.
10196         * modules/uninorm/u16-normxfrm: Likewise.
10197         * modules/uninorm/u32-normalize: Likewise.
10198         * modules/uninorm/u32-normcmp: Likewise.
10199         * modules/uninorm/u32-normcoll: Likewise.
10200         * modules/uninorm/u32-normxfrm: Likewise.
10201         * modules/unistdio/u8-asnprintf: Likewise.
10202         * modules/unistdio/u8-asprintf: Likewise.
10203         * modules/unistdio/u8-snprintf: Likewise.
10204         * modules/unistdio/u8-sprintf: Likewise.
10205         * modules/unistdio/u8-u8-asnprintf: Likewise.
10206         * modules/unistdio/u8-u8-asprintf: Likewise.
10207         * modules/unistdio/u8-u8-snprintf: Likewise.
10208         * modules/unistdio/u8-u8-sprintf: Likewise.
10209         * modules/unistdio/u8-u8-vasnprintf: Likewise.
10210         * modules/unistdio/u8-u8-vasprintf: Likewise.
10211         * modules/unistdio/u8-u8-vsnprintf: Likewise.
10212         * modules/unistdio/u8-u8-vsprintf: Likewise.
10213         * modules/unistdio/u8-vasnprintf: Likewise.
10214         * modules/unistdio/u8-vasprintf: Likewise.
10215         * modules/unistdio/u8-vsnprintf: Likewise.
10216         * modules/unistdio/u8-vsprintf: Likewise.
10217         * modules/unistdio/u16-asnprintf: Likewise.
10218         * modules/unistdio/u16-asprintf: Likewise.
10219         * modules/unistdio/u16-snprintf: Likewise.
10220         * modules/unistdio/u16-sprintf: Likewise.
10221         * modules/unistdio/u16-u16-asnprintf: Likewise.
10222         * modules/unistdio/u16-u16-asprintf: Likewise.
10223         * modules/unistdio/u16-u16-snprintf: Likewise.
10224         * modules/unistdio/u16-u16-sprintf: Likewise.
10225         * modules/unistdio/u16-u16-vasnprintf: Likewise.
10226         * modules/unistdio/u16-u16-vasprintf: Likewise.
10227         * modules/unistdio/u16-u16-vsnprintf: Likewise.
10228         * modules/unistdio/u16-u16-vsprintf: Likewise.
10229         * modules/unistdio/u16-vasnprintf: Likewise.
10230         * modules/unistdio/u16-vasprintf: Likewise.
10231         * modules/unistdio/u16-vsnprintf: Likewise.
10232         * modules/unistdio/u16-vsprintf: Likewise.
10233         * modules/unistdio/u32-asnprintf: Likewise.
10234         * modules/unistdio/u32-asprintf: Likewise.
10235         * modules/unistdio/u32-snprintf: Likewise.
10236         * modules/unistdio/u32-sprintf: Likewise.
10237         * modules/unistdio/u32-u32-asnprintf: Likewise.
10238         * modules/unistdio/u32-u32-asprintf: Likewise.
10239         * modules/unistdio/u32-u32-snprintf: Likewise.
10240         * modules/unistdio/u32-u32-sprintf: Likewise.
10241         * modules/unistdio/u32-u32-vasnprintf: Likewise.
10242         * modules/unistdio/u32-u32-vasprintf: Likewise.
10243         * modules/unistdio/u32-u32-vsnprintf: Likewise.
10244         * modules/unistdio/u32-u32-vsprintf: Likewise.
10245         * modules/unistdio/u32-vasnprintf: Likewise.
10246         * modules/unistdio/u32-vasprintf: Likewise.
10247         * modules/unistdio/u32-vsnprintf: Likewise.
10248         * modules/unistdio/u32-vsprintf: Likewise.
10249         * modules/unistdio/ulc-asnprintf: Likewise.
10250         * modules/unistdio/ulc-asprintf: Likewise.
10251         * modules/unistdio/ulc-fprintf: Likewise.
10252         * modules/unistdio/ulc-snprintf: Likewise.
10253         * modules/unistdio/ulc-sprintf: Likewise.
10254         * modules/unistdio/ulc-vasnprintf: Likewise.
10255         * modules/unistdio/ulc-vasprintf: Likewise.
10256         * modules/unistdio/ulc-vfprintf: Likewise.
10257         * modules/unistdio/ulc-vsnprintf: Likewise.
10258         * modules/unistdio/ulc-vsprintf: Likewise.
10259         * modules/unistr/u8-check: Likewise.
10260         * modules/unistr/u8-chr: Likewise.
10261         * modules/unistr/u8-cmp: Likewise.
10262         * modules/unistr/u8-cmp2: Likewise.
10263         * modules/unistr/u8-cpy: Likewise.
10264         * modules/unistr/u8-cpy-alloc: Likewise.
10265         * modules/unistr/u8-endswith: Likewise.
10266         * modules/unistr/u8-mblen: Likewise.
10267         * modules/unistr/u8-mbsnlen: Likewise.
10268         * modules/unistr/u8-mbtouc: Likewise.
10269         * modules/unistr/u8-mbtouc-unsafe: Likewise.
10270         * modules/unistr/u8-mbtoucr: Likewise.
10271         * modules/unistr/u8-move: Likewise.
10272         * modules/unistr/u8-next: Likewise.
10273         * modules/unistr/u8-prev: Likewise.
10274         * modules/unistr/u8-set: Likewise.
10275         * modules/unistr/u8-startswith: Likewise.
10276         * modules/unistr/u8-stpcpy: Likewise.
10277         * modules/unistr/u8-stpncpy: Likewise.
10278         * modules/unistr/u8-strcat: Likewise.
10279         * modules/unistr/u8-strchr: Likewise.
10280         * modules/unistr/u8-strcmp: Likewise.
10281         * modules/unistr/u8-strcoll: Likewise.
10282         * modules/unistr/u8-strcpy: Likewise.
10283         * modules/unistr/u8-strcspn: Likewise.
10284         * modules/unistr/u8-strdup: Likewise.
10285         * modules/unistr/u8-strlen: Likewise.
10286         * modules/unistr/u8-strmblen: Likewise.
10287         * modules/unistr/u8-strmbtouc: Likewise.
10288         * modules/unistr/u8-strncat: Likewise.
10289         * modules/unistr/u8-strncmp: Likewise.
10290         * modules/unistr/u8-strncpy: Likewise.
10291         * modules/unistr/u8-strnlen: Likewise.
10292         * modules/unistr/u8-strpbrk: Likewise.
10293         * modules/unistr/u8-strrchr: Likewise.
10294         * modules/unistr/u8-strspn: Likewise.
10295         * modules/unistr/u8-strstr: Likewise.
10296         * modules/unistr/u8-strtok: Likewise.
10297         * modules/unistr/u8-to-u16: Likewise.
10298         * modules/unistr/u8-to-u32: Likewise.
10299         * modules/unistr/u8-uctomb: Likewise.
10300         * modules/unistr/u16-check: Likewise.
10301         * modules/unistr/u16-chr: Likewise.
10302         * modules/unistr/u16-cmp: Likewise.
10303         * modules/unistr/u16-cmp2: Likewise.
10304         * modules/unistr/u16-cpy: Likewise.
10305         * modules/unistr/u16-cpy-alloc: Likewise.
10306         * modules/unistr/u16-endswith: Likewise.
10307         * modules/unistr/u16-mblen: Likewise.
10308         * modules/unistr/u16-mbsnlen: Likewise.
10309         * modules/unistr/u16-mbtouc: Likewise.
10310         * modules/unistr/u16-mbtouc-unsafe: Likewise.
10311         * modules/unistr/u16-mbtoucr: Likewise.
10312         * modules/unistr/u16-move: Likewise.
10313         * modules/unistr/u16-next: Likewise.
10314         * modules/unistr/u16-prev: Likewise.
10315         * modules/unistr/u16-set: Likewise.
10316         * modules/unistr/u16-startswith: Likewise.
10317         * modules/unistr/u16-stpcpy: Likewise.
10318         * modules/unistr/u16-stpncpy: Likewise.
10319         * modules/unistr/u16-strcat: Likewise.
10320         * modules/unistr/u16-strchr: Likewise.
10321         * modules/unistr/u16-strcmp: Likewise.
10322         * modules/unistr/u16-strcoll: Likewise.
10323         * modules/unistr/u16-strcpy: Likewise.
10324         * modules/unistr/u16-strcspn: Likewise.
10325         * modules/unistr/u16-strdup: Likewise.
10326         * modules/unistr/u16-strlen: Likewise.
10327         * modules/unistr/u16-strmblen: Likewise.
10328         * modules/unistr/u16-strmbtouc: Likewise.
10329         * modules/unistr/u16-strncat: Likewise.
10330         * modules/unistr/u16-strncmp: Likewise.
10331         * modules/unistr/u16-strncpy: Likewise.
10332         * modules/unistr/u16-strnlen: Likewise.
10333         * modules/unistr/u16-strpbrk: Likewise.
10334         * modules/unistr/u16-strrchr: Likewise.
10335         * modules/unistr/u16-strspn: Likewise.
10336         * modules/unistr/u16-strstr: Likewise.
10337         * modules/unistr/u16-strtok: Likewise.
10338         * modules/unistr/u16-to-u32: Likewise.
10339         * modules/unistr/u16-to-u8: Likewise.
10340         * modules/unistr/u16-uctomb: Likewise.
10341         * modules/unistr/u32-check: Likewise.
10342         * modules/unistr/u32-chr: Likewise.
10343         * modules/unistr/u32-cmp: Likewise.
10344         * modules/unistr/u32-cmp2: Likewise.
10345         * modules/unistr/u32-cpy: Likewise.
10346         * modules/unistr/u32-cpy-alloc: Likewise.
10347         * modules/unistr/u32-endswith: Likewise.
10348         * modules/unistr/u32-mblen: Likewise.
10349         * modules/unistr/u32-mbsnlen: Likewise.
10350         * modules/unistr/u32-mbtouc: Likewise.
10351         * modules/unistr/u32-mbtouc-unsafe: Likewise.
10352         * modules/unistr/u32-mbtoucr: Likewise.
10353         * modules/unistr/u32-move: Likewise.
10354         * modules/unistr/u32-next: Likewise.
10355         * modules/unistr/u32-prev: Likewise.
10356         * modules/unistr/u32-set: Likewise.
10357         * modules/unistr/u32-startswith: Likewise.
10358         * modules/unistr/u32-stpcpy: Likewise.
10359         * modules/unistr/u32-stpncpy: Likewise.
10360         * modules/unistr/u32-strcat: Likewise.
10361         * modules/unistr/u32-strchr: Likewise.
10362         * modules/unistr/u32-strcmp: Likewise.
10363         * modules/unistr/u32-strcoll: Likewise.
10364         * modules/unistr/u32-strcpy: Likewise.
10365         * modules/unistr/u32-strcspn: Likewise.
10366         * modules/unistr/u32-strdup: Likewise.
10367         * modules/unistr/u32-strlen: Likewise.
10368         * modules/unistr/u32-strmblen: Likewise.
10369         * modules/unistr/u32-strmbtouc: Likewise.
10370         * modules/unistr/u32-strncat: Likewise.
10371         * modules/unistr/u32-strncmp: Likewise.
10372         * modules/unistr/u32-strncpy: Likewise.
10373         * modules/unistr/u32-strnlen: Likewise.
10374         * modules/unistr/u32-strpbrk: Likewise.
10375         * modules/unistr/u32-strrchr: Likewise.
10376         * modules/unistr/u32-strspn: Likewise.
10377         * modules/unistr/u32-strstr: Likewise.
10378         * modules/unistr/u32-strtok: Likewise.
10379         * modules/unistr/u32-to-u16: Likewise.
10380         * modules/unistr/u32-to-u8: Likewise.
10381         * modules/unistr/u32-uctomb: Likewise.
10382         * modules/uniwbrk/u8-wordbreaks: Likewise.
10383         * modules/uniwbrk/u16-wordbreaks: Likewise.
10384         * modules/uniwbrk/u32-wordbreaks: Likewise.
10385         * modules/uniwbrk/ulc-wordbreaks: Likewise.
10386         * modules/uniwbrk/wordbreak-property: Likewise.
10387         * modules/uniwidth/u8-strwidth: Likewise.
10388         * modules/uniwidth/u8-width: Likewise.
10389         * modules/uniwidth/u16-strwidth: Likewise.
10390         * modules/uniwidth/u16-width: Likewise.
10391         * modules/uniwidth/u32-strwidth: Likewise.
10392         * modules/uniwidth/u32-width: Likewise.
10393         * modules/uniwidth/width: Likewise.
10394         * modules/unicase/cased-tests (Makefile.am): Link all test programs
10395         with $(LIBUNISTRING).
10396         * modules/unicase/ignorable-tests: Likewise.
10397         * modules/unicase/locale-language-tests: Likewise.
10398         * modules/unicase/tolower-tests: Likewise.
10399         * modules/unicase/totitle-tests: Likewise.
10400         * modules/unicase/toupper-tests: Likewise.
10401         * modules/unicase/u8-casecmp-tests: Likewise.
10402         * modules/unicase/u8-casecoll-tests: Likewise.
10403         * modules/unicase/u8-casefold-tests: Likewise.
10404         * modules/unicase/u8-is-cased-tests: Likewise.
10405         * modules/unicase/u8-is-casefolded-tests: Likewise.
10406         * modules/unicase/u8-is-lowercase-tests: Likewise.
10407         * modules/unicase/u8-is-titlecase-tests: Likewise.
10408         * modules/unicase/u8-is-uppercase-tests: Likewise.
10409         * modules/unicase/u8-tolower-tests: Likewise.
10410         * modules/unicase/u8-totitle-tests: Likewise.
10411         * modules/unicase/u8-toupper-tests: Likewise.
10412         * modules/unicase/u16-casecmp-tests: Likewise.
10413         * modules/unicase/u16-casecoll-tests: Likewise.
10414         * modules/unicase/u16-casefold-tests: Likewise.
10415         * modules/unicase/u16-is-cased-tests: Likewise.
10416         * modules/unicase/u16-is-casefolded-tests: Likewise.
10417         * modules/unicase/u16-is-lowercase-tests: Likewise.
10418         * modules/unicase/u16-is-titlecase-tests: Likewise.
10419         * modules/unicase/u16-is-uppercase-tests: Likewise.
10420         * modules/unicase/u16-tolower-tests: Likewise.
10421         * modules/unicase/u16-totitle-tests: Likewise.
10422         * modules/unicase/u16-toupper-tests: Likewise.
10423         * modules/unicase/u32-casecmp-tests: Likewise.
10424         * modules/unicase/u32-casecoll-tests: Likewise.
10425         * modules/unicase/u32-casefold-tests: Likewise.
10426         * modules/unicase/u32-is-cased-tests: Likewise.
10427         * modules/unicase/u32-is-casefolded-tests: Likewise.
10428         * modules/unicase/u32-is-lowercase-tests: Likewise.
10429         * modules/unicase/u32-is-titlecase-tests: Likewise.
10430         * modules/unicase/u32-is-uppercase-tests: Likewise.
10431         * modules/unicase/u32-tolower-tests: Likewise.
10432         * modules/unicase/u32-totitle-tests: Likewise.
10433         * modules/unicase/u32-toupper-tests: Likewise.
10434         * modules/unicase/ulc-casecmp-tests: Likewise.
10435         * modules/unicase/ulc-casecoll-tests: Likewise.
10436         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10437         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10438         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10439         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10440         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10441         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
10442         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
10443         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
10444         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
10445         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
10446         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
10447         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
10448         * modules/unictype/bidicategory-byname-tests: Likewise.
10449         * modules/unictype/bidicategory-name-tests: Likewise.
10450         * modules/unictype/bidicategory-of-tests: Likewise.
10451         * modules/unictype/bidicategory-test-tests: Likewise.
10452         * modules/unictype/block-list-tests: Likewise.
10453         * modules/unictype/block-of-tests: Likewise.
10454         * modules/unictype/block-test-tests: Likewise.
10455         * modules/unictype/category-C-tests: Likewise.
10456         * modules/unictype/category-Cc-tests: Likewise.
10457         * modules/unictype/category-Cf-tests: Likewise.
10458         * modules/unictype/category-Cn-tests: Likewise.
10459         * modules/unictype/category-Co-tests: Likewise.
10460         * modules/unictype/category-Cs-tests: Likewise.
10461         * modules/unictype/category-L-tests: Likewise.
10462         * modules/unictype/category-Ll-tests: Likewise.
10463         * modules/unictype/category-Lm-tests: Likewise.
10464         * modules/unictype/category-Lo-tests: Likewise.
10465         * modules/unictype/category-Lt-tests: Likewise.
10466         * modules/unictype/category-Lu-tests: Likewise.
10467         * modules/unictype/category-M-tests: Likewise.
10468         * modules/unictype/category-Mc-tests: Likewise.
10469         * modules/unictype/category-Me-tests: Likewise.
10470         * modules/unictype/category-Mn-tests: Likewise.
10471         * modules/unictype/category-N-tests: Likewise.
10472         * modules/unictype/category-Nd-tests: Likewise.
10473         * modules/unictype/category-Nl-tests: Likewise.
10474         * modules/unictype/category-No-tests: Likewise.
10475         * modules/unictype/category-P-tests: Likewise.
10476         * modules/unictype/category-Pc-tests: Likewise.
10477         * modules/unictype/category-Pd-tests: Likewise.
10478         * modules/unictype/category-Pe-tests: Likewise.
10479         * modules/unictype/category-Pf-tests: Likewise.
10480         * modules/unictype/category-Pi-tests: Likewise.
10481         * modules/unictype/category-Po-tests: Likewise.
10482         * modules/unictype/category-Ps-tests: Likewise.
10483         * modules/unictype/category-S-tests: Likewise.
10484         * modules/unictype/category-Sc-tests: Likewise.
10485         * modules/unictype/category-Sk-tests: Likewise.
10486         * modules/unictype/category-Sm-tests: Likewise.
10487         * modules/unictype/category-So-tests: Likewise.
10488         * modules/unictype/category-Z-tests: Likewise.
10489         * modules/unictype/category-Zl-tests: Likewise.
10490         * modules/unictype/category-Zp-tests: Likewise.
10491         * modules/unictype/category-Zs-tests: Likewise.
10492         * modules/unictype/category-and-not-tests: Likewise.
10493         * modules/unictype/category-and-tests: Likewise.
10494         * modules/unictype/category-byname-tests: Likewise.
10495         * modules/unictype/category-name-tests: Likewise.
10496         * modules/unictype/category-none-tests: Likewise.
10497         * modules/unictype/category-of-tests: Likewise.
10498         * modules/unictype/category-or-tests: Likewise.
10499         * modules/unictype/category-test-withtable-tests: Likewise.
10500         * modules/unictype/combining-class-tests: Likewise.
10501         * modules/unictype/ctype-alnum-tests: Likewise.
10502         * modules/unictype/ctype-alpha-tests: Likewise.
10503         * modules/unictype/ctype-blank-tests: Likewise.
10504         * modules/unictype/ctype-cntrl-tests: Likewise.
10505         * modules/unictype/ctype-digit-tests: Likewise.
10506         * modules/unictype/ctype-graph-tests: Likewise.
10507         * modules/unictype/ctype-lower-tests: Likewise.
10508         * modules/unictype/ctype-print-tests: Likewise.
10509         * modules/unictype/ctype-punct-tests: Likewise.
10510         * modules/unictype/ctype-space-tests: Likewise.
10511         * modules/unictype/ctype-upper-tests: Likewise.
10512         * modules/unictype/ctype-xdigit-tests: Likewise.
10513         * modules/unictype/decimal-digit-tests: Likewise.
10514         * modules/unictype/digit-tests: Likewise.
10515         * modules/unictype/mirror-tests: Likewise.
10516         * modules/unictype/numeric-tests: Likewise.
10517         * modules/unictype/property-alphabetic-tests: Likewise.
10518         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
10519         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
10520         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
10521         * modules/unictype/property-bidi-block-separator-tests: Likewise.
10522         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
10523         * modules/unictype/property-bidi-common-separator-tests: Likewise.
10524         * modules/unictype/property-bidi-control-tests: Likewise.
10525         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
10526         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
10527         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
10528         * modules/unictype/property-bidi-european-digit-tests: Likewise.
10529         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
10530         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
10531         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
10532         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
10533         * modules/unictype/property-bidi-pdf-tests: Likewise.
10534         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
10535         * modules/unictype/property-bidi-whitespace-tests: Likewise.
10536         * modules/unictype/property-byname-tests: Likewise.
10537         * modules/unictype/property-combining-tests: Likewise.
10538         * modules/unictype/property-composite-tests: Likewise.
10539         * modules/unictype/property-currency-symbol-tests: Likewise.
10540         * modules/unictype/property-dash-tests: Likewise.
10541         * modules/unictype/property-decimal-digit-tests: Likewise.
10542         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
10543         * modules/unictype/property-deprecated-tests: Likewise.
10544         * modules/unictype/property-diacritic-tests: Likewise.
10545         * modules/unictype/property-extender-tests: Likewise.
10546         * modules/unictype/property-format-control-tests: Likewise.
10547         * modules/unictype/property-grapheme-base-tests: Likewise.
10548         * modules/unictype/property-grapheme-extend-tests: Likewise.
10549         * modules/unictype/property-grapheme-link-tests: Likewise.
10550         * modules/unictype/property-hex-digit-tests: Likewise.
10551         * modules/unictype/property-hyphen-tests: Likewise.
10552         * modules/unictype/property-id-continue-tests: Likewise.
10553         * modules/unictype/property-id-start-tests: Likewise.
10554         * modules/unictype/property-ideographic-tests: Likewise.
10555         * modules/unictype/property-ids-binary-operator-tests: Likewise.
10556         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
10557         * modules/unictype/property-ignorable-control-tests: Likewise.
10558         * modules/unictype/property-iso-control-tests: Likewise.
10559         * modules/unictype/property-join-control-tests: Likewise.
10560         * modules/unictype/property-left-of-pair-tests: Likewise.
10561         * modules/unictype/property-line-separator-tests: Likewise.
10562         * modules/unictype/property-logical-order-exception-tests: Likewise.
10563         * modules/unictype/property-lowercase-tests: Likewise.
10564         * modules/unictype/property-math-tests: Likewise.
10565         * modules/unictype/property-non-break-tests: Likewise.
10566         * modules/unictype/property-not-a-character-tests: Likewise.
10567         * modules/unictype/property-numeric-tests: Likewise.
10568         * modules/unictype/property-other-alphabetic-tests: Likewise.
10569         * modules/unictype/property-other-default-ignorable-code-point-tests:
10570         Likewise.
10571         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
10572         * modules/unictype/property-other-id-continue-tests: Likewise.
10573         * modules/unictype/property-other-id-start-tests: Likewise.
10574         * modules/unictype/property-other-lowercase-tests: Likewise.
10575         * modules/unictype/property-other-math-tests: Likewise.
10576         * modules/unictype/property-other-uppercase-tests: Likewise.
10577         * modules/unictype/property-paired-punctuation-tests: Likewise.
10578         * modules/unictype/property-paragraph-separator-tests: Likewise.
10579         * modules/unictype/property-pattern-syntax-tests: Likewise.
10580         * modules/unictype/property-pattern-white-space-tests: Likewise.
10581         * modules/unictype/property-private-use-tests: Likewise.
10582         * modules/unictype/property-punctuation-tests: Likewise.
10583         * modules/unictype/property-quotation-mark-tests: Likewise.
10584         * modules/unictype/property-radical-tests: Likewise.
10585         * modules/unictype/property-sentence-terminal-tests: Likewise.
10586         * modules/unictype/property-soft-dotted-tests: Likewise.
10587         * modules/unictype/property-space-tests: Likewise.
10588         * modules/unictype/property-terminal-punctuation-tests: Likewise.
10589         * modules/unictype/property-test-tests: Likewise.
10590         * modules/unictype/property-titlecase-tests: Likewise.
10591         * modules/unictype/property-unassigned-code-value-tests: Likewise.
10592         * modules/unictype/property-unified-ideograph-tests: Likewise.
10593         * modules/unictype/property-uppercase-tests: Likewise.
10594         * modules/unictype/property-variation-selector-tests: Likewise.
10595         * modules/unictype/property-white-space-tests: Likewise.
10596         * modules/unictype/property-xid-continue-tests: Likewise.
10597         * modules/unictype/property-xid-start-tests: Likewise.
10598         * modules/unictype/property-zero-width-tests: Likewise.
10599         * modules/unictype/scripts-tests: Likewise.
10600         * modules/unictype/syntax-c-ident-tests: Likewise.
10601         * modules/unictype/syntax-c-whitespace-tests: Likewise.
10602         * modules/unictype/syntax-java-ident-tests: Likewise.
10603         * modules/unictype/syntax-java-whitespace-tests: Likewise.
10604         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
10605         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
10606         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
10607         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
10608         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
10609         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
10610         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
10611         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
10612         * modules/uniname/uniname-tests: Likewise.
10613         * modules/uninorm/canonical-decomposition-tests: Likewise.
10614         * modules/uninorm/compat-decomposition-tests: Likewise.
10615         * modules/uninorm/composition-tests: Likewise.
10616         * modules/uninorm/decomposing-form-tests: Likewise.
10617         * modules/uninorm/decomposition-tests: Likewise.
10618         * modules/uninorm/filter-tests: Likewise.
10619         * modules/uninorm/nfc-tests: Likewise.
10620         * modules/uninorm/nfd-tests: Likewise.
10621         * modules/uninorm/nfkc-tests: Likewise.
10622         * modules/uninorm/nfkd-tests: Likewise.
10623         * modules/uninorm/u8-normcmp-tests: Likewise.
10624         * modules/uninorm/u8-normcoll-tests: Likewise.
10625         * modules/uninorm/u16-normcmp-tests: Likewise.
10626         * modules/uninorm/u16-normcoll-tests: Likewise.
10627         * modules/uninorm/u32-normcmp-tests: Likewise.
10628         * modules/uninorm/u32-normcoll-tests: Likewise.
10629         * modules/unistdio/u8-asnprintf-tests: Likewise.
10630         * modules/unistdio/u8-vasnprintf-tests: Likewise.
10631         * modules/unistdio/u8-vasprintf-tests: Likewise.
10632         * modules/unistdio/u8-vsnprintf-tests: Likewise.
10633         * modules/unistdio/u8-vsprintf-tests: Likewise.
10634         * modules/unistdio/u16-asnprintf-tests: Likewise.
10635         * modules/unistdio/u16-vasnprintf-tests: Likewise.
10636         * modules/unistdio/u16-vasprintf-tests: Likewise.
10637         * modules/unistdio/u16-vsnprintf-tests: Likewise.
10638         * modules/unistdio/u16-vsprintf-tests: Likewise.
10639         * modules/unistdio/u32-asnprintf-tests: Likewise.
10640         * modules/unistdio/u32-vasnprintf-tests: Likewise.
10641         * modules/unistdio/u32-vasprintf-tests: Likewise.
10642         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10643         * modules/unistdio/u32-vsprintf-tests: Likewise.
10644         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10645         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10646         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10647         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10648         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10649         * modules/unistr/u8-check-tests: Likewise.
10650         * modules/unistr/u8-chr-tests: Likewise.
10651         * modules/unistr/u8-cmp-tests: Likewise.
10652         * modules/unistr/u8-cmp2-tests: Likewise.
10653         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10654         * modules/unistr/u8-cpy-tests: Likewise.
10655         * modules/unistr/u8-mblen-tests: Likewise.
10656         * modules/unistr/u8-mbsnlen-tests: Likewise.
10657         * modules/unistr/u8-mbtouc-tests: Likewise.
10658         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10659         * modules/unistr/u8-mbtoucr-tests: Likewise.
10660         * modules/unistr/u8-move-tests: Likewise.
10661         * modules/unistr/u8-next-tests: Likewise.
10662         * modules/unistr/u8-prev-tests: Likewise.
10663         * modules/unistr/u8-set-tests: Likewise.
10664         * modules/unistr/u8-stpcpy-tests: Likewise.
10665         * modules/unistr/u8-stpncpy-tests: Likewise.
10666         * modules/unistr/u8-strcat-tests: Likewise.
10667         * modules/unistr/u8-strcmp-tests: Likewise.
10668         * modules/unistr/u8-strcoll-tests: Likewise.
10669         * modules/unistr/u8-strcpy-tests: Likewise.
10670         * modules/unistr/u8-strdup-tests: Likewise.
10671         * modules/unistr/u8-strlen-tests: Likewise.
10672         * modules/unistr/u8-strmblen-tests: Likewise.
10673         * modules/unistr/u8-strmbtouc-tests: Likewise.
10674         * modules/unistr/u8-strncat-tests: Likewise.
10675         * modules/unistr/u8-strncmp-tests: Likewise.
10676         * modules/unistr/u8-strncpy-tests: Likewise.
10677         * modules/unistr/u8-strnlen-tests: Likewise.
10678         * modules/unistr/u8-to-u16-tests: Likewise.
10679         * modules/unistr/u8-to-u32-tests: Likewise.
10680         * modules/unistr/u8-uctomb-tests: Likewise.
10681         * modules/unistr/u16-check-tests: Likewise.
10682         * modules/unistr/u16-chr-tests: Likewise.
10683         * modules/unistr/u16-cmp-tests: Likewise.
10684         * modules/unistr/u16-cmp2-tests: Likewise.
10685         * modules/unistr/u16-cpy-alloc-tests: Likewise.
10686         * modules/unistr/u16-cpy-tests: Likewise.
10687         * modules/unistr/u16-mblen-tests: Likewise.
10688         * modules/unistr/u16-mbsnlen-tests: Likewise.
10689         * modules/unistr/u16-mbtouc-tests: Likewise.
10690         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
10691         * modules/unistr/u16-mbtoucr-tests: Likewise.
10692         * modules/unistr/u16-move-tests: Likewise.
10693         * modules/unistr/u16-next-tests: Likewise.
10694         * modules/unistr/u16-prev-tests: Likewise.
10695         * modules/unistr/u16-set-tests: Likewise.
10696         * modules/unistr/u16-stpcpy-tests: Likewise.
10697         * modules/unistr/u16-stpncpy-tests: Likewise.
10698         * modules/unistr/u16-strcat-tests: Likewise.
10699         * modules/unistr/u16-strcmp-tests: Likewise.
10700         * modules/unistr/u16-strcoll-tests: Likewise.
10701         * modules/unistr/u16-strcpy-tests: Likewise.
10702         * modules/unistr/u16-strdup-tests: Likewise.
10703         * modules/unistr/u16-strlen-tests: Likewise.
10704         * modules/unistr/u16-strmblen-tests: Likewise.
10705         * modules/unistr/u16-strmbtouc-tests: Likewise.
10706         * modules/unistr/u16-strncat-tests: Likewise.
10707         * modules/unistr/u16-strncmp-tests: Likewise.
10708         * modules/unistr/u16-strncpy-tests: Likewise.
10709         * modules/unistr/u16-strnlen-tests: Likewise.
10710         * modules/unistr/u16-to-u32-tests: Likewise.
10711         * modules/unistr/u16-to-u8-tests: Likewise.
10712         * modules/unistr/u16-uctomb-tests: Likewise.
10713         * modules/unistr/u32-check-tests: Likewise.
10714         * modules/unistr/u32-chr-tests: Likewise.
10715         * modules/unistr/u32-cmp-tests: Likewise.
10716         * modules/unistr/u32-cmp2-tests: Likewise.
10717         * modules/unistr/u32-cpy-alloc-tests: Likewise.
10718         * modules/unistr/u32-cpy-tests: Likewise.
10719         * modules/unistr/u32-mblen-tests: Likewise.
10720         * modules/unistr/u32-mbsnlen-tests: Likewise.
10721         * modules/unistr/u32-mbtouc-tests: Likewise.
10722         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
10723         * modules/unistr/u32-mbtoucr-tests: Likewise.
10724         * modules/unistr/u32-move-tests: Likewise.
10725         * modules/unistr/u32-next-tests: Likewise.
10726         * modules/unistr/u32-prev-tests: Likewise.
10727         * modules/unistr/u32-set-tests: Likewise.
10728         * modules/unistr/u32-stpcpy-tests: Likewise.
10729         * modules/unistr/u32-stpncpy-tests: Likewise.
10730         * modules/unistr/u32-strcat-tests: Likewise.
10731         * modules/unistr/u32-strcmp-tests: Likewise.
10732         * modules/unistr/u32-strcoll-tests: Likewise.
10733         * modules/unistr/u32-strcpy-tests: Likewise.
10734         * modules/unistr/u32-strdup-tests: Likewise.
10735         * modules/unistr/u32-strlen-tests: Likewise.
10736         * modules/unistr/u32-strmblen-tests: Likewise.
10737         * modules/unistr/u32-strmbtouc-tests: Likewise.
10738         * modules/unistr/u32-strncat-tests: Likewise.
10739         * modules/unistr/u32-strncmp-tests: Likewise.
10740         * modules/unistr/u32-strncpy-tests: Likewise.
10741         * modules/unistr/u32-strnlen-tests: Likewise.
10742         * modules/unistr/u32-to-u16-tests: Likewise.
10743         * modules/unistr/u32-to-u8-tests: Likewise.
10744         * modules/unistr/u32-uctomb-tests: Likewise.
10745         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
10746         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
10747         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
10748         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
10749         * modules/uniwidth/u8-strwidth-tests: Likewise.
10750         * modules/uniwidth/u8-width-tests: Likewise.
10751         * modules/uniwidth/u16-strwidth-tests: Likewise.
10752         * modules/uniwidth/u16-width-tests: Likewise.
10753         * modules/uniwidth/u32-strwidth-tests: Likewise.
10754         * modules/uniwidth/u32-width-tests: Likewise.
10755         * modules/uniwidth/width-tests: Likewise.
10756
10757 2010-05-18  Richard Jones  <rjones@redhat.com>
10758
10759         doc: users.txt: list hivex
10760         * users.txt: Add hivex.
10761
10762 2010-05-18  Richard Jones  <rjones@redhat.com>
10763
10764         doc: users.txt: list febootstrap
10765         * users.txt: Add febootstrap.
10766
10767 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
10768
10769         bootstrap: fix an error when gnulib is not used as a git submodule
10770         * build-aux/bootstrap (gnulib_path): If its length is zero then
10771         assign "gnulib" to it.
10772         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
10773
10774 2010-05-16  Bruno Haible  <bruno@clisp.org>
10775
10776         Avoid autoconf warnings about AM_ICONV.
10777         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10778         2.64.
10779
10780 2010-05-16  Bruno Haible  <bruno@clisp.org>
10781
10782         absolute-header: Make the macro usable in more situations.
10783         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10784         from gl_ABSOLUTE_HEADER.
10785         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10786
10787 2010-05-16  James Youngman  <jay@gnu.org>
10788
10789         doc: update users.txt
10790         * users.txt: Add CSSC.
10791
10792 2010-05-16  Jim Meyering  <meyering@redhat.com>
10793
10794         init.sh: fix an error in the previous change; add more comments
10795         * tests/init.sh: Compare exit code in loop against 9, not 2.
10796         Patch by Bruno Haible.
10797         Make the two tests more similar by adding an empty "then" clause.
10798         Add comments.
10799
10800         init.sh: avoid unnecessary shell re-exec
10801         * tests/init.sh: Improve the re-exec-required check to first test the
10802         current shell.  If it passes the test, do not search for a shell that
10803         does pass, and do not re-exec.  This test is particularly contorted to
10804         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10805         of $(...) evokes a syntax error and causes immediate shell exit with
10806         status 2.  Bruno Haible reported that the re-exec made it impossible
10807         to single-step through any init.sh-using script.
10808
10809 2010-05-16  Bruno Haible  <bruno@clisp.org>
10810
10811         Fix collision between gnulib's and libintl's printf replacements.
10812         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10813         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10814         (printf): When using GNU C, map the __printf__ function to rpl_printf
10815         via __asm__. When not using GNU C, define rpl_printf instead of
10816         __printf__.
10817         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
10818         commit.
10819         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
10820         commit.
10821         * m4/asm-underscore.m4: New file.
10822         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
10823         * modules/stdio (Files): Add m4/asm-underscore.m4.
10824         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
10825         Reported by Ben Pfaff.
10826
10827 2010-05-16  Bruno Haible  <bruno@clisp.org>
10828
10829         verify: Avoid skipping the test on openSUSE 11.0.
10830         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
10831
10832 2010-05-13  Bruno Haible  <bruno@clisp.org>
10833
10834         Avoid useless warnings from G++.
10835         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
10836         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
10837         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10838
10839 2010-05-11  Jim Meyering  <meyering@redhat.com>
10840
10841         maint.mk: tweak preceding change
10842         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
10843         regexps tighter by anchoring at EOL, and make the new group "shy"
10844         for slightly decreased overhead.
10845
10846 2010-05-11  Eric Blake  <eblake@redhat.com>
10847
10848         maint.mk: gnulib doesn't guarantee NSIG
10849         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
10850
10851 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10852
10853         test-pwrite.c: Remove unused variable declaration.
10854         * tests/test-pwrite.c (main): Remove read_buf declaration.
10855
10856         Remove useless test-pwrite.sh file.
10857         * tests/test-pwrite.sh: Delete file.
10858         * modules/pwrite-tests: Remove references.
10859         Reported by Bruno Haible.
10860
10861 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10862
10863         init.sh: fix a typo
10864         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
10865
10866 2010-05-10  Jim Meyering  <meyering@redhat.com>
10867
10868         maint.mk: avoid using a temporary file in the always-defined-macros check
10869         * top/maint.mk (.re-defmac): Remove rule.
10870         (gl_trap_): Remove definition.
10871         (sc_prohibit_always-defined_macros): Rewrite not to create and
10872         depend on a temporary file.  Instead, depend on GNU grep's ability
10873         to read a list of regular expressions from stdin when given "-f -".
10874
10875 2010-05-09  Bruno Haible  <bruno@clisp.org>
10876
10877         Update to GNU gettext 0.18, part 1.
10878         * m4/gettext.m4: Update to GNU gettext 0.18.
10879         * m4/intl.m4: Likewise.
10880         * m4/po.m4: Likewise.
10881         * modules/gettext (Files): Add m4/fcntl-o.m4.
10882         (configure.ac): Require gettext infrastructure from version 0.18.
10883
10884 2010-05-09  Jim Meyering  <meyering@redhat.com>
10885
10886         init.sh: enable MALLOC_PERTURB_
10887         * tests/init.sh: Enable glibc's malloc-perturbing option.
10888
10889         maint.mk: improve sc_cross_check_PATH_usage_in_tests
10890         With my recent change in init.sh from the two-line form:
10891             -#   : ${srcdir=.}
10892             -#   . "$srcdir/init.sh"; path_prepend_ .
10893             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
10894         I noticed that using the one-line form would cause this test
10895         to fail with a false-positive, or to stop working altogether,
10896         depending on whether help-version changed or all the tests did.
10897         * top/maint.mk (_hv_regex): Remove this definition.
10898         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
10899         (_hv_regex_strong): Use a stronger regex to check for conformance.
10900         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
10901         Give a separate diagnostic for lack of conforming use.
10902
10903         maint.mk: prohibit definition of symbols defined by gnulib
10904         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
10905         definition of symbols defined by gnulib.
10906
10907 2010-05-09  Bruno Haible  <bruno@clisp.org>
10908
10909         acl: Avoid test failure on Cygwin-hosted mingw.
10910         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
10911
10912 2010-05-09  Bruno Haible  <bruno@clisp.org>
10913
10914         error: Use system's fcntl function.
10915         * lib/error.c (fcntl): Undefine.
10916
10917 2010-05-09  Jim Meyering  <meyering@redhat.com>
10918
10919         verify: adjust formatting to be more consistent
10920         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
10921         argument-list '('s, and after one comma.
10922
10923 2010-05-09  Bruno Haible  <bruno@clisp.org>
10924
10925         error: More reliable output on mingw.
10926         * lib/error.c: Include <windows.h>.
10927         (is_open): New function.
10928         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
10929         defined.
10930
10931 2010-05-09  Bruno Haible  <bruno@clisp.org>
10932
10933         vasnprintf: Fix syntax errors in libintl build on mingw.
10934         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
10935         pad_ourselves and prec_ourselves after use.
10936
10937 2010-05-08  Bruno Haible  <bruno@clisp.org>
10938
10939         * lib/config.charset: Update comments for Cygwin 1.7.
10940         * lib/localcharset.c: Likewise.
10941
10942 2010-05-07  Jim Meyering  <meyering@redhat.com>
10943
10944         init.sh: improve comments
10945         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
10946         . "${srcdir=.}/init.sh"; path_prepend_ .
10947         Add a note about path_prepend_ and the alternative of using
10948         TESTS_ENVIRONMENT.
10949
10950 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10951
10952         exclude: Unescape hashed patterns in wildcard mode.
10953         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
10954         to the hash list.
10955         * tests/test-exclude8.sh: New test case.
10956         * modules/exclude-tests: Add new test.
10957
10958 2010-05-05  Eric Blake  <eblake@redhat.com>
10959
10960         verify: automate tests
10961         * modules/verify-tests: New module.
10962         * tests/test-verify.sh: New file.
10963         * tests/test-verify.c: Guard each negative test with a unique id.
10964         Also avoid warning about unused left hand of comma expressions.
10965
10966 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10967
10968         Further improvements to verify.h, suggested by Eric Blake.
10969         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
10970         the GL_* versions, to avoid collision with OpenGL.
10971         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
10972         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
10973         than testing merely whether it's defined.
10974
10975         Modify verify.h to pacify gcc -Wredundant_decls.
10976         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
10977         These use the prefix "GL_" since they're likely to be useful elsewhere.
10978         We may need to break them out into a different .h file.
10979         (__COUNTER__): Define to 0 if the compiler doesn't support it.
10980         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
10981         of verify_function__.
10982
10983 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10984
10985         Tests for module pwrite.
10986         * modules/pwrite-tests: New file.
10987         * tests/test-pwrite.sh: New file.
10988         * tests/test-pwrite.c: New file.
10989
10990         New module pwrite.
10991         * lib/unistd.in.h (pwrite): New declaration.
10992         * lib/pwrite.c: New file, from glibc with modifications.
10993         * m4/pwrite.m4: New file.
10994         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
10995         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
10996         REPLACE_PWRITE.
10997         * modules/pwrite: New file.
10998         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
10999         REPLACE_PWRITE.
11000         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11001         * doc/posix-functions/pwrite.texi: Mention the new module.
11002
11003 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11004
11005         pread: Update documentation.
11006         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11007
11008 2010-05-04  Eric Blake  <eblake@redhat.com>
11009
11010         docs: update cygwin progress
11011         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11012         this bug.
11013         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11014         Added in cygwin 1.7.2.
11015         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11016         Likewise.
11017         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11018         Likewise.
11019         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11020         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11021         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11022         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11023         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11024         Mention nproc module.
11025         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11026         bug in cygwin 1.7.5 addition.
11027         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11028         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11029         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11030         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11031         1.7.5.
11032         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11033         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11034         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11035         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11036         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11037         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11038         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11039         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11040         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11041         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11042         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11043         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11044         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11045         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11046         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11047         Likewise.
11048         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11049         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11050         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11051         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11052         Likewise.
11053         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11054         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11055         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11056         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11057         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11058         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11059         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11060         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11061         Likewise.
11062         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11063         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11064         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11065         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11066         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11067         Likewise.
11068         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11069         Likewise.
11070         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11071         Likewise.
11072         * doc/glibc-functions/xdrrec_endofrecord.texi
11073         (xdrrec_endofrecord): Likewise.
11074         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11075         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11076         Likewise.
11077         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11078         Likewise.
11079
11080 2010-05-04  Jim Meyering  <meyering@redhat.com>
11081
11082         gendocs.sh: make its "-s FILE" option more useful
11083         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11084         $PACKAGE to reflect the probably-different basename of "FILE".
11085
11086 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11087
11088         bootstrap: don't ignore download_po_files failure
11089         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11090         failure.
11091
11092 2010-05-03  Jim Meyering  <meyering@redhat.com>
11093
11094         maint.mk: allow to pass options to gendocs.sh
11095         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11096         (gendocs_options_): New overridable variable.
11097
11098         gnu-web-doc-update: don't ignore configure or build failure
11099         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11100
11101         announce-gen: backslash-escape '@'s in --help output
11102         * build-aux/announce-gen: Fix syntax errors.
11103
11104         maint.mk, announce-gen: allow project-specific announcement mail headers
11105         * top/maint.mk (translation_project_): Define default.
11106         (announcement_Cc_, announcement_mail_headers_): Likewise.
11107         (announcement): Invoke announce-gen with new --mail-headers option.
11108         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11109
11110         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11111         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11112         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11113         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11114         line in the "err2" output file when running "make check" in verbose
11115         mode (i.e., with set -x enabled).
11116
11117 2010-05-03  Bruno Haible  <bruno@clisp.org>
11118
11119         wctob: Fix for weird platforms.
11120         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11121         argument value.
11122
11123 2010-05-03  Jim Meyering  <meyering@redhat.com>
11124
11125         maint.mk: prohibit unwarranted use of <strings.h>
11126         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11127         strings.h in a file that does not also use strcasecmp, strncasecmp,
11128         ffs or ffsll.
11129
11130         maint.mk: remove obsolete comments
11131         * top/maint.mk: Remove stale, commented-out rules.
11132
11133 2010-05-02  Bruno Haible  <bruno@clisp.org>
11134
11135         wcwidth: Declare also when it's aliased.
11136         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11137         macro.
11138
11139 2010-05-02  Bruno Haible  <bruno@clisp.org>
11140
11141         Fix regression from 2010-04-25.
11142         * gnulib-tool (func_modules_transitive_closure): Check the status of
11143         all modules, not only of the tests that are of the form foo-tests where
11144         foo is a module.
11145
11146 2010-05-02  Bruno Haible  <bruno@clisp.org>
11147
11148         wctob: Work around nasty Cygwin 1.7.2 bug.
11149         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11150         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11151
11152 2010-05-01  Bruno Haible  <bruno@clisp.org>
11153
11154         fpurge: Sharper test.
11155         * tests/test-fpurge.c (main): Add one more ftell check.
11156         * modules/fpurge-tests (Depends-on): Add ftell.
11157         Suggested by Eric Blake.
11158
11159 2010-05-01  Bruno Haible  <bruno@clisp.org>
11160
11161         ftello: Another test.
11162         * tests/test-ftello3.c: New file.
11163         * modules/ftello-tests (Files): Add it.
11164         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11165         MOSTLYCLEANFILES.
11166
11167         ftell: Another test.
11168         * tests/test-ftell3.c: New file.
11169         * modules/ftell-tests (Files): Add it.
11170         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11171         MOSTLYCLEANFILES.
11172
11173 2010-05-01  Bruno Haible  <bruno@clisp.org>
11174
11175         ftell, ftello: Work around Solaris bug.
11176         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
11177         * lib/ftello.c: Include stdio-impl.h.
11178         (ftello): On Solaris, when _IOWRT is set, compute the result without
11179         looking at _IOREAD.
11180         * modules/ftello (Files): Add lib/stdio-impl.h.
11181         * doc/posix-functions/ftell.texi: Mention Solaris bug.
11182         * doc/posix-functions/ftello.texi: Likewise.
11183         Reported by Eric Blake.
11184
11185 2010-05-01  Bruno Haible  <bruno@clisp.org>
11186
11187         freading: Adapt to special meaning of _IOREAD flag on Solaris.
11188         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
11189         the _IOWRT flag is also set.
11190
11191 2010-05-01  Bruno Haible  <bruno@clisp.org>
11192
11193         Fix doc about a HP-UX stdio bug.
11194         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
11195         * doc/posix-functions/ftello.texi: Likewise.
11196
11197 2010-05-01  Bruno Haible  <bruno@clisp.org>
11198
11199         lseek test: Fix failure on Solaris.
11200         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
11201         output.
11202
11203 2010-04-30  Jim Meyering  <meyering@redhat.com>
11204
11205         bootstrap: don't ignore failure to generate po*/Makevars
11206         * build-aux/bootstrap (with_gettext): Don't ignore failure
11207         to create po/Makevars or runtime-po/Makevars.
11208
11209 2010-04-29  Eric Blake  <eblake@redhat.com>
11210
11211         headers: relax license to LGPLv2+
11212         * modules/fcntl-h (License): Relax license.
11213         * modules/getopt-posix (License): Likewise.
11214         * modules/locale (License): Likewise.
11215         * modules/math (License): Likewise.
11216         * modules/pty (License): Likewise.
11217         * modules/sched (License): Likewise.
11218         * modules/search (License): Likewise.
11219         * modules/spawn (License): Likewise.
11220         * modules/stdarg (License): Likewise.
11221         * modules/sysexits (License): Likewise.
11222
11223 2010-04-29  Jim Meyering  <meyering@redhat.com>
11224
11225         inttypes: relax license to LGPLv2+
11226         * modules/inttypes (License): Relax license.
11227
11228 2010-04-29  Simon Josefsson  <simon@josefsson.org>
11229
11230         * top/maint.mk (indent): Run twice to produce idempotent results.
11231
11232 2010-04-28  Bruno Haible  <bruno@clisp.org>
11233
11234         getdate: Generate getdate.c in the source directory.
11235         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
11236         MOSTLYCLEANFILES.
11237         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
11238
11239 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
11240
11241         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
11242         is not declared as a const *; avoid warnings in that case.
11243
11244 2010-04-28  Eric Blake  <eblake@redhat.com>
11245
11246         canonicalize-lgpl: avoid compiler warning
11247         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
11248         declaration' / 'extraneous semicolon' warning with some compilers.
11249         Reported by Andreas Gruenbacher.
11250
11251 2010-04-28  Jim Meyering  <meyering@redhat.com>
11252
11253         init.sh: ensure a more reliable exit status when exiting via trap
11254         * tests/init.sh (setup_): Don't rely on $? in signal handler.
11255         Inspired by patches from Dmitry V. Levin.
11256         Also trap on signal 3 (SIGQUIT).
11257
11258 2010-04-27  Bruno Haible  <bruno@clisp.org>
11259
11260         Update doc about utimes().
11261         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
11262         'utimens' module.
11263         Reported by Andreas Gruenbacher <agruen@suse.de>.
11264
11265 2010-04-27  Eric Blake  <eblake@redhat.com>
11266
11267         full-read, full-write: relax license
11268         * modules/full-read (License): Drop to LGPLv2+.
11269         * modules/full-write (License): Likewise.
11270         * modules/safe-read (License): Likewise.
11271         * modules/safe-write (License): Likewise.
11272
11273         pthread: mention library for linking
11274         * modules/pthread (Link): Mention $(LIB_PTHREAD).
11275
11276 2010-04-27  Jim Meyering  <meyering@redhat.com>
11277
11278         maint.mk: fix a bug introduced in last change
11279         * top/maint.mk (gl_assured_headers_): Now that all names are on
11280         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
11281         is not anchored to end of word, it should be adequate.
11282
11283         maint.mk: avoid side-effect in latest syntax-check
11284         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
11285         to run commands via $(shell...), and hence to incur cost only when
11286         the new rule is actually run.
11287
11288         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
11289         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
11290         and use that to create a regexp used to detect all #if HAVE_..._H uses.
11291         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
11292         (gl_assured_headers_, az_, AZ_): Define.
11293         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
11294
11295 2010-04-26  Jim Meyering  <jim@meyering.net>
11296             Bruno Haible  <bruno@clisp.org>
11297
11298         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
11299         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
11300         Prompted by an exchange with Gilles Espinasse.
11301
11302 2010-04-26  Jim Meyering  <meyering@redhat.com>
11303
11304         git-version-gen: aesthetic tweak
11305         * build-aux/git-version-gen: Use "$nl" rather than a literal,
11306         so that the command remains on a single line.
11307
11308 2010-04-26  Eric Blake  <eblake@redhat.com>
11309
11310         git-version-gen: allow use on EBCDIC hosts
11311         * build-aux/git-version-gen (dirty): Use literal rather than tying
11312         ourselves to ascii.
11313         Reported by Steve Goetze.
11314
11315 2010-04-25  Bruno Haible  <bruno@clisp.org>
11316
11317         netdb: Add support for GNULIB_POSIXCHECK.
11318         * lib/netdb.in.h: Include warn-on-use.h.
11319         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
11320         functions are used when GNULIB_POSIXCHECK is defined and the
11321         getaddrinfo module is not in use.
11322         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
11323         freeaddrinfo, gai_strerror, getnameinfo are declared.
11324         * modules/netdb (Depends-on): Add warn-on-use.
11325         (Makefile.am): Include warn-on-use.h in netdb.h.
11326
11327 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
11328
11329         build: avoid "make check" failure without .git/ directory
11330         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
11331         there is no .git/ directory.
11332
11333 2010-04-25  Bruno Haible  <bruno@clisp.org>
11334
11335         ptsname: Fix misuse of ttyname_r.
11336         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
11337         of errno.
11338
11339 2010-04-25  Bruno Haible  <bruno@clisp.org>
11340
11341         ttyname_r: Make it work on Solaris 10.
11342         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
11343         if the system function has the POSIX declaration. Test whether the
11344         function fails if the buffer is less than 128 bytes large.
11345         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
11346         system's ttyname_r function. Provide a reasonably large buffer.
11347         * modules/ttyname_r (Depends-on): Add extensions.
11348         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
11349
11350 2010-04-25  Bruno Haible  <bruno@clisp.org>
11351
11352         Use the 'extensions' module for some more functions on Solaris.
11353         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
11354         module.
11355         * doc/posix-functions/ctime_r.texi: Likewise.
11356         * doc/posix-functions/getgrgid_r.texi: Likewise.
11357         * doc/posix-functions/getgrnam_r.texi: Likewise.
11358         * doc/posix-functions/getpwnam_r.texi: Likewise.
11359         * doc/posix-functions/getpwuid_r.texi: Likewise.
11360         * doc/posix-functions/readdir_r.texi: Likewise.
11361         * doc/posix-functions/sigwait.texi: Likewise.
11362         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
11363         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
11364
11365 2010-04-25  Bruno Haible  <bruno@clisp.org>
11366
11367         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
11368         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
11369         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
11370         * lib/ttyname_r.c: Include <limits.h>.
11371         (ttyname_r): Define using the system's ttyname_r function, if it exists
11372         and not on Solaris.
11373         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
11374         set.
11375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
11376         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
11377         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
11378         Reported by Simon Josefsson.
11379
11380 2010-04-25  Bruno Haible  <bruno@clisp.org>
11381
11382         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
11383         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
11384         * doc/posix-functions/ctime_r.texi: Likewise.
11385         * doc/posix-functions/getgrgid_r.texi: Likewise.
11386         * doc/posix-functions/getgrnam_r.texi: Likewise.
11387         * doc/posix-functions/getlogin_r.texi: Likewise.
11388         * doc/posix-functions/getpwnam_r.texi: Likewise.
11389         * doc/posix-functions/getpwuid_r.texi: Likewise.
11390         * doc/posix-functions/readdir_r.texi: Likewise.
11391         * doc/posix-functions/sigwait.texi: Likewise.
11392         * doc/posix-functions/ttyname_r.texi: Likewise.
11393         Reported by Simon Josefsson.
11394
11395 2010-04-25  Bruno Haible  <bruno@clisp.org>
11396
11397         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
11398         * gnulib-tool (func_usage): Document that --with-*-tests options apply
11399         also to --create-testdir.
11400         (func_acceptable): Don't consider the status of *-tests modules here.
11401         (func_modules_transitive_closure): Consider it here, before including a
11402         test module.
11403         (func_import, func_create_testdir): Set inc_all_direct_tests,
11404         inc_all_indirect_tests.
11405         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
11406         --create-testdir and --create-megatestdir.
11407
11408 2010-04-25  Bruno Haible  <bruno@clisp.org>
11409
11410         gnulib-tool: Add --without-*-tests options.
11411         * gnulib-tool (func_usage): Document the --without-*-tests options.
11412         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
11413         excl_unportable_tests): New variables.
11414         Fail if they are specified with --import or --update.
11415         (func_acceptable): Respect the excl_*_tests variables.
11416         (func_import): Set the excl_*_tests variables to empty.
11417
11418 2010-04-25  Simon Josefsson  <simon@josefsson.org>
11419             Bruno Haible  <bruno@clisp.org>
11420
11421         Work around a MacOS X 10.4 bug with openpty.
11422         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
11423         * tests/test-openpty.c (main): Close the master side explicitly.
11424
11425 2010-04-25  Bruno Haible  <bruno@clisp.org>
11426
11427         strnlen: Fix a C++ test error on MacOS X and Solaris.
11428         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
11429         the function is not declared.
11430         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11431         Simon Josefsson.
11432
11433 2010-04-24  Bruno Haible  <bruno@clisp.org>
11434
11435         Avoid a gcc warning.
11436         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11437         of correct type for %08lx directive.
11438         Reported by Eric Blake.
11439
11440 2010-04-24  Bruno Haible  <bruno@clisp.org>
11441
11442         vasnprintf: Correct errno value in case of out-of-memory.
11443         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
11444         or sprintf. Use the errno value from SNPRINTF or sprintf.
11445         Reported by Ian Beckwith <ianb@erislabs.net>.
11446
11447 2010-04-24  Bruno Haible  <bruno@clisp.org>
11448
11449         ansi-c++-opt: Find correct compiler when cross-compiling.
11450         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
11451         AC_CHECK_PROGS.
11452         Reported by Simon Josefsson.
11453
11454 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
11455
11456         vc-list-files: Add support for subversion
11457         * build-aux/vc-list-files: Use "svn list" to generate the list of
11458         files controlled by subversion.
11459
11460 2010-04-23  Jim Meyering  <meyering@redhat.com>
11461
11462         vc-list-files tests: convert to use init.sh
11463         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
11464         path_prepend_.
11465         Use Exit, not exit.
11466         Use skip_ rather than open coding it.
11467         Remove trap set-up and compare definitions.
11468         * tests/test-vc-list-files-git.sh: Likewise.
11469         * modules/vc-list-files-tests (Files): Add tests/init.sh.
11470
11471 2010-04-22  Simon Josefsson  <simon@josefsson.org>
11472
11473         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
11474         backup files.
11475
11476 2010-04-21  Simon Josefsson  <simon@josefsson.org>
11477
11478         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
11479
11480 2010-04-20  Eric Blake  <eblake@redhat.com>
11481
11482         tests: be robust to ignored SIGPIPE
11483         * tests/test-select-in.sh: Consume all output.
11484         * tests/test-lseek.sh: Check correct exit status, while avoiding
11485         EPIPE.
11486
11487 2010-04-20  Simon Josefsson  <simon@josefsson.org>
11488             Bruno Haible  <bruno@clisp.org>
11489
11490         visibility: Don't use -fvisibility if it leads to a warning.
11491         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
11492         yes, don't pretend that visibility works if it leads to a warning.
11493         Reported by Mike Gran <spk121@yahoo.com>.
11494
11495 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
11496
11497         * build-aux/bootstrap: Use "git -h" for testing for supported options
11498         instead of "git --help".  The short-form option only shows a summary,
11499         and doesn't layout the full man page.  Grep for the full option name
11500         in the summary, too.
11501
11502 2010-04-19  Bruno Haible  <bruno@clisp.org>
11503
11504         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
11505         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
11506         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
11507         mention of RELOCATABLE_STRIP.
11508         Reported by Sylvain Beucler <beuc@beuc.net>.
11509
11510 2010-04-19  Bruno Haible  <bruno@clisp.org>
11511
11512         * lib/diffseq.h: Fix typo in comment.
11513         Reported by Eric Blake.
11514
11515 2010-04-19  Bruno Haible  <bruno@clisp.org>
11516
11517         ioctl: Move autoconf macro to a .m4 file.
11518         * m4/ioctl.m4: New file, extracted from modules/ioctl.
11519         * modules/ioctl (Files): Add it.
11520         (configure.ac): Simply invoke gl_FUNC_IOCTL.
11521         Reported by Ian Beckwith <ianb@erislabs.net>.
11522
11523 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
11524             Bruno Haible  <bruno@clisp.org>
11525
11526         diffseq: Accommodate use-case with abstract arrays.
11527         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
11528         is not defined.
11529         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
11530         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
11531
11532 2010-04-18  Bruno Haible  <bruno@clisp.org>
11533
11534         * doc/posix-headers/stdbool.texi: More precise wording.
11535
11536 2010-04-17  Jim Meyering  <meyering@redhat.com>
11537
11538         maint.mk: use gnu-style indentation in an embedded perl script
11539         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
11540         Rename variable: s/two/last_two_bytes/
11541
11542 2010-04-16  Eric Blake  <eblake@redhat.com>
11543
11544         test-stdbool: skip test that fails with Solaris CC
11545         * tests/test-stdbool.c (f): Skip test that causes compilation
11546         error under buggy C++ compiler.
11547         * lib/stdbool.in.h: Document the limitation.
11548         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
11549
11550         setenv: allow compilation with C++
11551         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11552         register keyword.
11553
11554         stdint: allow test to pass with C++
11555         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
11556
11557         getopt: allow compilation with C++
11558         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
11559         struct.
11560         * lib/getopt.c (_getopt_internal_r): Use correct type.
11561         Reported by Dagobert Michelson, via Joel E. Denny.
11562
11563 2010-04-16  Bruno Haible  <bruno@clisp.org>
11564
11565         Override netdb.h always.
11566         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
11567         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
11568         Reported by Ludovic Courtès <ludo@gnu.org>.
11569
11570 2010-04-15  Bruno Haible  <bruno@clisp.org>
11571
11572         openpty: Fix mistake from 2010-03-21.
11573         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
11574         Reported by Simon Josefsson.
11575
11576 2010-04-15  Eric Blake  <eblake@redhat.com>
11577
11578         test-forkpty: fix expected signature
11579         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
11580         Reported by Simon Josefsson.
11581
11582 2010-04-15  Jim Meyering  <meyering@redhat.com>
11583
11584         maint.mk: texinfo_suffix_re_: correct the default regexp
11585         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
11586
11587         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
11588         make it configurable via texinfo_suffix_re_.
11589
11590 2010-04-14  Eric Blake  <eblake@redhat.com>
11591
11592         strtok_r: relax license to LGPLv2+
11593         * modules/strtok_r (License): Relax license.
11594         Reported by Matthias Bolte.
11595
11596 2010-04-14  Simon Josefsson  <simon@josefsson.org>
11597
11598         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
11599         version 1.4.4 by default instead of requiring the libgcrypt
11600         version used during build.  This makes it possible to use the
11601         application with older but still binary compatible libgcrypt
11602         versions.
11603
11604 2010-04-13  Eric Blake  <eblake@redhat.com>
11605
11606         getopt-gnu: match recent glibc fixes and posix ruling
11607         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
11608         '+' handling, when requesting extensions.
11609         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
11610         'W;' handling.
11611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
11612         * doc/posix-functions/getopt.texi (getopt): Document this.
11613         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11614         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11615         Likewise.
11616
11617         getopt: merge bug fixes from glibc
11618         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
11619         diagnostics.  Honor '+:' correctly.  Reject ';'.
11620
11621         getopt-posix: detect MacOS bug
11622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
11623         optind when missing a required argument.
11624         * doc/posix-functions/getopt.texi (getopt): Document the bug.
11625         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11626         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11627         Likewise.
11628
11629         getopt-posix: avoid spurious failure on Solaris
11630         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
11631         an indicator that setting optind=1 is sufficient for reset.
11632
11633         getopt-posix: avoid spurious failure on FreeBSD
11634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
11635         in POSIX mode, since the m4 test uses it.
11636
11637         gnulib-tool: silence warning on BSD sh
11638         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
11639
11640 2010-04-13  Jim Meyering  <meyering@redhat.com>
11641
11642         doc: users.txt: GNU patch now uses gnulib
11643         * users.txt: Add patch.
11644
11645 2010-04-12  Jim Meyering  <meyering@redhat.com>
11646
11647         maint.mk: generate more concise timing data for syntax-check rules
11648         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11649         " done" from each line that reports a syntax-check test duration.
11650
11651 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11652
11653         git-version-gen: use "git update-index..." rather than "git status"
11654         * build-aux/git-version-gen: Use git update-index --refresh, not
11655         "git status".  With some versions of git, "git status" would fail
11656         to update the index and result in an unwarranted "-dirty" suffix.
11657
11658 2010-04-11  Jim Meyering  <meyering@redhat.com>
11659
11660         openat: correct formatting (no semantic change)
11661         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11662         Suggested by Bruno Haible.
11663
11664 2010-04-11  Bruno Haible  <bruno@clisp.org>
11665
11666         Stricter declaration checking in testdirs.
11667         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11668         If for_tests is true, augment AM_CPPFLAGS to define
11669         GNULIB_STRICT_CHECKING.
11670         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
11671         GNULIB_STRICT_CHECKING is defined, verify that the function is
11672         declared.
11673
11674 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
11675             Bruno Haible  <bruno@clisp.org>
11676
11677         libunistring: Improve configure output.
11678         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
11679         Don't say "consider installing GNU libunistring" when checking again
11680         with libiconv.
11681
11682 2010-04-11  Bruno Haible  <bruno@clisp.org>
11683
11684         libunistring: Correct value of $LTLIBUNISTRING.
11685         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
11686         correct the value of $LTLIBUNISTRING.
11687
11688 2010-04-11  Bruno Haible  <bruno@clisp.org>
11689
11690         havelib: Add static libraries to LIBS in the right order.
11691         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
11692         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
11693
11694 2010-04-11  Bruno Haible  <bruno@clisp.org>
11695
11696         libunistring: Detect libunistring also when it depends on libiconv.
11697         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
11698         the second AC_LIB_HAVE_LINKFLAGS invocation.
11699
11700 2010-04-11  James Youngman  <jay@gnu.org>
11701
11702         close-stream: declare local scalars to be "const"
11703         * lib/close-stream.c (close_stream): Make boolean variables const
11704         to document the fact that we set but do not change them.
11705
11706 2010-04-11  Bruno Haible  <bruno@clisp.org>
11707
11708         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
11709
11710 2010-04-11  Jim Meyering  <meyering@redhat.com>
11711
11712         maint.mk: don't include dist-check.mk
11713         * top/maint.mk: Remove bogus include directive.
11714
11715         maint.mk: improve empty-line-at-EOF check
11716         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
11717         solution, rather than tail+Perl-based one.  The latter would read
11718         a few kilobytes from the end of each file, and did not handle empty
11719         files properly.
11720
11721         maint.mk: print the elapsed time for each syntax-check rule
11722         * top/maint.mk (sc_m_rules_): Save start time in a file.
11723         (sc_z_rules_): New rules: remove temp file and print elapsed time.
11724         (local-check): Interpose the .z rules
11725
11726 2010-04-11  Jim Meyering  <meyering@redhat.com>
11727
11728         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
11729         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
11730         empty file with one that ends in an empty line.
11731
11732 2010-04-10  Bruno Haible  <bruno@clisp.org>
11733
11734         mkdir: Make it work on mingw64.
11735         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
11736         * lib/mkdir.c: Update comment.
11737         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
11738
11739 2010-04-10  Bruno Haible  <bruno@clisp.org>
11740
11741         Don't override improved macro from newer autoconf.
11742         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
11743         autoconf >= 2.62.
11744         Reported by Joel E. Denny <jdenny@clemson.edu>.
11745
11746 2010-04-10  Jim Meyering  <meyering@redhat.com>
11747
11748         maint.mk: new syntax-check rule: prohibit empty lines at end of file
11749         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
11750
11751         maint.mk: correct a diagnostic
11752         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
11753         in diagnostic; now use $prohibit.
11754
11755 2010-04-10  Bruno Haible  <address@hidden>
11756
11757         fchownat: Fix a C++ test error on Solaris 8.
11758         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11759         the function does not exist.
11760
11761 2010-04-10  Bruno Haible  <bruno@clisp.org>
11762
11763         vasnprintf: Add more tests.
11764         * tests/test-vasnprintf-posix.c: Include <errno.h>.
11765         (test_function): Test converting an invalid wide string.
11766
11767         vasnprintf: Correct handling of unconvertible wide string arguments.
11768         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
11769         VASNPRINTF.
11770         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
11771         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
11772         smaller than the expected maximum need for the directive. Set errno to
11773         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
11774         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
11775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
11776         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11777         * modules/vasnprintf (Files): Add m4/printf.m4.
11778         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11779
11780 2010-04-10  Bruno Haible  <bruno@clisp.org>
11781
11782         vasnprintf: Fix crash in %ls directive.
11783         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11784         string is passed as argument to %ls, with no precision and no width.
11785         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11786
11787 2010-04-10  Bruno Haible  <bruno@clisp.org>
11788
11789         vasnprintf: Fix multiple test failures on mingw.
11790         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11791         _snprintf, or snwprintf, not _snwprintf.
11792
11793 2010-04-10  Bruno Haible  <bruno@clisp.org>
11794
11795         write: Fix a C++ test error on mingw.
11796         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11797
11798 2010-04-10  Bruno Haible  <bruno@clisp.org>
11799
11800         vasnprintf test: Reduce code duplication.
11801         * tests/test-vasnprintf.c (test_function): New function, extracted from
11802         test_vasnprintf.
11803         (test_vasnprintf, test_asnprintf): Invoke it.
11804
11805 2010-04-10  Bruno Haible  <bruno@clisp.org>
11806
11807         strnlen: Fix warning in C++ mode on MacOS X.
11808         * lib/string.in.h (strnlen): Use the modern idiom.
11809         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11810         defining strnlen as a macro already in <config.h>.
11811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11812         REPLACE_STRNLEN.
11813         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11814         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11815
11816 2010-04-08  James Youngman  <jay@gnu.org>
11817
11818         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
11819         the example.
11820
11821 2010-04-09  Jim Meyering  <meyering@redhat.com>
11822
11823         maint.mk: print better diagnostic when there is no $(_hv_file)
11824         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
11825         announce that when $(_hv_file) (aka help-version) does not exist.
11826
11827         init.sh: run tr in the "C" locale to avoid multibyte interpretation
11828         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
11829         not try to interpret its random input bytes.  Jarno Rajahalme reported
11830         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11831         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
11832         (mktempd_): Likewise, just in case.
11833
11834         ftruncate: add two years to projected module removal date: 2012
11835         * m4/ftruncate.m4: Adjust comments.
11836
11837         ftruncate: mark module as obsolete; even MinGW provides it, now
11838         * modules/ftruncate (Status): Obsolete.
11839         (Notice): Say that.
11840         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
11841         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
11842
11843 2010-04-08  Bruno Haible  <bruno@clisp.org>
11844
11845         Fix side effects from tests-related modules.
11846         * modules/dprintf-posix (Comment): New section.
11847         * modules/fprintf-posix (Comment): Likewise.
11848         * modules/obstack-printf-posix (Comment): Likewise.
11849         * modules/printf-posix (Comment): Likewise.
11850         * modules/snprintf-posix (Comment): Likewise.
11851         * modules/sprintf-posix (Comment): Likewise.
11852         * modules/vasnprintf-posix (Comment): Likewise.
11853         * modules/vasprintf-posix (Comment): Likewise.
11854         * modules/vdprintf-posix (Comment): Likewise.
11855         * modules/vfprintf-posix (Comment): Likewise.
11856         * modules/vprintf-posix (Comment): Likewise.
11857         * modules/vsnprintf-posix (Comment): Likewise.
11858         * modules/vsprintf-posix (Comment): Likewise.
11859         * modules/xprintf-posix (Comment): Likewise.
11860         * modules/xvasprintf-posix (Comment): Likewise.
11861         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
11862         * modules/floorf-tests (Depends-on): Likewise.
11863         * modules/round-tests (Depends-on): Likewise.
11864         * modules/roundf-tests (Depends-on): Likewise.
11865         * modules/trunc-tests (Depends-on): Likewise.
11866         * modules/truncf-tests (Depends-on): Likewise.
11867         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
11868         'fprintf-posix' module is not present.
11869         * tests/test-floorf2.c (check): Likewise.
11870         * tests/test-trunc2.c (check): Likewise.
11871         * tests/test-truncf2.c (check): Likewise.
11872         * tests/test-round2.c (equal): Likewise.
11873         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11874
11875 2010-04-07  Karl Berry  <karl@gnu.org>
11876
11877         * config/srclist.txt,
11878         * config/srclistvars.sh,
11879         * config/srclist-update: doc fixes.
11880
11881 2010-04-07  Jim Meyering  <meyering@redhat.com>
11882
11883         maint.mk: add a PATH crosschecking syntax-check rule
11884         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11885         Useful if you use a test like the one in help-version (coreutils,
11886         diffutils, grep, gzip) that ensures $(VERSION) matches what is
11887         printed by prog --version.
11888
11889 2010-04-06  Bruno Haible  <bruno@clisp.org>
11890
11891         Fix link error on mingw.
11892         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
11893         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
11894
11895 2010-04-06  Bruno Haible  <bruno@clisp.org>
11896
11897         Assume rmdir exists.
11898         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
11899
11900 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
11901
11902         doc: update users.txt
11903         * users.txt: Add gcal.
11904
11905 2010-04-06  Jim Meyering  <meyering@redhat.com>
11906
11907         init.sh: simply unset TMPDIR rather than risking env -i
11908         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
11909         although it probably works fine on all Unix-based systems, some
11910         systems (Cygwin?) cannot tolerate a totally cleared environment.
11911         Suggestion from Eric Blake.
11912
11913 2010-04-06  Jim Meyering  <meyering@redhat.com>
11914
11915         init.sh: portability fix: use env's POSIX-specified -i option not -u
11916         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
11917         than unportable env -u.  Solaris 5.11's env lacks support for -u.
11918
11919 2010-04-05  Bruno Haible  <bruno@clisp.org>
11920
11921         btowc: Work around Cygwin 1.7.2 bug.
11922         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
11923         does not map NUL to 0.
11924         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
11925
11926 2010-04-05  Bruno Haible  <bruno@clisp.org>
11927
11928         Make the multithread modules work on Cygwin 1.7.2.
11929         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
11930         imported symbols can be declared weak, so that it returns "no" on
11931         Cygwin 1.7.2.
11932
11933 2010-04-05  Bruno Haible  <bruno@clisp.org>
11934
11935         Use the module 'strncat'.
11936         * modules/unistr/u8-strncat (Depends-on): Add strncat.
11937
11938         Tests for module 'strncat'.
11939         * modules/strncat-tests: New file.
11940         * tests/test-strncat.c: New file.
11941
11942         New module 'strncat'.
11943         * lib/string.in.h (strncat): New declaration.
11944         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
11945         * m4/strncat.m4: New file, based on m4/memchr.m4.
11946         * modules/strncat: New file.
11947         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
11948         is declared.
11949         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
11950         REPLACE_STRNCAT.
11951         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
11952         REPLACE_STRNCAT.
11953         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
11954         module.
11955         * tests/test-string-c++.cc: Check signature of strncat.
11956
11957 2010-04-05  Jim Meyering  <meyering@redhat.com>
11958
11959         xstrtoumax-tests: convert to use init.sh
11960         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
11961         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11962         Use Exit, not exit.
11963         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11964
11965         xstrtoimax-tests: convert to use init.sh
11966         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11967         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11968         Use Exit, not exit.
11969         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11970
11971 2010-04-05  Bruno Haible  <bruno@clisp.org>
11972
11973         sys_socket: Avoid #define replacements in C++ mode.
11974         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
11975         warning to the function if possible, rather than #defining the symbol
11976         to a dysfunctional alias.
11977
11978 2010-04-05  Bruno Haible  <bruno@clisp.org>
11979
11980         fseeko: Fix C++ test error on mingw.
11981         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
11982         gl_FUNC_FSEEKO.
11983         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
11984         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
11985         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
11986         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
11987
11988 2010-04-05  Bruno Haible  <bruno@clisp.org>
11989
11990         duplocale: Improve test output.
11991         * tests/test-duplocale.c (main): Print reason for skipped test.
11992
11993 2010-04-05  Bruno Haible  <bruno@clisp.org>
11994
11995         Assume rmdir exists.
11996         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
11997         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11998
11999 2010-04-05  Bruno Haible  <bruno@clisp.org>
12000
12001         Fix link error on Solaris 8 with cc.
12002         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12003
12004 2010-04-05  Bruno Haible  <bruno@clisp.org>
12005
12006         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12007         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12008
12009 2010-04-05  Bruno Haible  <bruno@clisp.org>
12010
12011         vasprintf: Update documentation.
12012         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12013
12014 2010-04-05  Bruno Haible  <bruno@clisp.org>
12015
12016         ptsname: Improve test.
12017         * tests/test-ptsname.c (main): Also try the various master names of BSD
12018         systems.
12019
12020 2010-04-05  Bruno Haible  <bruno@clisp.org>
12021
12022         memchr: Avoid a possible C++ test error.
12023         * lib/string.in.h (memchr): Provide declaration if function is missing.
12024         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12025         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12027         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12028
12029 2010-04-05  Bruno Haible  <bruno@clisp.org>
12030
12031         strtok_r: Improve idiom.
12032         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12033         AC_LIBOBJ is used.
12034
12035 2010-04-05  Bruno Haible  <bruno@clisp.org>
12036
12037         strdup: Improve idiom.
12038         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12039         AC_LIBOBJ is used.
12040         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12041         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12042         when AC_LIBOBJ is used.
12043
12044 2010-04-05  Bruno Haible  <bruno@clisp.org>
12045
12046         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12047         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12048         don't set REPLACE_MBSINIT to 1.
12049         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12050         don't set REPLACE_MBRTOWC to 1.
12051         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12052         exist, don't set REPLACE_MBSRTOWCS to 1.
12053         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12054         exist, don't set REPLACE_MBSNRTOWCS to 1.
12055         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12056         don't set REPLACE_WCRTOMB to 1.
12057         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12058         exist, don't set REPLACE_WCSRTOMBS to 1.
12059         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12060         exist, don't set REPLACE_WCSNRTOMBS to 1.
12061
12062 2010-04-05  Bruno Haible  <bruno@clisp.org>
12063
12064         ldexpl: Improve idiom.
12065         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12066         make sure to set HAVE_DECL_LDEXPL to 0.
12067
12068 2010-04-05  Jim Meyering  <meyering@redhat.com>
12069
12070         xstrtol-tests: convert to use init.sh
12071         * modules/xstrtol-tests (Files): Add tests/init.sh.
12072         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12073         Use Exit, not exit.
12074         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12075
12076         atexit-tests: convert to use init.sh
12077         * modules/atexit-tests (Files): Add tests/init.sh.
12078         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12079         Use Exit, not exit.
12080         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12081
12082         init.sh: fix typo
12083         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12084
12085         init.sh: make it easier for a test script to write to the tty, ...
12086         when using automake's parallel-tests mode.
12087         * tests/init.sh (stderr_fileno_): Define overridable variable.
12088         (warn_): New function, to use it.
12089         (fail_, skip_, framework_failure_): Use warn_.
12090
12091 2010-04-04  Bruno Haible  <bruno@clisp.org>
12092
12093         btowc: Avoid warning.
12094         * lib/btowc.c: Include <stdlib.h>.
12095         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12096
12097 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12098             Bruno Haible  <bruno@clisp.org>
12099
12100         wchar: Port to NetBSD 1.5.
12101         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12102         * lib/wctype.in.h (WEOF): Likewise.
12103
12104 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12105             Bruno Haible  <bruno@clisp.org>
12106
12107         Port extended stdio to NetBSD 1.5.
12108         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12109         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12110         older.
12111
12112 2010-04-04  Bruno Haible  <bruno@clisp.org>
12113
12114         string: Remove unused substitution.
12115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12116         HAVE_DECL_STRERROR.
12117         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12118
12119 2010-04-04  Bruno Haible  <bruno@clisp.org>
12120
12121         strtod: Avoid a possible C++ test error.
12122         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12123         set REPLACE_STRTOD.
12124
12125 2010-04-04  Bruno Haible  <bruno@clisp.org>
12126
12127         strerror: Update documentation.
12128         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12129
12130 2010-04-04  Bruno Haible  <bruno@clisp.org>
12131
12132         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12133         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12134         _GL_CXXALIAS_SYS_CAST.
12135
12136 2010-04-04  Bruno Haible  <bruno@clisp.org>
12137
12138         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12139         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12140         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12141         REPLACE_FREXPL to 1.
12142         * doc/posix-functions/frexpl.texi: Update documentation.
12143
12144 2010-04-04  Bruno Haible  <bruno@clisp.org>
12145
12146         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12147         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12148
12149 2010-04-04  Bruno Haible  <bruno@clisp.org>
12150
12151         Implement nanosleep for native Windows.
12152         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12153
12154 2010-04-04  Bruno Haible  <bruno@clisp.org>
12155
12156         math: Fix some C++ test errors on Solaris 8.
12157         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12158
12159 2010-04-04  Bruno Haible  <bruno@clisp.org>
12160
12161         math: Fix some C++ test errors on Cygwin.
12162         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12163         truncl): Provide declaration if the system does not have it.
12164         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12165         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12166         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12167         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12168         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12169         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12170         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12171         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12172         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12173         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12174         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12175         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12176         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
12177         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
12178         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
12179         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
12180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
12181         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12182         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12183         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
12184         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12185         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12186
12187 2010-04-04  Bruno Haible  <bruno@clisp.org>
12188
12189         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
12190         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12191         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12192         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12193         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12194         * m4/isinf.m4 (gl_ISINF): Likewise.
12195         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12196
12197 2010-04-04  Bruno Haible  <bruno@clisp.org>
12198
12199         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
12200         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12201
12202 2010-04-04  Bruno Haible  <bruno@clisp.org>
12203
12204         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
12205         * modules/tmpfile (configure.ac): Update.
12206
12207         tmpfile: Fix C++ test error on mingw.
12208         * lib/stdio.in.h (tmpfile): New declaration.
12209         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
12210         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
12211         * modules/tmpfile (Depends-on): Add stdio.
12212         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12213         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
12214         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
12215         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
12216         REPLACE_TMPFILE.
12217         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
12218
12219 2010-04-04  Bruno Haible  <bruno@clisp.org>
12220
12221         ioctl: Fix C++ test error on mingw.
12222         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
12223         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
12224         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
12225
12226 2010-04-03  Bruno Haible  <bruno@clisp.org>
12227
12228         wcwidth: Fix C++ test error on mingw.
12229         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
12230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
12231         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
12232
12233 2010-04-03  Bruno Haible  <bruno@clisp.org>
12234
12235         nanosleep: Fix C++ test error on mingw.
12236         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
12237         * lib/time.in.h (nanosleep): Use modern idiom.
12238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
12239         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
12240         REPLACE_NANOSLEEP to 1.
12241         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
12242         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
12243
12244 2010-04-03  Bruno Haible  <bruno@clisp.org>
12245
12246         strptime: Fix C++ test error on mingw.
12247         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
12248         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
12249         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
12250         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
12251         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
12252         not REPLACE_STRPTIME.
12253         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
12254         REPLACE_STRPTIME.
12255
12256 2010-04-03  Bruno Haible  <bruno@clisp.org>
12257
12258         timegm: Fix C++ test error on mingw.
12259         * lib/time.in.h (timegm): Use modern idiom.
12260         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
12261         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
12262         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
12263         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
12264
12265 2010-04-03  Bruno Haible  <bruno@clisp.org>
12266
12267         timegm: Assume declaration if function exists.
12268         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
12269         if it exists. Don't clobber ac_cv_func_timegm.
12270
12271 2010-04-03  Bruno Haible  <bruno@clisp.org>
12272
12273         time_r: Fix C++ test error on mingw.
12274         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
12275         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12276         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
12277         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
12278         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
12279
12280 2010-04-03  Bruno Haible  <bruno@clisp.org>
12281
12282         time_r: Minor updates.
12283         * modules/time_r (Description): Mention the provided functions.
12284         * lib/time_r.c: Don't include <string.h>.
12285         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
12286         * doc/posix-functions/localtime_r.texi: Likewise.
12287
12288 2010-04-03  Bruno Haible  <bruno@clisp.org>
12289
12290         time: Fix regression introduced on 2010-03-08.
12291         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
12292         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
12293
12294 2010-04-03  Jim Meyering  <meyering@redhat.com>
12295
12296         maint.mk: don't silently disable project-specific syntax-check rules
12297         * top/maint.mk (_prohibit_regexp): Define, to help people realize
12298         that they need to convert their project-specific syntax-check rules
12299         to use the new _sc_search_regexp.
12300
12301 2010-04-03  Bruno Haible  <bruno@clisp.org>
12302
12303         fchdir: Fix regression introduced on 2010-03-08.
12304         * lib/unistd.in.h (fchdir): Fix declaration.
12305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
12306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
12307         REPLACE_FCHDIR.
12308         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
12309         REPLACE_FCHDIR.
12310
12311 2010-04-03  Bruno Haible  <bruno@clisp.org>
12312
12313         getpagesize: Fix C++ test error on mingw.
12314         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
12315         system does not declare the function.
12316         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
12317         declared.
12318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12319         HAVE_DECL_GETPAGESIZE.
12320         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
12321
12322 2010-04-03  Bruno Haible  <bruno@clisp.org>
12323
12324         stdio: Make C++ tests work on mingw.
12325         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
12326         does not declare the function.
12327
12328 2010-04-03  Bruno Haible  <bruno@clisp.org>
12329
12330         ftello: Fix C++ test error on mingw.
12331         * lib/stdio.in.h (ftello): Use modern idiom.
12332         * lib/ftello.c (ftello): Renamed from rpl_ftello.
12333         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
12334         is missing and that it needs to be replaced.
12335         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
12336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
12337         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
12338
12339 2010-04-03  Bruno Haible  <bruno@clisp.org>
12340
12341         fseeko: Fix C++ test error on mingw.
12342         * lib/stdio.in.h (fseeko): Use modern idiom.
12343         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
12344         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
12345         is missing and that it needs to be replaced.
12346         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
12347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
12348         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
12349
12350 2010-04-03  Bruno Haible  <bruno@clisp.org>
12351
12352         mkstemp: Fix C++ test error on mingw.
12353         * lib/stdlib.in.h (mkstemp): Use modern idiom.
12354         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
12355         function is missing and that it needs to be replaced.
12356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
12357         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
12358
12359 2010-04-03  Bruno Haible  <bruno@clisp.org>
12360
12361         stpncpy: Fix C++ test error on mingw.
12362         * lib/string.in.h (stpncpy): Use modern idiom.
12363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
12364         function is missing and that it needs to be replaced.
12365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12366         REPLACE_STPNCPY.
12367         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
12368
12369 2010-04-03  Bruno Haible  <bruno@clisp.org>
12370
12371         sys_stat: Fix C++ test error on mingw.
12372         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
12373         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
12374
12375 2010-04-03  Bruno Haible  <bruno@clisp.org>
12376
12377         pty: Update doc.
12378         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
12379
12380 2010-04-03  Bruno Haible  <bruno@clisp.org>
12381
12382         unistd: Fix C++ test error on mingw.
12383         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
12384
12385 2010-04-03  Bruno Haible  <bruno@clisp.org>
12386
12387         Update doc regarding mingw.
12388         * doc/glibc-functions/openpty.texi: Update regarding mingw.
12389         * doc/glibc-functions/login_tty.texi: Likewise.
12390         * doc/glibc-functions/forkpty.texi: Likewise.
12391
12392 2010-04-03  Bruno Haible  <bruno@clisp.org>
12393
12394         stdlib: Avoid compilation failure of c-strtold on mingw.
12395         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
12396
12397 2010-04-03  Bruno Haible  <bruno@clisp.org>
12398
12399         locale: Make C++ tests work on Cygwin and mingw.
12400         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
12401         cannot provide the function.
12402         Reported by Simon Josefsson.
12403
12404 2010-04-03  Bruno Haible  <bruno@clisp.org>
12405
12406         localename: Port to MacOS X 10.6.
12407         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
12408         memory layout of the locales in MacOS X 10.6 as well.
12409         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
12410
12411 2010-04-02  Bruno Haible  <bruno@clisp.org>
12412
12413         gnulib-tool: Ensure that long-running tests are executed last.
12414         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12415         running tests after the one for the other tests.
12416
12417 2010-04-02  Bruno Haible  <bruno@clisp.org>
12418
12419         gnulib-tool: Ensure the tests in the main directory are executed first.
12420         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
12421         start with the current directory.
12422
12423 2010-04-02  Bruno Haible  <bruno@clisp.org>
12424
12425         Tests for module 'havelib', moved here from GNU gettext.
12426         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
12427         modifications.
12428         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
12429         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12430         with modifications.
12431         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12432         modifications.
12433         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12434         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12435         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12436         with modifications.
12437         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12438         with modifications.
12439         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12440         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12441         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
12442         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
12443         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
12444         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
12445         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
12446         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
12447         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
12448         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
12449         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
12450         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
12451         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
12452         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
12453         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
12454         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
12455         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
12456         with modifications.
12457         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
12458         with modifications.
12459         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
12460         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
12461         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
12462         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
12463         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
12464         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
12465         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
12466         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
12467         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
12468         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
12469         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
12470         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
12471         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
12472         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
12473         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
12474         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
12475         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
12476         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
12477         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
12478         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
12479         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
12480         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
12481         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
12482         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
12483         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
12484         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
12485         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
12486         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
12487         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
12488         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
12489         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
12490         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
12491         * tests/havelib/rpathx/rpathx.c: New file, from
12492         gettext/autoconf-lib-link.
12493         * tests/havelib/rpathx/Makefile.am: New file, from
12494         gettext/autoconf-lib-link.
12495         * tests/havelib/rpathx/configure.ac: New file, from
12496         gettext/autoconf-lib-link with modifications.
12497         * tests/havelib/rpathy/rpathy.c: New file, from
12498         gettext/autoconf-lib-link.
12499         * tests/havelib/rpathy/Makefile.am: New file, from
12500         gettext/autoconf-lib-link.
12501         * tests/havelib/rpathy/configure.ac: New file, from
12502         gettext/autoconf-lib-link with modifications.
12503         * tests/havelib/rpathz/rpathz.c: New file, from
12504         gettext/autoconf-lib-link.
12505         * tests/havelib/rpathz/Makefile.am: New file, from
12506         gettext/autoconf-lib-link.
12507         * tests/havelib/rpathz/configure.ac: New file, from
12508         gettext/autoconf-lib-link with modifications.
12509         * tests/havelib/rpathlx/usex.c: New file, from
12510         gettext/autoconf-lib-link.
12511         * tests/havelib/rpathlx/Makefile.am: New file, from
12512         gettext/autoconf-lib-link.
12513         * tests/havelib/rpathlx/configure.ac: New file, from
12514         gettext/autoconf-lib-link with modifications.
12515         * tests/havelib/rpathly/usey.c: New file, from
12516         gettext/autoconf-lib-link.
12517         * tests/havelib/rpathly/Makefile.am: New file, from
12518         gettext/autoconf-lib-link.
12519         * tests/havelib/rpathly/configure.ac: New file, from
12520         gettext/autoconf-lib-link with modifications.
12521         * tests/havelib/rpathlz/usez.c: New file, from
12522         gettext/autoconf-lib-link.
12523         * tests/havelib/rpathlz/Makefile.am: New file, from
12524         gettext/autoconf-lib-link.
12525         * tests/havelib/rpathlz/configure.ac: New file, from
12526         gettext/autoconf-lib-link with modifications.
12527         * tests/havelib/rpathlyx/usey.c: New file, from
12528         gettext/autoconf-lib-link.
12529         * tests/havelib/rpathlyx/Makefile.am: New file, from
12530         gettext/autoconf-lib-link.
12531         * tests/havelib/rpathlyx/configure.ac: New file, from
12532         gettext/autoconf-lib-link with modifications.
12533         * tests/havelib/rpathlzyx/usez.c: New file, from
12534         gettext/autoconf-lib-link.
12535         * tests/havelib/rpathlzyx/Makefile.am: New file, from
12536         gettext/autoconf-lib-link.
12537         * tests/havelib/rpathlzyx/configure.ac: New file, from
12538         gettext/autoconf-lib-link with modifications.
12539         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
12540         with modifications.
12541
12542 2010-04-02  Bruno Haible  <bruno@clisp.org>
12543
12544         gnulib-tool: Create distributed built sources also for the tests.
12545         * gnulib-tool (func_create_testdir): Also generate distributed built
12546         sources in the tests directory.
12547
12548 2010-04-02  Bruno Haible  <bruno@clisp.org>
12549
12550         gnulib-tool: Obey user's environment variables.
12551         * gnulib-tool (func_create_testdir): When creating built sources,
12552         respect the environment variables for autoconf, automake, etc. given by
12553         the user.
12554
12555 2010-04-02  Bruno Haible  <bruno@clisp.org>
12556
12557         gnulib-tool: Provide the value of --m4-base to modules.
12558         * gnulib-tool (func_import, func_create_testdir): Emit a definition
12559         of gl_m4_base.
12560
12561 2010-04-02  Eric Blake  <eblake@redhat.com>
12562
12563         maint.mk: fix some fallout
12564         * NEWS: Document the incompatible change, and its effect on cfg.mk.
12565         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
12566
12567 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12568
12569         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
12570         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
12571         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
12572         (sc_cast_of_x_alloc_return_value): Likewise.
12573         (sc_cast_of_alloca_return_value): Likewise.
12574         (sc_space_tab): Likewise.
12575         (sc_prohibit_atoi_atof): Likewise.
12576         (sc_prohibit_magic_number_exit): Likewise.
12577         (sc_error_exit_success): Likewise.
12578         (sc_file_system): Likewise.
12579         (sc_prohibit_have_config_h): Likewise.
12580         (sc_require_config_h): Likewise.
12581         (sc_prohibit_HAVE_MBRTOWC): Likewise.
12582         (sc_obsolete_symbols): Likewise.
12583         (sc_changelog): Likewise.
12584         (sc_program_name): Likewise.
12585         (sc_the_the): Likewise.
12586         (sc_trailing_blank): Likewise.
12587         (sc_two_space_separator_in_usage): Likewise.
12588         (sc_useless_cpp_parens): Likewise.
12589         (sc_GPL_version): Likewise.
12590         (sc_GFDL_version): Likewise.
12591         (sc_texinfo_acronym): Likewise.
12592         (sc_prohibit_cvs_keyword): Likewise.
12593         (sc_prohibit_stat_st_blocks): Likewise.
12594         (sc_prohibit_S_IS_definition): Likewise.
12595         (sc_redundant_const): Likewise.
12596         (sc_makefile_TAB_only_indentation): Likewise.
12597         (sc_m4_quote_check): Likewise.
12598         (sc_makefile_path_separator_check): Likewise.
12599         (sc_copyright_check): Likewise.
12600         (sc_Wundef_boolean): Likewise.
12601         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12602
12603         maint.mk: match 0 or more whitespace-before-function-call '('
12604         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
12605         that have zero or two-and-more spaces between the function name
12606         and the open parenthesis.
12607         (sc_error_message_warn_fatal): Likewise.
12608         (sc_error_message_uppercase): Likewise.
12609         (sc_error_message_period): Likewise.
12610
12611 2010-03-31  Eric Blake  <eblake@redhat.com>
12612
12613         maint.mk: check for [ as well as test
12614         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
12615         Based on a libvirt report by Matthias Bolte.
12616
12617         gnumakefile: don't squelch _version output
12618         * top/GNUmakefile (_version): Create one-shot dependency rather
12619         than using $(shell) when version must be regenerated.
12620         (_autoreconf): Run verbosely, by default.
12621
12622         sys_time: avoid compiler warnings
12623         * lib/sys_time.in.h (includes): Ensure gcc pragma is
12624         unconditional, fixing regression from 2010-03-29.
12625         Reported by Simon Josefsson.
12626
12627 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12628
12629         maint.mk: s/_header_without_use/_sc_header_without_use/
12630         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
12631         (sc_prohibit_assert_without_use): Use the new name.
12632         (sc_prohibit_close_stream_without_use): Likewise.
12633         (sc_prohibit_getopt_without_use): Likewise.
12634         (sc_prohibit_quotearg_without_use): Likewise.
12635         (sc_prohibit_quote_without_use): Likewise.
12636         (sc_prohibit_long_options_without_use): Likewise.
12637         (sc_prohibit_inttostr_without_use): Likewise.
12638         (sc_prohibit_ignore_value_without_use): Likewise.
12639         (sc_prohibit_error_without_use): Likewise.
12640         (sc_prohibit_xalloc_without_use): Likewise.
12641         (sc_prohibit_hash_without_use): Likewise.
12642         (sc_prohibit_hash_pjw_without_use): Likewise.
12643         (sc_prohibit_safe_read_without_use): Likewise.
12644         (sc_prohibit_argmatch_without_use): Likewise.
12645         (sc_prohibit_canonicalize_without_use): Likewise.
12646         (sc_prohibit_root_dev_ino_without_use): Likewise.
12647         (sc_prohibit_openat_without_use): Likewise.
12648         (sc_prohibit_c_ctype_without_use): Likewise.
12649         (sc_prohibit_signal_without_use): Likewise.
12650         (sc_prohibit_intprops_without_use): Likewise.
12651
12652 2010-03-30  Eric Blake  <eblake@redhat.com>
12653
12654         maint: improve module indicators
12655         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12656         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12657         columns, and avoid extra macro expansion.
12658
12659         fdopendir: work around FreeBSD bug
12660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12661         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12662         * modules/dirent (Makefile.am): Substitute it.
12663         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12664         declaration.
12665         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12666         fix.
12667         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12668
12669 2010-03-29  Bruno Haible  <bruno@clisp.org>
12670
12671         Emit #pragma system_header after the inclusion guard, not before.
12672         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
12673         guard that spans the entire file, not before. This enables an
12674         optimization in GCC's preprocessor.
12675         * lib/ctype.in.h: Likewise.
12676         * lib/dirent.in.h: Likewise.
12677         * lib/errno.in.h: Likewise.
12678         * lib/float.in.h: Likewise.
12679         * lib/getopt.in.h: Likewise.
12680         * lib/iconv.in.h: Likewise.
12681         * lib/langinfo.in.h: Likewise.
12682         * lib/locale.in.h: Likewise.
12683         * lib/math.in.h: Likewise.
12684         * lib/netdb.in.h: Likewise.
12685         * lib/netinet_in.in.h: Likewise.
12686         * lib/pty.in.h: Likewise.
12687         * lib/sched.in.h: Likewise.
12688         * lib/se-selinux.in.h: Likewise.
12689         * lib/search.in.h: Likewise.
12690         * lib/spawn.in.h: Likewise.
12691         * lib/stdarg.in.h: Likewise.
12692         * lib/stdint.in.h: Likewise.
12693         * lib/string.in.h: Likewise.
12694         * lib/strings.in.h: Likewise.
12695         * lib/sys_file.in.h: Likewise.
12696         * lib/sys_ioctl.in.h: Likewise.
12697         * lib/sys_time.in.h: Likewise.
12698         * lib/sys_times.in.h: Likewise.
12699         * lib/sys_utsname.in.h: Likewise.
12700         * lib/sys_wait.in.h: Likewise.
12701         * lib/sysexits.in.h: Likewise.
12702         * lib/wctype.in.h: Likewise.
12703
12704 2010-03-28  James Youngman  <jay@gnu.org>
12705
12706         save-cwd: don't leak a file descriptor when the caller execs.
12707         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
12708         saved file descriptor.
12709         * modules/save-cwd (Depends-on): Depend on cloexec.
12710
12711 2010-03-29  Bruno Haible  <bruno@clisp.org>
12712
12713         Remove vestiges of fts-lgpl module.
12714         * lib/fts_.h: Assume GNULIB_FTS is 1.
12715         * lib/fts.c: Likewise.
12716         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12717
12718 2010-03-28  Bruno Haible  <bruno@clisp.org>
12719
12720         Fix definition of tests witness macro.
12721         * gnulib-tool (func_import): Fix definition of witness macro.
12722
12723 2010-03-28  Bruno Haible  <bruno@clisp.org>
12724
12725         Fix ioctl's protoype on glibc systems.
12726         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
12727         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
12728         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
12729         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
12730         signature. If not, arrange to replace the ioctl function.
12731         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12732         REPLACE_IOCTL.
12733         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12734         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
12735         Reported by Ludovic Courtès <ludo@gnu.org>.
12736
12737 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
12738
12739         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
12740         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
12741         made it so grep -r --include=GLOB* ... did not work.
12742
12743 2010-03-26  Jim Meyering  <meyering@redhat.com>
12744             Eric Blake  <eblake@redhat.com>
12745
12746         maint.mk: prohibit use of test's -o and -a operators
12747         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
12748
12749 2010-03-28  Bruno Haible  <bruno@clisp.org>
12750
12751         Remove unused GNULIB_XYZ macro definitions.
12752         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
12753         invocation.
12754
12755 2010-03-28  Bruno Haible  <bruno@clisp.org>
12756
12757         Mark privileged tests modules.
12758         * modules/idpriv-drop-tests (Status): New section.
12759         * modules/idpriv-droptemp-tests (Status): New section.
12760
12761 2010-03-28  Bruno Haible  <bruno@clisp.org>
12762
12763         Split C++ tests into separate tests modules.
12764         * modules/dirent-c++-tests: New file, extracted from
12765         modules/dirent-tests.
12766         * modules/dirent-tests: Depend on it.
12767         * modules/fcntl-h-c++-tests: New file, extracted from
12768         modules/fcntl-h-tests.
12769         * modules/fcntl-h-tests: Depend on it.
12770         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
12771         * modules/glob-tests: Depend on it.
12772         * modules/iconv-h-c++-tests: New file, extracted from
12773         modules/iconv-h-tests.
12774         * modules/iconv-h-tests: Depend on it.
12775         * modules/langinfo-c++-tests: New file, extracted from
12776         modules/langinfo-tests.
12777         * modules/langinfo-tests: Depend on it.
12778         * modules/locale-c++-tests: New file, extracted from
12779         modules/locale-tests.
12780         * modules/locale-tests: Depend on it.
12781         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12782         * modules/math-tests: Depend on it.
12783         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12784         * modules/pty-tests: Depend on it.
12785         * modules/search-c++-tests: New file, extracted from
12786         modules/search-tests.
12787         * modules/search-tests: Depend on it.
12788         * modules/signal-c++-tests: New file, extracted from
12789         modules/signal-tests.
12790         * modules/signal-tests: Depend on it.
12791         * modules/spawn-c++-tests: New file, extracted from
12792         modules/spawn-tests.
12793         * modules/spawn-tests: Depend on it.
12794         * modules/stdio-c++-tests: New file, extracted from
12795         modules/stdio-tests.
12796         * modules/stdio-tests: Depend on it.
12797         * modules/stdlib-c++-tests: New file, extracted from
12798         modules/stdlib-tests.
12799         * modules/stdlib-tests: Depend on it.
12800         * modules/string-c++-tests: New file, extracted from
12801         modules/string-tests.
12802         * modules/string-tests: Depend on it.
12803         * modules/sys_ioctl-c++-tests: New file, extracted from
12804         modules/sys_ioctl-tests.
12805         * modules/sys_ioctl-tests: Depend on it.
12806         * modules/sys_select-c++-tests: New file, extracted from
12807         modules/sys_select-tests.
12808         * modules/sys_select-tests: Depend on it.
12809         * modules/sys_socket-c++-tests: New file, extracted from
12810         modules/sys_socket-tests.
12811         * modules/sys_socket-tests: Depend on it.
12812         * modules/sys_stat-c++-tests: New file, extracted from
12813         modules/sys_stat-tests.
12814         * modules/sys_stat-tests: Depend on it.
12815         * modules/sys_time-c++-tests: New file, extracted from
12816         modules/sys_time-tests.
12817         * modules/sys_time-tests: Depend on it.
12818         * modules/time-c++-tests: New file, extracted from modules/time-tests.
12819         * modules/time-tests: Depend on it.
12820         * modules/unistd-c++-tests: New file, extracted from
12821         modules/unistd-tests.
12822         * modules/unistd-tests: Depend on it.
12823         * modules/wchar-c++-tests: New file, extracted from
12824         modules/wchar-tests.
12825         * modules/wchar-tests: Depend on it.
12826         * modules/wctype-c++-tests: New file, extracted from
12827         modules/wctype-tests.
12828         * modules/wctype-tests: Depend on it.
12829         Reported by Simon Josefsson.
12830
12831 2010-03-28  Bruno Haible  <bruno@clisp.org>
12832
12833         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
12834         * gnulib-tool (func_exists_module): New function, extracted from
12835         func_verify_module.
12836         (func_verify_module): Use it.
12837         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
12838         'foo' only if 'foo' exists.
12839         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
12840         module.
12841
12842 2010-03-28  Bruno Haible  <bruno@clisp.org>
12843
12844         gnulib-tool: Add support for special categories of tests.
12845         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
12846         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
12847         (func_usage): Document them.
12848         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
12849         inc_unportable_tests, inc_all_tests): New variables.
12850         (func_acceptable): Consider these variables.
12851         (func_modules_transitive_closure): Make it work when the 'Status' field
12852         consists of multiple words.
12853         (func_import): Store and restore the values of inc_cxx_tests,
12854         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
12855         inc_all_tests in gnulib-comp.m4.
12856         (func_create_testdir): Set inc_all_tests to true.
12857         * doc/gnulib.texi (Extra tests modules): New section.
12858         Suggested by Jim Meyering.
12859
12860 2010-03-28  Bruno Haible  <bruno@clisp.org>
12861
12862         ansi-c++-opt: Allow turning off the C++ build by default.
12863         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
12864         gl_CXX_CHOICE_DEFAULT_NO is defined.
12865         Requested by Eric Blake.
12866
12867 2010-03-28  Bruno Haible  <bruno@clisp.org>
12868
12869         unistd: Avoid #define replacements in C++ mode.
12870         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12871         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12872         setsockopt, shutdown, select): In C++, attach a warning to the function
12873         if possible, rather than #defining the symbol to a dysfunctional alias.
12874         Reported by John W. Eaton <jwe@gnu.org>.
12875
12876 2010-03-28  Bruno Haible  <bruno@clisp.org>
12877
12878         Fix link errors on mingw.
12879         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
12880         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
12881         $(LIBSOCKET).
12882         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
12883         $(LIBSOCKET).
12884
12885 2010-03-28  Bruno Haible  <bruno@clisp.org>
12886             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12887
12888         lib-ignore: Determine different options for different compilers.
12889         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
12890         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
12891         Add comments.
12892         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
12893         * NEWS: Mention the change.
12894
12895 2010-03-27  Bruno Haible  <bruno@clisp.org>
12896
12897         Remove unused GNULIB_XYZ macro definitions.
12898         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12899         * modules/fseek (configure.ac): Likewise.
12900         * modules/ioctl (configure.ac): Likewise.
12901         * modules/open (configure.ac): Likewise.
12902         * modules/stdlib-safer (configure.ac): Likewise.
12903
12904 2010-03-27  Bruno Haible  <bruno@clisp.org>
12905
12906         Add a remark about certain modules.
12907         * modules/malloc (Comment): New section.
12908         * modules/realloc (Comment): Likewise.
12909         * modules/sigpipe (Comment): Likewise.
12910
12911 2010-03-27  Bruno Haible  <bruno@clisp.org>
12912
12913         Resolve conflict between the two kinds of module indicators.
12914         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
12915         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
12916         * modules/canonicalize (configure.ac): Invoke
12917         gl_MODULE_INDICATOR_FOR_TESTS.
12918         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
12919         GNULIB_XYZ.
12920         * tests/test-dirent-c++.cc: Likewise.
12921         * tests/test-dirent-safer.c: Likewise.
12922         * tests/test-dup2.c: Likewise.
12923         * tests/test-fchdir.c: Likewise.
12924         * tests/test-fcntl-h-c++.cc: Likewise.
12925         * tests/test-getopt.c: Likewise.
12926         * tests/test-getopt.h: Likewise.
12927         * tests/test-langinfo-c++.cc: Likewise.
12928         * tests/test-locale-c++.cc: Likewise.
12929         * tests/test-math-c++.cc: Likewise.
12930         * tests/test-pty-c++.cc: Likewise.
12931         * tests/test-search-c++.cc: Likewise.
12932         * tests/test-signal-c++.cc: Likewise.
12933         * tests/test-spawn-c++.cc: Likewise.
12934         * tests/test-stdio-c++.cc: Likewise.
12935         * tests/test-stdlib-c++.cc: Likewise.
12936         * tests/test-string-c++.cc: Likewise.
12937         * tests/test-sys_ioctl-c++.cc: Likewise.
12938         * tests/test-sys_select-c++.cc: Likewise.
12939         * tests/test-sys_socket-c++.cc: Likewise.
12940         * tests/test-sys_stat-c++.cc: Likewise.
12941         * tests/test-sys_time-c++.cc: Likewise.
12942         * tests/test-time-c++.cc: Likewise.
12943         * tests/test-unistd-c++.cc: Likewise.
12944         * tests/test-wchar-c++.cc: Likewise.
12945         * tests/uninorm/test-u8-nfc.c: Likewise.
12946         * tests/uninorm/test-u8-nfd.c: Likewise.
12947         * tests/uninorm/test-u8-nfkc.c: Likewise.
12948         * tests/uninorm/test-u8-nfkd.c: Likewise.
12949         * tests/uninorm/test-u16-nfc.c: Likewise.
12950         * tests/uninorm/test-u16-nfd.c: Likewise.
12951         * tests/uninorm/test-u16-nfkc.c: Likewise.
12952         * tests/uninorm/test-u16-nfkd.c: Likewise.
12953         * tests/uninorm/test-u32-nfc.c: Likewise.
12954         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12955         * tests/uninorm/test-u32-nfd.c: Likewise.
12956         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12957         * tests/uninorm/test-u32-nfkc.c: Likewise.
12958         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12959         * tests/uninorm/test-u32-nfkd.c: Likewise.
12960         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12961         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12962
12963 2010-03-27  Bruno Haible  <bruno@clisp.org>
12964
12965         Distinguish two kinds of module indicators.
12966         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
12967         gl_MODULE_INDICATOR.
12968         (gl_MODULE_INDICATOR): New macro.
12969         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12970         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
12971         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12972         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12973         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12974         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12975         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12976         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12977         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12978         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12979         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12980         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12981         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12982         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12983         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12984         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12985         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12986         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12987         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12988         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12989         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12990         * modules/cloexec (configure.ac): Likewise.
12991         * modules/getopt-gnu (configure.ac): Likewise.
12992         * modules/uninorm/u8-normalize (configure.ac): Likewise.
12993         * modules/uninorm/u16-normalize (configure.ac): Likewise.
12994         * modules/uninorm/u32-normalize (configure.ac): Likewise.
12995         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
12996
12997 2010-03-27  Bruno Haible  <bruno@clisp.org>
12998
12999         New module description field 'Comment'.
13000         * gnulib-tool: New option --extract-comment.
13001         (func_usage): Document it.
13002         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13003         (func_get_comment): New function.
13004         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13005
13006 2010-03-27  Bruno Haible  <bruno@clisp.org>
13007
13008         Addendum to 2010-02-07 commit.
13009         * gnulib-tool (func_usage): Document --extract-applicability option.
13010
13011 2010-03-27  Bruno Haible  <bruno@clisp.org>
13012
13013         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13014         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13015         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13016         rather than link errors.
13017
13018 2010-03-27  Bruno Haible  <bruno@clisp.org>
13019
13020         Avoid side effects from tests-related modules on the compilation of lib.
13021         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13022         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13023         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13024         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13025         macro.
13026         (func_import): Define a witness macro. Assign it a value that depends
13027         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13028         tests-related modules.
13029         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13030         Reported by Jim Meyering.
13031
13032 2010-03-27  Bruno Haible  <bruno@clisp.org>
13033
13034         Factorize common .m4 code.
13035         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13036         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13037         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13038         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13039         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13040         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13041         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13042         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13043         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13044         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13045         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13046         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13047         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13048         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13049         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13050         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13051         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13052         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13053         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13054         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13055         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13057         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13058         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13059         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13060         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13061         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13062         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13063         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13064         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13065         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13066         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13067
13068 2010-03-27  Bruno Haible  <bruno@clisp.org>
13069
13070         Fix a compilation error on Cygwin with g++ >= 4.3.
13071         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13072         if it is undefined or if we alias it to chmod.
13073         (lstat): Don't warn about the use of this function if it is undefined
13074         or if we alias it to stat.
13075         Reported by Simon Josefsson.
13076
13077 2010-03-27  Bruno Haible  <bruno@clisp.org>
13078
13079         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13080         * modules/getlogin (configure.ac): Update.
13081
13082         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13083         * modules/getlogin_r (configure.ac): Update.
13084
13085         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13086         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13087         * modules/inet_ntop (configure.ac): Update.
13088
13089         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13090         * modules/inet_pton (configure.ac): Update.
13091
13092         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13093         * modules/mbslen (configure.ac): Update.
13094
13095         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13096         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13097         * modules/forkpty (configure.ac): Update.
13098         * modules/openpty (configure.ac): Update.
13099
13100 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13101
13102         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13103         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13104
13105 2010-03-25  Eric Blake  <eblake@redhat.com>
13106
13107         maint: use pragma consistently across replacement headers
13108         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13109         * lib/dirent.in.h (system_header): Likewise.
13110         * lib/errno.in.h (system_header): Likewise.
13111         * lib/float.in.h (system_header): Likewise.
13112         * lib/getopt.in.h (system_header): Likewise.
13113         * lib/iconv.in.h (system_header): Likewise.
13114         * lib/inttypes.in.h (system_header): Likewise.
13115         * lib/langinfo.in.h (system_header): Likewise.
13116         * lib/locale.in.h (system_header): Likewise.
13117         * lib/math.in.h (system_header): Likewise.
13118         * lib/netdb.in.h (system_header): Likewise.
13119         * lib/netinet_in.in.h (system_header): Likewise.
13120         * lib/pty.in.h (system_header): Likewise.
13121         * lib/sched.in.h (system_header): Likewise.
13122         * lib/se-selinux.in.h (system_header): Likewise.
13123         * lib/search.in.h (system_header): Likewise.
13124         * lib/spawn.in.h (system_header): Likewise.
13125         * lib/stdarg.in.h (system_header): Likewise.
13126         * lib/stdint.in.h (system_header): Likewise.
13127         * lib/string.in.h (system_header): Likewise.
13128         * lib/strings.in.h (system_header): Likewise.
13129         * lib/sys_file.in.h (system_header): Likewise.
13130         * lib/sys_ioctl.in.h (system_header): Likewise.
13131         * lib/sys_socket.in.h (system_header): Likewise.
13132         * lib/sys_times.in.h (system_header): Likewise.
13133         * lib/sys_utsname.in.h (system_header): Likewise.
13134         * lib/sys_wait.in.h (system_header): Likewise.
13135         * lib/sysexits.in.h (system_header): Likewise.
13136         * lib/unistd.in.h (system_header): Likewise.
13137         * lib/wctype.in.h (system_header): Likewise.
13138
13139         arpa/inet: fix mingw compilation warning
13140         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13141         Reported by Matthew Bolte.
13142
13143 2010-03-25  Bruno Haible  <bruno@clisp.org>
13144
13145         Avoid collision between gnulib wrapper and libintl wrapper.
13146         * lib/printf.c (printf): Don't define if a printf wrapper is already
13147         defined in intl/printf.c.
13148         Reported by Michel Boaventura <michel@michelboaventura.com>.
13149
13150 2010-03-25  Bruno Haible  <bruno@clisp.org>
13151
13152         Use ANSI C.
13153         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13154
13155 2010-03-25  Bruno Haible  <bruno@clisp.org>
13156
13157         Minor formatting changes.
13158         * lib/acosl.c: Insert space before function argument list.
13159         * lib/argz.c: Likewise.
13160         * lib/asinl.c: Likewise.
13161         * lib/expl.c: Likewise.
13162         * lib/gen-uni-tables.c: Likewise.
13163         * lib/gettext.h: Likewise.
13164         * lib/glthread/lock.h: Likewise.
13165         * lib/tanl.c: Likewise.
13166         * lib/uniname/uniname.c: Likewise.
13167         * tests/test-idpriv-drop.c: Likewise.
13168         * tests/test-idpriv-droptemp.c: Likewise.
13169         * tests/test-lock.c: Likewise.
13170         * tests/test-tls.c: Likewise.
13171         * lib/argp-help.c: Insert space before function-like macro argument
13172         list.
13173         * lib/memcmp.c: Likewise.
13174         * tests/test-base64.c: Likewise.
13175         * lib/localename.c: Insert space before sizeof's argument list.
13176         * lib/safe-alloc.h: Likewise.
13177         * lib/file-set.h: Insert space before macro argument list.
13178         * tests/test-argp.c: Likewise.
13179         * lib/argp-namefrob.h: Insert space before function parameter list.
13180         * lib/getaddrinfo.c: Likewise.
13181         * lib/netdb.in.h: Likewise.
13182         * lib/parse-duration.h: Likewise.
13183         * lib/parse-duration.c: Likewise.
13184         * lib/poll.c: Likewise.
13185         * lib/select.c: Likewise.
13186         * lib/trim.h: Likewise.
13187         * tests/test-usleep.c: Likewise.
13188         * lib/ldexpl.c: Insert space before function parameter list and before
13189         function argument list.
13190         * lib/logl.c: Likewise.
13191         * lib/sqrtl.c: Likewise.
13192         * lib/trim.c: Likewise.
13193         * lib/cosl.c: Use GNU style indentation. Insert space before function
13194         argument list.
13195         * lib/sinl.c: Likewise.
13196         * lib/tsearch.c: Insert space after 'for'.
13197         Reported by Jim Meyering.
13198
13199 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
13200
13201         * maint.mk (sc_Wundef_boolean): Check for the presence of the
13202         config header before grepping, as it's not present before
13203         autoreconf/configure are run.  Reported by Simon Josefsson.
13204
13205 2010-03-23  Bruno Haible  <bruno@clisp.org>
13206
13207         pt_chown: Make it work with automake < 1.11.
13208         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
13209         Reported by Simon Josefsson.
13210
13211 2010-03-23  Bruno Haible  <bruno@clisp.org>
13212
13213         pt_chown: Don't depend on GPLed modules.
13214         * lib/pt_chown.c: Don't include idpriv.h.
13215         (main): Don't drop privileges.
13216         * modules/pt_chown (Depends-on): Remove idpriv-drop.
13217         Reported by Simon Josefsson.
13218
13219 2010-03-24  Simon Josefsson  <simon@josefsson.org>
13220
13221         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
13222         suggestions from karl@freefriends.org (Karl Berry).
13223
13224 2010-03-22  Eric Blake  <eblake@redhat.com>
13225
13226         gethostname: further tweaks
13227         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
13228         are overriding gethostname.
13229         Suggested by Bruno Haible.
13230
13231 2010-03-21  Bruno Haible  <bruno@clisp.org>
13232
13233         Fix comments.
13234         * lib/forkpty.c (rpl_forkpty): Fix comment.
13235         * lib/openpty.c (rpl_openpty): Likewise.
13236         Reported by Eric Blake.
13237
13238 2010-03-22  Eric Blake  <eblake@redhat.com>
13239
13240         gethostname: fix build on mingw
13241         * lib/unistd.in.h (includes): Work around fact that mingw
13242         <winsock2.h> re-includes <unistd.h>, by avoiding any
13243         redeclarations if we are being included by <winsock2.h>.
13244         Reported by Matthias Bolte.
13245
13246 2010-03-21  Bruno Haible  <bruno@clisp.org>
13247
13248         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13249         * lib/forkpty.c (forkpty): New replacement function, from glibc with
13250         modifications.
13251         * lib/pty.in.h (forkpty): Update declaration. Add comments.
13252         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
13253         provide the replacement.
13254         * modules/forkpty (Depends-on): Add openpty, login_tty.
13255         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
13256         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
13257         * doc/glibc-functions/forkpty.texi: More supported platforms.
13258         * config/srclist.txt: Add forkpty.c (commented).
13259
13260 2010-03-21  Bruno Haible  <bruno@clisp.org>
13261
13262         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
13263         (Makefile.am): Verify that PTY_LIB is defined.
13264
13265         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
13266
13267 2010-03-21  Bruno Haible  <bruno@clisp.org>
13268
13269         Tests for module 'login_tty'.
13270         * modules/login_tty-tests: New file.
13271         * tests/test-login_tty.c: New file.
13272
13273         New module 'login_tty'.
13274         * lib/login_tty.c: New file.
13275         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
13276         * modules/login_tty: New file.
13277         * doc/glibc-functions/login_tty.texi: Mention the new module.
13278
13279 2010-03-21  Bruno Haible  <bruno@clisp.org>
13280
13281         login_tty: Documentation.
13282         * doc/glibc-functions/login_tty.texi: New file.
13283         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
13284
13285 2010-03-21  Bruno Haible  <bruno@clisp.org>
13286
13287         pty: Consistent macro naming.
13288         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
13289         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
13290         * modules/pty (configure.ac): Update.
13291
13292 2010-03-21  Bruno Haible  <bruno@clisp.org>
13293
13294         Tests for openpty: Make stricter.
13295         * tests/test-openpty.c (main): Add test of canonical processing and
13296         erase.
13297         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
13298
13299         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13300         * lib/openpty.c (openpty): New replacement function.
13301         * lib/pty.in.h: Include <termios.h>.
13302         (openpty): Update declaration. Add comments.
13303         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
13304         is not declared, arrange to provide the replacement. Check for _getpty
13305         and posix_openpt.
13306         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
13307         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
13308         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13309         * modules/pty-tests (test_pty_c___LDADD): New variable.
13310         * doc/glibc-functions/openpty.texi: More supported platforms.
13311
13312 2010-03-21  Bruno Haible  <bruno@clisp.org>
13313
13314         setenv: Tweaks.
13315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
13316         the test program.
13317         * doc/posix-functions/setenv.texi: Update platforms list.
13318
13319 2010-03-21  Bruno Haible  <bruno@clisp.org>
13320
13321         New module 'unlockpt'.
13322         * lib/unlockpt.c: New file, from glibc with modifications.
13323         * m4/unlockpt.m4: New file.
13324         * modules/unlockpt: New file.
13325         * lib/stdlib.in.h (unlockpt): New declaration.
13326         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
13327         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
13328         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
13329         HAVE_UNLOCKPT.
13330         * doc/posix-functions/unlockpt.texi: Mention the new module.
13331         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
13332         * config/srclist.txt: Add unlockpt.c (commented).
13333
13334 2010-03-21  Jim Meyering  <meyering@redhat.com>
13335
13336         maint.mk: prohibit inclusion of "intprops.h" without use
13337         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
13338
13339 2010-03-21  Bruno Haible  <bruno@clisp.org>
13340
13341         New module 'grantpt'.
13342         * lib/grantpt.c: New file, from glibc with modifications.
13343         * m4/grantpt.m4: New file.
13344         * modules/grantpt: New file.
13345         * lib/stdlib.in.h (grantpt): New declaration.
13346         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
13347         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
13348         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
13349         HAVE_GRANTPT.
13350         * doc/posix-functions/grantpt.texi: Mention the new module.
13351         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
13352         * config/srclist.txt: Add grantpt.c (commented).
13353
13354 2010-03-21  Bruno Haible  <bruno@clisp.org>
13355
13356         New module 'pt_chown'.
13357         * lib/pt_chown.c: New file, from glibc with modifications.
13358         * lib/pty-private.h: New file, from glibc with modifications.
13359         * modules/pt_chown: New file.
13360         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
13361
13362 2010-03-21  Bruno Haible  <bruno@clisp.org>
13363
13364         Tests for module 'ptsname'.
13365         * modules/ptsname-tests: New file.
13366         * tests/test-ptsname.c: New file.
13367
13368         New module 'ptsname'.
13369         * lib/ptsname.c: New file, from glibc with modifications.
13370         * m4/ptsname.m4: New file.
13371         * modules/ptsname: New file.
13372         * lib/stdlib.in.h (ptsname): New declaration.
13373         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13374         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
13375         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
13376         HAVE_PTSNAME.
13377         * doc/posix-functions/ptsname.texi: Mention the new module.
13378         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
13379         * config/srclist.txt: Add ptsname.c (commented).
13380
13381 2010-03-21  Bruno Haible  <bruno@clisp.org>
13382
13383         Tests for module 'ttyname_r'.
13384         * modules/ttyname_r-tests: New file.
13385         * tests/test-ttyname_r.c: New file.
13386
13387         New module 'ttyname_r'.
13388         * lib/ttyname_r.c: New file.
13389         * m4/ttyname_r.m4: New file.
13390         * modules/ttyname_r: New file.
13391         * lib/unistd.in.h (ttyname_r): New declaration.
13392         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
13393         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
13394         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
13395         HAVE_TTYNAME_R.
13396         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
13397         * doc/posix-functions/ttyname_r.texi: Mention the new module.
13398
13399 2010-03-20  Bruno Haible  <bruno@clisp.org>
13400
13401         signal: Undefine macro definitions in C++ mode.
13402         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
13403         sigfillset): Undefine macro definitions from the system header in C++
13404         mode.
13405         Reported by John W. Eaton <jwe@gnu.org>.
13406
13407 2010-03-20  Bruno Haible  <bruno@clisp.org>
13408
13409         Ensure no #include statements inside extern "C" { ... }.
13410         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
13411         contain #include statements.
13412         * lib/time.in.h: Likewise.
13413
13414 2010-03-20  Bruno Haible  <bruno@clisp.org>
13415
13416         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
13417         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
13418         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
13419         Reported by John W. Eaton <jwe@gnu.org>.
13420
13421 2010-03-20  Bruno Haible  <bruno@clisp.org>
13422
13423         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
13424         Reported by Jim Meyering.
13425
13426 2010-03-20  Bruno Haible  <bruno@clisp.org>
13427
13428         pipe: Set errno upon failure.
13429         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13430         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13431         errno value in error message.
13432
13433 2010-03-20  Bruno Haible  <bruno@clisp.org>
13434             Jim Meyering  <meyering@redhat.com>
13435
13436         lchown: Avoid "unused variable" warning.
13437         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13438
13439 2010-03-20  Bruno Haible  <bruno@clisp.org>
13440
13441         Work around unlink() bug on MacOS X 10.5.6.
13442         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
13443         attempting to unlink a parent directory.
13444         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
13445         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
13446         activate for the replacement function.
13447         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
13448
13449 2010-03-20  Bruno Haible  <bruno@clisp.org>
13450
13451         Fix link errors on Solaris 8.
13452         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
13453         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
13454
13455 2010-03-19  Jim Meyering  <meyering@redhat.com>
13456
13457         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
13458         The _LIBC implementation of build_range_exp correctly honors the
13459         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
13460         However, the non-_LIBC implementation would ignore that syntax-bit
13461         flag and return REG_ERANGE unconditionally.
13462         This change makes it honor that flag.
13463         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
13464         Make two pointer parameters "const".
13465         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
13466         (parse_bracket_exp): Update caller.
13467
13468         regex.m4: correct the reversed range endpoint ([b-a]) test
13469         * m4/regex.m4: When requiring that [b-a] evoke failure,
13470         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
13471         test pass once again for x86-based systems.
13472
13473 2010-03-19  Bruno Haible  <bruno@clisp.org>
13474
13475         scandir: Fix link error on Solaris 8.
13476         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
13477         macros.
13478
13479 2010-03-19  Bruno Haible  <bruno@clisp.org>
13480
13481         getusershell: Fix documentation.
13482         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
13483         module.
13484         * doc/glibc-functions/setusershell.texi: Likewise.
13485
13486         getusershell: Provide declaration, missing on Solaris 9.
13487         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
13488         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
13489         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
13490         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
13491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13492         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
13493         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
13494         HAVE_GETUSERSHELL.
13495         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
13496
13497 2010-03-19  Bruno Haible  <bruno@clisp.org>
13498
13499         wctype: Provide iswblank function.
13500         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
13501         exists and is fine.
13502         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
13503         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
13504         * tests/test-wctype.c (main): Re-enable the iswblank tests.
13505         * doc/posix-functions/iswblank.texi: Update.
13506
13507 2010-03-19  Bruno Haible  <bruno@clisp.org>
13508
13509         Tests of module 'pty' in C++ mode.
13510         * modules/pty-tests: New file.
13511         * tests/test-pty-c++.cc: New file.
13512         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13513
13514 2010-03-19  Eric Blake  <eblake@redhat.com>
13515
13516         logb: fix documentation
13517         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
13518         1.5 declaration bug.
13519
13520         forkpty, openpty: prefer glibc's const-safe prototype
13521         * lib/forkpty.c (rpl_forkpty): New file.
13522         * lib/openpty.c (rpl_openpty): Likewise.
13523         * modules/forkpty (Files): Distribute it.
13524         * modules/openpty (Files): Likewise.
13525         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
13526         check...
13527         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
13528         replacement for for non-const BSD signature.
13529         * modules/pty (Makefile.am): Substitute witnesses.
13530         * lib/pty.in.h (forkpty, openpty): Declare replacements.
13531         * tests/test-forkpty.c: Update signature check.
13532         * tests/test-openpty.c: Likewise.
13533         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
13534         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13535
13536         forkpty, openpty: split functions into new modules
13537         * modules/pty (Makefile.am): Substitute new witnesses.
13538         (Libraries): Move library detection...
13539         * modules/forkpty: ...into new module.
13540         * modules/openpty: Another new module.
13541         * modules/pty-tests: Rename and split...
13542         * modules/forkpty-tests: ...to this...
13543         * modules/openpty-tests: ...and this.
13544         * tests/test-pty.c: Rename and split...
13545         * tests/test-forkpty.c: ...to this...
13546         * tests/test-openpty.c: ...and this.
13547         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
13548         (gl_PTY): Split library searching...
13549         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
13550         (gl_FORKPTY, gl_OPENPTY): New macros.
13551         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
13552         * NEWS: Mention the split.
13553         * MODULES.html.sh (Misc): Document the modules.
13554         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
13555         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13556
13557         pty: improve replacement header
13558         * lib/pty.in.h: New file.
13559         * modules/pty (Files): Ship it.
13560         (Makefile.am): Always build replacement.
13561         * m4/pty.m4: Rename...
13562         * m4/pty_h.m4: ...to this.
13563         (gl_PTY): Modernize setting of witness macros; update check of
13564         forkpty to take proper advantage of cache.
13565         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
13566
13567         getopt: avoid compiler warning
13568         * lib/getopt.c (attribute_hidden): Remove unused macro.
13569
13570 2010-03-18  Bruno Haible  <bruno@clisp.org>
13571
13572         Fix link errors on Solaris 8.
13573         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
13574         * modules/search-tests (test_search_c___LDADD): Likewise.
13575         * modules/signal-tests (test_signal_c___LDADD): Likewise.
13576         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
13577         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
13578         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
13579         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
13580         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
13581         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
13582
13583 2010-03-18  Bruno Haible  <bruno@clisp.org>
13584
13585         Fix bug introduced on 2010-03-14.
13586         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
13587         (gl_SPAWN_H): Require it.
13588         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
13589         Reported by Simon Josefsson.
13590
13591 2010-03-18  Bruno Haible  <bruno@clisp.org>
13592
13593         Fix typo introduced on 2009-12-31.
13594         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
13595         posix_spawn_file_actions_adddup2.
13596
13597 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
13598         and Eric Blake  <eblake@redhat.com>
13599
13600         test-vc-list-files-git: make more robust
13601         * tests/test-vc-list-files-git.sh: Unset problematic environment
13602         variables.  Chain commands together.
13603
13604 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
13605
13606         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
13607         `AC_CHECK_DECL' invocation.
13608
13609 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
13610
13611         * lib/inttostr.c (inttostr): Make sure the invocation of verify
13612         appears before executable statements. Suggested by Petr Sumbera
13613         <Petr.Sumbera@Sun.COM>.
13614
13615 2010-03-14  Bruno Haible  <bruno@clisp.org>
13616
13617         * tests/test-flock.c (test_exclusive): Comment out a test that causes
13618         portability problems. Instead use a simpler test.
13619         (main): Check that invalid arguments are rejected only on Linux.
13620
13621 2010-03-14  Bruno Haible  <bruno@clisp.org>
13622
13623         Fix bug introduced on 2009-12-31.
13624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13625         gl_PREREQ_SYS_H_WINSOCK2 always.
13626         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13627         SYS_SOCKET_H variable.
13628         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
13629         Update comments.
13630         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
13631         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13632         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13633         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13634         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13635
13636 2010-03-14  Bruno Haible  <bruno@clisp.org>
13637
13638         Fix values returned by sinl, cosl.
13639         * lib/trigl.h: Add specification comments.
13640         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
13641         that combines the values from the precomputed table with the values of
13642         the Chebyshev polynomials.
13643
13644 2010-03-14  Bruno Haible  <bruno@clisp.org>
13645
13646         Fix compilation error when modules 'posix_spawn[p]' are not used.
13647         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13648         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13649
13650 2010-03-14  Bruno Haible  <bruno@clisp.org>
13651
13652         Fix compilation error on mingw when module 'time_r' is not used.
13653         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13654         is 1.
13655         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13656         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13657         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13658         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13659
13660 2010-03-14  Bruno Haible  <bruno@clisp.org>
13661
13662         Fix compilation error with Sun C.
13663         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13664         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13665         instead of GCC specific ULONG_LONG_MAX.
13666         * lib/xstrtoll.c: Likewise.
13667         * lib/xstrtoull.c: Likewise.
13668
13669 2010-03-13  Bruno Haible  <bruno@clisp.org>
13670
13671         Allow the user to disable C++ code and tests.
13672         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
13673         (gl_PROG_ANSI_CXX): Require it.
13674
13675 2010-03-13  Bruno Haible  <bruno@clisp.org>
13676
13677         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
13678         cases.
13679
13680 2010-03-13  Bruno Haible  <bruno@clisp.org>
13681
13682         Test that gnulib does not break the standard C++ headers.
13683         * tests/test-locale-c++2.cc: New file.
13684         * modules/locale-tests (Files): Add it.
13685         (Makefile.am): Compile it for test-locale-c++.
13686         * tests/test-math-c++2.cc: New file.
13687         * modules/math-tests (Files): Add it.
13688         (Makefile.am): Compile it for test-math-c++.
13689         * tests/test-signal-c++2.cc: New file.
13690         * modules/signal-tests (Files): Add it.
13691         (Makefile.am): Compile it for test-signal-c++.
13692         * tests/test-stdio-c++2.cc: New file.
13693         * modules/stdio-tests (Files): Add it.
13694         (Makefile.am): Compile it for test-stdio-c++.
13695         * tests/test-stdlib-c++2.cc: New file.
13696         * modules/stdlib-tests (Files): Add it.
13697         (Makefile.am): Compile it for test-stdlib-c++.
13698         * tests/test-string-c++2.cc: New file.
13699         * modules/string-tests (Files): Add it.
13700         (Makefile.am): Compile it for test-string-c++.
13701         * tests/test-time-c++2.cc: New file.
13702         * modules/time-tests (Files): Add it.
13703         (Makefile.am): Compile it for test-time-c++.
13704         Reported by John W. Eaton <jwe@gnu.org>.
13705
13706 2010-03-13  Bruno Haible  <bruno@clisp.org>
13707
13708         * gnulib-tool (func_usage): Clarify which options are available for
13709         --create-testdir and --create-megatestdir.
13710
13711 2010-03-13  Bruno Haible  <bruno@clisp.org>
13712
13713         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
13714         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
13715         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
13716         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13717         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
13718         when appropriate.
13719         Reported by Jim Meyering.
13720
13721 2010-03-12  Simon Josefsson  <simon@josefsson.org>
13722
13723         * gnulib-tool (func_import): Explain origin of code.
13724
13725 2010-03-12  Bruno Haible  <bruno@clisp.org>
13726
13727         Fix problem with automake's definition of CXXLINK.
13728         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
13729         Reported by Simon Josefsson and Ludovic Courtès.
13730
13731 2010-03-12  Bruno Haible  <bruno@clisp.org>
13732
13733         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
13734         stable releases.
13735
13736 2010-03-11  Bruno Haible  <bruno@clisp.org>
13737
13738         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
13739         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
13740         whether the system provides one variant or multiple variants of the
13741         function.
13742         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
13743         C++ compilers.
13744         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
13745         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
13746         Reported by Jim Meyering.
13747
13748 2010-03-09  Simon Josefsson  <simon@josefsson.org>
13749
13750         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
13751
13752 2010-03-08  Bruno Haible  <bruno@clisp.org>
13753
13754         gnulib-tool: Add support for --libtool in --create-testdir.
13755         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
13756         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
13757
13758 2010-03-08  Eric Blake  <eblake@redhat.com>
13759
13760         gnulib-tool.texi: mention possibility of git submodule
13761         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
13762         submodules.
13763         * doc/.gitignore: Ignore another generated file.
13764
13765 2010-03-08  Karl Berry  <karl@gnu.org>
13766
13767         * doc/gnulib-tool.texi (VCS Issues): Mention third option
13768         of committing gnulib files while skipping others.
13769
13770 2010-03-07  Bruno Haible  <bruno@clisp.org>
13771
13772         Tests of module 'wctype' in C++ mode.
13773         * tests/test-wctype-c++.cc: New file.
13774         * modules/wctype-tests (Files): Add it and tests/signature.h.
13775         (Depends-on): Add ansi-c++-opt.
13776         (Makefile.am): Arrange to compile and run test-wctype-c++.
13777
13778         Tests of module 'wchar' in C++ mode.
13779         * tests/test-wchar-c++.cc: New file.
13780         * modules/wchar-tests (Files): Add it and tests/signature.h.
13781         (Depends-on): Add ansi-c++-opt.
13782         (Makefile.am): Arrange to compile and run test-wchar-c++.
13783         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13784         gl_MODULE_INDICATOR.
13785
13786         Tests of module 'unistd' in C++ mode.
13787         * tests/test-unistd-c++.cc: New file.
13788         * modules/unistd-tests (Files): Add it and tests/signature.h.
13789         (Depends-on): Add ansi-c++-opt.
13790         (Makefile.am): Arrange to compile and run test-unistd-c++.
13791         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13792         gl_MODULE_INDICATOR.
13793
13794         Tests of module 'time' in C++ mode.
13795         * tests/test-time-c++.cc: New file.
13796         * modules/time-tests (Files): Add it and tests/signature.h.
13797         (Depends-on): Add ansi-c++-opt.
13798         (Makefile.am): Arrange to compile and run test-time-c++.
13799         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13800
13801         Tests of module 'sys_time' in C++ mode.
13802         * tests/test-sys_time-c++.cc: New file.
13803         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13804         (Depends-on): Add ansi-c++-opt.
13805         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13806         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13807         gl_MODULE_INDICATOR.
13808
13809         Tests of module 'sys_stat' in C++ mode.
13810         * tests/test-sys_stat-c++.cc: New file.
13811         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13812         (Depends-on): Add ansi-c++-opt.
13813         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13814         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13815         gl_MODULE_INDICATOR.
13816
13817         Tests of module 'sys_socket' in C++ mode.
13818         * tests/test-sys_socket-c++.cc: New file.
13819         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
13820         (Depends-on): Add ansi-c++-opt.
13821         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
13822         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
13823         gl_MODULE_INDICATOR.
13824
13825         Tests of module 'sys_select' in C++ mode.
13826         * tests/test-sys_select-c++.cc: New file.
13827         * modules/sys_select-tests (Files): Add it and tests/signature.h.
13828         (Depends-on): Add ansi-c++-opt.
13829         (Makefile.am): Arrange to compile and run test-sys_select-c++.
13830         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
13831         gl_MODULE_INDICATOR.
13832
13833         Tests of module 'sys_ioctl' in C++ mode.
13834         * tests/test-sys_ioctl-c++.cc: New file.
13835         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
13836         (Depends-on): Add ansi-c++-opt.
13837         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
13838         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
13839         gl_MODULE_INDICATOR.
13840
13841         Tests of module 'string' in C++ mode.
13842         * tests/test-string-c++.cc: New file.
13843         * modules/string-tests (Files): Add it and tests/signature.h.
13844         (Depends-on): Add ansi-c++-opt.
13845         (Makefile.am): Arrange to compile and run test-string-c++.
13846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
13847         gl_MODULE_INDICATOR.
13848
13849         Tests of module 'stdlib' in C++ mode.
13850         * tests/test-stdlib-c++.cc: New file.
13851         * modules/stdlib-tests (Files): Add it and tests/signature.h.
13852         (Depends-on): Add ansi-c++-opt.
13853         (Makefile.am): Arrange to compile and run test-stdlib-c++.
13854         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
13855         gl_MODULE_INDICATOR.
13856
13857         Tests of module 'stdio' in C++ mode.
13858         * tests/test-stdio-c++.cc: New file.
13859         * modules/stdio-tests (Files): Add it and tests/signature.h.
13860         (Depends-on): Add ansi-c++-opt.
13861         (Makefile.am): Arrange to compile and run test-stdio-c++.
13862         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
13863         gl_MODULE_INDICATOR.
13864
13865         Tests of module 'spawn' in C++ mode.
13866         * tests/test-spawn-c++.cc: New file.
13867         * modules/spawn-tests (Files): Add it and tests/signature.h.
13868         (Depends-on): Add ansi-c++-opt.
13869         (Makefile.am): Arrange to compile and run test-spawn-c++.
13870         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
13871         gl_MODULE_INDICATOR.
13872
13873         Tests of module 'signal' in C++ mode.
13874         * tests/test-signal-c++.cc: New file.
13875         * modules/signal-tests (Files): Add it and tests/signature.h.
13876         (Depends-on): Add ansi-c++-opt.
13877         (Makefile.am): Arrange to compile and run test-signal-c++.
13878         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
13879         gl_MODULE_INDICATOR.
13880
13881         Tests of module 'search' in C++ mode.
13882         * tests/test-search-c++.cc: New file.
13883         * modules/search-tests (Files): Add it and tests/signature.h.
13884         (Depends-on): Add ansi-c++-opt.
13885         (Makefile.am): Arrange to compile and run test-search-c++.
13886         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
13887         gl_MODULE_INDICATOR.
13888
13889         Tests of module 'math' in C++ mode.
13890         * tests/test-math-c++.cc: New file.
13891         * modules/math-tests (Files): Add it and tests/signature.h.
13892         (Depends-on): Add ansi-c++-opt.
13893         (Makefile.am): Arrange to compile and run test-math-c++.
13894         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13895
13896         Tests of module 'locale' in C++ mode.
13897         * tests/test-locale-c++.cc: New file.
13898         * modules/locale-tests (Files): Add it and tests/signature.h.
13899         (Depends-on): Add ansi-c++-opt.
13900         (Makefile.am): Arrange to compile and run test-locale-c++.
13901         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
13902         gl_MODULE_INDICATOR.
13903
13904         Tests of module 'langinfo' in C++ mode.
13905         * tests/test-langinfo-c++.cc: New file.
13906         * modules/langinfo-tests (Files): Add it and tests/signature.h.
13907         (Depends-on): Add ansi-c++-opt.
13908         (Makefile.am): Arrange to compile and run test-langinfo-c++.
13909         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
13910         gl_MODULE_INDICATOR.
13911
13912         Tests of module 'iconv-h' in C++ mode.
13913         * tests/test-iconv-h-c++.cc: New file.
13914         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
13915         (Depends-on): Add ansi-c++-opt.
13916         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
13917
13918         Tests of module 'glob' in C++ mode.
13919         * tests/test-glob-c++.cc: New file.
13920         * modules/glob-tests (Files): Add it.
13921         (Depends-on): Add ansi-c++-opt.
13922         (Makefile.am): Arrange to compile and run test-glob-c++.
13923
13924         Tests of module 'fcntl-h' in C++ mode.
13925         * tests/test-fcntl-h-c++.cc: New file.
13926         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
13927         (Depends-on): Add ansi-c++-opt.
13928         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
13929         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
13930         gl_MODULE_INDICATOR.
13931
13932         Tests of module 'dirent' in C++ mode.
13933         * tests/test-dirent-c++.cc: New file.
13934         * modules/dirent-tests (Files): Add it and tests/signature.h.
13935         (Depends-on): Add ansi-c++-opt.
13936         (Makefile.am): Arrange to compile and run test-dirent-c++.
13937         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13938         gl_MODULE_INDICATOR.
13939
13940         New module 'ansi-c++-opt'.
13941         * modules/ansi-c++-opt: New file.
13942         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
13943
13944         Document C++ namespace mode.
13945         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
13946
13947         wctype: Avoid #define replacements in C++ mode.
13948         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
13949         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
13950         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
13951         In C++, define a namespaced alias symbol.
13952         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
13953         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
13954         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
13955         rule.
13956
13957         wchar: Avoid #define replacements in C++ mode.
13958         * lib/wchar.in.h: Include c++defs.h.
13959         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
13960         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
13961         symbol.
13962         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
13963         * modules/wchar (Depends-on): Add c++defs.
13964         (Makefile.am): Update wchar.h rule.
13965
13966         unistd: Avoid #define replacements in C++ mode.
13967         * lib/unistd.in.h: Include c++defs.h.
13968         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
13969         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
13970         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
13971         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
13972         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
13973         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
13974         symbol.
13975         (environ): Update.
13976         * modules/unistd (Depends-on): Add c++defs.
13977         (Makefile.am): Update unistd.h rule.
13978
13979         time: Avoid #define replacements in C++ mode.
13980         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
13981         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
13982         define a namespaced alias symbol.
13983         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
13984         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
13985         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
13986         * modules/time (Depends-on): Add c++defs, warn-on-use.
13987         (Makefile.am): Update time.h rule.
13988         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13989         * modules/nanosleep (configure.ac): Likewise.
13990         * modules/strptime (configure.ac): Likewise.
13991         * modules/timegm (configure.ac): Likewise.
13992
13993         sys_time: Avoid #define replacements in C++ mode.
13994         * lib/sys_time.in.h: Include c++defs.h.
13995         (gettimeofday): In C++, define a namespaced alias symbol.
13996         * modules/sys_time (Depends-on): Add c++defs.
13997         (Makefile.am): Update sys/time.h rule.
13998
13999         sys_stat: Avoid #define replacements in C++ mode.
14000         * lib/sys_stat.in.h: Include c++defs.h.
14001         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14002         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14003         namespaced alias symbol.
14004         In C++, define a namespaced alias symbol.
14005         * modules/sys_stat (Depends-on): Add c++defs.
14006         (Makefile.am): Update sys/stat.h rule.
14007
14008         sys_socket: Avoid #define replacements in C++ mode.
14009         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14010         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14011         definitions also when the system has a <sys/socket.h>.
14012         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14013         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14014         In C++, define a namespaced alias symbol.
14015         * modules/sys_socket (Depends-on): Add c++defs.
14016         (Makefile.am): Update sys/socket.h rule.
14017
14018         sys_select: Avoid #define replacements in C++ mode.
14019         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14020         definitions also when the system has a <sys/select.h>.
14021         (select): In C++, define a namespaced alias symbol.
14022         * modules/sys_select (Depends-on): Add c++defs.
14023         (Makefile.am): Update sys/select.h rule.
14024
14025         sys_ioctl: Avoid #define replacements in C++ mode.
14026         * lib/sys_ioctl.in.h: Include c++defs.h.
14027         (ioctl): In C++, define a namespaced alias symbol.
14028         * modules/sys_ioctl (Depends-on): Add c++defs.
14029         (Makefile.am): Update sys/ioctl.h rule.
14030
14031         string: Avoid #define replacements in C++ mode.
14032         * lib/string.in.h: Include c++defs.h.
14033         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14034         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14035         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14036         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14037         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14038         * modules/string (Depends-on): Add c++defs.
14039         (Makefile.am): Update string.h rule.
14040
14041         stdlib: Avoid #define replacements in C++ mode.
14042         * lib/stdlib.in.h: Include c++defs.h.
14043         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14044         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14045         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14046         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14047         symbol.
14048         * modules/stdlib (Depends-on): Add c++defs.
14049         (Makefile.am): Update stdlib.h rule.
14050
14051         stdio: Avoid #define replacements in C++ mode.
14052         * lib/stdio.in.h: Include c++defs.h.
14053         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14054         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14055         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14056         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14057         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14058         namespaced alias symbol.
14059         * modules/stdio (Depends-on): Add c++defs.
14060         (Makefile.am): Update stdio.h rule.
14061
14062         spawn: Avoid #define replacements in C++ mode.
14063         * lib/spawn.in.h: Include c++defs.h.
14064         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14065         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14066         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14067         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14068         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14069         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14070         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14071         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14072         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14073         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14074         In C++, define a namespaced alias symbol.
14075         * modules/spawn (Depends-on): Add c++defs.
14076         (Makefile.am): Update spawn.h rule.
14077
14078         signal: Avoid #define replacements in C++ mode.
14079         * lib/signal.in.h: Include c++defs.h.
14080         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14081         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14082         namespaced alias symbol.
14083         * modules/signal (Depends-on): Add c++defs.
14084         (Makefile.am): Update signal.h rule.
14085
14086         search: Avoid #define replacements in C++ mode.
14087         * lib/search.in.h: Include c++defs.h.
14088         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14089         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14090         symbol.
14091         * modules/search (Depends-on): Add c++defs.
14092         (Makefile.am): Update search.h rule.
14093
14094         math: Avoid #define replacements in C++ mode.
14095         * lib/math.in.h: Include c++defs.h.
14096         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14097         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14098         trunc, truncl): In C++, define a namespaced alias symbol.
14099         * modules/math (Depends-on): Add c++defs.
14100         (Makefile.am): Update math.h rule.
14101
14102         locale: Avoid #define replacements in C++ mode.
14103         * lib/locale.in.h: Include c++defs.h.
14104         (duplocale): In C++, define a namespaced alias symbol.
14105         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14106         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14107         * modules/locale (Depends-on): Add c++defs.
14108         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14109
14110         langinfo: Avoid #define replacements in C++ mode.
14111         * lib/langinfo.in.h: Include c++defs.h.
14112         (nl_langinfo): In C++, define a namespaced alias symbol.
14113         * modules/langinfo (Depends-on): Add c++defs.
14114         (Makefile.am): Update langinfo.h rule.
14115
14116         iconv-h: Avoid #define replacements in C++ mode.
14117         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14118         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14119         symbol.
14120         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14121         whenever iconv is present.
14122         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14123         (Makefile.am): Update iconv.h rule.
14124
14125         glob: Avoid #define replacements in C++ mode.
14126         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14127         (_gl_glob_errfunc_fn): New type.
14128         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14129         symbol.
14130         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14131         (Makefile.am): Update glob.h rule.
14132
14133         fcntl-h: Avoid #define replacements in C++ mode.
14134         * lib/fcntl.in.h: Include c++defs.h.
14135         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14136         * modules/fcntl-h (Depends-on): Add c++defs.
14137         (Makefile.am): Update fcntl.h rule.
14138
14139         dirent: Avoid #define replacements in C++ mode.
14140         * lib/dirent.in.h: Include c++defs.h.
14141         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14142         namespaced alias symbol.
14143         (dirfd): Update declaration.
14144         * modules/dirent (Depends-on): Add c++defs.
14145         (Makefile.am): Update dirent.h rule.
14146
14147         ctype: Make it usable in C++ code.
14148         * lib/ctype.in.h: Include c++defs.h.
14149         (isblank): Declare as extern "C".
14150         * modules/ctype (Depends-on): Add c++defs.
14151         (Makefile.am): Update ctype.h rule.
14152
14153         New module 'c++defs'.
14154         * modules/c++defs: New file.
14155         * build-aux/c++defs.h: New file.
14156         Reported by John W. Eaton <jwe@gnu.org>.
14157
14158 2010-03-07  Bruno Haible  <bruno@clisp.org>
14159
14160         logb: Provide missing declaration for Cygwin.
14161         * lib/math.in.h (logb): New declaration.
14162         * m4/logb.m4: New file.
14163         * modules/logb (Files): Add m4/logb.m4.
14164         (Depends-on): Add math.
14165         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14166         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14168         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14169         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14170
14171 2010-03-07  Bruno Haible  <bruno@clisp.org>
14172
14173         Fix test-cond link error.
14174         * tests/test-cond.c: Include <stdio.h>.
14175
14176 2010-03-07  Bruno Haible  <bruno@clisp.org>
14177
14178         Fix test-dirent-safer link error.
14179         * modules/dirent-safer-tests (Makefile.am): Define
14180         test_dirent_safer_LDADD.
14181
14182 2010-03-07  Bruno Haible  <bruno@clisp.org>
14183
14184         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
14185         among default module list.
14186
14187 2010-03-07  Bruno Haible  <bruno@clisp.org>
14188
14189         Fix link error on platforms with GNU libiconv.
14190         * modules/unistr/u8-strcoll-tests (Makefile): Define
14191         test_u8_strcoll_LDADD.
14192         * modules/unistr/u16-strcoll-tests (Makefile): Define
14193         test_u16_strcoll_LDADD.
14194         * modules/unistr/u32-strcoll-tests (Makefile): Define
14195         test_u32_strcoll_LDADD.
14196
14197 2010-03-07  Bruno Haible  <bruno@clisp.org>
14198
14199         Use POSIX declarations for socket functions.
14200         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
14201         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
14202         rpl_sendto): Change declaration to match POSIX.
14203         * lib/connect.c (rpl_connect): Likewise.
14204         * lib/accept.c (rpl_accept): Likewise.
14205         * lib/bind.c (rpl_bind): Likewise.
14206         * lib/getpeername.c (rpl_getpeername): Likewise.
14207         * lib/getsockname.c (rpl_getsockname): Likewise.
14208         * lib/recv.c (rpl_recv): Likewise.
14209         * lib/send.c (rpl_send): Likewise.
14210         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14211         * lib/sendto.c (rpl_sendto): Likewise.
14212
14213 2010-03-06  Bruno Haible  <bruno@clisp.org>
14214
14215         Clarify access, euidaccess, faccessat.
14216         * doc/posix-functions/faccessat.texi: Mention security problem under
14217         "Other problems", not "Portability problems".
14218         * doc/posix-functions/access.texi: Likewise. Mention a related security
14219         problem.
14220         * doc/glibc-functions/euidaccess.texi: Mention security problems.
14221         * lib/euidaccess.c: Add comments about platforms.
14222         * lib/unistd.in.h (access, euidaccess): Add warnings.
14223
14224 2010-03-07  Bruno Haible  <bruno@clisp.org>
14225
14226         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
14227         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
14228         (POSIX_SPAWN_SETSCHEDULER): Likewise.
14229         (POSIX_SPAWN_USEVFORK): Define in a way that works when
14230         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14231         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
14232         declare when POSIX_SPAWN_SETSCHEDULER is zero.
14233         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
14234         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
14235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
14236         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
14237         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
14238         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
14239         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
14240         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
14241         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
14242         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
14243         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
14244         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
14245         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
14246         Likewise.
14247         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
14248         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
14249         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
14250         Likewise.
14251         * tests/test-spawn.c (main): Make it work when
14252         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14253
14254 2010-03-07  Bruno Haible  <bruno@clisp.org>
14255
14256         Fix incorrect Makefile.am generation in German locale.
14257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14258         Execute sed command with character range in C locale.
14259
14260 2010-03-06  Bruno Haible  <bruno@clisp.org>
14261
14262         Tests for module 'iconv-h'.
14263         * modules/iconv-h-tests: New file.
14264         * tests/test-iconv-h.c: New file.
14265
14266         New module 'iconv-h'.
14267         * modules/iconv-h: New file.
14268         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
14269         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
14270         (configure.ac): Remove gl_ICONV_H.
14271         (Makefile.am): Remove rule for iconv.h.
14272
14273 2010-03-06  Bruno Haible  <bruno@clisp.org>
14274
14275         More consistent naming of *.m4 files.
14276         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
14277         * modules/wctype (Files): Update.
14278
14279         More consistent naming of *.m4 files.
14280         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
14281         * modules/wchar (Files): Update.
14282
14283 2010-03-06  Jim Meyering  <meyering@redhat.com>
14284
14285         euidaccess: relax license to LGPLv2+
14286         * modules/euidaccess (License): Relax to LGPLv2+.
14287
14288 2010-03-06  Bruno Haible  <bruno@clisp.org>
14289
14290         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
14291         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
14292         (Makefile.am): Augment lib_SOURCES instead.
14293
14294 2010-03-04  Jim Meyering  <meyering@redhat.com>
14295
14296         utime: remove obsolete module
14297         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
14298         unnecessary for years, and has been marked as obsolete for 10 months.
14299         * modules/utime: Remove file.
14300         * lib/utime.c: Remove file.
14301         * m4/utime.m4: Remove file.
14302         * m4/utimes-null.m4: Remove file.
14303         * doc/posix-functions/utime.texi (utime): Remove reference to
14304         the module.  Move the sole "fixed by gnulib" item into the
14305         "problems not fixed by Gnulib" list.
14306         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
14307
14308 2010-03-05  Simon Josefsson  <simon@josefsson.org>
14309
14310         * modules/exit (License): Relax license to LGPLv2+.
14311         (Status): Mark as obsolete.
14312         * NEWS: Mention deprecated 'exit' module.
14313         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
14314         of now obsolete 'exit'.
14315
14316 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14317
14318         fts-lgpl: remove unused module
14319         * modules/fts-lgpl: Remove.
14320         * MODULES.html.sh (func_all_modules): Adjust.
14321         * check-module (find_included_lib_files): Adjust.
14322         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
14323
14324 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
14325
14326         copy-acl: enhance Solaris ACL error handling
14327         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
14328         * lib/set-mode-acl.c (qset_acl): Likewise.
14329
14330 2010-03-02  Bruno Haible  <bruno@clisp.org>
14331
14332         spawn: Don't override the system defined values on FreeBSD 8.
14333         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
14334         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
14335         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
14336         if HAVE_POSIX_SPAWN is 1.
14337         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
14338
14339 2010-03-01  Bruno Haible  <bruno@clisp.org>
14340
14341         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
14342         regarding Automake.
14343
14344 2010-02-25  Bruno Haible  <bruno@clisp.org>
14345
14346         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
14347         * gnulib-tool: Define 'echo' as a function only before the ksh alias
14348         setting, not afterwards.
14349         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
14350
14351 2010-02-24  Eric Blake  <eblake@redhat.com>
14352
14353         bootstrap, git-version-gen: use timestamp
14354         * build-aux/git-version-gen (scriptversion): Force UTC.
14355         * build-aux/bootstrap (scriptversion): New variable.
14356
14357         bootstrap: allow older git
14358         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
14359         older than 1.6.4.  Requested by the libvirt project.
14360
14361 2010-02-23  Eric Blake  <eblake@redhat.com>
14362
14363         warn-on-use: work with old autoconf
14364         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
14365         AS_VAR semantics of autoconf 2.60.
14366         Reported by Bruno Haible.
14367
14368         bootstrap: improve some comments
14369         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
14370         clarification comments.
14371
14372         gettimeofday: provide correct function
14373         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
14374         when replacement is declared, otherwise provide gettimeofday.
14375         Reported by Michael Goffioul.
14376
14377 2010-02-23  Jim Meyering  <meyering@redhat.com>
14378
14379         lib-ignore: relax license to "unlimited", not LGPLv2+
14380         * modules/lib-ignore (License): Relax to "unlimited".
14381
14382 2010-02-23  Jim Meyering  <meyering@redhat.com>
14383
14384         lib-ignore: relax license to LGPLv2+
14385         * modules/lib-ignore (License): Relax to LGPLv2+.
14386
14387 2010-02-22  Eric Blake  <eblake@redhat.com>
14388
14389         lseek: avoid bash 3.2 broken pipe bug
14390         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
14391         warning from bash 3.2.
14392         Reported by Ben Pfaff, with analysis from Bruno Haible.
14393
14394         bootstrap: support non-FSF copyright holder
14395         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
14396         bootstrap.conf override of COPYRIGHT_HOLDER.
14397         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
14398
14399         bootstrap: interoperate with gettext 0.14.1
14400         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
14401
14402         bootstrap: allow for alternate submodule location
14403         * build-aux/bootstrap (gnulib_path): New variable; use instead of
14404         hardcoding submodule location.
14405         (gnulib_mk): Allow direct use of Makefile.am.
14406
14407         bootstrap: use GNULIB_SRCDIR to reduce disk usage
14408         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
14409         rather than reconfiguring where the submodule points.
14410
14411         gettimeofday: restore support for platforms that lack function
14412         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
14413         replacement if function is missing.
14414         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
14415         * modules/sys_time (Makefile.am): Substitute it.
14416         * lib/sys_time.in.h (gettimeofday): Check it.
14417         Reported by Michael Goffioul.
14418
14419 2010-02-21  Bruno Haible  <bruno@clisp.org>
14420
14421         * lib/stdio.in.h (obstack_printf): Fix typo.
14422
14423 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
14424
14425         vc-list-files: use bzr ls's -R option
14426         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
14427         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
14428
14429 2010-02-21  Jim Meyering  <meyering@redhat.com>
14430
14431         init.sh: fix EXEEXT shims to work also for names like test-prog
14432         * tests/init.sh: Re-exec a better shell, when needed.
14433         If the current shell lacks support for posix $(...), an init.sh-using
14434         test will now try to find a shell that supports that.  If EXEEXT is
14435         nonempty, we also require support for hyphen-in-alias-name and shell
14436         substitutions like ${var#glob}.  Failure to find such a shell results
14437         in a skipped test.
14438
14439 2010-02-21  Bruno Haible  <bruno@clisp.org>
14440
14441         Really work around around "broken pipe" error message from bash 3.2.
14442         * gnulib-tool (func_reset_sigpipe): Remove function.
14443         (echo): In bash 3.2, define to a function that uses printf.
14444         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
14445
14446 2010-02-20  Bruno Haible  <bruno@clisp.org>
14447
14448         Restore support for automake 1.9.6 with autoconf 2.61.
14449         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
14450         Reported by James Youngman <jay@gnu.org>.
14451
14452 2010-02-20  Bruno Haible  <bruno@clisp.org>
14453
14454         Improve *printf warning condition.
14455         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
14456         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
14457         and the function is overridden due to SIGPIPE emulation.
14458
14459 2010-02-20  Bruno Haible  <bruno@clisp.org>
14460
14461         * lib/stdio.in.h: Tweak comments.
14462
14463 2010-02-19  Bruno Haible  <bruno@clisp.org>
14464
14465         Make it easier to find modules. New gnulib-tool option '--find'.
14466         * gnulib-tool: New option --find.
14467         (func_usage): Document it.
14468         (func_sanitize_modulelist): New function, extracted from
14469         func_all_modules.
14470         (func_all_modules): Invoke it.
14471         * doc/gnulib-tool.texi (Which modules?): New node.
14472
14473 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
14474
14475         * lib/sys_select.in.h: Provide select replacement even if
14476         sys/select.h exists on a system, for Interix.
14477
14478 2010-02-18  Jim Meyering  <meyering@redhat.com>
14479
14480         init.sh: don't use $(...) just yet
14481         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
14482         to accommodate e.g., Solaris' /bin/sh.
14483
14484 2010-02-17  Bruno Haible  <bruno@clisp.org>
14485
14486         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
14487         Reported by Ludovic Courtès <ludo@gnu.org>.
14488
14489 2010-02-16  Simon Josefsson  <simon@josefsson.org>
14490
14491         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
14492         linking with -lintl.
14493
14494 2010-02-17  Simon Josefsson  <simon@josefsson.org>
14495
14496         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14497         if not provided by the system's netdb.h.  Reported by
14498         ludo@gnu.org (Ludovic Courtès).
14499
14500 2010-02-15  Jim Meyering  <meyering@redhat.com>
14501
14502         init.sh: improve portability and efficiency
14503         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
14504         "dummy" in a for loop.
14505         Use '!', not '^' to select the complement of a character set used
14506         in a "case" statement.
14507         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
14508         Suggestions from Eric Blake.
14509
14510         init.sh: automatically accommodate programs with the .exe suffix
14511         Automatically arrange for an invocation of "prog" to execute the
14512         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
14513         may use the simpler "prog", yet still work when built on a system
14514         that requires specifying the added suffix.
14515         Do this by constructing a function named "prog" that invokes
14516         "prog.exe" for each .exe file in selected directories.
14517         * tests/init.sh (find_exe_basenames_): New function.
14518         (create_exe_shim_functions_): New function.
14519         (path_prepend_): Use it.
14520
14521         maint.mk: mark syntax-check sc_*.m rules as .PHONY
14522         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
14523         "make -t syntax-check" doesn't create a ton of sc_*.m files.
14524
14525 2010-02-14  Jim Meyering  <meyering@redhat.com>
14526
14527         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
14528         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
14529         (sc_prohibit_hash_pjw_without_use): New rule.
14530
14531         maint.mk: allow the default upload destination dir to be overridden
14532         * top/maint.mk (upload_dest_dir_): Define with a default that
14533         preserves the status quo.
14534         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
14535         Reported by Peter Simons.
14536
14537         maint.mk: prohibit inclusion of "hash.h" without_use
14538         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
14539
14540 2010-02-10  Jim Meyering  <meyering@redhat.com>
14541
14542         maint.mk: prohibit inclusion of "ignore-value.h" without_use
14543         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
14544
14545 2010-02-09  Eric Blake  <ebb9@byu.net>
14546         and Bruno Haible  <bruno@clisp.org>
14547
14548         obstack-printf-posix: ensure declaration
14549         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
14550         extracted from gl_FUNC_OBSTACK_PRINTF.
14551         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
14552         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14553         Likewise.
14554         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
14555         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
14556         0.
14557
14558 2010-02-08  Bruno Haible  <bruno@clisp.org>
14559
14560         gnulib-tool: Fix typo in 2010-02-07 commit.
14561         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
14562         Reported by Eric Blake.
14563
14564 2010-02-07  Bruno Haible  <bruno@clisp.org>
14565
14566         gnulib-tool: Fix up caching patches.
14567         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
14568         option --no-cache. Use associative arrays when supported by the shell.
14569         (sed_comments): New variable.
14570         (modcache): Renamed from do_cache.
14571         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
14572         abbreviate unnecessarily.
14573         (have_associative): New variable.
14574         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
14575         way also for ksh and zsh.
14576         (func_init_sed_convert_to_cache_statements): New function, extracted
14577         from func_cache_lookup_module. Add support for associative arrays.
14578         Don't set the c_MODULE_cached variable here. Ignore all lines before
14579         the first field header. Remove only the final newline, not all trailing
14580         newlines. Support empty fields correctly. Limit the use of 'eval' to
14581         assignments.
14582         (func_get_description, func_get_status, func_get_notice,
14583         func_get_applicability, func_get_filelist, func_get_dependencies,
14584         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
14585         func_get_automake_snippet, func_get_include_directive,
14586         func_get_link_directive, func_get_license, func_get_maintainer):
14587         Update documentation. List the unoptimized code first. Add support for
14588         associative arrays. Limit the use of 'eval' to assignments.
14589         (func_get_applicability): Undo stylistic pessimisations.
14590         (func_get_automake_snippet, func_get_include_directive): Reduce code
14591         duplication.
14592         (func_modules_transitive_closure, func_modules_add_dummy,
14593         func_modules_notice, func_modules_to_filelist, func_add_file,
14594         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
14595         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
14596         func_create_testdir, func_create_megatestdir): Update documentation.
14597
14598 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14599
14600         * gnulib-tool (func_cache_lookup_module): Store the module name
14601         belonging to the cache variable; error out if two different
14602         module names map to the same cache variable name.
14603
14604 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14605
14606         gnulib-tool: Make caching optional.
14607         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
14608         Update matching short versions of --no-changelog.
14609         (func_usage): Update.
14610         (sed_extract_cache_prog): Renamed from ...
14611         (sed_extract_prog): ... this; revert to old extraction script.
14612         (func_get_description, func_get_status)
14613         (func_get_notice, func_get_applicability, func_get_filelist)
14614         (func_get_dependencies, func_get_autoconf_early_snippet)
14615         (func_get_autoconf_snippet, func_get_automake_snippet)
14616         (func_get_include_directive, func_get_link_directive)
14617         (func_get_license, func_get_maintainer): If $do_cache is false,
14618         use old, non-caching extraction scripts.
14619         Suggestion by Bruno Haible.
14620
14621 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14622
14623         gnulib-tool: cache module metainformation.
14624         * gnulib-tool (sed_extract_prog): Match newline before each
14625         header, and rewrite header to a shell variable suffix.
14626         (func_cache_var, func_cache_lookup_module): New functions,
14627         to turn a module name into a cache variable prefix, and to
14628         look up and cache module metainformation.
14629         (func_get_description, func_get_status)
14630         (func_get_notice, func_get_applicability, func_get_filelist)
14631         (func_get_dependencies, func_get_autoconf_early_snippet)
14632         (func_get_autoconf_snippet, func_get_automake_snippet)
14633         (func_get_include_directive, func_get_link_directive)
14634         (func_get_license, func_get_maintainer): Use
14635         func_cache_lookup_module.
14636
14637 2010-02-07  Bruno Haible  <bruno@clisp.org>
14638
14639         fnctl: Fix missing dependency.
14640         * modules/fcntl (Depends-on): Add getdtablesize.
14641         Reported by John W. Eaton <jwe@gnu.org>.
14642
14643 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14644
14645         Argp: fix recognition of short alias options.
14646
14647         * lib/argp-parse.c (convert_options): Fix improper use of
14648         `|' between character values.
14649         * tests/test-argp.c (group1_option): New alias option
14650         --read (-r).
14651         (group1_parser): Special handling for 'r'.
14652         (test15): New test case.
14653         (test_fun): Add test15.
14654         * tests/test-argp-2.sh: Update expected --help and --usage
14655         outputs.
14656
14657 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14658
14659         * tests/test-argp.c: Fix indentation.
14660
14661 2010-02-04  Eric Blake  <ebb9@byu.net>
14662
14663         gettimeofday: expose type of second argument
14664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14665         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14666         * tests/test-gettimeofday.c: Use it to silence warning.
14667         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
14668         the issue.
14669
14670 2010-02-03  Jim Meyering  <meyering@redhat.com>
14671
14672         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
14673         * lib/regcomp.c (TYPE_SIGNED): Define.
14674         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
14675
14676         regcomp.c: avoid a new -Wshadow warning
14677         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
14678
14679 2010-02-01  Jim Meyering  <meyering@redhat.com>
14680
14681         removing useless parentheses in cpp #define directives
14682         For motivation, see commit c0221df4, "define STREQ(a,b)
14683         consistently, removing useless parentheses"
14684         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
14685         * lib/mountlist.c (MNT_IGNORE): Likewise.
14686         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
14687
14688 2010-02-01  Eric Blake  <ebb9@byu.net>
14689
14690         sys_time: use link-warning
14691         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
14692         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
14693         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
14694         * modules/sys_time (Depends-on): Add warn-on-use.
14695         (Makefile.am): Always build replacement.
14696         (configure.ac): Update substitutions.
14697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
14698         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
14699         bother with SYS_TIME_H.
14700         * modules/gettimeofday (configure.ac): Declare indicator.
14701         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
14702         in use.
14703
14704         closein-tests: silence compiler warning
14705         * tests/test-closein.c (main): Ignore fread result.
14706         * modules/closein-tests (Depends-on): Add ignore-value.
14707
14708         tests: silence warning about system return
14709         * tests/test-areadlink-with-size.c (main): Ignore system result.
14710         * tests/test-areadlink.c (main): Likewise.
14711         * tests/test-areadlinkat-with-size.c (main): Likewise.
14712         * tests/test-areadlinkat.c (main): Likewise.
14713         * tests/test-canonicalize-lgpl.c (main): Likewise.
14714         * tests/test-canonicalize.c (main): Likewise.
14715         * tests/test-chown.c (main): Likewise.
14716         * tests/test-fchownat.c (main): Likewise.
14717         * tests/test-fdutimensat.c (main): Likewise.
14718         * tests/test-fstatat.c (main): Likewise.
14719         * tests/test-futimens.c (main): Likewise.
14720         * tests/test-lchown.c (main): Likewise.
14721         * tests/test-link.c (main): Likewise.
14722         * tests/test-linkat.c (main): Likewise.
14723         * tests/test-lstat.c (main): Likewise.
14724         * tests/test-mkdir.c (main): Likewise.
14725         * tests/test-mkdirat.c (main): Likewise.
14726         * tests/test-mkfifo.c (main): Likewise.
14727         * tests/test-mkfifoat.c (main): Likewise.
14728         * tests/test-mknod.c (main): Likewise.
14729         * tests/test-readlink.c (main): Likewise.
14730         * tests/test-remove.c (main): Likewise.
14731         * tests/test-rename.c (main): Likewise.
14732         * tests/test-renameat.c (main): Likewise.
14733         * tests/test-rmdir.c (main): Likewise.
14734         * tests/test-symlink.c (main): Likewise.
14735         * tests/test-symlinkat.c (main): Likewise.
14736         * tests/test-unlink.c (main): Likewise.
14737         * tests/test-unlinkat.c (main): Likewise.
14738         * tests/test-utimens.c (main): Likewise.
14739         * tests/test-utimensat.c (main): Likewise.
14740         * modules/areadlink-tests (Depends-on): Add ignore-value.
14741         * modules/areadlink-with-size-tests (Depends-on): Likewise.
14742         * modules/areadlinkat-tests (Depends-on): Likewise.
14743         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
14744         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14745         * modules/canonicalize-tests (Depends-on): Likewise.
14746         * modules/chown-tests (Depends-on): Likewise.
14747         * modules/fdutimensat-tests (Depends-on): Likewise.
14748         * modules/futimens-tests (Depends-on): Likewise.
14749         * modules/lchown-tests (Depends-on): Likewise.
14750         * modules/link-tests (Depends-on): Likewise.
14751         * modules/linkat-tests (Depends-on): Likewise.
14752         * modules/lstat-tests (Depends-on): Likewise.
14753         * modules/mkdir-tests (Depends-on): Likewise.
14754         * modules/mkfifo-tests (Depends-on): Likewise.
14755         * modules/mkfifoat-tests (Depends-on): Likewise.
14756         * modules/mknod-tests (Depends-on): Likewise.
14757         * modules/openat-tests (Depends-on): Likewise.
14758         * modules/readlink-tests (Depends-on): Likewise.
14759         * modules/remove-tests (Depends-on): Likewise.
14760         * modules/rename-tests (Depends-on): Likewise.
14761         * modules/renameat-tests (Depends-on): Likewise.
14762         * modules/rmdir-tests (Depends-on): Likewise.
14763         * modules/symlink-tests (Depends-on): Likewise.
14764         * modules/symlinkat-tests (Depends-on): Likewise.
14765         * modules/unlink-tests (Depends-on): Likewise.
14766         * modules/utimens-tests (Depends-on): Likewise.
14767         * modules/utimensat-tests (Depends-on): Likewise.
14768
14769 2010-01-31  Bruno Haible  <bruno@clisp.org>
14770
14771         Perform the same test for many <math.h> functions.
14772         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
14773         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
14774         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
14775         of gl_MATHFUNC.
14776         * modules/acos (configure.ac): Likewise.
14777         * modules/asin (configure.ac): Likewise.
14778         * modules/atan (configure.ac): Likewise.
14779         * modules/atan2 (configure.ac): Likewise.
14780         * modules/cbrt (configure.ac): Likewise.
14781         * modules/copysign (configure.ac): Likewise.
14782         * modules/cos (configure.ac): Likewise.
14783         * modules/cosh (configure.ac): Likewise.
14784         * modules/erf (configure.ac): Likewise.
14785         * modules/erfc (configure.ac): Likewise.
14786         * modules/exp (configure.ac): Likewise.
14787         * modules/fmod (configure.ac): Likewise.
14788         * modules/hypot (configure.ac): Likewise.
14789         * modules/j0 (configure.ac): Likewise.
14790         * modules/j1 (configure.ac): Likewise.
14791         * modules/jn (configure.ac): Likewise.
14792         * modules/lgamma (configure.ac): Likewise.
14793         * modules/log (configure.ac): Likewise.
14794         * modules/log10 (configure.ac): Likewise.
14795         * modules/log1p (configure.ac): Likewise.
14796         * modules/pow (configure.ac): Likewise.
14797         * modules/remainder (configure.ac): Likewise.
14798         * modules/sin (configure.ac): Likewise.
14799         * modules/sinh (configure.ac): Likewise.
14800         * modules/tan (configure.ac): Likewise.
14801         * modules/tanh (configure.ac): Likewise.
14802         * modules/y0 (configure.ac): Likewise.
14803         * modules/y1 (configure.ac): Likewise.
14804         * modules/yn (configure.ac): Likewise.
14805         Suggested by Paolo Bonzini.
14806
14807 2010-01-31  Bruno Haible  <bruno@clisp.org>
14808
14809         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14810
14811 2010-01-31  Bruno Haible  <bruno@clisp.org>
14812
14813         Work around getdelim() bug on FreeBSD 8.0.
14814         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14815         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
14816         not work.
14817         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
14818         is 1.
14819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
14820         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
14821         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
14822         a non-zero size.
14823         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
14824
14825 2010-01-31  Bruno Haible  <bruno@clisp.org>
14826
14827         Work around getline() bug on FreeBSD 8.0.
14828         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
14829         and a non-zero size.
14830         * tests/test-getline.c (main): Likewise.
14831         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
14832         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
14833
14834 2010-01-28  Eric Blake  <ebb9@byu.net>
14835
14836         regex: fix build failure
14837         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
14838         platforms.
14839
14840 2010-01-28  Jim Meyering  <meyering@redhat.com>
14841
14842         regex: do not ignore memory allocation failure
14843         * lib/regex_internal.c (create_cd_newstate): Detect
14844         re_node_set_init_copy failure.   Extracted from glibc commit
14845         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14846
14847         regex: sync more white-space changes from libc
14848         * lib/regex_internal.c: White-space only changes.
14849         * lib/regexec.c: Likewise.
14850
14851         regex: add many uses of __attribute_warn_unused_result__
14852         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
14853         * lib/regexec.c: Likewise.
14854         Extracted from a messy glibc commit.
14855
14856         regcomp.c: spelling and merge-artifact from glibc
14857         * lib/regcomp.c: Merge remainder of glibc's
14858         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14859
14860         regcomp.c: sync white-space changes from glibc
14861         * lib/regcomp.c: Merge to accommodate white space
14862         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14863
14864         regcomp.c: do not ignore internal return values
14865         * lib/regcomp.c: Do not ignore internal return values.
14866         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
14867         but without its white-space changes and spelling fixes.
14868
14869         regex_internal.h: define __attribute_warn_unused_result__
14870         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
14871
14872         maint: add a syntax-check rule to check for vulnerable Makefile.in
14873         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
14874
14875 2010-01-27  Jim Meyering  <meyering@redhat.com>
14876
14877         ncftpput-ftp: clean up spaces
14878         * build-aux/ncftpput-ftp: Make Copyright line consistent.
14879         Remove trailing blanks.
14880
14881 2010-01-27  Simon Josefsson  <simon@josefsson.org>
14882
14883         * build-aux/git-version-gen: Fix copyright statement.
14884         * build-aux/gnupload: Likewise.
14885         * tests/test-arcfour.c: Likewise.
14886         * tests/test-arctwo.c: Likewise.
14887         * tests/test-count-one-bits.c: Likewise.
14888         * tests/test-crc.c: Likewise.
14889         * tests/test-des.c: Likewise.
14890         * tests/test-gc-arcfour.c: Likewise.
14891         * tests/test-gc-arctwo.c: Likewise.
14892         * tests/test-gc-des.c: Likewise.
14893         * tests/test-gc-hmac-md5.c: Likewise.
14894         * tests/test-gc-hmac-sha1.c: Likewise.
14895         * tests/test-gc-md2.c: Likewise.
14896         * tests/test-gc-md4.c: Likewise.
14897         * tests/test-gc-md5.c: Likewise.
14898         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14899         * tests/test-gc-rijndael.c: Likewise.
14900         * tests/test-gc-sha1.c: Likewise.
14901         * tests/test-gc.c: Likewise.
14902         * tests/test-gethostname.c: Likewise.
14903         * tests/test-gettimeofday.c: Likewise.
14904         * tests/test-hash.c: Likewise.
14905         * tests/test-hmac-md5.c: Likewise.
14906         * tests/test-hmac-sha1.c: Likewise.
14907         * tests/test-md2.c: Likewise.
14908         * tests/test-md4.c: Likewise.
14909         * tests/test-md5.c: Likewise.
14910         * tests/test-memchr.c: Likewise.
14911         * tests/test-memchr2.c: Likewise.
14912         * tests/test-memcmp.c: Likewise.
14913         * tests/test-memmem.c: Likewise.
14914         * tests/test-memrchr.c: Likewise.
14915         * tests/test-rawmemchr.c: Likewise.
14916         * tests/test-read-file.c: Likewise.
14917         * tests/test-rijndael.c: Likewise.
14918         * tests/test-sockets.c: Likewise.
14919         * tests/test-strchrnul.c: Likewise.
14920         * tests/test-strstr.c: Likewise.
14921         * tests/test-strtod.c: Likewise.
14922         * build-aux/ncftpput-ftp: Likewise.
14923
14924 2010-01-26  Eric Blake  <ebb9@byu.net>
14925
14926         ignore-value: update recommended header name
14927         * modules/ignore-value (Include): Only use <> for headers that
14928         exist in glibc.
14929
14930 2010-01-26  Jim Meyering  <meyering@redhat.com>
14931
14932         test-userspec.c: avoid compiler warnings
14933         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
14934         and "initialization discards qualifiers..." warnings.
14935         Put the first "uid" in its own scope, and make char* members "const".
14936
14937 2010-01-25  Bruno Haible  <bruno@clisp.org>
14938
14939         gnulib-tool: Make warning diagnostics consistent.
14940         * gnulib-tool (func_warning): New function.
14941         Use it everywhere where gnulib-tool produces output to stderr and it is
14942         not a fatal error.
14943
14944 2010-01-25  Bruno Haible  <bruno@clisp.org>
14945
14946         Fix test dependencies.
14947         * modules/xstrtol-tests (Depends-on): Add inttypes.
14948         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
14949
14950 2010-01-25 Pádraig Brady <P@draigBrady.com>
14951
14952         syntax-check: detect incorrect boolean macro values in config.h
14953         * modules/maintainer-makefile (configure.ac): Parameterize the location
14954         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
14955         The logic is from Eric Blake and the location indicated by Jim Meyering.
14956         Note the more natural CONFIG_HEADER name is prohibited by automake
14957         for backwards compatibility reasons.
14958         * top/maint.mk (sc_Wundef_boolean): New rule.
14959
14960 2010-01-25  Jim Meyering  <meyering@redhat.com>
14961
14962         bootstrap: detect MacOS 10.6's shasum, too
14963         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
14964         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
14965
14966 2010-01-23  Jim Meyering  <meyering@redhat.com>
14967
14968         xstrtoll: new module
14969         * modules/xstrtoll: New file.
14970         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
14971         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
14972         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
14973         ./configure fails if you use this module and lack "long long".
14974         * modules/xstrtoll-tests: New module.
14975         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
14976         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
14977         new init.sh-based test framework.
14978
14979 2010-01-24  Bruno Haible  <bruno@clisp.org>
14980
14981         Tests for module 'yn'.
14982         * modules/yn-tests: New file.
14983         * tests/test-yn.c: New file.
14984
14985         Tests for module 'y1'.
14986         * modules/y1-tests: New file.
14987         * tests/test-y1.c: New file.
14988
14989         Tests for module 'y0'.
14990         * modules/y0-tests: New file.
14991         * tests/test-y0.c: New file.
14992
14993         Tests for module 'tanh'.
14994         * modules/tanh-tests: New file.
14995         * tests/test-tanh.c: New file.
14996
14997         Tests for module 'tan'.
14998         * modules/tan-tests: New file.
14999         * tests/test-tan.c: New file.
15000
15001         Tests for module 'sqrt'.
15002         * modules/sqrt-tests: New file.
15003         * tests/test-sqrt.c: New file.
15004
15005         Tests for module 'sinh'.
15006         * modules/sinh-tests: New file.
15007         * tests/test-sinh.c: New file.
15008
15009         Tests for module 'sin'.
15010         * modules/sin-tests: New file.
15011         * tests/test-sin.c: New file.
15012
15013         Tests for module 'rint'.
15014         * modules/rint-tests: New file.
15015         * tests/test-rint.c: New file.
15016
15017         Tests for module 'remainder'.
15018         * modules/remainder-tests: New file.
15019         * tests/test-remainder.c: New file.
15020
15021         Tests for module 'pow'.
15022         * modules/pow-tests: New file.
15023         * tests/test-pow.c: New file.
15024
15025         Tests for module 'nextafter'.
15026         * modules/nextafter-tests: New file.
15027         * tests/test-nextafter.c: New file.
15028
15029         Tests for module 'modf'.
15030         * modules/modf-tests: New file.
15031         * tests/test-modf.c: New file.
15032
15033         Tests for module 'logb'.
15034         * modules/logb-tests: New file.
15035         * tests/test-logb.c: New file.
15036
15037         Tests for module 'log1p'.
15038         * modules/log1p-tests: New file.
15039         * tests/test-log1p.c: New file.
15040
15041         Tests for module 'log10'.
15042         * modules/log10-tests: New file.
15043         * tests/test-log10.c: New file.
15044
15045         Tests for module 'log'.
15046         * modules/log-tests: New file.
15047         * tests/test-log.c: New file.
15048
15049         Tests for module 'lgamma'.
15050         * modules/lgamma-tests: New file.
15051         * tests/test-lgamma.c: New file.
15052
15053         Tests for module 'ldexp'.
15054         * modules/ldexp-tests: New file.
15055         * tests/test-ldexp.c: New file.
15056
15057         Tests for module 'jn'.
15058         * modules/jn-tests: New file.
15059         * tests/test-jn.c: New file.
15060
15061         Tests for module 'j1'.
15062         * modules/j1-tests: New file.
15063         * tests/test-j1.c: New file.
15064
15065         Tests for module 'j0'.
15066         * modules/j0-tests: New file.
15067         * tests/test-j0.c: New file.
15068
15069         Tests for module 'hypot'.
15070         * modules/hypot-tests: New file.
15071         * tests/test-hypot.c: New file.
15072
15073         Tests for module 'fmod'.
15074         * modules/fmod-tests: New file.
15075         * tests/test-fmod.c: New file.
15076
15077         Tests for module 'fabs'.
15078         * modules/fabs-tests: New file.
15079         * tests/test-fabs.c: New file.
15080
15081         Tests for module 'exp'.
15082         * modules/exp-tests: New file.
15083         * tests/test-exp.c: New file.
15084
15085         Tests for module 'erfc'.
15086         * modules/erfc-tests: New file.
15087         * tests/test-erfc.c: New file.
15088
15089         Tests for module 'erf'.
15090         * modules/erf-tests: New file.
15091         * tests/test-erf.c: New file.
15092
15093         Tests for module 'cosh'.
15094         * modules/cosh-tests: New file.
15095         * tests/test-cosh.c: New file.
15096
15097         Tests for module 'cos'.
15098         * modules/cos-tests: New file.
15099         * tests/test-cos.c: New file.
15100
15101         Tests for module 'copysign'.
15102         * modules/copysign-tests: New file.
15103         * tests/test-copysign.c: New file.
15104
15105         Tests for module 'cbrt'.
15106         * modules/cbrt-tests: New file.
15107         * tests/test-cbrt.c: New file.
15108
15109         Tests for module 'atan2'.
15110         * modules/atan2-tests: New file.
15111         * tests/test-atan2.c: New file.
15112
15113         Tests for module 'atan'.
15114         * modules/atan-tests: New file.
15115         * tests/test-atan.c: New file.
15116
15117         Tests for module 'asin'.
15118         * modules/asin-tests: New file.
15119         * tests/test-asin.c: New file.
15120
15121         Tests for module 'acos'.
15122         * modules/acos-tests: New file.
15123         * tests/test-acos.c: New file.
15124
15125 2010-01-24  Bruno Haible  <bruno@clisp.org>
15126
15127         Fix tests for common <math.h> functions.
15128         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15129         code snippet that references the function pointer, rather than merely
15130         calling the function. Substitute the FUNC_LIBM variable.
15131         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15132         * modules/acos (configure.ac): Likewise.
15133         * modules/asin (configure.ac): Likewise.
15134         * modules/atan (configure.ac): Likewise.
15135         * modules/atan2 (configure.ac): Likewise.
15136         * modules/cbrt (configure.ac): Likewise.
15137         * modules/copysign (configure.ac): Likewise.
15138         * modules/cos (configure.ac): Likewise.
15139         * modules/cosh (configure.ac): Likewise.
15140         * modules/erf (configure.ac): Likewise.
15141         * modules/erfc (configure.ac): Likewise.
15142         * modules/exp (configure.ac): Likewise.
15143         * modules/fabs (configure.ac): Likewise.
15144         * modules/fmod (configure.ac): Likewise.
15145         * modules/hypot (configure.ac): Likewise.
15146         * modules/j0 (configure.ac): Likewise.
15147         * modules/j1 (configure.ac): Likewise.
15148         * modules/jn (configure.ac): Likewise.
15149         * modules/ldexp (configure.ac): Likewise.
15150         * modules/lgamma (configure.ac): Likewise.
15151         * modules/log (configure.ac): Likewise.
15152         * modules/log10 (configure.ac): Likewise.
15153         * modules/log1p (configure.ac): Likewise.
15154         * modules/logb (configure.ac): Likewise.
15155         * modules/modf (configure.ac): Likewise.
15156         * modules/nextafter (configure.ac): Likewise.
15157         * modules/pow (configure.ac): Likewise.
15158         * modules/remainder (configure.ac): Likewise.
15159         * modules/rint (configure.ac): Likewise.
15160         * modules/sin (configure.ac): Likewise.
15161         * modules/sinh (configure.ac): Likewise.
15162         * modules/tan (configure.ac): Likewise.
15163         * modules/tanh (configure.ac): Likewise.
15164         * modules/y0 (configure.ac): Likewise.
15165         * modules/y1 (configure.ac): Likewise.
15166         * modules/yn (configure.ac): Likewise.
15167
15168 2010-01-24  Bruno Haible  <bruno@clisp.org>
15169
15170         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15171         * tests/test-acosl.c (x): New variable.
15172         (main): Store argument in x and fetch it from x.
15173         * tests/test-asinl.c (x): New variable.
15174         (main): Store argument in x and fetch it from x.
15175         * tests/test-atanl.c (x): New variable.
15176         (main): Store argument in x and fetch it from x.
15177         * tests/test-cosl.c (x): New variable.
15178         (main): Store argument in x and fetch it from x.
15179         * tests/test-expl.c (x): New variable.
15180         (main): Store argument in x and fetch it from x.
15181         * tests/test-logl.c (x): New variable.
15182         (main): Store argument in x and fetch it from x.
15183         * tests/test-sinl.c (x): New variable.
15184         (main): Store argument in x and fetch it from x.
15185         * tests/test-sqrtl.c (x): New variable.
15186         (main): Store argument in x and fetch it from x.
15187         * tests/test-tanl.c (x): New variable.
15188         (main): Store argument in x and fetch it from x.
15189
15190 2010-01-24  Bruno Haible  <bruno@clisp.org>
15191
15192         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
15193         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
15194         assignments to the initial TESTS_ENVIRONMENT.
15195         * doc/gnulib.texi (Unit test modules): Document it.
15196         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
15197         TESTS_ENVIRONMENT.
15198         * modules/btowc-tests (Makefile.am): Likewise.
15199         * modules/c-stack-tests (Makefile.am): Likewise.
15200         * modules/c-strcase-tests (Makefile.am): Likewise.
15201         * modules/copy-file-tests (Makefile.am): Likewise.
15202         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
15203         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
15204         * modules/mbrtowc-tests (Makefile.am): Likewise.
15205         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15206         * modules/mbscasestr-tests (Makefile.am): Likewise.
15207         * modules/mbschr-tests (Makefile.am): Likewise.
15208         * modules/mbscspn-tests (Makefile.am): Likewise.
15209         * modules/mbsinit-tests (Makefile.am): Likewise.
15210         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15211         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
15212         * modules/mbspbrk-tests (Makefile.am): Likewise.
15213         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15214         * modules/mbsrchr-tests (Makefile.am): Likewise.
15215         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
15216         * modules/mbsspn-tests (Makefile.am): Likewise.
15217         * modules/mbsstr-tests (Makefile.am): Likewise.
15218         * modules/nl_langinfo-tests (Makefile.am): Likewise.
15219         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
15220         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15221         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15222         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15223         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15224         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
15225         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15226         * modules/wcrtomb-tests (Makefile.am): Likewise.
15227         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
15228         * modules/wcsrtombs-tests (Makefile.am): Likewise.
15229         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
15230         assignments from TESTS_ENVIRONMENT.
15231         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
15232         augmentation.
15233         * modules/argp-version-etc-tests (Makefile.am): Likewise.
15234         * modules/atexit-tests (Makefile.am): Likewise.
15235         * modules/binary-io-tests (Makefile.am): Likewise.
15236         * modules/closein-tests (Makefile.am): Likewise.
15237         * modules/dprintf-posix-tests (Makefile.am): Likewise.
15238         * modules/exclude-tests (Makefile.am): Likewise.
15239         * modules/fflush-tests (Makefile.am): Likewise.
15240         * modules/fpending-tests (Makefile.am): Likewise.
15241         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15242         * modules/freadahead-tests (Makefile.am): Likewise.
15243         * modules/freadptr-tests (Makefile.am): Likewise.
15244         * modules/freadseek-tests (Makefile.am): Likewise.
15245         * modules/fseek-tests (Makefile.am): Likewise.
15246         * modules/fseeko-tests (Makefile.am): Likewise.
15247         * modules/ftell-tests (Makefile.am): Likewise.
15248         * modules/ftello-tests (Makefile.am): Likewise.
15249         * modules/idpriv-drop-tests (Makefile.am): Likewise.
15250         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
15251         * modules/lseek-tests (Makefile.am): Likewise.
15252         * modules/parse-duration-tests (Makefile.am): Likewise.
15253         * modules/perror-tests (Makefile.am): Likewise.
15254         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
15255         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
15256         * modules/pipe-tests (Makefile.am): Likewise.
15257         * modules/pread-tests (Makefile.am): Likewise.
15258         * modules/printf-posix-tests (Makefile.am): Likewise.
15259         * modules/select-tests (Makefile.am): Likewise.
15260         * modules/sigpipe-tests (Makefile.am): Likewise.
15261         * modules/tsearch-tests (Makefile.am): Likewise.
15262         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
15263         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
15264         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15265         * modules/uniwidth/width-tests (Makefile.am): Likewise.
15266         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
15267         * modules/version-etc-tests (Makefile.am): Likewise.
15268         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15269         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15270         * modules/xalloc-die-tests (Makefile.am): Likewise.
15271         * modules/xprintf-posix-tests (Makefile.am): Likewise.
15272         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15273         * modules/xstrtol-tests (Makefile.am): Likewise.
15274         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15275         * modules/yesno-tests (Makefile.am): Likewise.
15276         Suggested by Jim Meyering.
15277
15278 2010-01-24  Bruno Haible  <bruno@clisp.org>
15279
15280         More documentation.
15281         * doc/gnulib.texi (Writing modules): New chapter.
15282         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
15283         the new chapter.
15284
15285 2010-01-24  Jim Meyering  <meyering@redhat.com>
15286
15287         maint.mk: do not prepend "./" after filtering
15288         * top/maint.mk (_prepend_srcdir_prefix): New variable
15289         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
15290         "./" when $(srcdir) is ".".
15291
15292         define STREQ(a,b) consistently, removing useless parentheses
15293         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
15294         since the only risk is that "a" or "b" contains an unparenthesized
15295         comma, but if either did that, STREQ would have 3 or more arguments.
15296         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
15297         * lib/fts.c (STREQ): Remove unnecessary parentheses.
15298         * lib/hash-triple.c (STREQ): Likewise.
15299         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
15300         * lib/getugroups.c (STREQ): Likewise.
15301
15302 2010-01-23  Jim Meyering  <meyering@redhat.com>
15303
15304         maint.mk: fix syntax-check in a non-srcdir build directory
15305         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
15306         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
15307
15308 2010-01-22  Jim Meyering  <meyering@redhat.com>
15309
15310         userspec: add unit tests
15311         * tests/test-userspec.c: New file.
15312         * modules/userspec-tests: Likewise.
15313
15314 2010-01-21  Jim Meyering  <meyering@redhat.com>
15315
15316         maint.mk: handle source file names containing "." robustly
15317         * top/maint.mk (_dot_escaped_srcdir): Define.
15318         (VC_LIST): Use it in LHS of sed substitution.
15319
15320 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
15321
15322         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
15323         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
15324         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
15325         from a non-srcdir build.
15326
15327 2010-01-20  Eric Blake  <ebb9@byu.net>
15328
15329         warn-on-use: use instead of link-warning
15330         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
15331         * modules/unistd (Depends-on, Makefile.am): Likewise.
15332         * modules/arpa_inet (Depends-on): Replace link-warning with
15333         warn-on-use.
15334         (Makefile.am): Update rules accordingly.
15335         * modules/ctype (Depends-on, Makefile.am): Likewise.
15336         * modules/dirent (Depends-on, Makefile.am): Likewise.
15337         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
15338         * modules/inttypes (Depends-on, Makefile.am): Likewise.
15339         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15340         * modules/locale (Depends-on, Makefile.am): Likewise.
15341         * modules/math (Depends-on, Makefile.am): Likewise.
15342         * modules/search (Depends-on, Makefile.am): Likewise.
15343         * modules/signal (Depends-on, Makefile.am): Likewise.
15344         * modules/spawn (Depends-on, Makefile.am): Likewise.
15345         * modules/stdlib (Depends-on, Makefile.am): Likewise.
15346         * modules/string (Depends-on, Makefile.am): Likewise.
15347         * modules/strings (Depends-on, Makefile.am): Likewise.
15348         * modules/sys_file (Depends-on, Makefile.am): Likewise.
15349         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
15350         * modules/sys_select (Depends-on, Makefile.am): Likewise.
15351         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
15352         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
15353         * modules/sys_times (Depends-on, Makefile.am): Likewise.
15354         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15355         * modules/wchar (Depends-on, Makefile.am): Likewise.
15356         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
15357         should be poisoned.
15358         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
15359         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
15360         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
15361         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15362         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15363         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15364         * m4/math_h.m4 (gl_MATH_H): Likewise.
15365         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15366         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15367         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15368         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15369         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15370         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15371         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15372         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
15373         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15378         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15379         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15380         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15381         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
15382         GL_LINK_WARNING.
15383         * lib/ctype.in.h: Likewise.
15384         * lib/dirent.in.h: Likewise.
15385         * lib/fcntl.in.h: Likewise.
15386         * lib/inttypes.in.h: Likewise.
15387         * lib/langinfo.in.h: Likewise.
15388         * lib/locale.in.h: Likewise.
15389         * lib/math.in.h: Likewise.
15390         * lib/search.in.h: Likewise.
15391         * lib/signal.in.h: Likewise.
15392         * lib/spawn.in.h: Likewise.
15393         * lib/stdio.in.h: Likewise.
15394         * lib/stdlib.in.h: Likewise.
15395         * lib/string.in.h: Likewise.
15396         * lib/strings.in.h: Likewise.
15397         * lib/sys_file.in.h: Likewise.
15398         * lib/sys_ioctl.in.h: Likewise.
15399         * lib/sys_select.in.h: Likewise.
15400         * lib/sys_socket.in.h: Likewise.
15401         * lib/sys_stat.in.h: Likewise.
15402         * lib/sys_times.in.h: Likewise.
15403         * lib/sys_utsname.in.h: Likewise.
15404         * lib/unistd.in.h: Likewise.
15405         * lib/wchar.in.h: Likewise.
15406
15407 2010-01-20  Bruno Haible  <bruno@clisp.org>
15408
15409         Avoid duplicate -lm.
15410         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
15411         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
15412         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
15413         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
15414         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
15415         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
15416         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
15417         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
15418         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
15419         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
15420         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
15421         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15422         Reported by Paolo Bonzini.
15423
15424 2010-01-19  Bruno Haible  <bruno@clisp.org>
15425
15426         langinfo, nl_langinfo: Relicense under LGPLv2+.
15427         * modules/langinfo (License): Change to LGPLv2+.
15428         * modules/nl_langinfo (License): Likewise.
15429         Patch by David Lutterkort <lutter@redhat.com>.
15430
15431 2010-01-19  Bruno Haible  <bruno@clisp.org>
15432
15433         Avoid compilation error with cc on OSF/1 5.1.
15434         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15435         statement, not before.
15436         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15437
15438 2010-01-18  Bruno Haible  <bruno@clisp.org>
15439
15440         Avoid a link error due to the __printf__ symbol.
15441         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
15442         and 2.6.x.
15443         (__format__, __printf__): Remove definitions.
15444         * lib/argp-fmtstream.h: Likewise.
15445         * lib/argp.h: Likewise.
15446         * lib/error.h: Likewise.
15447         * lib/vasnprintf.h: Likewise.
15448         * lib/xprintf.h: Likewise.
15449         * lib/xvasprintf.h: Likewise.
15450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15451
15452 2010-01-18  Bruno Haible  <bruno@clisp.org>
15453
15454         Tests for module 'tanl'.
15455         * modules/tanl-tests: New file.
15456         * tests/test-tanl.c: New file.
15457
15458         Tests for module 'sqrtl'.
15459         * modules/sqrtl-tests: New file.
15460         * tests/test-sqrtl.c: New file.
15461
15462         Tests for module 'sinl'.
15463         * modules/sinl-tests: New file.
15464         * tests/test-sinl.c: New file.
15465
15466         Tests for module 'logl'.
15467         * modules/logl-tests: New file.
15468         * tests/test-logl.c: New file.
15469
15470         Tests for module 'expl'.
15471         * modules/expl-tests: New file.
15472         * tests/test-expl.c: New file.
15473
15474         Tests for module 'cosl'.
15475         * modules/cosl-tests: New file.
15476         * tests/test-cosl.c: New file.
15477
15478         Tests for module 'atanl'.
15479         * modules/atanl-tests: New file.
15480         * tests/test-atanl.c: New file.
15481
15482         Tests for module 'asinl'.
15483         * modules/asinl-tests: New file.
15484         * tests/test-asinl.c: New file.
15485
15486         Tests for module 'acosl'.
15487         * modules/acosl-tests: New file.
15488         * tests/test-acosl.c: New file.
15489
15490         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15491         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15492         tanl): Use the standard gnulib idiom.
15493         * lib/cosl.c: Don't include trigl.c and sincosl.c.
15494         * lib/sinl.c: Likewise.
15495         * lib/tanl.c: Don't include trigl.c.
15496         (kernel_tanl): Make static.
15497         * lib/sincosl.c: Include trigl.h first.
15498         * lib/trigl.c: Likewise.
15499         * m4/acosl.m4: New file.
15500         * m4/asinl.m4: New file.
15501         * m4/atanl.m4: New file.
15502         * m4/cosl.m4: New file.
15503         * m4/expl.m4: New file.
15504         * m4/logl.m4: New file.
15505         * m4/sinl.m4: New file.
15506         * m4/sqrtl.m4: New file.
15507         * m4/tanl.m4: New file.
15508         * m4/mathl.m4: Remove file.
15509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
15510         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15511         Don't initialize GNULIB_MATHL.
15512         * modules/acosl: New file.
15513         * modules/asinl: New file.
15514         * modules/atanl: New file.
15515         * modules/cosl: New file.
15516         * modules/expl: New file.
15517         * modules/logl: New file.
15518         * modules/sinl: New file.
15519         * modules/sqrtl: New file.
15520         * modules/tanl: New file.
15521         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
15522         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
15523         substitute GNULIB_MATHL.
15524         * modules/mathl: Rewritten.
15525         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
15526         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
15527         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
15528         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
15529         * doc/posix-functions/expl.texi: Mention the 'expl' module.
15530         * doc/posix-functions/logl.texi: Mention the 'logl' module.
15531         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
15532         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
15533         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
15534
15535 2010-01-18  Bruno Haible  <bruno@clisp.org>
15536
15537         sqrt: Make gl_FUNC_SQRT requirable.
15538         * m4/sqrt.m4: New file.
15539         * modules/sqrt (Files): Add it.
15540         (configure.ac): Invoke gl_FUNC_SQRT.
15541
15542 2010-01-18  Bruno Haible  <bruno@clisp.org>
15543
15544         New modules for common <math.h> functions.
15545         * m4/mathfunc.m4: New file.
15546         * modules/acos: New file.
15547         * modules/asin: New file.
15548         * modules/atan: New file.
15549         * modules/atan2: New file.
15550         * modules/cbrt: New file.
15551         * modules/copysign: New file.
15552         * modules/cos: New file.
15553         * modules/cosh: New file.
15554         * modules/erf: New file.
15555         * modules/erfc: New file.
15556         * modules/exp: New file.
15557         * modules/fabs: New file.
15558         * modules/fmod: New file.
15559         * modules/hypot: New file.
15560         * modules/j0: New file.
15561         * modules/j1: New file.
15562         * modules/jn: New file.
15563         * modules/ldexp: New file.
15564         * modules/lgamma: New file.
15565         * modules/log: New file.
15566         * modules/log10: New file.
15567         * modules/log1p: New file.
15568         * modules/logb: New file.
15569         * modules/modf: New file.
15570         * modules/nextafter: New file.
15571         * modules/pow: New file.
15572         * modules/remainder: New file.
15573         * modules/rint: New file.
15574         * modules/sin: New file.
15575         * modules/sinh: New file.
15576         * modules/sqrt: New file.
15577         * modules/tan: New file.
15578         * modules/tanh: New file.
15579         * modules/y0: New file.
15580         * modules/y1: New file.
15581         * modules/yn: New file.
15582         * doc/posix-functions/acos.texi: Mention the 'acos' module.
15583         * doc/posix-functions/asin.texi: Mention the 'asin' module.
15584         * doc/posix-functions/atan.texi: Mention the 'atan' module.
15585         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
15586         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
15587         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
15588         * doc/posix-functions/cos.texi: Mention the 'cos' module.
15589         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
15590         * doc/posix-functions/erf.texi: Mention the 'erf' module.
15591         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
15592         * doc/posix-functions/exp.texi: Mention the 'exp' module.
15593         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
15594         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
15595         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
15596         * doc/posix-functions/j0.texi: Mention the 'j0' module.
15597         * doc/posix-functions/j1.texi: Mention the 'j1' module.
15598         * doc/posix-functions/jn.texi: Mention the 'jn' module.
15599         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
15600         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
15601         * doc/posix-functions/log.texi: Mention the 'log' module.
15602         * doc/posix-functions/log10.texi: Mention the 'log10' module.
15603         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
15604         * doc/posix-functions/logb.texi: Mention the 'logb' module.
15605         * doc/posix-functions/modf.texi: Mention the 'modf' module.
15606         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
15607         * doc/posix-functions/pow.texi: Mention the 'pow' module.
15608         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
15609         * doc/posix-functions/rint.texi: Mention the 'rint' module.
15610         * doc/posix-functions/sin.texi: Mention the 'sin' module.
15611         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
15612         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
15613         * doc/posix-functions/tan.texi: Mention the 'tan' module.
15614         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
15615         * doc/posix-functions/y0.texi: Mention the 'y0' module.
15616         * doc/posix-functions/y1.texi: Mention the 'y1' module.
15617         * doc/posix-functions/yn.texi: Mention the 'yn' module.
15618
15619 2010-01-18  Jim Meyering  <meyering@redhat.com>
15620
15621         ignore-value: relax license to LGPLv2+
15622         * modules/ignore-value (License): Relax to LGPLv2+.
15623
15624         getdate: don't leak when TZ contains two or more '"'s
15625         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
15626         double quote in TZ after the first one.
15627
15628         readtokens: do not leak internal token_lengths buffer
15629         * lib/readtokens.c (readtokens): Free the local, lengths,
15630         when the supplied "token_lengths" parameter is NULL.
15631
15632 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15633
15634         Fix a couple of missing LIBTHREAD link failures on AIX.
15635         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
15636         $(LIBTHREAD).
15637         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
15638
15639         Link test-poll against INET_PTON_LIB.
15640         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
15641         for inet_pton on Solaris 10.
15642
15643 2010-01-17  Bruno Haible  <bruno@clisp.org>
15644
15645         unistdio/*-sprintf: Fix typo in module description.
15646         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15647         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15648         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15649         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15650         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15651         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15652         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15654
15655 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15656
15657         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15658         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15659         variables in shell case patterns, for AIX and HP-UX ksh.
15660
15661         Split large sed scripts, for HP-UX sed.
15662         * modules/stdio: Split sed scripts around 50 sed commands,
15663         to avoid HP-UX limit of 99 commands, in the near future.
15664         * modules/string: Likewise.
15665         * modules/unistd: Likewise.
15666
15667         gnulib-tool: avoid writing in the current directory.
15668         * gnulib-tool (func_emit_lib_Makefile_am)
15669         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
15670         not in the current directory, so concurrent gnulib-tool
15671         instances do not interfere.
15672
15673 2010-01-16  Jim Meyering  <meyering@redhat.com>
15674
15675         doc: update users.txt
15676         * users.txt: Add grep.
15677         (diffutils, gzip): Update URLs.
15678
15679 2010-01-12  Bruno Haible  <bruno@clisp.org>
15680
15681         posix_spawn: Avoid test failure on Cygwin.
15682         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
15683         characters.
15684         Reported by Simon Josefsson.
15685
15686 2010-01-12  Bruno Haible  <bruno@clisp.org>
15687
15688         * tests/test-cond.c (main): When skipping the test, show the reason.
15689
15690 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15691
15692         * lib/striconv.c (str_cd_iconv): Avoid if before free.
15693
15694 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15695
15696         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
15697         VC_LIST_ALWAYS_EXCLUDE_REGEX.
15698
15699 2010-01-12  Eric Blake  <ebb9@byu.net>
15700
15701         build: guarantee AS_VAR_IF
15702         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
15703         (gl_AS_VAR_IF): Move...
15704         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
15705         Reported by Simon Josefsson.
15706
15707 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15708
15709         * lib/stdio.in.h: Fix typo.
15710
15711 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15712
15713         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
15714         libgpg-error.
15715
15716 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15717
15718         * tests/test-xalloc-die.sh: Use $EXEEXT.
15719
15720 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15721             Bruno Haible  <bruno@clisp.org>
15722
15723         getlogin, getlogin_r: Avoid test failure.
15724         * tests/test-getlogin.c: Include <stdio.h>.
15725         (main): Skip the test when the function fails because stdin is not a
15726         tty.
15727         * tests/test-getlogin_r.c: Include <stdio.h>.
15728         (main): Skip the test when the function fails because stdin is not a
15729         tty.
15730
15731 2010-01-11  Eric Blake  <ebb9@byu.net>
15732
15733         tests: avoid more large file warnings
15734         * tests/test-fflush.c: Avoid warning about ftell use.
15735         * tests/test-fseek.c: Avoid warning about fseek use.
15736
15737 2010-01-10  Bruno Haible  <bruno@clisp.org>
15738
15739         nproc: Work better on Linux when /proc and /sys are not mounted.
15740         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
15741         as lower bound when, on glibc/Linux systems,
15742         sysconf (_SC_NPROCESSORS_CONF) returns 1.
15743         Suggested by Pádraig Brady <P@draigbrady.com>.
15744         Reported by Dmitry V. Levin <ldv@altlinux.org>.
15745
15746         nproc: Refactor.
15747         * lib/nproc.c (num_processors_via_affinity_mask): New function,
15748         extracted from num_processors.
15749         (num_processors): Call it.
15750
15751 2010-01-11  Jim Meyering  <meyering@redhat.com>
15752
15753         utimecmp: avoid new warning from upcoming gcc-4.5.0
15754         * lib/utimecmp.c (BILLION): Define using #define rather than an
15755         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
15756
15757 2010-01-11  Eric Blake  <ebb9@byu.net>
15758
15759         math: add portability warnings for classification macros
15760         * modules/math (Depends-on): Add warn-on-use.
15761         (Makefile.am): Provide new substitutions.
15762         * m4/math_h.m4 (gl_MATH_H): Require inline.
15763         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
15764         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
15765         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
15766         implement warnings.
15767
15768         unistd: warn on use of environ without module
15769         * modules/unistd (Depends-on): Add warn-on-use.
15770         (Makefile.am): Provide new substitutions.
15771         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
15772         * lib/unistd.in.h (environ): Wrap with a warning helper function.
15773
15774         stdio: warn on suspicious uses
15775         * modules/stdio (Depends-on): Add warn-on-use.
15776         (Makefile.am): Provide new substitutions.
15777         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15778         fseeko.
15779         * lib/stdio.in.h (gets): Always warn on use.
15780         (fseek, ftell): Adjust when warnings are issued, and honor
15781         _GL_NO_LARGE_FILES as a way to silence the warning.
15782         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15783         any warning about large file offsets.
15784         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15785         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15786         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15787         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15788         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15789         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15790         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15791         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15792
15793         warn-on-use: new module
15794         * modules/warn-on-use: New file.
15795         * build-aux/warn-on-use.h: Likewise.
15796         * m4/warn-on-use.m4: Likewise.
15797         * MODULES.html.sh (Support for building): Mention it.
15798
15799 2010-01-10  Bruno Haible  <bruno@clisp.org>
15800
15801         Tests for module 'unistr/u32-strdup'.
15802         * modules/unistr/u32-strdup-tests: New file.
15803         * tests/unistr/test-u32-strdup.c: New file.
15804
15805         Tests for module 'unistr/u16-strdup'.
15806         * modules/unistr/u16-strdup-tests: New file.
15807         * tests/unistr/test-u16-strdup.c: New file.
15808
15809         Tests for module 'unistr/u8-strdup'.
15810         * modules/unistr/u8-strdup-tests: New file.
15811         * tests/unistr/test-u8-strdup.c: New file.
15812         * tests/unistr/test-strdup.h: New file.
15813
15814         Tests for module 'unistr/u32-strncmp'.
15815         * modules/unistr/u32-strncmp-tests: New file.
15816         * tests/unistr/test-u32-strncmp.c: New file.
15817
15818         Tests for module 'unistr/u16-strncmp'.
15819         * modules/unistr/u16-strncmp-tests: New file.
15820         * tests/unistr/test-u16-strncmp.c: New file.
15821
15822         Tests for module 'unistr/u8-strncmp'.
15823         * modules/unistr/u8-strncmp-tests: New file.
15824         * tests/unistr/test-u8-strncmp.c: New file.
15825         * tests/unistr/test-strncmp.h: New file.
15826
15827         Tests for module 'unistr/u32-strcoll'.
15828         * modules/unistr/u32-strcoll-tests: New file.
15829         * tests/unistr/test-u32-strcoll.c: New file.
15830
15831         Tests for module 'unistr/u16-strcoll'.
15832         * modules/unistr/u16-strcoll-tests: New file.
15833         * tests/unistr/test-u16-strcoll.c: New file.
15834
15835         Tests for module 'unistr/u8-strcoll'.
15836         * modules/unistr/u8-strcoll-tests: New file.
15837         * tests/unistr/test-u8-strcoll.c: New file.
15838
15839         Tests for module 'unistr/u32-strcmp'.
15840         * modules/unistr/u32-strcmp-tests: New file.
15841         * tests/unistr/test-u32-strcmp.c: New file.
15842         * tests/unistr/test-u32-strcmp.h: New file.
15843
15844         Tests for module 'unistr/u16-strcmp'.
15845         * modules/unistr/u16-strcmp-tests: New file.
15846         * tests/unistr/test-u16-strcmp.c: New file.
15847         * tests/unistr/test-u16-strcmp.h: New file.
15848
15849         Tests for module 'unistr/u8-strcmp'.
15850         * modules/unistr/u8-strcmp-tests: New file.
15851         * tests/unistr/test-u8-strcmp.c: New file.
15852         * tests/unistr/test-u8-strcmp.h: New file.
15853         * tests/unistr/test-strcmp.h: New file.
15854
15855         Tests for module 'unistr/u32-strncat'.
15856         * modules/unistr/u32-strncat-tests: New file.
15857         * tests/unistr/test-u32-strncat.c: New file.
15858
15859         Tests for module 'unistr/u16-strncat'.
15860         * modules/unistr/u16-strncat-tests: New file.
15861         * tests/unistr/test-u16-strncat.c: New file.
15862
15863         Tests for module 'unistr/u8-strncat'.
15864         * modules/unistr/u8-strncat-tests: New file.
15865         * tests/unistr/test-u8-strncat.c: New file.
15866         * tests/unistr/test-strncat.h: New file.
15867
15868         Tests for module 'unistr/u32-strcat'.
15869         * modules/unistr/u32-strcat-tests: New file.
15870         * tests/unistr/test-u32-strcat.c: New file.
15871
15872         Tests for module 'unistr/u16-strcat'.
15873         * modules/unistr/u16-strcat-tests: New file.
15874         * tests/unistr/test-u16-strcat.c: New file.
15875
15876         Tests for module 'unistr/u8-strcat'.
15877         * modules/unistr/u8-strcat-tests: New file.
15878         * tests/unistr/test-u8-strcat.c: New file.
15879         * tests/unistr/test-strcat.h: New file.
15880
15881         Tests for module 'unistr/u32-stpncpy'.
15882         * modules/unistr/u32-stpncpy-tests: New file.
15883         * tests/unistr/test-u32-stpncpy.c: New file.
15884
15885         Tests for module 'unistr/u16-stpncpy'.
15886         * modules/unistr/u16-stpncpy-tests: New file.
15887         * tests/unistr/test-u16-stpncpy.c: New file.
15888
15889         Tests for module 'unistr/u8-stpncpy'.
15890         * modules/unistr/u8-stpncpy-tests: New file.
15891         * tests/unistr/test-u8-stpncpy.c: New file.
15892         * tests/unistr/test-stpncpy.h: New file.
15893
15894         Tests for module 'unistr/u32-strncpy'.
15895         * modules/unistr/u32-strncpy-tests: New file.
15896         * tests/unistr/test-u32-strncpy.c: New file.
15897
15898         Tests for module 'unistr/u16-strncpy'.
15899         * modules/unistr/u16-strncpy-tests: New file.
15900         * tests/unistr/test-u16-strncpy.c: New file.
15901
15902         Tests for module 'unistr/u8-strncpy'.
15903         * modules/unistr/u8-strncpy-tests: New file.
15904         * tests/unistr/test-u8-strncpy.c: New file.
15905         * tests/unistr/test-strncpy.h: New file.
15906
15907         Tests for module 'unistr/u32-stpcpy'.
15908         * modules/unistr/u32-stpcpy-tests: New file.
15909         * tests/unistr/test-u32-stpcpy.c: New file.
15910
15911         Tests for module 'unistr/u16-stpcpy'.
15912         * modules/unistr/u16-stpcpy-tests: New file.
15913         * tests/unistr/test-u16-stpcpy.c: New file.
15914
15915         Tests for module 'unistr/u8-stpcpy'.
15916         * modules/unistr/u8-stpcpy-tests: New file.
15917         * tests/unistr/test-u8-stpcpy.c: New file.
15918         * tests/unistr/test-stpcpy.h: New file.
15919
15920         Tests for module 'unistr/u32-strcpy'.
15921         * modules/unistr/u32-strcpy-tests: New file.
15922         * tests/unistr/test-u32-strcpy.c: New file.
15923
15924         Tests for module 'unistr/u16-strcpy'.
15925         * modules/unistr/u16-strcpy-tests: New file.
15926         * tests/unistr/test-u16-strcpy.c: New file.
15927
15928         Tests for module 'unistr/u8-strcpy'.
15929         * modules/unistr/u8-strcpy-tests: New file.
15930         * tests/unistr/test-u8-strcpy.c: New file.
15931         * tests/unistr/test-strcpy.h: New file.
15932
15933         Tests for module 'unistr/u32-strnlen'.
15934         * modules/unistr/u32-strnlen-tests: New file.
15935         * tests/unistr/test-u32-strnlen.c: New file.
15936
15937         Tests for module 'unistr/u16-strnlen'.
15938         * modules/unistr/u16-strnlen-tests: New file.
15939         * tests/unistr/test-u16-strnlen.c: New file.
15940
15941         Tests for module 'unistr/u8-strnlen'.
15942         * modules/unistr/u8-strnlen-tests: New file.
15943         * tests/unistr/test-u8-strnlen.c: New file.
15944         * tests/unistr/test-strnlen.h: New file.
15945
15946         Tests for module 'unistr/u32-strlen'.
15947         * modules/unistr/u32-strlen-tests: New file.
15948         * tests/unistr/test-u32-strlen.c: New file.
15949
15950         Tests for module 'unistr/u16-strlen'.
15951         * modules/unistr/u16-strlen-tests: New file.
15952         * tests/unistr/test-u16-strlen.c: New file.
15953
15954         Tests for module 'unistr/u8-strlen'.
15955         * modules/unistr/u8-strlen-tests: New file.
15956         * tests/unistr/test-u8-strlen.c: New file.
15957
15958         Tests for module 'unistr/u32-prev'.
15959         * modules/unistr/u32-prev-tests: New file.
15960         * tests/unistr/test-u32-prev.c: New file.
15961
15962         Tests for module 'unistr/u16-prev'.
15963         * modules/unistr/u16-prev-tests: New file.
15964         * tests/unistr/test-u16-prev.c: New file.
15965
15966         Tests for module 'unistr/u8-prev'.
15967         * modules/unistr/u8-prev-tests: New file.
15968         * tests/unistr/test-u8-prev.c: New file.
15969
15970         Tests for module 'unistr/u32-next'.
15971         * modules/unistr/u32-next-tests: New file.
15972         * tests/unistr/test-u32-next.c: New file.
15973
15974         Tests for module 'unistr/u16-next'.
15975         * modules/unistr/u16-next-tests: New file.
15976         * tests/unistr/test-u16-next.c: New file.
15977
15978         Tests for module 'unistr/u8-next'.
15979         * modules/unistr/u8-next-tests: New file.
15980         * tests/unistr/test-u8-next.c: New file.
15981
15982         Tests for module 'unistr/u32-strmbtouc'.
15983         * modules/unistr/u32-strmbtouc-tests: New file.
15984         * tests/unistr/test-u32-strmbtouc.c: New file.
15985
15986         Tests for module 'unistr/u16-strmbtouc'.
15987         * modules/unistr/u16-strmbtouc-tests: New file.
15988         * tests/unistr/test-u16-strmbtouc.c: New file.
15989
15990         Tests for module 'unistr/u8-strmbtouc'.
15991         * modules/unistr/u8-strmbtouc-tests: New file.
15992         * tests/unistr/test-u8-strmbtouc.c: New file.
15993
15994         Tests for module 'unistr/u32-strmblen'.
15995         * modules/unistr/u32-strmblen-tests: New file.
15996         * tests/unistr/test-u32-strmblen.c: New file.
15997
15998         Tests for module 'unistr/u16-strmblen'.
15999         * modules/unistr/u16-strmblen-tests: New file.
16000         * tests/unistr/test-u16-strmblen.c: New file.
16001
16002         Tests for module 'unistr/u8-strmblen'.
16003         * modules/unistr/u8-strmblen-tests: New file.
16004         * tests/unistr/test-u8-strmblen.c: New file.
16005
16006         Tests for module 'unistr/u32-cpy-alloc'.
16007         * modules/unistr/u32-cpy-alloc-tests: New file.
16008         * tests/unistr/test-u32-cpy-alloc.c: New file.
16009
16010         Tests for module 'unistr/u16-cpy-alloc'.
16011         * modules/unistr/u16-cpy-alloc-tests: New file.
16012         * tests/unistr/test-u16-cpy-alloc.c: New file.
16013
16014         Tests for module 'unistr/u8-cpy-alloc'.
16015         * modules/unistr/u8-cpy-alloc-tests: New file.
16016         * tests/unistr/test-u8-cpy-alloc.c: New file.
16017         * tests/unistr/test-cpy-alloc.h: New file.
16018
16019         Tests for module 'unistr/u32-mbsnlen'.
16020         * modules/unistr/u32-mbsnlen-tests: New file.
16021         * tests/unistr/test-u32-mbsnlen.c: New file.
16022
16023         Tests for module 'unistr/u16-mbsnlen'.
16024         * modules/unistr/u16-mbsnlen-tests: New file.
16025         * tests/unistr/test-u16-mbsnlen.c: New file.
16026
16027         Tests for module 'unistr/u8-mbsnlen'.
16028         * modules/unistr/u8-mbsnlen-tests: New file.
16029         * tests/unistr/test-u8-mbsnlen.c: New file.
16030
16031         Tests for module 'unistr/u32-chr'.
16032         * modules/unistr/u32-chr-tests: New file.
16033         * tests/unistr/test-u32-chr.c: New file.
16034
16035         Tests for module 'unistr/u16-chr'.
16036         * modules/unistr/u16-chr-tests: New file.
16037         * tests/unistr/test-u16-chr.c: New file.
16038
16039         Tests for module 'unistr/u8-chr'.
16040         * modules/unistr/u8-chr-tests: New file.
16041         * tests/unistr/test-u8-chr.c: New file.
16042         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16043
16044         Tests for module 'unistr/u32-cmp2'.
16045         * modules/unistr/u32-cmp2-tests: New file.
16046         * tests/unistr/test-u32-cmp2.c: New file.
16047
16048         Tests for module 'unistr/u16-cmp2'.
16049         * modules/unistr/u16-cmp2-tests: New file.
16050         * tests/unistr/test-u16-cmp2.c: New file.
16051
16052         Tests for module 'unistr/u8-cmp2'.
16053         * modules/unistr/u8-cmp2-tests: New file.
16054         * tests/unistr/test-u8-cmp2.c: New file.
16055         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16056
16057         Tests for module 'unistr/u32-cmp'.
16058         * modules/unistr/u32-cmp-tests: New file.
16059         * tests/unistr/test-u32-cmp.c: New file.
16060
16061         Tests for module 'unistr/u16-cmp'.
16062         * modules/unistr/u16-cmp-tests: New file.
16063         * tests/unistr/test-u16-cmp.c: New file.
16064
16065         Tests for module 'unistr/u8-cmp'.
16066         * modules/unistr/u8-cmp-tests: New file.
16067         * tests/unistr/test-u8-cmp.c: New file.
16068         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16069
16070         Tests for module 'unistr/u32-set'.
16071         * modules/unistr/u32-set-tests: New file.
16072         * tests/unistr/test-u32-set.c: New file.
16073
16074         Tests for module 'unistr/u16-set'.
16075         * modules/unistr/u16-set-tests: New file.
16076         * tests/unistr/test-u16-set.c: New file.
16077
16078         Tests for module 'unistr/u8-set'.
16079         * modules/unistr/u8-set-tests: New file.
16080         * tests/unistr/test-u8-set.c: New file.
16081         * tests/unistr/test-set.h: New file.
16082
16083         Tests for module 'unistr/u32-move'.
16084         * modules/unistr/u32-move-tests: New file.
16085         * tests/unistr/test-u32-move.c: New file.
16086
16087         Tests for module 'unistr/u16-move'.
16088         * modules/unistr/u16-move-tests: New file.
16089         * tests/unistr/test-u16-move.c: New file.
16090
16091         Tests for module 'unistr/u8-move'.
16092         * modules/unistr/u8-move-tests: New file.
16093         * tests/unistr/test-u8-move.c: New file.
16094         * tests/unistr/test-move.h: New file.
16095
16096         Tests for module 'unistr/u32-cpy'.
16097         * modules/unistr/u32-cpy-tests: New file.
16098         * tests/unistr/test-u32-cpy.c: New file.
16099
16100         Tests for module 'unistr/u16-cpy'.
16101         * modules/unistr/u16-cpy-tests: New file.
16102         * tests/unistr/test-u16-cpy.c: New file.
16103
16104         Tests for module 'unistr/u8-cpy'.
16105         * modules/unistr/u8-cpy-tests: New file.
16106         * tests/unistr/test-u8-cpy.c: New file.
16107         * tests/unistr/test-cpy.h: New file.
16108
16109 2010-01-09  Bruno Haible  <bruno@clisp.org>
16110
16111         Tests for module 'unistr/u32-uctomb'.
16112         * modules/unistr/u32-uctomb-tests: New file.
16113         * tests/unistr/test-u32-uctomb.c: New file.
16114
16115         Tests for module 'unistr/u16-uctomb'.
16116         * modules/unistr/u16-uctomb-tests: New file.
16117         * tests/unistr/test-u16-uctomb.c: New file.
16118
16119         Tests for module 'unistr/u8-uctomb'.
16120         * modules/unistr/u8-uctomb-tests: New file.
16121         * tests/unistr/test-u8-uctomb.c: New file.
16122
16123         Tests for module 'unistr/u32-mbtoucr'.
16124         * modules/unistr/u32-mbtoucr-tests: New file.
16125         * tests/unistr/test-u32-mbtoucr.c: New file.
16126
16127         Tests for module 'unistr/u16-mbtoucr'.
16128         * modules/unistr/u16-mbtoucr-tests: New file.
16129         * tests/unistr/test-u16-mbtoucr.c: New file.
16130
16131         Tests for module 'unistr/u8-mbtoucr'.
16132         * modules/unistr/u8-mbtoucr-tests: New file.
16133         * tests/unistr/test-u8-mbtoucr.c: New file.
16134
16135         Tests for module 'unistr/u32-mbtouc'.
16136         * modules/unistr/u32-mbtouc-tests: New file.
16137         * tests/unistr/test-u32-mbtouc.c: New file.
16138
16139         Tests for module 'unistr/u16-mbtouc'.
16140         * modules/unistr/u16-mbtouc-tests: New file.
16141         * tests/unistr/test-u16-mbtouc.c: New file.
16142
16143         Tests for module 'unistr/u8-mbtouc'.
16144         * modules/unistr/u8-mbtouc-tests: New file.
16145         * tests/unistr/test-u8-mbtouc.c: New file.
16146
16147         Tests for module 'unistr/u32-mbtouc-unsafe'.
16148         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16149         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16150         * tests/unistr/test-u32-mbtouc.h: New file.
16151
16152         Tests for module 'unistr/u16-mbtouc-unsafe'.
16153         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16154         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16155         * tests/unistr/test-u16-mbtouc.h: New file.
16156
16157         Tests for module 'unistr/u8-mbtouc-unsafe'.
16158         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16159         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16160         * tests/unistr/test-u8-mbtouc.h: New file.
16161
16162         Tests for module 'unistr/u32-mblen'.
16163         * modules/unistr/u32-mblen-tests: New file.
16164         * tests/unistr/test-u32-mblen.c: New file.
16165
16166         Tests for module 'unistr/u16-mblen'.
16167         * modules/unistr/u16-mblen-tests: New file.
16168         * tests/unistr/test-u16-mblen.c: New file.
16169
16170         Tests for module 'unistr/u8-mblen'.
16171         * modules/unistr/u8-mblen-tests: New file.
16172         * tests/unistr/test-u8-mblen.c: New file.
16173
16174         Tests for module 'unistr/u32-to-u16'.
16175         * modules/unistr/u32-to-u16-tests: New file.
16176         * tests/unistr/test-u32-to-u16.c: New file.
16177
16178         Tests for module 'unistr/u32-to-u8'.
16179         * modules/unistr/u32-to-u8-tests: New file.
16180         * tests/unistr/test-u32-to-u8.c: New file.
16181
16182         Tests for module 'unistr/u16-to-u32'.
16183         * modules/unistr/u16-to-u32-tests: New file.
16184         * tests/unistr/test-u16-to-u32.c: New file.
16185
16186         Tests for module 'unistr/u16-to-u8'.
16187         * modules/unistr/u16-to-u8-tests: New file.
16188         * tests/unistr/test-u16-to-u8.c: New file.
16189
16190         Tests for module 'unistr/u8-to-u32'.
16191         * modules/unistr/u8-to-u32-tests: New file.
16192         * tests/unistr/test-u8-to-u32.c: New file.
16193
16194         Tests for module 'unistr/u8-to-u16'.
16195         * modules/unistr/u8-to-u16-tests: New file.
16196         * tests/unistr/test-u8-to-u16.c: New file.
16197
16198         Tests for module 'unistr/u32-check'.
16199         * modules/unistr/u32-check-tests: New file.
16200         * tests/unistr/test-u32-check.c: New file.
16201
16202         Tests for module 'unistr/u16-check'.
16203         * modules/unistr/u16-check-tests: New file.
16204         * tests/unistr/test-u16-check.c: New file.
16205
16206         Tests for module 'unistr/u8-check'.
16207         * modules/unistr/u8-check-tests: New file.
16208         * tests/unistr/test-u8-check.c: New file.
16209
16210         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
16211         (category_equals): New function.
16212         (main): Add more tests.
16213         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
16214
16215         * tests/unictype/test-bidi_byname.c (main): Add more tests.
16216
16217 2010-01-10  Bruno Haible  <bruno@clisp.org>
16218
16219         unistr/u*-strcoll: Try harder to distinguish different strings.
16220         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
16221         compare s1 and s2 to see if they are different.
16222
16223 2010-01-10  Bruno Haible  <bruno@clisp.org>
16224
16225         unistr/u*-stpncpy: Fix the return value.
16226         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
16227         description of the return value consistent with stpncpy in glibc.
16228         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
16229         written non-NUL unit.
16230
16231 2010-01-10  Bruno Haible  <bruno@clisp.org>
16232
16233         unistr/u*-next: Add missing dependencies.
16234         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
16235         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
16236         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
16237
16238 2010-01-10  Bruno Haible  <bruno@clisp.org>
16239
16240         unistr/u8-mbsnlen: Fix return value for incomplete character.
16241         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
16242         u8_mblen.
16243         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
16244         Remove unistr/u8-mblen.
16245         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
16246         u16_mblen.
16247         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
16248         Remove unistr/u16-mblen.
16249
16250 2010-01-10  Bruno Haible  <bruno@clisp.org>
16251
16252         wchar: Fix compilation error when <wchar.h> is used from coreutils.
16253         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
16254         Reported by Brian Gough <bjg@gnu.org> and
16255         Chris Clayton <chris2553@googlemail.com> via
16256         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
16257
16258 2010-01-09  Bruno Haible  <bruno@clisp.org>
16259
16260         unistr/u16-to-u32: Reject invalid input.
16261         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
16262         u16_mbtouc.
16263         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
16264         Remove unistr/u16-mbtouc.
16265
16266         unistr/u16-to-u8: Reject invalid input.
16267         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
16268         u16_mbtouc.
16269         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
16270         Remove unistr/u16-mbtouc.
16271
16272         unistr/u8-to-u32: Reject invalid input.
16273         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
16274         u8_mbtouc.
16275         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
16276         Remove unistr/u8-mbtouc.
16277
16278         unistr/u8-to-u16: Reject invalid input.
16279         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
16280         u8_mbtouc.
16281         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
16282         Remove unistr/u8-mbtouc.
16283
16284 2010-01-09  Bruno Haible  <bruno@clisp.org>
16285
16286         Tests for module 'getlogin'.
16287         * modules/getlogin-tests: New file.
16288         * tests/test-getlogin.c: New file.
16289
16290         New module 'getlogin'.
16291         * lib/unistd.in.h (getlogin): New declaration.
16292         * lib/getlogin.c: New file.
16293         * m4/getlogin.m4: New file.
16294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
16295         HAVE_GETLOGIN.
16296         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
16297         HAVE_GETLOGIN.
16298         * modules/getlogin: New file.
16299         * doc/posix-functions/getlogin.texi: Mention the new module.
16300         Reported by John W. Eaton <jwe@gnu.org>.
16301
16302 2010-01-09  Bruno Haible  <bruno@clisp.org>
16303
16304         getlogin_r: Support for native Windows.
16305         * lib/getlogin_r.c: Include <windows.h>
16306         (getlogin_r): Implement for native Windows.
16307         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
16308         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
16309         via John W. Eaton <jwe@gnu.org>.
16310
16311 2010-01-09  Bruno Haible  <bruno@clisp.org>
16312
16313         getlogin_r: Small fixes.
16314         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
16315         succeeds.
16316         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
16317         before testing whether getlogin_r is declared. No need to set
16318         HAVE_DECL_GETLOGIN_R to 1.
16319         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
16320
16321 2010-01-09  Bruno Haible  <bruno@clisp.org>
16322
16323         * lib/unistd.in.h (getlogin_r): Add comment.
16324
16325 2010-01-09  Bruno Haible  <bruno@clisp.org>
16326
16327         Tests for module 'getlogin_r'.
16328         * modules/getlogin_r-tests: New file.
16329         * tests/test-getlogin_r.c: New file.
16330
16331 2010-01-09  Jim Meyering  <meyering@redhat.com>
16332
16333         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
16334         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
16335         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
16336
16337 2010-01-08  Simon Josefsson  <simon@josefsson.org>
16338
16339         * lib/dup2.c (rpl_dup2): Improve comment.
16340
16341 2010-01-08  Eric Blake  <ebb9@byu.net>
16342
16343         maint.mk: allow packages to add makefile @@ exceptions
16344         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
16345         (sc_makefile_check): Rename...
16346         (sc_makefile_at_at_check): ...to this, and use hook.
16347
16348         dup2: work around mingw bug
16349         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
16350         Reported by Simon Josefsson.
16351
16352 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
16353
16354         glob: Fix C++ compilation.
16355         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
16356         C++.
16357
16358 2010-01-07  Bruno Haible  <bruno@clisp.org>
16359
16360         Fix indentation of wctype.in.h, broken since 2007-01-06.
16361         * lib/wctype.in.h: Fix indentation of preprocessor directives.
16362
16363 2010-01-07  Bruno Haible  <bruno@clisp.org>
16364
16365         mbslen: Avoid collision with system function.
16366         * lib/string.in.h [MirBSD]: Include <wchar.h>.
16367         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
16368         * m4/mbslen.m4: New file.
16369         * modules/mbslen (Files): Add it.
16370         (configure.ac): Invoke gl_MBSLEN.
16371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
16372         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
16373         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
16374         via Ian Beckwith <ianb@erislabs.net>.
16375
16376 2010-01-07  Bruno Haible  <bruno@clisp.org>
16377
16378         dirent: Document the last fix.
16379         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
16380
16381 2010-01-07  Bruno Haible  <bruno@clisp.org>
16382
16383         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
16384         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
16385         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
16386         va_list are defined.
16387         * doc/posix-headers/stdio.texi: Document the bug of missing types.
16388         Reported by Eric Blake.
16389
16390 2010-01-07  Bruno Haible  <bruno@clisp.org>
16391
16392         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
16393         * modules/xlist (Depends-on): Add 'list',
16394         * modules/xoset (Depends-on): Add 'oset'.
16395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16396
16397 2010-01-07  Bruno Haible  <bruno@clisp.org>
16398
16399         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
16400         * doc/posix-functions/strncasecmp.texi: Likewise.
16401
16402 2010-01-07  Bruno Haible  <bruno@clisp.org>
16403
16404         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
16405
16406 2010-01-07  John W. Eaton  <jwe@octave.org>
16407
16408         wctype: allow C++ use
16409         * lib/wctype.in.h: Add extern "C" block for C++.
16410
16411 2010-01-06  Eric Blake  <ebb9@byu.net>
16412
16413         maint.mk: detect incorrect GFDL usage
16414         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
16415
16416 2010-01-06  Jim Meyering  <meyering@redhat.com>
16417         and Eric Blake  <ebb9@byu.net>
16418
16419         maint.mk: ignore multi-line copyright in NEWS
16420         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
16421
16422 2010-01-06  Eric Blake  <ebb9@byu.net>
16423
16424         select: add missing dependency
16425         * modules/select-tests (Depends-on): Move sockets dependency...
16426         * modules/select (Depends-on): ...here.
16427         Reported by Ian Beckwith.
16428
16429         doc: regenerate INSTALL
16430         * doc/INSTALL: Reflect recent autoconf update.
16431         * doc/INSTALL.ISO: Likewise.
16432         * doc/INSTALL.UTF-8: Likewise.
16433
16434         pread: fix compilation on glibc
16435         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16436         Reported by Ralf Wildenhues.
16437
16438         dirent: fix test failure
16439         * lib/dirent.in.h (includes): Guarantee ino_t.
16440         Reported by Ralf Wildenhues.
16441
16442 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
16443
16444         linkat, renameat: avoid bad free
16445         * lib/at-func2.c (at_func2): Fix typo.
16446         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
16447
16448 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16449
16450         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
16451         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
16452         to avoid failure of symlink test later.
16453
16454 2010-01-06  Eric Blake  <ebb9@byu.net>
16455
16456         stdio, unistd: guarantee ssize_t
16457         * lib/unistd.in.h (includes): Ensure that types required by POSIX
16458         2008 are exposed when needed.
16459         * lib/stdio.in.h (includes): Likewise.
16460         Reported by Ralf Wildenhues.
16461
16462 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
16463
16464         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
16465         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
16466         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
16467
16468 2010-01-06  Jim Meyering  <meyering@redhat.com>
16469
16470         readtokens: this module *does* require xalloc.h
16471         It uses only functions that were omitted by the old syntax-check rule.
16472         * lib/readtokens.c: Include "xalloc.h" once again.
16473         * modules/readtokens (Depends-on): Add xalloc.
16474         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
16475
16476 2010-01-05  Eric Blake  <ebb9@byu.net>
16477
16478         maint: support 'make announcement' from a VPATH build
16479         * top/maint.mk (announcement): Look for correct NEWS file.
16480
16481 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
16482
16483         utimens (fdutimens): ignore a negative FD, per contract
16484         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
16485         when we have a valid file descriptor.  Otherwise, using a brand
16486         new glibc (with just-patched futimens that now fails with EBADF)
16487         would cause this function to fail with ENOSYS.
16488         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
16489         See also http://bugzilla.redhat.com/552320.
16490
16491 2010-01-05  Eric Blake  <ebb9@byu.net>
16492
16493         strcase: document what it provides
16494         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
16495         gnulib module.
16496         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
16497         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
16498
16499 2010-01-05  Jim Meyering  <meyering@redhat.com>
16500
16501         maint: remove useless inclusions of "xalloc.h"
16502         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
16503         * lib/readtokens.c: Likewise.
16504         * lib/same.c: Likewise.
16505         * modules/getloadavg (Depends-on): Remove xalloc.
16506         * modules/readtokens: Likewise.
16507         * modules/same: Likewise.
16508
16509         maint.mk: include 4 more function names in alloca.h-checking regexp
16510         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
16511         regexp.  Before, we would give a false-positive (saying alloca.h
16512         is included unnecessarily) when the only uses involved omitted symbols.
16513
16514         xalloc.h: use consistent formatting
16515         * lib/xalloc.h: Move declarations to start in the first column.
16516
16517 2010-01-05  Eric Blake  <ebb9@byu.net>
16518
16519         mkdir: avoid xalloc
16520         * lib/mkdir.c (includes): Drop unused header.
16521         Reported by John W. Eaton.
16522
16523 2010-01-04  Jim Meyering  <meyering@redhat.com>
16524
16525         nl_langinfo: avoid configure-time syntax error
16526         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
16527         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
16528         the empty string.  Don't let that provoke a shell syntax error.
16529
16530         regcomp, regexec, fnmatch: avoid array bounds read error
16531         * lib/regcomp.c (build_equiv_class): From glibc:
16532         Use only the low 24 bits of a findidx return value as an index
16533         into the weights array.  Patch by Ulrich Drepper:
16534         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
16535         * lib/regexec.c (check_node_accept_bytes): Likewise.
16536         * lib/fnmatch_loop.c (FCT): Likewise.
16537
16538         regcomp: skip collseq lookup when there are no rules
16539         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
16540         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
16541
16542         regcomp: recognize ill-formed { } expressions
16543         * lib/regcomp.c (parse_dup_op): From glibc:
16544         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
16545
16546         regcomp: fix typo in comment
16547         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
16548         s/satisfy/satisfies/.
16549
16550         regcomp: sync from glibc: remove dead store
16551         * lib/regcomp.c (duplicate_node_closure): Remove useless
16552         search_duplicated_node call and dead store.
16553
16554         regcomp: sync from glibc; always use nl_langinfo
16555         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
16556         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
16557         * modules/regex (Depends-on): Add nl_langinfo.
16558
16559 2010-01-04  Eric Blake  <ebb9@byu.net>
16560
16561         fdopendir: fix configure test
16562         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
16563
16564 2010-01-01  Bruno Haible  <bruno@clisp.org>
16565
16566         wchar: Remove unused configure check.
16567         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
16568
16569 2010-01-01  Eric Blake  <ebb9@byu.net>
16570
16571         headers: make check of system header explicit
16572         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
16573         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
16574         ourselves.
16575         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16576         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16577         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16578         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
16579         internals.
16580         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
16581         missing.
16582         Suggested by Bruno Haible.
16583
16584 2010-01-01  Jim Meyering  <meyering@redhat.com>
16585
16586         ChangeLog: tweak to eliminate unnecessary copyright line
16587         * ChangeLog: Remove a copyright line that was mistakenly updated
16588         by today's update-copyright run.  Reported by Eric Blake.
16589
16590         test-update-copyright: don't let envvar setting cause test failure
16591         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16592
16593 2010-01-01  Bruno Haible  <bruno@clisp.org>
16594
16595         localename: Avoid gcc warning.
16596         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
16597         function if it is not used.
16598
16599 2010-01-01  Jim Meyering  <meyering@redhat.com>
16600
16601         update nearly all FSF copyright year lists to include 2010
16602         Use the same procedure as for 2009, outlined in
16603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
16604
16605         version-etc: set COPYRIGHT_YEAR to 2010
16606         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
16607
16608 2009-12-31  Eric Blake  <ebb9@byu.net>
16609
16610         doc: correct availability of cygwin 1.5.x getopt
16611         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
16612         variables.
16613         * doc/posix-functions/opterr.texi (opterr): Likewise.
16614         * doc/posix-functions/optind.texi (optind): Likewise.
16615         * doc/posix-functions/optopt.texi (optopt): Likewise.
16616         * doc/posix-functions/tzname.texi (tzname): Likewise.
16617
16618         openat: update maintainer
16619         * modules/openat (Maintainer): Add myself.
16620
16621         utimens: avoid shadowing warning
16622         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
16623         buffers into one, to avoid shadowing, as well as avoiding a
16624         redundant stat.
16625         Reported by Jim Meyering.
16626
16627         test-dup2: avoid compiler warning
16628         * tests/test-dup2.c (is_inheritable): Only define if used.
16629
16630 2010-01-01  Bruno Haible  <bruno@clisp.org>
16631
16632         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
16633         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
16634         defined, use wctomb instead of wcrtomb.
16635
16636 2010-01-01  Bruno Haible  <bruno@clisp.org>
16637
16638         iconv: Reject native Solaris iconv.
16639         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
16640         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
16641
16642 2009-12-31  Bruno Haible  <bruno@clisp.org>
16643
16644         * tests/test-signal.c (main): Remove test of 'SIG'.
16645
16646 2009-12-31  Bruno Haible  <bruno@clisp.org>
16647
16648         spawn: Fix incomplete fix.
16649         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16650         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16651         warnings for GNULIB_POSIXCHECK again.
16652         Reported by Eric Blake.
16653
16654 2009-12-31  Bruno Haible  <bruno@clisp.org>
16655
16656         Avoid namespace pollution on glibc systems.
16657         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16658         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16659         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16660         glibc systems.
16661
16662 2009-12-31  Bruno Haible  <bruno@clisp.org>
16663
16664         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16665         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16666         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16667         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16668         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16669         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16670         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16671
16672 2009-12-31  Bruno Haible  <bruno@clisp.org>
16673
16674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16675         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
16676         afterwards.
16677
16678 2009-12-31  Bruno Haible  <bruno@clisp.org>
16679
16680         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
16681         SYS_UTSNAME_H.
16682
16683 2009-12-31  Bruno Haible  <bruno@clisp.org>
16684
16685         spawn: Fix misapplied patch.
16686         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16687         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16688         warnings for GNULIB_POSIXCHECK.
16689
16690 2009-12-31  Bruno Haible  <bruno@clisp.org>
16691
16692         times: Update after sys_times changed.
16693         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
16694         * modules/times (Files): Add it.
16695         (configure.ac): Invoke gl_FUNC_TIMES.
16696
16697 2009-12-31  Bruno Haible  <bruno@clisp.org>
16698
16699         Use AC_C_INLINE where necessary.
16700         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
16701         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16702         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16703         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16704         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16705         * m4/mbiter.m4 (gl_MBITER): Likewise.
16706         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16707         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16708         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
16709         * modules/u64 (configure.ac): Likewise.
16710
16711 2009-12-31  Bruno Haible  <bruno@clisp.org>
16712
16713         Use AC_C_INLINE instead of module 'inline' where possible.
16714         * modules/inline (Description): Clarify purpose.
16715         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
16716         * modules/count-one-bits (Depends-on): Remove inline.
16717         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
16718         * modules/openat (Depends-on): Remove inline.
16719         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
16720         instead of depending on module 'inline'.
16721         * modules/filevercmp (Depends-on, configure.ac): Likewise.
16722         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
16723         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
16724         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
16725         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
16726         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
16727         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
16728         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
16729         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
16730         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
16731         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
16732         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
16733         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
16734         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
16735         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
16736         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
16737         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
16738         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
16739         Likewise.
16740         * modules/unictype/property-ascii-hex-digit (Depends-on,
16741         configure.ac): Likewise.
16742         * modules/unictype/property-bidi-arabic-digit (Depends-on,
16743         configure.ac): Likewise.
16744         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
16745         configure.ac): Likewise.
16746         * modules/unictype/property-bidi-block-separator (Depends-on,
16747         configure.ac): Likewise.
16748         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
16749         configure.ac): Likewise.
16750         * modules/unictype/property-bidi-common-separator (Depends-on,
16751         configure.ac): Likewise.
16752         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
16753         Likewise.
16754         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
16755         configure.ac): Likewise.
16756         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
16757         configure.ac): Likewise.
16758         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
16759         configure.ac): Likewise.
16760         * modules/unictype/property-bidi-european-digit (Depends-on,
16761         configure.ac): Likewise.
16762         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
16763         configure.ac): Likewise.
16764         * modules/unictype/property-bidi-left-to-right (Depends-on,
16765         configure.ac): Likewise.
16766         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
16767         configure.ac): Likewise.
16768         * modules/unictype/property-bidi-other-neutral (Depends-on,
16769         configure.ac): Likewise.
16770         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
16771         Likewise.
16772         * modules/unictype/property-bidi-segment-separator (Depends-on,
16773         configure.ac): Likewise.
16774         * modules/unictype/property-bidi-whitespace (Depends-on,
16775         configure.ac): Likewise.
16776         * modules/unictype/property-combining (Depends-on, configure.ac):
16777         Likewise.
16778         * modules/unictype/property-composite (Depends-on, configure.ac):
16779         Likewise.
16780         * modules/unictype/property-currency-symbol (Depends-on,
16781         configure.ac): Likewise.
16782         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16783         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16784         Likewise.
16785         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16786         configure.ac): Likewise.
16787         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16788         Likewise.
16789         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16790         Likewise.
16791         * modules/unictype/property-extender (Depends-on, configure.ac):
16792         Likewise.
16793         * modules/unictype/property-format-control (Depends-on, configure.ac):
16794         Likewise.
16795         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16796         Likewise.
16797         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16798         Likewise.
16799         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16800         Likewise.
16801         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16802         Likewise.
16803         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16804         Likewise.
16805         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16806         Likewise.
16807         * modules/unictype/property-id-start (Depends-on, configure.ac):
16808         Likewise.
16809         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16810         Likewise.
16811         * modules/unictype/property-ids-binary-operator (Depends-on,
16812         configure.ac): Likewise.
16813         * modules/unictype/property-ids-trinary-operator (Depends-on,
16814         configure.ac): Likewise.
16815         * modules/unictype/property-ignorable-control (Depends-on,
16816         configure.ac): Likewise.
16817         * modules/unictype/property-iso-control (Depends-on, configure.ac):
16818         Likewise.
16819         * modules/unictype/property-join-control (Depends-on, configure.ac):
16820         Likewise.
16821         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
16822         Likewise.
16823         * modules/unictype/property-line-separator (Depends-on, configure.ac):
16824         Likewise.
16825         * modules/unictype/property-logical-order-exception (Depends-on,
16826         configure.ac): Likewise.
16827         * modules/unictype/property-lowercase (Depends-on, configure.ac):
16828         Likewise.
16829         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
16830         * modules/unictype/property-non-break (Depends-on, configure.ac):
16831         Likewise.
16832         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
16833         Likewise.
16834         * modules/unictype/property-numeric (Depends-on, configure.ac):
16835         Likewise.
16836         * modules/unictype/property-other-alphabetic (Depends-on,
16837         configure.ac): Likewise.
16838         * modules/unictype/property-other-default-ignorable-code-point
16839         (Depends-on, configure.ac): Likewise.
16840         * modules/unictype/property-other-grapheme-extend (Depends-on,
16841         configure.ac): Likewise.
16842         * modules/unictype/property-other-id-continue (Depends-on,
16843         configure.ac): Likewise.
16844         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
16845         Likewise.
16846         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
16847         Likewise.
16848         * modules/unictype/property-other-math (Depends-on, configure.ac):
16849         Likewise.
16850         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
16851         Likewise.
16852         * modules/unictype/property-paired-punctuation (Depends-on,
16853         configure.ac): Likewise.
16854         * modules/unictype/property-paragraph-separator (Depends-on,
16855         configure.ac): Likewise.
16856         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
16857         Likewise.
16858         * modules/unictype/property-pattern-white-space (Depends-on,
16859         configure.ac): Likewise.
16860         * modules/unictype/property-private-use (Depends-on, configure.ac):
16861         Likewise.
16862         * modules/unictype/property-punctuation (Depends-on, configure.ac):
16863         Likewise.
16864         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
16865         Likewise.
16866         * modules/unictype/property-radical (Depends-on, configure.ac):
16867         Likewise.
16868         * modules/unictype/property-sentence-terminal (Depends-on,
16869         configure.ac): Likewise.
16870         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
16871         Likewise.
16872         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
16873         * modules/unictype/property-terminal-punctuation (Depends-on,
16874         configure.ac): Likewise.
16875         * modules/unictype/property-titlecase (Depends-on, configure.ac):
16876         Likewise.
16877         * modules/unictype/property-unassigned-code-value (Depends-on,
16878         configure.ac): Likewise.
16879         * modules/unictype/property-unified-ideograph (Depends-on,
16880         configure.ac): Likewise.
16881         * modules/unictype/property-uppercase (Depends-on, configure.ac):
16882         Likewise.
16883         * modules/unictype/property-variation-selector (Depends-on,
16884         configure.ac): Likewise.
16885         * modules/unictype/property-white-space (Depends-on, configure.ac):
16886         Likewise.
16887         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
16888         Likewise.
16889         * modules/unictype/property-xid-start (Depends-on, configure.ac):
16890         Likewise.
16891         * modules/unictype/property-zero-width (Depends-on, configure.ac):
16892         Likewise.
16893         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
16894         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
16895         Likewise.
16896
16897 2009-12-31  Bruno Haible  <bruno@clisp.org>
16898
16899         Remove unnecessary AC_C_INLINE invocation.
16900         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
16901         since 2009-08-21.
16902
16903 2009-12-31  Jim Meyering  <meyering@redhat.com>
16904
16905         maint.mk: don't require explicit gpg_key_ID in cfg.mk
16906         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
16907         With this change, we can all remove the gpg_key_ID = ... definition
16908         from our respective cfg.mk files.
16909
16910         maint.mk: create announcement template in ~/, not in /tmp
16911         * top/maint.mk (emit_upload_commands): Adjust.
16912         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
16913         Remove temporary file, .ci-msg.
16914
16915 2009-12-31  Eric Blake  <ebb9@byu.net>
16916
16917         link-warning: always build headers with link warnings
16918         * modules/arpa_inet (Makefile.am): Always build replacement
16919         header.
16920         * modules/ctype (Makefile.am): Likewise.
16921         * modules/dirent (Makefile.am): Likewise.
16922         * modules/inttypes (Makefile.am): Likewise.
16923         * modules/langinfo (Makefile.am): Likewise.
16924         * modules/locale (Makefile.am): Likewise.
16925         * modules/spawn (Makefile.am): Likewise.
16926         * modules/sys_file (Makefile.am): Likewise.
16927         * modules/sys_ioctl (Makefile.am): Likewise.
16928         * modules/sys_select (Makefile.am): Likewise.
16929         * modules/sys_socket (Makefile.am): Likewise.
16930         * modules/sys_times (Makefile.am): Likewise.
16931         * modules/sys_utsname (Makefile.am): Likewise.
16932         * modules/sys_wait (Makefile.am): Likewise.
16933         * modules/wchar (Makefile.am): Likewise.
16934         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
16935         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
16936         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
16937         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
16938         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
16939         Likewise.
16940         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16941         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16942         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
16943         Likewise.
16944         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
16945         Likewise.
16946         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
16948         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
16949         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16950         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16951         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16952         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16953         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
16954         (gl_WCHAR_H_DEFAULTS): Likewise.
16955
16956 2009-12-31  Eric Blake  <ebb9@byu.net>
16957
16958         signal, spawn: use link warnings
16959         * lib/signal.in.h (sigset_t): Make unconditional.
16960         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
16961         (sigpending, sigprocmask, sigaction): Add link warnings.
16962         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
16963         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
16964         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
16965         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
16966         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
16967         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
16968         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
16969         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
16970         (posix_spawn_file_actions_destroy)
16971         (posix_spawn_file_actions_addopen)
16972         (posix_spawn_file_actions_addclose)
16973         (posix_spawn_file_actions_adddup2): Likewise.
16974         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
16975         * tests/test-signal.c (main): Enhance test.
16976
16977         spawn: improve wrapper support
16978         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
16979         (gl_SPAWN_H_DEFAULTS): New defaults.
16980         * modules/spawn (Makefile.am): Substitute them.
16981         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
16982         Only declare if missing or broken.
16983
16984         sys_times, sys_utsname: use include_next
16985         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
16986         header.
16987         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
16988         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16989         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16990         * modules/sys_times (Depends-on): Add include_next.
16991         (Makefile.am): Substitute additional values.
16992         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16993         * lib/sys_times.in.h (includes): Include native header, if
16994         available.
16995         * lib/sys_utsname.in.h (includes): Likewise.
16996         * tests/test-sys_times.c (main): Enhance test.
16997
16998         fdutimensat: revert prior patch
16999         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17000         utimens.h.
17001         Reported by Bruno Haible.
17002
17003 2009-12-30  Eric Blake  <ebb9@byu.net>
17004
17005         sys_wait: drop link-warning dependency
17006         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17007         link-warning efforts.
17008         * lib/sys_wait.in.h: Likewise.
17009
17010         fdutimensat: remove bogus dependency
17011         * modules/fdutimensat (Depends-on): Drop inline.
17012
17013         unistd: fix typo
17014         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17015
17016 2009-12-30  Bruno Haible  <bruno@clisp.org>
17017
17018         Fix compilation error with Solaris cc.
17019         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17020         * lib/unicase/u16-is-invariant.c: Likewise.
17021         * lib/unicase/u32-is-invariant.c: Likewise.
17022         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17023
17024 2009-12-30  Bruno Haible  <bruno@clisp.org>
17025
17026         Fix test crash.
17027         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17028         locales.
17029         Reported by Simon Josefsson <simon@josefsson.org>.
17030
17031 2009-12-30  Bruno Haible  <bruno@clisp.org>
17032
17033         Fix compilation error on most platforms.
17034         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17035         Reported by Simon Josefsson <simon@josefsson.org>
17036         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17037
17038 2009-12-30  Eric Blake  <ebb9@byu.net>
17039
17040         futimens, utimensat: work around ntfs-3g bug
17041         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17042         a ctime bug is present, and expand workaround to cover ntfs-3g.
17043         * lib/utimens.c (fdutimens, lutimens): Likewise.
17044         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17045         (validate_timespec): Adjust return value.
17046         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17047         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17048         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17049
17050 2009-12-29  Eric Blake  <ebb9@byu.net>
17051
17052         link-warning: make usage consistent
17053         * modules/ctype (Depends-on): Add link-warning.
17054         (Makefile.am): Update rules accordingly.
17055         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17056         * modules/locale (Depends-on, Makefile.am): Likewise.
17057         * modules/sys_file (Makefile.am): Likewise.
17058         * modules/getopt-posix (Makefile.am): Delete unused link warning
17059         efforts.
17060         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17061         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17062         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17063         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17064
17065         stdio: remove unused variables
17066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17067         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17068         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17069
17070         tests: test more substitute headers
17071         * modules/ctype-tests: New file.
17072         * modules/dirent-tests: Likewise.
17073         * modules/spawn-tests: Likewise.
17074         * modules/sys_file-tests: Likewise.
17075         * modules/sys_ioctl-tests: Likewise.
17076         * modules/sys_wait-tests: Likewise.
17077         * tests/test-ctype.c: Likewise.
17078         * tests/test-dirent.c: Likewise.
17079         * tests/test-spawn.c: Likewise.
17080         * tests/test-sys_file.c: Likewise.
17081         * tests/test-sys_ioctl.c: Likewise.
17082         * tests/test-sys_wait.c: Likewise.
17083         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17084         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17085         whether or not flock is in use.
17086
17087         tests: remove License section from module
17088         * modules/arpa_inet-tests: Remove unneeded section.
17089         * modules/byteswap-tests: Likewise.
17090         * modules/ceilf-tests: Likewise.
17091         * modules/ceill-tests: Likewise.
17092         * modules/crypto/des-tests: Likewise.
17093         * modules/crypto/gc-arcfour-tests: Likewise.
17094         * modules/crypto/gc-arctwo-tests: Likewise.
17095         * modules/crypto/gc-des-tests: Likewise.
17096         * modules/crypto/gc-hmac-md5-tests: Likewise.
17097         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17098         * modules/crypto/gc-md2-tests: Likewise.
17099         * modules/crypto/gc-md4-tests: Likewise.
17100         * modules/crypto/gc-md5-tests: Likewise.
17101         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17102         * modules/crypto/gc-rijndael-tests: Likewise.
17103         * modules/crypto/gc-sha1-tests: Likewise.
17104         * modules/crypto/gc-tests: Likewise.
17105         * modules/crypto/md2-tests: Likewise.
17106         * modules/crypto/md4-tests: Likewise.
17107         * modules/fcntl-h-tests: Likewise.
17108         * modules/floorf-tests: Likewise.
17109         * modules/floorl-tests: Likewise.
17110         * modules/frexp-nolibm-tests: Likewise.
17111         * modules/frexp-tests: Likewise.
17112         * modules/frexpl-nolibm-tests: Likewise.
17113         * modules/frexpl-tests: Likewise.
17114         * modules/getaddrinfo-tests: Likewise.
17115         * modules/inttypes-tests: Likewise.
17116         * modules/isfinite-tests: Likewise.
17117         * modules/isinf-tests: Likewise.
17118         * modules/ldexpl-tests: Likewise.
17119         * modules/locale-tests: Likewise.
17120         * modules/math-tests: Likewise.
17121         * modules/netdb-tests: Likewise.
17122         * modules/netinet_in-tests: Likewise.
17123         * modules/printf-frexp-tests: Likewise.
17124         * modules/printf-frexpl-tests: Likewise.
17125         * modules/priv-set-tests: Likewise.
17126         * modules/random_r-tests: Likewise.
17127         * modules/round-tests: Likewise.
17128         * modules/roundf-tests: Likewise.
17129         * modules/roundl-tests: Likewise.
17130         * modules/search-tests: Likewise.
17131         * modules/select-tests: Likewise.
17132         * modules/signal-tests: Likewise.
17133         * modules/stdbool-tests: Likewise.
17134         * modules/stddef-tests: Likewise.
17135         * modules/stdint-tests: Likewise.
17136         * modules/stdio-tests: Likewise.
17137         * modules/stdlib-tests: Likewise.
17138         * modules/string-tests: Likewise.
17139         * modules/strings-tests: Likewise.
17140         * modules/sys_select-tests: Likewise.
17141         * modules/sys_socket-tests: Likewise.
17142         * modules/sys_stat-tests: Likewise.
17143         * modules/sys_time-tests: Likewise.
17144         * modules/sys_utsname-tests: Likewise.
17145         * modules/sysexits-tests: Likewise.
17146         * modules/time-tests: Likewise.
17147         * modules/trunc-tests: Likewise.
17148         * modules/truncf-tests: Likewise.
17149         * modules/truncl-tests: Likewise.
17150         * modules/tsearch-tests: Likewise.
17151         * modules/unistd-tests: Likewise.
17152         * modules/wchar-tests: Likewise.
17153         * modules/wctype-tests: Likewise.
17154
17155         tests: fix license on several tests
17156         * tests/test-des.c: Update to GPLv3+.
17157         * tests/test-flock.c: Likewise.
17158         * tests/test-fsync.c: Likewise.
17159         * tests/test-futimens.h: Likewise.
17160         * tests/test-gc-arcfour.c: Likewise.
17161         * tests/test-gc-arctwo.c: Likewise.
17162         * tests/test-gc-des.c: Likewise.
17163         * tests/test-gc-hmac-md5.c: Likewise.
17164         * tests/test-gc-hmac-sha1.c: Likewise.
17165         * tests/test-gc-md2.c: Likewise.
17166         * tests/test-gc-md4.c: Likewise.
17167         * tests/test-gc-md5.c: Likewise.
17168         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17169         * tests/test-gc-rijndael.c: Likewise.
17170         * tests/test-gc-sha1.c: Likewise.
17171         * tests/test-gc.c: Likewise.
17172         * tests/test-getcwd.c: Likewise.
17173         * tests/test-link.c: Likewise.
17174         * tests/test-link.h: Likewise.
17175         * tests/test-lutimens.h: Likewise.
17176         * tests/test-md2.c: Likewise.
17177         * tests/test-md4.c: Likewise.
17178         * tests/test-mkdir.h: Likewise.
17179         * tests/test-rename.c: Likewise.
17180         * tests/test-rename.h: Likewise.
17181         * tests/test-safe-alloc.c: Likewise.
17182         * tests/test-utimens-common.h: Likewise.
17183         * tests/test-utimens.h: Likewise.
17184
17185         maint: sync license texts
17186         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
17187         * doc/gpl-3.0.texi: Revert copyright year update.
17188         * doc/lgpl-3.0.texi: Likewise.
17189
17190 2009-12-29  Jim Meyering  <meyering@redhat.com>
17191
17192         update nearly all FSF copyright year lists to include 2009
17193         The files named by the following are exempted:
17194             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
17195               test -f "$dst" && { echo "$dst"; continue; }
17196               test -d "$dst" || continue
17197               echo "$dst"/$(basename "$src")
17198             done > exempt
17199             git ls-files tests/unictype >> exempt
17200         In the remaining files, convert to all-interval notation if
17201         - there is already at least one year interval like 2000-2003
17202         - the file is maintained by me
17203         - the file is in lib/uni*/, where that style already prevails
17204         Otherwise, use update-copyright's default.
17205
17206 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17207         and Eric Blake  <ebb9@byu.net>
17208
17209         tests: don't require debug system() to pass
17210         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
17211         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17212         * tests/test-unlink.h (test_unlink_func): Likewise.
17213         * tests/test-fstatat.c (main): ...into callers.
17214         * tests/test-lstat.c (main): Likewise.
17215         * tests/test-rmdir.c (main): Likewise.
17216         * tests/test-unlink.c (main): Likewise.
17217         * tests/test-unlinkat.c (main): Likewise.
17218         * tests/test-areadlink-with-size.c (main): Don't require a
17219         debug-only system call to pass, aiding cross-testing to mingw.
17220         * tests/test-areadlink.c (main): Likewise.
17221         * tests/test-areadlinkat-with-size.c (main): Likewise.
17222         * tests/test-areadlinkat.c (main): Likewise.
17223         * tests/test-canonicalize-lgpl.c (main): Likewise.
17224         * tests/test-canonicalize.c (main): Likewise.
17225         * tests/test-chown.c (main): Likewise.
17226         * tests/test-fchownat.c (main): Likewise.
17227         * tests/test-lchown.c (main): Likewise.
17228         * tests/test-fdutimensat.c (main): Likewise.
17229         * tests/test-futimens.c (main): Likewise.
17230         * tests/test-link.c (main): Likewise.
17231         * tests/test-linkat.c (main): Likewise.
17232         * tests/test-mkdir.c (main): Likewise.
17233         * tests/test-mkdirat.c (main): Likewise.
17234         * tests/test-mkfifo.c (main): Likewise.
17235         * tests/test-mkfifoat.c (main): Likewise.
17236         * tests/test-mknod.c (main): Likewise.
17237         * tests/test-readlink.c (main): Likewise.
17238         * tests/test-remove.c (main): Likewise.
17239         * tests/test-rename.c (main): Likewise.
17240         * tests/test-renameat.c (main): Likewise.
17241         * tests/test-symlink.c (main): Likewise.
17242         * tests/test-symlinkat.c (main): Likewise.
17243         * tests/test-utimens.c (main): Likewise.
17244         * tests/test-utimensat.c (main): Likewise.
17245
17246 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17247
17248         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
17249         on $(UNUSED_PARAMETER_H) to avoid build failure.
17250
17251 2009-12-28  Jim Meyering  <meyering@redhat.com>
17252
17253         update-copyright: you may specify a max. line length other than 72
17254         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17255
17256         maint: use consistent FSF copyright line syntax
17257         * lib/posixtm.c: Add missing comma in FSF copyright line.
17258         * lib/posixtm.h: Likewise.
17259         * lib/getugroups.c: Add missing ", Inc.".
17260
17261         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
17262         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
17263         FSF copyright line.  Remove trailing blanks.
17264
17265 2009-12-28  Eric Blake  <ebb9@byu.net>
17266
17267         test-dup2: reduce dependencies
17268         * modules/cloexec (Configure.ac): Set witness.
17269         * modules/dup2-tests (Depends-on): Drop cloexec.
17270         * tests/test-dup2.c (main): Skip portion of test if cloexec module
17271         not present.
17272         Suggested by Bruno Haible.
17273
17274 2009-12-26  Bruno Haible  <bruno@clisp.org>
17275
17276         Remove an unneeded dependency.
17277         * modules/fseterr (Depends-on): Remove dup2.
17278
17279 2009-12-26  Eric Blake  <ebb9@byu.net>
17280
17281         tests: use macros.h in more places
17282         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
17283         (ASSERT_STREAM): Provide default of stderr.
17284         * tests/test-dirent-safer.c: Include macros.h, using alternate
17285         stream for assertions.
17286         * tests/test-dup-safer.c: Likewise.
17287         * tests/test-freopen-safer.c: Likewise.
17288         * tests/test-getopt.c: Likewise.
17289         * tests/test-openat-safer.c: Likewise.
17290         * tests/test-pipe.c: Likewise.
17291         * tests/test-popen-safer.c: Likewise.
17292         * modules/dirent-safer-tests (Files): Include macros.h.
17293         * modules/unistd-safer-tests (Files): Likewise.
17294         * modules/freopen-safer-tests (Files): Likewise.
17295         * modules/getopt-posix-tests (Files): Likewise.
17296         * modules/openat-safer-tests (Files): Likewise.
17297         * modules/pipe-tests (Files): Likewise.
17298
17299 2009-12-26  Bruno Haible  <bruno@clisp.org>
17300
17301         javacomp: Portability fix.
17302         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
17303         that it also works on Solaris.
17304
17305 2009-12-26  Bruno Haible  <bruno@clisp.org>
17306
17307         localename: Fix storage allocation of gl_locale_name_thread's result.
17308         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
17309         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
17310         all platforms that have 'uselocale'.
17311         (gl_locale_name_thread_unsafe): New function, extracted from
17312         gl_locale_name_thread.
17313         (gl_locale_name_thread): Call struniq on all platforms that have
17314         'uselocale'.
17315         * tests/test-localename.c (test_locale_name_thread): Check that the
17316         resulting strings are permanently allocated.
17317         * modules/localename-tests (Depends-on): Add strdup.
17318
17319 2009-12-26  Bruno Haible  <bruno@clisp.org>
17320
17321         * tests/test-localename.c (categories): Fill in the strings.
17322
17323 2009-12-26  Jim Meyering  <meyering@redhat.com>
17324
17325         isdir: complete the removal of m4/isdir.m4
17326         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
17327
17328         isdir: clean up, since at least grep still uses it
17329         * lib/isdir.c: Include "isdir.h".
17330         (S_ISDIR): Remove now-unneeded definition.
17331         * modules/isdir (Files): Add lib/isdir.h.
17332         * lib/isdir.h: New file, with declaration.
17333         * m4/isdir.m4: Remove file -- unneeded.
17334
17335 2009-12-25  Bruno Haible  <bruno@clisp.org>
17336
17337         selinux-h: Make generated .h files standalone.
17338         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
17339         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
17340         * lib/se-selinux.in.h: Likewise.
17341         * modules/selinux-h (Depends-on): Add unused-parameter.
17342         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
17343         selinux/selinux.h and selinux/context.h.
17344         Suggested by Eric Blake.
17345
17346 2009-12-25  Bruno Haible  <bruno@clisp.org>
17347
17348         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
17349         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
17350         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
17351         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
17352         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
17353
17354 2009-12-24  Bruno Haible  <bruno@clisp.org>
17355
17356         openat: Fix warning.
17357         * lib/openat-proc.c: Include <unistd.h>.
17358
17359 2009-12-24  Bruno Haible  <bruno@clisp.org>
17360
17361         New module 'unused-parameter'.
17362         * build-aux/unused-parameter.h: New file, extracted from earlier
17363         gnulib-common.m4.
17364         * modules/unused-parameter: New file.
17365         * lib/unistr.h: Include unused-parameter.h.
17366         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
17367         _GL_UNUSED.
17368         * modules/unistr/base (Depends-on): Add unused-parameter.
17369
17370 2009-12-24  Bruno Haible  <bruno@clisp.org>
17371
17372         Add missing dependencies to 'extensions' module.
17373         * m4/extensions.m4: Add comment.
17374         * modules/accept4 (Depends-on): Add extensions.
17375         * modules/dup3 (Depends-on): Likewise.
17376         * modules/fcntl (Depends-on): Likewise.
17377         * modules/futimens (Depends-on): Likewise.
17378         * modules/mknod (Depends-on): Likewise.
17379         * modules/pipe2 (Depends-on): Likewise.
17380         * modules/stat-time (Depends-on): Likewise.
17381         * modules/strcasestr-simple (Depends-on): Likewise.
17382         * modules/strsignal (Depends-on): Likewise.
17383         * modules/utimensat (Depends-on): Likewise.
17384         * modules/localcharset (Depends-on): Likewise. Needed because of
17385         gl_FCNTL_O_FLAGS.
17386         * modules/wcrtomb (Depends-on): Likewise. Needed because of
17387         AC_TYPE_MBSTATE_T.
17388         * modules/wcsnrtombs (Depends-on): Likewise.
17389         * modules/wcsrtombs (Depends-on): Likewise.
17390
17391 2009-12-24  Bruno Haible  <bruno@clisp.org>
17392
17393         binary-io: Avoid gcc warning due to SET_BINARY.
17394         * lib/binary-io.h (SET_BINARY): Cast the result to void.
17395         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
17396
17397 2009-12-24  Bruno Haible  <bruno@clisp.org>
17398
17399         Avoid future namespace pollution on glibc systems.
17400         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
17401         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
17402         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
17403         glibc systems.
17404
17405 2009-12-24  Bruno Haible  <bruno@clisp.org>
17406
17407         Refactor common macros used in tests.
17408         * tests/macros.h: New file.
17409         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
17410         and/or <stdlib.h>, if appropriate.
17411         (ASSERT, SIZEOF): Remove macros.
17412         * tests/test-areadlink-with-size.c: Likewise.
17413         * tests/test-areadlinkat.c: Likewise.
17414         * tests/test-areadlinkat-with-size.c: Likewise.
17415         * tests/test-argmatch.c: Likewise.
17416         * tests/test-argv-iter.c: Likewise.
17417         * tests/test-array-mergesort.c: Likewise.
17418         * tests/test-array_list.c: Likewise.
17419         * tests/test-array_oset.c: Likewise.
17420         * tests/test-avltree_list.c: Likewise.
17421         * tests/test-avltree_oset.c: Likewise.
17422         * tests/test-avltreehash_list.c: Likewise.
17423         * tests/test-base64.c: Likewise.
17424         * tests/test-binary-io.c: Likewise.
17425         * tests/test-bitrotate.c: Likewise.
17426         * tests/test-btowc.c: Likewise.
17427         * tests/test-byteswap.c: Likewise.
17428         * tests/test-c-ctype.c: Likewise.
17429         * tests/test-c-stack.c: Likewise.
17430         * tests/test-c-strcasecmp.c: Likewise.
17431         * tests/test-c-strcasestr.c: Likewise.
17432         * tests/test-c-strncasecmp.c: Likewise.
17433         * tests/test-c-strstr.c: Likewise.
17434         * tests/test-canonicalize-lgpl.c: Likewise.
17435         * tests/test-canonicalize.c: Likewise.
17436         * tests/test-carray_list.c: Likewise.
17437         * tests/test-ceilf1.c: Likewise.
17438         * tests/test-ceilf2.c: Likewise.
17439         * tests/test-ceill.c: Likewise.
17440         * tests/test-chown.c: Likewise.
17441         * tests/test-cloexec.c: Likewise.
17442         * tests/test-copy-acl.c: Likewise.
17443         * tests/test-copy-file.c: Likewise.
17444         * tests/test-count-one-bits.c: Likewise.
17445         * tests/test-dprintf-posix.c: Likewise.
17446         * tests/test-dup2.c: Likewise.
17447         * tests/test-dup3.c: Likewise.
17448         * tests/test-duplocale.c: Likewise.
17449         * tests/test-fbufmode.c: Likewise.
17450         * tests/test-fchdir.c: Likewise.
17451         * tests/test-fchownat.c: Likewise.
17452         * tests/test-fcntl-safer.c: Likewise.
17453         * tests/test-fcntl.c: Likewise.
17454         * tests/test-fdopendir.c: Likewise.
17455         * tests/test-fdutimensat.c: Likewise.
17456         * tests/test-fflush2.c: Likewise.
17457         * tests/test-file-has-acl.c: Likewise.
17458         * tests/test-filevercmp.c: Likewise.
17459         * tests/test-flock.c: Likewise.
17460         * tests/test-floorf1.c: Likewise.
17461         * tests/test-floorf2.c: Likewise.
17462         * tests/test-floorl.c: Likewise.
17463         * tests/test-fnmatch.c: Likewise.
17464         * tests/test-fopen.h: Likewise.
17465         * tests/test-fpending.c: Likewise.
17466         * tests/test-fprintf-posix.c: Likewise.
17467         * tests/test-fpurge.c: Likewise.
17468         * tests/test-freadable.c: Likewise.
17469         * tests/test-freadahead.c: Likewise.
17470         * tests/test-freading.c: Likewise.
17471         * tests/test-freadptr.c: Likewise.
17472         * tests/test-freadptr2.c: Likewise.
17473         * tests/test-freadseek.c: Likewise.
17474         * tests/test-freopen.c: Likewise.
17475         * tests/test-frexp.c: Likewise.
17476         * tests/test-frexpl.c: Likewise.
17477         * tests/test-fseek.c: Likewise.
17478         * tests/test-fseeko.c: Likewise.
17479         * tests/test-fstatat.c: Likewise.
17480         * tests/test-fstrcmp.c: Likewise.
17481         * tests/test-fsync.c: Likewise.
17482         * tests/test-ftell.c: Likewise.
17483         * tests/test-ftello.c: Likewise.
17484         * tests/test-func.c: Likewise.
17485         * tests/test-futimens.c: Likewise.
17486         * tests/test-fwritable.c: Likewise.
17487         * tests/test-fwriting.c: Likewise.
17488         * tests/test-getcwd.c: Likewise.
17489         * tests/test-getdate.c: Likewise.
17490         * tests/test-getdelim.c: Likewise.
17491         * tests/test-getdtablesize.c: Likewise.
17492         * tests/test-getgroups.c: Likewise.
17493         * tests/test-getline.c: Likewise.
17494         * tests/test-getndelim2.c: Likewise.
17495         * tests/test-glob.c: Likewise.
17496         * tests/test-hash.c: Likewise.
17497         * tests/test-i-ring.c: Likewise.
17498         * tests/test-iconv-utf.c: Likewise.
17499         * tests/test-iconv.c: Likewise.
17500         * tests/test-idpriv-drop.c: Likewise.
17501         * tests/test-idpriv-droptemp.c: Likewise.
17502         * tests/test-inet_ntop.c: Likewise.
17503         * tests/test-inet_pton.c: Likewise.
17504         * tests/test-isblank.c: Likewise.
17505         * tests/test-isfinite.c: Likewise.
17506         * tests/test-isinf.c: Likewise.
17507         * tests/test-isnan.c: Likewise.
17508         * tests/test-isnand.h: Likewise.
17509         * tests/test-isnanf.h: Likewise.
17510         * tests/test-isnanl.h: Likewise.
17511         * tests/test-lchown.c: Likewise.
17512         * tests/test-ldexpl.c: Likewise.
17513         * tests/test-link.c: Likewise.
17514         * tests/test-linkat.c: Likewise.
17515         * tests/test-linked_list.c: Likewise.
17516         * tests/test-linkedhash_list.c: Likewise.
17517         * tests/test-localename.c: Likewise.
17518         * tests/test-lseek.c: Likewise.
17519         * tests/test-lstat.c: Likewise.
17520         * tests/test-mbmemcasecmp.c: Likewise.
17521         * tests/test-mbmemcasecoll.c: Likewise.
17522         * tests/test-mbrtowc.c: Likewise.
17523         * tests/test-mbscasecmp.c: Likewise.
17524         * tests/test-mbscasestr1.c: Likewise.
17525         * tests/test-mbscasestr2.c: Likewise.
17526         * tests/test-mbscasestr3.c: Likewise.
17527         * tests/test-mbscasestr4.c: Likewise.
17528         * tests/test-mbschr.c: Likewise.
17529         * tests/test-mbscspn.c: Likewise.
17530         * tests/test-mbsinit.c: Likewise.
17531         * tests/test-mbsncasecmp.c: Likewise.
17532         * tests/test-mbsnrtowcs.c: Likewise.
17533         * tests/test-mbspbrk.c: Likewise.
17534         * tests/test-mbspcasecmp.c: Likewise.
17535         * tests/test-mbsrchr.c: Likewise.
17536         * tests/test-mbsrtowcs.c: Likewise.
17537         * tests/test-mbsspn.c: Likewise.
17538         * tests/test-mbsstr1.c: Likewise.
17539         * tests/test-mbsstr2.c: Likewise.
17540         * tests/test-mbsstr3.c: Likewise.
17541         * tests/test-memchr.c: Likewise.
17542         * tests/test-memchr2.c: Likewise.
17543         * tests/test-memcmp.c: Likewise.
17544         * tests/test-memmem.c: Likewise.
17545         * tests/test-memrchr.c: Likewise.
17546         * tests/test-mkdir.c: Likewise.
17547         * tests/test-mkdirat.c: Likewise.
17548         * tests/test-mkfifo.c: Likewise.
17549         * tests/test-mkfifoat.c: Likewise.
17550         * tests/test-mknod.c: Likewise.
17551         * tests/test-nanosleep.c: Likewise.
17552         * tests/test-nl_langinfo.c: Likewise.
17553         * tests/test-obstack-printf.c: Likewise.
17554         * tests/test-open.c: Likewise.
17555         * tests/test-openat.c: Likewise.
17556         * tests/test-pipe-filter-gi1.c: Likewise.
17557         * tests/test-pipe-filter-gi2-main.c: Likewise.
17558         * tests/test-pipe-filter-ii1.c: Likewise.
17559         * tests/test-pipe-filter-ii2-main.c: Likewise.
17560         * tests/test-pipe2.c: Likewise.
17561         * tests/test-popen.h: Likewise.
17562         * tests/test-posixtm.c: Likewise.
17563         * tests/test-pread.c: Likewise.
17564         * tests/test-printf-frexp.c: Likewise.
17565         * tests/test-printf-frexpl.c: Likewise.
17566         * tests/test-printf-posix.c: Likewise.
17567         * tests/test-priv-set.c: Likewise.
17568         * tests/test-quotearg.c: Likewise.
17569         * tests/test-random_r.c: Likewise.
17570         * tests/test-rawmemchr.c: Likewise.
17571         * tests/test-rbtree_list.c: Likewise.
17572         * tests/test-rbtree_oset.c: Likewise.
17573         * tests/test-rbtreehash_list.c: Likewise.
17574         * tests/test-readlink.c: Likewise.
17575         * tests/test-remove.c: Likewise.
17576         * tests/test-rename.c: Likewise.
17577         * tests/test-renameat.c: Likewise.
17578         * tests/test-rmdir.c: Likewise.
17579         * tests/test-round1.c: Likewise.
17580         * tests/test-roundf1.c: Likewise.
17581         * tests/test-roundl.c: Likewise.
17582         * tests/test-safe-alloc.c: Likewise.
17583         * tests/test-sameacls.c: Likewise.
17584         * tests/test-set-mode-acl.c: Likewise.
17585         * tests/test-setenv.c: Likewise.
17586         * tests/test-sigaction.c: Likewise.
17587         * tests/test-signbit.c: Likewise.
17588         * tests/test-sleep.c: Likewise.
17589         * tests/test-snprintf-posix.c: Likewise.
17590         * tests/test-snprintf.c: Likewise.
17591         * tests/test-sprintf-posix.c: Likewise.
17592         * tests/test-stat-time.c: Likewise.
17593         * tests/test-stat.c: Likewise.
17594         * tests/test-strcasestr.c: Likewise.
17595         * tests/test-strchrnul.c: Likewise.
17596         * tests/test-strerror.c: Likewise.
17597         * tests/test-striconv.c: Likewise.
17598         * tests/test-striconveh.c: Likewise.
17599         * tests/test-striconveha.c: Likewise.
17600         * tests/test-strsignal.c: Likewise.
17601         * tests/test-strstr.c: Likewise.
17602         * tests/test-strtod.c: Likewise.
17603         * tests/test-strverscmp.c: Likewise.
17604         * tests/test-symlink.c: Likewise.
17605         * tests/test-symlinkat.c: Likewise.
17606         * tests/test-trunc1.c: Likewise.
17607         * tests/test-trunc2.c: Likewise.
17608         * tests/test-truncf1.c: Likewise.
17609         * tests/test-truncf2.c: Likewise.
17610         * tests/test-truncl.c: Likewise.
17611         * tests/test-uname.c: Likewise.
17612         * tests/test-unlink.c: Likewise.
17613         * tests/test-unlinkat.c: Likewise.
17614         * tests/test-unsetenv.c: Likewise.
17615         * tests/test-usleep.c: Likewise.
17616         * tests/test-utimens.c: Likewise.
17617         * tests/test-utimensat.c: Likewise.
17618         * tests/test-vasnprintf-posix.c: Likewise.
17619         * tests/test-vasnprintf-posix2.c: Likewise.
17620         * tests/test-vasnprintf.c: Likewise.
17621         * tests/test-vasprintf-posix.c: Likewise.
17622         * tests/test-vasprintf.c: Likewise.
17623         * tests/test-vdprintf-posix.c: Likewise.
17624         * tests/test-vfprintf-posix.c: Likewise.
17625         * tests/test-vprintf-posix.c: Likewise.
17626         * tests/test-vsnprintf-posix.c: Likewise.
17627         * tests/test-vsnprintf.c: Likewise.
17628         * tests/test-vsprintf-posix.c: Likewise.
17629         * tests/test-wcrtomb.c: Likewise.
17630         * tests/test-wcsnrtombs.c: Likewise.
17631         * tests/test-wcsrtombs.c: Likewise.
17632         * tests/test-wctype.c: Likewise.
17633         * tests/test-wcwidth.c: Likewise.
17634         * tests/test-xfprintf-posix.c: Likewise.
17635         * tests/test-xmemdup0.c: Likewise.
17636         * tests/test-xprintf-posix.c: Likewise.
17637         * tests/test-xvasprintf.c: Likewise.
17638         * tests/unicase/test-locale-language.c: Likewise.
17639         * tests/unicase/test-mapping-part1.h: Likewise.
17640         * tests/unicase/test-predicate-part1.h: Likewise.
17641         * tests/unicase/test-u8-casecmp.c: Likewise.
17642         * tests/unicase/test-u8-casecoll.c: Likewise.
17643         * tests/unicase/test-u8-casefold.c: Likewise.
17644         * tests/unicase/test-u8-is-cased.c: Likewise.
17645         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17646         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17647         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17648         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17649         * tests/unicase/test-u8-tolower.c: Likewise.
17650         * tests/unicase/test-u8-totitle.c: Likewise.
17651         * tests/unicase/test-u8-toupper.c: Likewise.
17652         * tests/unicase/test-u16-casecmp.c: Likewise.
17653         * tests/unicase/test-u16-casecoll.c: Likewise.
17654         * tests/unicase/test-u16-casefold.c: Likewise.
17655         * tests/unicase/test-u16-is-cased.c: Likewise.
17656         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17657         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17658         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17659         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17660         * tests/unicase/test-u16-tolower.c: Likewise.
17661         * tests/unicase/test-u16-totitle.c: Likewise.
17662         * tests/unicase/test-u16-toupper.c: Likewise.
17663         * tests/unicase/test-u32-casecmp.c: Likewise.
17664         * tests/unicase/test-u32-casecoll.c: Likewise.
17665         * tests/unicase/test-u32-casefold.c: Likewise.
17666         * tests/unicase/test-u32-is-cased.c: Likewise.
17667         * tests/unicase/test-u32-is-casefolded.c: Likewise.
17668         * tests/unicase/test-u32-is-lowercase.c: Likewise.
17669         * tests/unicase/test-u32-is-titlecase.c: Likewise.
17670         * tests/unicase/test-u32-is-uppercase.c: Likewise.
17671         * tests/unicase/test-u32-tolower.c: Likewise.
17672         * tests/unicase/test-u32-totitle.c: Likewise.
17673         * tests/unicase/test-u32-toupper.c: Likewise.
17674         * tests/unicase/test-ulc-casecmp.c: Likewise.
17675         * tests/unicase/test-ulc-casecoll.c: Likewise.
17676         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17677         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17678         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17679         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17680         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17681         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17682         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17683         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17684         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17685         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17686         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17687         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17688         * tests/unictype/test-bidi_byname.c: Likewise.
17689         * tests/unictype/test-bidi_name.c: Likewise.
17690         * tests/unictype/test-bidi_of.c: Likewise.
17691         * tests/unictype/test-bidi_test.c: Likewise.
17692         * tests/unictype/test-block_list.c: Likewise.
17693         * tests/unictype/test-block_of.c: Likewise.
17694         * tests/unictype/test-block_test.c: Likewise.
17695         * tests/unictype/test-categ_and.c: Likewise.
17696         * tests/unictype/test-categ_and_not.c: Likewise.
17697         * tests/unictype/test-categ_byname.c: Likewise.
17698         * tests/unictype/test-categ_name.c: Likewise.
17699         * tests/unictype/test-categ_none.c: Likewise.
17700         * tests/unictype/test-categ_of.c: Likewise.
17701         * tests/unictype/test-categ_or.c: Likewise.
17702         * tests/unictype/test-categ_test_withtable.c: Likewise.
17703         * tests/unictype/test-combining.c: Likewise.
17704         * tests/unictype/test-decdigit.c: Likewise.
17705         * tests/unictype/test-digit.c: Likewise.
17706         * tests/unictype/test-mirror.c: Likewise.
17707         * tests/unictype/test-numeric.c: Likewise.
17708         * tests/unictype/test-pr_byname.c: Likewise.
17709         * tests/unictype/test-pr_test.c: Likewise.
17710         * tests/unictype/test-predicate-part1.h: Likewise.
17711         * tests/unictype/test-scripts.c: Likewise.
17712         * tests/unictype/test-sy_c_ident.c: Likewise.
17713         * tests/unictype/test-sy_java_ident.c: Likewise.
17714         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
17715         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
17716         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
17717         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
17718         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
17719         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
17720         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
17721         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
17722         * tests/uninorm/test-canonical-decomposition.c: Likewise.
17723         * tests/uninorm/test-compat-decomposition.c: Likewise.
17724         * tests/uninorm/test-composition.c: Likewise.
17725         * tests/uninorm/test-decomposing-form.c: Likewise.
17726         * tests/uninorm/test-decomposition.c: Likewise.
17727         * tests/uninorm/test-u8-nfc.c: Likewise.
17728         * tests/uninorm/test-u8-nfd.c: Likewise.
17729         * tests/uninorm/test-u8-nfkc.c: Likewise.
17730         * tests/uninorm/test-u8-nfkd.c: Likewise.
17731         * tests/uninorm/test-u8-normcmp.c: Likewise.
17732         * tests/uninorm/test-u8-normcoll.c: Likewise.
17733         * tests/uninorm/test-u16-nfc.c: Likewise.
17734         * tests/uninorm/test-u16-nfd.c: Likewise.
17735         * tests/uninorm/test-u16-nfkc.c: Likewise.
17736         * tests/uninorm/test-u16-nfkd.c: Likewise.
17737         * tests/uninorm/test-u16-normcmp.c: Likewise.
17738         * tests/uninorm/test-u16-normcoll.c: Likewise.
17739         * tests/uninorm/test-u32-nfc.c: Likewise.
17740         * tests/uninorm/test-u32-nfd.c: Likewise.
17741         * tests/uninorm/test-u32-nfkc.c: Likewise.
17742         * tests/uninorm/test-u32-nfkd.c: Likewise.
17743         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17744         * tests/uninorm/test-u32-normcmp.c: Likewise.
17745         * tests/uninorm/test-u32-normcoll.c: Likewise.
17746         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
17747         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17748         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17749         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17750         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17751         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17752         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17753         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17754         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17755         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17756         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17757         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17758         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17759         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17760         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17761         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17762         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17763         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17764         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17765         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17766         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17767         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17768         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17769         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17770         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17771         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17772         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17773         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17774         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17775         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
17776         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17777         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17778         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17779         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17780         * tests/uniwidth/test-u8-width.c: Likewise.
17781         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17782         * tests/uniwidth/test-u16-width.c: Likewise.
17783         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17784         * tests/uniwidth/test-u32-width.c: Likewise.
17785         * tests/uniwidth/test-uc_width.c: Likewise.
17786         * tests/uniwidth/test-uc_width2.c: Likewise.
17787         * modules/acl-tests (Files): Add tests/macros.h.
17788         * modules/areadlink-tests (Files): Likewise.
17789         * modules/areadlink-with-size-tests (Files): Likewise.
17790         * modules/areadlinkat-tests (Files): Likewise.
17791         * modules/areadlinkat-with-size-tests (Files): Likewise.
17792         * modules/argmatch-tests (Files): Likewise.
17793         * modules/argv-iter-tests (Files): Likewise.
17794         * modules/array-list-tests (Files): Likewise.
17795         * modules/array-mergesort-tests (Files): Likewise.
17796         * modules/array-oset-tests (Files): Likewise.
17797         * modules/avltree-list-tests (Files): Likewise.
17798         * modules/avltree-oset-tests (Files): Likewise.
17799         * modules/avltreehash-list-tests (Files): Likewise.
17800         * modules/base64-tests (Files): Likewise.
17801         * modules/binary-io-tests (Files): Likewise.
17802         * modules/bitrotate-tests (Files): Likewise.
17803         * modules/btowc-tests (Files): Likewise.
17804         * modules/byteswap-tests (Files): Likewise.
17805         * modules/c-ctype-tests (Files): Likewise.
17806         * modules/c-stack-tests (Files): Likewise.
17807         * modules/c-strcase-tests (Files): Likewise.
17808         * modules/c-strcasestr-tests (Files): Likewise.
17809         * modules/c-strstr-tests (Files): Likewise.
17810         * modules/canonicalize-lgpl-tests (Files): Likewise.
17811         * modules/canonicalize-tests (Files): Likewise.
17812         * modules/carray-list-tests (Files): Likewise.
17813         * modules/ceilf-tests (Files): Likewise.
17814         * modules/ceill-tests (Files): Likewise.
17815         * modules/chown-tests (Files): Likewise.
17816         * modules/cloexec-tests (Files): Likewise.
17817         * modules/copy-file-tests (Files): Likewise.
17818         * modules/count-one-bits-tests (Files): Likewise.
17819         * modules/dprintf-posix-tests (Files): Likewise.
17820         * modules/dup2-tests (Files): Likewise.
17821         * modules/dup3-tests (Files): Likewise.
17822         * modules/duplocale-tests (Files): Likewise.
17823         * modules/fbufmode-tests (Files): Likewise.
17824         * modules/fchdir-tests (Files): Likewise.
17825         * modules/fcntl-safer-tests (Files): Likewise.
17826         * modules/fcntl-tests (Files): Likewise.
17827         * modules/fdopendir-tests (Files): Likewise.
17828         * modules/fdutimensat-tests (Files): Likewise.
17829         * modules/fflush-tests (Files): Likewise.
17830         * modules/filevercmp-tests (Files): Likewise.
17831         * modules/flock-tests (Files): Likewise.
17832         * modules/floorf-tests (Files): Likewise.
17833         * modules/floorl-tests (Files): Likewise.
17834         * modules/fnmatch-tests (Files): Likewise.
17835         * modules/fopen-safer-tests (Files): Likewise.
17836         * modules/fopen-tests (Files): Likewise.
17837         * modules/fpending-tests (Files): Likewise.
17838         * modules/fprintf-posix-tests (Files): Likewise.
17839         * modules/fpurge-tests (Files): Likewise.
17840         * modules/freadable-tests (Files): Likewise.
17841         * modules/freadahead-tests (Files): Likewise.
17842         * modules/freading-tests (Files): Likewise.
17843         * modules/freadptr-tests (Files): Likewise.
17844         * modules/freadseek-tests (Files): Likewise.
17845         * modules/freopen-tests (Files): Likewise.
17846         * modules/frexp-nolibm-tests (Files): Likewise.
17847         * modules/frexp-tests (Files): Likewise.
17848         * modules/frexpl-nolibm-tests (Files): Likewise.
17849         * modules/frexpl-tests (Files): Likewise.
17850         * modules/fseek-tests (Files): Likewise.
17851         * modules/fseeko-tests (Files): Likewise.
17852         * modules/fstrcmp-tests (Files): Likewise.
17853         * modules/fsync-tests (Files): Likewise.
17854         * modules/ftell-tests (Files): Likewise.
17855         * modules/ftello-tests (Files): Likewise.
17856         * modules/func-tests (Files): Likewise.
17857         * modules/futimens-tests (Files): Likewise.
17858         * modules/fwritable-tests (Files): Likewise.
17859         * modules/fwriting-tests (Files): Likewise.
17860         * modules/getcwd-tests (Files): Likewise.
17861         * modules/getdate-tests (Files): Likewise.
17862         * modules/getdelim-tests (Files): Likewise.
17863         * modules/getdtablesize-tests (Files): Likewise.
17864         * modules/getgroups-tests (Files): Likewise.
17865         * modules/getline-tests (Files): Likewise.
17866         * modules/getndelim2-tests (Files): Likewise.
17867         * modules/glob-tests (Files): Likewise.
17868         * modules/hash-tests (Files): Likewise.
17869         * modules/i-ring-tests (Files): Likewise.
17870         * modules/iconv-tests (Files): Likewise.
17871         * modules/iconv_open-utf-tests (Files): Likewise.
17872         * modules/idpriv-drop-tests (Files): Likewise.
17873         * modules/idpriv-droptemp-tests (Files): Likewise.
17874         * modules/inet_ntop-tests (Files): Likewise.
17875         * modules/inet_pton-tests (Files): Likewise.
17876         * modules/isblank-tests (Files): Likewise.
17877         * modules/isfinite-tests (Files): Likewise.
17878         * modules/isinf-tests (Files): Likewise.
17879         * modules/isnan-tests (Files): Likewise.
17880         * modules/isnand-nolibm-tests (Files): Likewise.
17881         * modules/isnand-tests (Files): Likewise.
17882         * modules/isnanf-nolibm-tests (Files): Likewise.
17883         * modules/isnanf-tests (Files): Likewise.
17884         * modules/isnanl-nolibm-tests (Files): Likewise.
17885         * modules/isnanl-tests (Files): Likewise.
17886         * modules/lchown-tests (Files): Likewise.
17887         * modules/ldexpl-tests (Files): Likewise.
17888         * modules/link-tests (Files): Likewise.
17889         * modules/linkat-tests (Files): Likewise.
17890         * modules/linked-list-tests (Files): Likewise.
17891         * modules/linkedhash-list-tests (Files): Likewise.
17892         * modules/localename-tests (Files): Likewise.
17893         * modules/lseek-tests (Files): Likewise.
17894         * modules/lstat-tests (Files): Likewise.
17895         * modules/mbmemcasecmp-tests (Files): Likewise.
17896         * modules/mbmemcasecoll-tests (Files): Likewise.
17897         * modules/mbrtowc-tests (Files): Likewise.
17898         * modules/mbscasecmp-tests (Files): Likewise.
17899         * modules/mbscasestr-tests (Files): Likewise.
17900         * modules/mbschr-tests (Files): Likewise.
17901         * modules/mbscspn-tests (Files): Likewise.
17902         * modules/mbsinit-tests (Files): Likewise.
17903         * modules/mbsncasecmp-tests (Files): Likewise.
17904         * modules/mbsnrtowcs-tests (Files): Likewise.
17905         * modules/mbspbrk-tests (Files): Likewise.
17906         * modules/mbspcasecmp-tests (Files): Likewise.
17907         * modules/mbsrchr-tests (Files): Likewise.
17908         * modules/mbsrtowcs-tests (Files): Likewise.
17909         * modules/mbsspn-tests (Files): Likewise.
17910         * modules/mbsstr-tests (Files): Likewise.
17911         * modules/memchr-tests (Files): Likewise.
17912         * modules/memchr2-tests (Files): Likewise.
17913         * modules/memcmp-tests (Files): Likewise.
17914         * modules/memmem-tests (Files): Likewise.
17915         * modules/memrchr-tests (Files): Likewise.
17916         * modules/mkdir-tests (Files): Likewise.
17917         * modules/mkfifo-tests (Files): Likewise.
17918         * modules/mkfifoat-tests (Files): Likewise.
17919         * modules/mknod-tests (Files): Likewise.
17920         * modules/nanosleep-tests (Files): Likewise.
17921         * modules/nl_langinfo-tests (Files): Likewise.
17922         * modules/obstack-printf-tests (Files): Likewise.
17923         * modules/open-tests (Files): Likewise.
17924         * modules/openat-tests (Files): Likewise.
17925         * modules/pipe-filter-gi-tests (Files): Likewise.
17926         * modules/pipe-filter-ii-tests (Files): Likewise.
17927         * modules/pipe2-tests (Files): Likewise.
17928         * modules/popen-safer-tests (Files): Likewise.
17929         * modules/popen-tests (Files): Likewise.
17930         * modules/posixtm-tests (Files): Likewise.
17931         * modules/pread-tests (Files): Likewise.
17932         * modules/printf-frexp-tests (Files): Likewise.
17933         * modules/printf-frexpl-tests (Files): Likewise.
17934         * modules/printf-posix-tests (Files): Likewise.
17935         * modules/priv-set-tests (Files): Likewise.
17936         * modules/quotearg-tests (Files): Likewise.
17937         * modules/random_r-tests (Files): Likewise.
17938         * modules/rawmemchr-tests (Files): Likewise.
17939         * modules/rbtree-list-tests (Files): Likewise.
17940         * modules/rbtree-oset-tests (Files): Likewise.
17941         * modules/rbtreehash-list-tests (Files): Likewise.
17942         * modules/readlink-tests (Files): Likewise.
17943         * modules/remove-tests (Files): Likewise.
17944         * modules/rename-tests (Files): Likewise.
17945         * modules/renameat-tests (Files): Likewise.
17946         * modules/rmdir-tests (Files): Likewise.
17947         * modules/round-tests (Files): Likewise.
17948         * modules/roundf-tests (Files): Likewise.
17949         * modules/roundl-tests (Files): Likewise.
17950         * modules/safe-alloc-tests (Files): Likewise.
17951         * modules/setenv-tests (Files): Likewise.
17952         * modules/sigaction-tests (Files): Likewise.
17953         * modules/signbit-tests (Files): Likewise.
17954         * modules/sleep-tests (Files): Likewise.
17955         * modules/snprintf-posix-tests (Files): Likewise.
17956         * modules/snprintf-tests (Files): Likewise.
17957         * modules/sprintf-posix-tests (Files): Likewise.
17958         * modules/stat-tests (Files): Likewise.
17959         * modules/stat-time-tests (Files): Likewise.
17960         * modules/strcasestr-tests (Files): Likewise.
17961         * modules/strchrnul-tests (Files): Likewise.
17962         * modules/strerror-tests (Files): Likewise.
17963         * modules/striconv-tests (Files): Likewise.
17964         * modules/striconveh-tests (Files): Likewise.
17965         * modules/striconveha-tests (Files): Likewise.
17966         * modules/strsignal-tests (Files): Likewise.
17967         * modules/strstr-tests (Files): Likewise.
17968         * modules/strtod-tests (Files): Likewise.
17969         * modules/strverscmp-tests (Files): Likewise.
17970         * modules/symlink-tests (Files): Likewise.
17971         * modules/symlinkat-tests (Files): Likewise.
17972         * modules/trunc-tests (Files): Likewise.
17973         * modules/truncf-tests (Files): Likewise.
17974         * modules/truncl-tests (Files): Likewise.
17975         * modules/uname-tests (Files): Likewise.
17976         * modules/unicase/cased-tests (Files): Likewise.
17977         * modules/unicase/ignorable-tests (Files): Likewise.
17978         * modules/unicase/locale-language-tests (Files): Likewise.
17979         * modules/unicase/tolower-tests (Files): Likewise.
17980         * modules/unicase/totitle-tests (Files): Likewise.
17981         * modules/unicase/toupper-tests (Files): Likewise.
17982         * modules/unicase/u8-casecmp-tests (Files): Likewise.
17983         * modules/unicase/u8-casecoll-tests (Files): Likewise.
17984         * modules/unicase/u8-casefold-tests (Files): Likewise.
17985         * modules/unicase/u8-is-cased-tests (Files): Likewise.
17986         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
17987         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
17988         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
17989         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
17990         * modules/unicase/u8-tolower-tests (Files): Likewise.
17991         * modules/unicase/u8-totitle-tests (Files): Likewise.
17992         * modules/unicase/u8-toupper-tests (Files): Likewise.
17993         * modules/unicase/u16-casecmp-tests (Files): Likewise.
17994         * modules/unicase/u16-casecoll-tests (Files): Likewise.
17995         * modules/unicase/u16-casefold-tests (Files): Likewise.
17996         * modules/unicase/u16-is-cased-tests (Files): Likewise.
17997         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
17998         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
17999         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18000         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18001         * modules/unicase/u16-tolower-tests (Files): Likewise.
18002         * modules/unicase/u16-totitle-tests (Files): Likewise.
18003         * modules/unicase/u16-toupper-tests (Files): Likewise.
18004         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18005         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18006         * modules/unicase/u32-casefold-tests (Files): Likewise.
18007         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18008         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18009         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18010         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18011         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18012         * modules/unicase/u32-tolower-tests (Files): Likewise.
18013         * modules/unicase/u32-totitle-tests (Files): Likewise.
18014         * modules/unicase/u32-toupper-tests (Files): Likewise.
18015         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18016         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18017         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18018         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18019         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18020         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18021         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18022         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18023         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18024         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18025         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18026         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18027         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18028         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18029         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18030         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18031         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18032         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18033         * modules/unictype/block-list-tests (Files): Likewise.
18034         * modules/unictype/block-of-tests (Files): Likewise.
18035         * modules/unictype/block-test-tests (Files): Likewise.
18036         * modules/unictype/category-C-tests (Files): Likewise.
18037         * modules/unictype/category-Cc-tests (Files): Likewise.
18038         * modules/unictype/category-Cf-tests (Files): Likewise.
18039         * modules/unictype/category-Cn-tests (Files): Likewise.
18040         * modules/unictype/category-Co-tests (Files): Likewise.
18041         * modules/unictype/category-Cs-tests (Files): Likewise.
18042         * modules/unictype/category-L-tests (Files): Likewise.
18043         * modules/unictype/category-Ll-tests (Files): Likewise.
18044         * modules/unictype/category-Lm-tests (Files): Likewise.
18045         * modules/unictype/category-Lo-tests (Files): Likewise.
18046         * modules/unictype/category-Lt-tests (Files): Likewise.
18047         * modules/unictype/category-Lu-tests (Files): Likewise.
18048         * modules/unictype/category-M-tests (Files): Likewise.
18049         * modules/unictype/category-Mc-tests (Files): Likewise.
18050         * modules/unictype/category-Me-tests (Files): Likewise.
18051         * modules/unictype/category-Mn-tests (Files): Likewise.
18052         * modules/unictype/category-N-tests (Files): Likewise.
18053         * modules/unictype/category-Nd-tests (Files): Likewise.
18054         * modules/unictype/category-Nl-tests (Files): Likewise.
18055         * modules/unictype/category-No-tests (Files): Likewise.
18056         * modules/unictype/category-P-tests (Files): Likewise.
18057         * modules/unictype/category-Pc-tests (Files): Likewise.
18058         * modules/unictype/category-Pd-tests (Files): Likewise.
18059         * modules/unictype/category-Pe-tests (Files): Likewise.
18060         * modules/unictype/category-Pf-tests (Files): Likewise.
18061         * modules/unictype/category-Pi-tests (Files): Likewise.
18062         * modules/unictype/category-Po-tests (Files): Likewise.
18063         * modules/unictype/category-Ps-tests (Files): Likewise.
18064         * modules/unictype/category-S-tests (Files): Likewise.
18065         * modules/unictype/category-Sc-tests (Files): Likewise.
18066         * modules/unictype/category-Sk-tests (Files): Likewise.
18067         * modules/unictype/category-Sm-tests (Files): Likewise.
18068         * modules/unictype/category-So-tests (Files): Likewise.
18069         * modules/unictype/category-Z-tests (Files): Likewise.
18070         * modules/unictype/category-Zl-tests (Files): Likewise.
18071         * modules/unictype/category-Zp-tests (Files): Likewise.
18072         * modules/unictype/category-Zs-tests (Files): Likewise.
18073         * modules/unictype/category-and-not-tests (Files): Likewise.
18074         * modules/unictype/category-and-tests (Files): Likewise.
18075         * modules/unictype/category-byname-tests (Files): Likewise.
18076         * modules/unictype/category-name-tests (Files): Likewise.
18077         * modules/unictype/category-none-tests (Files): Likewise.
18078         * modules/unictype/category-of-tests (Files): Likewise.
18079         * modules/unictype/category-or-tests (Files): Likewise.
18080         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18081         * modules/unictype/combining-class-tests (Files): Likewise.
18082         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18083         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18084         * modules/unictype/ctype-blank-tests (Files): Likewise.
18085         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18086         * modules/unictype/ctype-digit-tests (Files): Likewise.
18087         * modules/unictype/ctype-graph-tests (Files): Likewise.
18088         * modules/unictype/ctype-lower-tests (Files): Likewise.
18089         * modules/unictype/ctype-print-tests (Files): Likewise.
18090         * modules/unictype/ctype-punct-tests (Files): Likewise.
18091         * modules/unictype/ctype-space-tests (Files): Likewise.
18092         * modules/unictype/ctype-upper-tests (Files): Likewise.
18093         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18094         * modules/unictype/decimal-digit-tests (Files): Likewise.
18095         * modules/unictype/digit-tests (Files): Likewise.
18096         * modules/unictype/mirror-tests (Files): Likewise.
18097         * modules/unictype/numeric-tests (Files): Likewise.
18098         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18099         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18100         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18101         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18102         Likewise.
18103         * modules/unictype/property-bidi-block-separator-tests (Files):
18104         Likewise.
18105         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18106         Likewise.
18107         * modules/unictype/property-bidi-common-separator-tests (Files):
18108         Likewise.
18109         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18110         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18111         Likewise.
18112         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18113         Likewise.
18114         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18115         Likewise.
18116         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18117         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18118         Likewise.
18119         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18120         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18121         Likewise.
18122         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18123         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18124         * modules/unictype/property-bidi-segment-separator-tests (Files):
18125         Likewise.
18126         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18127         * modules/unictype/property-byname-tests (Files): Likewise.
18128         * modules/unictype/property-combining-tests (Files): Likewise.
18129         * modules/unictype/property-composite-tests (Files): Likewise.
18130         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18131         * modules/unictype/property-dash-tests (Files): Likewise.
18132         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18133         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18134         Likewise.
18135         * modules/unictype/property-deprecated-tests (Files): Likewise.
18136         * modules/unictype/property-diacritic-tests (Files): Likewise.
18137         * modules/unictype/property-extender-tests (Files): Likewise.
18138         * modules/unictype/property-format-control-tests (Files): Likewise.
18139         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18140         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18141         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18142         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18143         * modules/unictype/property-hyphen-tests (Files): Likewise.
18144         * modules/unictype/property-id-continue-tests (Files): Likewise.
18145         * modules/unictype/property-id-start-tests (Files): Likewise.
18146         * modules/unictype/property-ideographic-tests (Files): Likewise.
18147         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18148         * modules/unictype/property-ids-trinary-operator-tests (Files):
18149         Likewise.
18150         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18151         * modules/unictype/property-iso-control-tests (Files): Likewise.
18152         * modules/unictype/property-join-control-tests (Files): Likewise.
18153         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18154         * modules/unictype/property-line-separator-tests (Files): Likewise.
18155         * modules/unictype/property-logical-order-exception-tests (Files):
18156         Likewise.
18157         * modules/unictype/property-lowercase-tests (Files): Likewise.
18158         * modules/unictype/property-math-tests (Files): Likewise.
18159         * modules/unictype/property-non-break-tests (Files): Likewise.
18160         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18161         * modules/unictype/property-numeric-tests (Files): Likewise.
18162         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18163         * modules/unictype/property-other-default-ignorable-code-point-tests
18164         (Files): Likewise.
18165         * modules/unictype/property-other-grapheme-extend-tests (Files):
18166         Likewise.
18167         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18168         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18169         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18170         * modules/unictype/property-other-math-tests (Files): Likewise.
18171         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18172         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18173         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18174         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18175         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18176         * modules/unictype/property-private-use-tests (Files): Likewise.
18177         * modules/unictype/property-punctuation-tests (Files): Likewise.
18178         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
18179         * modules/unictype/property-radical-tests (Files): Likewise.
18180         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
18181         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
18182         * modules/unictype/property-space-tests (Files): Likewise.
18183         * modules/unictype/property-terminal-punctuation-tests (Files):
18184         Likewise.
18185         * modules/unictype/property-test-tests (Files): Likewise.
18186         * modules/unictype/property-titlecase-tests (Files): Likewise.
18187         * modules/unictype/property-unassigned-code-value-tests (Files):
18188         Likewise.
18189         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
18190         * modules/unictype/property-uppercase-tests (Files): Likewise.
18191         * modules/unictype/property-variation-selector-tests (Files): Likewise.
18192         * modules/unictype/property-white-space-tests (Files): Likewise.
18193         * modules/unictype/property-xid-continue-tests (Files): Likewise.
18194         * modules/unictype/property-xid-start-tests (Files): Likewise.
18195         * modules/unictype/property-zero-width-tests (Files): Likewise.
18196         * modules/unictype/scripts-tests (Files): Likewise.
18197         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
18198         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
18199         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
18200         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
18201         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
18202         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
18203         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
18204         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
18205         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
18206         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
18207         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
18208         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
18209         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
18210         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
18211         * modules/uninorm/composition-tests (Files): Likewise.
18212         * modules/uninorm/decomposing-form-tests (Files): Likewise.
18213         * modules/uninorm/decomposition-tests (Files): Likewise.
18214         * modules/uninorm/filter-tests (Files): Likewise.
18215         * modules/uninorm/nfc-tests (Files): Likewise.
18216         * modules/uninorm/nfd-tests (Files): Likewise.
18217         * modules/uninorm/nfkc-tests (Files): Likewise.
18218         * modules/uninorm/nfkd-tests (Files): Likewise.
18219         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
18220         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
18221         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
18222         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
18223         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
18224         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
18225         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
18226         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18227         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
18228         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
18229         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
18230         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
18231         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18232         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
18233         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
18234         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
18235         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
18236         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18237         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
18238         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
18239         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
18240         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
18241         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18242         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
18243         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
18244         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
18245         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
18246         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
18247         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
18248         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
18249         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
18250         * modules/uniwidth/u8-width-tests (Files): Likewise.
18251         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
18252         * modules/uniwidth/u16-width-tests (Files): Likewise.
18253         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
18254         * modules/uniwidth/u32-width-tests (Files): Likewise.
18255         * modules/uniwidth/width-tests (Files): Likewise.
18256         * modules/unlink-tests (Files): Likewise.
18257         * modules/unsetenv-tests (Files): Likewise.
18258         * modules/usleep-tests (Files): Likewise.
18259         * modules/utimens-tests (Files): Likewise.
18260         * modules/utimensat-tests (Files): Likewise.
18261         * modules/vasnprintf-posix-tests (Files): Likewise.
18262         * modules/vasnprintf-tests (Files): Likewise.
18263         * modules/vasprintf-posix-tests (Files): Likewise.
18264         * modules/vasprintf-tests (Files): Likewise.
18265         * modules/vdprintf-posix-tests (Files): Likewise.
18266         * modules/vfprintf-posix-tests (Files): Likewise.
18267         * modules/vprintf-posix-tests (Files): Likewise.
18268         * modules/vsnprintf-posix-tests (Files): Likewise.
18269         * modules/vsnprintf-tests (Files): Likewise.
18270         * modules/vsprintf-posix-tests (Files): Likewise.
18271         * modules/wcrtomb-tests (Files): Likewise.
18272         * modules/wcsnrtombs-tests (Files): Likewise.
18273         * modules/wcsrtombs-tests (Files): Likewise.
18274         * modules/wctype-tests (Files): Likewise.
18275         * modules/wcwidth-tests (Files): Likewise.
18276         * modules/xmemdup0-tests (Files): Likewise.
18277         * modules/xprintf-posix-tests (Files): Likewise.
18278         * modules/xvasprintf-tests (Files): Likewise.
18279
18280 2009-12-24  Eric Blake  <ebb9@byu.net>
18281
18282         test-nanosleep: fix typo
18283         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
18284         patch.
18285         Reported by Bruno Haible.
18286
18287 2009-12-24  Bruno Haible  <bruno@clisp.org>
18288
18289         Reduce namespace pollution on glibc systems.
18290         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
18291         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
18292         systems.
18293         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
18294         <getopt.h> on glibc systems.
18295         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18296         systems.
18297         * lib/fcntl.c: Include <unistd.h> here instead.
18298
18299 2009-12-24  Bruno Haible  <bruno@clisp.org>
18300
18301         * lib/stdlib.in.h (includes): Fix typo in today's commit.
18302
18303 2009-12-24  Eric Blake  <ebb9@byu.net>
18304
18305         tests: add signature checks
18306         * tests/signature.h (SIGNATURE_CHECK): New file.
18307         * modules/atexit-tests (Files): Use it.
18308         * modules/btowc-tests (Files): Likewise.
18309         * modules/canonicalize-lgpl-tests (Files): Likewise.
18310         * modules/ceilf-tests (Files): Likewise.
18311         * modules/ceill-tests (Files): Likewise.
18312         * modules/chown-tests (Files): Likewise.
18313         * modules/dprintf-posix-tests (Files): Likewise.
18314         * modules/dup2-tests (Files): Likewise.
18315         * modules/dup3-tests (Files): Likewise.
18316         * modules/duplocale-tests (Files): Likewise.
18317         * modules/fchdir-tests (Files): Likewise.
18318         * modules/fcntl-tests (Files): Likewise.
18319         * modules/fdopendir-tests (Files): Likewise.
18320         * modules/fflush-tests (Files): Likewise.
18321         * modules/flock-tests (Files): Likewise.
18322         * modules/floorf-tests (Files): Likewise.
18323         * modules/floorl-tests (Files): Likewise.
18324         * modules/fnmatch-tests (Files): Likewise.
18325         * modules/fopen-tests (Files): Likewise.
18326         * modules/fprintf-posix-tests (Files): Likewise.
18327         * modules/freopen-tests (Files): Likewise.
18328         * modules/frexp-nolibm-tests (Files): Likewise.
18329         * modules/frexp-tests (Files): Likewise.
18330         * modules/frexpl-nolibm-tests (Files): Likewise.
18331         * modules/frexpl-tests (Files): Likewise.
18332         * modules/fseek-tests (Files): Likewise.
18333         * modules/fseeko-tests (Files): Likewise.
18334         * modules/fsync-tests (Files): Likewise.
18335         * modules/ftell-tests (Files): Likewise.
18336         * modules/ftello-tests (Files): Likewise.
18337         * modules/futimens-tests (Files): Likewise.
18338         * modules/getaddrinfo-tests (Files): Likewise.
18339         * modules/getcwd-tests (Files): Likewise.
18340         * modules/getdelim-tests (Files): Likewise.
18341         * modules/getdtablesize-tests (Files): Likewise.
18342         * modules/getgroups-tests (Files): Likewise.
18343         * modules/gethostname-tests (Files): Likewise.
18344         * modules/getline-tests (Files): Likewise.
18345         * modules/getopt-posix-tests (Files): Likewise.
18346         * modules/gettimeofday-tests (Files): Likewise.
18347         * modules/glob-tests (Files): Likewise.
18348         * modules/iconv-tests (Files): Likewise.
18349         * modules/inet_ntop-tests (Files): Likewise.
18350         * modules/inet_pton-tests (Files): Likewise.
18351         * modules/isblank-tests (Files): Likewise.
18352         * modules/lchown-tests (Files): Likewise.
18353         * modules/ldexpl-tests (Files): Likewise.
18354         * modules/link-tests (Files): Likewise.
18355         * modules/linkat-tests (Files): Likewise.
18356         * modules/lseek-tests (Files): Likewise.
18357         * modules/lstat-tests (Files): Likewise.
18358         * modules/mbrtowc-tests (Files): Likewise.
18359         * modules/mbsinit-tests (Files): Likewise.
18360         * modules/mbsnrtowcs-tests (Files): Likewise.
18361         * modules/mbsrtowcs-tests (Files): Likewise.
18362         * modules/memchr-tests (Files): Likewise.
18363         * modules/memcmp-tests (Files): Likewise.
18364         * modules/memmem-tests (Files): Likewise.
18365         * modules/memrchr-tests (Files): Likewise.
18366         * modules/mkdir-tests (Files): Likewise.
18367         * modules/mkfifo-tests (Files): Likewise.
18368         * modules/mkfifoat-tests (Files): Likewise.
18369         * modules/mknod-tests (Files): Likewise.
18370         * modules/nanosleep-tests (Files): Likewise.
18371         * modules/nl_langinfo-tests (Files): Likewise.
18372         * modules/obstack-printf-tests (Files): Likewise.
18373         * modules/open-tests (Files): Likewise.
18374         * modules/openat-tests (Files): Likewise.
18375         * modules/perror-tests (Files): Likewise.
18376         * modules/pipe2-tests (Files): Likewise.
18377         * modules/poll-tests (Files): Likewise.
18378         * modules/popen-tests (Files): Likewise.
18379         * modules/posix_spawn-tests (Files): Likewise.
18380         * modules/posix_spawnp-tests (Files): Likewise.
18381         * modules/pread-tests (Files): Likewise.
18382         * modules/printf-posix-tests (Files): Likewise.
18383         * modules/pty-tests (Files): Likewise.
18384         * modules/random_r-tests (Files): Likewise.
18385         * modules/rawmemchr-tests (Files): Likewise.
18386         * modules/readlink-tests (Files): Likewise.
18387         * modules/remove-tests (Files): Likewise.
18388         * modules/rename-tests (Files): Likewise.
18389         * modules/renameat-tests (Files): Likewise.
18390         * modules/rmdir-tests (Files): Likewise.
18391         * modules/round-tests (Files): Likewise.
18392         * modules/roundf-tests (Files): Likewise.
18393         * modules/roundl-tests (Files): Likewise.
18394         * modules/select-tests (Files): Likewise.
18395         * modules/setenv-tests (Files): Likewise.
18396         * modules/sigaction-tests (Files): Likewise.
18397         * modules/sleep-tests (Files): Likewise.
18398         * modules/snprintf-posix-tests (Files): Likewise.
18399         * modules/snprintf-tests (Files): Likewise.
18400         * modules/sprintf-posix-tests (Files): Likewise.
18401         * modules/stat-tests (Files): Likewise.
18402         * modules/strcasestr-tests (Files): Likewise.
18403         * modules/strchrnul-tests (Files): Likewise.
18404         * modules/strerror-tests (Files): Likewise.
18405         * modules/strsignal-tests (Files): Likewise.
18406         * modules/strstr-tests (Files): Likewise.
18407         * modules/strtod-tests (Files): Likewise.
18408         * modules/strverscmp-tests (Files): Likewise.
18409         * modules/symlink-tests (Files): Likewise.
18410         * modules/symlinkat-tests (Files): Likewise.
18411         * modules/times-tests (Files): Likewise.
18412         * modules/trunc-tests (Files): Likewise.
18413         * modules/truncf-tests (Files): Likewise.
18414         * modules/truncl-tests (Files): Likewise.
18415         * modules/tsearch-tests (Files): Likewise.
18416         * modules/uname-tests (Files): Likewise.
18417         * modules/unlink-tests (Files): Likewise.
18418         * modules/unsetenv-tests (Files): Likewise.
18419         * modules/usleep-tests (Files): Likewise.
18420         * modules/utimensat-tests (Files): Likewise.
18421         * modules/vasprintf-tests (Files): Likewise.
18422         * modules/vdprintf-posix-tests (Files): Likewise.
18423         * modules/vfprintf-posix-tests (Files): Likewise.
18424         * modules/vprintf-posix-tests (Files): Likewise.
18425         * modules/vsnprintf-posix-tests (Files): Likewise.
18426         * modules/vsnprintf-tests (Files): Likewise.
18427         * modules/vsprintf-posix-tests (Files): Likewise.
18428         * modules/wcrtomb-tests (Files): Likewise.
18429         * modules/wcsnrtombs-tests (Files): Likewise.
18430         * modules/wcsrtombs-tests (Files): Likewise.
18431         * modules/wcwidth-tests (Files): Likewise.
18432         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18433         * tests/test-isinf.c (isinf): Likewise.
18434         * tests/test-isnan.c (isnan): Likewise.
18435         * tests/test-signbit.c (signbit): Likewise.
18436         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18437         declaration, either as macro or with correct signature.
18438         (select): Ensure function under test is declared with correct
18439         signature in correct header.
18440         * tests/test-atexit.c (atexit): Likewise.
18441         * tests/test-btowc.c (btowc): Likewise.
18442         * tests/test-canonicalize-lgpl.c (realpath)
18443         (canonicalize_file_name): Likewise.
18444         * tests/test-ceilf1.c (ceilf): Likewise.
18445         * tests/test-ceill.c (ceill): Likewise.
18446         * tests/test-chown.c (chown): Likewise.
18447         * tests/test-dprintf-posix.c (dprintf): Likewise.
18448         * tests/test-dup2.c (dup2): Likewise.
18449         * tests/test-dup3.c (dup3): Likewise.
18450         * tests/test-duplocale.c (duplocale): Likewise.
18451         * tests/test-fchdir.c (fchdir): Likewise.
18452         * tests/test-fchownat.c (fchownat): Likewise.
18453         * tests/test-fcntl.c (fcntl): Likewise.
18454         * tests/test-fdopendir.c (fdopendir): Likewise.
18455         * tests/test-fflush.c (fflush): Likewise.
18456         * tests/test-flock.c (flock): Likewise.
18457         * tests/test-floorf1.c (floorf): Likewise.
18458         * tests/test-floorl.c (floorl): Likewise.
18459         * tests/test-fnmatch.c (fnmatch): Likewise.
18460         * tests/test-fopen.c (fopen): Likewise.
18461         * tests/test-fprintf-posix.c (fprintf): Likewise.
18462         * tests/test-freopen.c (freopen): Likewise.
18463         * tests/test-frexp.c (frexp): Likewise.
18464         * tests/test-frexpl.c (frexpl): Likewise.
18465         * tests/test-fseek.c (fseek): Likewise.
18466         * tests/test-fseeko.c (fseeko): Likewise.
18467         * tests/test-fstatat.c (fstatat): Likewise.
18468         * tests/test-fsync.c (fsync): Likewise.
18469         * tests/test-ftell.c (ftell): Likewise.
18470         * tests/test-ftello.c (ftello): Likewise.
18471         * tests/test-futimens.c (futimens): Likewise.
18472         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
18473         (gai_strerror): Likewise.
18474         * tests/test-getcwd.c (getcwd): Likewise.
18475         * tests/test-getdelim.c (getdelim): Likewise.
18476         * tests/test-getdtablesize.c (getdtablesize): Likewise.
18477         * tests/test-getgroups.c (getgroups): Likewise.
18478         * tests/test-gethostname.c (gethostname): Likewise.
18479         * tests/test-getline.c (getline): Likewise.
18480         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
18481         Likewise.
18482         * tests/test-gettimeofday.c (gettimeofday): Likewise.
18483         * tests/test-glob.c (glob, globfree): Likewise.
18484         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
18485         * tests/test-inet_ntop.c (inet_ntop): Likewise.
18486         * tests/test-inet_pton.c (inet_pton): Likewise.
18487         * tests/test-isblank.c (isblank): Likewise.
18488         * tests/test-lchown.c (lchown): Likewise.
18489         * tests/test-ldexpl.c (ldexpl): Likewise.
18490         * tests/test-link.c (link): Likewise.
18491         * tests/test-linkat.c (linkat): Likewise.
18492         * tests/test-lseek.c (lseek): Likewise.
18493         * tests/test-lstat.c (lstat): Likewise.
18494         * tests/test-mbrtowc.c (mbrtowc): Likewise.
18495         * tests/test-mbsinit.c (mbsinit): Likewise.
18496         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
18497         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
18498         * tests/test-memchr.c (memchr): Likewise.
18499         * tests/test-memcmp.c (memcmp): Likewise.
18500         * tests/test-memmem.c (memmem): Likewise.
18501         * tests/test-memrchr.c (memrchr): Likewise.
18502         * tests/test-mkdir.c (mkdir): Likewise.
18503         * tests/test-mkdirat.c (mkdirat): Likewise.
18504         * tests/test-mkfifo.c (mkfifo): Likewise.
18505         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
18506         * tests/test-mknod.c (mknod): Likewise.
18507         * tests/test-nanosleep.c (nanosleep): Likewise.
18508         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
18509         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
18510         Likewise.
18511         * tests/test-open.c (open): Likewise.
18512         * tests/test-openat.c (openat): Likewise.
18513         * tests/test-perror.c (perror): Likewise.
18514         * tests/test-pipe2.c (pipe2): Likewise.
18515         * tests/test-poll.c (poll): Likewise.
18516         * tests/test-popen.c (popen, pclose): Likewise.
18517         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
18518         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
18519         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
18520         (posix_spawn_file_actions_destroy)
18521         (posix_spawn_file_actions_addclose)
18522         (posix_spawn_file_actions_addopen)
18523         (posix_spawn_file_actions_adddup2): Likewise.
18524         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
18525         * tests/test-pread.c (pread): Likewise.
18526         * tests/test-printf-posix.c (printf): Likewise.
18527         * tests/test-pty.c (openpty, forkpty): Likewise.
18528         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
18529         (random_r): Likewise.
18530         * tests/test-rawmemchr.c (rawmemchr): Likewise.
18531         * tests/test-readlink.c (readlink): Likewise.
18532         * tests/test-remove.c (remove): Likewise.
18533         * tests/test-rename.c (rename): Likewise.
18534         * tests/test-renameat.c (renameat): Likewise.
18535         * tests/test-rmdir.c (rmdir): Likewise.
18536         * tests/test-round1.c (round): Likewise.
18537         * tests/test-roundf1.c (roundf): Likewise.
18538         * tests/test-roundl.c (roundl): Likewise.
18539         * tests/test-setenv.c (setenv): Likewise.
18540         * tests/test-sigaction.c (sigaction): Likewise.
18541         * tests/test-sleep.c (sleep): Likewise.
18542         * tests/test-snprintf.c (snprintf): Likewise.
18543         * tests/test-sprintf-posix.c (sprintf): Likewise.
18544         * tests/test-stat.c (stat): Likewise.
18545         * tests/test-stpncpy.c (stpncpy): Likewise.
18546         * tests/test-strcasestr.c (strcasestr): Likewise.
18547         * tests/test-strchrnul.c (strchrnul): Likewise.
18548         * tests/test-strerror.c (strerror): Likewise.
18549         * tests/test-strsignal.c (strsignal): Likewise.
18550         * tests/test-strstr.c (strstr): Likewise.
18551         * tests/test-strtod.c (strtod): Likewise.
18552         * tests/test-strverscmp.c (strverscmp): Likewise.
18553         * tests/test-symlink.c (symlink): Likewise.
18554         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
18555         * tests/test-times.c (times): Likewise.
18556         * tests/test-trunc1.c (trunc): Likewise.
18557         * tests/test-truncf1.c (truncf): Likewise.
18558         * tests/test-truncl.c (truncl): Likewise.
18559         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
18560         Likewise.
18561         * tests/test-uname.c (uname): Likewise.
18562         * tests/test-unlink.c (unlink): Likewise.
18563         * tests/test-unlinkat.c (unlinkat): Likewise.
18564         * tests/test-unsetenv.c (unsetenv): Likewise.
18565         * tests/test-usleep.c (usleep): Likewise.
18566         * tests/test-utimensat.c (utimensat): Likewise.
18567         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
18568         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
18569         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
18570         * tests/test-vprintf-posix.c (vprintf): Likewise.
18571         * tests/test-vsnprintf.c (vsnprintf): Likewise.
18572         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
18573         * tests/test-wcrtomb.c (wcrtomb): Likewise.
18574         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
18575         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
18576         * tests/test-wcwidth.c (wcwidth): Likewise.
18577
18578         build: pull in conditional headers during GNULIB_POSIXCHECK
18579         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
18580         definitions from any conditionally-included headers.
18581         * lib/stdlib.in.h (includes): Likewise.
18582         * lib/unistd.in.h (includes): Likewise.
18583
18584 2009-12-24  Bruno Haible  <bruno@clisp.org>
18585
18586         * tests/test-argv-iter.c: Include header file being tested immediately
18587         after config.h.
18588         * tests/test-base64.c: Likewise.
18589         * tests/test-flock.c: Likewise.
18590         * tests/test-fsync.c: Likewise.
18591         * tests/test-getdate.c: Likewise.
18592         * tests/test-getndelim2.c: Likewise.
18593         * tests/test-isfinite.c: Likewise.
18594         * tests/test-isinf.c: Likewise.
18595         * tests/test-strerror.c: Likewise.
18596         * tests/test-strsignal.c: Likewise.
18597
18598 2009-12-23  Eric Blake  <ebb9@byu.net>
18599
18600         unistd: work around cygwin bug
18601         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
18602         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
18603         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18604
18605 2009-12-23  Bruno Haible  <bruno@clisp.org>
18606
18607         localename: More tests.
18608         * tests/test-localename.c (SIZEOF): New macro.
18609         (categories): New variable.
18610         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
18611         test_locale_name_default): Add test w.r.t. thread locale.
18612         (test_locale_name_thread): New function.
18613         (main): Invoke it.
18614
18615         localename: Make aware of thread locale.
18616         * lib/localename.h (gl_locale_name_thread): New declaration.
18617         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
18618         behaviour with respect to thread locale.
18619         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
18620         <langinfo.h>, glthread/lock.h.
18621         (SIZE_BITS): New macro.
18622         (string_hash): New function.
18623         (struct hash_node): New type.
18624         (HASH_TABLE_SIZE): New macro.
18625         (struniq_hash_table, struniq_lock): New variables.
18626         (struniq): New function.
18627         (gl_locale_name_thread): New function.
18628         (gl_locale_name): Invoke it.
18629         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
18630         * modules/localename (Depends-on): Add lock.
18631         Reported by Mike Gran <spk121@yahoo.com>.
18632
18633 2009-12-23  Eric Blake  <ebb9@byu.net>
18634
18635         va-args: new module
18636         * modules/va-args: New file.
18637         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
18638         * MODULES.html.sh (Core language properties): Mention it.
18639
18640         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
18641         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18642         named alias for __attribute__((__unused__)).
18643         * lib/chown.c: Update client.
18644         * lib/fchmodat.c: Likewise.
18645         * lib/fts.c: Likewise.
18646         * lib/getdate.y: Likewise.
18647         * lib/getgroups.c: Likewise.
18648         * lib/getopt.c: Likewise.
18649         * lib/getugroups.c: Likewise.
18650         * lib/mkdir.c: Likewise.
18651         * lib/mkfifo.c: Likewise.
18652         * lib/mkfifoat.c: Likewise.
18653         * lib/mknod.c: Likewise.
18654         * lib/mknodat.c: Likewise.
18655         * lib/readlink.c: Likewise.
18656         * lib/se-context.in.h: Likewise.
18657         * lib/se-selinux.in.h: Likewise.
18658         * lib/sockets.c: Likewise.
18659         * lib/symlink.c: Likewise.
18660         * lib/symlinkat.c: Likewise.
18661         * lib/unicodeio.c: Likewise.
18662         * lib/unistr.h: Likewise.
18663         * tests/test-areadlink.c: Likewise.
18664         * tests/test-areadlinkat.c: Likewise.
18665         * tests/test-filenamecat.c: Likewise.
18666         * tests/test-fseeko.c: Likewise.
18667         * tests/test-ftello.c: Likewise.
18668         * tests/test-getdate.c: Likewise.
18669         * tests/test-getgroups.c: Likewise.
18670         * tests/test-gethostname.c: Likewise.
18671         * tests/test-quotearg.c: Likewise.
18672         * tests/test-version-etc.c: Likewise.
18673         * tests/test-xalloc-die.c: Likewise.
18674         * tests/test-xfprintf-posix.c: Likewise.
18675         * tests/test-xprintf-posix.c: Likewise.
18676         * tests/test-xvasprintf.c: Likewise.
18677
18678         tests: avoid compiler warnings
18679         * tests/test-fcntl.c (main): Delete unused parameters.
18680         * tests/test-freopen-safer.c (main): Likewise.
18681         * tests/test-xalloc-die.c (main): Mark unused parameters.
18682         * tests/test-fseeko.c (main): Likewise.
18683         * tests/test-ftello.c (main): Likewise.
18684         * tests/test-nanosleep.c (main): Avoid declaration warning.
18685         * tests/test-sleep.c (main): Likewise.
18686         * tests/test-unsetenv.c (main): Silence warning about string
18687         literal.
18688         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18689
18690 2009-12-23  Bruno Haible  <bruno@clisp.org>
18691
18692         * tests/test-localename.c (test_locale_name): New function, extracted
18693         from main. Also test mixed situations.
18694         (test_locale_name_posix, test_locale_name_environ,
18695         test_locale_name_default): New functions.
18696         (main): Invoke them all.
18697         * modules/localename-tests (configure.ac): Test for newlocale.
18698
18699 2009-12-23  Bruno Haible  <bruno@clisp.org>
18700
18701         unistd: Ensure getcwd gets declared before being overridden.
18702         * lib/unistd.in.h: Conditionally include <io.h>.
18703
18704 2009-12-22  Bruno Haible  <bruno@clisp.org>
18705
18706         wchar: Diagnose broken combination of glibc and gcc versions and flags.
18707         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
18708         (gl_WCHAR_H): Invoke it.
18709         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
18710         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
18711         Reported by Karl Berry <karl@freefriends.org>.
18712
18713 2009-12-22  Eric Blake  <ebb9@byu.net>
18714
18715         math, unistd: avoid redundant includes
18716         * lib/math.in.h (isnan): No need to re-include <math.h>.
18717         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
18718
18719         getsubopt: work around cygwin bug
18720         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
18721         avoid conflicting with system getsubopt.
18722         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
18723         bug.
18724
18725         getopt: synchronize from glibc
18726         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
18727         parameter order.  Adjust all callers.
18728         (_getopt_internal_r, main): Adjust quoting in error messages.
18729         Drop considerations for outdated POSIX 1003.2 error message.
18730         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
18731         callers.
18732         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
18733
18734         test-getopt: test stderr behavior
18735         * modules/getopt-posix-tests (Depends-on): Add dup2.
18736         * tests/test-getopt.c (ASSERT): Avoid stderr.
18737         (main): Move stderr to a temporary file.
18738         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
18739         Instead, add parameter to inform caller if output occurred.
18740         (test_getopt): Adjust all existing tests to expect silence, and
18741         add new tests of leading ":".
18742         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18743         glibc shortcomings with leading "-:" or "+:" in optstring.
18744         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18745         Likewise.
18746         * doc/posix-functions/getopt.texi (getopt): Likewise.
18747
18748         test-getopt: enhance test
18749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
18750         supports optind=0.
18751         * tests/test-getopt.c (OPTIND_MIN): Move...
18752         * tests/test-getopt.h (OPTIND_MIN): ...here.
18753         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
18754         Require that optind=0 works, since modern BSD supports it in
18755         addition to optreset, and since coreutils expects it.
18756         (test_getopt_long_only): New test.
18757         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18758         glibc shortcomings with 'W;', and enforcement of optind=0.
18759         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18760         Likewise.
18761
18762 2009-12-21  Bruno Haible  <bruno@clisp.org>
18763
18764         localename: Improvements for MacOS X and Cygwin.
18765         * lib/localename.h (gl_locale_name_environ): New declaration.
18766         * lib/localename.c (gl_locale_name_environ): New function, extracted from
18767         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
18768         (gl_locale_name_posix): Invoke it.
18769         (gl_locale_name_default): Add comments. Use Windows native API also on
18770         Cygwin.
18771
18772 2009-12-21  Bruno Haible  <bruno@clisp.org>
18773
18774         Update list of Win32 locale ids.
18775         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
18776         (LANG_SAMI): Renamed from LANG_SAAMI.
18777         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18778         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18779         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18780         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18781         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18782         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18783         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18784         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18785         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18786         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18787         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18788         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18789         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18790         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18791         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18792         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18793         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18794         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18795         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18796         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18797         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18798         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18799         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18800         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18801         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18802         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18803         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18804         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18805         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18806         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18807         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18808         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18809         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18810         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18811         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18812         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18813         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18814         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18815         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
18816         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
18817         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
18818         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
18819         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
18820         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
18821         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
18822         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
18823         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
18824         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
18825         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
18826         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
18827         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
18828         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
18829         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
18830         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
18831         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
18832         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
18833         Add more languages and countries for Sami, Sorbian. Add more countries
18834         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
18835         for Pashto. Change country for Syriac, Tswana.
18836
18837 2009-12-21  Eric Blake  <ebb9@byu.net>
18838
18839         test-utimens: avoid spurious failure
18840         * tests/test-chown.h (nap): Factor...
18841         * tests/nap.h: ...into new file.
18842         * tests/test-lchown.h (nap): Avoid duplication.
18843         * tests/test-utimens-common.h (nap): Use shared implementation,
18844         necessary on file systems with 1-second resolution.
18845         * modules/chown-tests (Files): Include new file.
18846         * modules/fdutimensat-tests (Files): Likewise.
18847         * modules/futimens-tests (Files): Likewise.
18848         * modules/lchown-tests (Files): Likewise.
18849         * modules/openat-tests (Files): Likewise.
18850         * modules/utimens-tests (Files): Likewise.
18851         * modules/utimensat-tests (Files): Likewise.
18852
18853 2009-12-19  Eric Blake  <ebb9@byu.net>
18854
18855         futimens, utimensat: work around Linux bug
18856         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
18857         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18858         * lib/utimensat.c (rpl_utimensat): Work around it.
18859         * lib/futimens.c (rpl_futimens): Adjust comment.
18860
18861         utimens: work around Linux ctime bug
18862         * lib/utimens.c (detect_ctime_bug): New helper function.
18863         (update_timespec): Differentiate between workaround needed for
18864         this bug vs. what is needed for systems that lack utimensat.
18865         (fdutimens, lutimens): Work around bug.
18866
18867         utimens: check for ctime update
18868         * tests/test-utimens-common.h (check_ctime): Define.
18869         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
18870         * tests/test-futimens.h (test_futimens): Likewise.
18871         * tests/test-lutimens.h (test_lutimens): Likewise.
18872         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18873         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18874
18875 2009-12-19  Bruno Haible  <bruno@clisp.org>
18876
18877         dprintf-posix: Check against memory leak fixed on 2009-12-15.
18878         * tests/test-dprintf-posix2.sh: New file.
18879         * tests/test-dprintf-posix2.c: New file.
18880         * modules/dprintf-posix-tests (Files): Add them.
18881         (configure.ac): Check for getrlimit and setrlimit.
18882         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18883
18884 2009-12-19  Bruno Haible  <bruno@clisp.org>
18885
18886         fprintf-posix: Check against memory leak fixed on 2009-12-15.
18887         * tests/test-fprintf-posix3.sh: New file.
18888         * tests/test-fprintf-posix3.c: New file.
18889         * modules/fprintf-posix-tests (Files): Add them.
18890         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18891
18892 2009-12-19  Eric Blake  <ebb9@byu.net>
18893
18894         dirfd: fix prototype
18895         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
18896         * lib/dirfd.c (dirfd): Likewise.
18897
18898         canonicalize: reduce memory usage
18899         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
18900         allocation to size.
18901         Reported by Solar Designer <solar@openwall.com>.
18902
18903 2009-12-19  Bruno Haible  <bruno@clisp.org>
18904
18905         New module attribute 'Applicability'.
18906         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
18907         * gnulib-tool: New option --extract-applicability.
18908         (func_usage): Document it.
18909         (sed_extract_prog): Recognize it.
18910         (func_get_applicability): New function.
18911         (func_import): Generalize handling of 'link-warning' module.
18912         * modules/link-warning (Applicability): New section.
18913         * modules/arg-nonnull (Applicability): New section.
18914         Repoted by Simon Josefsson <simon@josefsson.org>.
18915
18916 2009-12-19  Bruno Haible  <bruno@clisp.org>
18917
18918         fflush: tweak
18919         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
18920         * lib/fseeko.c (rpl_fseeko): Likewise.
18921
18922 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
18923
18924         * lib/gl_list.h: Fix typo in comment.
18925
18926 2009-12-16  Eric Blake  <ebb9@byu.net>
18927
18928         fcntl: use to simplify other modules
18929         * modules/cloexec (Depends-on): Add fcntl.
18930         * modules/fchdir (Depends-on): Likewise.
18931         * modules/fd-safer-flag (Depends-on): Likewise.
18932         * modules/unistd-safer (Depends-on): Likewise.
18933         * modules/dup3 (configure.ac): Set module indicator.
18934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
18935         missing.
18936         * lib/fchdir.c (_gl_register_dup): Fix comment.
18937         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
18938         * lib/dup-safer.c (dup_safer): Likewise.
18939         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
18940         * lib/dup3.c (dup3): Likewise.
18941         * tests/test-fchdir.c (main): Enhance test.
18942         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
18943
18944         fcntl: port portions of fcntl to mingw
18945         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
18946         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
18947         replacement for mingw.
18948         * modules/fcntl (Description): Update.
18949         (Depends-on): Add dup2.
18950         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
18951         * modules/fcntl-h (Makefile.am): Substitute it.
18952         * lib/fcntl.in.h (fcntl): Update declaration.
18953         (F_DUPFD, F_GETFD): New macros, when needed.
18954         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18955         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
18956         * tests/test-fcntl.c (check_flags, main): Enhance test for items
18957         we now guarantee.
18958
18959         fcntl: work around cygwin bug in F_DUPFD
18960         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
18961         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
18962         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
18963         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
18964         * doc/posix-functions/fcntl.texi (fcntl): Document it.
18965
18966         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
18967         * modules/fcntl (Files): List new files.
18968         (configure.ac): Run a test.
18969         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
18970         * lib/fcntl.c (rpl_fcntl): Likewise.
18971         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
18972         (gl_FCNTL_H): Always replace fcntl.h.
18973         * modules/fcntl-h (Makefile.am): Substitute witnesses.
18974         * lib/fcntl.in.h (fcntl): Declare replacement.
18975         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
18976         needed, plus a witness.
18977         * doc/posix-functions/fcntl.texi (fcntl): Document this.
18978         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18979         * tests/test-fcntl.c: New file.
18980         * modules/fcntl-tests: Likewise.
18981
18982         binary-io: avoid potential compilation warning
18983         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
18984         directives.
18985
18986         fflush: avoid compilation error on NetBSD
18987         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
18988         between off_t and fpos_t, since the latter is sometimes a struct.
18989         * lib/fseeko.c (rpl_fseeko): Likewise.
18990         Reported by Alexander Nasonov <alnsn@yandex.ru>.
18991
18992 2009-12-15  Eric Blake  <ebb9@byu.net>
18993
18994         fcntl-h, stdio, sys_ioctl: fix declarations
18995         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
18996         function must not take arguments.
18997         * lib/sys_ioctl.in.h (ioctl): Likewise.
18998         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
18999         (open): Add a link warning.
19000
19001 2009-12-15  Jim Meyering  <meyering@redhat.com>
19002
19003         areadlink, areadlink-with-size: relax license to LGPLv2+
19004         * modules/areadlink (License): Relax to LGPLv2+.
19005         * modules/areadlink-with-size (License): Likewise.
19006
19007 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19008             Bruno Haible  <bruno@clisp.org>
19009
19010         *printf: Fix memory leak.
19011         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19012         * lib/vfprintf.c (vfprintf): Likewise.
19013         * lib/dprintf.c (dprintf): Likewise.
19014         * lib/vdprintf.c (vdprintf): Likewise.
19015
19016 2009-12-14  Eric Blake  <ebb9@byu.net>
19017
19018         accept4: adjust module dependencies
19019         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19020
19021         utimens: one more try at avoiding compiler warning
19022         * lib/utimens.c (lutimens): Lower scope of result.
19023
19024 2009-12-13  Bruno Haible  <bruno@clisp.org>
19025
19026         Move the malloc checking from module 'list' to new module 'xlist'.
19027         * modules/xlist: New file.
19028         * lib/gl_xlist.h: New file.
19029         * lib/gl_xlist.c: New file.
19030         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19031         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19032         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19033         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19034         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19035         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19036         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19037         gl_sortedlist_nx_add): New declarations.
19038         (struct gl_list_implementation): Rename and change methods accordingly.
19039         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19040         (gl_list_nx_create): Renamed from gl_list_create.
19041         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19042         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19043         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19044         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19045         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19046         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19047         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19048         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19049         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19050         gl_list_create_empty.
19051         (gl_list_nx_create): Renamed from gl_list_create.
19052         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19053         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19054         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19055         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19056         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19057         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19058         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19059         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19060         * lib/gl_array_list.c: Don't include xalloc.h.
19061         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19062         NULL upon out-of-memory.
19063         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19064         out-of-memory.
19065         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19066         Change return type to 'int'.
19067         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19068         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19069         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19070         upon out-of-memory.
19071         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19072         upon out-of-memory.
19073         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19074         upon out-of-memory.
19075         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19076         upon out-of-memory.
19077         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19078         out-of-memory.
19079         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19080         Update.
19081         (gl_array_list_implementation): Update.
19082         * lib/gl_carray_list.c: Don't include xalloc.h.
19083         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19084         Return NULL upon out-of-memory.
19085         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19086         out-of-memory.
19087         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19088         Change return type to 'int'.
19089         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19090         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19091         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19092         upon out-of-memory.
19093         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19094         upon out-of-memory.
19095         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19096         out-of-memory.
19097         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19098         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19099         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19100         Update.
19101         (gl_carray_list_implementation): Update.
19102         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19103         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19104         gl_linked_create_empty. Return NULL upon out-of-memory.
19105         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19106         out-of-memory.
19107         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19108         Change return type to 'int'. Return -1 upon out-of-memory.
19109         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19110         out-of-memory.
19111         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19112         upon out-of-memory.
19113         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19114         upon out-of-memory.
19115         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19116         NULL upon out-of-memory.
19117         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19118         upon out-of-memory.
19119         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19120         out-of-memory.
19121         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19122         Update.
19123         * lib/gl_linked_list.c: Don't include xalloc.h.
19124         (gl_linked_list_implementation): Update.
19125         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19126         (add_to_bucket): Change return type to 'int'.
19127         (gl_linkedhash_list_implementation): Update.
19128         * lib/gl_anytree_list1.h (free_subtree): New function.
19129         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19130         gl_tree_create_empty. Return NULL upon out-of-memory.
19131         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19132         Change return type to 'int'. Return -1 upon out-of-memory.
19133         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19134         out-of-memory.
19135         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19136         (gl_tree_remove_node): New function, moved here from
19137         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19138         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19139         Update.
19140         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19141         malloc, not xmalloc. Return NULL upon out-of-memory.
19142         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19143         out-of-memory.
19144         (gl_tree_remove_node_from_tree): New function, extracted from
19145         gl_tree_remove_node.
19146         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19147         upon out-of-memory.
19148         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19149         out-of-memory.
19150         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19151         upon out-of-memory.
19152         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19153         upon out-of-memory.
19154         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19155         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19156         not xmalloc. Return NULL upon out-of-memory.
19157         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19158         out-of-memory.
19159         (gl_tree_remove_node_from_tree): New function, extracted from
19160         gl_tree_remove_node.
19161         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19162         upon out-of-memory.
19163         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19164         out-of-memory.
19165         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19166         upon out-of-memory.
19167         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19168         upon out-of-memory.
19169         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19170         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19171         gl_anytree_list1.h before gl_anyavltree_list2.h.
19172         (gl_avltree_list_implementation): Update.
19173         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19174         gl_anytree_list1.h before gl_anyavltree_list2.h.
19175         (gl_rbtree_list_implementation): Update.
19176         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
19177         Change return type to 'int'. Return -1 upon out-of-memory. Use
19178         __builtin_expect.
19179         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
19180         (gl_avltreehash_list_implementation): Update.
19181         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
19182         (gl_rbtreehash_list_implementation): Update.
19183         * modules/array-list (Depends-on): Remove xalloc.
19184         * modules/carray-list (Depends-on): Likewise.
19185         * modules/linked-list (Depends-on): Likewise.
19186         * modules/linkedhash-list (Depends-on): Likewise.
19187         * modules/avltree-list (Depends-on): Likewise.
19188         * modules/rbtree-list (Depends-on): Likewise.
19189         * modules/avltreehash-list (Depends-on): Likewise.
19190         * modules/rbtreehash-list (Depends-on): Likewise.
19191
19192         * modules/xsublist: New file.
19193         * lib/gl_xsublist.h: New file.
19194         * lib/gl_xsublist.c: New file.
19195         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
19196         (gl_sublist_nx_create): New declaration.
19197         * lib/gl_sublist.c: Don't include xalloc.h.
19198         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
19199         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
19200         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
19201         Change return type to 'int'. Return -1 upon out-of-memory.
19202         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
19203         upon out-of-memory.
19204         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
19205         NULL upon out-of-memory.
19206         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
19207         upon out-of-memory.
19208         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
19209         NULL upon out-of-memory.
19210         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
19211         NULL upon out-of-memory.
19212         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
19213         upon out-of-memory.
19214         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
19215         (gl_sublist_list_implementation): Update.
19216         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
19217         upon out-of-memory.
19218         * modules/sublist (Depends-on): Remove xalloc.
19219
19220         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
19221         * tests/test-carray_list.c: Likewise.
19222         * tests/test-linked_list.c: Likewise.
19223         * tests/test-linkedhash_list.c: Likewise.
19224         * tests/test-avltree_list.c: Likewise.
19225         * tests/test-rbtree_list.c: Likewise.
19226         * tests/test-avltreehash_list.c: Likewise.
19227         * tests/test-rbtreehash_list.c: Likewise.
19228         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
19229         * modules/carray-list-tests (Makefile.am): Likewise.
19230         * modules/linked-list-tests (Makefile.am): Likewise.
19231         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19232         * modules/avltree-list-tests (Makefile.am): Likewise.
19233         * modules/rbtree-list-tests (Makefile.am): Likewise.
19234         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19235         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19236
19237         * NEWS: Mention the changes.
19238
19239         * lib/clean-temp.c: Include gl_xlist.h.
19240         * modules/clean-temp (Depends-on): Add xlist.
19241
19242         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
19243         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
19244
19245         * tests/test-array_oset.c: Include gl_xlist.h.
19246         * modules/array-oset-tests (Depends-on): Add xlist.
19247
19248         Reported by José E. Marchesi <jemarch@gnu.org>.
19249
19250 2009-12-13  Bruno Haible  <bruno@clisp.org>
19251
19252         Move the malloc checking from module 'oset' to new module 'xoset'.
19253         * modules/xoset: New file.
19254         * lib/gl_xoset.h: New file.
19255         * lib/gl_xoset.c: New file.
19256         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
19257         declarations.
19258         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
19259         (struct gl_oset_implementation): Rename and change methods accordingly.
19260         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
19261         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19262         'int'. Mark as __warn_unused_result__.
19263         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
19264         gl_oset_create_empty.
19265         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19266         'int'.
19267         * lib/gl_array_oset.c: Don't include xalloc.h.
19268         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
19269         malloc, not xmalloc.
19270         (grow): Change return type to 'int'. Don't call xalloc_die.
19271         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
19272         to 'int'.
19273         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
19274         'int'.
19275         (gl_array_oset_implementation): Update.
19276         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
19277         gl_tree_create_empty.
19278         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
19279         'int'.
19280         * lib/gl_avltree_oset.c: Don't include xalloc.h.
19281         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19282         xmalloc.
19283         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19284         not xmalloc.
19285         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19286         xmalloc.
19287         (gl_avltree_oset_implementation): Update.
19288         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
19289         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19290         xmalloc.
19291         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19292         not xmalloc.
19293         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19294         xmalloc.
19295         (gl_rbtree_oset_implementation): Update.
19296         * modules/array-oset (Depends-on): Remove xalloc.
19297         * modules/avltree-oset (Depends-on): Likewise.
19298         * modules/rbtree-oset (Depends-on): Likewise.
19299         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
19300         * tests/test-avltree_oset.c: Likewise.
19301         * tests/test-rbtree_oset.c: Likewise.
19302         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19303         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
19304         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19305         * NEWS: Mention the change.
19306
19307 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
19308
19309         maint.mk: allow a project to override release-prep commands
19310         * top/maint.mk (alpha, beta, stable): Move release-preparatory
19311         commands into a new rule.
19312         (release-prep): New rule.
19313         (release-prep-hook): New overridable variable.
19314
19315 2009-12-13  Bruno Haible  <bruno@clisp.org>
19316
19317         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
19318
19319 2009-12-13  Jim Meyering  <meyering@redhat.com>
19320
19321         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
19322         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
19323
19324 2009-12-12  Bruno Haible  <bruno@clisp.org>
19325
19326         duplocale: Tweak.
19327         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
19328
19329 2009-12-12  Karl Berry  <karl@gnu.org>
19330
19331         * config/srclist.txt (strtoll.c): tab changes, no more sync.
19332
19333 2009-12-12  Bruno Haible  <bruno@clisp.org>
19334
19335         * m4/po.m4: Undo incorrect untabification.
19336
19337 2009-12-12  Bruno Haible  <bruno@clisp.org>
19338
19339         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
19340         * modules/c-strtod (Depends-on): Add locale.
19341         * modules/c-strtold (Depends-on): Likewise.
19342
19343 2009-12-12  Bruno Haible  <bruno@clisp.org>
19344
19345         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
19346
19347 2009-12-11  Eric Blake  <ebb9@byu.net>
19348
19349         setenv: relax requirement in light of POSIX ruling
19350         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
19351         not NULL.
19352         * tests/test-setenv.c (main): Relax test.
19353         * tests/test-unsetenv.c (main): Likewise.
19354         * doc/posix-functions/setenv.texi (setenv): Document this.
19355         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19356
19357 2009-12-11  Bruno Haible  <bruno@clisp.org>
19358
19359         New module 'fd-safer-flag'.
19360         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
19361         * lib/dup-safer.c (dup_safer_flag): Remove function.
19362         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
19363         * lib/fd-safer.c (fd_safer_flag): Remove function.
19364         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
19365         * modules/cloexec (configure.ac): Drop indicator macro.
19366         * modules/fd-safer-flag: New file.
19367         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
19368         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
19369         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
19370
19371 2009-12-11  Bruno Haible  <bruno@clisp.org>
19372
19373         Tests for module 'nl_langinfo'.
19374         * modules/nl_langinfo-tests: New file.
19375         * tests/test-nl_langinfo.sh: New file.
19376         * tests/test-nl_langinfo.c: New file.
19377
19378         New module 'nl_langinfo'.
19379         * lib/nl_langinfo.c: New file.
19380         * m4/nl_langinfo.m4: New file.
19381         * modules/nl_langinfo: New file.
19382         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
19383
19384 2009-12-11  Bruno Haible  <bruno@clisp.org>
19385
19386         Tests for module 'langinfo'.
19387         * modules/langinfo-tests: New file.
19388         * tests/test-langinfo.c: New file.
19389
19390         New module 'langinfo'.
19391         * lib/langinfo.in.h: New file.
19392         * m4/langinfo_h.m4: New file.
19393         * modules/langinfo: New file.
19394         * doc/posix-headers/langinfo.texi: Mention the new module.
19395
19396 2009-12-11  Bruno Haible  <bruno@clisp.org>
19397
19398         * lib/config.charset: Untabify.
19399
19400 2009-12-11  Bruno Haible  <bruno@clisp.org>
19401
19402         * modules/unistd-safer (configure.ac): Drop indicator macro.
19403
19404 2009-12-11  Bruno Haible  <bruno@clisp.org>
19405
19406         Move pipe2-safer code to its own file.
19407         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
19408         * lib/pipe-safer.c (pipe2_safer): Remove function.
19409         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
19410         (Makefile.am): Add it to lib_SOURCES.
19411
19412 2009-12-10  Bruno Haible  <bruno@clisp.org>
19413
19414         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
19415
19416 2009-12-10  Bruno Haible  <bruno@clisp.org>
19417
19418         Declare which arguments expect non-NULL values, for GCC and clang.
19419         * build-aux/arg-nonnull.h: New file.
19420         * modules/arg-nonnull: New file.
19421         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
19422         (inet_ntop, inet_pton): Use it.
19423         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
19424         (closedir, dirfd, opendir, scandir, alphasort): Use it.
19425         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
19426         (open, openat): Use it.
19427         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
19428         (fnmatch): Use it.
19429         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19430         (getopt, getopt_long, getopt_long_only): Use it.
19431         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19432         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19433         Use it.
19434         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19435         (iconv_open): Use it.
19436         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19437         (strtoimax, strtoumax): Use it.
19438         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19439         (duplocale): Use it.
19440         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19441         (frexp, frexpl): Use it.
19442         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
19443         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
19444         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
19445         (tsearch, tfind, tdelete, twalk): Use it.
19446         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
19447         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19448         sigpending): Use it.
19449         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
19450         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19451         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19452         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19453         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19454         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19455         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19456         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19457         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19458         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19459         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19460         Use it.
19461         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
19462         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
19463         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
19464         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
19465         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
19466         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
19467         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
19468         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
19469         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
19470         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
19471         strtoull, unsetenv): Use it.
19472         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
19473         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19474         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19475         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19476         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19477         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
19478         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
19479         (strcasecmp, strncasecmp): Use it.
19480         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
19481         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
19482         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
19483         rpl_setsockopt): Use it.
19484         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
19485         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
19486         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
19487         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
19488         (gettimeofday): Use it.
19489         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
19490         (times): Use it.
19491         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
19492         (uname): Use it.
19493         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
19494         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
19495         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
19496         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
19497         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
19498         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
19499         unlinkat, write): Use it.
19500         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
19501         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
19502         * lib/argv-iter.h: Include arg-nonnull.h.
19503         (_ATTRIBUTE_NONNULL_): Remove macro.
19504         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
19505         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
19506         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
19507         optimization.
19508         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
19509         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
19510         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
19511         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
19512         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
19513         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
19514         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
19515         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
19516         * modules/arpa_inet (Depends-on): Add arg-nonnull.
19517         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
19518         * modules/dirent (Depends-on): Add arg-nonnull.
19519         (Makefile.am): Insert arg-nonnull.h into dirent.h.
19520         * modules/fcntl-h (Depends-on): Add arg-nonnull.
19521         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
19522         * modules/fnmatch (Depends-on): Add arg-nonnull.
19523         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
19524         * modules/getopt-posix (Depends-on): Add arg-nonnull.
19525         (Makefile.am): Insert arg-nonnull.h into getopt.h.
19526         * modules/glob (Depends-on): Add arg-nonnull.
19527         (Makefile.am): Insert arg-nonnull.h into glob.h.
19528         * modules/iconv_open (Depends-on): Add arg-nonnull.
19529         (Makefile.am): Insert arg-nonnull.h into iconv.h.
19530         * modules/inttypes (Depends-on): Add arg-nonnull.
19531         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
19532         * modules/locale (Depends-on): Add arg-nonnull.
19533         (Makefile.am): Insert arg-nonnull.h into locale.h.
19534         * modules/math (Depends-on): Add arg-nonnull.
19535         (Makefile.am): Insert arg-nonnull.h into math.h.
19536         * modules/netdb (Depends-on): Add arg-nonnull.
19537         (Makefile.am): Insert arg-nonnull.h into netdb.h.
19538         * modules/search (Depends-on): Add arg-nonnull.
19539         (Makefile.am): Insert arg-nonnull.h into search.h.
19540         * modules/signal (Depends-on): Add arg-nonnull.
19541         (Makefile.am): Insert arg-nonnull.h into signal.h.
19542         * modules/spawn (Depends-on): Add arg-nonnull.
19543         (Makefile.am): Insert arg-nonnull.h into spawn.h.
19544         * modules/stdio (Depends-on): Add arg-nonnull.
19545         (Makefile.am): Insert arg-nonnull.h into stdio.h.
19546         * modules/stdlib (Depends-on): Add arg-nonnull.
19547         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
19548         * modules/string (Depends-on): Add arg-nonnull.
19549         (Makefile.am): Insert arg-nonnull.h into string.h.
19550         * modules/strings (Depends-on): Add arg-nonnull.
19551         (Makefile.am): Insert arg-nonnull.h into strings.h.
19552         * modules/sys_socket (Depends-on): Add arg-nonnull.
19553         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
19554         * modules/sys_stat (Depends-on): Add arg-nonnull.
19555         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
19556         * modules/sys_time (Depends-on): Add arg-nonnull.
19557         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
19558         * modules/sys_times (Depends-on): Add arg-nonnull.
19559         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
19560         * modules/sys_utsname (Depends-on): Add arg-nonnull.
19561         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
19562         * modules/time (Depends-on): Add arg-nonnull.
19563         (Makefile.am): Insert arg-nonnull.h into time.h.
19564         * modules/unistd (Depends-on): Add arg-nonnull.
19565         (Makefile.am): Insert arg-nonnull.h into unistd.h.
19566         * modules/wchar (Depends-on): Add arg-nonnull.
19567         (Makefile.am): Insert arg-nonnull.h into wchar.h.
19568         * modules/argv-iter (Depends-on): Add arg-nonnull.
19569         * tests/test-canonicalize.c (null_ptr): New function.
19570         (main): Use it.
19571         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
19572         (main): Use it.
19573         * tests/test-memmem.c (null_ptr): New function.
19574         (main): Use it.
19575         Reported by Jim Meyering.
19576
19577 2009-12-10  Bruno Haible  <bruno@clisp.org>
19578
19579         Use spaces for indentation, not tabs.
19580         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19581         * m4/*.m4: Untabify.
19582         * build-aux/*.h: Untabify.
19583         * tests/**/*.[hc]: Untabify.
19584         * README: New section "Indent with spaces, not TABs", based on
19585         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
19586         * NEWS: Mention the change.
19587
19588 2009-12-10  Bruno Haible  <bruno@clisp.org>
19589
19590         pty test: Fix link error.
19591         * modules/pty-tests (Makefile.am): Add the default LDADD value to
19592         test_pty_LDADD.
19593
19594 2009-12-07  Simon Josefsson  <simon@josefsson.org>
19595
19596         * modules/pty: New file.
19597         * modules/pty-tests: New file.
19598         * m4/pty.m4: New file.
19599         * tests/test-pty.c: New file.
19600         * doc/glibc-headers/pty.texi: Modified.
19601         * doc/glibc-functions/forkpty.texi: Modified.
19602         * doc/glibc-functions/openpty.texi: Modified.
19603
19604 2009-12-10  Bruno Haible  <bruno@clisp.org>
19605
19606         Avoid syntax error in C++ mode.
19607         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
19608
19609 2009-12-10  Bruno Haible  <bruno@clisp.org>
19610
19611         Use sed with option -e.
19612         * gnulib-tool (func_version, func_emit_copyright_notice,
19613         func_emit_initmacro_end, func_import, func_create_testdir): Pass
19614         option -e to sed.
19615         * modules/link-warning (Makefile.am): Likewise.
19616
19617 2009-12-10  Jim Meyering  <meyering@redhat.com>
19618
19619         mgetgroups: do not write bytes beyond end of malloc'd buffer
19620         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
19621         username, we call getgroups with a one-element-shorter buffer,
19622         but still told it the length was original, max_n_groups.
19623
19624 2009-12-09  Eric Blake  <ebb9@byu.net>
19625
19626         cloexec: relax license
19627         * modules/cloexec (Maintainer): Add myself.
19628         (License): Use LGPL, not GPL.
19629
19630         link-warning: optimize generation
19631         * modules/link-warning (Makefile.am): Reduce process usage.
19632
19633 2009-12-09  Bruno Haible  <bruno@clisp.org>
19634
19635         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
19636         workaround was added on 2009-11-17.
19637
19638 2009-12-09  Jim Meyering  <meyering@redhat.com>
19639             Bruno Haible  <bruno@clisp.org>
19640
19641         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19642         * modules/link-warning (Makefile.am): Make the comment-removing sed
19643         command more robust in the face of bootstrap-prepended comment lines.
19644
19645 2009-12-09  Bruno Haible  <bruno@clisp.org>
19646
19647         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19648         most one group.
19649
19650 2009-12-09  Simon Josefsson <simon@josefsson.org>
19651             Bruno Haible  <bruno@clisp.org>
19652
19653         * build-aux/link-warning.h: Add copyright notice.
19654         * modules/link-warning (Makefile.am): Generate link-warning.h from
19655         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19656         * NEWS: Mention change in link-warning module.
19657         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19658         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19659         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19660         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19661         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19662         * modules/math (Makefile.am): Add dependency to math.h.
19663         * modules/search (Makefile.am): Add dependency to search.h.
19664         * modules/signal (Makefile.am): Add dependency to signal.h.
19665         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19666         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19667         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
19668         * modules/string (Makefile.am): Add dependency to string.h.
19669         * modules/strings (Makefile.am): Add dependency to strings.h.
19670         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
19671         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
19672         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
19673         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
19674         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
19675         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
19676         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
19677         * modules/unistd (Makefile.am): Add dependency to unistd.h.
19678         * modules/wchar (Makefile.am): Add dependency to wchar.h.
19679
19680 2009-12-09  Bruno Haible  <bruno@clisp.org>
19681
19682         fchdir: Optimize away rpl_fstat when possible.
19683         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
19684         REPLACE_OPEN_DIRECTORY.
19685         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
19686
19687 2009-12-09  Bruno Haible  <bruno@clisp.org>
19688
19689         * lib/fchdir.c: Update comment.
19690
19691 2009-12-09  Bruno Haible  <bruno@clisp.org>
19692
19693         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
19694
19695 2009-12-08  Eric Blake  <ebb9@byu.net>
19696
19697         fchdir: avoid memory leak on re-registration.
19698         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
19699
19700 2009-12-08  Jim Meyering  <meyering@redhat.com>
19701
19702         init.sh: avoid Solaris 10 /bin/sh portability problem
19703         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
19704         sourced script:
19705           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
19706           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
19707           bar
19708         tests/init.sh relied on that, accepting a --set-path=DIR argument,
19709         and two tests used that idiom.
19710         * tests/init.sh: Update suggested usage comments.
19711         (path_prepend_): New function, to be used in place
19712         of the --src-path=DIR option.
19713         (setup_): Move PATH-prepending code into path_prepend_.
19714         * tests/test-pread.sh: Adapt to new usage.
19715         * tests/test-xalloc-die.sh: Likewise.
19716
19717 2009-12-08  Simon Josefsson  <simon@josefsson.org>
19718
19719         * doc/gnulib.texi (Glibc pty.h): Add.
19720         * doc/glibc-functions/forkpty.texi: Add.
19721         * doc/glibc-functions/openpty.texi: Add.
19722         Suggested by Bruno Haible.
19723
19724 2009-12-08  Eric Blake  <ebb9@byu.net>
19725
19726         fchdir: fix logic bugs
19727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
19728         * tests/test-fchdir.c (main): Enhance test.
19729         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
19730         is in use.
19731
19732         dup2: fix logic bugs
19733         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
19734         REPLACE_DUP2 to decide when rpl_dup2 is needed.
19735         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
19736         exists.
19737         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
19738
19739 2009-12-07  Eric Blake  <ebb9@byu.net>
19740
19741         unlink: fix m4 detection
19742         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
19743
19744         unistd-safer: add unit test
19745         * modules/unistd-safer-tests: New file.
19746         * tests/test-dup-safer.c: Likewise.
19747         * tests/test-cloexec.c (setmode): Avoid compiler warning.
19748         * tests/test-dup2.c (setmode): Likewise.
19749         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
19750
19751         cloexec: preserve text vs. binary across dup_cloexec
19752         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
19753         mode.
19754         * modules/dup2-tests (Depends-on): Add binary-io.
19755         * modules/cloexec-tests (Depends-on): Likewise.
19756         * tests/test-dup2.c (setmode, is_mode): New helpers.
19757         (main): Add tests that translation mode is preserved.
19758         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
19759         Reported by Bruno Haible.
19760
19761         mgetgroups: reduce duplicate listings
19762         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
19763         resulting array.
19764         * tests/test-chown.h (test_chown): Simplify client.
19765         * tests/test-lchown.h (test_lchown): Likewise.
19766
19767 2009-12-06  Bruno Haible  <bruno@clisp.org>
19768
19769         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
19770         value.
19771
19772 2009-12-06  Bruno Haible  <bruno@clisp.org>
19773
19774         * lib/progname.c: Include stdio.h, stdlib.h.
19775         (set_program_name): Reject a NULL argument.
19776
19777 2009-12-05  Eric Blake  <ebb9@byu.net>
19778
19779         pipe2-safer: new module
19780         * modules/pipe2-safer: New file.
19781         * lib/unistd-safer.h (pipe2_safer): New prototype.
19782         * lib/unistd--.h (pipe2): New wrapper.
19783         * lib/pipe-safer.c (pipe2_safer): New function.
19784         * modules/pipe (Depends-on): Add pipe2-safer.
19785         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19786
19787         stdlib-safer: preserve cloexec flag for mkostemp[s]
19788         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19789         fd_safer_flag.
19790
19791         unistd-safer: allow preservation of cloexec status via flag
19792         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19793         prototypes.
19794         * lib/dup-safer.c (dup_safer_flag): New function.
19795         * lib/fd-safer.c (fd_safer_flag): Likewise.
19796         * modules/cloexec (configure.ac): Set witness.
19797
19798         test-dup2: enhance test
19799         * modules/dup2-tests (Depends-on): Add cloexec.
19800         * tests/test-dup2.c (main): Enhance test.
19801
19802         cloexec: add dup_cloexec
19803         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19804         header and comments.
19805         * lib/cloexec.c (set_cloexec_flag): Add comments.
19806         (dup_cloexec): New function, with mingw implementation borrowed
19807         from...
19808         * lib/w32spawn.h (dup_noinherit): ...here.
19809         * modules/execute (Depends-on): Add cloexec.
19810         * modules/pipe (Depends-on): Likewise.
19811         * modules/cloexec (Depends-on): Add dup2.
19812         * modules/cloexec-tests (Files): New file.
19813         * tests/test-cloexec.c: Likewise.
19814
19815         test-xalloc-die: fix test for mingw
19816         * modules/xalloc-die-tests (Files): Add tests/init.sh.
19817         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
19818         directory and .exe suffix off argv[0] output.
19819
19820         test-fseeko: fix test for mingw
19821         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
19822         than undefining fseek, so test will pass on mingw.
19823
19824 2009-12-05  Bruno Haible  <bruno@clisp.org>
19825
19826         * lib/progname.h (set_program_name): Clarify specification.
19827         * lib/progname.c (set_program_name): Likewise.
19828         Reported by Jim Meyering.
19829
19830 2009-12-05  Jim Meyering  <meyering@redhat.com>
19831
19832         maint.mk: backslash-escape parens in default regexp
19833         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
19834         backslash-escape the literal parentheses.
19835
19836         maint.mk: news-date-check: use grep -E
19837         * top/maint.mk (today): Define a Make variable, not a...
19838         (news-date-check): ...shell variable.
19839         (news-date-regexp): Use the Make variable.
19840         Use grep's -E option.  Change the failing diagnostic to mention
19841         the variable, $(news-date-regexp).
19842
19843 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
19844
19845         maintainer-makefile: allow customization of NEWS entry format
19846         * top/maint.mk (news-date-regexp): New overridable variable.
19847         (news-date-check): Use it.
19848
19849 2009-12-04  Eric Blake  <ebb9@byu.net>
19850
19851         mgetgroups: add xgetgroups, and avoid ENOSYS failures
19852         * lib/mgetgroups.h (xgetgroups): New prototype.
19853         * lib/mgetgroups.c (xgetgroups): New wrapper.
19854         (mgetgroups): Handle ENOSYS.
19855         * modules/mgetgroups (Depends-on): Add realloc.
19856         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
19857
19858         mgetgroups: avoid argument promotion issues with -1
19859         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
19860         for invalid gid_t.
19861         * tests/test-chown.h (getegid, test_chown): Likewise.
19862         * tests/test-lchown.h (getegid, test_lchown): Likewise.
19863
19864 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
19865
19866         exclude: Fix header file problems.
19867         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
19868
19869 2009-12-01  Jim Meyering  <meyering@redhat.com>
19870
19871         fts: fts_open: do not let an empty string cause immediate failure
19872         This is required in support of GNU rm, for which the command
19873         "rm A '' B" must process and remove both A and B, in spite of
19874         the empty string argument.
19875         * lib/fts.c (fts_open): Do not let the presence of an empty string
19876         cause fts_open to fail immediately.  Most fts-using tools must be
19877         able to process all arguments, in order, and can be expected to
19878         diagnose such arguments themselves.
19879
19880 2009-11-30  Eric Blake  <ebb9@byu.net>
19881
19882         utimens: fix compilation error
19883         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
19884         Declare variable at right scope.
19885
19886 2009-11-29  Jim Meyering  <meyering@redhat.com>
19887
19888         bootstrap: handle perl-5.11's changed --version output
19889         * build-aux/bootstrap (get_version): Handle perl separately,
19890         since perl-5.11's --version output is different.
19891
19892 2009-11-28  Jim Meyering  <meyering@redhat.com>
19893
19894         userspec: depend on the inttostr module, too
19895         * modules/userspec (Depends-on): Add inttostr.
19896
19897         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
19898         * lib/userspec.c (parse_with_separator): Do not accept a user ID
19899         number of MAXUID when it evaluates to (uid_t) -1.
19900         Likewise for group ID.  Reported by Matt McCutchen in
19901         <http://savannah.gnu.org/bugs/?28113>
19902
19903         userspec: reformat to use spaces, not TABs
19904         * lib/userspec.c: Expand TABs to spaces.
19905         Add Emacs' "indent-tabs-mode: nil" hint.
19906
19907 2009-11-27  Eric Blake  <ebb9@byu.net>
19908
19909         getopt-gnu: flush out another BSD bug
19910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
19911         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
19912         flush out BSD bug.
19913         * tests/test-getopt.h (test_getopt): End lists with NULL.
19914         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19915         (test_getopt_long_posix): Enhance test.
19916         * modules/getopt-posix-tests (Depends-on): Add stdbool.
19917         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
19918         getopt-gnu.
19919         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19920         Likewise.
19921
19922 2009-11-27  Simon Josefsson  <simon@josefsson.org>
19923
19924         * modules/idpriv-droptemp-tests (Notice): Fix text.
19925
19926 2009-11-27  Jim Meyering  <meyering@redhat.com>
19927
19928         test-xalloc-die: avoid spurious failure due to libtool argv difference
19929         In a libtool-enabled project, this test would fail due to a difference
19930         in the emitted program name, e.g.,
19931         -test-xalloc-die: memory exhausted
19932         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
19933         Use program to avoid that.
19934         * modules/xalloc-die-tests (Depends-on): Add progname.
19935         * tests/test-xalloc-die.c: Include progname.h".
19936         (program_name): Remove decl.
19937         (main): Call set_program_name.
19938         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
19939
19940 2009-11-26  Richard Jones  <rjones@redhat.com>
19941
19942         w32sock: leave win32 error in place.
19943         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
19944
19945 2009-11-26  Eric Blake  <ebb9@byu.net>
19946
19947         init.sh: suggest to use skip_ and fail_ functions in comments
19948         * tests/init.sh: Add a sentence.
19949
19950 2009-11-25  Bruno Haible  <bruno@clisp.org>
19951
19952         init.sh: add documentation in comments
19953         * tests/init.sh: Add some developer and user documentation.
19954
19955 2009-11-26  Jim Meyering  <meyering@redhat.com>
19956
19957         init.sh: accommodate even those who specify bogus srcdir manually
19958         * tests/init.sh: Normally, srcdir is guaranteed by automake and
19959         configure-time tests to be sanitized, so that there is no need to
19960         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
19961         (with no double quotes) suffices.  However, since tests may be
19962         invoked manually, and since you may explicitly set srcdir to the
19963         name of a directory containing spaces, do quote its uses here.
19964         * tests/test-pread.sh: Likewise.
19965         Suggested by Bruno Haible.
19966
19967         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
19968         * tests/test-pread.sh: Write no data into the pipe, because
19969         test-pread actually reads none.  This avoids a diagnostic,
19970         "bash: echo: write error: Broken pipe", that arises in the unusual
19971         event something is ignoring SIGPIPE, and might be interpreted
19972         as some sort of failure.  Reported by Bruno Haible.
19973
19974 2009-11-25  Jim Meyering  <meyering@redhat.com>
19975
19976         test-pread: cover failure with ESPIPE and EINVAL
19977         * tests/test-pread.c (main): Test for failure, too.
19978         * tests/test-pread.sh: Invoke with stdin on a pipe.
19979         Suggested by Eric Blake.
19980
19981         pread: improvement and fix
19982         * modules/pread (Depends-on): Depend on lseek, for portability to
19983         e.g., mingw.  Suggested by Eric Blake.
19984         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
19985
19986         unistd.in.h: correct declaration of pread
19987         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
19988         Reported by Richard W.M. Jones.
19989
19990         test-pread.sh: distribute the test script
19991         * modules/pread-tests (Files): Include test-pread.sh.
19992
19993         test-pread.sh: clean up
19994         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
19995         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
19996         That is unnecessary, since it's always ".".
19997         Suggestion from Eric Blake.
19998
19999         test-pread.sh: make executable
20000         * tests/test-pread.sh: Set executable bit.
20001         Reported by Eric Blake.
20002
20003         correct typo in test-pread.sh
20004         * tests/test-pread.sh: Add #! line.
20005
20006         test pread
20007         * tests/test-pread.c: New file.
20008         * tests/test-pread.sh: Likewise.
20009         * modules/pread-tests: Likewise.
20010
20011         pread: new module
20012         * modules/pread: New file.
20013         * lib/unistd.in.h (pread): Define/declare.
20014         * lib/pread.c (pread): New file.
20015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20016         * modules/unistd (Makefile.am): Substitute witnesses.
20017         * doc/posix-functions/pread.texi (pread): Update.
20018         * MODULES.html.sh: Add pread.
20019
20020 2009-11-25  Jim Meyering  <meyering@redhat.com>
20021
20022         tests/init.sh: new file to be used via most *.sh tests
20023         * tests/init.sh: New file.
20024
20025 2009-11-25  Eric Blake  <ebb9@byu.net>
20026
20027         utimens: work around older Linux failure with symlinks
20028         * lib/utimens.c (lutimensat_works_really): New variable.
20029         (fdutimens, lutimens): Use it to manage kernels that support
20030         nanosecond times on files, but not on symlinks.
20031         Reported by OndÅ™ej Vašík.
20032
20033         utimes: fix configure grammar
20034         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20035
20036 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20037
20038         regex: Fix fastmap for multibyte character ranges.
20039         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20040         characters when a multibyte character range is included.
20041
20042 2009-11-22  Andy Wingo  <wingo@pobox.com>
20043
20044         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20045         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20046
20047 2009-11-24  Bruno Haible  <bruno@clisp.org>
20048
20049         doc: Most *_l functions exist in MacOS X 10.5.
20050         * doc/posix-functions/duplocale.texi: Update platforms list.
20051         * doc/posix-functions/freelocale.texi: Likewise.
20052         * doc/posix-functions/newlocale.texi: Likewise.
20053         * doc/posix-functions/uselocale.texi: Likewise.
20054         * doc/posix-functions/isalnum_l.texi: Likewise.
20055         * doc/posix-functions/isalpha_l.texi: Likewise.
20056         * doc/posix-functions/isblank_l.texi: Likewise.
20057         * doc/posix-functions/iscntrl_l.texi: Likewise.
20058         * doc/posix-functions/isdigit_l.texi: Likewise.
20059         * doc/posix-functions/isgraph_l.texi: Likewise.
20060         * doc/posix-functions/islower_l.texi: Likewise.
20061         * doc/posix-functions/isprint_l.texi: Likewise.
20062         * doc/posix-functions/ispunct_l.texi: Likewise.
20063         * doc/posix-functions/isspace_l.texi: Likewise.
20064         * doc/posix-functions/isupper_l.texi: Likewise.
20065         * doc/posix-functions/iswalnum_l.texi: Likewise.
20066         * doc/posix-functions/iswalpha_l.texi: Likewise.
20067         * doc/posix-functions/iswblank_l.texi: Likewise.
20068         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20069         * doc/posix-functions/iswctype_l.texi: Likewise.
20070         * doc/posix-functions/iswdigit_l.texi: Likewise.
20071         * doc/posix-functions/iswgraph_l.texi: Likewise.
20072         * doc/posix-functions/iswlower_l.texi: Likewise.
20073         * doc/posix-functions/iswprint_l.texi: Likewise.
20074         * doc/posix-functions/iswpunct_l.texi: Likewise.
20075         * doc/posix-functions/iswspace_l.texi: Likewise.
20076         * doc/posix-functions/iswupper_l.texi: Likewise.
20077         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20078         * doc/posix-functions/isxdigit_l.texi: Likewise.
20079         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20080         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20081         * doc/posix-functions/strcoll_l.texi: Likewise.
20082         * doc/posix-functions/strfmon_l.texi: Likewise.
20083         * doc/posix-functions/strftime_l.texi: Likewise.
20084         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20085         * doc/posix-functions/strxfrm_l.texi: Likewise.
20086         * doc/posix-functions/tolower_l.texi: Likewise.
20087         * doc/posix-functions/toupper_l.texi: Likewise.
20088         * doc/posix-functions/towctrans_l.texi: Likewise.
20089         * doc/posix-functions/towlower_l.texi: Likewise.
20090         * doc/posix-functions/towupper_l.texi: Likewise.
20091         * doc/posix-functions/wcscoll_l.texi: Likewise.
20092         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20093         * doc/posix-functions/wctrans_l.texi: Likewise.
20094         * doc/posix-functions/wctype_l.texi: Likewise.
20095         * doc/glibc-functions/strptime_l.texi: Likewise.
20096         * doc/glibc-functions/strtod_l.texi: Likewise.
20097         * doc/glibc-functions/strtof_l.texi: Likewise.
20098         * doc/glibc-functions/strtol_l.texi: Likewise.
20099         * doc/glibc-functions/strtold_l.texi: Likewise.
20100         * doc/glibc-functions/strtoll_l.texi: Likewise.
20101         * doc/glibc-functions/strtoul_l.texi: Likewise.
20102         * doc/glibc-functions/strtoull_l.texi: Likewise.
20103         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20104         * doc/glibc-functions/wcstod_l.texi: Likewise.
20105         * doc/glibc-functions/wcstof_l.texi: Likewise.
20106         * doc/glibc-functions/wcstol_l.texi: Likewise.
20107         * doc/glibc-functions/wcstold_l.texi: Likewise.
20108         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20109         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20110         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20111
20112 2009-11-24  Bruno Haible  <bruno@clisp.org>
20113
20114         duplocale: Fix logic bug.
20115         * lib/duplocale.c: Don't include <langinfo.h>.
20116         (_NL_LOCALE_NAME): Remove macro.
20117         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20118         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20119
20120 2009-11-23  Jim Meyering  <meyering@redhat.com>
20121
20122         test-update-copyright: don't hard-code /usr/bin/perl
20123         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20124         perl to print the current year.  Gilles Espinasse reported that
20125         the replaced use of perl was hard-coded as /usr/bin/perl.
20126
20127 2009-11-23  Bruno Haible  <bruno@clisp.org>
20128
20129         duplocale: Add support for glibc 2.3.x.
20130         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20131
20132 2009-11-22  Bruno Haible  <bruno@clisp.org>
20133
20134         vasnprintf: Tiny optimization.
20135         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20136         MacOS X.
20137
20138 2009-11-22  Bruno Haible  <bruno@clisp.org>
20139
20140         Tests for module 'duplocale'.
20141         * modules/duplocale-tests: New file.
20142         * tests/test-duplocale.c: New file.
20143
20144         New module 'duplocale'.
20145         * m4/duplocale.m4: New file.
20146         * lib/locale.in.h (duplocale): New declaration.
20147         * lib/duplocale.c: New file.
20148         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20149         gl_LOCALE_H_DEFAULTS): New macros.
20150         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20151         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20152         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20153         REPLACE_DUPLOCALE.
20154         * modules/duplocale: New file.
20155         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20156
20157 2009-11-22  Bruno Haible  <bruno@clisp.org>
20158
20159         * modules/locale-tests (configure.ac): Test for newlocale function.
20160         * tests/test-locale.c: When the system has extended locale functions,
20161         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20162
20163         locale: Make locale_t available when possible.
20164         * lib/locale.in.h: Include <xlocale.h> when it exists.
20165         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20166         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20167         * modules/locale (Depends-on): Add extensions.
20168         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20169         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20170
20171 2009-11-22  Bruno Haible  <bruno@clisp.org>
20172
20173         Add comments.
20174         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20175         invocation.
20176         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
20177         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20178         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20179
20180 2009-11-22  Bruno Haible  <bruno@clisp.org>
20181
20182         error: account for the possibility of freopen (stdout).
20183         * lib/error.c: Include <unistd.h>.
20184         (flush_stdout): New function, extracted from error and error_at_line.
20185         Determine stdout's fd dynamically.
20186         (error, error_at_line): Invoke flush_stdout.
20187         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
20188         * modules/error (Depends-on): Add unistd.
20189
20190 2009-11-22  Bruno Haible  <bruno@clisp.org>
20191
20192         diffseq: Add comment.
20193         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
20194
20195 2009-11-22  Jim Meyering  <meyering@redhat.com>
20196
20197         c-stack: avoid defining an unused static function
20198         * lib/c-stack.c (find_stack_direction): Do not define this function
20199         when it will not be used.
20200
20201         diffseq: avoid spurious gcc warnings
20202         * lib/diffseq.h (IF_LINT2): Define.
20203         (compareseq): Use it to initialize two members of "part".
20204         This avoids two used-uninitialized warnings.
20205
20206 2009-11-21  Jim Meyering  <meyering@redhat.com>
20207
20208         c-stack: avoid "ignoring return value of `write'" warning
20209         * lib/c-stack.c: Include "ignore-value.h".
20210         (die): Explicitly ignore each write return value.
20211         * modules/c-stack (Depends-on): Add ignore-value.
20212
20213 2009-11-21  Bruno Haible  <bruno@clisp.org>
20214
20215         diffseq: reduce scope of variable 'best'.
20216         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
20217         variable, earlier used for two different purposes.
20218
20219 2009-11-21  Jim Meyering  <meyering@redhat.com>
20220
20221         diffseq: remove useless assignment to "best"
20222         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
20223         assignment.  At that point "best" is already guaranteed to be zero.
20224
20225 2009-11-20  Eric Blake  <ebb9@byu.net>
20226
20227         build: mention ftp redirector in release announcements
20228         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
20229         values that used to come from cfg.mk; mention FTP redirect URL.
20230         * build-aux/announce-gen: Mention the mirror list.
20231         Suggested by Karl Berry.
20232
20233         nanosleep: improve port to mingw
20234         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
20235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
20236         LIB_NANOSLEEP, but only when needed.
20237         * modules/select (Link): Document LIBSOCKET.
20238         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
20239         enough.
20240
20241         nanosleep: work around cygwin bug
20242         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
20243         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
20244         bug.
20245         (getnow): Delete, not needed.
20246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
20247         LIB_CLOCK_GETTIME.
20248         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
20249         clock-time, gettime.
20250         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
20251         bug.
20252         * modules/nanosleep-tests: New test.
20253         * tests/test-nanosleep.c: New file.
20254
20255         sleep: work around cygwin bug
20256         * lib/sleep.c (rpl_sleep): Work around the bug.
20257         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
20258         (gl_PREREQ_SLEEP): Delete unused macro.
20259         * modules/sleep (Depends-on): Add verify.
20260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20261         * modules/unistd (Makefile.am): Substitute witness.
20262         * lib/unistd.in.h (sleep): Update prototype.
20263         * doc/posix-functions/sleep.texi (sleep): Document the bug.
20264         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
20265         * modules/sleep-tests (Depends-on): Check for alarm.
20266
20267 2009-11-20  Jim Meyering  <meyering@redhat.com>
20268
20269         maint.mk: improve sc_prohibit_magic_number_exit
20270         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
20271         so it does not match uses like System.exit(1).
20272         Add comments showing how to correct all offenders.
20273
20274 2009-11-19  Eric Blake  <ebb9@byu.net>
20275
20276         xalloc-die-tests: add missing library
20277         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
20278
20279         test-xvasprintf: silence compiler warnings
20280         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
20281         empty string from gcc.
20282
20283 2009-11-19  Jim Meyering  <meyering@redhat.com>
20284
20285         xfreopen: new module, from coreutils
20286         * modules/xfreopen: New module.
20287         * lib/xfreopen.c: New file.
20288         * lib/xfreopen.h: New file.
20289         * MODULES.html.sh (File stream based Input/Output"): Add it.
20290
20291 2009-11-19  Eric Blake  <ebb9@byu.net>
20292
20293         manywarnings: depend on warnings
20294         * modules/manywarnings (Depends-on): Add warnings.
20295
20296         build: avoid compiler warnings
20297         * lib/select.c (rpl_select): Delete unused variable.
20298         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
20299
20300 2009-11-18  Eric Blake  <ebb9@byu.net>
20301
20302         tests: avoid false negative with --with-packager
20303         * tests/test-version-etc.sh: Discard packager information.
20304         * tests/test-argp-version-etc-1.sh: Likewise.
20305         Reported by Mike Frysinger.
20306
20307         utimens: fix regression on Solaris
20308         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
20309         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
20310         can only change fd timestamps via futimesat.  Instead, use an
20311         additional witness macro to avoid BSD bug.
20312         Reported by Jim Meyering.
20313
20314 2009-11-17  Eric Blake  <ebb9@byu.net>
20315
20316         usleep: use it to simplify tests
20317         * modules/stat-time-tests (Depends-on): Add usleep.
20318         (configure.ac): Drop usleep check.
20319         * modules/chown-tests (Depends-on, configure.ac): Likewise.
20320         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
20321         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
20322         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
20323         * modules/openat-tests (Depends-on, configure.ac): Likewise.
20324         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
20325         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
20326         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
20327         Likewise.
20328         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
20329         * tests/test-lchown.h (nap): Likewise.
20330         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
20331         * tests/test-stat-time.c (nap): Likewise.
20332         * tests/test-utimens-common.h (nap): Update comments.
20333
20334         usleep: new module
20335         * modules/usleep: New file.
20336         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20337         * lib/usleep.c (usleep): Likewise.
20338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20339         * modules/unistd (Makefile.am): Substitute witnesses.
20340         * lib/unistd.in.h (usleep): Add declaration.
20341         * doc/pastposix-functions/usleep.texi (usleep): Document this.
20342         * MODULES.html.sh (Date and time): Likewise.
20343         * modules/usleep-tests (Depends-on): New test.
20344         * tests/test-usleep.c: New file.
20345
20346         chown: work around OpenBSD bug
20347         * lib/chown.c (rpl_chown): Work around the bug.
20348         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
20349         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
20350         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
20351         * modules/chown (Depends-on): Add stdbool.
20352         * modules/lchown (Depends-on): Likewise.
20353         * doc/posix-functions/chown.texi (chown): Document the bug.
20354         * doc/posix-functions/lchown.texi (lchown): Likewise.
20355         * tests/test-lchown.h (test_chown): Relax test.
20356
20357         mkstemp: avoid conflict with C++ keyword template
20358         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
20359         * lib/mkostemp.c (mkostemp): Likewise.
20360         * lib/mkostemps.c (mkostemps): Likewise.
20361         * lib/mkstemp.c (mkstemp): Likewise.
20362         * lib/mkstemps.c (mkstemps): Likewise.
20363
20364         xalloc-die-tests: optimize
20365         * tests/test-xalloc-die.sh: Reduce number of processes.
20366
20367 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20368
20369         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
20370         patch from ludo@gnu.org (Ludovic Courtès).
20371
20372 2009-11-17  Jim Meyering  <meyering@redhat.com>
20373
20374         version-etc: use proper license string
20375         * modules/version-etc (License): Use LGPL, not LGPLv3+.
20376         * modules/version-etc-fsf: Likewise.
20377
20378 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20379
20380         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
20381         printed to stdout.  Deal with EOL differences.
20382
20383 2009-11-17  Eric Blake  <ebb9@byu.net>
20384
20385         unsetenv: work around Solaris bug
20386         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
20387         * lib/unsetenv.c (rpl_unsetenv): Work around it.
20388         Reported by Jim Meyering.
20389
20390         vasnprintf: avoid compiler warnings
20391         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
20392         variables.
20393         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
20394
20395 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20396
20397         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
20398         settings since xalloc-die is no longer the self test,
20399         xalloc-die.sh is.
20400
20401 2009-11-17  Jim Meyering  <meyering@redhat.com>
20402
20403         test-xalloc-die.sh: make the code agree with the commit log
20404         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
20405         at the end, just in case you happen to have a test-xalloc-die
20406         program in some other PATH directory.
20407
20408         test-xalloc-die.sh: fix a portability bug
20409         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
20410         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
20411         Otherwise, argv[0] (as often seen in diagnostics) would be too
20412         system-dependent, sometimes with, and sometimes without the leading "./".
20413
20414         version-etc-fsf: relax license to LGPLv3+
20415         * modules/version-etc-fsf (License): Relax license.
20416
20417 2009-11-16  Eric Blake  <ebb9@byu.net>
20418
20419         xalloc-die-tests: avoid printing null pointer
20420         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
20421         shell script.
20422         * tests/test-xalloc-die.c (program_name): Declare.
20423         * tests/test-xalloc-die.sh (tmpfiles): New file.
20424
20425         setenv, unsetenv: work around various bugs
20426         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
20427         (setenv) [HAVE_SETENV]: Work around bugs.
20428         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
20429         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20430         for bugs.
20431         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20432         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20434         * modules/stdlib (Makefile.am): Update substitutions.
20435         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20436         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20437         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20438         * modules/setenv-tests: New test.
20439         * modules/unsetenv-tests: Likewise.
20440         * tests/test-setenv.c: New file.
20441         * tests/test-unsetenv.c: Likewise.
20442
20443 2009-11-16  Jim Meyering  <meyering@redhat.com>
20444
20445         version-etc: relax license to LGPLv3+
20446         * modules/version-etc (License): Relax license.
20447
20448         better AC_REQUIRE expanded-before-required-warning avoidance
20449         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
20450         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
20451         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
20452         which is no longer needed.
20453
20454 2009-11-16  Eric Blake  <ebb9@byu.net>
20455
20456         test-freading: clean up temporary file
20457         * tests/test-freading.c (main): Remove file on success, and use
20458         ASSERT more liberally.
20459         Reported by Jim Meyering.
20460
20461 2009-11-16  Jim Meyering  <meyering@redhat.com>
20462
20463         avoid new AC_REQUIRE expanded-before-required warnings
20464         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
20465         merely using it.
20466         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
20467         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
20468
20469 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20470
20471         * tests/test-xalloc-die.c: New file.
20472         * modules/xalloc-die-tests: New file.
20473         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
20474         XFAIL_TESTS so it can be appended by modules.
20475
20476 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20477
20478         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
20479         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
20480
20481 2009-11-14  Eric Blake  <ebb9@byu.net>
20482
20483         fnmatch: avoid compiler warning
20484         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
20485         to silence compiler warning about mismatch signedness in ?:.
20486         Reported by Robert Millan.
20487
20488         intprops: add double-inclusion guard
20489         * lib/intprops.h: Allow idempotent includes.
20490         Suggested by Bruce Korb.
20491
20492         openat: detect Solaris fchownat bug
20493         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
20494         penalizing glibc chownat when only lchownat is broken.
20495         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
20496         trailing slash bugs.
20497         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
20498         * modules/openat-tests (Files): Include more files.
20499         (Depends-on): Add mgetgroups, sleep, stat-time.
20500         (configure.ac): Add additional checks.
20501         (Makefile.am): Build new test.
20502         * tests/test-fchownat.c: New file.
20503
20504         lchown: detect Solaris and FreeBSD bug
20505         * lib/lchown.c (rpl_lchown): Work around bug.
20506         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
20507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20508         * modules/unistd (Makefile.am): Populate it.
20509         * lib/unistd.in.h (lchown): Update declaration.
20510         * doc/posix-functions/lchown.texi (lchown): Document the bug.
20511         * modules/lchown-tests: New file.
20512         * tests/test-lchown.h (test_lchown): Likewise.
20513         * tests/test-lchown.c (main): Likewise.
20514
20515         chown: detect Solaris and FreeBSD bug
20516         * lib/chown.c (rpl_chown): Work around bug.
20517         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
20518         (gl_PREREQ_CHOWN): Delete.
20519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20520         * modules/unistd (Makefile.am): Populate it.
20521         * lib/unistd.in.h (chown): Update declaration.
20522         * lib/lchown.c (chown): Update client.
20523         * modules/lchown (Depends-on): Add lstat.
20524         * doc/posix-functions/chown.texi (chown): Document the bug.
20525         * doc/posix-functions/getgroups.texi (getgroups): Document
20526         getgroups pitfall.
20527         * modules/chown-tests: New file.
20528         * tests/test-chown.h (test_chown): Likewise.
20529         * tests/test-chown.c (main): Likewise.
20530
20531 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
20532
20533         gnulib-tool: correctly detect absence of m4 directories
20534         * gnulib-tool: Avoid extra newline on data passed to wc -l.
20535
20536 2009-11-14  Jim Meyering  <meyering@redhat.com>
20537
20538         maint.mk: Prohibit inclusion of "xalloc.h" without use.
20539         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20540
20541 2009-11-14  John W. Eaton  <jwe@gnu.org>
20542
20543         strftime.h: wrap funtion declaration in extern "C" block
20544         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
20545
20546 2009-11-13  Eric Blake  <ebb9@byu.net>
20547
20548         getgroups: avoid compiler warning
20549         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
20550
20551         getgroups: work around FreeBSD bug
20552         * lib/getgroups.c (rpl_getgroups): Work around the bug.
20553         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
20554         * doc/posix-functions/getgroups.texi (getgroups): Document it.
20555         * tests/test-getgroups.c (main): Fix buffer overrun.
20556
20557         getgroups: avoid compilation failure
20558         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
20559         * modules/getgroups (Depends-on): Add stdint.
20560
20561 2009-11-13  Jim Meyering  <meyering@redhat.com>
20562
20563         test-getgroups: avoid compilation failure
20564         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
20565
20566 2009-11-13  Eric Blake  <ebb9@byu.net>
20567
20568         mgetgroups: new module, taken from coreutils
20569         * modules/mgetgroups: New file.
20570         * lib/mgetgroups.h: Likewise.
20571         * lib/mgetgroups.c (mgetgroups): Likewise.
20572         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
20573         * MODULES.html.sh (Users and groups): Mention it.
20574
20575         getgroups: don't expose GETGROUPS_T to user
20576         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
20577         an element at a time if GETGROUPS_T is wrong size.
20578         * lib/getugroups.h (getugroups): Change signature.
20579         * lib/unistd.in.h (getgroups): Likewise.
20580         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
20581         signature needs fixing.
20582         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
20583         AC_TYPE_GETGROUPS.
20584         * modules/group-member (Depends-on): Add getgroups.
20585         * lib/group-member.c (group_info, get_group_info): Use gid_t.
20586         (group_member): Rely on getgroups replacement.
20587         * lib/getugroups.c (getugroups): Use gid_t.
20588         * tests/test-getgroups.c (main): Likewise.
20589         * NEWS: Mention the signature change.
20590         * doc/posix-functions/getgroups.texi (getgroups): Mention the
20591         problem with signature.
20592         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
20593         GETGROUPS_T is still useful for setgroups.
20594
20595         getgroups, getugroups: provide stubs for mingw
20596         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
20597         * lib/getugroups.c (getugroups): Likewise.
20598         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
20599         function.  Modernize replacement scheme.
20600         (gl_PREREQ_GETGROUPS): Delete.
20601         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
20602         * modules/getgroups (configure.ac): Declare witness.
20603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20604         * modules/unistd (Depends-on): Substitute witness.
20605         * lib/unistd.in.h (getgroups): Declare replacement.
20606
20607         getgroups: avoid calling exit
20608         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
20609         drop xalloc.
20610         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
20611         dependencies.
20612         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
20613         exiting, in the rare case of malloc failure.
20614
20615         getgroups: fix logic error
20616         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
20617         has more than 20 groups.
20618         * modules/getgroups-tests: New test.
20619         * tests/test-getgroups.c: New file.
20620
20621 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20622
20623         * tests/test-base64.c: Improve.
20624
20625 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20626
20627         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
20628         Blake <ebb9@byu.net>.
20629
20630 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20631
20632         * tests/test-xvasprintf.c: Add %s%s related checks.
20633
20634 2009-11-12  Eric Blake  <ebb9@byu.net>
20635
20636         version-etc: match standards.texi style
20637         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
20638         and use <> only for URLs.
20639
20640 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
20641
20642         fts: do not fail on a submount during traversal
20643         * lib/fts.c (fts_build): Read the stat info again after opening
20644         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20645         Original report at http://bugzilla.redhat.com/501848.
20646
20647 2009-11-12  Jim Meyering  <meyering@redhat.com>
20648
20649         bootstrap: sync from coreutils
20650         * build-aux/bootstrap (bootstrap_epilogue): New function.
20651         Use git_modules_config in one more place.  This make bootstrap's
20652         --gnulib-srcdir option more useful for testing.
20653
20654         bootstrap: generalize autoheader check
20655         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20656         AC_CONFIG_HEADERS.
20657
20658 2009-11-11  Eric Blake  <ebb9@byu.net>
20659
20660         mkfifoat: use new modules for Solaris and BSD bugs
20661         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20662         * lib/mkfifoat.c (mknodat): Split...
20663         * lib/mknodat.c (mknodat): ...into new file.
20664         * modules/mkfifoat (Files): Ship new file.
20665         (Depends-on): Add mkfifo, mknod.
20666         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20667         (Depends-on): Add symlink.
20668         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
20669         redundant with test_mkfifo.h.
20670         (do_mkfifoat, do_mknodat): New helpers.
20671
20672         mknod: new module
20673         * modules/mknod: New file.
20674         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20675         * lib/mknod.c (mknod): Likewise.
20676         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20677         defaults.
20678         * modules/sys_stat (Makefile.am): Substitute them.
20679         * lib/sys_stat.in.h (mknod): Declare replacement.
20680         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20681         Document it.
20682         * doc/posix-functions/mknod.texi (mknod): Likewise.
20683         * modules/mknod-tests: New test.
20684         * tests/test-mknod.c: Likewise.
20685
20686         mkfifo: new module
20687         * modules/mkfifo: New file.
20688         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20689         * lib/mkfifo.c (mkfifo): Likewise.
20690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20691         defaults.
20692         * modules/sys_stat (Makefile.am): Substitute them.
20693         * lib/sys_stat.in.h (mkfifo): Declare replacement.
20694         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20695         Document it.
20696         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
20697         * modules/mkfifo-tests: New test.
20698         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
20699         from test-mkfifoat.c.
20700         * tests/test-mkfifo.c: New file.
20701
20702         readlink: detect FreeBSD bug
20703         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
20704         slash on symlink.
20705         * doc/posix-functions/readlink.texi (readlink): Document the bug.
20706         * tests/test-readlink.h (test_readlink): Enhance test.
20707
20708         symlink: detect FreeBSD bug
20709         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
20710         slash on symlink.
20711         * doc/posix-functions/symlink.texi (symlink): Document the bug.
20712         * tests/test-symlink.h (test_symlink): Enhance test.
20713
20714 2009-11-10  Eric Blake  <ebb9@byu.net>
20715
20716         link: detect FreeBSD bug
20717         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
20718         symlink.
20719         * doc/posix-functions/link.texi (link): Document the bug.
20720         * tests/test-link.h (test_link): Enhance test.
20721         * tests/test-linkat.c (main): Update caller.
20722
20723         unlink, remove: detect FreeBSD bug
20724         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
20725         slash on symlink.
20726         * doc/posix-functions/unlink.texi (unlink): Document the bug.
20727         * doc/posix-functions/remove.texi (remove): Likewise.
20728         * tests/test-unlink.h (test_unlink): Enhance test.
20729         * tests/test-remove.c (main): Likewise.
20730
20731 2009-11-09  Eric Blake  <ebb9@byu.net>
20732
20733         rename: detect FreeBSD bug
20734         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
20735         slash on symlink.
20736         * modules/renameat-tests (Depends-on): Add filenamecat.
20737         * tests/test-rename.h (test_rename): Allow one more errno.
20738         * tests/test-renameat.c (main): Likewise.
20739         * doc/posix-functions/rename.texi (rename): Document the bug.
20740
20741         open: detect FreeBSD bug
20742         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
20743         symlink.
20744         * doc/posix-functions/open.texi (open): Document the bug.
20745         * doc/posix-functions/utimes.texi (utimes): Likewise.
20746         * tests/test-open.h (test_open): Add parameters, and test symlink
20747         handling.
20748         * tests/test-open.c (main): Adjust caller.
20749         * tests/test-fcntl-safer.c (main): Likewise.
20750         * modules/open-tests (Depends-on): Add stdbool, symlink.
20751         * modules/fcntl-safer-tests (Depends-on): Likewise.
20752         * tests/test-openat.c (main): Add test-open tests.
20753
20754         stat: detect FreeBSD bug
20755         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
20756         symlink.
20757         * doc/posix-functions/stat.texi (stat): Document the bug.
20758         * tests/test-stat.h (test_stat_func): Add argument.
20759         * tests/test-stat.c (main): Adjust caller.
20760         * tests/test-fstatat.c (main): Likewise.
20761         * modules/stat-tests (Depends-on): Add stdbool, symlink.
20762         Reported by Jim Meyering.
20763
20764 2009-11-09  James Youngman  <jay@gnu.org>
20765
20766         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
20767         * lib/strftime.c: Correct placement of #include "ignore-value.h".
20768
20769 2009-11-08  Jim Meyering  <meyering@redhat.com>
20770
20771         utimens: remove invalid futimesat call
20772         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
20773         It used the file descriptor of the target file as the DIR_FD
20774         parameter and NULL as the file name.  That caused failure with
20775         errno == EFAULT on FreeBSD-8.0-rc2
20776
20777 2009-11-07  Eric Blake  <ebb9@byu.net>
20778
20779         fflush, freadseek: use fseeko, not fseek
20780         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20781         (clear_ungetc_buffer): Avoid potential problems on large files.
20782         * lib/freadseek.c (freadseek): Likewise.
20783         * modules/freadseek (Depends-on): Add fseeko.
20784         * modules/fseek (configure.ac): Set a witness.
20785         * tests/test-fflush.c (main): Use fseeko.
20786         * tests/test-fpurge.c (fseek): Disable link warning.
20787         * tests/test-freadable.c (fseek): Likewise.
20788         * tests/test-freading.c (fseek): Likewise.
20789         * tests/test-fseeko.c (fseek): Likewise.
20790         * tests/test-ftell.c (fseek): Likewise.
20791         * tests/test-ftello.c (fseek): Likewise.
20792         * tests/test-fwritable.c (fseek): Likewise.
20793         * tests/test-fwriting.c (fseek): Likewise.
20794
20795 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20796
20797         * modules/memchr (Depends-on): Drop getpagesize dependency.
20798
20799 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20800
20801         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20802         Reported by Ludovic Courtès.
20803         * build-aux/pmccabe2html: Improve example usage.
20804         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20805
20806 2009-11-06  Jim Meyering  <meyering@redhat.com>
20807
20808         do-release-commit-and-tag: New module.
20809         Automate the release-commit and tag process.
20810         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20811         * modules/do-release-commit-and-tag: New file.
20812         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20813
20814 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20815
20816         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
20817         because test-select.c uses inet_pton.
20818
20819 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20820
20821         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
20822         GETADDRINFO_LIB.  Bump serial number.
20823         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
20824         Suggested by Eric Blake <ebb9@byu.net>.
20825
20826 2009-11-05  Eric Blake  <ebb9@byu.net>
20827
20828         strtod: detect darwin bug
20829         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
20830         Reported by Leo Davis.
20831
20832         freopen-safer: new module
20833         * modules/freopen-safer: New module.
20834         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
20835         * lib/freopen-safer.c (freopen_safer): New file.
20836         * lib/stdio-safer.h (freopen_safer): New declaration.
20837         * lib/stdio--.h (freopen): New override.
20838         * MODULES.html.sh (File stream based Input/Output): Mention it.
20839         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
20840         freopen-safer module.
20841         * doc/posix-functions/stderr.texi (stderr): Likewise.
20842         * doc/posix-functions/stdin.texi (stdin): Likewise.
20843         * doc/posix-functions/stdout.texi (stdout): Likewise.
20844         * modules/freopen-safer-tests: New test.
20845         * tests/test-reopen-safer.c: New file.
20846
20847 2009-11-05  Jim Meyering  <meyering@redhat.com>
20848
20849         maint.mk: Prohibit inclusion of "close-stream.h" without use.
20850         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20851
20852 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20853
20854         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
20855
20856 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20857
20858         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
20859
20860 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20861
20862         Fix link error.
20863         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20864         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20865
20866 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20867
20868         * tests/test-func.c: Also test value of __func__.
20869
20870 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20871
20872         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
20873         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
20874
20875 2009-11-05  Bruno Haible  <bruno@clisp.org>
20876
20877         Fix link error.
20878         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20879         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20880         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
20881
20882 2009-11-05  Bruno Haible  <bruno@clisp.org>
20883
20884         Tests for module 'inet_pton'.
20885         * modules/inet_pton-tests: New file.
20886         * tests/test-inet_pton.c: New file.
20887
20888 2009-11-05  Bruno Haible  <bruno@clisp.org>
20889
20890         Tests for module 'inet_ntop'.
20891         * modules/inet_ntop-tests: New file.
20892         * tests/test-inet_ntop.c: New file.
20893
20894 2009-11-04  Eric Blake  <ebb9@byu.net>
20895
20896         stdlib-safer: wrap all mkstemp variants
20897         * modules/mkostemp (configure.ac): Set witness.
20898         * modules/mkostemps (configure.ac): Likewise.
20899         * modules/mkstemps (configure.ac): Likewise.
20900         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
20901         (mkstemps_safer): Wrap more functions.
20902         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
20903         wrapping.
20904         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
20905         (mkstemps_safer): Implement the wrappers.
20906
20907         mkstemps, mkostemps: new modules
20908         * modules/mkostemps: New module.
20909         * modules/mkstemps: Likewise.
20910         * lib/mkostemps.c (mkostemps): New file.
20911         * lib/mkstemps.c (mkstemps): Likewise.
20912         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
20913         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
20914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
20915         * modules/stdlib (Makefile.am): Substitute them.
20916         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
20917         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
20918         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20919         * doc/gnulib.texi (Glibc stdlib.h): Include them.
20920         * MODULES.html.sh (File system functions): Mention them.
20921
20922         tempname: resync from glibc
20923         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
20924         same values for __GT_FILE as glibc.  Abort even when assertions
20925         are disabled.
20926         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
20927         match its value otherwise.  Allow idempotent inclusion.
20928         * lib/mkdtemp.c (mkdtemp): Adjust caller.
20929         * lib/mkostemp.c (mkostemp): Likewise.
20930         * lib/mkstemp.c (mkstemp): Likewise.
20931         * lib/tmpfile.c (tmpfile): Likewise.
20932         * NEWS: Document this.
20933
20934         utimens: fix use of futimens on older Linux
20935         * lib/utimens.c (fdutimens): Use updated, rather than original,
20936         timespec to avoid bug in older Linux kernel.
20937         Reported by Simon Josefsson.
20938
20939 2009-11-04  Bruno Haible  <bruno@clisp.org>
20940
20941         Make num_processors more flexible and consistent.
20942         * lib/nproc.h (enum nproc_query): New type.
20943         (num_processors): Add a 'query' argument.
20944         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
20945         (num_processors): Add a 'query' argument. Test the value of the
20946         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
20947         mingw, count the number of CPUs available for the current process.
20948         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
20949         Check for sched_getaffinity and sched_getaffinity_np.
20950         * modules/nproc (Depends-on): Add c-ctype, extensions.
20951         * NEWS: Mention the change.
20952
20953 2009-11-03  Bruno Haible  <bruno@clisp.org>
20954
20955         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
20956
20957 2009-11-03  Jim Meyering  <meyering@redhat.com>
20958
20959         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
20960         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
20961         if it is defined.
20962
20963 2009-11-02  Eric Blake  <ebb9@byu.net>
20964
20965         mktime, timegm: share common declaration
20966         * lib/mktime-internal.h: New file.
20967         * lib/mktime.c: Use it rather than open-coding a declaration.
20968         * lib/timegm.c: Likewise.
20969         * modules/mktime (Files): Ship it.
20970         * modules/timegm (Files): Likewise.
20971         Suggested by Bruno Haible.
20972
20973         test-update-copyright: update test to match script changes
20974         * tests/test-update-copyright.sh: Avoid hard-coding perl
20975         location.  Don't update *.bak created by earlier runs.
20976
20977 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20978             Simon Josefsson  <simon@josefsson.org>
20979             Bruno Haible  <bruno@clisp.org>
20980
20981         Fix link error on Solaris 8.
20982         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
20983         also in libnsl. Define also INET_PTON_LIB.
20984         * modules/inet_pton (Link): New section.
20985
20986 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20987             Bruno Haible  <bruno@clisp.org>
20988
20989         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
20990         * modules/inet_ntop (Link): New section.
20991         Reported by Boyan Kasarov <bkasarov@gmail.com>.
20992
20993 2009-11-02  Eric Blake  <ebb9@byu.net>
20994
20995         maint: avoid compiler warnings in m4 macros
20996         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
20997         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
20998
20999 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21000
21001         * m4/pmccabe2html.m4: Remove file.
21002         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21003         function.  Change maintainer.
21004         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21005         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21006         Courtès).
21007
21008 2009-10-31  Eric Blake  <ebb9@byu.net>
21009
21010         fseeko: fix m4 regression
21011         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21012         regression from 2009-10-27.
21013         Reported by Ralf Wildenhues.
21014
21015 2009-10-31  Jim Meyering  <meyering@redhat.com>
21016
21017         inttostr: aesthetics and improved (compile-time) safety
21018         Define inttype_is_signed rather than inttype_is_unsigned,
21019         since the sole use is via "#if inttype_is_signed".
21020         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21021         inttype_is_unsigned.
21022         * lib/offtostr.c (inttype_is_signed): Likewise.
21023         * lib/uinttostr.c (inttype_is_signed): Likewise.
21024         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21025         * lib/inttostr.c (inttostr): Use verify to cross-check the
21026         inttype_is_signed value and the signedness of the actual type.
21027         * modules/inttostr (Depends-on): Add verify.
21028
21029 2009-10-30  Eric Blake  <ebb9@byu.net>
21030
21031         build: avoid compiler warnings
21032         * lib/fchmodat.c (lchmod): Mark unused variables.
21033         * lib/getopt.c (_getopt_initialize): Likewise.
21034         * lib/mktime.c (__mktime_internal): Provide prototype.
21035         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21036         older gcc that do not understand #pragma GCC diagnostic.
21037         * lib/uinttostr.c (inttype_is_unsigned): Define.
21038         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21039
21040 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21041
21042         stat: fix compilation on AIX
21043         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21044         only see struct stat64.
21045
21046 2009-10-30  Eric Blake  <ebb9@byu.net>
21047
21048         exclude: make more robust
21049         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21050         rather than masking a coding bug.
21051         Suggested by Bruno Haible.
21052
21053 2009-10-30  Jim Meyering  <meyering@redhat.com>
21054
21055         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21056         Rather than putting #!/usr/bin/perl on the first line,
21057         start with a variant of what's recommended by "man perlrun" that
21058         invokes the first "perl" program from your shell's search path.
21059         * build-aux/gitlog-to-changelog: Replace #!... as above.
21060         Add a "Local Variables" perl mode setting.
21061         Prompted by a patch from Ludovic Courtès.
21062         Improved by Eric Blake.
21063         * build-aux/useless-if-before-free: Likewise.
21064         * build-aux/announce-gen: Likewise.
21065         * build-aux/update-copyright: Likewise.
21066
21067 2009-10-29  Eric Blake  <ebb9@byu.net>
21068
21069         filenamecat-lgpl: adjust clients
21070         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21071         filenamecat.
21072         * modules/renameat (Depends-on): Likewise.
21073
21074         filenamecat: split into filenamecat-lgpl
21075         * modules/filenamecat-lgpl: New module.
21076         * modules/filenamecat (Files): Move library-safe files into
21077         filenamecat-lgpl.
21078         (Depends-on): Add filenamecat-lgpl.
21079         (configure.ac): Declare witness.
21080         * lib/filenamecat.h (file_name_concat): Only declare when using
21081         GPL module.
21082         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21083         Move...
21084         * lib/filenamecat-lgpl.c: ...into new file.
21085         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21086         (gl_FILE_NAME_CONCAT): Use it.
21087         * MODULES.html.sh (File system functions): Mention new module.
21088
21089         argp: avoid memory leak
21090         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21091         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21092         base_name, since the latter malloc()s and can call exit().
21093         Leak introduced 2006-07-03.
21094
21095         dirname-lgpl: adjust clients that don't need full dirname
21096         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21097         * modules/filenamecat (Depends-on): Likewise.
21098         * modules/linkat (Depends-on): Likewise.
21099         * modules/mkancesdirs (Depends-on): Likewise.
21100         * modules/mkdir (Depends-on): Likewise.
21101         * modules/openat (Depends-on): Likewise.
21102         * modules/savewd (Depends-on): Likewise.
21103         * modules/rename (Depends-on): Likewise.
21104         (License): Relax license.
21105         * modules/mkdir-tests (Depends-on): Drop progname.
21106         (Makefile.am): Delete unneeded LDADD.
21107         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21108
21109         dirname: split into dirname-lgpl
21110         * modules/dirname-lgpl: New module.
21111         * modules/dirname (Files): Move library-safe files into
21112         dirname-lgpl.
21113         (Depends-on): Add dirname-lgpl.
21114         (configure.ac): Declare witness.
21115         * modules/double-slash-root (License): Relax license.
21116         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21117         module.
21118         * lib/dirname.c (dir_len, mdir_name): Move...
21119         * lib/dirname-lgpl.c: ...into new file.
21120         * lib/basename.c (last_component, base_len): Move...
21121         * lib/basename-lgpl.c: ...into new file.
21122         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21123         (gl_DIRNAME): Use it.
21124         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21125         Mention new module.
21126         * modules/dirname-tests (Depends-on): Add progname.
21127         * tests/test-dirname.c (program_name): Delete.
21128
21129         mkdir: make safe for libraries
21130         * modules/mkdir (Depends-on): Drop xalloc.
21131         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21132         exit.
21133
21134         tests: avoid some compiler warnings
21135         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21136         literals.
21137         * tests/test-memchr.c (main): Avoid type mismatch.
21138         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21139         * tests/test-base64.c (main): Likewise.
21140         * tests/test-getdelim.c (main): Likewise.
21141         * tests/test-gethostname.c (main): Likewise.
21142         * tests/test-getline.c (main): Likewise.
21143         * tests/test-netinet_in.c (main): Likewise.
21144         * tests/test-select.c (open_server_socket, main): Likewise.
21145         * tests/test-select-stdin.c (main): Likewise.
21146         * tests/test-sockets.c (main): Likewise.
21147         * tests/test-strsignal.c (main): Likewise.
21148         * tests/test-sys_select.c (main): Likewise.
21149         * tests/test-sys_socket.c (main): Likewise.
21150         * tests/test-u64.c (main): Likewise.
21151         * tests/test-xfprintf-posix.c (main): Likewise.
21152         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21153
21154         sockets: avoid compiler warning
21155         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21156
21157         maint: detect usage(1) and other suspicious exits
21158         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21159
21160 2009-10-29  Jim Meyering  <meyering@redhat.com>
21161
21162         timespec: long-to-int truncation could make timespec_cmp malfunction
21163         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21164         a multiple of 2^32 nanoseconds as no difference.
21165
21166 2009-10-28  Jim Meyering  <meyering@redhat.com>
21167
21168         fprintftime: wrap macro code argument in "do {...} while(0)"
21169         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21170         cpy macro must be a statement that can be followed by a semicolon.
21171         Now that the else clause contains a comment and is hence longer
21172         than one line, I require curly braces.  That in turn requires
21173         that we wrap this code block in the standard do...while(0).
21174
21175         fprintftime: remove stray semicolon from previous change
21176         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
21177
21178         fprintftime: avoid a warning about ignored fwrite return value
21179         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
21180         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
21181         that is unsafe.
21182         * modules/fprintftime (Depends-on): Add ignore-value.
21183
21184         exclude: avoid an unwarranted warning
21185         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
21186
21187 2009-10-27  Eric Blake  <ebb9@byu.net>
21188
21189         fseek: avoid compilation failure when fflush is replaced
21190         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
21191         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
21192         module is in use.
21193         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
21194         module is not in use; since REPLACE_FSEEK worked otherwise.
21195         (GNULIB_FTELLO): Likewise for ftell.
21196         Reported by Ian Beckwith and others.
21197
21198 2009-10-27  Bruno Haible  <bruno@clisp.org>
21199
21200         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
21201         Reported by Jim Meyering.
21202
21203 2009-10-27  Jim Meyering  <jim@meyering.net>
21204             Bruno Haible  <bruno@clisp.org>
21205
21206         Avoid warning despite dropping the return value of fwrite.
21207         * lib/unicodeio.c: Include ignore-value.h.
21208         (fwrite_success_callback): Explicitly ignore fwrite's return value.
21209         * modules/unicodeio (Depends-on): Add ignore-value.
21210
21211 2009-10-26  Eric Blake  <ebb9@byu.net>
21212
21213         areadlinkat: fix fallback path
21214         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
21215         pointer and zero.
21216
21217 2009-10-22  Pádraig Brady  <P@draigBrady.com>
21218
21219         Use a better IO block size for modern systems
21220         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
21221         * lib/md2.c: Likewise.
21222         * lib/md4.c: Likewise.
21223         * lib/md5.c: Likewise.
21224         * lib/sha1.c: Likewise.
21225         * lib/sha256.c: Likewise.
21226         * lib/sha512.c: Likewise.
21227
21228 2009-10-22  Eric Blake  <ebb9@byu.net>
21229
21230         tests: avoid several compiler warnings
21231         * tests/test-getcwd.c (main): Avoid buffer underflow.
21232         * tests/test-getdate.c (main): String literals are not safe with
21233         putenv, so use setenv.  Declare unused argument.
21234         * modules/getdate-tests (Depends-on): Add setenv.
21235         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
21236         problems with string literals in char *.
21237         * tests/test-hash.c (main): Avoid shadowing declaration.
21238         (insert_new): Treat string literals as char const *.
21239         * tests/test-getopt.h (test_getopt): Likewise.
21240         (getopt_loop): Alter types to minimize casting elsewhere.
21241         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
21242         (test_getopt_long_posix): Likewise.
21243         (do_getopt_long): Add wrapper to minimize casting.
21244         * tests/test-atexit.c (clear_temp_file): Use void.
21245         * tests/test-areadlink-with-size.c (main): Declare unused
21246         arguments.
21247         * tests/test-areadlink.c (main): Likewise.
21248         * tests/test-areadlinkat-with-size.c (main): Likewise.
21249         * tests/test-areadlinkat.c (main): Likewise.
21250         * tests/test-canonicalize-lgpl.c (main): Likewise.
21251         * tests/test-canonicalize.c (main): Likewise.
21252         * tests/test-dirent-safer.c (main): Likewise.
21253         * tests/test-dirname.c (main): Likewise.
21254         * tests/test-dup2.c (main): Likewise.
21255         * tests/test-fchdir.c (main): Likewise.
21256         * tests/test-fcntl-h.c (main): Likewise.
21257         * tests/test-fcntl-safer.c (main): Likewise.
21258         * tests/test-fdopendir.c (main): Likewise.
21259         * tests/test-fdutimensat.c (main): Likewise.
21260         * tests/test-fflush.c (main): Likewise.
21261         * tests/test-filenamecat.c (main): Likewise.
21262         * tests/test-filevercmp.c (main): Likewise.
21263         * tests/test-fopen-safer.c (main): Likewise.
21264         * tests/test-fopen.c (main): Likewise.
21265         * tests/test-fpending.c (main): Likewise.
21266         * tests/test-fpurge.c (main): Likewise.
21267         * tests/test-freading.c (main): Likewise.
21268         * tests/test-fstatat.c (main): Likewise.
21269         * tests/test-fsync.c (main): Likewise.
21270         * tests/test-futimens.c (main): Likewise.
21271         * tests/test-getndelim2.c (main): Likewise.
21272         * tests/test-gettimeofday.c (main): Likewise.
21273         * tests/test-getopt.c (main): Likewise.
21274         * tests/test-i-ring.c (main): Likewise.
21275         * tests/test-inttypes.c (main): Likewise.
21276         * tests/test-link.c (main): Likewise.
21277         * tests/test-lstat.c (main): Likewise.
21278         * tests/test-math.c (main): Likewise.
21279         * tests/test-md5.c (main): Likewise.
21280         * tests/test-memchr2.c (main): Likewise.
21281         * tests/test-memrchr.c (main): Likewise.
21282         * tests/test-mkdir.c (main): Likewise.
21283         * tests/test-mkdirat.c (main): Likewise.
21284         * tests/test-mkfifoat.c (main): Likewise.
21285         * tests/test-open.c (main): Likewise.
21286         * tests/test-openat-safer.c (main): Likewise.
21287         * tests/test-openat.c (main): Likewise.
21288         * tests/test-quotearg.c (main): Likewise.
21289         * tests/test-rawmemchr.c (main): Likewise.
21290         * tests/test-readlink.c (main): Likewise.
21291         * tests/test-remove.c (main): Likewise.
21292         * tests/test-rename.c (main): Likewise.
21293         * tests/test-renameat.c (main): Likewise.
21294         * tests/test-rmdir.c (main): Likewise.
21295         * tests/test-sha1.c (main): Likewise.
21296         * tests/test-signal.c (main): Likewise.
21297         * tests/test-sigaction.c (main): Likewise.
21298         * tests/test-stat.c (main): Likewise.
21299         * tests/test-stat-time.c (main): Likewise.
21300         * tests/test-stddef.c (main): Likewise.
21301         * tests/test-stdint.c (main): Likewise.
21302         * tests/test-stdio.c (main): Likewise.
21303         * tests/test-stdlib.c (main): Likewise.
21304         * tests/test-strchrnul.c (main): Likewise.
21305         * tests/test-strerror.c (main): Likewise.
21306         * tests/test-string.c (main): Likewise.
21307         * tests/test-strtod.c (main): Likewise.
21308         * tests/test-strverscmp.c (main): Likewise.
21309         * tests/test-symlink.c (main): Likewise.
21310         * tests/test-symlinkat.c (main): Likewise.
21311         * tests/test-sys_stat.c (main): Likewise.
21312         * tests/test-sys_time.c (main): Likewise.
21313         * tests/test-time.c (main): Likewise.
21314         * tests/test-unistd.c (main): Likewise.
21315         * tests/test-unlink.c (main): Likewise.
21316         * tests/test-unlinkat.c (main): Likewise.
21317         * tests/test-utimens.c (main): Likewise.
21318         * tests/test-utimensat.c (main): Likewise.
21319         * tests/test-version-etc.c (main): Likewise.
21320         * tests/test-wchar.c (main): Likewise.
21321         * tests/test-wctype.c (main): Likewise.
21322         * tests/test-xprintf-posix.c (main): Likewise.
21323         * tests/test-posixtm.c (main): Likewise.
21324         (STREQ): Delete unused macro.
21325         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
21326         shadowed variables.
21327         * tests/test-memchr.c (main): Likewise.
21328
21329 2009-10-21  Eric Blake  <ebb9@byu.net>
21330
21331         areadlinkat: avoid failure on older glibc
21332         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
21333         rather than mis-comparing 0 against FUNC_RESULT of char*.
21334
21335 2009-10-21  Bruno Haible  <bruno@clisp.org>
21336
21337         * modules/stpncpy (License): Relicense under LGPLv2+.
21338         Reported by David Lutterkort <lutter@redhat.com>.
21339
21340 2009-10-20  Eric Blake  <ebb9@byu.net>
21341
21342         utimensat: work around Solaris 9 bug
21343         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
21344         has trailing slash bugs.
21345         * tests/test-lutimens.h (test_lutimens): Enhance test.
21346         * tests/test-utimens.h (test_utimens): Likewise.
21347         * doc/posix-functions/utime.texi (utime): Enhance documentation.
21348         * doc/posix-functions/utimes.texi (utimes): Likewise.
21349         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21350         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
21351         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
21352         * doc/posix-functions/futimens.texi (futimens): Likewise.
21353
21354         fdutimensat: new module
21355         * modules/fdutimensat: New file.
21356         * lib/fdutimensat.c (fdutimensat): Likewise.
21357         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
21358         * MODULES.html.sh (File system functions): Mention module.
21359         * modules/fdutimensat-tests: New test.
21360         * tests/test-fdutimensat.c: Likewise.
21361
21362         doc: regenerate INSTALL
21363         * doc/INSTALL: Reflect recent autoconf update.
21364         * doc/INSTALL.ISO: Likewise.
21365         * doc/INSTALL.UTF-8: Likewise.
21366
21367 2009-10-20  Pádraig Brady  <P@draigBrady.com>
21368
21369         acl: warn if ACL support is not detected
21370         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
21371
21372 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
21373
21374         * lib/nproc.h: Add extern "C" block for C++.
21375
21376 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
21377             Bruno Haible  <bruno@clisp.org>
21378
21379         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
21380         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
21381         * doc/posix-functions/isalpha.texi: Likewise.
21382         * doc/posix-functions/isblank.texi: Likewise.
21383         * doc/posix-functions/iscntrl.texi: Likewise.
21384         * doc/posix-functions/isdigit.texi: Likewise.
21385         * doc/posix-functions/isgraph.texi: Likewise.
21386         * doc/posix-functions/islower.texi: Likewise.
21387         * doc/posix-functions/isprint.texi: Likewise.
21388         * doc/posix-functions/ispunct.texi: Likewise.
21389         * doc/posix-functions/isspace.texi: Likewise.
21390         * doc/posix-functions/isupper.texi: Likewise.
21391         * doc/posix-functions/isxdigit.texi: Likewise.
21392
21393 2009-10-18  Bruno Haible  <bruno@clisp.org>
21394
21395         Tests for module 'isblank'.
21396         * modules/isblank-tests: New file.
21397         * tests/test-isblank.c: New file.
21398
21399         New module 'isblank'.
21400         * lib/isblank.c: New file.
21401         * m4/isblank.m4: New file.
21402         * modules/isblank: New file.
21403         * doc/posix-functions/isblank.texi: Mention the new module.
21404
21405 2009-10-18  Bruno Haible  <bruno@clisp.org>
21406
21407         New module 'ctype'.
21408         * lib/ctype.in.h: New file.
21409         * m4/ctype.m4: New file.
21410         * modules/ctype: New file.
21411         * doc/posix-headers/ctype.texi: Mention the new module.
21412
21413 2009-10-18  Jim Meyering  <meyering@redhat.com>
21414
21415         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
21416         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
21417         right after its initialization, rather than farther down.
21418         Keeping these in close proximity makes it easier to ensure
21419         that each such variable is initialized.  E.g.,
21420
21421             LIB_CLOCK_GETTIME=
21422             AC_SUBST([LIB_CLOCK_GETTIME])
21423
21424         This change also increments these serial numbers.
21425         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
21426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21428
21429 2009-10-18  Bruno Haible  <bruno@clisp.org>
21430
21431         Don't let environment variables perturb build.
21432         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21433         (gl_PREREQ_GETHRXTIME): ... not here.
21434
21435 2009-10-18  Bruno Haible  <bruno@clisp.org>
21436
21437         Avoid symlink attack in localcharset module.
21438         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21439         (O_NOFOLLOW): Define fallback.
21440         (get_charset_aliases): Don't open the file if it is a symbolic link.
21441         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
21442         gl_FCNTL_H.
21443         (gl_FCNTL_H): Require it.
21444         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
21445         * modules/localcharset (Files): Add m4/fcntl_h.m4.
21446         Reported by Fergal Glynn <fglynn@veracode.com>.
21447
21448 2009-10-18  Bruno Haible  <bruno@clisp.org>
21449
21450         Implement nproc for mingw.
21451         * lib/nproc.c: Include <windows.h>
21452         (num_processors): On native Windows platforms, try GetSystemInfo.
21453
21454 2009-10-18  Bruno Haible  <bruno@clisp.org>
21455
21456         Implement nproc for IRIX.
21457         * lib/nproc.c: Include <sys/sysmp.h>.
21458         (num_processors): On IRIX systems, try sysmp.
21459         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
21460
21461 2009-10-18  Bruno Haible  <bruno@clisp.org>
21462
21463         Implement nproc for HP-UX.
21464         * lib/nproc.c: Include <sys/pstat.h>
21465         (num_processors): On HP-UX systems, try pstat_getdynamic.
21466         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
21467         pstat_getdynamic.
21468
21469 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
21470             Bruno Haible  <bruno@clisp.org>
21471
21472         Implement nproc for NetBSD, OpenBSD.
21473         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
21474         (ARRAY_SIZE): New macro.
21475         (num_processors): On BSD systems, try sysctl of HW_NCPU.
21476         * m4/nproc.m4: New file.
21477         * modules/nproc (Files): Add m4/nproc.m4.
21478         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
21479         (Makefile.am): Instead, augment lib_SOURCES.
21480
21481 2009-10-18  Bruno Haible  <bruno@clisp.org>
21482
21483         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
21484         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
21485         sys/param.h.
21486
21487 2009-10-16  Eric Blake  <ebb9@byu.net>
21488
21489         utimensat: new module
21490         * modules/utimensat: New file.
21491         * lib/utimensat.c (utimensat): Likewise.
21492         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21493         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
21494         so we can work around Linux bugs.
21495         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21496         * modules/sys_stat (Makefile.am): Substitute them.
21497         * lib/sys_stat.in.h (utimensat): Declare it.
21498         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21499         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21500         * modules/utimensat-tests: New test.
21501         * tests/test-utimensat.c: Likewise.
21502
21503         utimens: let lutimens work on non-symlinks
21504         * lib/utimens.c (lutimens): Fall back to utimens rather than
21505         failing with ENOSYS, when file is not a symlink.
21506         (utimens): Reduce redirection.
21507         * tests/test-lutimens.h (test_lutimens): Update test to cover
21508         non-symlinks.
21509         * tests/test-utimens.h (test_utimens): Update test to cover
21510         symlinks.
21511         * tests/test-utimens.c (main): Update caller.
21512
21513         utimens: cache whether utimensat syscall works
21514         * lib/utimens.c (utimensat_works_really): New cache variable.
21515         (fdutimens, lutimens): Use it to avoid failing syscall.
21516
21517         test-stat-time, test-utimens: improve portability
21518         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
21519         ext4 on alpha, and for cygwin.
21520         * tests/test-utimens-common.h: New file.
21521         (nap): Factor delays into single function.
21522         * tests/test-lutimens.h (test_lutimens): Use new header.
21523         * tests/test-futimens.h (test_futimens): Likewise.
21524         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
21525         timestamps to occur from same machine, as was done previously for
21526         test_utimens.
21527         * modules/utimens-tests (Files): Ship new file.
21528         * modules/futimens-tests (Files): Likewise.
21529         Reported in part by Jim Meyering.
21530
21531         sys_stat: sort replacement declarations
21532         * lib/sys_stat.in.h: Sort declarations.
21533         * lib/futimens.c (futimens): Fix typo.
21534
21535 2009-10-15  Jim Meyering  <meyering@redhat.com>
21536
21537         don't let environment settings perturb build
21538         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
21539         could cause a configure-time and/or build-time malfunction.
21540         Typically, a configure-time function-in-library test is performed
21541         via code like this:
21542
21543           LIB_VAR=
21544           AC_SUBST([LIB_VAR])
21545           prefix_saved_LIBS=$LIBS
21546             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
21547                        [test "$ac_cv_search_FUNC" = "none required" ||
21548                         LIB_VAR=$ac_cv_search_FUNC])
21549           LIBS=$prefix_saved_LIBS
21550
21551         However, in each of the files affected by this change, the LIB_VAR=
21552         initialization was omitted.  Thus, when set in the environment, its
21553         value would propagate into generated Makefiles when FUNC is not found
21554         in LIB_NAME.
21555         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
21556         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21558
21559 2009-10-14  Eric Blake  <ebb9@byu.net>
21560
21561         fchdir: avoid infinite recursion in mingw
21562         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
21563         recursing.
21564
21565         test-stat-time: port to mingw
21566         * tests/test-stat-time.c (force_unlink): Return a value.
21567         (test_ctime) [W32]: Fix compilation error.
21568         (nap): Don't call usleep with too large an argument.  Use
21569         force_unlink.
21570         * doc/pastposix-functions/usleep.texi (usleep): Document the
21571         portability issue.
21572
21573 2009-10-13  Jim Meyering  <meyering@redhat.com>
21574
21575         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
21576         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
21577         * modules/pipe-filter-ii: Likewise.
21578         * modules/sys_socket-tests: Likewise.
21579         * modules/tsearch-tests: Likewise.
21580         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
21581         (check): Depend on it.
21582
21583 2009-10-12  Eric Blake  <ebb9@byu.net>
21584
21585         utimens-tests: port to NFS file systems
21586         * tests/test-utimens.h (test_utimens): Refactor utimecmp
21587         comparisons to avoid spurious failures from timestamp drift
21588         between NFS machines.
21589
21590 2009-10-12  Eric Blake  <ebb9@byu.net>
21591
21592         stat-time-tests: minor cleanups
21593         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
21594         * tests/test-stat-time.c (nap): Separate assignment from call.
21595         Suggested by Paolo Bonzini and Bruno Haible.
21596
21597         sys_stat: guarantee struct timespec
21598         * lib/sys_stat.in.h (includes): Always include <time.h>
21599         * modules/sys_stat (Depends-on): Add time.
21600         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
21601         mode_t permission values.
21602         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
21603         get at subsecond timestamps.
21604
21605 2009-10-10  Eric Blake  <ebb9@byu.net>
21606
21607         futimens: new module
21608         * modules/futimens: New file.
21609         * lib/futimens.c (futimens): Likewise.
21610         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
21611         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
21612         we can work around Linux bugs.
21613         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21614         * modules/sys_stat (Makefile.am): Substitute them.
21615         * lib/sys_stat.in.h (futimens): Declare it.
21616         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21617         * doc/posix-functions/futimens.texi (futimens): Likewise.
21618         * modules/futimens-tests: New test.
21619         * tests/test-futimens.c: Likewise.
21620
21621         utimens: introduce fdutimens
21622         * lib/utimens.h (fdutimens): New prototype.
21623         * lib/utimens.c (gl_futimens): Move guts...
21624         (fdutimens): ...to new interface.
21625         * tests/test-utimens.c (do_fdutimens): Use it.
21626
21627         utimens: add UTIME_NOW and UTIME_OMIT support
21628         * lib/utimens.c (validate_timespec, update_timespec): New helper
21629         functions.
21630         (gl_futimens, lutimens): Use them.
21631         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
21632         stdbool, sys_stat.
21633         (Link): Mention resulting library dependency.
21634         * modules/utimecmp (Link): Likewise.
21635         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
21636         (Makefile.am): Pick up library dependency.
21637         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
21638         definition.
21639         * tests/test-sys_stat.c: Test the definitions.
21640         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
21641         * NEWS: Document library dependency.
21642
21643         utimecmp: support symlink timestamps
21644         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21645         hashing when possible.  Use pathconf when available.
21646         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21647         * modules/utimecmp (Depends-on): Add lstat.
21648
21649         utimens: add lutimens interface
21650         * lib/utimens.c (lutimens): New function.
21651         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21652         * lib/utimens.h (lutimens): Declare new interface.
21653         * tests/test-utimens.c (main): Enhance test.
21654         * tests/test-lutimens.h (test_lutimens): New file.
21655         * modules/utimens-tests (Files): Distribute it.
21656         (Depends-on): Add symlink.
21657         (configure.ac): Check for usleep.
21658
21659         utimens: validate futimens usage
21660         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21661         fewer syscalls on failure later on.  Avoid compiler warning on
21662         mingw.
21663         * modules/utimens (Depends-on): Add dup2.
21664
21665         utimens: add test
21666         * modules/utimens-tests: New test.
21667         * tests/test-utimens.h: New file.
21668         * tests/test-futimens.h: Likewise.
21669         * tests/test-utimens.c: Likewise.
21670
21671         doc: mention timestamp portability issues
21672         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
21673         instead.
21674         * doc/posix-functions/utime.texi (utime): Likewise.
21675         * doc/posix-functions/utimes.texi (utimes): Likewise.
21676         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
21677         instead.
21678         * doc/posix-functions/futimens.texi (futimens): Mention utimens
21679         module.
21680         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21681         Mention weakness with symlink timestamps.
21682         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
21683         to utimensat/futimens instead.
21684         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
21685
21686         test-dup2: enhance test
21687         * tests/test-dup2.c (main): Also check AT_FDCWD.
21688
21689         test-stat-time: avoid more spurious failures
21690         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
21691         xfs; and avoid race if the two timestamps cross quantization edge.
21692
21693         relocatable: prefer 'file system' over 'filesystem'
21694         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
21695         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
21696         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
21697         * doc/relocatable.texi (Enabling Relocatability): Likewise.
21698         * lib/relocatable.c (compute_curr_prefix): Likewise.
21699
21700 2009-10-10  Jim Meyering  <meyering@redhat.com>
21701
21702         stat-time-tests: check for the usleep function
21703         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
21704
21705 2009-10-10  Bruno Haible  <bruno@clisp.org>
21706
21707         * modules/xnanosleep: Put the Link section after the Include section.
21708
21709 2009-10-09  Eric Blake  <ebb9@byu.net>
21710
21711         dup2: work around FreeBSD 6.1 bug
21712         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
21713         * doc/posix-functions/dup2.texi (dup2): Document it.
21714         Reported by Nelson H. F. Beebe and Jim Meyering.
21715
21716         test-stat-time: port to buggy NFS clients
21717         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
21718         (test_ctime): Also skip test if mtime and ctime are skewed.
21719
21720         maint: prefer 'file system' over 'filesystem'
21721         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21722         * doc/posix-functions/lstat.texi (lstat): Likewise.
21723         * lib/file-has-acl.c (file_has_acl): Likewise.
21724         * lib/fwriteerror.c [TEST]: Likewise.
21725         * tests/test-areadlink.h (test_areadlink): Likewise.
21726         * tests/test-areadlinkat-with-size.c (main): Likewise.
21727         * tests/test-areadlinkat.c (main): Likewise.
21728         * tests/test-canonicalize-lgpl.c (main): Likewise.
21729         * tests/test-canonicalize.c (main): Likewise.
21730         * tests/test-fstatat.c (main): Likewise.
21731         * tests/test-linkat.c (main): Likewise.
21732         * tests/test-lstat.h (test_lstat_func): Likewise.
21733         * tests/test-mkdir.h (test_mkdir): Likewise.
21734         * tests/test-readlink.h (test_readlink): Likewise.
21735         * tests/test-remove.c (main): Likewise.
21736         * tests/test-rename.h (test_rename): Likewise.
21737         * tests/test-renameat.c (main): Likewise.
21738         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21739         * tests/test-symlink.h (test_symlink): Likewise.
21740         * tests/test-symlinkat.c (main): Likewise.
21741         * tests/test-unlink.h (test_unlink_func): Likewise.
21742         * tests/test-unlinkat.c (main): Likewise.
21743
21744         maint: make realtime library usage explicit
21745         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
21746         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
21747         * modules/settime (Link): Likewise.
21748         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
21749
21750         test-stat-time: speed up execution
21751         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
21752         warning on mingw.
21753         (nap): New helper function.
21754         (prepare_test): Use it to reduce sleep time.
21755         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
21756         execution.
21757         * modules/stat-time-tests (configure.ac): Check for usleep.
21758
21759 2009-10-09  Jim Meyering  <meyering@redhat.com>
21760
21761         selinux-h: always use getfilecon wrappers
21762         * lib/getfilecon.c: New file.
21763         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
21764         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
21765         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
21766         (fgetfilecon): Provide a stub.
21767         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
21768         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
21769         file unconditionally.
21770         When <selinux/selinux.h> is found, arrange to use wrappers.
21771         * modules/selinux-h (Files): Add getfilecon.c.
21772         (Makefile.am): Substitute include-next-related bits
21773         into the now-always-generated selinux/selinux.h file.
21774         * doc/glibc-functions/lgetfilecon.texi: New file.
21775         * doc/glibc-functions/fgetfilecon.texi: New file.
21776         * doc/glibc-functions/getfilecon.texi: New file.
21777         * doc/glibc-functions/getfilecon-desc.texi: New file.
21778         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21779         which to pull in the new files.
21780         * MODULES.html.sh (Misc): Add selinux-h.
21781
21782 2009-10-08  Jim Meyering  <meyering@redhat.com>
21783
21784         unistd: fix comment typo
21785         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21786
21787 2009-10-08  Eric Blake  <ebb9@byu.net>
21788
21789         areadlink: use SIZE_MAX consistently
21790         * modules/areadlink (Depends-on): Add stdint.
21791         * modules/areadlink-with-size (Depends-on): Likewise.
21792         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21793         gives NULL; drop sys/types, since unistd gives size_t; and add
21794         stdint for SIZE_MAX.
21795         (SIZE_MAX): Rely on headers.
21796         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21797         and add stdint.
21798         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21799         (SIZE_MAX): Likewise.
21800         (INITIAL_BUF_SIZE): Turn into enum.
21801         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21802
21803 2009-10-08  Jim Meyering  <meyering@redhat.com>
21804
21805         areadlinkat: avoid compilation failure
21806         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21807         Fix typo in comment.
21808
21809 2009-10-07  Eric Blake  <ebb9@byu.net>
21810
21811         areadlinkat-with-size: new module
21812         * modules/areadlinkat-with-size: New module.
21813         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21814         * lib/areadlink.h (areadlinkat): Declare it.
21815         * MODULES.html.sh (File system functions): Mention it.
21816         * modules/areadlinkat-with-size-tests: New test.
21817         * tests/test-areadlinkat-with-size.c: New file.
21818
21819         xreadlinkat: new module
21820         * modules/xreadlinkat: New module.
21821         * lib/xreadlinkat.c (xreadlinkat): New file.
21822         * lib/xreadlink.h (xreadlinkat): Declare it.
21823         * MODULES.html.sh (File system functions): Mention it.
21824
21825         areadlinkat: new module
21826         * lib/at-func.c (FUNC_FAIL): New define.
21827         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
21828         * modules/areadlinkat: New module.
21829         * lib/linkat.c (areadlinkat): Move...
21830         * lib/areadlinkat.c (areadlinkat): ...to new file.
21831         * lib/areadlink.h (areadlinkat): Declare it.
21832         * modules/linkat (Depends-on): Add areadlinkat.
21833         * MODULES.html.sh (File system functions): Mention it.
21834         * modules/areadlinkat-tests: New test.
21835         * tests/test-areadlinkat.c: New file.
21836
21837         areadlink, areadlink-with-size: add tests
21838         * modules/areadlink-tests: New test.
21839         * modules/areadlink-with-size-tests: Likewise.
21840         * tests/test-areadlink.h: New file.
21841         * tests/test-areadlink.c: Likewise.
21842         * tests/test-areadlink-with-size.c: Likewise.
21843
21844         maint: minor cleanups
21845         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
21846         _UNUSED_PARAMETER_ instead.
21847         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
21848         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
21849         * modules/linkat-tests (Files): Distribute test-link.h.
21850
21851         openat, utimens: whitespace cleanup
21852         * lib/openat.c: Prefer space throughout, rather than mix of 8
21853         spaces vs. tabs.
21854         * lib/at-func.c: Likewise.
21855         * lib/utimens.c: Likewise.
21856
21857         openat: avoid using wrong fd
21858         * lib/openat.c (openat_permissive): Reject user's fd if saving the
21859         working directory chooses same fd.
21860         * lib/at-func.c (AT_FUNC_NAME): Likewise.
21861
21862         mkdir, mkdirat: fix cygwin 1.5.x bug
21863         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
21864         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
21865         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
21866         bug.
21867         (gl_PREREQ_MKDIR): Delete unused macro.
21868         * modules/mkdir (Files): Track file rename.
21869         (configure.ac): Update macro name.
21870         * modules/openat (Depends-on): Add mkdir.
21871         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
21872
21873         mkdir, mkdirat: add tests
21874         * modules/mkdir-tests: New test.
21875         * tests/test-mkdir.h: New file.
21876         * tests/test-mkdir.c: Likewise.
21877         * tests/test-mkdirat.c: Likewise.
21878         * modules/openat-tests (Files): Add new files.
21879         (Makefile.am): Run new test.
21880
21881 2009-10-06  Eric Blake  <ebb9@byu.net>
21882
21883         doc: tweak *at function documentation
21884         * doc/posix-functions/faccessat.texi (faccessat): Mention
21885         known issue with replacement.
21886         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
21887         * doc/posix-functions/linkat.texi (linkat): Likewise.
21888         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21889         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21890         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21891         * doc/posix-functions/renameat.texi (renameat): Likewise.
21892         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21893
21894         openat: fix GNU/Hurd bug in unlinkat
21895         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
21896         broken.
21897         * doc/posix-functions/unlink.texi (unlink): Document this.
21898         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
21899
21900         fdopendir: fix GNU/Hurd bug
21901         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
21902         allowing non-directory fds.
21903         * lib/fdopendir.c (rpl_fdopendir): Work around it.
21904         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21905         * modules/dirent (Makefile.am): Substitute it.
21906         * lib/dirent.in.h (fdopendir): Declare replacement.
21907         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
21908         * tests/test-fdopendir.c (main): Test something other than
21909         /dev/null, since on Hurd that behaves like a directory.
21910
21911         test-symlink: port to GNU/Hurd
21912         * tests/test-symlink.h (test_symlink): Relax expected errno.
21913
21914         doc: tweak more cygwin information
21915         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
21916         now compatible with glibc.
21917         * doc/posix-functions/getopt.texi (getopt): Likewise.
21918
21919         getopt-gnu: add another test
21920         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
21921         guarantee behavior relied on by m4.
21922         * tests/test-getopt.c (main): Use it.
21923         * modules/getopt-posix-tests (Depends-on): Add setenv.
21924         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
21925
21926         getopt: fix compilation on darwin
21927         * lib/getopt.in.h (includes): Leave breadcrumbs during system
21928         include.
21929         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
21930         Reported by Ludovic Courtès.
21931
21932 2009-10-06  Bruno Haible  <bruno@clisp.org>
21933
21934         * modules/size_max (Description): Discourage its use.
21935         Reported by Simon Josefsson.
21936
21937 2009-10-06  Jim Meyering  <meyering@redhat.com>
21938
21939         linkat: avoid compilation failure
21940         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
21941
21942 2009-10-05  Eric Blake  <ebb9@byu.net>
21943
21944         linkat: support Linux 2.6.17
21945         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
21946         linkat on Linux, but allow cache variable override.
21947         * lib/linkat.c (rpl_linkat): Define override.
21948         * modules/linkat (Depends-on): Add symlinkat.
21949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
21950         * modules/unistd (Makefile.am): Substitute it.
21951         * lib/unistd.in.h (linkat): Declare replacement.
21952         Reported by Pádraig Brady.
21953
21954         quotearg: port test to systems with C.UTF-8 locale
21955         * tests/test-quotearg.c (struct result_strings): Add another
21956         member, differentiating between C.ASCII and C.UTF-8 handling.
21957         (compare_strings): Add parameter.
21958         (main): Adjust all callers.
21959
21960         getopt: avoid clash with FreeBSD _getopt_internal
21961         * lib/getopt.in.h (_getopt_internal): Override the name.
21962         * lib/getopt_int.h (includes): Pick up any overrides.
21963         Reported by Reuben Thomas.
21964
21965         hash: allow C89 compilation
21966         * lib/hash.c (check_tuning): Move declaration before statement.
21967         Reported by Reuben Thomas.
21968
21969 2009-10-05  Karl Berry  <karl@gnu.org>
21970
21971         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
21972
21973 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
21974             Bruno Haible  <bruno@clisp.org>
21975
21976         * lib/uname.c (uname): Use a table-driven algorithm to compute
21977         Windows NT versions.
21978
21979 2009-10-04  Bruno Haible  <bruno@clisp.org>
21980
21981         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
21982         program_invocation_short_name.
21983         * modules/progname (configure.ac): Test for presence of
21984         program_invocation_short_name.
21985         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21986
21987 2009-10-04  Bruno Haible  <bruno@clisp.org>
21988
21989         * lib/progname.c (set_program_name): Fix comment.
21990         Reported by Jim Meyering.
21991
21992 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21993             Bruno Haible  <bruno@clisp.org>
21994
21995         * lib/uname.c: Include <string.h>.
21996         (uname): Do only one call to GetVersionEx in the common case.
21997
21998 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21999             Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22002         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22003         (uname): Add support for Windows CE and various non-x86 CPU types.
22004
22005 2009-10-03  Bruno Haible  <bruno@clisp.org>
22006
22007         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22008         invocation to tests/configure.ac.
22009         Reported by Ian Beckwith <ianb@erislabs.net>.
22010
22011 2009-10-02  Eric Blake  <ebb9@byu.net>
22012
22013         fchdir: avoid compiler warning
22014         * lib/fchdir.c (canonicalize_file_name)
22015         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22016
22017         test-open: support mingw errno values
22018         * tests/test-open.h (test_open): Relax test.
22019         * tests/test-fopen.h (test_fopen): Likewise.
22020         * tests/test-openat-safer.c (main): Likewise.
22021
22022         open: fix opening directory on mingw
22023         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22024
22025         test-open: on GNU/Hurd, /dev/null is a directory
22026         * tests/test-fopen.h (main): Rename...
22027         (test_fopen): ...to this.  Use a guaranteed non-directory when
22028         confirming open behavior on trailing slash.
22029         * tests/test-openat-safer.c (main): Likewise.
22030         * tests/test-open.h (main): Likewise....
22031         (test_open): ...to this.
22032         * tests/test-fopen.c (main): Adjust caller.
22033         * tests/test-fopen-safer.c (main): Likewise.
22034         * tests/test-open.c (main): Likewise.
22035         * tests/test-fcntl-safer.c (main): Likewise.
22036         Reported by Samuel Thibault.
22037
22038         rename, fchdir: don't ignore chdir failure
22039         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22040         * lib/rename.c (rpl_rename) [W32]: Likewise.
22041         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22042         an empty destination directory if source cannot be renamed,
22043         although there is still possibility for failure.
22044         * doc/posix-functions/rename.texi (rename): Document the race.
22045         Reported by Jim Meyering.
22046
22047         maint: cleanup whitespace in recent commits
22048         * lib/rename.c (rpl_rename): Remove tabs.
22049         * tests/test-link.h (test_link): Likewise.
22050         * lib/fchdir.c (get_name): Likewise.
22051         Reported by Jim Meyering.
22052
22053 2009-10-02  Ben Pfaff  <blp@gnu.org>
22054
22055         relocatable-prog-wrapper: Add missing dependency on
22056         double-slash-root.
22057         * modules/relocatable-prog-wrapper: Add dependency.
22058         Reported by Ian Beckwith <ianb@erislabs.net>.
22059
22060 2009-10-02  Eric Blake  <ebb9@byu.net>
22061
22062         renameat: fix Solaris bugs
22063         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22064         needed fixing.
22065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22066         * modules/stdio (Makefile.am): Substitute it.
22067         * lib/stdio.in.h (renameat): Declare replacement.
22068         * lib/renameat.c (rpl_renameat): Implement fix.
22069
22070         renameat: new module
22071         * modules/renameat: New file.
22072         * lib/renameat.c (renameat): Likewise.
22073         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22075         * modules/stdio (Makefile.am): Substitute them.
22076         * lib/stdio.in.h (renameat): Declare it.
22077         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22078         * doc/posix-functions/renameat.texi (renameat): Likewise.
22079         * modules/renameat-tests: New test.
22080         * tests/test-renameat.c: Likewise.
22081
22082         rename: fix mingw bugs
22083         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22084         directory overwrite bugs.
22085
22086         rename: fix another cygwin 1.5 bug
22087         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22088         checks.
22089         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22090         unnecessary cygwin workarounds.  Also work around bug with moving
22091         full directory onto an empty one.
22092         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22093
22094         rename-dest-slash: merge into rename module
22095         * modules/rename-dest-slash (Status): Mark obsolete.
22096         (Depends-on): Add rename.
22097         (Files): Let rename do it all.
22098         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22099         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22100         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22101         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22102         * lib/rename.c (rpl_rename): Update comments.
22103
22104         rename: fix cygwin 1.5.x bugs
22105         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22106         * lib/rename.c (rpl_rename): Work around them.
22107         * modules/rename (Depends-on): Add same-inode.
22108
22109         rename: fix Solaris 10 bug
22110         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22111         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22112         was the only bug.
22113
22114         rename: fix Solaris 9 bug
22115         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22116         on non-directory.  Avoid calling exit.
22117         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22118         strdup.
22119         * modules/rename-tests (Depends-on): Drop lstat.
22120         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22121         (gl_PREREQ_RENAME): Delete unused macro.
22122
22123         rename-dest-slash: fix NetBSD bug
22124         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22125         links.
22126         * modules/rename-dest-slash (Depends-on): Add same-inode.
22127
22128         rename-tests: new test, exposes several platform bugs
22129         * modules/rename-tests: New file.
22130         * tests/test-rename.h: Likewise.
22131         * tests/test-rename.c: Likewise.
22132         * doc/posix-functions/rename.texi (rename): Improve documentation,
22133         including bugs that will eventually be fixed in gnulib.
22134
22135 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22136
22137         * lib/uname.c: Include <stdlib.h>
22138         (uname): Assume version info is available.
22139
22140 2009-10-02  Jim Meyering  <meyering@redhat.com>
22141
22142         gnu-web-doc-update: correct --help output
22143         * build-aux/gnu-web-doc-update: Make --help output relevant.
22144
22145         gnu-web-doc-update: add standard options
22146         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22147
22148         gnu-web-doc-update: New module.
22149         Use this script to automatically update the on-line web documentation
22150         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22151         * modules/gnu-web-doc-update: New file, from coreutils.
22152         * build-aux/gnu-web-doc-update: New script.
22153
22154 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22155
22156         link: LoadLibrary is not needed.
22157         * lib/link.c: Use GetModuleHandle.
22158
22159 2009-10-01  Eric Blake  <ebb9@byu.net>
22160
22161         getopt: bump serial number
22162         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22163         change.
22164
22165         tests: tighten link, rmdir, and remove tests
22166         * tests/test-link.h (includes): No need to use <config.h> here.
22167         Clean up if directory hard link was created, otherwise test for
22168         trailing '.'.
22169         * tests/test-linkat.c (main): Simplify.
22170         * tests/test-remove.c (main): Enhance test for trailing '.'.
22171         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22172
22173 2009-10-01  Jim Meyering  <meyering@redhat.com>
22174
22175         maint.mk: requiring "make major" was annoying, for a "minor" release.
22176         What is intended is "stable", to contrast with alpha and beta,
22177         so require "make stable", not "make major".
22178         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
22179         (get_tool_versions): Likewise.
22180         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
22181
22182 2009-09-30  Ben Pfaff  <blp@gnu.org>
22183
22184         Fix broken build of replacement for Windows tmpfile().
22185         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
22186         flags argument added along with the 'mkostemp' module.
22187
22188 2009-09-28  Bruno Haible  <bruno@clisp.org>
22189
22190         Avoid identifier clash with POSIX function 'remove' defined as a macro.
22191         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
22192         to 'remove_elt'.
22193         (gl_list_remove): Update.
22194         * lib/gl_list.c (gl_list_remove): Update.
22195         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
22196         to 'remove_elt'.
22197         (gl_oset_remove): Update.
22198         * lib/gl_list.c (gl_oset_remove): Update.
22199         Reported by Eric Blake.
22200
22201 2009-09-28  Eric Blake  <ebb9@byu.net>
22202
22203         doc: mention yet more cygwin 1.7 status
22204         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
22205         cygwin.
22206         * doc/glibc-functions/execvpe.texi (execvpe): New file.
22207         * doc/gnulib.texi (Glibc unistd.h): Mention it.
22208
22209         argp: fix test failure
22210         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
22211         that are not upper-case.  Pass correct range to tolower.
22212
22213 2009-09-27  Jim Meyering  <meyering@redhat.com>
22214
22215         test-yesno: work around sparc-dash here-document infelicity
22216         Without this change, the literal \177 byte in a here document
22217         would make dash 0.5.5.1-3 access uninitialized memory.
22218         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
22219         Instead, use a marker, "@", and filter through tr to create the desired
22220         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
22221
22222 2009-09-27  Bruno Haible  <bruno@clisp.org>
22223
22224         Disable untested support for new flavours of ACLs on AIX.
22225         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
22226         progress.
22227         * lib/set-mode-acl.c (qset_acl): Likewise.
22228
22229 2008-12-07  Bruno Haible  <bruno@clisp.org>
22230
22231         Add support for new flavours of ACLs on AIX. (Untested.)
22232         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
22233         (file_has_acl): Add support for newer AIX.
22234         * lib/set-mode-acl.c (qset_acl): Likewise.
22235         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
22236         Rainer Tammer <tammer@tammer.net>.
22237
22238 2009-09-26  Eric Blake  <ebb9@byu.net>
22239
22240         argp: fix compilation of getopt
22241         * lib/getopt.in.h (includes): Use different guard than glibc.
22242         Reported by Sergey Poznyakoff.
22243
22244         doc: mention more cygwin 1.7 status
22245         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
22246         bug.
22247         * doc/posix-functions/execl.texi (execl): Likewise.
22248         * doc/posix-functions/execle.texi (execle): Likewise.
22249         * doc/posix-functions/execlp.texi (execlp): Likewise.
22250         * doc/posix-functions/execv.texi (execv): Likewise.
22251         * doc/posix-functions/execve.texi (execve): Likewise.
22252         * doc/posix-functions/execvp.texi (execvp): Likewise.
22253         * doc/glibc-functions/canonicalize_file_name.texi
22254         (canonicalize_file_name): Cygwin 1.7 now provides this.
22255         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
22256         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
22257         on AT_SYMLINK_NOFOLLOW.
22258
22259 2009-09-24  Eric Blake  <ebb9@byu.net>
22260
22261         test-linkat: make test more robust
22262         * tests/test-linkat.c (main): Avoid collision with EEXIST.
22263
22264         getopt: fix inclusion guards for cygwin
22265         * modules/getopt-posix (Depends-on): Add include-next.
22266         (Makefile.am): Substitute more items in replacement header.
22267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
22268         <getopt.h>.
22269         * lib/getopt.in.h (includes): Use split inclusion guard, and
22270         prefer <getopt.h> over include <unistd.h> when one is present.
22271         (option): Also override name of 'struct option'.
22272
22273         same-inode: revert prior change; it is not yet ready
22274         * NEWS: Undo mention of this change.
22275         * lib/same-inode.h (same-inode.h): Undo tri-state change.
22276         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22277         * lib/cycle-check.c (cycle_check): Likewise.
22278         * lib/same.c (same_name): Likewise.
22279         * lib/at-func2.c (at_func2): Likewise.
22280
22281 2009-09-23  Eric Blake  <ebb9@byu.net>
22282
22283         linkat: new module
22284         * modules/linkat: New file.
22285         * lib/at-func2.c (at_func2): Likewise.
22286         * lib/linkat.c (linkat): Likewise.
22287         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22288         * lib/openat-priv.h (at_func2): Add declaration.
22289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22290         * modules/unistd (Makefile.am): Substitute them.
22291         * lib/unistd.in.h (linkat): Declare it.
22292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22293         * doc/posix-functions/linkat.texi (linkat): Likewise.
22294         * doc/posix-functions/link.texi (link): Tweak wording.
22295         * tests/test-link.c (main): Move guts...
22296         * tests/test-link.h (test_link): ...into new file.
22297         * modules/linkat-tests: New test.
22298         * tests/test-linkat.c: Likewise.
22299         * modules/link-tests (Files): Ship new file.
22300         (Depends-on): Add stdbool.
22301
22302         dirname: add library-safe mdir_name
22303         * lib/dirname.h (mdir_name): New prototype.
22304         * lib/dirname.c (dir_name): Move guts...
22305         (mdir_name): ...to new function that avoids xalloc_die.
22306
22307         fchdir: another mingw fix
22308         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
22309         * lib/fchdir.c (get_name): New helper method; skips canonicalize
22310         on mingw (where it has not yet been ported), and make it optional
22311         elsewhere.
22312         (_gl_register_fd): Use it.
22313
22314         same-inode: make SAME_INODE tri-state, to port to mingw
22315         * NEWS: Mention this change.
22316         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
22317         st_ino always being 0.
22318         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22319         * lib/cycle-check.c (cycle_check): Likewise.
22320         * lib/same.c (same_name): Likewise.
22321
22322         lstat: avoid mingw compilation error
22323         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
22324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
22325         lstat ourselves.
22326         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
22327         was adequate.
22328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
22329         the checks for lstat.
22330         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
22331
22332         link: fix test failure on Solaris 9
22333         * lib/link.c (rpl_link): Don't assume link will catch bogus
22334         trailing slash on source.
22335
22336         test-symlinkat: enhance test
22337         * tests/test-readlink.c (main): Move guts...
22338         * tests/test-readlink.h (test_readlink): ...into new file.
22339         * tests/test-symlink.c (main): Move guts...
22340         * tests/test-symlink.h (test_symlink): ...into new file.
22341         * tests/test-symlinkat.c (main): Use new files for further
22342         coverage.
22343         (do_symlink, do_readlink): New helper functions.
22344         * modules/symlink-tests (Files): Ship new file.
22345         (Depends-on): Add stdbool.
22346         * modules/readlink-tests (Files): Ship new file.
22347         (Depends-on): Add stdbool.
22348         * modules/symlinkat-tests (Files): Use new files.
22349
22350 2009-09-23  Eric Blake  <ebb9@byu.net>
22351
22352         readlink: document portability issue with symlink length
22353         * doc/posix-functions/lstat.texi (lstat): Mention that some file
22354         systems have bogus st_size on symlinks, and mention the
22355         areadlink-with-size module.
22356         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22357         * doc/posix-functions/readlink.texi (readlink): Mention the
22358         areadlink module, and ERANGE failure.
22359         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22360         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
22361
22362         readlink: fix Solaris 9 bug with trailing slash
22363         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
22364         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
22365         * doc/posix-functions/readlink.texi (readlink): Document this.
22366         * modules/readlink-tests: New test.
22367         * tests/test-readlink.c: Likewise.
22368
22369         readlink: fix cygwin 1.5.x bug with return type
22370         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
22371         * lib/unistd.in.h (readlink): Use ssize_t.
22372         * lib/readlink.c (readlink): Likewise.
22373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22374         * modules/unistd (Makefile.am): Substitute it.
22375         * lib/unistd.in.h (readlink): Declare replacement.
22376         * doc/posix-functions/readlink.texi (readlink): Document this.
22377
22378         symlink: use throughout gnulib
22379         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
22380         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
22381         symlink is not used.
22382         * modules/symlinkat (Depends-on): Add symlink.
22383         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22384         * modules/canonicalize-tests (Depends-on): Likewise.
22385         * modules/lstat-tests (Depends-on): Likewise.
22386         * modules/openat-tests (Depends-on): Likewise.
22387         * modules/remove-tests (Depends-on): Likewise.
22388         * modules/rmdir-tests (Depends-on): Likewise.
22389         * modules/unlink-tests (Depends-on): Likewise.
22390         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
22391         * tests/test-canonicalize.c (symlink): Likewise.
22392         * tests/test-fstatat.c (symlink): Likewise.
22393         * tests/test-lstat.c (symlink): Likewise.
22394         * tests/test-remove.c (symlink): Likewise.
22395         * tests/test-rmdir.c (symlink): Likewise.
22396         * tests/test-unlink.c (symlink): Likewise.
22397         * tests/test-unlinkat.c (symlink): Likewise.
22398
22399         symlink: new module, for Solaris 9 bug
22400         * modules/symlink: New file.
22401         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22402         * lib/symlink.c: Likewise.
22403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22404         * modules/unistd (Makefile.am): Substitute them.
22405         * lib/unistd.in.h (symlink): Declare replacement.
22406         * MODULES.html.sh (File system functions): Mention it.
22407         * doc/posix-functions/symlink.texi (symlink): Likewise.
22408         * modules/symlink-tests: New test.
22409         * tests/test-symlink.c: Likewise.
22410
22411 2009-09-23  Bruno Haible  <bruno@clisp.org>
22412
22413         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
22414         when needed.
22415         Test case: gnulib-tool --import --with-tests atexit inttypes.
22416         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
22417
22418 2009-09-23  Bruno Haible  <bruno@clisp.org>
22419
22420         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
22421         subcommand, not in a subshell.
22422
22423 2009-09-22  Eric Blake  <ebb9@byu.net>
22424
22425         unistd: sort replacement declarations
22426         * lib/unistd.in.h: Sort declarations.
22427
22428         open, openat: minor optimization
22429         * lib/open.c (open): If open succeeded, len is non-zero.
22430         * lib/openat.c (rpl_openat): Likewise.
22431
22432         link-follow: ensure correct result
22433         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22434         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22435         distinguish between possible failures.
22436
22437 2009-09-21  Eric Blake  <ebb9@byu.net>
22438
22439         fts: avoid compiler warning
22440         * lib/fts.c (dirent_inode_sort_may_be_useful)
22441         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
22442
22443 2009-09-19  Bruno Haible  <bruno@clisp.org>
22444
22445         * lib/progreloc.c (canonicalize_file_name): New declaration.
22446
22447 2009-09-19  Eric Blake  <ebb9@byu.net>
22448
22449         link: fix quoting
22450         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
22451
22452         openat: fix openat bugs on Solaris 9
22453         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
22454         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
22455         * modules/openat (Depends-on): Add open.
22456         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
22457         * modules/fcntl-h (Makefile.am): Substitute it.
22458         * lib/fcntl.in.h (openat): Declare replacement.
22459         * doc/posix-functions/openat.texi (openat): Document this.
22460
22461         openat: move fstatat and unlinkat into correct files
22462         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
22463         compiled.
22464         * lib/openat.c (fstatat, unlinkat): Move...
22465         * lib/fstatat.c (fstatat): ...into correct files.
22466         * lib/unlinkat.c (unlinkat): Likewise.
22467
22468         openat: fix unlinkat bugs on Solaris 9
22469         * lib/unlinkat.c (unlinkat): New file.
22470         * modules/openat (Depends-on): Add unlink.
22471         (Files): Distribute it.
22472         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
22473         trailing slash behavior is broken.
22474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22475         * modules/unistd (Makefile.am): Substitute it.
22476         * lib/unistd.in.h (unlinkat): Declare replacement.
22477         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
22478
22479         openat: fix fstatat bugs on Solaris 9
22480         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
22481         stat.
22482         * doc/posix-functions/fstatat.texi (fstatat): Document this.
22483
22484         test-unlinkat: enhance test, to expose Solaris 9 bug
22485         * tests/test-unlink.c (main): Factor guts...
22486         * tests/test-unlink.h (test_rmdir_func): ...into new file.
22487         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
22488         * tests/test-rmdir.c (main): Adjust caller.
22489         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
22490         (unlinker): New helper function.
22491         (rmdirat): Enhance check.
22492         * modules/rmdir-tests (Depends-on): Add stdbool.
22493         * modules/unlink-tests (Depends-on): Likewise.
22494         (Files): Add test-unlink.h.
22495         * modules/openat-tests (Files): Likewise.
22496         (Depends-on): Add unlinkdir.
22497
22498         test-fstatat: new test, to expose Solaris 9 bugs
22499         * tests/test-stat.c (main): Factor guts...
22500         * tests/test-stat.h (test_stat_func): ...into new file.
22501         * tests/test-lstat.c (main): Factor guts...
22502         * tests/test-lstat.h (test_lstat_func): ...into new file.
22503         * tests/test-fstatat.c: New file.
22504         * modules/stat-tests (Files): Add test-stat.h.
22505         * modules/lstat-tests (Files): Add test-lstat.h.
22506         (Depends-on): Add stdbool.
22507         * modules/openat-tests (Depends-on): Add pathmax.
22508         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
22509         (Makefile.am): Run new test.
22510
22511         remove: new module, for mingw and Solaris 9 bugs
22512         * modules/remove: New file.
22513         * lib/remove.c: Likewise.
22514         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
22515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22516         * modules/stdio (Makefile.am): Use them.
22517         * lib/stdio.in.h (remove): Declare replacement.
22518         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22519         * doc/posix-functions/remove.texi (remove): Likewise.
22520         * modules/remove-tests: New test.
22521         * tests/test-remove.c: Likewise.
22522
22523         unlink: new module, for Solaris 9 bug
22524         * modules/unlink: New file.
22525         * lib/unlink.c: Likewise.
22526         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22528         * modules/unistd (Makefile.am): Use them.
22529         * lib/unistd.in.h (stat): Declare replacement.
22530         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22531         * doc/posix-functions/unlink.texi (unlink): Likewise.
22532         * modules/unlink-tests: New test.
22533         * tests/test-unlink.c: Likewise.
22534
22535         lstat: fix Solaris 9 bug
22536         * lib/lstat.c (lstat): Also check for trailing slash on
22537         non-symlink, non-directories.  Use stat module to simplify logic.
22538         * doc/posix-functions/lstat.texi (lstat): Document it.
22539         * modules/lstat-tests (Depends-on): Add errno, same-inode.
22540         (configure.ac): Check for symlink.
22541         * tests/test-lstat.c (main): Add more tests.
22542
22543         stat: add as dependency to other modules
22544         * modules/chown (Depends-on): Add stat.
22545         * modules/euidaccess (Depends-on): Likewise.
22546         * modules/fchdir (Depends-on): Likewise.
22547         * modules/isdir (Depends-on): Likewise.
22548         * modules/link (Depends-on): Likewise.
22549         * modules/lstat (Depends-on): Likewise.
22550         * modules/mkdir-p (Depends-on): Likewise.
22551         * modules/modechange (Depends-on): Likewise.
22552         * modules/open (Depends-on): Likewise.
22553         * modules/readlink (Depends-on): Likewise.
22554         * modules/same (Depends-on): Likewise.
22555
22556         stat: fix Solaris 9 bug
22557         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
22558         slash.
22559         * lib/stat.c (rpl_stat): Work around it.
22560         * doc/posix-functions/stat.texi (stat): Update documentation.
22561
22562         stat: new module, for mingw bug
22563         * modules/stat: New file.
22564         * lib/stat.c: Likewise.
22565         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22566         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22567         * modules/sys_stat (Makefile.am): Use them.
22568         * lib/sys_stat.in.h (stat): Declare replacement.
22569         * lib/openat.c (fstatat): Deal with lstat and stat being function
22570         macros.
22571         * modules/openat (Depends-on): Add inline.
22572         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22573         * doc/posix-functions/stat.texi (stat): Likewise.
22574         * modules/stat-tests: New test.
22575         * tests/test-stat.c: Likewise.
22576
22577 2009-09-19  Jim Meyering  <meyering@redhat.com>
22578
22579         syntax-check: detect unnecessary inclusion of canonicalize.h
22580         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
22581
22582 2009-09-19  Eric Blake  <ebb9@byu.net>
22583
22584         canonicalize-lgpl: adjust clients to use correct header
22585         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22586         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
22587         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
22588         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
22589         * lib/progreloc.c (includes): Likewise.
22590
22591 2009-09-19  Jim Meyering  <meyering@redhat.com>
22592
22593         test-posixtm.c: correct a comment
22594         * tests/test-posixtm.c: Correct first-line comment.
22595         Spotted by Eric Blake.
22596
22597 2009-09-16  Jim Meyering  <meyering@redhat.com>
22598
22599         posixtm-tests: make T const-correct; add a test case
22600         * tests/test-posixtm.c (T): Declare const.
22601         Add a test for -(2^31+1).
22602         Remove useless can-succeed-only-in-2002 test.
22603
22604         posixtm-tests: adjust the sole failing test
22605         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
22606         expected output matches what mktime now produces.  Cross-checked via
22607         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
22608
22609         posixtm: move #ifdef'd tests into a new module
22610         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
22611         * tests/test-posixtm.c: ... this new file.
22612         * modules/posixtm-tests: New module.
22613
22614 2009-09-19  Eric Blake  <ebb9@byu.net>
22615
22616         openat: simplify use of at-func.c
22617         * lib/at-func.c (includes): Include prerequisites here, to
22618         simplify requirements on client files.
22619         * lib/openat-priv.h: Add double-inclusion guard.
22620         * lib/faccessat.c (includes): Simplify.
22621         * lib/fchmodat.c (includes): Likewise.
22622         * lib/fchownat.c (includes): Likewise.
22623         * lib/mkdirat.c (includes): Likewise.
22624         * lib/mkfifoat.c (includes): Likewise.
22625         * lib/symlinkat.c (includes): Likewise.
22626
22627         openat: allow return of fd 0
22628         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
22629         * modules/save-cwd (Depends-on): Replace fcntl-safer with
22630         unistd-safer.
22631         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
22632         <fcntl.h>; this module does not leak fds.
22633         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
22634         must be allowed to return 0, leaving openat_safer to add the
22635         safety.
22636         (openat_permissive): Avoid writing to just-opened fd 2 if
22637         restoring the current directory fails.
22638         * lib/openat-die.c (openat_restore_fail): Add comment.
22639         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
22640         (save_cwd): Guarantee safe fd, but without use of open_safer.
22641         * tests/test-openat.c: New test.
22642         * modules/openat-tests (Files, Makefile.am): Distribute and build
22643         new file.
22644
22645         relocatable-prog-wrapper: fix build
22646         * modules/relocatable-prog-wrapper (Files): Update name of
22647         canonicalize m4 file, broken on 2009-09-17.
22648         Reported by emad hajjar <aleppos@hotmail.com>.
22649
22650 2009-09-19  Bruno Haible  <bruno@clisp.org>
22651
22652         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22653         * lib/safe-alloc.c: Likewise.
22654         Reported by Ian Beckwith <ianb@erislabs.net>.
22655
22656 2009-09-18  Bruno Haible  <bruno@clisp.org>
22657
22658         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22659         Reported by <erobles@sensacd.com.mx>.
22660
22661 2009-09-17  Eric Blake  <ebb9@byu.net>
22662
22663         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22664         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22665         slashes when checking if last component is missing.
22666         * tests/test-canonicalize.c (main): Test this.
22667
22668         canonicalize, canonicalize-lgpl: honor // if distinct from /
22669         * modules/canonicalize (Files): Add double-slash-root.m4.
22670         * modules/canonicalize-lgpl (Files): Likewise.
22671         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22672         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
22673         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
22674         fallback definition.
22675         (canonicalize_filename_mode): Use it to protect //.
22676         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
22677         (__realpath): Likewise.
22678         * tests/test-canonicalize.c (main): Test this.
22679         * tests/test-canonicalize-lgpl.c (main): Likewise.
22680         * modules/canonicalize-tests (Depends-on): Add same-inode.
22681         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22682
22683         canonicalize-lgpl: fix glibc bug with trailing slash
22684         * m4/canonicalize-lgpl.m4: Move contents...
22685         * m4/canonicalize.m4: ...here.
22686         (gl_CANONICALIZE_LGPL): Factor realpath check...
22687         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
22688         glibc 2.3.5 bug, fixed 2005-04-27.
22689         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
22690         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
22691         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
22692         * modules/canonicalize-lgpl (Files): Manage file rename.
22693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22694         * modules/stdlib (Makefile.am): Substitute witness.
22695         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
22696         is needed.
22697         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
22698         replacement is required.
22699         * lib/canonicalize.c (canonicalize_file_name): Likewise.
22700         * doc/glibc-functions/canonicalize_file_name.texi
22701         (canonicalize_file_name): Document this.
22702         * doc/posix-functions/realpath.texi (realpath): Likewise.
22703
22704         canonicalize-lgpl: reject non-directory with trailing slash
22705         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
22706         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
22707         catches failures in glibc 2.3.5.
22708         * tests/test-canonicalize.c (main): Likewise.
22709
22710         canonicalize-lgpl: use native realpath if it works
22711         * lib/canonicalize-lgpl.c (realpath): Guard with
22712         FUNC_REALPATH_WORKS.
22713         * lib/stdlib.in.h (realpath): Make declaration optional based on
22714         HAVE_REALPATH.
22715         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
22716         native realpath works.
22717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22718         * modules/stdlib (Makefile.am): Substitute witness.
22719
22720         canonicalize, canonicalize-lgpl: use <stdlib.h>
22721         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
22722         (Include): Mention <stdlib.h>.
22723         (configure.ac): Mention functions we provide.
22724         * modules/canonicalize (configure.ac): Likewise.
22725         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
22726         realpath if canonicalize_file_name is missing.
22727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
22728         * modules/stdlib (Makefile.am): Substitute witnesses.
22729         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
22730         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
22731         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
22732         * NEWS: Document this.
22733         * doc/glibc-functions/canonicalize_file_name.texi
22734         (canonicalize_file_name): Likewise.
22735         * doc/posix-functions/realpath.texi (realpath): Likewise.
22736         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
22737
22738         test-canonicalize: consolidate into single C program
22739         * tests/test-canonicalize.sh: Delete; move setup into...
22740         * tests/test-canonicalize.c (main): ...the program, making it
22741         easier to run in debugger.  Add some tests.
22742         * modules/canonicalize-tests (Files): Remove unused file.
22743         (Depends-on): Add progname.
22744         (configure.ac, Makefile.am): Simplify.
22745
22746         test-canonicalize-lgpl: consolidate into single C program
22747         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
22748         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
22749         easier to run in debugger.  Add some tests.
22750         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
22751         (configure.ac, Makefile.am): Simplify.
22752
22753         canonicalize: avoid resolvepath
22754         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
22755         unnecessary checks.
22756         * lib/canonicalize.c (includes): Simplify.
22757         (canonicalize_file_name): Drop resolvepath implementation.
22758         * modules/canonicalize (Depends-on): Drop filenamecat.
22759
22760         canonicalize: don't lose errno
22761         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
22762         over calls to free.
22763
22764         canonicalize: simplify errno handling
22765         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
22766         assignment.
22767
22768         canonicalize, canonicalize-lgpl: update module dependencies
22769         * modules/canonicalize (Depends-on): Add extensions, lstat,
22770         pathmax, stdlib.
22771         (Files): Drop pathmax.h.
22772         (configure.ac): Adjust macro name.
22773         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
22774         lstat, stdlib, sys_stat.
22775         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
22776         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22777         extensions.
22778         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22779         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22780         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22781         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22782         declaration, if available.
22783         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22784         we can rely on the readlink module.
22785         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22786         (includes): Use <unistd.h> unconditionally.
22787
22788 2009-09-17  Eric Blake  <ebb9@byu.net>
22789
22790         maint: make Include sections of modules consistent
22791         * modules/alloca: Use only header name; no need to list #include.
22792         * modules/alloca-opt: Likewise.
22793         * modules/arpa_inet: Likewise.
22794         * modules/canon-host: Likewise.
22795         * modules/configmake: Likewise.
22796         * modules/dirent: Likewise.
22797         * modules/eealloc: Likewise.
22798         * modules/environ: Likewise.
22799         * modules/fchdir: Likewise.
22800         * modules/fcntl: Likewise.
22801         * modules/fcntl-h: Likewise.
22802         * modules/gethrxtime: Likewise.
22803         * modules/gettime: Likewise.
22804         * modules/ignore-value: Likewise.
22805         * modules/inet_ntop: Likewise.
22806         * modules/inet_pton: Likewise.
22807         * modules/inttypes: Likewise.
22808         * modules/isnand-nolibm: Likewise.
22809         * modules/isnanf-nolibm: Likewise.
22810         * modules/mbchar: Likewise.
22811         * modules/mbfile: Likewise.
22812         * modules/mbiter: Likewise.
22813         * modules/mbuiter: Likewise.
22814         * modules/netdb: Likewise.
22815         * modules/netinet_in: Likewise.
22816         * modules/nproc: Likewise.
22817         * modules/pagealign_alloc: Likewise.
22818         * modules/poll: Likewise.
22819         * modules/printf-frexp: Likewise.
22820         * modules/pthread: Likewise.
22821         * modules/putenv: Likewise.
22822         * modules/random_r: Likewise.
22823         * modules/relocatable-prog: Likewise.
22824         * modules/search: Likewise.
22825         * modules/select: Likewise.
22826         * modules/selinux-h: Likewise.
22827         * modules/settime: Likewise.
22828         * modules/signal: Likewise.
22829         * modules/size_max: Likewise.
22830         * modules/socklen: Likewise.
22831         * modules/ssize_t: Likewise.
22832         * modules/stdarg: Likewise.
22833         * modules/stdbool: Likewise.
22834         * modules/stddef: Likewise.
22835         * modules/stdint: Likewise.
22836         * modules/stdio: Likewise.
22837         * modules/stdlib: Likewise.
22838         * modules/string: Likewise.
22839         * modules/strings: Likewise.
22840         * modules/sys_file: Likewise.
22841         * modules/sys_ioctl: Likewise.
22842         * modules/sys_select: Likewise.
22843         * modules/sys_socket: Likewise.
22844         * modules/sys_stat: Likewise.
22845         * modules/sys_time: Likewise.
22846         * modules/sys_times: Likewise.
22847         * modules/sys_utsname: Likewise.
22848         * modules/sys_wait: Likewise.
22849         * modules/sysexits: Likewise.
22850         * modules/time: Likewise.
22851         * modules/times: Likewise.
22852         * modules/tmpfile: Likewise.
22853         * modules/trim: Likewise.
22854         * modules/unistd: Likewise.
22855         * modules/wchar: Likewise.
22856         * modules/wctype: Likewise.
22857
22858 2009-09-17  Bruno Haible  <bruno@clisp.org>
22859
22860         Make getdate.y compile on QNX and NetBSD 5 / i386.
22861         * m4/getdate.m4 (gl_GETDATE): Conditionally define
22862         TIME_T_FITS_IN_LONG_INT.
22863         * lib/getdate.y (long_time_t): New type.
22864         (relative_time): Change type of 'seconds' field to long_time_t.
22865         (get_date): Update types of local variables. Check against overflow
22866         during conversion from long_time_t to time_t.
22867         Reported by Matt Kraai <kraai@ftbfs.org>
22868         and Hasso Tepper <hasso@netbsd.org>.
22869
22870 2009-09-17  Bruno Haible  <bruno@clisp.org>
22871
22872         * modules/COPYING: Update copyright years.
22873         * modules/README: Likeiwse.
22874         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
22875         Reported by Ian Beckwith <ianb@erislabs.net>.
22876
22877 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22878
22879         * users.txt: Update references for gnuit package.
22880
22881 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22882
22883         * m4/getdelim.m4: Fix typo in copyright line.
22884
22885 2009-09-17  Bruno Haible  <bruno@clisp.org>
22886
22887         * lib/atoll.c: Use the standard header with GPL copyright.
22888         * lib/argz.in.h: Likewise.
22889         * lib/glob.c: Likewise.
22890         * lib/glob-libc.h: Likewise.
22891         * lib/random_r.c: Likewise.
22892         * lib/siglist.h: Likewise.
22893         * lib/strsignal.c: Likewise.
22894         Reported by Ian Beckwith <ianb@erislabs.net>.
22895
22896 2009-09-17  Eric Blake  <ebb9@byu.net>
22897
22898         rmdir: ensure correct dependency order
22899         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
22900
22901 2009-09-17  Bruno Haible  <bruno@clisp.org>
22902
22903         Disable assertion that fails on NetBSD 5 / i386.
22904         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
22905         Reported by Sam Steingold <sds@gnu.org>
22906         and Hasso Tepper <hasso@netbsd.org>.
22907
22908 2009-09-16  Eric Blake  <ebb9@byu.net>
22909
22910         unlinkdir: port to mingw
22911         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
22912         on which no one can unlink a directory.
22913
22914         stdlib: sort witness names
22915         * modules/stdlib (Makefile.am): Sort replacements.
22916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22917         * lib/stdlib.in.h: Likewise.
22918
22919         parse-duration-tests: avoid link failure
22920         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
22921         LIBINTL.
22922         Reported by Tom G. Christensen.
22923
22924         openat-tests: ensure unlinkat behaves like rmdir
22925         * tests/test-rmdir.c (main): Factor guts...
22926         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
22927         * modules/rmdir-tests (Files): Ship new file.
22928         * modules/openat-tests: New test.
22929         * tests/test-unlinkat.c: Likewise.
22930
22931         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
22932         * modules/rmdir-errno (Status, Notice): Now obsolete.
22933
22934         rmdir: work around cygwin 1.5.x and mingw bugs
22935         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
22936         * lib/rmdir.c (rmdir): Work around it.
22937         * modules/rmdir (Status, Notice): No longer obsolete.
22938         (Files): Add dos.m4.
22939         (Depends-on): Add unistd.
22940         (configure.ac): Set witnesses.
22941         (License): Relax to LGPLv2+.
22942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
22943         * modules/unistd (Makefile.am): Substitute witnesses.
22944         * lib/unistd.in.h (rmdir): Declare replacement.
22945         * doc/posix-functions/rmdir.texi (rmdir): Document this.
22946         * modules/rmdir-tests: New tests.
22947         * tests/test-rmdir.c: Likewise.
22948
22949 2009-09-15  Eric Blake  <ebb9@byu.net>
22950
22951         fchdir: improve use of replacement functions
22952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
22953         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
22954         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
22955         REPLACE_CLOSEDIR.
22956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
22957         * modules/sys_stat (Makefile.am): Substitute correct witness.
22958         * modules/dirent (Makefile.am): Likewise.
22959         * modules/unistd (Makefile.am): Likewise.
22960         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
22961         * lib/unistd.in.h (dup): Likewise.
22962         * lib/sys_stat.in.h (fstat): Likewise.
22963
22964         maint: ignore gnulib-tool temp files
22965         * .gitignore: Ignore files created during gnulib-tool --test.
22966
22967 2009-09-13  Jim Meyering  <meyering@redhat.com>
22968
22969         posixtm: don't reject a time that specify "60" as the number of seconds
22970         * lib/posixtm.c (posixtime): The code to reject invalid dates
22971         would also reject a time specified with the .60 suffix.
22972         But POSIX allows that, in order to accommodate leap seconds.
22973         So don't reject it.
22974         (main): Adjust tests accordingly.
22975         * modules/posixtm (Depends-on): Add stpcpy.
22976
22977 2009-09-11  Jim Meyering  <meyering@redhat.com>
22978
22979         announce-gen: include [$release_type] in emitted Subject:
22980         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
22981         e.g., [stable] in the emitted Subject: line.
22982
22983 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22984
22985         Remove obsolete macros from several modules.
22986         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
22987         obsolete Autoconf macros with their modern counterparts.
22988         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
22989         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
22990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22991         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22992         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
22993         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22995         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22996         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22997         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
22998         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22999         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23000         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23001         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23002         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23003         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23004         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23005         * m4/time_r.m4 (gl_TIME_R): Likewise.
23006         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23007         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23008         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23009
23010         Fix copyright header in build-aux scripts.
23011         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23012         recommendation.
23013         * build-aux/ncftpput-ftp: Likewise.
23014         * build-aux/update-copyright: Likewise.
23015
23016 2009-09-09  Eric Blake  <ebb9@byu.net>
23017
23018         test-link: allow Linux choice of errno
23019         * tests/test-link.c (main): Relax test for alternate error.
23020
23021         strndup: fix improper m4 caching
23022         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23023         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23024         (gl_PREREQ_STRNDUP): Delete.
23025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23026         * modules/string (Makefile.am): Substitute it.
23027         * lib/string.in.h (strndup): Modernize prototype.
23028
23029         getcwd: port to mingw
23030         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23031         different from the POSIX assumptions made throughout the getcwd
23032         module; fortunately, the mingw getcwd does not need replacement.
23033         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23034         * modules/getcwd-tests: New test.
23035         * tests/test-getcwd.c: Likewise.
23036
23037         link: fix platform bugs
23038         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23039         * lib/link.c (link): Work around them.  Fix related mingw bug.
23040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23041         * modules/unistd (Makefile.am): Substitute it.
23042         * lib/unistd.in.h (link): Declare replacement.
23043         * doc/posix-functions/link.texi (link): Document this.
23044         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23045
23046         test-link: consolidate into single C program, test more cases
23047         * tests/test-link.sh: Delete.
23048         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23049         at least Cygwin and Solaris.
23050         * modules/link-tests (Files): Remove unused file.
23051         (Depends-on): Add errno, sys_stat.
23052         (Makefile.am): Simplify.
23053
23054 2009-09-08  Bruno Haible  <bruno@clisp.org>
23055
23056         Work around towlower, towupper bug on mingw.
23057         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23058         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23059         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23060         * doc/posix-functions/towupper.texi: Likewise.
23061         Reported by Eric Blake.
23062
23063 2009-09-08  Jim Meyering  <meyering@redhat.com>
23064
23065         build: don't try to run autoheader if we don't use it
23066         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23067         is not used in configure.ac.
23068
23069 2009-09-08  Eric Blake  <ebb9@byu.net>
23070
23071         euidaccess: fix compilation error
23072         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23073
23074         rawmemchr: relax license
23075         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23076         okay.
23077         Reported by Jim Meyering.
23078
23079         mkfifoat: new module
23080         * modules/mkfifoat: New file.
23081         * lib/mkfifoat.c: Likewise.
23082         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23083         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23084         * modules/sys_stat (Makefile.am): Use them.
23085         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23086         * MODULES.html.sh (File system functions): Mention module.
23087         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23088         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23089         * modules/mkfifoat-tests: New test.
23090         * tests/test-mkfifoat.c: Likewise.
23091
23092         strchrnul: relax license
23093         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23094         okay.
23095         Reported by Jim Meyering.
23096
23097 2009-09-08  Eric Blake  <ebb9@byu.net>
23098
23099         fstatat: fix compilation on Solaris
23100         * lib/fstatat.c (includes): Add fcntl.h.
23101         Reported by Pádraig Brady.
23102
23103 2009-09-07  Eric Blake  <ebb9@byu.net>
23104
23105         rename: modernize replacement
23106         * modules/rename (Depends-on): Add stdio.
23107         (configure.ac): Declare witness.
23108         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23109         stdio take care of replacement.
23110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23111         * modules/stdio (Makefile.am): Substitute them.
23112         * lib/stdio.in.h (rename): Declare replacement.
23113         * lib/rename.c (includes): Allow cross-compilation to non-windows
23114         machines.
23115         * doc/posix-functions/rename.texi (rename): Improve
23116         documentation.
23117
23118         stdio: sort witness names
23119         * modules/stdio (Makefile.am): Sort replacements.
23120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23121         * lib/stdio.in.h: Likewise.
23122
23123         getcwd: minor cleanups
23124         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23125         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23126
23127         openat: provide more convenience names
23128         * modules/faccessat (configure.ac): Add C witness.
23129         * lib/unistd.in.h (readlinkat): Fix typo.
23130         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23131         convenience wrappers.
23132         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23133         wrappers in syntax checks.
23134
23135 2009-09-06  Eric Blake  <ebb9@byu.net>
23136
23137         doc: fix comments in recent patches
23138         * lib/faccessat.c: Mention correct function.
23139         * lib/fchmodat.c: Likewise.
23140         * lib/fchownat.c: Likewise.
23141         * lib/symlinkat.c: Likewise.
23142         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23143         constants.
23144
23145         faccessat, symlinkat: continue cleanup of previous patch
23146         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23147         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23148         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23150         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23151         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23152         set.
23153
23154 2009-09-06  Bruno Haible  <bruno@clisp.org>
23155
23156         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23157         (fstatat): Declare if GNULIB_FSTATAT is set.
23158         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23159         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23160         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23161         * modules/fcntl-h (Files): Remove m4/openat.m4.
23162         * modules/sys_stat (Files): Remove m4/openat.m4.
23163         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23164         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23165         * modules/unistd (Files): Remove m4/openat.m4.
23166         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23167         GNULIB_OPENAT.
23168         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23169         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23170         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23171         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23172         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23173         gl_OPENAT_DEFAULTS.
23174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23175         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23176         Don't require gl_OPENAT_DEFAULTS.
23177         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
23178         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
23179         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
23180         (gl_OPENAT_DEFAULTS): Remove macro.
23181
23182 2009-09-06  Bruno Haible  <bruno@clisp.org>
23183
23184         * modules/openat (configure.ac): Remove unneeded witness.
23185
23186 2009-09-06  Bruno Haible  <bruno@clisp.org>
23187
23188         Set errno to ENOSYS when a function is entirely unsupported.
23189         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
23190         EOPNOTSUPP.
23191         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23192         * modules/chown (Depends-on): Remove errno.
23193
23194 2009-09-06  Bruno Haible  <bruno@clisp.org>
23195
23196         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
23197
23198 2009-09-06  Bruno Haible  <bruno@clisp.org>
23199
23200         * lib/sys_stat.in.h: Fix preprocessor command indentation.
23201
23202 2009-09-06  Ben Pfaff  <blp@gnu.org>
23203             Bruno Haible  <bruno@clisp.org>
23204
23205         Work around a glibc bug in strtok_r.
23206         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
23207         Undefine if UNDEFINE_STRTOK_R is set.
23208         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
23209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23210         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
23211         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
23212         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
23213         UNDEFINE_STRTOK_R.
23214         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
23215
23216 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23217
23218         exclude: minor fix
23219         * lib/exclude.c: Include wctype.h
23220
23221 2009-09-06  Akim Demaille  <demaille@gostai.com>
23222
23223         bootstrap: improve error message
23224         * build-aux/bootstrap (find_tool): Upon failure, report the list
23225         of candidates.
23226         Honor the initial value of the envvar.
23227
23228 2009-09-05  Eric Blake  <ebb9@byu.net>
23229
23230         symlinkat: new module
23231         * modules/symlinkat: New file.
23232         * lib/symlinkat.c: Likewise.
23233         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23235         * modules/unistd (Makefile.am): Use them.
23236         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
23237         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
23238         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
23239         * MODULES.html.sh (File system functions): Mention module.
23240         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23241         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23242         * modules/symlinkat-tests: New test.
23243         * tests/test-symlinkat.c: Likewise.
23244
23245         test-openat-safer: add more checks
23246         * tests/test-openat-safer.c (main): Check more code paths.
23247
23248 2009-09-05  Jim Meyering  <meyering@redhat.com>
23249
23250         syntax-check: detect unnecessary inclusion of openat.h
23251         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
23252
23253 2009-09-05  Bruno Haible  <bruno@clisp.org>
23254
23255         Support towlower, towupper.
23256         * doc/posix-functions/towlower.texi: Mention module wctype.
23257         * doc/posix-functions/towupper.texi: Likewise.
23258         * lib/wctype.in.h (towlower, towupper): New functions.
23259         * tests/test-wctype.c: Include stdio.h, stdlib.h.
23260         (ASSERT): New macro.
23261         (e): New variable.
23262         (main): Test also towlower, towupper. Test WEOF argument.
23263         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23264
23265 2009-09-05  Bruno Haible  <bruno@clisp.org>
23266
23267         Fix conversion behaviour when the input is invalid.
23268         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
23269         mark occurring in first pass of indirect conversion.
23270         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
23271         input.
23272         Found by clang's static analyzer.
23273
23274 2009-09-05  Bruno Haible  <bruno@clisp.org>
23275
23276         * tests/test-striconveh.c (main): Test indirect conversion on platforms
23277         where direct conversion is possible.
23278
23279 2009-09-04  Eric Blake  <ebb9@byu.net>
23280
23281         openat: fail with ENOENT on empty name
23282         * lib/openat-proc.c (openat_proc_name): Special-case the empty
23283         buffer.
23284
23285         link-follow: fix logic bug in prior patch
23286         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
23287         reversed sense of yes and no in prior patch.  Avoid confusing
23288         compilation failure with desired semantics.
23289
23290         link-follow: accomodate mingw and cross-compilation
23291         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
23292         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
23293         cross-compilation results to -1, to make linkat easier to
23294         implement when cross-compiling.  Trivially support mingw.
23295         * modules/link-follow (configure.ac): Call new name.
23296         * NEWS: Mention this.
23297
23298 2009-09-03  Eric Blake  <ebb9@byu.net>
23299
23300         faccessat: compile replacement
23301         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
23302         needed.
23303
23304         fts: fix compilation error
23305         * lib/fts.c (includes): Re-add "openat.h", for
23306         openat_needs_fchdir.
23307
23308         faccessat: new module
23309         * modules/faccessat: New file.
23310         * lib/faccessat.c: Likewise.
23311         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23313         * modules/unistd (Makefile.am): Use it.
23314         * lib/unistd.in.h (faccessat): Declare it.
23315         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
23316         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
23317         * MODULES.html.sh (File system functions): Mention it.
23318         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
23319         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23320
23321         euidaccess: prefer POSIX over non-standard implementation
23322         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
23323         * lib/euidaccess.c (euidaccess): Use it if available.
23324
23325         openat: make template easier to use
23326         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
23327         AT_FUNC_F2 to be undefined.
23328         (VALIDATE_FLAG): New macro; use it to reject bad flags.
23329         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
23330         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
23331         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
23332         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
23333         Likewise.
23334         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
23335         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
23336         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
23337         Likewise.
23338
23339         openat: declare in POSIX headers
23340         * NEWS: Mention this.
23341         * modules/openat (configure.ac): Declare witnesses.
23342         (Depends-on): Add fcntl-h, sys_stat, unistd.
23343         (Include): Mention correct headers.
23344         * modules/fcntl-h (Depends-on): Add link-warning.
23345         (Files): Add openat.m4.
23346         (Makefile.am): Substitute witnesses.
23347         * modules/sys_stat (Files, Makefile.am): Likewise.
23348         * modules/unistd (Files, Makefile.am): Likewise.
23349         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
23350         (gl_OPENAT_DEFAULTS): New macro.
23351         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
23352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
23353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
23354         (SYS_STAT_H): Remove unused variable.
23355         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
23356         * lib/fcntl--.h (includes): Remove unneeded header.
23357         * lib/openat-safer.c (includes): Likewise.
23358         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
23359         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
23360         appropriate headers.
23361         (__OPENAT_PREFIX): Delete.
23362         * lib/fcntl.in.h (openat): Provide declaration.
23363         (AT_FDCWD): Fix Solaris bug.
23364         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
23365         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
23366         * lib/fchmodat.c (includes):  Adjust to find declaration.
23367         * lib/fchownat.c (includes): Likewise.
23368         * lib/mkdirat.c (includes): Likewise.
23369         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
23370         still visible.
23371
23372 2009-09-02  Eric Blake  <ebb9@byu.net>
23373
23374         errno: use consistently
23375         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
23376         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
23377         * lib/canonicalize.c (ELOOP): Likewise.
23378         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
23379         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
23380         * lib/lchown.c (EOPNOTSUPP): Likewise.
23381         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
23382         * lib/savewd.c (ESTALE): Likewise.
23383         * lib/settime.c (ENOSYS): Likewise.
23384         * lib/utimens.c (ENOSYS): Likewise.
23385         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
23386         * lib/chdir-safer.c (ELOOP): Likewise.
23387         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
23388         * modules/c-stack (Depends-on): Add errno.
23389         * modules/canonicalize (Depends-on): Likewise.
23390         * modules/chdir-safer (Depends-on): Likewise.
23391         * modules/fdopendir (Depends-on): Likewise.
23392         * modules/inet_ntop (Depends-on): Likewise.
23393         * modules/inet_pton (Depends-on): Likewise.
23394         * modules/lchown (Depends-on): Likewise.
23395         * modules/openat (Depends-on): Likewise.
23396         * modules/savewd (Depends-on): Likewise.
23397         * modules/settime (Depends-on): Likewise.
23398         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
23399
23400         fts: avoid leaking fds
23401         * modules/fts (Depends-on): Add cloexec.
23402         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
23403         flag.
23404
23405         fts: make directory fds more robust
23406         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
23407         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
23408
23409         backupfile, chdir-long, fts, savedir: make safer
23410         * lib/backupfile.c (includes): Use "dirent--.h", since
23411         numbered_backup can write to stderr during readdir.
23412         * lib/savedir.c (includes): Likewise.
23413         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
23414         emulation can write to stderr on failure.
23415         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
23416         * lib/getcwd.c: Document why opendir_safer is unused.
23417         * lib/glob.c: Likewise.
23418         * lib/scandir.c: Likewise.
23419         * lib/openat-proc.c: Likewise, for open_safer.
23420         * modules/backupfile (Depends-on): Add dirent-safer.
23421         * modules/savedir (Depends-on): Likewise.
23422         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
23423         * modules/chdir-long (Depends-on): Add openat-safer.
23424
23425         openat-safer: new module
23426         * modules/openat-safer: New file.
23427         * lib/openat-safer.c: Likewise.
23428         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
23429         * lib/fcntl-safer.h (openat_safer): Declare.
23430         * lib/fcntl--.h (openat): Override.
23431         * MODULES.html.sh (File descriptor based I/O): Mention it.
23432         * lib/openat.h: Add double-inclusion guards.
23433         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23434         "fcntl--.h", so we can implement openat.
23435         * modules/openat-safer-tests: New test.
23436         * tests/test-openat-safer.c: New file.
23437
23438         dirent-safer: new module
23439         * modules/dirent-safer: New file.
23440         * lib/dirent--.h: Likewise.
23441         * lib/dirent-safer.h: Likewise.
23442         * lib/opendir-safer.c: Likewise.
23443         * m4/dirent-safer.m4: Likewise.
23444         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23445         * modules/dirent-safer-tests: New test.
23446         * tests/test-dirent-safer.c: New file.
23447         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
23448
23449         fdopendir: optimize on mingw
23450         * lib/unistd.in.h (_gl_directory_name): New prototype.
23451         * lib/fchdir.c (_gl_directory_name): Implement it.
23452         (fchdir): Use it to simplify implementation.
23453         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
23454         fchdir, when available, to avoid calling [f]chdir().
23455
23456         fdopendir: split into its own module
23457         * lib/openat.c (fdopendir): Move...
23458         * lib/fdopendir.c: ...into new file.
23459         * modules/fdopendir: New module.
23460         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
23461         * modules/openat (Depends-on): Add fdopendir.
23462         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
23463         fdopendir here.
23464         * modules/savedir (Depends-on): Only need fdopendir, not full
23465         openat.
23466         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
23467         * lib/openat.h (fdopendir): Drop prototype.
23468         * lib/dirent.in.h (fdopendir): Provide prototype.
23469         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
23470         * modules/dirent (Makefile.am): Substitute them.
23471         * MODULES.html.sh (File system functions): Mention it.
23472         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
23473         * modules/fdopendir-tests: New file.
23474         * tests/test-fdopendir.c: Likewise.
23475
23476         fchdir: use more consistent macro convention
23477         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
23478         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
23479         REPLACE_FCHDIR, rather than relying on config.h macros.
23480         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
23481         inside a single make-time REPLACE_FCHDIR block, rather than using
23482         the config.h FCHDIR_REPLACEMENT.
23483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
23484         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
23485         Manage fstat replacement.
23486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
23487         REPLACE_FCHDIR.
23488         * modules/sys_stat (Files): Add m4/unistd_h.m4.
23489         (Makefile.am): Substitute REPLACE_FCHDIR.
23490         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
23491         FCHDIR_REPLACEMENT.
23492         * lib/dup-safer.c (dup_safer): Likewise.
23493         * lib/dup2.c (rpl_dup2): Likewise.
23494         * lib/dup3.c (rpl_dup3): Likewise.
23495         * lib/open.c (rpl_open): Likewise.
23496
23497         fchdir: simplify error handling, and support dup3
23498         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
23499         stdbool, malloc-posix, realloc-posix.
23500         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
23501         (ensure_dirs_slot): Return false on allocation failure.
23502         (rpl_dup2): Delete.
23503         (_gl_register_dup): New function.
23504         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
23505         (_gl_register_fd): Close fd on allocation failure.
23506         * lib/fcntl.in.h (_gl_register_fd): Update signature.
23507         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
23508         prototype.
23509         (rpl_dup2_fchdir): Delete prototype.
23510         * lib/open.c (open): Update caller.
23511         * lib/dup2.c (dup2): Track fchdir metadata.
23512         * lib/dup3.c (dup3): Likewise.
23513         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
23514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
23515
23516 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23517
23518         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
23519         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
23520         don't pass arguments to AC_OUTPUT.
23521
23522 2009-09-02  Bruno Haible  <bruno@clisp.org>
23523
23524         * modules/mkdtemp (License): Relicense under LGPLv2+.
23525         Reported by Paolo Bonzini.
23526
23527 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23528
23529         Replace uses of obsolete autoconf macros in Jim's modules.
23530         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
23531         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
23532         can evoke a warning from autoconf when run with -Wobsolete
23533         enabled.  They were declared obsolete for good reasons (see
23534         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
23535         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
23536         should not continue using the deprecated macros.
23537         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23538         obsolete Autoconf macros with modern counterparts.
23539         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23540         * m4/dos.m4 (gl_AC_DOS): Likewise.
23541         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
23542         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23543         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
23544         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
23545         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
23546         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23547         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
23548         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
23549         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23550         Likewise.
23551         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23552         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23553         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
23554         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
23555         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23556         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23557
23558 2009-09-01  Eric Blake  <ebb9@byu.net>
23559
23560         fchdir: fix off-by-one bug in previous patch
23561         * lib/fchdir.c (rpl_fstat): Use correct bounds.
23562         (_gl_unregister_fd): Delete useless if.
23563
23564 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
23565
23566         maint.mk: sort the list of syntax-check rules
23567         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
23568         easier to get a sense of progress when the rules are run sequentially
23569         and take a long time.
23570
23571 2009-09-01  Simon Josefsson  <simon@josefsson.org>
23572
23573         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
23574         * modules/netinet_in: Likewise.
23575         * modules/sys_file: Likewise.
23576         * modules/sys_ioctl: Likewise.
23577         * modules/sys_select: Likewise.
23578         * modules/sys_socket: Likewise.
23579         * modules/sys_stat: Likewise.
23580         * modules/sys_time: Likewise.
23581         * modules/sys_times: Likewise.
23582         * modules/sys_utsname: Likewise.
23583         * modules/sys_wait: Likewise.
23584
23585 2009-09-01  Jim Meyering  <meyering@redhat.com>
23586
23587         fts: help ensure that return values are not ignored
23588         * lib/fts_.h (__GNUC_PREREQ): Define.
23589         (__attribute_warn_unused_result__): Define.
23590         (fts_children, fts_close, fts_open, fts_read): Declare with
23591         __attribute_warn_unused_result__.
23592
23593         fts: fts_close now fails also when closing a dir file descriptor fails
23594         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
23595         and propagate to caller, along with errno.
23596
23597         announce-gen: correct formatting in --help output
23598         * build-aux/announce-gen (usage): Move the one-line description in
23599         --help output "up", to where it belongs, just after Usage:.
23600
23601 2009-08-31  Eric Blake  <ebb9@byu.net>
23602
23603         fchdir: port to mingw
23604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
23605         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
23606         opened, then use a substitute.
23607         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
23608         replacement.
23609         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
23610         (_gl_register_fd): No need to check stat if open already filters
23611         all directories.
23612         (fchdir): Fix error condition to match POSIX.
23613         * modules/fchdir (Depends-on): Add sys_stat.
23614         * doc/posix-functions/open.texi (open): Document the limitation.
23615         * modules/fchdir-tests: New file.
23616         * tests/test-fchdir.c: Likewise.
23617
23618         canonicalize: allow cross-testing from cygwin to mingw
23619         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
23620         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
23621         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
23622         Likewise.
23623         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
23624         target does not support symlinks.
23625         * tests/test-canonicalize-lgpl.sh: Likewise.
23626
23627         chown: avoid compilation warning on mingw
23628         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
23629         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
23630         mingw.
23631         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23632         * modules/chown (Depends-on): Add errno.
23633
23634 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23635
23636         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
23637         command.
23638
23639 2009-08-31  Jim Meyering  <meyering@redhat.com>
23640
23641         canonicalize: remove useless initialization
23642         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23643         initialization of local, "end".
23644
23645 2009-08-30  Bruno Haible  <bruno@clisp.org>
23646
23647         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23648         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23649         ENOSYS.
23650
23651 2009-08-30  Bruno Haible  <bruno@clisp.org>
23652
23653         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23654         /usr/xpg4/bin/tr when it exists.
23655         * tests/test-pipe-filter-gi1.sh: Likewise.
23656
23657 2009-08-30  Bruno Haible  <bruno@clisp.org>
23658
23659         Work around deficient /usr/bin/id program on Solaris.
23660         * tests/test-file-has-acl.sh (ID): New variable.
23661         * tests/test-set-mode-acl.sh (ID): Likewise.
23662         * tests/test-copy-acl.sh (ID): Likewise.
23663         * tests/test-copy-file.sh (ID): Likewise.
23664
23665 2009-08-30  Bruno Haible  <bruno@clisp.org>
23666
23667         New module 'xstriconveh'.
23668         * lib/xstriconveh.h: New file.
23669         * lib/xstriconveh.c: New file.
23670         * modules/xstriconveh: New file.
23671
23672 2009-08-30  Bruno Haible  <bruno@clisp.org>
23673
23674         Make it easier to use mem_cd_iconveh.
23675         * lib/striconveh.h (iconveh_t): New type.
23676         (iconveh_open, iconveh_close): New declarations.
23677         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23678         with a single 'const iconveh_t *' argument.
23679         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
23680         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23681         with a single 'const iconveh_t *' argument.
23682         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
23683         * tests/test-striconveh.c (main): Update.
23684         * NEWS: Mention the change.
23685
23686 2009-08-30  Bruno Haible  <bruno@clisp.org>
23687
23688         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
23689         problem.
23690
23691 2009-08-30  Bruno Haible  <bruno@clisp.org>
23692
23693         Work around iconv_open problem on Solaris.
23694         * lib/iconv_open-solaris.gperf: New file.
23695         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
23696         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
23697         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
23698         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
23699         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
23700         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
23701
23702 2009-08-29  Jim Meyering  <meyering@redhat.com>
23703
23704         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
23705         * top/maint.mk (cvs-check): Remove target; it was just an alias
23706         to the better-named vc-diff-check.
23707         (maintainer-distcheck): Remove rule.  It was used only from
23708         the (alpha/beta/major) target, and all of its commands but one
23709         were coreutils-specific.
23710         (vc-dist): Remove rule.
23711         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
23712         Run vc-diff-check, not vc-dist.
23713         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
23714
23715 2009-08-27  Bruno Haible  <bruno@clisp.org>
23716
23717         * tests/test-bitrotate.c (main): Remove test that uses a shift count
23718         of 0.
23719
23720 2009-08-27  Bruno Haible  <bruno@clisp.org>
23721
23722         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
23723         compilers.
23724         * doc/func.texi: Document the SunPRO C bug.
23725
23726 2009-08-27  Bruno Haible  <bruno@clisp.org>
23727
23728         Fix link error on Solaris.
23729         * tests/test-parse-duration.c (xstrdup): Remove function.
23730
23731 2009-08-26  Pádraig Brady  <P@draigbrady.com>
23732
23733         ignore-value: handle pointer types, too
23734         * lib/ignore-value.h (__attribute__): Remove definition.
23735         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
23736         of a more concise and more-often effective "(void) i" statement.
23737         (ignore_ptr): New function to suppress warnings from functions that
23738         return pointers, and to make it explicit that one function doesn't
23739         handle all cases.
23740
23741 2009-08-25  Bruno Haible  <bruno@clisp.org>
23742
23743         dup2: work around a Linux bug.
23744         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
23745         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
23746         * doc/posix-functions/dup2.texi: Mention the Linux bug.
23747         Reported by Simon Josefsson.
23748
23749 2009-08-25  Jim Meyering  <meyering@redhat.com>
23750
23751         libguestfs uses gnulib
23752         * users.txt: Add libguestfs.
23753
23754 2009-08-24  Eric Blake  <ebb9@byu.net>
23755
23756         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
23757         * lib/pipe2.c (includes): Add binary-io.h.
23758         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
23759
23760 2009-08-24  Bruno Haible  <bruno@clisp.org>
23761
23762         Tolerate declared but missing accept4 syscall.
23763         * lib/accept4.c (accept4): Invoke original accept4 function first, if
23764         available.
23765         * lib/sys_socket.in.h (accept4): If the function is already present,
23766         override it.
23767         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
23768         * modules/accept4 (Makefile.am): Compile accept4.c always.
23769         Reported by Paolo Bonzini and Eric Blake.
23770
23771 2009-08-23  Bruno Haible  <bruno@clisp.org>
23772
23773         New module 'accept4'.
23774         * lib/sys_socket.in.h (accept4): New declaration.
23775         * lib/accept4.c: New file.
23776         * m4/accept4.m4: New file.
23777         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23778         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23779         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23780         HAVE_ACCEPT4.
23781         * modules/accept4: New file.
23782         * doc/glibc-functions/accept4.texi: Mention the new module.
23783
23784 2009-08-24  Jim Meyering  <meyering@redhat.com>
23785
23786         progname: also set global program_invocation_name, when possible
23787         Before this change, a libtool-enabled program that calls glibc's
23788         error function would report the program name as
23789         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23790         * modules/progname (configure.ac): Check for a declaration of
23791         program_invocation_name.
23792         * lib/progname.c:  Include <errno.h>.
23793         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23794         Set program_invocation_name.
23795
23796 2009-08-23  Bruno Haible  <bruno@clisp.org>
23797
23798         * lib/dup3.c: Include <string.h>.
23799
23800 2009-08-23  Bruno Haible  <bruno@clisp.org>
23801
23802         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23803         * lib/pipe2.c (pipe2): Likewise.
23804         Suggested by Eric Blake.
23805
23806 2009-08-23  Bruno Haible  <bruno@clisp.org>
23807
23808         Tolerate declared but missing dup3 syscall.
23809         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23810         * lib/unistd.in.h (dup3): If the function is already present,
23811         override it.
23812         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23813         * modules/dup3 (Makefile.am): Compile dup3.c always.
23814         Reported by Paolo Bonzini.
23815
23816 2009-08-23  Bruno Haible  <bruno@clisp.org>
23817
23818         Tolerate declared but missing pipe2 syscall.
23819         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
23820         available.
23821         * lib/unistd.in.h (pipe2): If the function is already present,
23822         override it.
23823         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
23824         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
23825         Reported by Paolo Bonzini.
23826
23827 2009-08-23  Bruno Haible  <bruno@clisp.org>
23828
23829         * lib/pipe2.c (pipe2): Move #ifs inside function.
23830
23831 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23832
23833         quotearg: document limitations of quote_these_too
23834         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
23835         those limitations are created.
23836         * lib/quotearg.h (set_char_quoting): Document that digits and
23837         letters that are special after backslash are not permitted.
23838         (quotearg_char): Cross-reference set_char_quoting documentation.
23839
23840 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
23841
23842         quotearg: implement custom_quoting_style
23843         * lib/quotearg.c: (struct quoting_options): Add left_quote and
23844         right_quote fields.
23845         (set_custom_quoting): New public function.
23846         (quotearg_buffer_restyled): Add left_quote and right_quote
23847         arguments, handle them very much like locale quoting, and update
23848         all uses.
23849         (quotearg_n_custom): New public function.
23850         (quotearg_n_custom_mem): New public function.
23851         (quotearg_custom): New public function.
23852         (quotearg_custom_mem): New public function.
23853         * lib/quotearg.h: Prototype and document new public functions.
23854         (enum quoting_style): For escape_quoting_style and
23855         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
23856         ignored even though they're otherwise like c_quoting_style.
23857         Add custom_quoting_style member and document with comparison to
23858         clocale_quoting_style.
23859         * tests/test-quotearg.c (custom_quotes): New array.
23860         (custom_results): New array.
23861         (main): Extend to test custom quoting.
23862
23863 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23864
23865         quotearg: fix right quote escaping when it's in quote_these_too
23866         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
23867         quote, be sure to prepend only one backslash.
23868         * tests/test-quotearg.c (use_quote_double_quotes): New function.
23869         (main): Test it.
23870
23871 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23872
23873         quotearg-tests: test escaping of embedded locale quotes
23874         * tests/test-quotearg.c (struct result_strings): Add member for
23875         new input.
23876         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
23877         (inputs): Add new input.
23878         (results_g): Add expected results.
23879         (flag_results): Likewise.
23880         (locale_results): Likewise.
23881         (compare_strings): Check those.
23882
23883 2009-08-23  Bruno Haible  <bruno@clisp.org>
23884
23885         Tests for module 'dup3'.
23886         * modules/dup3-tests: New file.
23887         * tests/test-dup3.c: New file.
23888
23889         New module 'dup3'.
23890         * lib/unistd.in.h (dup3): New declaration.
23891         * lib/dup3.c: New file.
23892         * m4/dup3.m4: New file.
23893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
23894         HAVE_DUP3.
23895         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
23896         * modules/dup3: New file.
23897         * doc/glibc-functions/dup3.texi: Mention the new module.
23898
23899 2009-08-23  Bruno Haible  <bruno@clisp.org>
23900
23901         Tweak the dup2 test.
23902         * tests/test-dup2.c (main): Create the test file empty. Verify that an
23903         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
23904         the test file is still empty. Fix argument order of lseek.
23905
23906 2009-08-23  Bruno Haible  <bruno@clisp.org>
23907
23908         Avoid test link errors when the modules getopt-gnu, gettext are used.
23909         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
23910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23911
23912 2009-08-23  Bruno Haible  <bruno@clisp.org>
23913
23914         Fix getdtablesize() on mingw.
23915         * lib/getdtablesize.c (getdtablesize): Implement differently.
23916         * lib/unistd.in.h (getdtablesize): Improve comment.
23917
23918 2009-08-23  Bruno Haible  <bruno@clisp.org>
23919
23920         New module 'mkostemp'.
23921         Based on Ulrich Drepper's 2007-08-10 change in glibc.
23922         * lib/stdlib.in.h (mksotemp): New declaration.
23923         * lib/mkostemp.c: New file, from glibc with modifications.
23924         * lib/tempname.h (GT_FILE): Remove outdated comment.
23925         (gen_tempname): Add flags argument.
23926         * lib/tempname.c (__GT_BIGFILE): Remove macro.
23927         (__GT_FILE): Map to 1.
23928         (small_open, large_open): Remove macros.
23929         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
23930         * lib/mkstemp.c (mkstemp): Update.
23931         * lib/mkdtemp.c (mkdtemp): Likewise.
23932         * m4/mkostemp.m4: New file.
23933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
23934         HAVE_MKOSTEMP.
23935         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
23936         HAVE_MKOSTEMP.
23937         * modules/mkostemp: New file, based on modules/mkstemp.
23938         * doc/glibc-functions/mkostemp.texi: Mention the new module.
23939         * NEWS: Mention the change.
23940
23941 2009-08-23  Bruno Haible  <bruno@clisp.org>
23942
23943         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
23944         Reported by Eric Blake.
23945
23946 2009-08-23  Bruno Haible  <bruno@clisp.org>
23947
23948         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
23949         Reported by Eric Blake.
23950
23951 2009-08-23  Bruno Haible  <bruno@clisp.org>
23952
23953         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
23954         * modules/pipe2 (Depends-on): Likewise.
23955
23956 2009-08-23  Eric Blake  <ebb9@byu.net>
23957
23958         fcntl-h: add O_TTY_INIT support
23959         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
23960         * tests/test-fcntl-h.c (o): Test it.
23961         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23962
23963         fcntl-h: rename from fcntl, in preparation for fcntl(2)
23964         * modules/fcntl: Move <fcntl.h> header replacement...
23965         * modules/fcntl-h: ...to new name, so as not to collide with
23966         like-named function.
23967         * tests/test-fcntl.c: Rename...
23968         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
23969         * modules/fcntl-tests: Rename...
23970         * modules/fcntl-h-tests: ...to this.  Update test file name.
23971         * modules/chdir-long (Depends-on): Update clients.
23972         * modules/chdir-safer (Depends-on): Likewise.
23973         * modules/fcntl-safer (Depends-on): Likewise.
23974         * modules/fts (Depends-on): Likewise.
23975         * modules/mkancesdirs (Depends-on): Likewise.
23976         * modules/mkdir-p (Depends-on): Likewise.
23977         * modules/open (Depends-on): Likewise.
23978         * modules/savewd (Depends-on): Likewise.
23979         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
23980         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23981
23982 2009-08-22  Bruno Haible  <bruno@clisp.org>
23983
23984         * modules/binary-io (License): Relicense under LGPL.
23985         * modules/pipe2 (License): Likewise.
23986
23987 2009-08-22  Bruno Haible  <bruno@clisp.org>
23988
23989         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
23990         return value.
23991         * lib/pipe-filter-gi.c (filter_init): Likewise.
23992         Reported by Eric Blake.
23993
23994 2009-08-22  Bruno Haible  <bruno@clisp.org>
23995
23996         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
23997         * modules/pipe (Depends-on): Add pipe2.
23998
23999 2009-08-22  Bruno Haible  <bruno@clisp.org>
24000
24001         Tests for module 'pipe2'.
24002         * modules/pipe2-tests: New file.
24003         * tests/test-pipe2.c: New file.
24004
24005         New module 'pipe2'.
24006         * lib/unistd.in.h (pipe2): New declaration.
24007         * lib/pipe2.c: New file.
24008         * m4/pipe2.m4: New file.
24009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24010         HAVE_PIPE2.
24011         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24012         * modules/pipe2: New file.
24013         * doc/glibc-functions/pipe2.texi: Mention the new module.
24014
24015 2009-08-22  Bruno Haible  <bruno@clisp.org>
24016
24017         Reference some new glibc functions.
24018         * doc/glibc-functions/accept4.texi: New file.
24019         * doc/glibc-functions/dup3.texi: New file.
24020         * doc/glibc-functions/mkostemp.texi: New file.
24021         * doc/glibc-functions/pipe2.texi: New file.
24022         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24023         (Glibc sys/socket.h): Refer to accept4.
24024         (Glibc unistd.h): Refer to dup3, pipe2.
24025         Reported by Eric Blake.
24026
24027 2009-08-22  Jim Meyering  <meyering@redhat.com>
24028             Bruno Haible  <bruno@clisp.org>
24029
24030         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24031         This makes it so packages using automake-1.11's silent-rules option
24032         can print e.g., a single "GEN    configmake.h" line, rather than
24033         the 30+ statements that perform the job.  If you want to see the
24034         actual commands, you can still run "make V=1".
24035         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24036         so that make output is abbreviated when those variables are defined
24037         appropriately.
24038         * modules/argz: Likewise.
24039         * modules/arpa_inet: Likewise.
24040         * modules/byteswap: Likewise.
24041         * modules/configmake: Likewise.
24042         * modules/dirent: Likewise.
24043         * modules/errno: Likewise.
24044         * modules/fcntl: Likewise.
24045         * modules/float: Likewise.
24046         * modules/fnmatch: Likewise.
24047         * modules/getopt-posix: Likewise.
24048         * modules/glob: Likewise.
24049         * modules/iconv_open: Likewise.
24050         * modules/inttypes: Likewise.
24051         * modules/localcharset: Likewise.
24052         * modules/locale: Likewise.
24053         * modules/math: Likewise.
24054         * modules/netdb: Likewise.
24055         * modules/netinet_in: Likewise.
24056         * modules/poll: Likewise.
24057         * modules/posix_spawnp-tests: Likewise.
24058         * modules/sched: Likewise.
24059         * modules/search: Likewise.
24060         * modules/selinux-h: Likewise.
24061         * modules/signal: Likewise.
24062         * modules/spawn: Likewise.
24063         * modules/stdarg: Likewise.
24064         * modules/stdbool: Likewise.
24065         * modules/stddef: Likewise.
24066         * modules/stdint: Likewise.
24067         * modules/stdio: Likewise.
24068         * modules/stdlib: Likewise.
24069         * modules/string: Likewise.
24070         * modules/strings: Likewise.
24071         * modules/sys_file: Likewise.
24072         * modules/sys_ioctl: Likewise.
24073         * modules/sys_select: Likewise.
24074         * modules/sys_socket: Likewise.
24075         * modules/sys_stat: Likewise.
24076         * modules/sys_time: Likewise.
24077         * modules/sys_times: Likewise.
24078         * modules/sys_utsname: Likewise.
24079         * modules/sys_wait: Likewise.
24080         * modules/sysexits: Likewise.
24081         * modules/time: Likewise.
24082         * modules/unistd: Likewise.
24083         * modules/wchar: Likewise.
24084         * modules/wctype: Likewise.
24085
24086 2009-08-22  Jim Meyering  <meyering@redhat.com>
24087
24088         announce-gen: detect write failure
24089         * build-aux/announce-gen: Add Coda at end.
24090         Remove equivalent-but-more-verbose block at top.
24091
24092 2009-08-19  Akim Demaille  <demaille@gostai.com>
24093
24094         bootstrap: --help to stdout.
24095         * bootstrap (usage): Don't send --help to stderr.
24096         Use a here doc instead of a long string.
24097
24098 2009-08-21  Eric Blake  <ebb9@byu.net>
24099
24100         test-popen-safer: split from test-popen
24101         * tests/test-popen.c (main): Move...
24102         * tests/test-popen.h: ...into new file.
24103         * tests/test-popen-safer2.c: New file.
24104         * modules/popen-tests (Files): Add test-popen.h.
24105         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24106         Suggested by Bruno Haible.
24107
24108         test-fcntl-safer: split from test-open
24109         * tests/test-open.c (main): Move...
24110         * tests/test-open.h: ...into new file.
24111         * tests/test-fcntl-safer.c: New file.
24112         * modules/open-tests (Files): Add test-open.h.
24113         * modules/fcntl-safer-tests: New file.
24114         Suggested by Bruno Haible.
24115
24116         test-fopen-safer: split from test-fopen
24117         * tests/test-fopen.c (main): Move...
24118         * tests/test-fopen.h: ...into new file.
24119         * tests/test-fopen-safer.c: New file.
24120         * modules/fopen-tests (Files): Add test-fopen.h.
24121         * modules/fopen-safer-tests: New file.
24122         Suggested by Bruno Haible.
24123
24124 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24125
24126         popen-safer: test O_CLOEXEC at run-time.
24127         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24128
24129 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24130
24131         fcntl: move more flags to the header
24132         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24133         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24134         * lib/fcntl.in.h: Do both things here.
24135
24136 2009-08-21  Jim Meyering  <meyering@redhat.com>
24137
24138         consistently remove $@-t before redirecting to it
24139         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24140         * modules/alloca-opt: Likewise.
24141         * modules/byteswap: Likewise.
24142         * modules/fnmatch: Likewise.
24143         * modules/getopt-posix: Likewise.
24144         * modules/glob: Likewise.
24145         * modules/poll: Likewise.
24146         * modules/posix_spawnp-tests: Likewise.
24147         * modules/sys_socket: Likewise.
24148         * modules/sysexits: Likewise.
24149
24150 2009-08-21  Eric Blake  <ebb9@byu.net>
24151
24152         popen: simplify access to original popen
24153         * lib/popen.c (rpl_popen): No need to worry about popen being a
24154         macro.
24155         Reported by Bruno Haible.
24156
24157 2009-08-20  Eric Blake  <ebb9@byu.net>
24158
24159         build: avoid some compiler warnings
24160         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24161         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24162         type.
24163         (new_exclude_segment, excluded_file_pattern_p)
24164         (excluded_file_name_p): Reduce scope.
24165         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24166         old-style declaration.
24167
24168 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24169
24170         * tests/test-exclude1.sh: Handle Windows EOL.
24171         * tests/test-exclude2.sh: Likewise.
24172         * tests/test-exclude3.sh: Likewise.
24173         * tests/test-exclude4.sh: Likewise.
24174         * tests/test-exclude5.sh: Likewise.
24175         * tests/test-exclude6.sh: Likewise.
24176         * tests/test-exclude7.sh: Likewise.
24177
24178 2009-08-19  Akim Demaille  <demaille@gostai.com>
24179
24180         bootstrap: find sha1sum when named gsha1sum.
24181         * bootstrap (find_tool): New.
24182         ($SHA1SUM): New.
24183         Use it.
24184
24185 2009-08-20  Jim Meyering  <meyering@redhat.com>
24186
24187         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
24188         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
24189         expression that converts "." in a file name to "\." in the resulting
24190         regexp.  Start with a dummy statement, so that prior shell variable
24191         definitions are expanded portably.  Reported by Simon Josefsson.
24192
24193 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
24194
24195         Fix polling for writeability of a screen buffer.
24196         * lib/poll.c: Distinguish input and screen buffers for the
24197         Win32 implementation.
24198         * lib/select.c: Likewise.
24199
24200 2009-08-19  Eric Blake  <ebb9@byu.net>
24201
24202         popen-safer: prevent popen from clobbering std descriptors
24203         * modules/popen-safer: New file.
24204         * lib/popen-safer.c: Likewise.
24205         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
24206         * lib/stdio--.h (popen): Provide override.
24207         * lib/stdio-safer.h (popen_safer): Provide declaration.
24208         * tests/test-popen.c (includes): Partially test this.
24209         * modules/popen-safer-tests: New file, for more tests.
24210         * tests/test-popen-safer.c: Likewise.
24211         * MODULES.html.sh (file stream based Input/Output): Mention it.
24212
24213         tests: test some of the *-safer modules
24214         * modules/fopen-safer (Depends-on): Add fopen.
24215         * modules/fcntl-safer (Depends-on): Add fcntl.
24216         * modules/stdlib-safer (Depends-on): Add stdlib.
24217         (configure.ac): Set indicator.
24218         * modules/unistd-safer (configure.ac): Likewise.
24219         * modules/tmpfile-safer (configure.ac): Likewise.
24220         (Depends-on): Add tmpfile.
24221         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
24222         active.
24223         * tests/test-fopen.c (includes): Test safer versions when they are
24224         in use.
24225         * tests/test-open.c (includes): Likewise.
24226
24227         popen: fix cygwin 1.5 bug when stdin closed
24228         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
24229         * modules/popen: New file.
24230         * modules/popen-tests: Likewise.
24231         * tests/test-popen.c: Likewise.
24232         * m4/popen.m4: Likewise.
24233         * lib/popen.c: Likewise.
24234         * lib/stdio.in.h (popen): New declaration.
24235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
24236         * modules/stdio (Makefile.am): Likewise.
24237         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
24238
24239 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
24240
24241         maint.mk: give full control over update-copyright exclusions
24242         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
24243         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
24244         (update-copyright): Don't force inclusion of top-level
24245         ChangeLog.  Don't force exclusion of all COPYING files, but make
24246         them the default exclusion instead.
24247
24248 2009-08-16  Bruno Haible  <bruno@clisp.org>
24249
24250         Fix test failures on Solaris 10.
24251         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
24252         tests when Solaris iconv() is used.
24253         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24254         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24255         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24256         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24257         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24258
24259 2009-08-16  Bruno Haible  <bruno@clisp.org>
24260
24261         Fix test failures on Solaris 10.
24262         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
24263         'tr' program and pass it as first argument.
24264         * tests/test-pipe-filter-gi1.sh: Likewise.
24265         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
24266         program as first argument.
24267         * tests/test-pipe-filter-gi1.c (main): Likewise.
24268
24269 2009-08-16  Eric Blake  <ebb9@byu.net>
24270
24271         fpurge: fix previous commits
24272         * modules/fpurge (Makefile.am): Make replacement conditional,
24273         partially reverting 2007-04-29 change; missed in previous
24274         attempt.
24275         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
24276         is missing.
24277
24278 2009-08-16  Bruno Haible  <bruno@clisp.org>
24279
24280         Clarify fpurge's effect on the file position.
24281         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
24282         * tests/test-fpurge.c (main): Make a second pass for checking the file
24283         position.
24284
24285 2009-08-16  Bruno Haible  <bruno@clisp.org>
24286
24287         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
24288         declaration of fpurge is missing.
24289         * tests/test-fpurge.c (main): Check that the file has not more contents
24290         than expected. Close the file before removing it.
24291
24292 2009-08-15  Eric Blake  <ebb9@byu.net>
24293
24294         fpurge: don't wrap working cygwin implementation
24295         * lib/fpurge.c (fpurge): Fix comment typo.
24296         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
24297         1.7 to avoid replacement.
24298         * tests/test-fpurge.c (main): Enhance test.
24299
24300 2009-08-15  Eric Blake  <ebb9@byu.net>
24301         and Jim Meyering  <meyering@redhat.com>
24302
24303         test-update-copyright: skip if perl is insufficient
24304         * tests/test-update-copyright.sh: Failure to run maintainer tool
24305         should not cause testsuite failure on cygwin 1.5.
24306
24307 2009-08-14  Eric Blake  <ebb9@byu.net>
24308
24309         doc: mention more functions added in cygwin 1.7.0
24310         * doc/posix-headers/limits.texi (limits.h): Update for recent
24311         cygwin additions.
24312         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
24313         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
24314         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
24315         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
24316         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
24317
24318 2009-08-14  Eric Blake  <ebb9@byu.net>
24319
24320         maint.mk: simplify update-copyright rule
24321         * top/maint.mk (update-copyright-local): Delete, and document how
24322         to do it in cfg.mk instead.
24323         (update-copyright-exclude-regexp): Delete, and document how to do
24324         it in .x-update-copyright instead.
24325         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
24326         exclude ChangeLog.
24327
24328 2009-08-14  Bruno Haible  <bruno@clisp.org>
24329
24330         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
24331
24332 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24333
24334         maint.mk: support update-copyright-env
24335         * top/maint.mk (update-copyright-env): Define place-holder.
24336         (update-copyright): Expand $(update-copyright-env) before
24337         invoking update-copyright.
24338
24339 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24340
24341         update-copyright: implement forced reformatting
24342         * build-aux/update-copyright: Implement and document
24343         UPDATE_COPYRIGHT_FORCE.
24344         * tests/test-update-copyright.sh: Test it.
24345
24346 2009-08-14  Eric Blake  <ebb9@byu.net>
24347         and Bruno Haible  <bruno@clisp.org>
24348
24349         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
24350         * tests/test-locale.c: Revert previous patch related to NULL.
24351         * tests/test-stdio.c: Likewise.
24352         * tests/test-stdlib.c: Likewise.
24353         * tests/test-string.c: Likewise.
24354         * tests/test-unistd.c: Likewise.
24355         * modules/time-tests (Depends-on): Add verify.
24356         * modules/wchar-tests (Depends-on): Likewise.
24357         * tests/test-time.c: Test for NULL compliance.
24358         * tests/test-wchar.c: Likewise.
24359         * modules/locale (Depends-on): Add stddef.
24360         * modules/stdio (Depends-on): Likewise.
24361         * modules/stdlib (Depends-on): Likewise.
24362         * modules/string (Depends-on): Likewise.
24363         * modules/time (Depends-on): Likewise.
24364         * modules/unistd (Depends-on): Likewise.
24365         * modules/wchar (Depends-on): Likewise.
24366         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
24367         * lib/stdlib.in.h (includes): Likewise.
24368         * lib/string.in.h (includes): Likewise.
24369         * lib/time.in.h (includes): Likewise.
24370         * lib/unistd.in.h (includes): Likewise.
24371         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
24372         replaced.
24373         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24374         * m4/stddef_h.m4: New file.
24375         * modules/stddef: Likewise.
24376         * lib/stddef.in.h: Likewise.
24377         * modules/stddef-tests: Likewise.
24378         * tests/test-stddef.c: Likewise.
24379         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
24380         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
24381         * doc/posix-headers/locale.texi (locale.h): Likewise.
24382         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
24383         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24384         * doc/posix-headers/string.texi (string.h): Likewise.
24385         * doc/posix-headers/time.texi (time.h): Likewise.
24386         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
24387         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
24388
24389 2009-08-14  Eric Blake  <ebb9@byu.net>
24390
24391         doc: improve git diff of texinfo files
24392         * .gitattributes: Add rule for *.texi files, with hint on how to
24393         use it.
24394         Copied from m4, and based on a report by Bruno Haible.
24395
24396 2009-08-14  Bruno Haible  <bruno@clisp.org>
24397
24398         Disable multithread support by default on Cygwin 1.5.x for real.
24399         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
24400
24401 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24402
24403         update-copyright: much ado about intervals
24404         * build-aux/update-copyright: Implement and document
24405         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
24406         of copyright year intervals.
24407         Also, document UPDATE_COPYRIGHT_YEAR.
24408         * tests/test-update-copyright.sh: Test it.
24409
24410         update-copyright: convert 2-digit to 4-digit years
24411         * build-aux/update-copyright: Implement and document.
24412         * tests/test-update-copyright.sh: Update.
24413
24414 2009-08-14  Jim Meyering  <meyering@redhat.com>
24415
24416         test-exclude: avoid coreutils "make check" failure
24417         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
24418         just as in test-argmatch.c.
24419
24420 2009-08-13  Eric Blake  <ebb9@byu.net>
24421
24422         test-dup2: fix bad assumption
24423         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
24424         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
24425
24426         test-version-etc: fix CRLF portability issue
24427         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
24428         recognize \r.
24429         * tests/test-argp-version-etc-1.sh: Likewise.
24430
24431         getopt: update client modules
24432         * modules/argp (Depends-on): Use getopt-gnu.
24433         * modules/git-merge-changelog (Depends-on): Likewise.
24434         * modules/long-options (Depends-on): Likewise.
24435         * modules/xstrtol (Depends-on): Likewise.
24436
24437 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24438
24439         * tests/test-version-etc.sh: Don't fail on different
24440         project/version.  Don't fail on CRLF differences.  Rewrite to use
24441         multiple -e instead of multiple sed forks, suggested by Eric Blake
24442         <ebb9@byu.net>.
24443         * tests/test-argp-version-etc-1.sh: Likewise.
24444
24445 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24446
24447         * tests/test-version-etc.sh: Don't fail on different
24448         project/version.
24449
24450 2009-08-12  Bruno Haible  <bruno@clisp.org>
24451
24452         Tests for modules 'getopt-posix', 'getopt-gnu'.
24453         * modules/getopt-posix-tests: New file.
24454         * tests/test-getopt.c: New file.
24455         * tests/test-getopt.h: New file.
24456         * tests/test-getopt_long.h: New file.
24457
24458         New modules 'getopt-posix', 'getopt-gnu'.
24459         * modules/getopt-gnu: New file, renamed from modules/getopt.
24460         * modules/getopt-posix: New file.
24461         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
24462         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
24463         (gl_GETOPT): Remove macro.
24464         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
24465         Disable the test against BSD systems that declare optreset. Test
24466         against mingw bug. Test against lack of support of optional arguments
24467         on many platforms.
24468         * doc/glibc-headers/getopt.texi: Update module name and list of
24469         relevant platforms.
24470         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
24471         'getopt-gnu' and more portability problems.
24472         * NEWS: Mention the changes.
24473
24474 2009-08-12  Bruno Haible  <bruno@clisp.org>
24475
24476         Ensure that optarg etc. get declared by <unistd.h>.
24477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
24478         AC_USE_SYSTEM_EXTENSIONS.
24479         * modules/getopt (Depends-on): Add 'extensions'.
24480
24481 2009-08-12  Bruno Haible  <bruno@clisp.org>
24482
24483         Avoid test link errors.
24484         * modules/pipe-filter-ii-tests (Makefile.am): Define
24485         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
24486         * modules/pipe-filter-gi-tests (Makefile.am): Define
24487         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
24488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24489
24490 2009-08-12  Bruno Haible  <bruno@clisp.org>
24491
24492         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
24493         gl_GETOPT_SUBSTITUTE before.
24494         (gl_GETOPT): Use it.
24495         * m4/argp.m4 (gl_ARGP): Update.
24496         Reported by Sergey Poznyakoff.
24497
24498         * m4/getopt.m4: Reorder macros.
24499         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
24500         (gl_GETOPT_SUBSTITUTE): Remove macro.
24501
24502 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24503
24504         Minor improvement in gitlog-to-changelog
24505
24506         * build-aux/gitlog-to-changelog: New option `--format' makes
24507         output format string configurable.
24508
24509 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24510
24511         Optimize exclude: use hash tables for non-wildcard patterns.
24512
24513         * lib/exclude.c: Include hash.h and mbuiter.h
24514         (struct exclude_pattern, exclude_segment): New data types.
24515         (struct exclude): Rewrite.
24516         (fnmatch_pattern_has_wildcards): New function.
24517         (new_exclude_segment, free_exclude_segment): New functions.
24518         (excluded_file_pattern_p, excluded_file_name_p): New functions.
24519         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
24520         * lib/exclude.h (is_fnmatch_pattern): New prototype.
24521         * modules/exclude: Depend on hash and mbuiter.
24522
24523         * modules/exclude-tests: New file.
24524         * tests/test-exclude.c: New file.
24525         * tests/test-exclude1.sh: New file.
24526         * tests/test-exclude2.sh: New file.
24527         * tests/test-exclude3.sh: New file.
24528         * tests/test-exclude4.sh: New file.
24529         * tests/test-exclude5.sh: New file.
24530         * tests/test-exclude6.sh: New file.
24531         * tests/test-exclude7.sh: New file.
24532
24533 2009-08-12  Bruno Haible  <bruno@clisp.org>
24534
24535         Ensure that getopt() gets declared by <unistd.h>.
24536         * lib/unistd.in.h: Conditionally include getopt.h.
24537         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
24538         Set GNULIB_UNISTD_H_GETOPT.
24539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24540         GNULIB_UNISTD_H_GETOPT.
24541         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
24542
24543 2009-08-12  Bruno Haible  <bruno@clisp.org>
24544
24545         Clarify logic.
24546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
24547         gl_replace_getopt instead of GETOPT_H.
24548
24549 2009-08-12  Bruno Haible  <bruno@clisp.org>
24550
24551         * m4/getopt.m4: Add comments.
24552
24553 2009-08-12  Bruno Haible  <bruno@clisp.org>
24554
24555         Disable multithread support by default on Cygwin 1.5.x.
24556         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
24557         set gl_use_threads=no if not specified otherwise.
24558
24559 2009-08-11  Bruno Haible  <bruno@clisp.org>
24560
24561         Avoid compilation error on NetBSD 5.0.
24562         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
24563         * tests/test-stdio.c: Likewise.
24564         * tests/test-stdlib.c: Likewise.
24565         * tests/test-string.c: Likewise.
24566         * tests/test-unistd.c: Likewise.
24567         Reported by Greg Troxel <gdt@ir.bbn.com>
24568         at <https://savannah.gnu.org/support/?106973>.
24569
24570 2009-08-11  Bruno Haible  <bruno@clisp.org>
24571
24572         * modules/dup2-tests (Depends-on): Remove close.
24573
24574         Undo 2009-07-19 commit.
24575         * modules/acl-tests (Depends-on): Remove close.
24576         * modules/binary-io-tests (Depends-on): Likewise.
24577         * modules/closein-tests (Depends-on): Likewise.
24578         * modules/flock-tests (Depends-on): Likewise.
24579         * modules/fsync-tests (Depends-on): Likewise.
24580         * modules/lseek-tests (Depends-on): Likewise.
24581         * modules/pipe-tests (Depends-on): Likewise.
24582         * modules/posix_spawn-tests (Depends-on): Likewise.
24583         * modules/posix_spawnp-tests (Depends-on): Likewise.
24584         * modules/stat-time-tests (Depends-on): Likewise.
24585         * modules/yesno-tests (Depends-on): Likewise.
24586
24587 2009-08-10  Bruno Haible  <bruno@clisp.org>
24588
24589         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
24590
24591 2009-08-10  Bruno Haible  <bruno@clisp.org>
24592
24593         Fix a gcc warning.
24594         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
24595
24596 2009-08-10  Bruno Haible  <bruno@clisp.org>
24597
24598         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
24599         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
24600         not only the first time.
24601         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
24602         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
24603         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
24604         is 1, not only the the first time.
24605
24606 2009-08-10  Bruno Haible  <bruno@clisp.org>
24607
24608         Make it possible to use module 'gethostname' without module 'close'.
24609         * lib/unistd.in.h (close): Evoke a link error only if
24610         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24612         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24613         * modules/unistd (Makefile.am): Substitute
24614         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24615         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
24616         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24617         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24618         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24619         * modules/sys_ioctl (Makefile.am): Substitute
24620         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24621         * modules/socket (configure.ac): On native Windows, set
24622         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
24623         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24624         Reported by Sam Steingold <sds@gnu.org>.
24625
24626 2009-08-10  Bruno Haible  <bruno@clisp.org>
24627
24628         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
24629         * modules/ioctl (configure.ac): Likewise.
24630
24631 2009-08-10  Bruno Haible  <bruno@clisp.org>
24632
24633         Avoid collision between gnulib wrapper and libintl wrapper.
24634         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
24635         already defined in intl/printf.c.
24636         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
24637         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
24638
24639 2009-08-09  Bruno Haible  <bruno@clisp.org>
24640
24641         Make <sys/select.h> really self-contained, also on Solaris 10.
24642         * lib/sys_select.in.h: Include <string.h>.
24643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24644         Solaris 10 problem.
24645         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24646         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24647         Reported by Jim Meyering.
24648
24649 2009-08-09  Bruno Haible  <bruno@clisp.org>
24650
24651         Avoid warnings from 'aclocal' that are due to a use of macro name
24652         AM_XGETTEXT_OPTION that is not defined in automake.
24653         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24654         automake.
24655         * modules/error (configure.ac): Likewise.
24656         * modules/propername (configure.ac): Likewise.
24657         * modules/vasprintf (configure.ac): Likewise.
24658         * modules/verror (configure.ac): Likewise.
24659         * modules/xprintf (configure.ac): Likewise.
24660         * modules/xvasprintf (configure.ac): Likewise.
24661
24662 2009-08-08  Bruno Haible  <bruno@clisp.org>
24663
24664         Avoid compilation error in C++ mode.
24665         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24666         Reported by Sam Steingold <sds@gnu.org>.
24667
24668 2009-08-08  Bruno Haible  <bruno@clisp.org>
24669
24670         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
24671         for the various Unix platforms.
24672         * doc/posix-headers/limits.texi: Update platforms list regarding
24673         HOST_NAME_MAX.
24674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24675
24676 2009-08-07  Jim Meyering  <meyering@redhat.com>
24677
24678         selinux-at: fix typo in a comment
24679         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
24680         Spotted by Paolo Bonzini.
24681
24682         selinux-at: remove redundant m4 code, add documentation
24683         * modules/selinux-at (configure.ac): Remove redundant code.
24684         LIB_SELINUX is already set via the dependent module, selinux-h.
24685         (Include): Add quotes around selinux-at.h.
24686         * lib/selinux-at.h: Add documentation.
24687         Reported by Bruno Haible in
24688         http://marc.info/?l=gnulib-bug&m=124958988300749
24689
24690 2009-08-07  Bruno Haible  <bruno@clisp.org>
24691
24692         Avoid link error on MacOS X 10.3 and 10.4.
24693         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
24694         on non-ELF systems.
24695         * lib/argp-pv.c (argp_program_version): Likewise.
24696         Reported by Simon Josefsson.
24697
24698 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24699
24700         * tests/test-version-etc.sh: Use $EXEEXT.
24701
24702 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
24703
24704         update-copyright: update documentation to point to maint.mk
24705         * build-aux/update-copyright: Here.
24706
24707 2009-08-06  Jim Meyering  <meyering@redhat.com>
24708
24709         maint.mk: support update-copyright-local
24710         * top/maint.mk (update-copyright-local): Define place-holder.
24711         (update-copyright): Depend on $(update-copyright-local).
24712
24713 2009-08-06  Jim Meyering  <meyering@redhat.com>
24714
24715         selinux-at: new module
24716         Initially written for coreutils, this module will soon be
24717         used by findutils, too.
24718         * MODULES.html.sh [Misc]: Add selinux-at.
24719         * lib/selinux-at.h: New file, from coreutils.
24720         * lib/selinux-at.c: Likewise.
24721         * modules/selinux-at: Likewise.
24722         (License): Change from LGPL to GPL, since it depends
24723         on the GPL'd openat module.
24724
24725         doc: update README
24726         * README: Remove references to cogito.
24727         Remove cvs-repo-updating instructions from 2007.
24728         Don't imply that CVS is better if you have limited disk space.
24729
24730 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24731
24732         update-copyright: support C-style comments
24733         * build-aux/update-copyright: Implement and document.
24734         * tests/test-update-copyright.sh: Test.
24735
24736 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24737
24738         update-copyright: support omitted "(C)"
24739         * build-aux/update-copyright: Implement and document.  Also,
24740         allow variable whitespace before "(C)".
24741         * tests/test-update-copyright.sh: Test.
24742
24743 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24744
24745         update-copyright: don't trip on non-FSF copyright statements
24746         * build-aux/update-copyright: Fix so that the first correctly
24747         formatted FSF copyright statement is recognized no matter what
24748         appears before it.  Update documentation.
24749         * tests/test-update-copyright.sh: Test that.
24750
24751 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24752
24753         update-copyright: clean up code a little
24754         * build-aux/update-copyright: Append "_re" to the name of any
24755         variable holding a regular expression.
24756         Replace "old" and "new" with "stmt" in variable names.
24757         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
24758         handled correctly.
24759         Format code more consistently.
24760
24761 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24762
24763         update-copyright-tests: improve portability
24764         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
24765         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24766
24767 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24768
24769         update-copyright: support @copyright{} and &copy;
24770         * build-aux/update-copyright: Implement and document.
24771         * tests/test-update-copyright.sh: Test.
24772
24773 2009-08-04  Jim Meyering  <meyering@redhat.com>
24774
24775         update-copyright-tests: correctly test EOL=\r\n handling
24776         * tests/test-update-copyright.sh: Put \r at the end of some lines
24777         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24778
24779         maint.mk: make update-copyright exclusion list more configurable
24780         * top/maint.mk (update-copyright): Default to excluding COPYING,
24781         but allow an override, in case someone does want to update that file.
24782
24783         maint.mk: don't update copyright date in COPYING
24784         * top/maint.mk (update-copyright): Exclude COPYING.
24785
24786         maint.mk: add a copyright-updating rule
24787         * top/maint.mk (update-copyright): New rule.
24788         Derived from coreutils/Makefile.am.
24789
24790         update-copyright: rename some variables
24791         * build-aux/update-copyright: Rename a few variables for clarity.
24792         Tweak syntax.  List Joel E. Denny as coauthor.
24793
24794 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24795
24796         update-copyright: fix bug for 2-digit last year and add tests
24797         * build-aux/update-copyright: Fix bug.
24798         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24799         specified.
24800         * modules/update-copyright-tests: New
24801         * tests/test-update-copyright.sh: New.
24802
24803 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24804
24805         update-copyright: handle leading tabs in line prefix
24806         * build-aux/update-copyright: Count leading tabs as 8 spaces
24807         when computing margin.  This helps with the formatting of
24808         ChangeLogs, for example.
24809         Fix documentation a little.
24810
24811 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24812
24813         update-copyright: support EOL=\r\n
24814         * build-aux/update-copyright: Implement that.
24815
24816 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24817
24818         update-copyright: automatically format copyright statements
24819         * build-aux/update-copyright: Implement that.
24820         Also, be a little more predictable and safer by always failing
24821         when the full copyright format is not perfectly recognized as an
24822         unbroken whole.  Discussed at
24823         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
24824         Rewrite documentation.
24825
24826 2009-08-03  Bruno Haible  <bruno@clisp.org>
24827
24828         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
24829
24830 2009-08-02  Bruno Haible  <bruno@clisp.org>
24831
24832         Tests for module 'uname'.
24833         * modules/uname-tests: New file.
24834         * tests/test-uname.c: New file.
24835
24836         New module 'uname'.
24837         * lib/uname.c: New file.
24838         * m4/uname.m4: New file.
24839         * modules/uname: New file.
24840         * doc/posix-functions/uname.texi: Mention the new module.
24841
24842 2009-08-02  Bruno Haible  <bruno@clisp.org>
24843
24844         Tests for module 'sys_utsname'.
24845         * modules/sys_utsname-tests: New file.
24846         * tests/test-sys_utsname.c: New file.
24847
24848         New module 'sys_utsname'.
24849         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
24850         * m4/sys_utsname_h.m4: New file.
24851         * modules/sys_utsname: New file.
24852         * doc/posix-headers/sys_utsname.texi: Mention the new module.
24853
24854 2009-08-02  Bruno Haible  <bruno@clisp.org>
24855
24856         Implicitly initialize the sockets library.
24857         * lib/gethostname.c: Include sockets.h.
24858         (rpl_gethostname): Invoke gl_sockets_startup.
24859         * lib/socket.c: Include sockets.h.
24860         (rpl_socket): Invoke gl_sockets_startup.
24861         * modules/gethostname (Depends-on): Add sockets.
24862         * modules/socket (Depends-on): Likewise.
24863         * tests/test-poll.c: Don't include sockets.h.
24864         (main): Don't invoke gl_sockets_startup.
24865         * tests/test-select.c: Don't include sockets.h.
24866         (main): Don't invoke gl_sockets_startup.
24867
24868 2009-08-02  Bruno Haible  <bruno@clisp.org>
24869
24870         Allow multiple calls to gl_sockets_startup.
24871         * lib/sockets.c (initialized_sockets_version): New variable.
24872         (gl_sockets_startup): Do nothing if already called for this or a higher
24873         version.
24874         (gl_sockets_cleanup): Reset initialized_sockets_version.
24875
24876 2009-08-03  Simon Josefsson  <simon@josefsson.org>
24877
24878         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
24879         different project/version.
24880
24881 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
24882             Bruno Haible  <bruno@clisp.org>
24883
24884         Tests for module 'pipe-filter-gi'.
24885         * modules/pipe-filter-gi-tests: New file.
24886         * tests/test-pipe-filter-gi1.sh: New file.
24887         * tests/test-pipe-filter-gi1.c: New file.
24888         * tests/test-pipe-filter-gi2.sh: New file.
24889         * tests/test-pipe-filter-gi2-main.c: New file.
24890         * tests/test-pipe-filter-gi2-child.c: New file.
24891
24892         New module 'pipe-filter-gi'.
24893         * lib/pipe-filter-gi.c: New file.
24894         * modules/pipe-filter-gi: New file.
24895
24896 2009-08-02  Bruno Haible  <bruno@clisp.org>
24897             Paolo Bonzini  <bonzini@gnu.org>
24898
24899         Tests for module 'pipe-filter-ii'.
24900         * modules/pipe-filter-ii-tests: New file.
24901         * tests/test-pipe-filter-ii1.sh: New file.
24902         * tests/test-pipe-filter-ii1.c: New file.
24903         * tests/test-pipe-filter-ii2.sh: New file.
24904         * tests/test-pipe-filter-ii2-main.c: New file.
24905         * tests/test-pipe-filter-ii2-child.c: New file.
24906
24907         New module 'pipe-filter-ii'.
24908         * lib/pipe-filter.h: New file.
24909         * lib/pipe-filter-ii.c: New file.
24910         * lib/pipe-filter-aux.h: New file.
24911         * modules/pipe-filter-ii: New file.
24912
24913 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24914
24915         * lib/gc-libgcrypt.c: Change copyright to FSF.
24916         * lib/gc-gnulib.c: Likewise.
24917
24918 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
24919
24920         * lib/gethostname.c: Include limits.h.
24921
24922 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24923             Bruno Haible  <bruno@clisp.org>
24924
24925         Ensure HOST_NAME_MAX as part of the gethostname module.
24926         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
24927         define also HOST_NAME_MAX.
24928         * tests/test-gethostname.c: Include <limits.h>.
24929         (main): Check also HOST_NAME_MAX.
24930         * doc/posix-headers/limits.texi: Document the mingw problem.
24931
24932 2009-08-02  Bruno Haible  <bruno@clisp.org>
24933
24934         * lib/gethostname.c (gethostname): Fix handling of large len argument.
24935         Add comments.
24936
24937 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24938
24939         * lib/gethostname.c: Add Windows wrapper.
24940         * m4/gethostname.m4: Look for gethostname in -lws2_32.
24941         * modules/gethostname: Depend on sys_socket & errno, for also
24942         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
24943         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
24944
24945 2009-07-31  Jim Meyering  <meyering@redhat.com>
24946
24947         getloadavg: fix symbol name in comment
24948         * lib/getloadavg.c: Correct a typo I introduced when adding
24949         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
24950         Matt Kraai spotted the problem.
24951
24952 2009-07-29  Matt Kraai  <mkraai@beckman.com>
24953
24954         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
24955         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
24956         code also if ! defined N_NAME_POINTER.
24957         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
24958         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
24959         but the n_name member is a 12-byte array.
24960
24961 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
24962
24963         update-copyright: generalize comment handling
24964         * build-aux/update-copyright: Handle copyright statements
24965         within more comment styles.
24966         Document usage.
24967         Report any file with an external copyright holder or parse failure.
24968
24969 2009-07-29  Jim Meyering  <meyering@redhat.com>
24970
24971         mktime: correct setting of REPLACE_MKTIME
24972         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
24973
24974         update-copyright: new module
24975         * modules/update-copyright: New file.
24976         * build-aux/update-copyright: New file.
24977         * MODULES.html.sh (maint+release support): Add update-copyright.
24978
24979 2009-07-27  Bruno Haible  <bruno@clisp.org>
24980
24981         Fix compilation error when <ctime> is used and mktime is replaced.
24982         * lib/time.in.h (mktime): New declaration.
24983         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
24984         REPLACE_MKTIME instead of defining mktime in config.h.
24985         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
24986         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
24987         Reported by Ross McFarland <rwmcfa1@neces.com>.
24988
24989 2009-07-27  Bruno Haible  <bruno@clisp.org>
24990
24991         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
24992         Reported by Matt Kraai <mkraai@beckman.com>.
24993
24994 2009-07-25  Jim Meyering  <meyering@redhat.com>
24995
24996         maint.mk: avoid warnings about missing files
24997         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
24998         diagnostic when .prev-version does not exist.
24999         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25000         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25001         nonexistent cfg.mk.
25002         Suggestions from Simon Josefsson.
25003
25004 2009-07-25  Bruno Haible  <bruno@clisp.org>
25005
25006         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25007         defined as macros. Needed on QNX 6.4.1.
25008         Reported by Matt Kraai <mkraai@beckman.com>.
25009
25010 2009-07-23  Jim Meyering  <meyering@redhat.com>
25011
25012         maint.mk: invoke "make dist" with a working value of XZ_OPT
25013         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25014
25015 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25016
25017         Make fseeko.c compile on QNX.
25018         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25019
25020 2009-07-22  Peter Simons  <simons@cryp.to>
25021
25022         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25023         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25024         * lib/md4.h: Likewise.
25025         * lib/md5.h: Likewise.
25026         * lib/sha1.h: Likewise.
25027         * lib/sha256.h: Likewise.
25028         * lib/sha512.h: Likewise.
25029
25030         tests-sha1: don't assign literal string to 'char *' variable
25031         * tests/test-sha1.c (main): Declare locals with "const" to match
25032         attributes of the right hand side.
25033
25034 2009-07-21  Eric Blake  <ebb9@byu.net>
25035
25036         dup2: fix more mingw problems
25037         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25038         fd to itself.
25039         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25040         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25041         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25042         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25043         care of mingw bugs.
25044
25045 2009-07-21  Jim Meyering  <meyering@redhat.com>
25046
25047         vc-list-files: avoid failure when /bin/sh is dash
25048         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25049         On some Debian based systems, /bin/sh is a symlink to dash, and running
25050         this command would omit the "/" following each 'tests' prefix:
25051           dash -x build-aux/vc-list-files -C . tests
25052         That is because bash and dash work differently:
25053           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25054           bash ok
25055           dash odd
25056
25057 2009-07-21  Eric Blake  <ebb9@byu.net>
25058
25059         dup2-tests: test previous patch
25060         * modules/dup2-tests: New file.
25061         * tests/test-dup2.c: Likewise.
25062         * tests/test-open.c (main): Avoid unspecified behavior.
25063         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25064         test.
25065
25066         dup2: work around mingw and cygwin 1.5 bug
25067         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25069         * modules/unistd (Makefile.am): Substitute it.
25070         * lib/unistd.in.h (dup2): Declare the replacement.
25071         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25072         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25073         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25074         * modules/execute (Depends-on): Add dup2.
25075         * modules/fseterr (Depends-on): Likewise.
25076         * modules/pipe (Depends-on): Likewise.
25077         * modules/posix_spawn-internal (Depends-on): Likewise.
25078
25079 2009-07-21  Bruno Haible  <bruno@clisp.org>
25080
25081         * modules/.gitattributes: New file.
25082
25083 2009-07-20  Bruno Haible  <bruno@clisp.org>
25084
25085         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25086         (main): Use it.
25087
25088 2009-07-20  Eric Blake  <ebb9@byu.net>
25089
25090         test-pipe: make a bit more robust.
25091         * tests/test-pipe.c (myerr): Allow error messages regardless of
25092         what we do to stderr.
25093         (test_pipe): Rearrange to avoid deadlock.
25094         (child_main): Try a larger read, to ensure we avoided deadlock.
25095         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25096         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25097         if misused.
25098
25099 2009-07-19  Jim Meyering  <meyering@redhat.com>
25100
25101         fts: avoid false-positive cycle-detection
25102         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25103         for each new command line argument.
25104
25105 2009-07-19  Bruno Haible  <bruno@clisp.org>
25106
25107         Fix build error on mingw with the modules sys_select and unistd.
25108         * modules/acl-tests (Depends-on): Add close.
25109         * modules/binary-io-tests (Depends-on): Likewise.
25110         * modules/closein-tests (Depends-on): Likewise.
25111         * modules/flock-tests (Depends-on): Likewise.
25112         * modules/fsync-tests (Depends-on): Likewise.
25113         * modules/lseek-tests (Depends-on): Likewise.
25114         * modules/pipe-tests (Depends-on): Likewise.
25115         * modules/posix_spawn-tests (Depends-on): Likewise.
25116         * modules/posix_spawnp-tests (Depends-on): Likewise.
25117         * modules/stat-time-tests (Depends-on): Likewise.
25118         * modules/yesno-tests (Depends-on): Likewise.
25119
25120 2009-07-19  Bruno Haible  <bruno@clisp.org>
25121
25122         Unify conditionals.
25123         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25124         macros, not at the compiler macros.
25125         * lib/pipe.c: Likewise.
25126         * lib/execute.c: Likewise.
25127         * lib/spawni.c: Likewise.
25128
25129 2009-07-19  Bruno Haible  <bruno@clisp.org>
25130
25131         Fix handling of closed stdin/stdout/stderr on mingw.
25132         * lib/w32spawn.h: Include unistd.h.
25133         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25134         file descriptor with O_NOINHERIT flag.
25135         (fd_safer_noinherit): New function, based on fd-safer.c.
25136         (dup_safer_noinherit): New function, based on dup-safer.c.
25137         (undup_safer_noinherit): New function.
25138         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25139         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25140         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25141         instead of fd_safer.
25142         * tests/test-pipe.c: Include <windows.h>.
25143         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25144
25145         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25146         from main.
25147         (test_pipe): Pass an extra argument for disambiguation.
25148         (main): Invoke parent_main or child_main.
25149
25150         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25151         consistently.
25152
25153 2009-07-18  Eric Blake  <ebb9@byu.net>
25154
25155         test-pipe: fix mingw build
25156         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25157
25158 2009-07-18  Bruno Haible  <bruno@clisp.org>
25159
25160         * modules/pipe-tests (Makefile.am): Fix typo.
25161
25162 2009-07-18  Eric Blake  <ebb9@byu.net>
25163
25164         error: fix mingw build
25165         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25166         Reported by Bruno Haible.
25167
25168         error: avoid undefined use of stdout
25169         * lib/error.c (error, error_at_line): Check that fd 1 is open
25170         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25171         is handling faults and the close_stdout module wants to report the
25172         detection of closed stdout as an error.
25173
25174 2009-07-17  Eric Blake  <ebb9@byu.net>
25175
25176         pipe: be robust in face of closed fds
25177         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
25178         should cause child to misbehave.
25179         * modules/pipe-tests: New module.
25180         * tests/test-pipe.c: New file.
25181         * tests/test-pipe.sh: New file.
25182         Reported by Akim Demaille.
25183
25184 2009-07-14  Bruno Haible  <bruno@clisp.org>
25185
25186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
25187         Reported by anonymous kc.
25188
25189 2009-07-07  Jim Meyering  <meyering@redhat.com>
25190
25191         maint.mk: don't look for translatable strings in *.m4 or *.mk
25192         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
25193         when searching for translatable strings.
25194
25195 2009-07-05  Jim Meyering  <meyering@redhat.com>
25196
25197         remove superfluous parentheses in STREQ definition
25198         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
25199         * lib/getugroups.c (STREQ): Likewise.
25200         * lib/fnmatch.c (STREQ): Likewise.
25201         Spotted by Bruno Haible.
25202
25203 2009-07-04  Jim Meyering  <meyering@redhat.com>
25204
25205         argv-iter: new module
25206         * MODULES.html.sh: Add argv-iter.
25207         * lib/argv-iter.c, lib/argv-iter.h: New files.
25208         * modules/argv-iter: New file.
25209         * modules/argv-iter-tests: New file.
25210         * tests/test-argv-iter.c: Test it.
25211
25212 2009-07-04  Bruno Haible  <bruno@clisp.org>
25213
25214         Fix assertion.
25215         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
25216         contains more exact copies of a given entry than file2, leave the extra
25217         copies unpaired rather than aborting.
25218         Reported by Eric Blake.
25219
25220 2009-07-02  Bruno Haible  <bruno@clisp.org>
25221
25222         Speedup git-merge-changelog for git cherry-pick.
25223         * lib/git-merge-changelog.c (struct entries_mapping): New type.
25224         (entries_mapping_get): New function, extracted from compute_mapping.
25225         (entries_mapping_reverse_get): New function.
25226         (compute_mapping): Add a 'full' argument. Return the result in a
25227         'struct entries_mapping'.
25228         (main): Update. Access the mappings through entries_mapping_get.
25229         Reported by Eric Blake.
25230
25231 2009-07-02  Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
25234         best_i.
25235
25236 2009-07-02  Bruno Haible  <bruno@clisp.org>
25237
25238         Speed up approximate search for matching ChangeLog entries.
25239         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
25240         argument. Call fstrcmp_bounded instead of fstrcmp.
25241         (compute_mapping, try_split_merged_entry, main): Update callers.
25242
25243 2009-07-02  Bruno Haible  <bruno@clisp.org>
25244
25245         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
25246
25247 2009-06-30  Bruno Haible  <bruno@clisp.org>
25248
25249         Reduce the number of uc_is_cased calls.
25250         * lib/unicase.h (casing_suffix_context_t): Add
25251         'first_char_except_ignorable' field.
25252         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
25253         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
25254         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
25255         Update initializer.
25256         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
25257         case-ignorable characters.
25258         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
25259         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
25260         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
25261         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
25262         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
25263
25264 2009-06-30  Bruno Haible  <bruno@clisp.org>
25265
25266         Tests for module 'unicase/ignorable'.
25267         * modules/unicase/ignorable-tests: New file.
25268         * tests/unicase/test-ignorable.c: New file, generated by
25269         gen-uni-tables.
25270
25271         Tests for module 'unicase/cased'.
25272         * modules/unicase/cased-tests: New file.
25273         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
25274         * tests/unicase/test-predicate-part1.h: New file, derived from
25275         tests/unictype/test-predicate-part1.h.
25276         * tests/unicase/test-predicate-part2.h: New file, same as
25277         tests/unictype/test-predicate-part2.h.
25278
25279         Fix evaluation of "Before C" condition of FINAL_SIGMA.
25280         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
25281         (output_casing_properties): New function.
25282         (main): Call it.
25283         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
25284         * lib/unicase/cased.c: Include unictype/bitmap.h.
25285         (uc_is_cased): Define through a bitmap lookup.
25286         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
25287         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
25288         (uc_is_case_ignorable): Define through a bitmap lookup.
25289         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
25290         lib/unictype/bitmap.h.
25291         (Depends-on): Add inline. Clean up.
25292         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
25293         lib/unictype/bitmap.h.
25294         (Depends-on): Add inline. Clean up.
25295         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
25296         recognition.
25297         * tests/unicase/test-u16-tolower.c (main): Likewise.
25298         * tests/unicase/test-u32-tolower.c (main): Likewise.
25299
25300 2009-06-30  Bruno Haible  <bruno@clisp.org>
25301
25302         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
25303         * lib/unicase/u16-casemap.c: Likewise.
25304         * lib/unicase/u32-casemap.c: Likewise.
25305
25306 2009-06-29  Bruno Haible  <bruno@clisp.org>
25307
25308         Define u32_casefold as a wrapper around u32_ct_casefold.
25309         * lib/unicase/u32-casefold.c: Update.
25310         * modules/unicase/u32-casefold (Depends-on): Add
25311         unicase/u32-ct-casefold, unicase/empty-prefix-context,
25312         unicase/empty-suffix-context. Clean up.
25313
25314         Define u16_casefold as a wrapper around u16_ct_casefold.
25315         * lib/unicase/u16-casefold.c: Update.
25316         * modules/unicase/u16-casefold (Depends-on): Add
25317         unicase/u16-ct-casefold, unicase/empty-prefix-context,
25318         unicase/empty-suffix-context. Clean up.
25319
25320         Define u8_casefold as a wrapper around u8_ct_casefold.
25321         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
25322         * lib/unicase/u8-casefold.c: Update.
25323         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
25324         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25325
25326         Define u32_totitle as a wrapper around u32_ct_totitle.
25327         * lib/unicase/u32-totitle.c: Update.
25328         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
25329         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25330
25331         Define u16_totitle as a wrapper around u16_ct_totitle.
25332         * lib/unicase/u16-totitle.c: Update.
25333         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
25334         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25335
25336         Define u8_totitle as a wrapper around u8_ct_totitle.
25337         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
25338         functions.
25339         (FUNC): Delegate to U_CT_TOTITLE.
25340         * lib/unicase/u8-totitle.c: Update.
25341         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
25342         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25343
25344         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
25345         invocation.
25346         * modules/unicase/u32-tolower (Depends-on): Add
25347         unicase/empty-prefix-context, unicase/empty-suffix-context.
25348
25349         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
25350         invocation.
25351         * modules/unicase/u16-tolower (Depends-on): Add
25352         unicase/empty-prefix-context, unicase/empty-suffix-context.
25353
25354         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
25355         * modules/unicase/u8-tolower (Depends-on): Add
25356         unicase/empty-prefix-context, unicase/empty-suffix-context.
25357
25358         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
25359         invocation.
25360         * modules/unicase/u32-toupper (Depends-on): Add
25361         unicase/empty-prefix-context, unicase/empty-suffix-context.
25362
25363         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
25364         invocation.
25365         * modules/unicase/u16-toupper (Depends-on): Add
25366         unicase/empty-prefix-context, unicase/empty-suffix-context.
25367
25368         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
25369         * modules/unicase/u8-toupper (Depends-on): Add
25370         unicase/empty-prefix-context, unicase/empty-suffix-context.
25371
25372         New module 'unicase/u32-ct-casefold'.
25373         * lib/unicase/u32-ct-casefold.c: New file.
25374         * modules/unicase/u32-ct-casefold: New file.
25375
25376         New module 'unicase/u16-ct-casefold'.
25377         * lib/unicase/u16-ct-casefold.c: New file.
25378         * modules/unicase/u16-ct-casefold: New file.
25379
25380         New module 'unicase/u8-ct-casefold'.
25381         * lib/unicase/u8-ct-casefold.c: New file.
25382         * lib/unicase/u-ct-casefold.h: New file, derived from
25383         lib/unicase/u-casefold.h.
25384         * modules/unicase/u8-ct-casefold: New file.
25385
25386         New module 'unicase/u32-ct-totitle'.
25387         * lib/unicase/u32-ct-totitle.c: New file.
25388         * modules/unicase/u32-ct-totitle: New file.
25389
25390         New module 'unicase/u16-ct-totitle'.
25391         * lib/unicase/u16-ct-totitle.c: New file.
25392         * modules/unicase/u16-ct-totitle: New file.
25393
25394         New module 'unicase/u8-ct-totitle'.
25395         * lib/unicase/u8-ct-totitle.c: New file.
25396         * lib/unicase/u-ct-totitle.h: New file, derived from
25397         lib/unicase/u-totitle.h.
25398         * modules/unicase/u8-ct-totitle: New file.
25399
25400         New module 'unicase/u32-ct-tolower'.
25401         * lib/unicase/u32-ct-tolower.c: New file.
25402         * modules/unicase/u32-ct-tolower: New file.
25403
25404         New module 'unicase/u16-ct-tolower'.
25405         * lib/unicase/u16-ct-tolower.c: New file.
25406         * modules/unicase/u16-ct-tolower: New file.
25407
25408         New module 'unicase/u8-ct-tolower'.
25409         * lib/unicase/u8-ct-tolower.c: New file.
25410         * modules/unicase/u8-ct-tolower: New file.
25411
25412         New module 'unicase/u32-ct-toupper'.
25413         * lib/unicase/u32-ct-toupper.c: New file.
25414         * modules/unicase/u32-ct-toupper: New file.
25415
25416         New module 'unicase/u16-ct-toupper'.
25417         * lib/unicase/u16-ct-toupper.c: New file.
25418         * modules/unicase/u16-ct-toupper: New file.
25419
25420         New module 'unicase/u8-ct-toupper'.
25421         * lib/unicase/u8-ct-toupper.c: New file.
25422         * modules/unicase/u8-ct-toupper: New file.
25423
25424         Add context arguments to u*_casemap functions.
25425         * lib/unicase/unicasemap.h: Include unicase.h.
25426         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
25427         suffix_context arguments.
25428         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
25429         functions.
25430         (FUNC): Add prefix_context and suffix_context arguments. Use
25431         uc_is_cased and uc_is_case_ignorable.
25432         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25433         * lib/unicase/u16-casemap.c: Likewise.
25434         * lib/unicase/u32-casemap.c: Likewise.
25435         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25436         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25437         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25438         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25439         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25440         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25441
25442         New module 'unicase/u32-suffix-context'.
25443         * lib/unicase/u32-suffix-context.c: New file.
25444         * modules/unicase/u32-suffix-context: New file.
25445
25446         New module 'unicase/u16-suffix-context'.
25447         * lib/unicase/u16-suffix-context.c: New file.
25448         * modules/unicase/u16-suffix-context: New file.
25449
25450         New module 'unicase/u8-suffix-context'.
25451         * lib/unicase/u8-suffix-context.c: New file.
25452         * lib/unicase/u-suffix-context.h: New file.
25453         * modules/unicase/u8-suffix-context: New file.
25454
25455         New module 'unicase/empty-suffix-context'.
25456         * lib/unicase/empty-suffix-context.c: New file.
25457         * modules/unicase/empty-suffix-context: New file.
25458
25459         New module 'unicase/u32-prefix-context'.
25460         * lib/unicase/u32-prefix-context.c: New file.
25461         * modules/unicase/u32-prefix-context: New file.
25462
25463         New module 'unicase/u16-prefix-context'.
25464         * lib/unicase/u16-prefix-context.c: New file.
25465         * modules/unicase/u16-prefix-context: New file.
25466
25467         New module 'unicase/u8-prefix-context'.
25468         * lib/unicase/u8-prefix-context.c: New file.
25469         * lib/unicase/u-prefix-context.h: New file.
25470         * lib/unicase/context.h: New file.
25471         * modules/unicase/u8-prefix-context: New file.
25472
25473         New module 'unicase/empty-prefix-context'.
25474         * lib/unicase/empty-prefix-context.c: New file.
25475         * modules/unicase/empty-prefix-context: New file.
25476
25477         New module 'unicase/ignorable'.
25478         * lib/unicase/ignorable.c: New file.
25479         * modules/unicase/ignorable: New file.
25480
25481         New module 'unicase/cased'.
25482         * lib/unicase/caseprop.h: New file.
25483         * lib/unicase/cased.c: New file.
25484         * modules/unicase/cased: New file.
25485
25486         New functions for case mapping of substrings.
25487         * lib/unicase.h (casing_prefix_context_t): New type.
25488         (unicase_empty_prefix_context): New variable.
25489         (u8_casing_prefix_context, u16_casing_prefix_context,
25490         u32_casing_prefix_context, u8_casing_prefixes_context,
25491         u16_casing_prefixes_context, u32_casing_prefixes_context): New
25492         declarations.
25493         (casing_suffix_context_t): New type.
25494         (unicase_empty_suffix_context): New variable.
25495         (u8_casing_suffix_context, u16_casing_suffix_context,
25496         u32_casing_suffix_context, u8_casing_suffixes_context,
25497         u16_casing_suffixes_context, u32_casing_suffixes_context,
25498         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
25499         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
25500         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
25501         declarations.
25502
25503 2009-06-28  Jim Meyering  <meyering@redhat.com>
25504
25505         boostrap: indent only with spaces
25506         * build-aux/bootstrap: Indent only with spaces, never TABs.
25507
25508         bootstrap: split long lines
25509         * build-aux/bootstrap: Keep line length < 80.
25510
25511         bootstrap: sync from coreutils
25512         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
25513         just as autoreconf does.  Verify a list of prerequisite
25514         package-name,version-number pairs if defined in bootstrap.conf.
25515         Refer to README-prereq, if prerequisites are not satisfied.
25516
25517 2009-06-27  Eric Blake  <ebb9@byu.net>
25518
25519         tests: add test for bogus NULL definition
25520         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
25521         * tests/test-stdlib.c: Likewise.
25522         * tests/test-string.c: Likewise.
25523         * tests/test-locale.c: Likewise.
25524         * tests/test-unistd.c: Likewise.
25525         * modules/stdio-tests (Depends-on): Add verify.
25526         * modules/stdlib-tests (Depends-on): Likewise.
25527         * modules/string-tests (Depends-on): Likewise.
25528         * modules/locale-tests (Depends-on): Likewise.
25529         * modules/unistd-tests (Depends-on): Likewise.
25530
25531 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
25532
25533         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
25534         self-explaining comment.
25535         * m4/selinux-selinux-h: Update serial.
25536         (gl_LIBSELINUX): New macro, adding a warning for missing development
25537         packages to code extracted from...
25538         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
25539         Add warning for missing development packages here, too.
25540
25541 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
25542
25543         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
25544
25545 2009-06-25  Eric Blake  <ebb9@byu.net>
25546
25547         version-etc: fix regression
25548         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
25549         gcc.
25550         (version_etc): Use it, to catch bugs with trailing NULL.
25551         * lib/version-etc.c (version_etc_arn): Delete unused argument.
25552         (version_etc_va): Fix logic bug.
25553         * modules/version-etc-tests: Add test.
25554         * tests/test-version-etc.c: New file.
25555         * tests/test-version-etc.sh: Likewise.
25556
25557 2009-06-25  Sam Steingold  <sds@gnu.org>
25558
25559         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
25560         mbtowc declaration.
25561
25562 2009-06-25  Eric Blake  <ebb9@byu.net>
25563
25564         fpurge: migrate into <stdio.h>
25565         * lib/fpurge.h: Delete...
25566         * lib/stdio.in.h (fpurge): ...and declare here, instead.
25567         * lib/fpurge.c (fpurge): Change declaring header.
25568         * modules/fpurge (Files): Drop deleted file.
25569         (Depends-on): Add stdio.
25570         (configure.ac): Set witness.
25571         * modules/stdio (Makefile.am): Support fpurge macros.
25572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25573         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
25574         * lib/fflush.c: Update client.
25575         * tests/test-fpurge.c: Likewise.
25576         * NEWS: Mention the change.
25577
25578 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25579
25580         * lib/argp-version-etc.c (program_authors): Add const
25581         qualifier.
25582         * lib/version-etc.c: Fix typos in the comments.
25583         * modules/argp-version-etc: Depends on version-etc.
25584
25585 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25586
25587         argp-version-etc: new module.
25588
25589         * lib/argp-version-etc.c: New file.
25590         * lib/argp-version-etc.h: New file.
25591         * modules/argp-version-etc: New file.
25592         * modules/argp-version-etc-tests: New file.
25593         * tests/test-argp-version-etc.c: New test.
25594         * tests/test-argp-version-etc-1.sh: New test.
25595
25596 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25597
25598         Provide additional interfaces and documentation for version-etc
25599         module.
25600
25601         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
25602         interfaces.
25603         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
25604         prototypes.
25605
25606 2009-06-24  Bruno Haible  <bruno@clisp.org>
25607
25608         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
25609         HAVE_LIB${NAME} macro.
25610         Reported by Sam Steingold <sds@gnu.org>.
25611
25612 2009-06-23  Simon Josefsson  <simon@josefsson.org>
25613
25614         * modules/hash-tests (test_hash_LDADD): Link to libintl when
25615         needed.
25616
25617 2009-06-21  Bruno Haible  <bruno@clisp.org>
25618
25619         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
25620         work.
25621         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
25622         together with LIB${NAME}, LTLIB${NAME}.
25623         Reported by Sam Steingold <sds@gnu.org>.
25624
25625 2009-06-20  Jim Meyering  <meyering@redhat.com>
25626
25627         tests: make sc_require_test_exit_idiom more generic
25628         * top/maint.mk (Exit_witness_file): New overridable variable.
25629         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
25630         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
25631
25632 2009-06-19  Jim Meyering  <meyering@redhat.com>
25633
25634         hash: reverse order of src/dst parameters in an internal interface
25635         * lib/hash.c (transfer_entries): Reverse order of parameters to
25636         put DST before SRC.  Adjust callers.
25637
25638         tests: test-hash: avoid wholesale duplication
25639         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
25640         Instead, use a loop and add a single conditional.
25641
25642         tests: test-hash: allow seed selection via a command line argument
25643         * tests/test-hash.c (get_seed): New function.
25644         (main): Use it.
25645
25646 2009-06-19  Eric Blake  <ebb9@byu.net>
25647
25648         hash: avoid memory leak on allocation failure
25649         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25650         failure.  Factor repeated algorithm...
25651         (transfer_entries): ...into new helper routine.
25652         (hash_delete): React to hash_rehash return value.
25653
25654         hash: reduce memory pressure in hash_rehash no-op case
25655         * lib/hash.c (next_prime): Avoid overflow.
25656         (hash_initialize): Factor bucket size computation...
25657         (compute_bucket_size): ...into new helper function.
25658         (hash_rehash): Use new function and open coding to reduce memory
25659         pressure, and avoid a memory leak in USE_OBSTACK code.
25660         Reported by Jim Meyering.
25661
25662 2009-06-18  Eric Blake  <ebb9@byu.net>
25663
25664         hash: make rotation more obvious
25665         * modules/hash (Depends-on): Add bitrotate and stdint.
25666         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25667         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
25668         (SIZE_MAX): Rely on headers for definition.
25669         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
25670         (raw_hasher): Use rotr_sz.
25671         Suggested by Jim Meyering.
25672
25673         hash: fix memory leak in last patch
25674         * lib/hash.c (hash_rehash): Avoid memory leak.
25675
25676         hash: avoid no-op rehashing
25677         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
25678
25679         hash: provide default callback functions
25680         * lib/hash.c (raw_hasher, raw_comparator): New functions.
25681         (hash_initialize): Use them as defaults.
25682         * tests/test-hash.c (main): Test this.
25683
25684         hash: minor optimization
25685         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
25686         when possible.
25687         (hash_initialize): Document this promise.
25688         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
25689         * tests/test-hash.c (hash_compare_strings): Test this.
25690
25691 2009-06-18  Bruno Haible  <bruno@clisp.org>
25692
25693         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
25694         going to be replaced anyway.
25695
25696 2009-06-18  Bruno Haible  <bruno@clisp.org>
25697
25698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
25699         in one place.
25700         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
25701         be replaced anyway.
25702
25703 2009-06-18  Eric Blake  <ebb9@byu.net>
25704
25705         hash: check for resize before insertion
25706         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
25707         threshold before insertion, so that a pathological hash_rehash
25708         that fills every bucket can still trigger another rehash.
25709
25710 2009-06-18  Jim Meyering  <meyering@redhat.com>
25711
25712         hash-tests: add a loop around the small tests
25713         * tests/test-hash.c (main): Repeat small tests with selected
25714         small initial table sizes.
25715
25716 2009-06-17  Eric Blake  <ebb9@byu.net>
25717
25718         hash: minor cleanups
25719         * lib/hash.h (hash_entry): Make opaque, by moving...
25720         * lib/hash.c (hash_entry): ...here.
25721         (hash_insert): Clarify restrictions on what can be inserted.
25722         (hash_get_next): Clarify when it is safe to remove an element
25723         during traversal.
25724         (check_tuning): Skip verification when tuning is known safe.
25725         (hash_initialize): Clarify restrictions on tuning.
25726
25727 2009-06-17  Jim Meyering  <jim@meyering.net>
25728         and Eric Blake  <ebb9@byu.net>
25729
25730         hash-tests: new module
25731         * modules/hash-tests: New file.
25732         * tests/test-hash.c: New file.
25733
25734 2009-06-17  Eric Blake  <ebb9@byu.net>
25735
25736         strstr-simple: document new module
25737         * MODULES.html.sh: Document new module.
25738
25739         strstr, strcasestr: replace on platforms with broken memchr
25740         * modules/strstr: Split into...
25741         * modules/strstr-simple: ...new module that does not care about
25742         performance, but does care about glibc bug.
25743         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
25744         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
25745         if platform memchr is broken, per Debian bug 521737.
25746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
25747         memchr.
25748         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
25749         * doc/posix-functions/strstr.texi (strstr): Document the fix.
25750         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25751         * modules/mountlist (Depends-on): Add strstr-simple.
25752         * modules/gen-uni-tables (Depends-on): Likewise.
25753         * modules/argz (Depends-on): Add strstr.
25754
25755 2009-06-17  Bruno Haible  <bruno@clisp.org>
25756
25757         * modules/posix_spawn-internal (Depends-on): Add errno.
25758
25759 2009-06-17  Bruno Haible  <bruno@clisp.org>
25760
25761         Define missing ESTALE on Interix 3.5.
25762         * lib/errno.in.h (ESTALE): Assign a value if missing.
25763         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
25764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
25765         missing.
25766         * doc/posix-headers/errno.texi: Mention the Interix bug.
25767         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
25768
25769 2009-06-15  Eric Blake  <ebb9@byu.net>
25770
25771         memchr, memchr2: add valgrind exception
25772         * lib/memchr.valgrind: New file.
25773         * lib/memchr2.valgrind: New file.
25774         * modules/memchr (Files): Distribute valgrind file.
25775         * modules/memchr2 (Files): Likewise.
25776
25777         docs: memchr is no longer obsolete
25778         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25779         * lib/string.in.h (memchr): Simplify logic.
25780
25781 2009-06-14  Jim Meyering  <meyering@redhat.com>
25782
25783         link-follow: fix the "checking..." message to not mention trailing slash
25784         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25785         never considered trailing slashes.
25786
25787 2009-06-14  Bruno Haible  <bruno@clisp.org>
25788
25789         * m4/memchr.m4: Mention also the bug on IA-64.
25790         * doc/posix-functions/memchr.texi: Likewise.
25791
25792 2009-06-12  Eric Blake  <ebb9@byu.net>
25793
25794         memchr: detect broken x86_64 and alpha implementations
25795         * modules/memchr-tests (Depends-on): Move mmap detection...
25796         * modules/memchr (Depends-on): ...here.
25797         (configure.ac): Set indicator.
25798         * lib/string.in.h (memchr): Declare replacement.
25799         * modules/string (Makefile.am): Trigger replacement.
25800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25801         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25802         bugs.
25803         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25804         * modules/getpagesize (License): Relax license.
25805
25806 2009-06-11  Bruno Haible  <bruno@clisp.org>
25807
25808         * lib/idpriv.h: Add more references.
25809
25810 2009-06-08  Bruno Haible  <bruno@clisp.org>
25811
25812         Tests for module 'idpriv-droptemp'.
25813         * modules/idpriv-droptemp-tests: New file.
25814         * tests/test-idpriv-droptemp.sh: New file.
25815         * tests/test-idpriv-droptemp.su.sh: New file.
25816         * tests/test-idpriv-droptemp.c: New file.
25817
25818         New module 'idpriv-droptemp'.
25819         * lib/idpriv-droptemp.c: New file.
25820         * modules/idpriv-droptemp: New file.
25821
25822 2009-06-08  Bruno Haible  <bruno@clisp.org>
25823
25824         Tests for module 'idpriv-drop'.
25825         * modules/idpriv-drop-tests: New file.
25826         * tests/test-idpriv-drop.sh: New file.
25827         * tests/test-idpriv-drop.su.sh: New file.
25828         * tests/test-idpriv-drop.c: New file.
25829
25830         New module 'idpriv-drop'.
25831         * lib/idpriv.h: New file.
25832         * lib-idpriv-drop.c: New file.
25833         * m4/idpriv.m4: New file.
25834         * modules/idpriv-drop: New file.
25835
25836 2009-06-08  Bruno Haible  <bruno@clisp.org>
25837
25838         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
25839         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25840         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25841         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25842         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25843         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25844         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25845
25846 2009-06-08  Eric Blake  <ebb9@byu.net>
25847
25848         test-strstr: use memory fence, when possible
25849         * tests/test-strstr.c (main): Use memory fence, in order to be
25850         more likely to trigger Debian bug 521737.
25851         * modules/strstr-tests (Files): Pull in additional files.
25852
25853         memchr: no longer obsolete, for wider field testing
25854         * modules/memchr (Status, Notice): Delete, this module is no
25855         longer obsolete.
25856         * modules/vasnprintf (Depends-on): Add memchr.
25857
25858 2009-06-07  Jim Meyering  <meyering@redhat.com>
25859
25860         hash: declare some functions with the warn_unused_result attribute
25861         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
25862
25863 2009-06-07  Bruno Haible  <bruno@clisp.org>
25864
25865         * tests/test-alignof.c: Don't test int64_t if it does not exist.
25866         Reported by Eric Blake.
25867
25868 2009-06-06  Eric Blake  <ebb9@byu.net>
25869
25870         test-alignof: fix typo with long double
25871         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
25872         compiler error.
25873
25874 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
25875
25876         Escape non-texinfo { and }s.
25877         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
25878         markup error.
25879
25880 2009-06-04  Jim Meyering  <meyering@redhat.com>
25881
25882         gitlog-to-changelog: don't infloop on an empty commit log
25883         * build-aux/gitlog-to-changelog: Warn about an empty log message.
25884         Reported by Boris Petersen <transacid@centerim.org>.
25885
25886 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
25887
25888         version-etc: extend for packagers
25889         Add three new configure options, intended for packagers:
25890           --with-packager="packager name"
25891           --with-packager-version="packager-specific version"
25892           --with-packager-bug-reports="packager bug reporting"
25893         An example with coreutils:
25894           $ ./configure \
25895             --with-packager=Gentoo \
25896             --with-packager-bug-report=http://bugs.gentoo.org/ \
25897             --with-packager-version="patchset 1.6"
25898           $ ./src/ls --version | head -n2
25899           ls (GNU coreutils) 7.1-dirty
25900           Packaged by Gentoo (patchset 1.6)
25901         Note that the bug reporting info via --help doesn't show up because
25902         coreutils uses its own custom emit_bug_reporting_address() implementation
25903         in src/system.h.  If it didn't, it'd look like:
25904           $ ./src/ls --help | tail -n4
25905           Report bugs to <bug-coreutils@gnu.org>.
25906           Report Gentoo bugs to <http://bugs.gentoo.org/>.
25907           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
25908           General help using GNU software: <http://www.gnu.org/gethelp/>.
25909         * lib/version-etc.c: Print new information, if provided.
25910         * m4/version-etc.m4: New file.
25911         * modules/version-etc (Files): Add m4/version-etc.m4.
25912         (configure.ac): Add gl_VERSION_ETC.
25913
25914 2009-05-31  Bruno Haible  <bruno@clisp.org>
25915
25916         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
25917         and 'int64_t'.
25918         * modules/alignof-tests (Dependencies): Add stdint.
25919         Reported by Eric Blake.
25920
25921 2009-05-31  Bruno Haible  <bruno@clisp.org>
25922
25923         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
25924         restriction due to compiler bugs.
25925         Reported by Eric Blake.
25926
25927 2009-05-31  Simon Josefsson  <simon@josefsson.org>
25928             Bruno Haible  <bruno@clisp.org>
25929
25930         Fix test-alignof failure.
25931         * lib/alignof.h (alignof_slot): New macro.
25932         (alignof_type): New macro, with the same semantics as the previous
25933         'alignof'.
25934         (alignof): Alias to alignof_slot.
25935         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
25936         check that the results are usable as constant expressions.
25937
25938 2009-05-31  Bruno Haible  <bruno@clisp.org>
25939
25940         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
25941         * tests/test-memchr.c (main): Check that memchr does not read past the
25942         first occurrence of the byte.
25943         * tests/test-strstr.c (main): Update comment.
25944         Suggested by Eric Blake.
25945
25946 2009-05-30  Bruno Haible  <bruno@clisp.org>
25947
25948         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
25949         detail how to use dumpbin.
25950         Reported by David Byron <dbyron@dbyron.com>.
25951
25952 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25953
25954         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
25955
25956 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25957
25958         * m4/manywarnings.m4: Add GCC 4.4 warnings.
25959
25960 2009-05-28  Bruno Haible  <bruno@clisp.org>
25961
25962         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
25963         build-aux/ files.
25964
25965 2009-05-28  Simon Josefsson  <simon@josefsson.org>
25966
25967         * gnulib-tool (func_import): Transform license on build-aux/ files too.
25968
25969 2009-05-27  Simon Josefsson  <simon@josefsson.org>
25970
25971         * gnulib-tool (sed_transform_main_lib_file)
25972         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
25973         regexps.
25974
25975 2009-05-26  Simon Josefsson  <simon@josefsson.org>
25976
25977         * tests/test-strstr.c: Add another self-test.
25978         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
25979         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
25980
25981 2009-05-23  Bruno Haible  <bruno@clisp.org>
25982
25983         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
25984         change.
25985
25986 2009-05-21  Bruno Haible  <bruno@clisp.org>
25987
25988         Simplify use of mode_t varargs.
25989         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
25990         uses 'mode_t' or 'int'.
25991         * lib/openat.c (openat): Likewise.
25992         * lib/open-safer.c (open_safer): Likewise.
25993         * m4/mode_t.m4: New file.
25994         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
25995         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
25996         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
25997         * modules/open (Files): Add m4/mode_t.m4.
25998         * modules/openat (Files): Likewise.
25999         * modules/fcntl-safer (Files): Likewise.
26000         Suggested by Eric Blake.
26001
26002 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26003
26004         * doc/glibc-functions/fallocate.texi: New file.
26005         * doc/gnulib.texi: Include it.
26006
26007 2009-05-21  Eric Blake  <ebb9@byu.net>
26008             Bruno Haible  <bruno@clisp.org>
26009
26010         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26011         invocations.
26012         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26013
26014 2009-05-21  Eric Blake  <ebb9@byu.net>
26015             Bruno Haible  <bruno@clisp.org>
26016
26017         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26018         include_next. Fix of 2008-11-20 commit.
26019         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26020         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26021         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26022         NEXT_MATH_H.
26023         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26024         instead of NEXT_MATH_H.
26025
26026 2009-05-21  Bruno Haible  <bruno@clisp.org>
26027
26028         Avoid redefinition warnings for SIZE_MAX.
26029         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26030         Reported by Simon Josefsson.
26031
26032 2009-05-21  Bruno Haible  <bruno@clisp.org>
26033
26034         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26035         AC_CACHE_VAL.
26036
26037 2009-05-20  Bruno Haible  <bruno@clisp.org>
26038
26039         Make zeroptr.h work on mingw.
26040         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26041         mprotect.
26042         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26043         * modules/memchr2-tests (configure.ac): Likewise.
26044         * modules/memcmp-tests (configure.ac): Likewise.
26045         * modules/memmem-tests (configure.ac): Likewise.
26046         * modules/memrchr-tests (configure.ac): Likewise.
26047         Reported by Simon Josefsson.
26048
26049 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26050
26051         * tests/test-glob.c: Include string.h for strcmp prototype.
26052
26053 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26054
26055         * modules/getdelim (Depends-on): Add explicit stdint, although it
26056         was implicitly already pulled in via realloc-posix.
26057         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26058
26059 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26060
26061         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26062         G. Christensen" <tgc@jupiterrise.com>.
26063         * m4/sys_socket_h.m4: Check for sa_family_t.
26064         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26065         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26066         * tests/test-sys_socket.c: Check that sa_family_t works.
26067
26068 2009-05-18  Eric Blake  <ebb9@byu.net>
26069
26070         maint.mk: allow gnulib_dir in VPATH build
26071         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26072
26073 2009-05-15  Jim Meyering  <meyering@redhat.com>
26074
26075         maint.mk: Give gnulib_dir a default definition.
26076         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26077         Thus, most packages no longer need to specify this variable in cfg.mk
26078
26079 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26080
26081         rename.m4: fix typos that would make non-mingw cross-configure fail
26082         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26083
26084 2009-05-13  Eric Blake  <ebb9@byu.net>
26085
26086         mmap-anon: avoid out-of-order autoconf expansion
26087         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26088         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26089         * modules/memchr-tests (Depends-on): Add extensions.
26090         * modules/memchr2-tests (Depends-on): Add extensions.
26091         * modules/memcmp-tests (Depends-on): Add extensions.
26092         * modules/memmem-tests (Depends-on): Add extensions.
26093         * modules/memrchr-tests (Depends-on): Add extensions.
26094
26095 2009-05-13  Bruno Haible  <bruno@clisp.org>
26096
26097         Make some tests ISO C 99 compliant.
26098         * tests/zerosize-ptr.h: New file.
26099         * tests/test-memchr.c: Include zerosize-ptr.h.
26100         (main): Use a zero-size object pointer instead of NULL.
26101         * tests/test-memchr2.c: Include zerosize-ptr.h.
26102         (main): Use a zero-size object pointer instead of NULL.
26103         * tests/test-memcmp.c: Include zerosize-ptr.h.
26104         (main): Use a zero-size object pointer instead of NULL.
26105         * tests/test-memmem.c: Include zerosize-ptr.h.
26106         (main): Use a zero-size object pointer instead of NULL.
26107         * tests/test-memrchr.c: Include zerosize-ptr.h.
26108         (main): Use a zero-size object pointer instead of NULL.
26109         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26110         m4/mmap-anon.m4.
26111         (Depends-on): Add getpagesize.
26112         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26113         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26114         m4/mmap-anon.m4.
26115         (Depends-on): Add getpagesize.
26116         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26117         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26118         m4/mmap-anon.m4.
26119         (Depends-on): Add getpagesize.
26120         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26121         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26122         m4/mmap-anon.m4.
26123         (Depends-on): Add getpagesize.
26124         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26125         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26126         m4/mmap-anon.m4.
26127         (Depends-on): Add getpagesize.
26128         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26129
26130 2009-05-12  Bruno Haible  <bruno@clisp.org>
26131
26132         Tests for module 'alignof'.
26133         * modules/alignof-tests: New file.
26134         * tests/test-alignof.c: New file.
26135
26136 2009-05-12  Bruno Haible  <bruno@clisp.org>
26137
26138         Fix alignof macro.
26139         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26140         vendor compilers that are always correct.
26141
26142 2009-05-12  Bruno Haible  <bruno@clisp.org>
26143
26144         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26145         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26146         not whether its fully works.
26147
26148 2009-05-12  Bruno Haible  <bruno@clisp.org>
26149
26150         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26151
26152 2009-05-12  Jim Meyering  <meyering@redhat.com>
26153
26154         * top/maint.mk: Adjust backslash alignment.
26155
26156 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26157
26158         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26159
26160 2009-05-11  Eric Blake  <ebb9@byu.net>
26161
26162         argp: avoid undefined behavior
26163         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26164         macros.
26165
26166 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26167
26168         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26169         user.name to prevent git commit from complaining.
26170
26171 2009-05-10  Bruno Haible  <bruno@clisp.org>
26172
26173         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26174         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26175         it rewrites every file name only once.
26176         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
26177
26178 2009-05-08  Bruno Haible  <bruno@clisp.org>
26179
26180         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
26181         instead of 'max'.
26182
26183 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26184
26185         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
26186         sockaddr_storage test.
26187
26188 2009-05-07  Simon Josefsson  <simon@josefsson.org>
26189
26190         * modules/sys_socket (Makefile.am): Substitute
26191         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
26192         * m4/sys_socket_h.m4: Check for sockaddr_storage.
26193         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
26194         * tests/test-sys_socket.c: Check sockaddr_storage.
26195
26196 2009-05-08  Bruno Haible  <bruno@clisp.org>
26197
26198         New module 'alignof'.
26199         * lib/alignof.h: New file.
26200         * modules/alignof: New file.
26201
26202 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26203             Bruno Haible  <bruno@clisp.org>
26204
26205         Fix test-file-has-acl on FreeBSD.
26206         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
26207         mask is implicitly added.
26208         * tests/test-file-has-acl.c: Include <signal.h>.
26209         (main): Terminate the test after 5 seconds.
26210         * modules/acl-tests (configure.ac): Check for alarm function.
26211
26212 2009-05-04  Bruno Haible  <bruno@clisp.org>
26213
26214         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
26215         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
26216         * modules/errno (configure.ac): Drop AC_REQUIRE.
26217         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
26218         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
26219
26220 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26221
26222         * modules/glob-tests: New module.
26223         * tests/test-glob.c: Add.
26224
26225 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26226
26227         * modules/fnmatch-tests: New module.
26228         * tests/test-fnmatch.c: Add.
26229
26230 2009-05-04  Eric Blake  <ebb9@byu.net>
26231
26232         maint: make the new no-submodule-changes rule VPATH-safe
26233         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
26234
26235 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26236             Bruno Haible  <bruno@clisp.org>
26237
26238         acl: Fix infinite loop on FreeBSD.
26239         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
26240         of return value from acl_get_entry.
26241         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
26242         Likewise.
26243
26244 2009-05-03  Bruno Haible  <bruno@clisp.org>
26245
26246         * lib/acl-internal.h (acl_entries): Clarify return value.
26247         * lib/acl_entries.c (acl_entries): Likewise.
26248
26249 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26250
26251         Bug fix in acl module.
26252         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
26253
26254 2009-05-03  Bruno Haible  <bruno@clisp.org>
26255
26256         Create gperf-generated file in the source dir, not in the build dir.
26257         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
26258         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
26259         * modules/unicase/locale-language (unicase/locale-languages.h):
26260         Likewise.
26261         * modules/unicase/special-casing (unicase/special-casing-table.h):
26262         Likewise.
26263         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
26264         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
26265         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
26266         Reported by Ralf Wildenhues.
26267
26268 2009-05-03  Bruno Haible  <bruno@clisp.org>
26269
26270         * modules/fnmatch (Description, configure.ac): Taken from
26271         fnmatch-posix.
26272         * modules/fnmatch-posix: Turn into a symbolic reference to the
26273         'fnmatch' module, and deprecate.
26274         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
26275
26276 2009-05-03  Bruno Haible  <bruno@clisp.org>
26277
26278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
26279         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
26280         Reported by Ralf Wildenhues.
26281
26282 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26283
26284         * m4/fnmatch.m4: Fix fnmatch re-define.
26285
26286 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26287
26288         priv-set: new module and tests; adapt write-any-file
26289         * lib/priv-set.c: New file.
26290         * lib/priv-set.h: New file.
26291         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
26292         * lib/write-any-file.c: Simplify by using priv-set module.
26293         * m4/priv-set.m4: New file.
26294         * modules/priv-set: New file.
26295         * modules/unlinkdir: Add dependency on priv-set module.
26296         * modules/write-any-file: Likewise.
26297
26298         Tests for module 'priv-set'.
26299         * modules/priv-set-tests: New file.
26300         * tests/test-priv-set.c: New file.
26301
26302 2009-05-03  Jim Meyering  <meyering@redhat.com>
26303             Bruno Haible  <bruno@clisp.org>
26304
26305         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
26306         use the converted UTF-8 variant of the name instead.
26307
26308 2009-05-03  Jim Meyering  <meyering@redhat.com>
26309
26310         tests: tighten some getdate tests
26311         * tests/test-getdate.c (main): Tighten tests: require equality,
26312         not just greater than.  Set TZ envvar to UTC0.
26313
26314 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26315
26316         getdate: correctly interpret "next monday" when run on a Monday
26317         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
26318         that e.g., "next tues" (when run on a tuesday) results in a date
26319         that is one week in the future, and not today's date.
26320         I.e., add a week when the wday is the same as the current one.
26321         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
26322         and earlier by Martin Bernreuther and Jan Minář.
26323         * tests/test-getdate.c (main): Check that "next DAY" is always in
26324         the future and that "last DAY" is always in the past.
26325
26326 2009-05-02  Jim Meyering  <meyering@redhat.com>
26327
26328         build: ensure that a release build fails when a submodule is unclean
26329         * top/maint.mk (no-submodule-changes): New rule.
26330         (alpha beta major): Depend on it.
26331
26332 2009-05-02  Bruno Haible  <bruno@clisp.org>
26333
26334         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
26335         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
26336         shell variable gl_fnmatch_required to detect which variant is
26337         requested.
26338         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
26339         gl_FUNC_FNMATCH_POSIX.
26340         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
26341         exclude fnmatch-posix.
26342
26343 2009-05-02  Bruno Haible  <bruno@clisp.org>
26344
26345         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
26346         * modules/mbsrtowcs (License): Change to LGPLv2+.
26347         * modules/strnlen1 (License): Likewise.
26348         Reported by Simon Josefsson.
26349
26350 2009-05-02  Bruno Haible  <bruno@clisp.org>
26351
26352         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
26353         "cross".
26354         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
26355         gnulib-tool was called with option --source-base=lib.
26356
26357 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26358
26359         Use automake *-local hooks without commands, for extensibility.
26360         * modules/localcharset (Makefile.am): Rename install-exec-local
26361         rule to install-exec-localcharset, and make it a prerequisite of
26362         install-exec-local.  Likewise, rename the uninstall-local rule to
26363         uninstall-localcharset, and make it a prerequisite of the former.
26364
26365 2009-05-01  Bruno Haible  <bruno@clisp.org>
26366
26367         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
26368         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26369         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
26370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
26371         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
26372         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26373         m4/locale-zh.m4, m4/codeset.m4.
26374
26375         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26376         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
26377         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26378         m4/locale-zh.m4.
26379
26380         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
26381         REPLACE_WCRTOMB if mbstate_t must be replaced.
26382         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
26383         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
26384
26385 2009-05-01  Bruno Haible  <bruno@clisp.org>
26386
26387         Avoid compiler warnings when redefining macros defined by <libintl.h>.
26388         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
26389         dngettext, dcngettext, textdomain, bindtextdomain,
26390         bind_textdomain_codeset): Undefine before redefining.
26391
26392 2009-04-30  Bruno Haible  <bruno@clisp.org>
26393
26394         Fix bug introduced on 2009-04-25.
26395         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
26396         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
26397         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
26398         is defined.
26399         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
26400         is defined.
26401         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
26402         is defined.
26403         Reported by Elbert_Pol <elbert.pol@gmail.com>.
26404
26405 2009-04-28  Bruno Haible  <bruno@clisp.org>
26406
26407         Comment tweaks.
26408         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
26409         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
26410         * lib/unicase.h (u*_casexfrm): Likewise.
26411         Reported by Paolo Bonzini.
26412
26413 2009-04-28  Bruno Haible  <bruno@clisp.org>
26414
26415         Fix a compilation error.
26416         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26417         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26418         Reported by Jim Meyering.
26419
26420 2009-04-27  Bruno Haible  <bruno@clisp.org>
26421
26422         New module 'libunistring'.
26423         * modules/libunistring: New file.
26424         * m4/libunistring.m4: New file.
26425         * MODULES.html.sh (Unicode string functions): Add it.
26426
26427 2009-04-27  Eric Blake  <ebb9@byu.net>
26428
26429         maint.mk: allow package-specific header to provide <config.h>
26430         * top/maint.mk (sc_require_config_h): New variable.
26431         (sc_require_config_h, sc_require_config_h_first): Use it.
26432
26433 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26434
26435         * top/maint.mk (sc_avoid_if_before_free): Except
26436         useless-if-before-free script.
26437
26438 2009-04-27  Eric Blake  <ebb9@byu.net>
26439
26440         maintainer-makefile: depend on all required helper scripts
26441         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
26442         useless-if-before-free.
26443         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
26444         version, rather than assuming gnulib checkout is available.
26445         Reported by Simen Josefsson.
26446
26447 2009-04-26  Bruno Haible  <bruno@clisp.org>
26448
26449         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
26450         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
26451         "../" or "..".
26452
26453 2009-04-26  Bruno Haible  <bruno@clisp.org>
26454
26455         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
26456         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
26457         AC_LIB_HAVE_LINKFLAGS.
26458
26459 2009-04-26  Bruno Haible  <bruno@clisp.org>
26460
26461         Simplify calling convention of u*_conv_from_encoding.
26462         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
26463         u32_conv_from_encoding): Expect a resultbuf argument and return the
26464         result directly as a pointer.
26465         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
26466         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
26467         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
26468         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
26469         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
26470         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26471         Update.
26472         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
26473         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
26474         * lib/vasnprintf.c (VASNPRINTF): Update.
26475         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
26476         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
26477         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
26478         * NEWS: Mention the change.
26479
26480 2009-04-26  Bruno Haible  <bruno@clisp.org>
26481
26482         Simplify calling convention of u*_conv_to_encoding.
26483         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26484         u32_conv_to_encoding): Expect a resultbuf argument and return the
26485         result directly as a pointer.
26486         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26487         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
26488         freeing scaled_offsets if mem_iconveha failed.
26489         * lib/unicase/u-casexfrm.h (FUNC): Update.
26490         * lib/uninorm/u-normxfrm.h (FUNC): Update.
26491         * lib/vasnprintf.c (VASNPRINTF): Update.
26492         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
26493         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
26494         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
26495         * NEWS: Mention the change.
26496
26497 2009-04-26  Bruno Haible  <bruno@clisp.org>
26498
26499         Avoid test failures on AIX and OSF/1.
26500         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
26501         malloc(0).
26502         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26503         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26504         Likewise.
26505         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
26506         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
26507         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
26508         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
26509         * doc/posix-functions/malloc.texi: Document the portability problem
26510         related to malloc(0).
26511
26512 2009-04-26  Bruno Haible  <bruno@clisp.org>
26513
26514         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
26515         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
26516         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
26517
26518 2009-04-25  Bruno Haible  <bruno@clisp.org>
26519
26520         Avoid link error when creating a namespace clean library.
26521         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
26522         as macro with arguments if already defined as an alias.
26523         * lib/signbitf.c (gl_signbitf): Don't undefine.
26524         * lib/signbitd.c (gl_signbitd): Don't undefine.
26525         * lib/signbitl.c (gl_signbitl): Don't undefine.
26526
26527 2009-04-25  Jim Meyering  <meyering@redhat.com>
26528
26529         vc-list-files: fix another quoting bug
26530         * build-aux/vc-list-files: Avoid sed backslash expansion
26531         of pathological directory names.
26532
26533 2009-04-25  Eric Blake  <ebb9@byu.net>
26534
26535         vc-list-files: fix shell quoting error
26536         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
26537         timestamp.
26538
26539 2009-04-25  Jim Meyering  <meyering@redhat.com>
26540
26541         vc-list-files: restore lost functionality with subdir argument
26542         * build-aux/vc-list-files: When given a non-"." sub-directory
26543         argument, substitute the $dir/ prefix back onto each resulting name.
26544         Otherwise, coreutils' root_tests check would fail.
26545
26546 2009-04-24  Eric Blake  <ebb9@byu.net>
26547
26548         vc-list-files: ignore git symlinks
26549         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
26550         than ls-files, to ignore git symlinks.
26551
26552         maint.mk: import improvements from m4
26553         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
26554         (move_if_change): Delete unused macro.
26555         (news-date-check, vc-diff-check): Support VPATH builds.
26556         (announcement): Likewise.  Split --bootstrap-tools list...
26557         (boostrap-tools): ...into separate list, which can be overridden
26558         in cfg.mk.
26559         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
26560         requiring dependency on useless-if-before-free module.
26561         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
26562         Support VPATH builds.
26563
26564 2009-04-24  Jim Meyering  <meyering@redhat.com>
26565
26566         maint.mk: remove coreutils-specific rules and variables
26567         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
26568         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
26569         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
26570
26571         maint.mk: remove obsolete rule
26572         * top/maint.mk (rel-check): Remove rule.
26573         (WGET, WGETFLAGS): Remove now-unused variables.
26574
26575 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26576
26577         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
26578         consistency.
26579
26580         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
26581         '$(PATH_SEPARATOR)' instead of ':'.
26582
26583 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26584
26585         * lib/getopt1.c (main): Use 'const' for static array.
26586
26587 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26588
26589         * top/maint.mk: Sync with coreutils.
26590         * NEWS: Explain incompatibilities.
26591
26592 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26593             Bruno Haible  <bruno@clisp.org>
26594
26595         Fix cross-compilation results.
26596         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
26597         statement, as third argument of AC_TRY_RUN.
26598         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26599         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26600         Likewise.
26601         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26602         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26603         Likewise.
26604         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26605         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
26606         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
26607
26608 2009-04-20  Bruno Haible  <bruno@clisp.org>
26609
26610         Avoid test failure on mingw.
26611         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
26612
26613 2009-04-20  Bruno Haible  <bruno@clisp.org>
26614
26615         Avoid compilation error on mingw.
26616         * modules/localename-tests (Depends-on): Add locale.
26617
26618 2009-04-19  Bruno Haible  <bruno@clisp.org>
26619
26620         Support for building a shared library on Windows platforms.
26621         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
26622         (main): Test the presence of UNINORM_NFC here.
26623         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
26624         (main): Test the presence of UNINORM_NFD here.
26625         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
26626         (main): Test the presence of UNINORM_NFKC here.
26627         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
26628         (main): Test the presence of UNINORM_NFKD here.
26629
26630 2009-04-19  Bruno Haible  <bruno@clisp.org>
26631
26632         Avoid a compiler warning.
26633         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
26634         Change type of variable 'sequence'.
26635
26636 2009-04-19  Bruno Haible  <bruno@clisp.org>
26637
26638         * modules/configmake (Makefile.am): When the contents of configmake.h
26639         does not change, arrange to preserve its modification time.
26640
26641 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26642
26643         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26644         gettext domain.
26645
26646 2009-04-16  Jim Meyering  <meyering@redhat.com>
26647
26648         useless-if-before-free: improve conversion code
26649         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26650         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26651
26652 2009-04-14  Bruno Haible  <bruno@clisp.org>
26653
26654         * modules/fcntl (Depends-on): Add extensions.
26655         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26656
26657 2009-04-12  Ben Pfaff  <blp@gnu.org>
26658
26659         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26660         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26661
26662 2009-03-20  Ben Pfaff  <blp@gnu.org>
26663
26664         Make rename replace existing destinations on Windows.
26665         * m4/rename.m4: Add test for Mingw.
26666         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26667         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
26668         * doc/posix-functions/rename.texi: Document.
26669
26670 2009-04-10  Bruno Haible  <bruno@clisp.org>
26671
26672         New include file "iconveh.h".
26673         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
26674         * lib/striconveh.h: Include it.
26675         (enum iconv_ilseq_handler): Remove definition.
26676         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26677         striconveh.h.
26678         * lib/striconveha.c: Include striconveh.h.
26679         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
26680         * modules/striconveh (Files): Add lib/iconveh.h.
26681         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
26682         lib/striconveh.h.
26683
26684 2009-04-10  Bruno Haible  <bruno@clisp.org>
26685
26686         * lib/uniconv.h: Update comment.
26687
26688 2009-04-10  Bruno Haible  <bruno@clisp.org>
26689
26690         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
26691         always.
26692         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26693         * lib/unistr/u16-mbtouc-aux.c: Likewise.
26694         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26695         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
26696         "unistring-notinline.h", so that the function gets defined always.
26697         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26698         * lib/unistr/u8-uctomb.c: Likewise.
26699         * lib/unistr/u16-mbtouc.c: Likewise.
26700         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26701         * lib/unistr/u16-uctomb.c: Likewise.
26702         * lib/unistr/u32-mbtouc.c: Likewise.
26703         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26704         * lib/unistr/u32-uctomb.c: Likewise.
26705
26706 2009-04-10  Bruno Haible  <bruno@clisp.org>
26707
26708         Mark 'utime' obsolete.
26709         * modules/utime (Status, Notice): New sections.
26710         Suggested by Jim Meyering.
26711
26712         Fix cross-compile guess for utime test.
26713         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
26714         autoconf.
26715         * doc/posix-functions/utime.texi: Give more precisions.
26716         Reported by Jan <ipif@ymail.com>.
26717
26718 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
26719
26720         filevercmp: correct today's change
26721         * lib/filevercmp.c: Also handle coreutils' test inputs.
26722         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
26723
26724         Fix regression in 'filevercmp' module. Thanks Sven Joachim
26725         for reporting it.
26726         * lib/filevercmp.c: Special handle for "", "." and "..".
26727         * tests/test-filevercmp.c: Enlarge the set suite.
26728
26729 2009-04-07  Jim Meyering  <meyering@redhat.com>
26730
26731         useless-if-before-free: show how to remove braced useless free, too
26732         * build-aux/useless-if-before-free: still only in a comment, though.
26733
26734 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
26735
26736         maint.mk: import changes to syntax-check macros from coreutils
26737         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
26738         Use them in the relevant macros.
26739
26740 2009-04-06  Bruno Haible  <bruno@clisp.org>
26741
26742         Fix unportable use of bit-fields.
26743         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
26744         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
26745         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
26746
26747 2009-04-06  Bruno Haible  <bruno@clisp.org>
26748
26749         Avoid test failures on AIX and OSF/1.
26750         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
26751         that malloc(0) = NULL.
26752         * tests/unicase/test-u8-tolower.c (check): Likewise.
26753         * tests/unicase/test-u8-totitle.c (check): Likewise.
26754         * tests/unicase/test-u8-toupper.c (check): Likewise.
26755         * tests/unicase/test-u16-casefold.c (check): Likewise.
26756         * tests/unicase/test-u16-tolower.c (check): Likewise.
26757         * tests/unicase/test-u16-totitle.c (check): Likewise.
26758         * tests/unicase/test-u16-toupper.c (check): Likewise.
26759         * tests/unicase/test-u32-casefold.c (check): Likewise.
26760         * tests/unicase/test-u32-tolower.c (check): Likewise.
26761         * tests/unicase/test-u32-totitle.c (check): Likewise.
26762         * tests/unicase/test-u32-toupper.c (check): Likewise.
26763         * tests/uninorm/test-u8-nfc.c (check): Likewise.
26764         * tests/uninorm/test-u8-nfd.c (check): Likewise.
26765         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
26766         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
26767         * tests/uninorm/test-u16-nfc.c (check): Likewise.
26768         * tests/uninorm/test-u16-nfd.c (check): Likewise.
26769         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
26770         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
26771         * tests/uninorm/test-u32-nfc.c (check): Likewise.
26772         * tests/uninorm/test-u32-nfd.c (check): Likewise.
26773         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
26774         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
26775
26776 2009-04-05  Bruno Haible  <bruno@clisp.org>
26777
26778         Work around an autoconf limitation.
26779         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26780         comment line if it would be longer than 3 KB.
26781
26782 2009-04-05  Bruno Haible  <bruno@clisp.org>
26783
26784         Avoid test failure with libiconv-1.13.
26785         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26786         of the expected test results.
26787
26788 2009-04-05  Bruno Haible  <bruno@clisp.org>
26789
26790         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26791         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26792         that it should be installed.
26793
26794 2009-04-05  Bruno Haible  <bruno@clisp.org>
26795
26796         * gnulib-tool: New option --copy-file.
26797         (func_usage): Document it.
26798         (func_dest_tmpfilename): Moved out of func_import.
26799         (func_add_file, func_update_file): New functions, extracted from
26800         func_import.
26801         (func_import): Update.
26802
26803 2009-04-05  Karl Berry  <karl@gnu.org>
26804
26805         * README: prominently mention gnulib-tool.
26806         Rearrange sections so getting the code is near the top.
26807
26808 2009-04-05  Bruno Haible  <bruno@clisp.org>
26809
26810         * lib/unicase.h: Mention u*_cmp2.
26811         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26812         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26813         * lib/unicase/ulc-casecmp.c: Likewise.
26814         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26815         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
26816         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
26817         unistr/u8-cmp.
26818         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26819         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
26820         unistr/u16-cmp.
26821         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
26822         unistr/u32-cmp.
26823
26824         * lib/uninorm.h: Mention u*_cmp2.
26825         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26826         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
26827         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
26828         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
26829         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
26830         unistr/u8-cmp.
26831         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
26832         unistr/u16-cmp.
26833         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
26834         unistr/u32-cmp.
26835
26836         New module 'unistr/u32-cmp2'.
26837         * lib/unistr/u32-cmp2.c: New file.
26838         * modules/unistr/u32-cmp2: New file.
26839
26840         New module 'unistr/u16-cmp2'.
26841         * lib/unistr/u16-cmp2.c: New file.
26842         * modules/unistr/u16-cmp2: New file.
26843
26844         New module 'unistr/u8-cmp2'.
26845         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
26846         * lib/unistr/u8-cmp2.c: New file.
26847         * lib/unistr/u-cmp2.h: New file.
26848         * modules/unistr/u8-cmp2: New file.
26849
26850 2009-04-05  Bruno Haible  <bruno@clisp.org>
26851
26852         * lib/unictype.h (uc_property_is_valid): New macro.
26853         * tests/unictype/test-pr_byname.c (main): Use it.
26854
26855         * lib/unistr.h: Doc fixes.
26856         * lib/uniconv.h: Doc fixes.
26857         * lib/unictype.h: Doc fixes.
26858
26859 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26860
26861         Port coreutils 7.2 to Solaris 8.
26862
26863         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
26864         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
26865         for Solaris 8.  This is a bit of a hack, as it means it's the
26866         caller's responsibility to add -lnsl if needed, but most likely it
26867         won't be needed since only getaddrinfo uses this and getaddrinfo
26868         isn't needed on Solaris 8.
26869
26870         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
26871         problem to Solaris 8 encountered with coreutils 7.2, which
26872         resulted in a message "fnmatch.c:292: warning: passing argument 4
26873         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
26874         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
26875
26876 2009-04-03  Simon Josefsson  <simon@josefsson.org>
26877
26878         * m4/ld-version-script.m4: Add FIXME comment.
26879
26880 2009-04-02  Simon Josefsson  <simon@josefsson.org>
26881
26882         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
26883         SOVERSION variable.
26884
26885 2009-04-02  Bruno Haible  <bruno@clisp.org>
26886
26887         * Makefile (info, html, dvi, pdf): Combine the rules.
26888         Suggested by Jim Meyering.
26889
26890 2009-04-01  Bruno Haible  <bruno@clisp.org>
26891
26892         * Makefile (info, html, dvi, pdf): New targets.
26893         Reported by Reuben Thomas <rrt@sc3d.org>.
26894
26895 2009-04-01  Bruno Haible  <bruno@clisp.org>
26896
26897         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
26898         can be put into PATH.
26899         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
26900
26901 2009-04-01  Bruno Haible  <bruno@clisp.org>
26902
26903         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
26904
26905 2009-04-01  Bruno Haible  <bruno@clisp.org>
26906
26907         Rename module 'visibility'.
26908         * modules/lib-symbol-visibility: Renamed from modules/visibility.
26909         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
26910         * doc/gnulib.texi: Update.
26911         * MODULES.html.sh (Misc): Update.
26912         * NEWS: Mention the change.
26913
26914 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26915
26916         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
26917         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
26918         Eric Blake <ebb9@byu.net> for review.
26919         * MODULES.html.sh: Add lib-msvc-compat.
26920         * doc/gnulib.texi: Link to new section.
26921         * m4/ld-output-def.m4: New file.
26922         * doc/ld-output-def.texi: New file.
26923
26924 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26925
26926         Rename ld-version-script to lib-symbol-versions.  Suggested by
26927         Bruno Haible <bruno@clisp.org>.
26928         * modules/ld-version-script: Renamed to lib-symbol-versions.
26929         * doc/ld-version-script.texi: Fix module name.
26930         * MODULES.html.sh: Add lib-symbol-versions.
26931
26932 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26933
26934         * modules/u64-tests: New file.
26935         * tests/test-u64.c: New file.
26936
26937 2009-03-04  Simon Josefsson  <simon@josefsson.org>
26938
26939         * MODULES.html.sh: Mention u64.
26940         * modules/u64: New module.
26941         * modules/crypto/sha512: Depend on u64 module instead of providing
26942         u64.h.
26943
26944 2009-03-27  Eric Blake  <ebb9@byu.net>
26945
26946         test-strerror: make debugging EAI_SYSTEM easier
26947         * modules/getaddrinfo-tests (Depends-on): Add strerror.
26948         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
26949         failure was EAI_SYSTEM.
26950
26951 2009-03-25  Bruno Haible  <bruno@clisp.org>
26952
26953         Fix a problem with --enable-relocatable on Solaris 7.
26954         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
26955         since 2008-02-24.
26956
26957 2009-03-25  Eric Blake  <ebb9@byu.net>
26958
26959         test-sockets: avoid gcc warning
26960         * tests/test-sockets.c (main): Silence compiler warning.
26961
26962 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26963
26964         New modules nproc, pthread, contributed by Glen Lenker.
26965
26966         * MODULES.html.sh: Add pthread, nproc.
26967         * lib/nproc.c: New file.
26968         * lib/nproc.h: New file.
26969         * lib/pthread.in.h: New file.
26970         * m4/pthread.m4: New file.
26971         * modules/nproc: New file.
26972         * modules/pthread: New file.
26973
26974 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26975
26976         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
26977         New variable.
26978
26979 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
26980
26981         filevercmp: handle simple~ and numbered.~3~ backup suffixes
26982         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
26983         * tests/test-filevercmp.c: Add tests for backup suffixes.
26984
26985 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26986
26987         * modules/stdlib (Depends-on): Add stdint, needed when defining
26988         struct random_data on, for example, HP-UX 10.20.  Reported by
26989         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26990
26991 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26992
26993         * lib/readline.c (readline): Call fflush on stdout after printing
26994         prompt.
26995
26996 2009-03-20  Bruno Haible  <bruno@clisp.org>
26997
26998         Remove dependency from 'close' module to -lws2_32 on native Windows.
26999         * lib/close-hook.h: New file.
27000         * lib/close-hook.c: New file.
27001         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27002         w32sock.h.
27003         (_gl_close_fd_maybe_socket): Remove function.
27004         (rpl_close): Invoke execute_all_close_hooks instead of
27005         _gl_close_fd_maybe_socket.
27006         * lib/sockets.c: Include close-hook.h, w32sock.h.
27007         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27008         (close_sockets_hook): New variable.
27009         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27010         (gl_sockets_cleanup): Unregister it.
27011         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27012         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27013         * modules/close-hook: New file.
27014         * modules/close (Files): Remove lib/w32sock.h.
27015         (Depends-on): Add close-hook.
27016         (Link): Remove section.
27017         * modules/sockets (Files): Add lib/w32sock.h.
27018         (Depends-on): Add close-hook.
27019         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27020         invocation.
27021         * NEWS: Mention that LIB_CLOSE is gone.
27022
27023 2009-03-23  Eric Blake  <ebb9@byu.net>
27024
27025         signal-tests: test previous patch
27026         * tests/test-signal.c: New file.
27027         * modules/signal-tests: Likewise.
27028
27029         signal.h: always support 'volatile sig_atomic_t'
27030         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27031         (gl_SIGNAL_H_DEFAULTS): Add a default.
27032         * modules/signal (Makefile.am): Substitute if needed.
27033         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27034         users can blindly add volatile.
27035         * doc/posix-headers/signal.texi (signal.h): Document it.
27036         Reported by Matthew Woehlke.
27037
27038 2009-03-23  Jim Meyering  <meyering@redhat.com>
27039
27040         pathmax: PATH_MAX: use pathconf only when available
27041         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27042         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27043         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27044         This avoids a link failure in a PSP cross-compilation environment
27045         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27046
27047         * lib/vasnprintf.c (divide): Fix typo in comment.
27048
27049 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27050
27051         * gnulib-tool (func_filter_filelist): Fix comment.
27052
27053 2009-03-20  Bruno Haible  <bruno@clisp.org>
27054
27055         Make sockets.h self-contained.
27056         * lib/sockets.c: Include sockets.h first.
27057         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27058
27059 2009-03-19  Eric Blake  <ebb9@byu.net>
27060
27061         doc: mention more functions added in cygwin 1.7.0
27062         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27063         addition.
27064         * doc/posix-functions/log2f.texi: Likewise.
27065
27066 2009-03-19  Jim Meyering  <meyering@redhat.com>
27067
27068         fsusage: avoid syntax error due to statement-before-declaration
27069         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27070         after all declarations.  Reported by Matthew Woehlke in
27071         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27072
27073 2009-03-18  Eric Blake  <ebb9@byu.net>
27074
27075         build-aux/compile: sync from automake
27076         * build-aux/compile: New file, from automake.
27077         * config/srclist.txt: Mention build-aux/compile.
27078
27079 2009-03-17  Bruno Haible  <bruno@clisp.org>
27080
27081         * lib/git-merge-changelog.c: Fix typo in comment.
27082         Reported by Reuben Thomas <rrt@sc3d.org>.
27083
27084 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27085
27086         * m4/regex.m4: update and improve help for
27087         --without-included-regex.
27088
27089 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27090
27091         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27092         failure on missing include files.
27093
27094 2009-03-17  Eric Blake  <ebb9@byu.net>
27095
27096         doc: mention more functions added in cygwin 1.7.0
27097         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27098         addition.
27099         * doc/posix-functions/fwscanf.texi: Likewise.
27100         * doc/posix-functions/swprintf.texi: Likewise.
27101         * doc/posix-functions/swscanf.texi: Likewise.
27102         * doc/posix-functions/vfwprintf.texi: Likewise.
27103         * doc/posix-functions/vfwscanf.texi: Likewise.
27104         * doc/posix-functions/vswprintf.texi: Likewise.
27105         * doc/posix-functions/vswscanf.texi: Likewise.
27106         * doc/posix-functions/vwprintf.texi: Likewise.
27107         * doc/posix-functions/vwscanf.texi: Likewise.
27108         * doc/posix-functions/wcscasecmp.texi: Likewise.
27109         * doc/posix-functions/wcsdup.texi: Likewise.
27110         * doc/posix-functions/wcsftime.texi: Likewise.
27111         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27112         * doc/posix-functions/wprintf.texi: Likewise.
27113         * doc/posix-functions/wscanf.texi: Likewise.
27114         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27115
27116 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27117
27118         maint.mk: really add $(AM_MAKEFLAGS)
27119         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27120         was inadvertently omitted in the last commit.
27121         Spotted by Bruno Haible.
27122
27123         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27124         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27125         $(AM_MAKEFLAGS)' rather than plain `make'.
27126
27127         gnulib-tool: execute $MAKE not make
27128         * gnulib-tool: Default $MAKE to 'make'.
27129         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27130         than make.  Initialize $MAKE in the do-autobuild script.
27131
27132         gnulib-tool: use $MAKE not make in generated files
27133         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27134         make, in generated files.  Initialize $MAKE in the do-autobuild
27135         script.
27136
27137         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27138
27139         GNUmakefile: disable parallelism only for multiple, recursive targets
27140         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27141         additions in the Makefile.
27142         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27143         by Automake.
27144         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27145         are listed on the command line and at least one of them is
27146         listed in $(ALL_RECURSIVE_TARGETS).
27147
27148 2009-03-14  Bruno Haible  <bruno@clisp.org>
27149
27150         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27151         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27152         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27153         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27154         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27155         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27156         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27157         unistr/u8-uctomb.
27158         * modules/unistr/u8-strchr (Depends-on): Likewise.
27159         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27160         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27161         unistr/u16-uctomb.
27162         * modules/unistr/u16-strchr (Depends-on): Likewise.
27163         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27164
27165 2009-03-12  Bruno Haible  <bruno@clisp.org>
27166
27167         Work around select() bug on Interix 3.5.
27168         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27169         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27170         * m4/select.m4: New file.
27171         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27172         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27173         * modules/select (Files): Add m4/select.m4.
27174         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27175         * modules/nanosleep (Depends-on): Add select.
27176         * modules/poll (Depends-on): Likewise.
27177         * doc/posix-functions/select.texi: Mention the Interix bug.
27178         Reported by Markus Duft <mduft@gentoo.org>.
27179
27180         * lib/select.c: Renamed from lib/winsock-select.c.
27181         * modules/select (Files): Add lib/select.c, remove
27182         lib/winsock-select.c.
27183         (configure.ac): Update.
27184
27185 2009-03-12  Jim Meyering  <meyering@redhat.com>
27186
27187         avoid gcc warnings about unused macro definitions
27188         * lib/readtokens.c (STREQ): Remove unused definition.
27189         * lib/xmalloc.c (SIZE_MAX): Likewise.
27190         * lib/openat-die.c (N_): Likewise.
27191         * lib/mountlist.c (SIZE_MAX): Remove definition.
27192         Instead, include <stdint.h>.
27193         * lib/readutmp.c: Likewise.
27194         * modules/readutmp (Depends-on): Add stdint.
27195         * modules/mountlist (Depends-on): Add stdint.
27196         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
27197
27198 2009-03-10  Bruno Haible  <bruno@clisp.org>
27199
27200         Tests for module 'mbmemcasecoll'.
27201         * modules/mbmemcasecoll-tests: New file.
27202         * tests/test-mbmemcasecoll1.sh: New file.
27203         * tests/test-mbmemcasecoll2.sh: New file.
27204         * tests/test-mbmemcasecoll3.sh: New file.
27205         * tests/test-mbmemcasecoll.c: New file.
27206
27207         New module 'mbmemcasecoll'.
27208         * lib/mbmemcasecoll.h: New file.
27209         * lib/mbmemcasecoll.c: New file.
27210         * modules/mbmemcasecoll: New file.
27211
27212         * tests/test-mbmemcasecmp.h: New file, extracted from
27213         tests/test-mbmemcasecmp.c.
27214         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
27215         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
27216         (main): Update.
27217         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
27218
27219 2009-03-09  Bruno Haible  <bruno@clisp.org>
27220
27221         Tests for module 'mbmemcasecmp'.
27222         * modules/mbmemcasecmp-tests: New file.
27223         * tests/test-mbmemcasecmp1.sh: New file.
27224         * tests/test-mbmemcasecmp2.sh: New file.
27225         * tests/test-mbmemcasecmp3.sh: New file.
27226         * tests/test-mbmemcasecmp.c: New file.
27227
27228         New module 'mbmemcasecmp'.
27229         * lib/mbmemcasecmp.h: New file.
27230         * lib/mbmemcasecmp.c: New file.
27231         * modules/mbmemcasecmp: New file.
27232
27233 2009-03-09  Bruno Haible  <bruno@clisp.org>
27234
27235         Tests for module 'unicase/ulc-casecoll'.
27236         * modules/unicase/ulc-casecoll-tests: New file.
27237         * tests/unicase/test-ulc-casecoll1.sh: New file.
27238         * tests/unicase/test-ulc-casecoll2.sh: New file.
27239         * tests/unicase/test-ulc-casecoll.c: New file.
27240
27241         New module 'unicase/ulc-casecoll'.
27242         * lib/unicase.h (ulc_casecoll): New declaration.
27243         * lib/unicase/ulc-casecoll.c: New file.
27244         * modules/unicase/ulc-casecoll: New file.
27245
27246         New module 'unicase/ulc-casexfrm'.
27247         * lib/unicase.h (ulc_casexfrm): New declaration.
27248         * lib/unicase/ulc-casexfrm.c: New file.
27249         * modules/unicase/ulc-casexfrm: New file.
27250
27251 2009-03-09  Bruno Haible  <bruno@clisp.org>
27252
27253         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
27254         invocations.
27255
27256         * m4/mbscasecmp.m4: Remove file.
27257         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
27258         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
27259
27260         * m4/mbscasestr.m4: Remove file.
27261         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
27262         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
27263
27264         * m4/mbschr.m4: Remove file.
27265         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
27266         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
27267
27268         * m4/mbscspn.m4: Remove file.
27269         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
27270         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
27271
27272         * m4/mbslen.m4: Remove file.
27273         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
27274         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
27275
27276         * m4/mbsncasecmp.m4: Remove file.
27277         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
27278         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
27279
27280         * m4/mbsnlen.m4: Remove file.
27281         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
27282         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
27283
27284         * m4/mbspbrk.m4: Remove file.
27285         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
27286         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
27287
27288         * m4/mbspcasecmp.m4: Remove file.
27289         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
27290         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
27291
27292         * m4/mbsrchr.m4: Remove file.
27293         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
27294         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
27295
27296         * m4/mbssep.m4: Remove file.
27297         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
27298         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
27299
27300         * m4/mbsspn.m4: Remove file.
27301         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
27302         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
27303
27304         * m4/mbsstr.m4: Remove file.
27305         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
27306         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
27307
27308         * m4/mbstok_r.m4: Remove file.
27309         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
27310         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
27311
27312         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
27313
27314         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
27315         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
27316
27317         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
27318
27319 2009-03-08  Bruno Haible  <bruno@clisp.org>
27320
27321         Tests for module 'unicase/ulc-casecmp'.
27322         * modules/unicase/ulc-casecmp-tests: New file.
27323         * tests/unicase/test-ulc-casecmp1.sh: New file.
27324         * tests/unicase/test-ulc-casecmp2.sh: New file.
27325         * tests/unicase/test-ulc-casecmp.c: New file.
27326
27327         New module 'unicase/ulc-casecmp'.
27328         * lib/unicase.h (ulc_casecmp): New declaration.
27329         * lib/unicase/ulc-casecmp.c: New file.
27330         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
27331         'const SRC_UNIT *'.
27332         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
27333         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
27334         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
27335         * modules/unicase/ulc-casecmp: New file.
27336
27337         Tests for module 'unicase/u32-is-cased'.
27338         * modules/unicase/u32-is-cased-tests: New file.
27339         * tests/unicase/test-u32-is-cased.c: New file.
27340
27341         Tests for module 'unicase/u16-is-cased'.
27342         * modules/unicase/u16-is-cased-tests: New file.
27343         * tests/unicase/test-u16-is-cased.c: New file.
27344
27345         Tests for module 'unicase/u8-is-cased'.
27346         * modules/unicase/u8-is-cased-tests: New file.
27347         * tests/unicase/test-u8-is-cased.c: New file.
27348         * tests/unicase/test-is-cased.h: New file.
27349
27350         New module 'unicase/u32-is-cased'.
27351         * lib/unicase/u32-is-cased.c: New file.
27352         * modules/unicase/u32-is-cased: New file.
27353
27354         New module 'unicase/u16-is-cased'.
27355         * lib/unicase/u16-is-cased.c: New file.
27356         * modules/unicase/u16-is-cased: New file.
27357
27358         New module 'unicase/u8-is-cased'.
27359         * lib/unicase/u8-is-cased.c: New file.
27360         * lib/unicase/u-is-cased.h: New file.
27361         * modules/unicase/u8-is-cased: New file.
27362
27363         Tests for module 'unicase/u32-is-casefolded'.
27364         * modules/unicase/u32-is-casefolded-tests: New file.
27365         * tests/unicase/test-u32-is-casefolded.c: New file.
27366
27367         Tests for module 'unicase/u16-is-casefolded'.
27368         * modules/unicase/u16-is-casefolded-tests: New file.
27369         * tests/unicase/test-u16-is-casefolded.c: New file.
27370
27371         Tests for module 'unicase/u8-is-casefolded'.
27372         * modules/unicase/u8-is-casefolded-tests: New file.
27373         * tests/unicase/test-u8-is-casefolded.c: New file.
27374         * tests/unicase/test-is-casefolded.h: New file.
27375
27376         New module 'unicase/u32-is-casefolded'.
27377         * lib/unicase/u32-is-casefolded.c: New file.
27378         * modules/unicase/u32-is-casefolded: New file.
27379
27380         New module 'unicase/u16-is-casefolded'.
27381         * lib/unicase/u16-is-casefolded.c: New file.
27382         * modules/unicase/u16-is-casefolded: New file.
27383
27384         New module 'unicase/u8-is-casefolded'.
27385         * lib/unicase/u8-is-casefolded.c: New file.
27386         * modules/unicase/u8-is-casefolded: New file.
27387
27388         Tests for module 'unicase/u32-is-titlecase'.
27389         * modules/unicase/u32-is-titlecase-tests: New file.
27390         * tests/unicase/test-u32-is-titlecase.c: New file.
27391
27392         Tests for module 'unicase/u16-is-titlecase'.
27393         * modules/unicase/u16-is-titlecase-tests: New file.
27394         * tests/unicase/test-u16-is-titlecase.c: New file.
27395
27396         Tests for module 'unicase/u8-is-titlecase'.
27397         * modules/unicase/u8-is-titlecase-tests: New file.
27398         * tests/unicase/test-u8-is-titlecase.c: New file.
27399         * tests/unicase/test-is-titlecase.h: New file.
27400
27401         New module 'unicase/u32-is-titlecase'.
27402         * lib/unicase/u32-is-titlecase.c: New file.
27403         * modules/unicase/u32-is-titlecase: New file.
27404
27405         New module 'unicase/u16-is-titlecase'.
27406         * lib/unicase/u16-is-titlecase.c: New file.
27407         * modules/unicase/u16-is-titlecase: New file.
27408
27409         New module 'unicase/u8-is-titlecase'.
27410         * lib/unicase/u8-is-titlecase.c: New file.
27411         * modules/unicase/u8-is-titlecase: New file.
27412
27413         Tests for module 'unicase/u32-is-lowercase'.
27414         * modules/unicase/u32-is-lowercase-tests: New file.
27415         * tests/unicase/test-u32-is-lowercase.c: New file.
27416
27417         Tests for module 'unicase/u16-is-lowercase'.
27418         * modules/unicase/u16-is-lowercase-tests: New file.
27419         * tests/unicase/test-u16-is-lowercase.c: New file.
27420
27421         Tests for module 'unicase/u8-is-lowercase'.
27422         * modules/unicase/u8-is-lowercase-tests: New file.
27423         * tests/unicase/test-u8-is-lowercase.c: New file.
27424         * tests/unicase/test-is-lowercase.h: New file.
27425
27426         New module 'unicase/u32-is-lowercase'.
27427         * lib/unicase/u32-is-lowercase.c: New file.
27428         * modules/unicase/u32-is-lowercase: New file.
27429
27430         New module 'unicase/u16-is-lowercase'.
27431         * lib/unicase/u16-is-lowercase.c: New file.
27432         * modules/unicase/u16-is-lowercase: New file.
27433
27434         New module 'unicase/u8-is-lowercase'.
27435         * lib/unicase/u8-is-lowercase.c: New file.
27436         * modules/unicase/u8-is-lowercase: New file.
27437
27438         Tests for module 'unicase/u32-is-uppercase'.
27439         * modules/unicase/u32-is-uppercase-tests: New file.
27440         * tests/unicase/test-u32-is-uppercase.c: New file.
27441
27442         Tests for module 'unicase/u16-is-uppercase'.
27443         * modules/unicase/u16-is-uppercase-tests: New file.
27444         * tests/unicase/test-u16-is-uppercase.c: New file.
27445
27446         Tests for module 'unicase/u8-is-uppercase'.
27447         * modules/unicase/u8-is-uppercase-tests: New file.
27448         * tests/unicase/test-u8-is-uppercase.c: New file.
27449         * tests/unicase/test-is-uppercase.h: New file.
27450
27451         New module 'unicase/u32-is-uppercase'.
27452         * lib/unicase/u32-is-uppercase.c: New file.
27453         * modules/unicase/u32-is-uppercase: New file.
27454
27455         New module 'unicase/u16-is-uppercase'.
27456         * lib/unicase/u16-is-uppercase.c: New file.
27457         * modules/unicase/u16-is-uppercase: New file.
27458
27459         New module 'unicase/u8-is-uppercase'.
27460         * lib/unicase/u8-is-uppercase.c: New file.
27461         * modules/unicase/u8-is-uppercase: New file.
27462
27463         New module 'unicase/u32-is-invariant'.
27464         * lib/unicase/u32-is-invariant.c: New file.
27465         * modules/unicase/u32-is-invariant: New file.
27466
27467         New module 'unicase/u16-is-invariant'.
27468         * lib/unicase/u16-is-invariant.c: New file.
27469         * modules/unicase/u16-is-invariant: New file.
27470
27471         New module 'unicase/u8-is-invariant'.
27472         * lib/unicase/u8-is-invariant.c: New file.
27473         * lib/unicase/invariant.h: New file.
27474         * lib/unicase/u-is-invariant.h: New file.
27475         * modules/unicase/u8-is-invariant: New file.
27476
27477         Tests for module 'unicase/u32-casecoll'.
27478         * modules/unicase/u32-casecoll-tests: New file.
27479         * tests/unicase/test-u32-casecoll.c: New file.
27480
27481         Tests for module 'unicase/u16-casecoll'.
27482         * modules/unicase/u16-casecoll-tests: New file.
27483         * tests/unicase/test-u16-casecoll.c: New file.
27484
27485         Tests for module 'unicase/u8-casecoll'.
27486         * modules/unicase/u8-casecoll-tests: New file.
27487         * tests/unicase/test-u8-casecoll.c: New file.
27488
27489         New module 'unicase/u32-casecoll'.
27490         * lib/unicase/u32-casecoll.c: New file.
27491         * modules/unicase/u32-casecoll: New file.
27492
27493         New module 'unicase/u16-casecoll'.
27494         * lib/unicase/u16-casecoll.c: New file.
27495         * modules/unicase/u16-casecoll: New file.
27496
27497         New module 'unicase/u8-casecoll'.
27498         * lib/unicase/u8-casecoll.c: New file.
27499         * lib/unicase/u-casecoll.h: New file.
27500         * modules/unicase/u8-casecoll: New file.
27501
27502         New module 'unicase/u32-casexfrm'.
27503         * lib/unicase/u32-casexfrm.c: New file.
27504         * modules/unicase/u32-casexfrm: New file.
27505
27506         New module 'unicase/u16-casexfrm'.
27507         * lib/unicase/u16-casexfrm.c: New file.
27508         * modules/unicase/u16-casexfrm: New file.
27509
27510         New module 'unicase/u8-casexfrm'.
27511         * lib/unicase/u8-casexfrm.c: New file.
27512         * lib/unicase/u-casexfrm.h: New file.
27513         * modules/unicase/u8-casexfrm: New file.
27514
27515         Tests for module 'unicase/u32-casecmp'.
27516         * modules/unicase/u32-casecmp-tests: New file.
27517         * tests/unicase/test-u32-casecmp.c: New file.
27518
27519         Tests for module 'unicase/u16-casecmp'.
27520         * modules/unicase/u16-casecmp-tests: New file.
27521         * tests/unicase/test-u16-casecmp.c: New file.
27522
27523         Tests for module 'unicase/u8-casecmp'.
27524         * modules/unicase/u8-casecmp-tests: New file.
27525         * tests/unicase/test-u8-casecmp.c: New file.
27526         * tests/unicase/test-casecmp.h: New file.
27527
27528         New module 'unicase/u32-casecmp'.
27529         * lib/unicase/u32-casecmp.c: New file.
27530         * modules/unicase/u32-casecmp: New file.
27531
27532         New module 'unicase/u16-casecmp'.
27533         * lib/unicase/u16-casecmp.c: New file.
27534         * modules/unicase/u16-casecmp: New file.
27535
27536         New module 'unicase/u8-casecmp'.
27537         * lib/unicase/u8-casecmp.c: New file.
27538         * lib/unicase/u-casecmp.h: New file.
27539         * modules/unicase/u8-casecmp: New file.
27540
27541         Tests for module 'unicase/u32-casefold'.
27542         * modules/unicase/u32-casefold-tests: New file.
27543         * tests/unicase/test-u32-casefold.c: New file.
27544
27545         Tests for module 'unicase/u16-casefold'.
27546         * modules/unicase/u16-casefold-tests: New file.
27547         * tests/unicase/test-u16-casefold.c: New file.
27548
27549         Tests for module 'unicase/u8-casefold'.
27550         * modules/unicase/u8-casefold-tests: New file.
27551         * tests/unicase/test-u8-casefold.c: New file.
27552
27553         New module 'unicase/u32-casefold'.
27554         * lib/unicase/u32-casefold.c: New file.
27555         * modules/unicase/u32-casefold: New file.
27556
27557         New module 'unicase/u16-casefold'.
27558         * lib/unicase/u16-casefold.c: New file.
27559         * modules/unicase/u16-casefold: New file.
27560
27561         New module 'unicase/u8-casefold'.
27562         * lib/unicase/u8-casefold.c: New file.
27563         * lib/unicase/u-casefold.h: New file.
27564         * modules/unicase/u8-casefold: New file.
27565
27566         New module 'unicase/tocasefold'.
27567         * lib/unicase/casefold.h: New file.
27568         * lib/unicase/tocasefold.c: New file.
27569         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
27570         * modules/unicase/tocasefold: New file.
27571
27572         Tests for module 'unicase/u32-totitle'.
27573         * modules/unicase/u32-totitle-tests: New file.
27574         * tests/unicase/test-u32-totitle.c: New file.
27575
27576         Tests for module 'unicase/u16-totitle'.
27577         * modules/unicase/u16-totitle-tests: New file.
27578         * tests/unicase/test-u16-totitle.c: New file.
27579
27580         Tests for module 'unicase/u8-totitle'.
27581         * modules/unicase/u8-totitle-tests: New file.
27582         * tests/unicase/test-u8-totitle.c: New file.
27583
27584         New module 'unicase/u32-totitle'.
27585         * lib/unicase/u32-totitle.c: New file.
27586         * modules/unicase/u32-totitle: New file.
27587
27588         New module 'unicase/u16-totitle'.
27589         * lib/unicase/u16-totitle.c: New file.
27590         * modules/unicase/u16-totitle: New file.
27591
27592         New module 'unicase/u8-totitle'.
27593         * lib/unicase/u8-totitle.c: New file.
27594         * lib/unicase/u-totitle.h: New file.
27595         * modules/unicase/u8-totitle: New file.
27596
27597         Tests for module 'unicase/u32-tolower'.
27598         * modules/unicase/u32-tolower-tests: New file.
27599         * tests/unicase/test-u32-tolower.c: New file.
27600
27601         Tests for module 'unicase/u16-tolower'.
27602         * modules/unicase/u16-tolower-tests: New file.
27603         * tests/unicase/test-u16-tolower.c: New file.
27604
27605         Tests for module 'unicase/u8-tolower'.
27606         * modules/unicase/u8-tolower-tests: New file.
27607         * tests/unicase/test-u8-tolower.c: New file.
27608
27609         New module 'unicase/u32-tolower'.
27610         * lib/unicase/u32-tolower.c: New file.
27611         * modules/unicase/u32-tolower: New file.
27612
27613         New module 'unicase/u16-tolower'.
27614         * lib/unicase/u16-tolower.c: New file.
27615         * modules/unicase/u16-tolower: New file.
27616
27617         New module 'unicase/u8-tolower'.
27618         * lib/unicase/u8-tolower.c: New file.
27619         * modules/unicase/u8-tolower: New file.
27620
27621         Tests for module 'unicase/u32-toupper'.
27622         * modules/unicase/u32-toupper-tests: New file.
27623         * tests/unicase/test-u32-toupper.c: New file.
27624
27625         Tests for module 'unicase/u16-toupper'.
27626         * modules/unicase/u16-toupper-tests: New file.
27627         * tests/unicase/test-u16-toupper.c: New file.
27628
27629         Tests for module 'unicase/u8-toupper'.
27630         * modules/unicase/u8-toupper-tests: New file.
27631         * tests/unicase/test-u8-toupper.c: New file.
27632
27633         New module 'unicase/u32-toupper'.
27634         * lib/unicase/u32-toupper.c: New file.
27635         * modules/unicase/u32-toupper: New file.
27636
27637         New module 'unicase/u16-toupper'.
27638         * lib/unicase/u16-toupper.c: New file.
27639         * modules/unicase/u16-toupper: New file.
27640
27641         New module 'unicase/u8-toupper'.
27642         * lib/unicase/u8-toupper.c: New file.
27643         * modules/unicase/u8-toupper: New file.
27644
27645         New module 'unicase/u32-casemap'.
27646         * lib/unicase/u32-casemap.c: New file.
27647         * modules/unicase/u32-casemap: New file.
27648
27649         New module 'unicase/u16-casemap'.
27650         * lib/unicase/u16-casemap.c: New file.
27651         * modules/unicase/u16-casemap: New file.
27652
27653         New module 'unicase/u8-casemap'.
27654         * lib/unicase/unicasemap.h: New file.
27655         * lib/unicase/u8-casemap.c: New file.
27656         * lib/unicase/u-casemap.h: New file.
27657         * modules/unicase/u8-casemap: New file.
27658
27659         New module 'unicase/special-casing'.
27660         * lib/unicase/special-casing.h: New file.
27661         * lib/unicase/special-casing.c: New file.
27662         * lib/unicase/special-casing-table.gperf: New file, generated by
27663         gen-uni-tables.c.
27664         * modules/unicase/special-casing: New file.
27665
27666         Tests for module 'unicase/locale-language'.
27667         * modules/unicase/locale-language-tests: New file.
27668         * tests/unicase/test-locale-language.sh: New file.
27669         * tests/unicase/test-locale-language.c: New file.
27670
27671         New module 'unicase/locale-language'.
27672         * lib/unicase/locale-language.c: New file.
27673         * lib/unicase/locale-languages.gperf: New file.
27674         * modules/unicase/locale-language: New file.
27675
27676         Generate more tables for case conversion and case folding.
27677         * lib/gen-uni-tables.c (SCC_*): New enum items.
27678         (struct special_casing_rule): New type.
27679         (casing_rules, num_casing_rules, allocated_casing_rules): New
27680         variables.
27681         (add_casing_rule, fill_casing_rules): New functions.
27682         (struct casefold_rule): New type.
27683         (casefolding_rules, num_casefolding_rules,
27684         allocated_casefolding_rules): New variables.
27685         (fill_casefolding_rules): New function.
27686         (unicode_casefold): New variable.
27687         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
27688         sort_casing_rules, output_casing_rules): New functions.
27689         (main): Accept to more arguments: SpecialCasing.txt and
27690         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
27691         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
27692         Output mapping for casefolding.
27693
27694         * lib/unicase.h: Include stdbool.h, uninorm.h.
27695         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
27696         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
27697         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
27698         arguments.
27699         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
27700         resultp arguments.
27701         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
27702         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
27703         resultp arguments.
27704         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
27705         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
27706         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
27707         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
27708         declarations.
27709         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
27710
27711 2009-03-08  Bruno Haible  <bruno@clisp.org>
27712
27713         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27714         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
27715         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
27716         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27717
27718 2009-03-07  Bruno Haible  <bruno@clisp.org>
27719
27720         Adjust u*_normcmp, u*_normcoll API.
27721         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27722         u16_normcoll, u32_normcoll): Change failure conventions.
27723         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
27724         errno and return -1.
27725         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27726
27727 2009-03-07  Bruno Haible  <bruno@clisp.org>
27728
27729         Tests for module 'uninorm/u32-normcoll'.
27730         * modules/uninorm/u32-normcoll-tests: New file.
27731         * tests/uninorm/test-u32-normcoll.c: New file.
27732
27733         Tests for module 'uninorm/u16-normcoll'.
27734         * modules/uninorm/u16-normcoll-tests: New file.
27735         * tests/uninorm/test-u16-normcoll.c: New file.
27736
27737         Tests for module 'uninorm/u8-normcoll'.
27738         * modules/uninorm/u8-normcoll-tests: New file.
27739         * tests/uninorm/test-u8-normcoll.c: New file.
27740
27741 2009-03-07  Bruno Haible  <bruno@clisp.org>
27742
27743         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
27744         tests/uninorm/test-u32-normcmp.c.
27745         * tests/uninorm/test-u32-normcmp.c: Include it.
27746         (test_nonascii): New function, extracted from main. Add some more
27747         tests.
27748         (main): Invoke test_ascii and test_nonascii.
27749         * modules/uninorm/u32-normcmp-tests (Files): Add
27750         tests/uninorm/test-u32-normcmp.h.
27751         (Depends-on): Remove uninorm/u32-normcmp.
27752
27753         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
27754         tests/uninorm/test-u16-normcmp.c.
27755         * tests/uninorm/test-u16-normcmp.c: Include it.
27756         (test_nonascii): New function, extracted from main. Add some more
27757         tests.
27758         (main): Invoke test_ascii and test_nonascii.
27759         * modules/uninorm/u16-normcmp-tests (Files): Add
27760         tests/uninorm/test-u16-normcmp.h.
27761         (Depends-on): Remove uninorm/u16-normcmp.
27762
27763         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
27764         tests/uninorm/test-u8-normcmp.c.
27765         * tests/uninorm/test-u8-normcmp.c: Include it.
27766         (test_nonascii): New function, extracted from main. Add some more
27767         tests.
27768         (main): Invoke test_ascii and test_nonascii.
27769         * modules/uninorm/u8-normcmp-tests (Files): Add
27770         tests/uninorm/test-u8-normcmp.h.
27771         (Depends-on): Remove uninorm/u8-normcmp.
27772
27773 2009-03-07  Bruno Haible  <bruno@clisp.org>
27774
27775         New module 'uninorm/u32-normcoll'.
27776         * lib/uninorm/u32-normcoll.c: New file.
27777         * modules/uninorm/u32-normcoll: New file.
27778
27779         New module 'uninorm/u16-normcoll'.
27780         * lib/uninorm/u16-normcoll.c: New file.
27781         * modules/uninorm/u16-normcoll: New file.
27782
27783         New module 'uninorm/u8-normcoll'.
27784         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27785         declarations.
27786         * lib/uninorm/u8-normcoll.c: New file.
27787         * lib/uninorm/u-normcoll.h: New file.
27788         * modules/uninorm/u8-normcoll: New file.
27789
27790         New module 'uninorm/u32-normxfrm'.
27791         * lib/uninorm/u32-normxfrm.c: New file.
27792         * modules/uninorm/u32-normxfrm: New file.
27793
27794         New module 'uninorm/u16-normxfrm'.
27795         * lib/uninorm/u16-normxfrm.c: New file.
27796         * modules/uninorm/u16-normxfrm: New file.
27797
27798         New module 'uninorm/u8-normxfrm'.
27799         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27800         declarations.
27801         * lib/uninorm/u8-normxfrm.c: New file.
27802         * lib/uninorm/u-normxfrm.h: New file.
27803         * modules/uninorm/u8-normxfrm: New file.
27804
27805 2009-03-07  Bruno Haible  <bruno@clisp.org>
27806
27807         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27808         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27809         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27810
27811 2009-03-07  Bruno Haible  <bruno@clisp.org>
27812
27813         New module 'memxfrm'.
27814         * lib/memxfrm.h: New file.
27815         * lib/memxfrm.c: New file.
27816         * modules/memxfrm: New file.
27817
27818 2009-03-07  Bruno Haible  <bruno@clisp.org>
27819
27820         New module 'memcmp2'.
27821         * lib/memcmp2.h: New file.
27822         * lib/memcmp2.c: New file.
27823         * modules/memcmp2: New file.
27824
27825 2009-03-07  Bruno Haible  <bruno@clisp.org>
27826
27827         Tests for module 'uninorm/decomposing-form'.
27828         * modules/uninorm/decomposing-form-tests: New file.
27829         * tests/uninorm/test-decomposing-form.c: New file.
27830
27831         New module 'uninorm/decomposing-form'.
27832         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
27833         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
27834         Add 'decomposing_variant' field.
27835         * lib/uninorm/decomposing-form.c: New file.
27836         * lib/uninorm/nfc.c (uninorm_nfc): Update.
27837         * lib/uninorm/nfd.c (uninorm_nfd): Update.
27838         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
27839         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
27840         * modules/uninorm/decomposing-form: New file.
27841         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
27842         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
27843
27844 2009-03-07  Bruno Haible  <bruno@clisp.org>
27845
27846         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
27847         strings.
27848
27849 2009-03-06  Bruno Haible  <bruno@clisp.org>
27850
27851         Tests for module 'uninorm/u32-normcmp'.
27852         * tests/uninorm/test-u32-normcmp.c: New file.
27853         * modules/uninorm/u32-normcmp-tests: New file.
27854
27855         Tests for module 'uninorm/u16-normcmp'.
27856         * tests/uninorm/test-u16-normcmp.c: New file.
27857         * modules/uninorm/u16-normcmp-tests: New file.
27858
27859         Tests for module 'uninorm/u8-normcmp'.
27860         * tests/uninorm/test-u8-normcmp.c: New file.
27861         * modules/uninorm/u8-normcmp-tests: New file.
27862
27863         New module 'uninorm/u32-normcmp'.
27864         * lib/uninorm/u32-normcmp.c: New file.
27865         * modules/uninorm/u32-normcmp: New file.
27866
27867         New module 'uninorm/u16-normcmp'.
27868         * lib/uninorm/u16-normcmp.c: New file.
27869         * modules/uninorm/u16-normcmp: New file.
27870
27871         New module 'uninorm/u8-normcmp'.
27872         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
27873         declarations.
27874         * lib/uninorm/u8-normcmp.c: New file.
27875         * lib/uninorm/u-normcmp.h: New file.
27876         * modules/uninorm/u8-normcmp: New file.
27877
27878 2009-03-06  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
27881         Reported by Eric Blake.
27882
27883 2009-03-06  Eric Blake  <ebb9@byu.net>
27884             Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
27887         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
27888         condition.
27889         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27890         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
27891         condition.
27892         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27893
27894 2009-03-06  Eric Blake  <ebb9@byu.net>
27895
27896         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
27897         to avoid compiler warnings.
27898         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
27899
27900 2009-03-05  Bruno Haible  <bruno@clisp.org>
27901
27902         * tests/test-ftell.c (main): Disable test beyond end of file on
27903         FreeMiNT.
27904         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27905
27906 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
27907
27908         * lib/filevercmp.c: Move hidden files up in ordering.
27909         * tests/test-filevercmp.c: Add tests for hidden files.
27910
27911 2009-03-04  Bruno Haible  <bruno@clisp.org>
27912
27913         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
27914         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
27915         AM_CFLAGS.
27916         Reported by Simon Josefsson.
27917
27918 2009-03-03  Bruno Haible  <bruno@clisp.org>
27919
27920         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
27921         Reported by Simon Josefsson.
27922
27923         * doc/ld-version-script.texi: Update node reference.
27924
27925 2009-03-03  Bruno Haible  <bruno@clisp.org>
27926
27927         * modules/visibility (License): Change to 'unlimited'.
27928         Suggested by Simon Josefsson.
27929
27930 2009-03-03  Jim Meyering  <meyering@redhat.com>
27931
27932         unlinkdir: cannot_unlink_dir may modify process state
27933         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
27934         it's neither thread-safe nor appropriate for use in a library.
27935
27936 2009-03-03  Eric Blake  <ebb9@byu.net>
27937
27938         test-closein: silence test under Darwin
27939         * tests/test-closein.sh: Ignore stderr from cat, since we don't
27940         care if it dies from EPIPE or EBADF.
27941
27942 2009-03-03  Bruno Haible  <bruno@clisp.org>
27943
27944         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
27945         earlier.
27946         * doc/visibility.texi: Fix @node and @section.
27947
27948 2009-03-03  Simon Josefsson  <simon@josefsson.org>
27949
27950         * doc/gnulib.texi: Link to sections for ld version script and
27951         visibility.
27952         * doc/visibility.texi: Add @node and @section.
27953         * modules/ld-version-script: New module.
27954         * m4/ld-version-script.m4: New file.
27955         * doc/ld-version-script.texi: New file.
27956
27957 2009-03-02  David Lutterkort  <lutter@redhat.com>
27958
27959         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
27960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27961
27962 2009-03-02  Bruno Haible  <bruno@clisp.org>
27963
27964         * doc/visibility.texi: Mention libtool's -export-symbols option.
27965
27966 2009-03-02  Jim Meyering  <meyering@redhat.com>
27967
27968         announce-gen: new option: --no-print-checksums
27969         * build-aux/announce-gen (usage): Describe it.
27970         (print_checksums): Print a newline here, not in the [*] footnote.
27971         (main): Honor it.
27972
27973 2009-03-01  Bruno Haible  <bruno@clisp.org>
27974
27975         Use socklen_t in the native Windows replacements prototypes.
27976         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
27977         instead of 'int'.
27978         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27979         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27980         * modules/getsockopt (Depends-on): Add socklen.
27981         * modules/setsockopt (Depends-on): Add socklen.
27982
27983 2009-03-01  Bruno Haible  <bruno@clisp.org>
27984
27985         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
27986         least 4.2.
27987
27988 2009-03-01  Eric Blake  <ebb9@byu.net>
27989             Bruno Haible  <bruno@clisp.org>
27990
27991         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
27992         error messages.
27993         * lib/wait-process.c (wait_subprocess): Omit error message about
27994         deadly signal sent to the child of termsigp != NULL.
27995
27996 2009-03-01  Eric Blake  <ebb9@byu.net>
27997
27998         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
27999
28000 2009-03-01  Bruno Haible  <bruno@clisp.org>
28001
28002         Avoid a gcc warning.
28003         * tests/test-sched.c (b): Make global.
28004         Reported by Eric Blake.
28005
28006 2009-01-19  Martin Lambers  <marlam@marlam.de>
28007
28008         Provide POSIX semantics for socket timeout options on W32.
28009         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28010         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28011         * modules/setsockopt: Depend on sys_time module for struct timeval.
28012         * modules/getsockopt: Depend on sys_time module for struct timeval.
28013
28014 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28015
28016         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28017         __USE_GNU, for consistency with netdb.in.h.
28018         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28019
28020 2009-03-01  Bruno Haible  <bruno@clisp.org>
28021
28022         More support for FreeMiNT.
28023         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28024         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28025
28026 2009-03-01  Bruno Haible  <bruno@clisp.org>
28027
28028         More support for FreeMiNT.
28029         * lib/fpurge.c (fpurge): Correct last commit.
28030         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28031
28032 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28033
28034         Fix unportable awk script in vc-list-files.
28035         * build-aux/vc-list-files: In the replacement awk script, use
28036         substr with a second argument of 1, not zero.
28037         Report by Simon Josefsson.
28038
28039 2009-02-28  Bruno Haible  <bruno@clisp.org>
28040
28041         More support for FreeMiNT.
28042         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28043         to FreeMiNT today.
28044         * lib/fwriting.c (fwriting): Likewise.
28045         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28046
28047 2009-02-28  Bruno Haible  <bruno@clisp.org>
28048
28049         * tests/test-freadseek.c (main): Disable test beyond end of file on
28050         FreeMiNT.
28051         * tests/test-ftello.c (main): Likewise.
28052         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28053
28054 2009-02-28  Bruno Haible  <bruno@clisp.org>
28055
28056         Add tentative support for FreeMiNT.
28057         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28058         * lib/fpurge.c (fpurge): Likewise.
28059         * lib/freadable.c (freadable): Likewise.
28060         * lib/freading.c (freading): Likewise.
28061         * lib/freadptr.c (freadptr): Likewise.
28062         * lib/freadseek.c (freadptrinc): Likewise.
28063         * lib/fseeko.c (rpl_fseeko): Likewise.
28064         * lib/fseterr.c (fseterr): Likewise.
28065         * lib/fwritable.c (fwritable): Likewise.
28066         * lib/fwriting.c (fwriting): Likewise.
28067         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28068         Hourihane.
28069         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28070
28071 2009-02-28  Bruno Haible  <bruno@clisp.org>
28072
28073         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28074         SIGCHLD.
28075         Reported by Jim Meyering.
28076
28077 2009-02-28  Bruno Haible  <bruno@clisp.org>
28078
28079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28080         Mention the results of these tests on various platforms.
28081         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28082         order.
28083         * doc/posix-functions/printf.texi: Likewise.
28084         * doc/posix-functions/snprintf.texi: Likewise.
28085         * doc/posix-functions/sprintf.texi: Likewise.
28086         * doc/posix-functions/vfprintf.texi: Likewise.
28087         * doc/posix-functions/vprintf.texi: Likewise.
28088         * doc/posix-functions/vsnprintf.texi: Likewise.
28089         * doc/posix-functions/vsprintf.texi: Likewise.
28090         * doc/glibc-functions/obstack_printf.texi: Likewise.
28091         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28092
28093 2009-02-28  Bruno Haible  <bruno@clisp.org>
28094
28095         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28096         Reported by Loïc Minier <lool@dooz.org>.
28097
28098 2009-02-27  Bruno Haible  <bruno@clisp.org>
28099
28100         * gnulib-tool (func_import): Make the sed expression used to create the
28101         sed script for updating the .gitignore file POSIX compliant.
28102         Reported by Eric Blake.
28103
28104 2009-02-27  Bruno Haible  <bruno@clisp.org>
28105
28106         * gnulib-tool (sed): Don't alias as "sed --posix".
28107         Reported by Eric Blake.
28108
28109 2009-02-27  Bruno Haible  <bruno@clisp.org>
28110
28111         Avoid test link errors.
28112         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28113         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28114         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28115         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28117
28118 2009-02-27  Bruno Haible  <bruno@clisp.org>
28119
28120         Avoid spurious "(cached)" in configure output.
28121         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28122         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28123         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28124         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28125         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28126         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28127         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28128         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28129         Reported by Eric Blake.
28130
28131 2009-02-27  Eric Blake  <ebb9@byu.net>
28132
28133         printf: fix regression in previous patch
28134         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28135
28136 2009-02-27  Bruno Haible  <bruno@clisp.org>
28137
28138         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28139         value.
28140         * lib/stdint.in.h: Likewise.
28141         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28142
28143 2009-02-27  Eric Blake  <ebb9@byu.net>
28144
28145         doc: mention more functions added in cygwin 1.7.0
28146         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28147         addition.
28148         * doc/posix-functions/open_wmemstream.texi: Likewise.
28149         * doc/posix-functions/wcsnlen.texi: Likewise.
28150         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28151         * doc/posix-functions/wcstod.texi: Likewise.
28152         * doc/posix-functions/wcstof.texi: Likewise.
28153         * doc/posix-functions/wcstoimax.texi: Likewise.
28154         * doc/posix-functions/wcstok.texi: Likewise.
28155         * doc/posix-functions/wcstoumax.texi: Likewise.
28156
28157         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28159         * doc/posix-functions/fprintf.texi: Update.
28160         * doc/posix-functions/printf.texi: Update.
28161         * doc/posix-functions/snprintf.texi: Update.
28162         * doc/posix-functions/sprintf.texi: Update.
28163         * doc/posix-functions/vfprintf.texi: Update.
28164         * doc/posix-functions/vprintf.texi: Update.
28165         * doc/posix-functions/vsnprintf.texi: Update.
28166         * doc/posix-functions/vsprintf.texi: Update.
28167         * doc/glibc-functions/obstack_printf.texi: Update.
28168         * doc/glibc-functions/obstack_vprintf.texi: Update.
28169
28170 2009-02-26  Eric Blake  <ebb9@byu.net>
28171
28172         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28173         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28174         compilation bug by using runtime conversion.
28175         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28176         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
28177         * modules/ceill-tests (Files): Use nan.h.
28178         * modules/floorl-tests (Files): Likewise.
28179         * modules/frexpl-tests (Files): Likewise.
28180         * modules/isnanl-tests (Files): Likewise.
28181         * modules/ldexpl-tests (Files): Likewise.
28182         * modules/roundl-tests (Files): Likewise.
28183         * modules/truncl-tests (Files): Likewise.
28184         * tests/test-ceill.c (main): Use a working NaN.
28185         * tests/test-floorl.c (main): Likewise.
28186         * tests/test-frexpl.c (main): Likewise.
28187         * tests/test-isnan.c (test_long_double): Likewise.
28188         * tests/test-isnanl.h (main): Likewise.
28189         * tests/test-ldexpl.h (main): Likewise.
28190         * tests/test-roundl.h (main): Likewise.
28191         * tests/test-truncl.h (main): Likewise.
28192         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
28193
28194 2009-02-26  Eric Blake  <ebb9@byu.net>
28195             Bruno Haible  <bruno@clisp.org>
28196
28197         Work around a *printf bug with %ls on Solaris.
28198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
28199         precision is specified, sprintf stops converting the wide string
28200         argument when the number of bytes that have been produced by this
28201         conversion equals or exceeds the precision.
28202         * doc/posix-functions/fprintf.texi: Update.
28203         * doc/posix-functions/printf.texi: Update.
28204         * doc/posix-functions/snprintf.texi: Update.
28205         * doc/posix-functions/sprintf.texi: Update.
28206         * doc/posix-functions/vfprintf.texi: Update.
28207         * doc/posix-functions/vprintf.texi: Update.
28208         * doc/posix-functions/vsnprintf.texi: Update.
28209         * doc/posix-functions/vsprintf.texi: Update.
28210         * doc/glibc-functions/obstack_printf.texi: Update.
28211         * doc/glibc-functions/obstack_vprintf.texi: Update.
28212
28213 2009-02-26  Eric Blake  <ebb9@byu.net>
28214
28215         stdlib: favor compiler check of random.h
28216         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
28217         to avoid an ObjC random.h installed by Swarm.
28218
28219 2009-02-26  Bruno Haible  <bruno@clisp.org>
28220
28221         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
28222         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
28223         Reported by Gary V. Vaughan <gary@gnu.org>.
28224
28225 2009-02-26  Bruno Haible  <bruno@clisp.org>
28226
28227         Fix *printf behaviour regarding the %ls directive.
28228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
28229         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
28230         NEED_PRINTF_DIRECTIVE_LS.
28231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
28232         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28234         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
28235         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
28236         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
28237         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28238         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28240         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28241         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28242         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
28243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28246         * doc/posix-functions/fprintf.texi: Update.
28247         * doc/posix-functions/printf.texi: Update.
28248         * doc/posix-functions/snprintf.texi: Update.
28249         * doc/posix-functions/sprintf.texi: Update.
28250         * doc/posix-functions/vfprintf.texi: Update.
28251         * doc/posix-functions/vprintf.texi: Update.
28252         * doc/posix-functions/vsnprintf.texi: Update.
28253         * doc/posix-functions/vsprintf.texi: Update.
28254         * doc/glibc-functions/obstack_printf.texi: Update.
28255         * doc/glibc-functions/obstack_vprintf.texi: Update.
28256         Reported by Eric Blake.
28257
28258 2009-02-25  Bruno Haible  <bruno@clisp.org>
28259
28260         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
28261         with known value.
28262         Reported by Gary V. Vaughan <gary@gnu.org>.
28263
28264 2009-02-25  Bruno Haible  <bruno@clisp.org>
28265
28266         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
28267         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
28268         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
28269         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
28270         Reported by Gary V. Vaughan <gary@gnu.org>.
28271
28272 2009-02-25  Bruno Haible  <bruno@clisp.org>
28273
28274         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
28275         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
28276         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
28277         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
28278         Reported by Gary V. Vaughan <gary@gnu.org>.
28279
28280 2009-02-25  Eric Blake  <ebb9@byu.net>
28281
28282         tests: skip fseek/ftell tests if ungetc is broken
28283         * m4/ungetc.m4: New file.
28284         * modules/fseek-tests: Split test, so ungetc dependency is
28285         separate from rest of test.
28286         * modules/fseeko-tests: Likewise.
28287         * modules/ftell-tests: Likewise.
28288         * modules/ftello-tests: Likewise.
28289         * tests/test-fseek.c (main): Isolate ungetc dependency.
28290         * tests/test-fseeko.c (main): Likewise.
28291         * tests/test-ftell.c (main): Likewise.
28292         * tests/test-ftello.c (main): Likewise.
28293         * tests/test-fseek2.sh: New file.
28294         * tests/test-fseeko2.sh: Likewise.
28295         * tests/test-ftell2.sh: Likewise.
28296         * tests/test-ftello2.sh: Likewise.
28297
28298 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
28299
28300         test-getaddrinfo: fix usage of skip return code 77
28301         * tests/test-gettaddrinfo.c: Return skip code 77 only
28302         for first occurance of skip (4x77 is not 77)
28303
28304 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
28305
28306         strtod: avoid C99 decl-after-statement
28307         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
28308
28309 2009-02-24  Eric Blake  <ebb9@byu.net>
28310
28311         strtod: detect HP-UX 11.31 bug
28312         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
28313         Reported by Gary V. Vaughan.
28314
28315 2009-02-23  Bruno Haible  <bruno@clisp.org>
28316
28317         Fix invalid read past end of memory block.
28318         * lib/vasnprintf.c (DCHAR_SET): Define.
28319         (local_wcslen): Define only when needed.
28320         (local_strnlen, local_wcsnlen): New functions.
28321         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
28322         directives that involve a conversion ourselves.
28323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
28324         wcsnlen, mbrtowc, wcrtomb.
28325         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
28326         * tests/test-vasprintf-posix.c (test_function): Likewise.
28327         * tests/test-snprintf-posix.h (test_function): Likewise.
28328         * tests/test-sprintf-posix.h (test_function): Likewise.
28329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28330
28331 2009-02-22  Bruno Haible  <bruno@clisp.org>
28332
28333         Implement new clarified decomposition of Hangul syllables.
28334         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
28335         of type LTV, return only a pairwise decomposition.
28336         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
28337         Likewise.
28338         * tests/uninorm/test-decomposition.c (main): Updated expected result.
28339         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
28340         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
28341
28342 2009-02-22  Bruno Haible  <bruno@clisp.org>
28343
28344         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
28345         zero-length results and shrink excess allocated memory.
28346         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
28347         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
28348         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
28349         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
28350         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
28351         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
28352         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
28353         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
28354         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
28355         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
28356         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
28357         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
28358
28359 2009-02-21  Bruno Haible  <bruno@clisp.org>
28360
28361         * doc/gnulib.texi: Include safe-alloc.texi earlier.
28362         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
28363         spaces after a period. Put a space between a macro name and its
28364         argument list. Trivial rewordings.
28365         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
28366         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
28367         (main): Return 0 explicitly.
28368
28369 2009-02-21  Bruno Haible  <bruno@clisp.org>
28370
28371         Tests for module 'uninorm/filter'.
28372         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
28373         * modules/uninorm/filter-tests: New file.
28374
28375         New module 'uninorm/filter'.
28376         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
28377         uninorm_filter_flush, uninorm_filter_free): New declarations.
28378         * lib/uninorm/uninorm-filter.c: New file.
28379         * modules/uninorm/filter: New file.
28380
28381 2009-02-21  Bruno Haible  <bruno@clisp.org>
28382
28383         Tests for module 'uninorm/nfkc'.
28384         * tests/uninorm/test-nfkc.c: New file.
28385         * tests/uninorm/test-u8-nfkc.c: New file.
28386         * tests/uninorm/test-u16-nfkc.c: New file.
28387         * tests/uninorm/test-u32-nfkc.c: New file.
28388         * tests/uninorm/test-u32-nfkc-big.sh: New file.
28389         * tests/uninorm/test-u32-nfkc-big.c: New file.
28390         * modules/uninorm/nfkc-tests: New file.
28391
28392         New module 'uninorm/nfkc'.
28393         * lib/uninorm/nfkc.c: New file.
28394         * modules/uninorm/nfkc: New file.
28395
28396         Tests for module 'uninorm/nfkd'.
28397         * tests/uninorm/test-nfkd.c: New file.
28398         * tests/uninorm/test-u8-nfkd.c: New file.
28399         * tests/uninorm/test-u16-nfkd.c: New file.
28400         * tests/uninorm/test-u32-nfkd.c: New file.
28401         * tests/uninorm/test-u32-nfkd-big.sh: New file.
28402         * tests/uninorm/test-u32-nfkd-big.c: New file.
28403         * modules/uninorm/nfkd-tests: New file.
28404
28405         New module 'uninorm/nfkd'.
28406         * lib/uninorm/nfkd.c: New file.
28407         * modules/uninorm/nfkd: New file.
28408
28409         Tests for module 'uninorm/nfc'.
28410         * tests/uninorm/test-nfc.c: New file.
28411         * tests/uninorm/test-u8-nfc.c: New file.
28412         * tests/uninorm/test-u16-nfc.c: New file.
28413         * tests/uninorm/test-u32-nfc.c: New file.
28414         * tests/uninorm/test-u32-nfc-big.sh: New file.
28415         * tests/uninorm/test-u32-nfc-big.c: New file.
28416         * modules/uninorm/nfc-tests: New file.
28417
28418         New module 'uninorm/nfc'.
28419         * lib/uninorm/nfc.c: New file.
28420         * modules/uninorm/nfc: New file.
28421
28422         Tests for module 'uninorm/nfd'.
28423         * tests/uninorm/test-nfd.c: New file.
28424         * tests/uninorm/test-u8-nfd.c: New file.
28425         * tests/uninorm/test-u16-nfd.c: New file.
28426         * tests/uninorm/test-u32-nfd.c: New file.
28427         * tests/uninorm/test-u32-nfd-big.sh: New file.
28428         * tests/uninorm/test-u32-nfd-big.c: New file.
28429         * tests/uninorm/test-u32-normalize-big.h: New file.
28430         * tests/uninorm/test-u32-normalize-big.c: New file.
28431         * tests/uninorm/NormalizationTest.txt: New file, created from
28432         Unicode 5.1.0 NormalizationTest.txt.
28433         * modules/uninorm/nfd-tests: New file.
28434
28435         New module 'uninorm/nfd'.
28436         * lib/uninorm/nfd.c: New file.
28437         * modules/uninorm/nfd: New file.
28438
28439         New module 'uninorm/u32-normalize'.
28440         * lib/uninorm/u32-normalize.c: New file.
28441         * modules/uninorm/u32-normalize: New file.
28442
28443         New module 'uninorm/u16-normalize'.
28444         * lib/uninorm/u16-normalize.c: New file.
28445         * modules/uninorm/u16-normalize: New file.
28446
28447         New module 'uninorm/u8-normalize'.
28448         * lib/uninorm/u8-normalize.c: New file.
28449         * lib/uninorm/normalize-internal.h: New file.
28450         * lib/uninorm/u-normalize-internal.h: New file.
28451         * modules/uninorm/u8-normalize: New file.
28452
28453         New module 'uninorm/decompose-internal'.
28454         * lib/uninorm/decompose-internal.c: New file.
28455         * modules/uninorm/decompose-internal: New file.
28456
28457         Tests for module 'uninorm/composition'.
28458         * tests/uninorm/test-composition.c: New file.
28459         * modules/uninorm/composition-tests: New file.
28460
28461         New module 'uninorm/composition'.
28462         * lib/uninorm/composition.c: New file.
28463         * lib/uninorm/composition-table.gperf: New file, generated by
28464         gen-uni-tables.
28465         * modules/uninorm/composition: New file.
28466
28467         Tests for module 'uninorm/compat-decomposition'.
28468         * tests/uninorm/test-compat-decomposition.c: New file.
28469         * modules/uninorm/compat-decomposition-tests: New file.
28470
28471         New module 'uninorm/compat-decomposition'.
28472         * lib/uninorm/decompose-internal.h: New file.
28473         * lib/uninorm/compat-decomposition.c: New file.
28474         * modules/uninorm/compat-decomposition: New file.
28475
28476         Tests for module 'uninorm/canonical-decomposition'.
28477         * tests/uninorm/test-canonical-decomposition.c: New file.
28478         * modules/uninorm/canonical-decomposition-tests: New file.
28479
28480         New module 'uninorm/canonical-decomposition'.
28481         * lib/uninorm/canonical-decomposition.c: New file.
28482         * modules/uninorm/canonical-decomposition: New file.
28483
28484         Tests for module 'uninorm/decomposition'.
28485         * tests/uninorm/test-decomposition.c: New file.
28486         * modules/uninorm/decomposition-tests: New file.
28487
28488         New module 'uninorm/decomposition'.
28489         * lib/uninorm/decomposition.c: New file.
28490         * modules/uninorm/decomposition: New file.
28491
28492         New module 'uninorm/decomposition-table'.
28493         * lib/uninorm/decomposition-table.h: New file.
28494         * lib/uninorm/decomposition-table.c: New file.
28495         * lib/uninorm/decomposition-table1.h: New file, generated by
28496         gen-uni-tables.
28497         * lib/uninorm/decomposition-table2.h: New file, generated by
28498         gen-uni-tables.
28499         * modules/uninorm/decomposition-table: New file.
28500
28501         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
28502         (UC_DECOMP_*): New enumeration items.
28503         (get_decomposition): New function.
28504         (struct decomp_table): New type.
28505         (output_decomposition, output_decomposition_tables): New functions.
28506         (unicode_composition_exclusions): New variable.
28507         (fill_composition_exclusions, debug_output_composition_tables): New
28508         functions.
28509         (main): Accept one more argument. Invoke fill_composition_exclusions.
28510         Output decomposition and composition tables.
28511
28512         New module 'uninorm/base'.
28513         * lib/uninorm.h: New file.
28514         * lib/unictype.h: Update comment.
28515         * modules/uninorm/base: New file.
28516
28517 2009-02-21  David Lutterkort  <lutter@redhat.com>
28518
28519         Tests for module 'safe-alloc'.
28520         * tests/test-safe-alloc.c: New file.
28521         * modules/safe-alloc-tests: New file.
28522
28523         New module 'safe-alloc'.
28524         * lib/safe-alloc.h: New file.
28525         * lib/safe-alloc.c: New file.
28526         * m4/safe-alloc.m4: New file.
28527         * modules/safe-alloc: New file.
28528         * doc/safe-alloc.texi: New file.
28529         * doc/gnulib.texi: Include it.
28530         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28531         safe-alloc.
28532
28533 2009-02-18  Bruno Haible  <bruno@clisp.org>
28534
28535         Fix link error on non-glibc systems.
28536         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
28537         variable.
28538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28539
28540 2009-02-18  Jim Meyering  <meyering@redhat.com>
28541
28542         fts: avoid used-uninitialized error due to recent change
28543         * lib/fts.c (fts_read): Guard uses of the new member,
28544         parent->fts_n_dirs_remaining, since it's not relevant for
28545         the parent of a directory specified on the command-line.
28546
28547 2009-02-17  James Youngman  <jay@gnu.org>
28548             Bruno Haible  <bruno@clisp.org>
28549
28550         * m4/include_next.m4: Reformulate comment.
28551
28552 2009-02-16  Jim Meyering  <meyering@redhat.com>
28553
28554         fts: add #if guards so that the fts_lgpl module still builds
28555         * lib/fts.c: Guard just-added hash-table-using parts with
28556         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
28557         Reported by Simon Josefsson.
28558
28559 2009-02-15  Bruno Haible  <bruno@clisp.org>
28560
28561         * modules/array-mergesort-tests: New file.
28562         * tests/test-array-mergesort.c: New file.
28563
28564         New module 'array-mergesort'.
28565         * modules/array-mergesort: New file.
28566         * lib/array-mergesort.h: New file.
28567
28568 2009-02-15  Bruno Haible  <bruno@clisp.org>
28569
28570         Fix 2009-02-07 commit.
28571         * lib/gen-uni-tables.c (output_predicate, output_category,
28572         output_combclass, output_bidi_category, output_decimal_digit,
28573         output_digit, output_numeric, output_mirror, output_scripts,
28574         output_ident_category, output_simple_mapping): Fix format directives.
28575         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
28576
28577 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
28578
28579         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
28580         fixes are available from IBM.
28581
28582 2009-02-13  Jim Meyering  <meyering@redhat.com>
28583
28584         fts: arrange not to stat non-directories in more cases
28585         This makes GNU find (when it doesn't need to stat each file)
28586         *much* more efficient at traversing reiserfs file systems.
28587         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
28588         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
28589         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
28590         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
28591         (leaf_optimization_applies): New function.
28592         (LCO_hash, LCO_compare): New helper functions.
28593         (link_count_optimize_ok): New function.
28594         (fts_stat): Initialize new member (if dir).
28595         (fts_read): Decrement parent's fts_n_dirs_remaining count if
28596         we've just stat'ed a directory.  Skip the stat call when possible.
28597         ---
28598         Note this AFS-related exchange:
28599         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
28600         and note find's pioctl call in find/fstype.c.
28601         But that is necessary only if you want to enable the
28602         optimization for AFS, and for now, I don't.
28603
28604         fts: move a function definition "up" (no semantic change)
28605         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
28606         "up" to precede upcoming use of a related function.
28607
28608 2009-02-11  Jim Meyering  <meyering@redhat.com>
28609
28610         fts: correct internal computation of nlinks (optimization-related)
28611         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
28612         whether the current entry is a directory, so don't test it.
28613
28614 2009-02-10  Bruno Haible  <bruno@clisp.org>
28615
28616         Tests for module 'uniwbrk/ulc-wordbreaks'.
28617         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
28618         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
28619         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
28620
28621         Tests for module 'uniwbrk/u32-wordbreaks'.
28622         * modules/uniwbrk/u32-wordbreaks-tests: New file.
28623         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
28624
28625         Tests for module 'uniwbrk/u16-wordbreaks'.
28626         * modules/uniwbrk/u16-wordbreaks-tests: New file.
28627         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
28628
28629         Tests for module 'uniwbrk/u8-wordbreaks'.
28630         * modules/uniwbrk/u8-wordbreaks-tests: New file.
28631         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
28632
28633 2009-02-10  Bruno Haible  <bruno@clisp.org>
28634
28635         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
28636         property.
28637         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
28638         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
28639         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
28640
28641 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28642
28643         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28644         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28645
28646 2009-02-10  Bruno Haible  <bruno@clisp.org>
28647
28648         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28649         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28650         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28651         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28652         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28653         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28654
28655 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28656
28657         * lib/sockets.h (gl_fd_to_handle): New function.
28658
28659         * tests/test-sockets.c: Call gl_fd_to_handle.
28660
28661 2009-02-09  Bruno Haible  <bruno@clisp.org>
28662
28663         * doc/havelib.texi: Document the conventions on bi-arch systems.
28664
28665 2009-02-08  Bruno Haible  <bruno@clisp.org>
28666
28667         Document the AC_LIB_LINKFLAGS macro.
28668         * doc/havelib.texi: New file, mostly written on 2005-05-24.
28669         * doc/gnulib.texi: Include it.
28670
28671 2009-02-08  Bruno Haible  <bruno@clisp.org>
28672
28673         Fix wrong order of sections, compared to TOC.
28674         * doc/gnulib.texi: Include relocatable-maint.texi after the
28675         "Regular expressions" node, not before.
28676
28677 2009-02-08  Bruno Haible  <bruno@clisp.org>
28678
28679         Tests for module 'unicase/totitle'.
28680         * modules/unicase/totitle-tests: New file.
28681
28682         Tests for module 'unicase/tolower'.
28683         * modules/unicase/tolower-tests: New file.
28684
28685         Tests for module 'unicase/toupper'.
28686         * modules/unicase/toupper-tests: New file.
28687         * tests/unicase/test-mapping-part1.h: New file.
28688         * tests/unicase/test-mapping-part2.h: New file.
28689
28690         New module 'unicase/totitle'.
28691         * modules/unicase/totitle: New file.
28692         * lib/unicase/totitle.c: New file.
28693
28694         New module 'unicase/tolower'.
28695         * modules/unicase/tolower: New file.
28696         * lib/unicase/tolower.c: New file.
28697
28698         New module 'unicase/toupper'.
28699         * modules/unicase/toupper: New file.
28700         * lib/unicase/toupper.c: New file.
28701         * lib/unicase/simple-mapping.h: New file.
28702
28703         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
28704         (mapping_table): New structure.
28705         (output_simple_mapping): New function.
28706         (main): Invoke output_simple_mapping_test and output_simple_mapping.
28707         * modules/gen-uni-tables (Description): Update.
28708         * lib/unicase/toupper.h: New file, automatically generated by
28709         gen-uni-tables.
28710         * lib/unicase/tolower.h: New file, automatically generated by
28711         gen-uni-tables.
28712         * lib/unicase/totitle.h: New file, automatically generated by
28713         gen-uni-tables.
28714         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
28715         gen-uni-tables.
28716         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
28717         gen-uni-tables.
28718         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
28719         gen-uni-tables.
28720
28721         New module 'unicase/base'.
28722         * modules/unicase/base: New file.
28723         * lib/unicase.h: New file.
28724
28725 2009-02-08  Bruno Haible  <bruno@clisp.org>
28726
28727         New module 'uniwbrk/ulc-wordbreaks'.
28728         * modules/uniwbrk/ulc-wordbreaks: New file.
28729         * lib/uniwbrk/ulc-wordbreaks.c: New file.
28730
28731         New module 'uniwbrk/u32-wordbreaks'.
28732         * modules/uniwbrk/u32-wordbreaks: New file.
28733         * lib/uniwbrk/u32-wordbreaks.c: New file.
28734
28735         New module 'uniwbrk/u16-wordbreaks'.
28736         * modules/uniwbrk/u16-wordbreaks: New file.
28737         * lib/uniwbrk/u16-wordbreaks.c: New file.
28738
28739         New module 'uniwbrk/u8-wordbreaks'.
28740         * modules/uniwbrk/u8-wordbreaks: New file.
28741         * lib/uniwbrk/u8-wordbreaks.c: New file.
28742         * lib/uniwbrk/u-wordbreaks.h: New file.
28743
28744         New module 'uniwbrk/table'.
28745         * modules/uniwbrk/table: New file.
28746         * lib/uniwbrk/wbrktable.h: New file.
28747         * lib/uniwbrk/wbrktable.c: New file.
28748
28749         New module 'uniwbrk/wordbreak-property'.
28750         * modules/uniwbrk/wordbreak-property: New file.
28751         * lib/uniwbrk/wordbreak-property.c: New file.
28752
28753         * lib/gen-uni-tables.c (WBP_*): New enum items.
28754         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
28755         (unicode_org_wbp): New variable.
28756         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
28757         New functions.
28758         (wbp_table): New structure.
28759         (output_wbp, output_wbrk_tables): New functions.
28760         (main): Accept additional argument. Invoke fill_org_wbp,
28761         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
28762         output_wbrk_tables.
28763         * modules/gen-uni-tables (Description): Update.
28764         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
28765         gen-uni-tables.
28766
28767         New module 'uniwbrk/base'.
28768         * modules/uniwbrk/base: New file.
28769         * lib/uniwbrk.h: New file.
28770
28771 2009-02-08  Bruno Haible  <bruno@clisp.org>
28772
28773         Update to Unicode 5.1.0.
28774         * lib/gen-uni-tables.c (is_property_alphabetic): Include
28775         U+2185..U+2188.
28776         (is_property_default_ignorable_code_point): Don't include characters
28777         of category Cc or Cs and not-a-characters.
28778         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28779         U+0D79, U+109E, U+109F, U+A60C.
28780         * lib/unictype/bidi_of.h: Regenerated.
28781         * lib/unictype/blocks.h: Regenerated.
28782         * lib/unictype/categ_C.h: Regenerated.
28783         * lib/unictype/categ_Cf.h: Regenerated.
28784         * lib/unictype/categ_Cn.h: Regenerated.
28785         * lib/unictype/categ_L.h: Regenerated.
28786         * lib/unictype/categ_Ll.h: Regenerated.
28787         * lib/unictype/categ_Lm.h: Regenerated.
28788         * lib/unictype/categ_Lo.h: Regenerated.
28789         * lib/unictype/categ_Lu.h: Regenerated.
28790         * lib/unictype/categ_M.h: Regenerated.
28791         * lib/unictype/categ_Mc.h: Regenerated.
28792         * lib/unictype/categ_Me.h: Regenerated.
28793         * lib/unictype/categ_Mn.h: Regenerated.
28794         * lib/unictype/categ_N.h: Regenerated.
28795         * lib/unictype/categ_Nd.h: Regenerated.
28796         * lib/unictype/categ_Nl.h: Regenerated.
28797         * lib/unictype/categ_No.h: Regenerated.
28798         * lib/unictype/categ_P.h: Regenerated.
28799         * lib/unictype/categ_Pd.h: Regenerated.
28800         * lib/unictype/categ_Pe.h: Regenerated.
28801         * lib/unictype/categ_Pf.h: Regenerated.
28802         * lib/unictype/categ_Pi.h: Regenerated.
28803         * lib/unictype/categ_Po.h: Regenerated.
28804         * lib/unictype/categ_Ps.h: Regenerated.
28805         * lib/unictype/categ_S.h: Regenerated.
28806         * lib/unictype/categ_Sk.h: Regenerated.
28807         * lib/unictype/categ_Sm.h: Regenerated.
28808         * lib/unictype/categ_So.h: Regenerated.
28809         * lib/unictype/categ_of.h: Regenerated.
28810         * lib/unictype/combining.h: Regenerated.
28811         * lib/unictype/ctype_alnum.h: Regenerated.
28812         * lib/unictype/ctype_alpha.h: Regenerated.
28813         * lib/unictype/ctype_graph.h: Regenerated.
28814         * lib/unictype/ctype_lower.h: Regenerated.
28815         * lib/unictype/ctype_print.h: Regenerated.
28816         * lib/unictype/ctype_punct.h: Regenerated.
28817         * lib/unictype/ctype_upper.h: Regenerated.
28818         * lib/unictype/decdigit.h: Regenerated.
28819         * lib/unictype/digit.h: Regenerated.
28820         * lib/unictype/mirror.h: Regenerated.
28821         * lib/unictype/numeric.h: Regenerated.
28822         * lib/unictype/pr_alphabetic.h: Regenerated.
28823         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
28824         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
28825         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
28826         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
28827         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
28828         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
28829         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
28830         * lib/unictype/pr_combining.h: Regenerated.
28831         * lib/unictype/pr_dash.h: Regenerated.
28832         * lib/unictype/pr_decimal_digit.h: Regenerated.
28833         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
28834         * lib/unictype/pr_deprecated.h: Regenerated.
28835         * lib/unictype/pr_diacritic.h: Regenerated.
28836         * lib/unictype/pr_extender.h: Regenerated.
28837         * lib/unictype/pr_format_control.h: Regenerated.
28838         * lib/unictype/pr_grapheme_base.h: Regenerated.
28839         * lib/unictype/pr_grapheme_extend.h: Regenerated.
28840         * lib/unictype/pr_grapheme_link.h: Regenerated.
28841         * lib/unictype/pr_id_continue.h: Regenerated.
28842         * lib/unictype/pr_id_start.h: Regenerated.
28843         * lib/unictype/pr_ideographic.h: Regenerated.
28844         * lib/unictype/pr_ignorable_control.h: Regenerated.
28845         * lib/unictype/pr_lowercase.h: Regenerated.
28846         * lib/unictype/pr_math.h: Regenerated.
28847         * lib/unictype/pr_numeric.h: Regenerated.
28848         * lib/unictype/pr_other_alphabetic.h: Regenerated.
28849         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
28850         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
28851         * lib/unictype/pr_other_id_continue.h: Regenerated.
28852         * lib/unictype/pr_other_lowercase.h: Regenerated.
28853         * lib/unictype/pr_other_math.h: Regenerated.
28854         * lib/unictype/pr_punctuation.h: Regenerated.
28855         * lib/unictype/pr_sentence_terminal.h: Regenerated.
28856         * lib/unictype/pr_soft_dotted.h: Regenerated.
28857         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
28858         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
28859         * lib/unictype/pr_unified_ideograph.h: Regenerated.
28860         * lib/unictype/pr_uppercase.h: Regenerated.
28861         * lib/unictype/pr_xid_continue.h: Regenerated.
28862         * lib/unictype/pr_xid_start.h: Regenerated.
28863         * lib/unictype/pr_zero_width.h: Regenerated.
28864         * lib/unictype/scripts.h: Regenerated.
28865         * lib/unictype/scripts_byname.gperf: Regenerated.
28866         * lib/unictype/sy_java_ident.h: Regenerated.
28867         * lib/unilbrk/lbrkprop1.h: Regenerated.
28868         * lib/unilbrk/lbrkprop2.h: Regenerated.
28869         * tests/unictype/test-categ_C.c: Regenerated.
28870         * tests/unictype/test-categ_Cf.c: Regenerated.
28871         * tests/unictype/test-categ_Cn.c: Regenerated.
28872         * tests/unictype/test-categ_L.c: Regenerated.
28873         * tests/unictype/test-categ_Ll.c: Regenerated.
28874         * tests/unictype/test-categ_Lm.c: Regenerated.
28875         * tests/unictype/test-categ_Lo.c: Regenerated.
28876         * tests/unictype/test-categ_Lu.c: Regenerated.
28877         * tests/unictype/test-categ_M.c: Regenerated.
28878         * tests/unictype/test-categ_Mc.c: Regenerated.
28879         * tests/unictype/test-categ_Me.c: Regenerated.
28880         * tests/unictype/test-categ_Mn.c: Regenerated.
28881         * tests/unictype/test-categ_N.c: Regenerated.
28882         * tests/unictype/test-categ_Nd.c: Regenerated.
28883         * tests/unictype/test-categ_Nl.c: Regenerated.
28884         * tests/unictype/test-categ_No.c: Regenerated.
28885         * tests/unictype/test-categ_P.c: Regenerated.
28886         * tests/unictype/test-categ_Pd.c: Regenerated.
28887         * tests/unictype/test-categ_Pe.c: Regenerated.
28888         * tests/unictype/test-categ_Pf.c: Regenerated.
28889         * tests/unictype/test-categ_Pi.c: Regenerated.
28890         * tests/unictype/test-categ_Po.c: Regenerated.
28891         * tests/unictype/test-categ_Ps.c: Regenerated.
28892         * tests/unictype/test-categ_S.c: Regenerated.
28893         * tests/unictype/test-categ_Sk.c: Regenerated.
28894         * tests/unictype/test-categ_Sm.c: Regenerated.
28895         * tests/unictype/test-categ_So.c: Regenerated.
28896         * tests/unictype/test-ctype_alnum.c: Regenerated.
28897         * tests/unictype/test-ctype_alpha.c: Regenerated.
28898         * tests/unictype/test-ctype_graph.c: Regenerated.
28899         * tests/unictype/test-ctype_lower.c: Regenerated.
28900         * tests/unictype/test-ctype_print.c: Regenerated.
28901         * tests/unictype/test-ctype_punct.c: Regenerated.
28902         * tests/unictype/test-ctype_upper.c: Regenerated.
28903         * tests/unictype/test-decdigit.h: Regenerated.
28904         * tests/unictype/test-digit.h: Regenerated.
28905         * tests/unictype/test-numeric.h: Regenerated.
28906         * tests/unictype/test-pr_alphabetic.c: Regenerated.
28907         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
28908         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
28909         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
28910         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
28911         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
28912         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
28913         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
28914         * tests/unictype/test-pr_combining.c: Regenerated.
28915         * tests/unictype/test-pr_dash.c: Regenerated.
28916         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
28917         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
28918         * tests/unictype/test-pr_deprecated.c: Regenerated.
28919         * tests/unictype/test-pr_diacritic.c: Regenerated.
28920         * tests/unictype/test-pr_extender.c: Regenerated.
28921         * tests/unictype/test-pr_format_control.c: Regenerated.
28922         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
28923         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
28924         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
28925         * tests/unictype/test-pr_id_continue.c: Regenerated.
28926         * tests/unictype/test-pr_id_start.c: Regenerated.
28927         * tests/unictype/test-pr_ideographic.c: Regenerated.
28928         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
28929         * tests/unictype/test-pr_lowercase.c: Regenerated.
28930         * tests/unictype/test-pr_math.c: Regenerated.
28931         * tests/unictype/test-pr_numeric.c: Regenerated.
28932         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
28933         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
28934         Regenerated.
28935         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
28936         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
28937         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
28938         * tests/unictype/test-pr_other_math.c: Regenerated.
28939         * tests/unictype/test-pr_punctuation.c: Regenerated.
28940         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
28941         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
28942         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
28943         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
28944         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
28945         * tests/unictype/test-pr_uppercase.c: Regenerated.
28946         * tests/unictype/test-pr_xid_continue.c: Regenerated.
28947         * tests/unictype/test-pr_xid_start.c: Regenerated.
28948         * tests/unictype/test-pr_zero_width.c: Regenerated.
28949
28950         Update to Unicode 5.1.0.
28951         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
28952         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
28953         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
28954         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
28955         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
28956         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
28957         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
28958         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
28959         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
28960         (nonspacing_table_ind): Update.
28961         * tests/uniwidth/test-uc_width2.sh: Update expected result.
28962
28963         Update to Unicode 5.1.0.
28964         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
28965         code transform.
28966         * lib/uniname/uniname.c (unicode_character_name,
28967         unicode_name_character): Add the range 0x1Fxxx to the code transform.
28968         * lib/uniname/uninames.h: Regenerated.
28969         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
28970
28971 2009-02-07  Bruno Haible  <bruno@clisp.org>
28972
28973         Merge gen-ctype and gen-lbrk into a single program.
28974         * lib/gen-uni-tables.c: New file, incorporating
28975         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
28976         Add directory prefixes to the names of the generated files.
28977         * lib/unictype/gen-ctype.c: Remove file.
28978         * lib/unilbrk/gen-lbrk.c: Remove file.
28979         * modules/gen-uni-tables: New file.
28980         * modules/unictype/gen-ctype: Remove file.
28981         * modules/unilbrk/gen-lbrk: Remove file.
28982
28983 2009-02-07  Bruno Haible  <bruno@clisp.org>
28984
28985         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
28986
28987         New module 'unistr/u32-strcoll'.
28988         * modules/unistr/u32-strcoll: New file.
28989         * lib/unistr/u32-strcoll.c: New file.
28990
28991         New module 'unistr/u16-strcoll'.
28992         * modules/unistr/u16-strcoll: New file.
28993         * lib/unistr/u16-strcoll.c: New file.
28994
28995         New module 'unistr/u8-strcoll'.
28996         * modules/unistr/u8-strcoll: New file.
28997         * lib/unistr/u8-strcoll.c: New file.
28998         * lib/unistr/u-strcoll.h: New file.
28999
29000 2009-02-07  Bruno Haible  <bruno@clisp.org>
29001
29002         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29003         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29004         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29005         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29006         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29007         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29008
29009 2009-02-07  Bruno Haible  <bruno@clisp.org>
29010
29011         Make 64-bit clean.
29012         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29013         output_combclass, output_bidi_category, output_decimal_digit,
29014         output_digit, output_numeric, output_mirror, output_scripts,
29015         output_ident_category): Use proper width specifier in format strings.
29016
29017 2009-02-07  Bruno Haible  <bruno@clisp.org>
29018
29019         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29020         failure behaviour.
29021
29022 2009-02-07  Jim Meyering  <meyering@redhat.com>
29023
29024         regex: avoid compilation failure with upcoming gcc-4.4
29025         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29026         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29027         "... error: integer overflow in preprocessor expression".
29028
29029 2009-02-05  Ben Pfaff  <blp@gnu.org>
29030
29031         Fix link errors on Windows when close module is used.
29032         * modules/close: Add $(LIB_CLOSE) to Link section.
29033         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29034         $(LIB_CLOSE) on Windows.
29035
29036 2009-02-05  Jim Meyering  <meyering@redhat.com>
29037
29038         still avoid unused-parameter warnings, but do it cleanly
29039         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29040         (get_fs_usage): Cast to void instead.
29041         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29042         (dev_from_mount_options, read_file_system_list): Cast to void.
29043         Prompted by Bruno Haible.
29044
29045 2009-02-04  Jim Meyering  <meyering@redhat.com>
29046
29047         fsusage.c: correct copyright year
29048         * lib/fsusage.c: Reflect year in which the change is pushed into
29049
29050         avoid misc. warnings
29051         * lib/fsusage.c (UNUSED_PARAM): Define.
29052         (get_fs_usage): Mark parameter "disk" as unused.
29053         * lib/getugroups.c (getgrent): Use "void" in prototype.
29054         * lib/mountlist.c: Mark unused parameters.
29055         (read_file_system_list): Declare a local with "const".
29056         * lib/nanosleep.c (getnow): Declare static.
29057         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29058
29059         dirfd: set errno upon failure
29060         * lib/dirfd.c: Include <errno.h>.
29061         Set errno to ENOTSUP when returning -1.
29062         * modules/dirfd (Depends-on): Add errno.
29063         Suggested by John Kodis <kodis@comcast.net>.
29064
29065 2009-02-01  Bruno Haible  <bruno@clisp.org>
29066
29067         Don't assume sizeof (long) >= sizeof (void *).
29068         * lib/memcmp.c: Include stdint.h.
29069         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29070         srcp2 to 'const byte *'.
29071         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29072         types to uintptr_t.
29073         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29074         * modules/memcmp (Depends-on): Add stdint.
29075         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29076
29077 2009-01-30  Eric Blake  <ebb9@byu.net>
29078
29079         fix more require-before-expand issues
29080         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29081         expand, AC_PROG_AWK.
29082         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29083
29084 2009-01-28  Eric Blake  <ebb9@byu.net>
29085
29086         version-etc: use consistent URL formatting
29087         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29088         Improve formatting.  Use fputs for string without %.
29089
29090 2009-01-28  Jim Meyering  <meyering@redhat.com>
29091
29092         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29093         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29094         "underquoted definition of NAME" from autoconf-2.59.
29095
29096 2009-01-28  Bruno Haible  <bruno@clisp.org>
29097
29098         * doc/gnulib.texi: Add "Obsolete modules" to index.
29099
29100 2009-01-28  Jim Meyering  <meyering@redhat.com>
29101
29102         useless-if-before-free: recognize more variants
29103         * build-aux/useless-if-before-free: Also recognize e.g.,
29104         if (NULL != p) free (p);
29105
29106 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29107
29108         test-getaddrinfo: skip (don't fail) this test when there's no network
29109         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29110         on the presumption that it means you lack network access.
29111
29112 2009-01-26  Jim Meyering  <meyering@redhat.com>
29113
29114         fflush: avoid warnings on modern systems
29115         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29116         pos and result, into scopes where they're used.
29117
29118 2009-01-26  Eric Blake  <ebb9@byu.net>
29119
29120         Silence warning reintroduced by recent extensions patch.
29121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29122         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29123         autoconf.
29124
29125         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29126         * m4/00gnulib.m4: New file.
29127         * gnulib-tool (func_get_filelist): Always use it.
29128         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29129         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29130
29131 2009-01-25  Bruno Haible  <bruno@clisp.org>
29132
29133         Make test-quotearg work on MacOS X and AIX.
29134         * tests/test-quotearg.sh: New file.
29135         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29136         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29137         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29138         include <libintl.h>.
29139         (fake_locale): Remove variable.
29140         (gettext, dgettext, dcgettext): Remove functions.
29141         (main): Instead of setting a fake locale, set a real locale. Call
29142         textdomain and bindtextdomain.
29143         * modules/quotearg-tests (Files): Add the new files.
29144         (Depends-on): Add gettext, setenv, unsetenv.
29145         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29146         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29147         Augment TESTS_ENVIRONMENT.
29148
29149 2009-01-25  Bruno Haible  <bruno@clisp.org>
29150
29151         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29152         fr_FR.ISO8859-1 locale on MacOS X.
29153         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29154         ja_JP.eucJP locale on MacOS X.
29155         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29156         zh_CN.GB18030 locale on MacOS X.
29157
29158 2009-01-25  Bruno Haible  <bruno@clisp.org>
29159
29160         Avoid link errors on MacOS X 10.3.
29161         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29162         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29163
29164 2009-01-25  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29167         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29168         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29169         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29170         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29171         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29172         posix_spawnattr_init, posix_spawnattr_setsigmask,
29173         posix_spawnattr_setflags, posix_spawnattr_destroy.
29174
29175         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29176         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
29177         * modules/execute (Files): Remove m4/posix_spawn.m4.
29178         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29179         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29180         posix_spawnattr_init, posix_spawnattr_setsigmask,
29181         posix_spawnattr_setflags, posix_spawnattr_destroy.
29182
29183 2009-01-25  Bruno Haible  <bruno@clisp.org>
29184
29185         * lib/glthread/threadlib.c: Include <stdlib.h>.
29186
29187 2009-01-25  Bruno Haible  <bruno@clisp.org>
29188
29189         * lib/glthread/threadlib.c (dummy): New declaration.
29190
29191 2009-01-25  Bruno Haible  <bruno@clisp.org>
29192
29193         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
29194         multibyte characters also for the GB18030 encoding. Don't crash when
29195         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
29196
29197 2009-01-25  Bruno Haible  <bruno@clisp.org>
29198
29199         Avoid redefining 'struct random_data' on OSF/1 5.1.
29200         * lib/stdlib.in.h: Include <random.h> if it exists.
29201         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
29202         HAVE_RANDOM_H. Include <random.h> when testing whether
29203         'struct random_data' exists.
29204         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
29205
29206 2009-01-25  Bruno Haible  <bruno@clisp.org>
29207
29208         Don't install charset.alias on MacOS X >= 10.3.
29209         * lib/localcharset.c (DARWIN7): New macro.
29210         (get_charset_aliases): Hardcode the result for Darwin7.
29211         * modules/localcharset (install-exec-local): Don't install
29212         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
29213
29214 2009-01-25  Bruno Haible  <bruno@clisp.org>
29215
29216         Don't install charset.alias on mingw and Cygwin.
29217         * modules/localcharset (install-exec-local): Don't install
29218         charset.alias on mingw and Cygwin, if the file does not yet exist.
29219         The result for these platforms is hardcoded in localcharset.c.
29220
29221 2009-01-25  Bruno Haible  <bruno@clisp.org>
29222
29223         Make it possible again to use AC_GNU_SOURCE together with gnulib.
29224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
29225         before requiring AC_USE_SYSTEM_EXTENSIONS.
29226
29227 2009-01-25  Jim Meyering  <meyering@redhat.com>
29228
29229         c-strtod: avoid warnings
29230         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
29231         "assignment discards qualifiers from pointer target type" warnings.
29232
29233 2009-01-24  Bruno Haible  <bruno@clisp.org>
29234
29235         Add support for non-UTF-8 locales on MacOS X.
29236         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
29237         canonical encodings. For Darwin 7 and newer, don't map traditional
29238         encodings to UTF-8.
29239         Reported by Vincent Lefevre <vincent@vinc17.org>
29240         at <http://savannah.gnu.org/bugs/?25235>.
29241
29242 2009-01-24  Bruno Haible  <bruno@clisp.org>
29243
29244         * doc/gnulib.texi (Obsolete modules): New section.
29245         Reported by Mike Frysinger <vapier@gentoo.org>.
29246
29247 2009-01-24  Bruno Haible  <bruno@clisp.org>
29248
29249         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
29250         (%.dvi): New rule.
29251
29252 2009-01-24  Bruno Haible  <bruno@clisp.org>
29253
29254         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
29255         Reported by Eric Blake.
29256
29257 2009-01-24  Bruno Haible  <bruno@clisp.org>
29258
29259         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
29260         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
29261         Reported by Gary V. Vaughan <gary@gnu.org>.
29262
29263 2009-01-24  Bruno Haible  <bruno@clisp.org>
29264
29265         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
29266
29267 2009-01-23  Bruno Haible  <bruno@clisp.org>
29268
29269         Make c-strtod, c-strtold usable in libraries.
29270         * lib/c-strtod.c: Include string.h instead of xalloc.h.
29271         (C_STRTOD): Call strdup instead of xstrdup.
29272         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
29273         * modules/c-strtold (Depends-on): Likewise.
29274         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
29275         * NEWS: Mention the change.
29276         Reported by Michael Gold <mgold@ncf.ca>.
29277
29278 2009-01-23  Jim Meyering  <meyering@redhat.com>
29279
29280         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
29281         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
29282         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
29283
29284 2009-01-23  Simon Josefsson  <simon@josefsson.org>
29285
29286         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
29287         GNU CoreUtils.
29288         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
29289         * modules/version-etc (Description): Update.
29290
29291 2009-01-22  Bruno Haible  <bruno@clisp.org>
29292
29293         Cache the C locale object.
29294         * lib/c-strtod.c (c_locale_cache): New variable.
29295         (c_locale): New function.
29296         (C_STRTOD): Use it, and don't call freelocale.
29297         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
29298         Suggested by Paolo Bonzini.
29299
29300 2009-01-21  Bruno Haible  <bruno@clisp.org>
29301
29302         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
29303         conditions other than overflow.
29304
29305 2009-01-21  Bruno Haible  <bruno@clisp.org>
29306
29307         * lib/c-strtod.c: Include errno.h.
29308         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
29309         value from STRTOD_L and STRTOD.
29310
29311 2009-01-21  Bruno Haible  <bruno@clisp.org>
29312         and Jim Meyering  <meyering@redhat.com>
29313
29314         nanosleep: skip configure test (fail it) for apple universal builds
29315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
29316         universal builds, assume that nanosleep does not work.
29317         * modules/nanosleep (Depends-on): Add multiarch.
29318
29319         mktime: skip configure test (fail it) for apple universal builds
29320         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
29321         universal builds, assume that mktime does not work.
29322         * modules/mktime (Depends-on): Add multiarch.
29323
29324 2009-01-21  Eric Blake  <ebb9@byu.net>
29325
29326         multiarch: avoid expand-before-require warning
29327         * modules/multiarch (configure.ac): Require, rather than expand,
29328         gl_MULTIARCH.
29329         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
29330         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
29331         enforce that all clients require it.  Partial reversion of
29332         2008-12-29 patch.
29333
29334         error: avoid expand-before-require warning
29335         * modules/errno (configure.ac): Require, rather than expand,
29336         gl_HEADER_ERRNO_H.
29337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
29338         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
29339         enforce that all clients require it.
29340
29341         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
29342         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
29343         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
29344         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
29345
29346 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
29347
29348         Revert:
29349         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29350
29351         regex: do not depend on obsolete modules.
29352         * modules/regex: Remove memcmp and memmove.
29353
29354 2009-01-20  Bruno Haible  <bruno@clisp.org>
29355
29356         Make the 'link' module link on Windows NT 4.
29357         * lib/link.c (_WIN32_WINNT): Don't define.
29358         (CreateHardLinkFuncType): New type.
29359         (CreateHardLinkFunc, initialized): New variables.
29360         (initialize): New function.
29361         (link): Invoke CreateHardLink indirectly through the function pointer.
29362
29363 2009-01-20  Bruno Haible  <bruno@clisp.org>
29364
29365         Fix compilation failure on mingw.
29366         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
29367
29368 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
29369
29370         * doc/c-strtod.texi: Mention a couple of restrictions.
29371
29372 2009-01-20  Jim Meyering  <meyering@redhat.com>
29373
29374         gettimeofday: move more declarations out of functions
29375         * lib/gettimeofday.c: Move extern declarations of tzset and
29376         gmtime out of containing functions.  Prompted by Bruno Haible.
29377
29378 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29379
29380         regex: do not depend on obsolete modules.
29381         * modules/regex: Remove memcmp and memmove.
29382
29383 2009-01-19  Bruno Haible  <bruno@clisp.org>
29384
29385         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29386         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
29387         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29388         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
29389         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
29390
29391 2009-01-19  Bruno Haible  <bruno@clisp.org>
29392
29393         * tests/test-link.c: Include <errno.h>.
29394         (main): Exit with code 77 when a hard link cannot be created due to
29395         the file system.
29396         * tests/test-link.sh: Skip test when a hard link cannot be created due
29397         to the file system.
29398         Suggested by Eric Blake.
29399
29400 2009-01-19  Martin Lambers  <marlam@marlam.de>
29401
29402         * modules/link-tests: New file.
29403         * tests/test-link.sh: New file.
29404         * tests/test-link.c: New file.
29405
29406 2009-01-19  Eric Blake  <ebb9@byu.net>
29407
29408         doc: mention another function added in cygwin 1.7.0
29409         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
29410         Another new function in cygwin 1.7.
29411
29412 2009-01-19  Bruno Haible  <bruno@clisp.org>
29413
29414         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29415         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
29416         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
29417         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29418         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29419         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29420         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29421         * m4/md4.m4 (gl_MD4): Likewise.
29422         * m4/md5.m4 (gl_MD5): Likewise.
29423         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
29424         * m4/sha1.m4 (gl_SHA1): Likewise.
29425         * m4/sha256.m4 (gl_SHA256): Likewise.
29426         * m4/sha512.m4 (gl_SHA512): Likewise.
29427
29428 2009-01-19  Bruno Haible  <bruno@clisp.org>
29429
29430         * modules/uniname/uniname-tests (Depends-on): Add progname.
29431         * tests/uniname/test-uninames.c: Include progname.h.
29432         (main): Call set_program_name.
29433
29434         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29435         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29436         (main): Call set_program_name.
29437
29438         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29439         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29440         (main): Call set_program_name.
29441
29442         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
29443         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
29444         (main): Call set_program_name.
29445
29446         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
29447         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
29448         (main): Call set_program_name.
29449
29450         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
29451         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
29452         (main): Call set_program_name.
29453
29454         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
29455         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
29456         (main): Call set_program_name.
29457
29458         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
29459         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
29460         (main): Call set_program_name.
29461
29462         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
29463         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
29464         (main): Call set_program_name.
29465
29466 2009-01-19  Eric Blake  <ebb9@byu.net>
29467
29468         test-unistd: test previous patch
29469         * tests/test-unistd.c: Test *_FILENO macros.
29470
29471         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
29472         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29473         Guarantee a definition.
29474         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
29475         * modules/unistd-safer (Depends-on): Add dependency on unistd.
29476         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
29477         * lib/dup-safer.c (STDERR_FILENO): Likewise.
29478         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29479         Likewise.
29480         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
29481         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
29482         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29483         Likewise.
29484         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
29485         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
29486         (STDERR_FILENO): Likewise.
29487         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
29488         (STDERR_FILENO): Likewise.
29489         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
29490         (STDERR_FILENO): Likewise.
29491         Reported by Elbert Pol.
29492
29493 2009-01-19  Eric Blake  <ebb9@byu.net>
29494
29495         doc: mention more functions added in cygwin 1.7.0
29496         * doc/posix-functions/abort.texi (abort): Update wording related
29497         to cygwin.
29498         * doc/posix-functions/daylight.texi (daylight): Likewise.
29499         * doc/posix-functions/optarg.texi (optarg): Likewise.
29500         * doc/posix-functions/optarg.texi (opterr): Likewise.
29501         * doc/posix-functions/optarg.texi (optind): Likewise.
29502         * doc/posix-functions/optarg.texi (optopt): Likewise.
29503         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
29504         worked in 1.5.x, and was withdrawn in 1.7.
29505         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29506         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
29507         cygwin versions.
29508         * doc/posix-functions/perror.texi (perror): Likewise.
29509         * doc/posix-functions/printf.texi (printf): Likewise.
29510         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
29511         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
29512         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29513         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29514         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29515         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
29516         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29517         Likewise.
29518         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29519         Likewise.
29520         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
29521         this function.
29522         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
29523         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
29524         Likewise.
29525         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
29526         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
29527         * doc/posix-functions/confstr.texi (confstr): Likewise.
29528         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
29529         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
29530         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
29531         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
29532         * doc/posix-functions/fputws.texi (fputws): Likewise.
29533         * doc/posix-functions/fwide.texi (fwide): Likewise.
29534         * doc/posix-functions/getwc.texi (getwc): Likewise.
29535         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
29536         * doc/posix-functions/putwc.texi (putwc): Likewise.
29537         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29538         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
29539         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
29540         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29541         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
29542         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
29543         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
29544         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
29545         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
29546         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
29547         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
29548
29549 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29550
29551         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
29552         * lib/ioctl.c: Include <sys/ioctl.h>.
29553
29554 2009-01-19  Simon Josefsson  <simon@josefsson.org>
29555
29556         * modules/getdate-tests (Depends-on): Add progname.
29557         * tests/test-getdate.c: Use progname module, to avoid link errors
29558         on non-glibc systems.
29559
29560 2009-01-18  Simon Josefsson  <simon@josefsson.org>
29561
29562         * modules/filenamecat-tests (Depends-on): Add progname.
29563         * modules/fstrcmp-tests (Depends-on): Likewise.
29564
29565         * tests/test-filenamecat.c: Use progname module, to avoid link
29566         errors on non-glibc systems.
29567         * tests/test-fstrcmp.c: Likewise.
29568
29569 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29570
29571         gettimeofday: avoid warning: nested extern declaration of 'localtime'
29572         * lib/gettimeofday.c: Move extern declaration out of function.
29573
29574 2009-01-18  Bruno Haible  <bruno@clisp.org>
29575
29576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
29577         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
29578         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
29579
29580 2009-01-18  Bruno Haible  <bruno@clisp.org>
29581
29582         * lib/strftime.c (MEMPCPY): Remove unused macro.
29583         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
29584
29585 2009-01-18  Martin Lambers  <marlam@marlam.de>
29586
29587         New module 'link'.
29588         * lib/unistd.in.h (link): New declaration.
29589         * lib/link.c: New file.
29590         * m4/link.m4: New file.
29591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
29592         HAVE_LINK.
29593         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
29594         * modules/link: New file.
29595         * doc/posix-functions/link.texi: Mention the new module.
29596
29597 2009-01-18  Bruno Haible  <bruno@clisp.org>
29598
29599         * tests/test-avltree_list.c (main): Call set_program_name.
29600         * tests/test-avltree_oset.c (main): Likewise.
29601         * tests/test-obstack-printf.c: Include progname.h.
29602         (main): Call set_program_name.
29603         * tests/test-quotearg.c: Include progname.h.
29604         (main): Call set_program_name.
29605         * tests/test-xmemdup0.c: Include progname.h.
29606         (main): Call set_program_name.
29607
29608 2009-01-18  Bruno Haible  <bruno@clisp.org>
29609
29610         New module 'alphasort'.
29611         * lib/dirent.in.h (alphasort): New declaration.
29612         * lib/alphasort.c: New file, from glibc with modifications.
29613         * m4/alphasort.m4: New file.
29614         * modules/alphasort: New file.
29615         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
29616         HAVE_ALPHASORT.
29617         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
29618         HAVE_ALPHASORT.
29619         * doc/posix-functions/alphasort.texi: Mention the new module and the
29620         portability problems.
29621
29622 2009-01-18  Bruno Haible  <bruno@clisp.org>
29623
29624         New module 'scandir'.
29625         * lib/dirent.in.h (scandir): New declaration.
29626         * lib/scandir.c: New file, from glibc with modifications.
29627         * m4/scandir.m4: New file.
29628         * modules/scandir: New file.
29629         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
29630         HAVE_SCANDIR.
29631         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
29632         HAVE_SCANDIR.
29633         * doc/posix-functions/scandir.texi: Mention the new module and the
29634         portability problems.
29635
29636 2009-01-17  Bruno Haible  <bruno@clisp.org>
29637
29638         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
29639         Update documentation.
29640         (func_remove_suffix): Escape all dots in the suffix. Update
29641         documentation.
29642         (func_filter_filelist): Update documentation.
29643         Reported by Ralf Wildenhues.
29644
29645 2009-01-17  Bruno Haible  <bruno@clisp.org>
29646
29647         * modules/dprintf-posix-tests: New file.
29648         * tests/test-dprintf-posix.sh: New file.
29649         * tests/test-dprintf-posix.c: New file.
29650
29651         New modules 'dprintf', 'dprintf-posix'.
29652         * lib/stdio.in.h (dprintf): New declaration.
29653         * lib/dprintf.c: New file.
29654         * m4/dprintf.m4: New file.
29655         * m4/dprintf-posix.m4: New file.
29656         * modules/dprintf: New file.
29657         * modules/dprintf-posix: New file.
29658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29659         HAVE_DPRINTF, REPLACE_DPRINTF.
29660         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29661         HAVE_DPRINTF, REPLACE_DPRINTF.
29662         * doc/posix-functions/dprintf.texi: Mention the new modules.
29663
29664 2009-01-17  Bruno Haible  <bruno@clisp.org>
29665
29666         * modules/vdprintf-posix-tests: New file.
29667         * tests/test-vdprintf-posix.sh: New file.
29668         * tests/test-vdprintf-posix.c: New file.
29669
29670         New modules 'vdprintf', 'vdprintf-posix'.
29671         * lib/stdio.in.h (vdprintf): New declaration.
29672         * lib/vdprintf.c: New file.
29673         * m4/vdprintf.m4: New file.
29674         * m4/vdprintf-posix.m4: New file.
29675         * modules/vdprintf: New file.
29676         * modules/vdprintf-posix: New file.
29677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
29678         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29679         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
29680         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29681         * doc/posix-functions/vdprintf.texi: Mention the new modules.
29682
29683 2009-01-17  Bruno Haible  <bruno@clisp.org>
29684
29685         Fix replacement of fopen on mingw.
29686         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
29687         mingw.
29688
29689 2009-01-17  Bruno Haible  <bruno@clisp.org>
29690
29691         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
29692         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
29693
29694 2009-01-17  Bruno Haible  <bruno@clisp.org>
29695
29696         Avoid test-fflush2.sh failure on mingw.
29697         * tests/test-fflush2.c: Include binary-io.h.
29698         (main): Put standard input into binary mode.
29699         * modules/fflush-tests (Depends-on): Add binary-io.
29700
29701 2009-01-17  Bruno Haible  <bruno@clisp.org>
29702
29703         * lib/wchar.in.h: In another particular situation, include only the
29704         system's <wchar.h> file.
29705         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
29706         Reported by Albert Chin-A-Young <china@thewrittenword.com>
29707         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
29708
29709 2009-01-17  Bruno Haible  <bruno@clisp.org>
29710
29711         Support for stripping executables in --enable-relocatable.
29712         * build-aux/install-reloc: Expect one more argument, or an environment
29713         variable RELOC_STRIP_PROG. If set, strip the destination program and
29714         its wrapper.
29715         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
29716         RELOC_STRIP_PROG.
29717         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
29718         to set RELOCATABLE_STRIP.
29719         * NEWS: Mention the new Makefile requirement.
29720
29721 2009-01-17  Bruno Haible  <bruno@clisp.org>
29722
29723         * build-aux/install-reloc: Remove debugging information left over by
29724         C compiler on MacOS X.
29725
29726 2009-01-17  Bruno Haible  <bruno@clisp.org>
29727
29728         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
29729         * lib/progreloc.c (find_executable): Fix type of pointer passed to
29730         _NSGetExecutablePath.
29731
29732 2009-01-16  Jim Meyering  <meyering@redhat.com>
29733
29734         strerror: avoid warnings about discarding "const"
29735         * lib/strerror.c (rpl_strerror): Instead of returning a const
29736         string from each and every "case", use a variable, and add a single
29737         cast after the switch.
29738
29739 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
29740
29741         * lib/arpa_inet.in.h: Add extern "C" block for C++.
29742
29743 2009-01-16  Bruno Haible  <bruno@clisp.org>
29744
29745         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
29746         array initializer syntax that also works in C++ mode.
29747         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29748
29749 2009-01-16  Jim Meyering  <meyering@redhat.com>
29750
29751         poll: suppress a warning
29752         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
29753         to ignore "...unsigned expression < 0 is always false" warnings.
29754
29755 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
29756
29757         poll: remove declarations of unused variables
29758         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
29759         sockbuf and optlen.
29760
29761 2009-01-15  Bruno Haible  <bruno@clisp.org>
29762
29763         Make fflush-after-ungetc POSIX compliant on BSD systems.
29764         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
29765         (clear_ungetc_buffer): Implement also for other systems.
29766         (rpl_fflush): On glibc systems, invoke
29767         clear_ungetc_buffer_preserving_position. Otherwise, invoke
29768         clear_ungetc_buffer after fetching the stream's position, not before.
29769
29770 2009-01-15  Bruno Haible  <bruno@clisp.org>
29771
29772         Make fflush-after-ungetc POSIX compliant on glibc systems.
29773         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
29774         after ungetc.
29775         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
29776         (rpl_fflush): On glibc systems, simply call the system's fflush
29777         function after clearing the ungetc buffer.
29778         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29779         Instead, lseek only to the end of file, then use the system's fseeko
29780         for the rest. On glibc systems, reset the EOF indicator bit.
29781
29782 2009-01-15  Jim Meyering  <meyering@redhat.com>
29783
29784         openmp.m4: revert quote-adding change, for portability to older autoconf
29785         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29786         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29787         Simon Josefsson noticed the problem when using autoconf-2.61.
29788
29789 2009-01-15  Bruno Haible  <bruno@clisp.org>
29790
29791         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29792         * tests/test-fflush2.c (ASSERT): Always fail.
29793         (main): Add two tests for fflush() after ungetc(), taking into account
29794         the Austin Group's clarification.
29795         Suggested by Eric Blake.
29796
29797 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29798
29799         mktime.m4: remove K&R-style function prototypes
29800         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29801         for the Sun C++ compiler.
29802
29803 2009-01-14  Bruno Haible  <bruno@clisp.org>
29804
29805         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29806         while including <wchar.h>.
29807         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29808         the system's <wchar.h> file.
29809         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29810
29811 2009-01-14  Bruno Haible  <bruno@clisp.org>
29812
29813         * m4/csharp.m4: Don't mention gettext on the serial number line.
29814         * m4/csharpexec.m4: Likewise.
29815         * m4/eaccess.m4: Likewise.
29816         * m4/javaexec.m4: Likewise.
29817         * m4/sig_atomic_t.m4: Likewise.
29818         * m4/tmpdir.m4: Likewise.
29819         * m4/intldir.m4: Bump gettext version.
29820         * m4/lib-ld.m4: Likewise.
29821
29822 2009-01-14  Bruno Haible  <bruno@clisp.org>
29823
29824         * lib/progname.c (set_program_name): Add more comments.
29825         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29826
29827 2009-01-14  Simon Josefsson  <simon@josefsson.org>
29828
29829         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
29830         were sys/stat.h does not define it.
29831
29832 2009-01-14  Jim Meyering  <meyering@redhat.com>
29833
29834         many *.m4 files: improve m4 quoting
29835         99% of this change was performed by running the following commands:
29836         git ls-files | grep '\.m4$' | xargs perl -pi \
29837           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
29838           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29839           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29840           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
29841         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
29842         The remainder were to add Copyright dates, increment serial numbers,
29843         undo some changes in comments, exclude m4/intl.m4, and add quotes
29844         around the "1" in ",1" where the unusual spacing prohibited the
29845         above regexps from doing the job.  For more details, see
29846         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
29847         * m4/acl.m4: Modified.
29848         * m4/afs.m4: Likewise.
29849         * m4/alloca.m4: Likewise.
29850         * m4/argp.m4: Likewise.
29851         * m4/argz.m4: Likewise.
29852         * m4/atexit.m4: Likewise.
29853         * m4/bison-i18n.m4: Likewise.
29854         * m4/bison.m4: Likewise.
29855         * m4/byteswap.m4: Likewise.
29856         * m4/c-stack.m4: Likewise.
29857         * m4/c-strtod.m4: Likewise.
29858         * m4/calloc.m4: Likewise.
29859         * m4/canonicalize-lgpl.m4: Likewise.
29860         * m4/chown.m4: Likewise.
29861         * m4/clock_time.m4: Likewise.
29862         * m4/codeset.m4: Likewise.
29863         * m4/copy-file.m4: Likewise.
29864         * m4/csharp.m4: Likewise.
29865         * m4/csharpcomp.m4: Likewise.
29866         * m4/csharpexec.m4: Likewise.
29867         * m4/d-ino.m4: Likewise.
29868         * m4/d-type.m4: Likewise.
29869         * m4/dirfd.m4: Likewise.
29870         * m4/double-slash-root.m4: Likewise.
29871         * m4/eaccess.m4: Likewise.
29872         * m4/eealloc.m4: Likewise.
29873         * m4/environ.m4: Likewise.
29874         * m4/errno_h.m4: Likewise.
29875         * m4/euidaccess.m4: Likewise.
29876         * m4/execute.m4: Likewise.
29877         * m4/fatal-signal.m4: Likewise.
29878         * m4/fchdir.m4: Likewise.
29879         * m4/fcntl_h.m4: Likewise.
29880         * m4/fileblocks.m4: Likewise.
29881         * m4/filenamecat.m4: Likewise.
29882         * m4/findprog.m4: Likewise.
29883         * m4/flexmember.m4: Likewise.
29884         * m4/fnmatch.m4: Likewise.
29885         * m4/fopen.m4: Likewise.
29886         * m4/fpending.m4: Likewise.
29887         * m4/fprintf-posix.m4: Likewise.
29888         * m4/free.m4: Likewise.
29889         * m4/frexp.m4: Likewise.
29890         * m4/frexpl.m4: Likewise.
29891         * m4/fsusage.m4: Likewise.
29892         * m4/ftruncate.m4: Likewise.
29893         * m4/gc-camellia.m4: Likewise.
29894         * m4/gc-random.m4: Likewise.
29895         * m4/gc.m4: Likewise.
29896         * m4/getaddrinfo.m4: Likewise.
29897         * m4/getcwd-abort-bug.m4: Likewise.
29898         * m4/getcwd-path-max.m4: Likewise.
29899         * m4/getdate.m4: Likewise.
29900         * m4/getdomainname.m4: Likewise.
29901         * m4/getgroups.m4: Likewise.
29902         * m4/gethostname.m4: Likewise.
29903         * m4/gethrxtime.m4: Likewise.
29904         * m4/getline.m4: Likewise.
29905         * m4/getloadavg.m4: Likewise.
29906         * m4/getndelim2.m4: Likewise.
29907         * m4/getpass.m4: Likewise.
29908         * m4/gettext.m4: Likewise.
29909         * m4/gettime.m4: Likewise.
29910         * m4/gettimeofday.m4: Likewise.
29911         * m4/gnulib-common.m4: Likewise.
29912         * m4/group-member.m4: Likewise.
29913         * m4/host-os.m4: Likewise.
29914         * m4/iconv.m4: Likewise.
29915         * m4/iconv_open.m4: Likewise.
29916         * m4/inet_ntop.m4: Likewise.
29917         * m4/inet_pton.m4: Likewise.
29918         * m4/inline.m4: Likewise.
29919         * m4/intldir.m4: Likewise.
29920         * m4/intlmacosx.m4: Likewise.
29921         * m4/intmax.m4: Likewise.
29922         * m4/intmax_t.m4: Likewise.
29923         * m4/inttypes.m4: Likewise.
29924         * m4/inttypes_h.m4: Likewise.
29925         * m4/inttypes-pri.m4: Likewise.
29926         * m4/isapipe.m4: Likewise.
29927         * m4/isnand.m4: Likewise.
29928         * m4/isnanf.m4: Likewise.
29929         * m4/isnanl.m4: Likewise.
29930         * m4/javacomp.m4: Likewise.
29931         * m4/javaexec.m4: Likewise.
29932         * m4/jm-winsz1.m4: Likewise.
29933         * m4/jm-winsz2.m4: Likewise.
29934         * m4/lchown.m4: Likewise.
29935         * m4/lcmessage.m4: Likewise.
29936         * m4/ldexpl.m4: Likewise.
29937         * m4/lib-ld.m4: Likewise.
29938         * m4/lib-link.m4: Likewise.
29939         * m4/libsigsegv.m4: Likewise.
29940         * m4/link-follow.m4: Likewise.
29941         * m4/localcharset.m4: Likewise.
29942         * m4/locale-fr.m4: Likewise.
29943         * m4/locale-ja.m4: Likewise.
29944         * m4/locale-tr.m4: Likewise.
29945         * m4/locale-zh.m4: Likewise.
29946         * m4/lock.m4: Likewise.
29947         * m4/longlong.m4: Likewise.
29948         * m4/ls-mntd-fs.m4: Likewise.
29949         * m4/lstat.m4: Likewise.
29950         * m4/malloc.m4: Likewise.
29951         * m4/mathl.m4: Likewise.
29952         * m4/mbrtowc.m4: Likewise.
29953         * m4/mbstate_t.m4: Likewise.
29954         * m4/mbswidth.m4: Likewise.
29955         * m4/memchr.m4: Likewise.
29956         * m4/memcmp.m4: Likewise.
29957         * m4/memcpy.m4: Likewise.
29958         * m4/memmem.m4: Likewise.
29959         * m4/memmove.m4: Likewise.
29960         * m4/mempcpy.m4: Likewise.
29961         * m4/memrchr.m4: Likewise.
29962         * m4/memset.m4: Likewise.
29963         * m4/minmax.m4: Likewise.
29964         * m4/mkdir-slash.m4: Likewise.
29965         * m4/mkdtemp.m4: Likewise.
29966         * m4/mktime.m4: Likewise.
29967         * m4/mmap-anon.m4: Likewise.
29968         * m4/mountlist.m4: Likewise.
29969         * m4/nanosleep.m4: Likewise.
29970         * m4/nls.m4: Likewise.
29971         * m4/nocrash.m4: Likewise.
29972         * m4/open.m4: Likewise.
29973         * m4/openat.m4: Likewise.
29974         * m4/openmp.m4: Likewise.
29975         * m4/pathmax.m4: Likewise.
29976         * m4/perl.m4: Likewise.
29977         * m4/physmem.m4: Likewise.
29978         * m4/pipe.m4: Likewise.
29979         * m4/po.m4: Likewise.
29980         * m4/poll.m4: Likewise.
29981         * m4/posixtm.m4: Likewise.
29982         * m4/posixver.m4: Likewise.
29983         * m4/printf-frexp.m4: Likewise.
29984         * m4/printf-frexpl.m4: Likewise.
29985         * m4/printf-posix.m4: Likewise.
29986         * m4/printf-posix-rpl.m4: Likewise.
29987         * m4/printf.m4: Likewise.
29988         * m4/progtest.m4: Likewise.
29989         * m4/putenv.m4: Likewise.
29990         * m4/readline.m4: Likewise.
29991         * m4/readlink.m4: Likewise.
29992         * m4/readutmp.m4: Likewise.
29993         * m4/realloc.m4: Likewise.
29994         * m4/regex.m4: Likewise.
29995         * m4/relocatable.m4: Likewise.
29996         * m4/relocatable-lib.m4: Likewise.
29997         * m4/rename-dest-slash.m4: Likewise.
29998         * m4/rename.m4: Likewise.
29999         * m4/rmdir-errno.m4: Likewise.
30000         * m4/rmdir.m4: Likewise.
30001         * m4/roundf.m4: Likewise.
30002         * m4/roundl.m4: Likewise.
30003         * m4/rpmatch.m4: Likewise.
30004         * m4/save-cwd.m4: Likewise.
30005         * m4/selinux-selinux-h.m4: Likewise.
30006         * m4/setenv.m4: Likewise.
30007         * m4/settime.m4: Likewise.
30008         * m4/sig2str.m4: Likewise.
30009         * m4/sig_atomic_t.m4: Likewise.
30010         * m4/signalblocking.m4: Likewise.
30011         * m4/signbit.m4: Likewise.
30012         * m4/sigpipe.m4: Likewise.
30013         * m4/sockets.m4: Likewise.
30014         * m4/sockpfaf.m4: Likewise.
30015         * m4/st_dm_mode.m4: Likewise.
30016         * m4/stat-time.m4: Likewise.
30017         * m4/stdbool.m4: Likewise.
30018         * m4/stdint.m4: Likewise.
30019         * m4/stdint_h.m4: Likewise.
30020         * m4/stpcpy.m4: Likewise.
30021         * m4/stpncpy.m4: Likewise.
30022         * m4/strcase.m4: Likewise.
30023         * m4/strchrnul.m4: Likewise.
30024         * m4/strcspn.m4: Likewise.
30025         * m4/strdup.m4: Likewise.
30026         * m4/strftime.m4: Likewise.
30027         * m4/strndup.m4: Likewise.
30028         * m4/strnlen.m4: Likewise.
30029         * m4/strpbrk.m4: Likewise.
30030         * m4/strptime.m4: Likewise.
30031         * m4/strsep.m4: Likewise.
30032         * m4/strtod.m4: Likewise.
30033         * m4/strtoimax.m4: Likewise.
30034         * m4/strtok_r.m4: Likewise.
30035         * m4/strtol.m4: Likewise.
30036         * m4/strtoll.m4: Likewise.
30037         * m4/strtoul.m4: Likewise.
30038         * m4/strtoull.m4: Likewise.
30039         * m4/strtoumax.m4: Likewise.
30040         * m4/strverscmp.m4: Likewise.
30041         * m4/threadlib.m4: Likewise.
30042         * m4/timegm.m4: Likewise.
30043         * m4/tm_gmtoff.m4: Likewise.
30044         * m4/tmpdir.m4: Likewise.
30045         * m4/tmpfile.m4: Likewise.
30046         * m4/tzset.m4: Likewise.
30047         * m4/uintmax_t.m4: Likewise.
30048         * m4/unlinkdir.m4: Likewise.
30049         * m4/unlocked-io.m4: Likewise.
30050         * m4/uptime.m4: Likewise.
30051         * m4/userspec.m4: Likewise.
30052         * m4/utimbuf.m4: Likewise.
30053         * m4/utime.m4: Likewise.
30054         * m4/utimes-null.m4: Likewise.
30055         * m4/utimes.m4: Likewise.
30056         * m4/vararrays.m4: Likewise.
30057         * m4/vasnprintf.m4: Likewise.
30058         * m4/vfprintf-posix.m4: Likewise.
30059         * m4/vprintf-posix.m4: Likewise.
30060         * m4/wait-process.m4: Likewise.
30061         * m4/wchar_t.m4: Likewise.
30062         * m4/wint_t.m4: Likewise.
30063         * m4/write-any-file.m4: Likewise.
30064         * m4/yield.m4: Likewise.
30065
30066 2009-01-13  Bruno Haible  <bruno@clisp.org>
30067
30068         Avoid test-copy-file.sh failures when ACL support insufficient.
30069         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30070         TESTS_ENVIRONMENT.
30071         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30072         Reported by Jim Meyering.
30073
30074 2009-01-13  Bruno Haible  <bruno@clisp.org>
30075
30076         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30077         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30078         * modules/unistdio/u8-printf-parse (Files): Likewise.
30079         * modules/unistdio/u32-printf-parse (Files): Likewise.
30080         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30081
30082 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30083
30084         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30085         and m4/inttypes_h.m4 too.
30086
30087 2009-01-12  Eric Blake  <ebb9@byu.net>
30088
30089         tests: IRIX 6.2 cc can't compile -0.0 into .data
30090         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30091         rather than at compile-time.
30092         * tests/test-floorl.c (minus_zero): Likewise.
30093         * tests/test-frexpl.c (minus_zero): Likewise.
30094         * tests/test-isnan.c (minus_zerol): Likewise.
30095         * tests/test-isnanl.h (minus_zero): Likewise.
30096         * tests/test-ldexpl.c (minus_zero): Likewise.
30097         * tests/test-roundl.c (minus_zero): Likewise.
30098         * tests/test-signbit.c (minus_zerol): Likewise.
30099         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30100         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30101         * tests/test-truncl.c (minus_zero): Likewise.
30102         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30103         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30104         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30105
30106 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30107
30108         regex: fix glibc bug 9697
30109         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30110         handling.
30111
30112 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30113
30114         regex: fix glibc bug 697
30115         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30116         being NULL also if there are no backreferences.
30117
30118 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30119
30120         regex: merge glibc changes
30121         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30122         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30123         re_string_skip_chars, re_string_reconstruct): Likewise.
30124         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30125
30126 2009-01-07  Jim Meyering  <meyering@redhat.com>
30127
30128         poll: filter through cppi
30129         * lib/poll.c: Indent cpp directives to reflect nesting.
30130
30131 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30132
30133         poll: don't return uninitialized
30134         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30135
30136 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30137
30138         avoid compile failure on AIX 6.1
30139         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30140         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30141
30142 2009-01-04  Jim Meyering  <meyering@redhat.com>
30143
30144         remove duplicate inclusion of <stdio.h>
30145         * tests/test-fprintf-posix.c: Likewise.
30146         * tests/test-printf-posix.c: Likewise.
30147         * tests/test-snprintf-posix.c: Likewise.
30148         * tests/test-sprintf-posix.c: Likewise.
30149         * tests/test-vasprintf-posix.c: Likewise.
30150         * tests/test-vfprintf-posix.c: Likewise.
30151         * tests/test-vprintf-posix.c: Likewise.
30152         * tests/test-vsnprintf-posix.c: Likewise.
30153         * tests/test-vsprintf-posix.c: Likewise.
30154
30155 2009-01-03  Jim Meyering  <meyering@redhat.com>
30156
30157         gnulib-tool: fix sed-based filtering
30158         * gnulib-tool (func_filter_filelist): Remove extra backslash
30159         in sed_fff_filter definition.
30160
30161 2009-01-02  Jim Meyering  <meyering@redhat.com>
30162
30163         strftime: avoid compilation failure on Solaris 2.6
30164         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30165         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30166         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30167         be available.  Reported by Tom G. Christensen.  Details in
30168         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30169
30170 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30171             Bruno Haible  <bruno@clisp.org>
30172
30173         Speed up gnulib-tool by doing more string processing through shell
30174         built-ins.
30175         * gnulib-tool (fast_func_append): New variable.
30176         (func_remove_prefix, func_remove_suffix): New functions.
30177         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
30178         (func_filter_filelist): New function.
30179         (func_get_dependencies): Use func_remove_suffix instead of sed.
30180         (func_get_automake_snippet): Use func_filter_filelist instead of a
30181         subshell and sed invocation.
30182
30183 2009-01-01  Bruno Haible  <bruno@clisp.org>
30184
30185         Fix a security bug.
30186         * gnulib-tool (func_import, import, update): Don't allow the characters
30187         '"', '$', '`', '\' in macro arguments that become part of commands that
30188         are evaluated.
30189
30190 2009-01-01  Bruno Haible  <bruno@clisp.org>
30191
30192         * gnulib-tool (func_reset_sigpipe): Add more comments.
30193
30194 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30195
30196         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
30197         func_emit_tests_Makefile_am, func_import): Abort loops early if we
30198         already know the answer.
30199
30200 2009-01-01  Jim Meyering  <meyering@redhat.com>
30201
30202         * lib/version-etc.c (version_etc_va): Update copyright year.
30203
30204 2008-12-30  Bruno Haible  <bruno@clisp.org>
30205
30206         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
30207         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
30208         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
30209
30210 2008-12-29  Eric Blake  <ebb9@byu.net>
30211
30212         multiarch: avoid autoconf AC_REQUIRE bug
30213         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
30214         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
30215         2.63 and older.
30216         Reported by Bruno Haible, and analyzed in
30217         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
30218
30219 2008-12-29  Bruno Haible  <bruno@clisp.org>
30220
30221         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
30222         files in subdirectories correctly.
30223         Reported by Ralf Wildenhues.
30224
30225 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30226
30227         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
30228         rather than 'join FILE -', for Solaris join.
30229
30230 2008-12-29  Bruno Haible  <bruno@clisp.org>
30231
30232         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
30233         quoting.
30234         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30235         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
30236         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
30237         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
30238         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30239         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30240         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30241         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30242         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30243         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30244         * m4/nls.m4 (AM_NLS): Likewise.
30245         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
30246         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30247         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30248         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30249         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30250         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30251         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
30252         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30253         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30254         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30255         * m4/xsize.m4 (gl_XSIZE): Likewise.
30256         Suggested by Jim Meyering.
30257
30258 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30259
30260         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
30261         * lib/parse-duration.c: use a switch instead of cascading if's.
30262
30263 2008-12-29  Eric Blake  <ebb9@byu.net>
30264
30265         wchar.h: supply WEOF on Irix 5.3
30266         * lib/wchar.in.h (wint_t): Also supply WEOF.
30267         * lib/wctype.in.h (wint_t): Likewise.
30268         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
30269         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
30270         Reported by Tom G. Christensen.
30271
30272 2008-12-26  Bruno Haible  <bruno@clisp.org>
30273
30274         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
30275         i486, i586, i686.
30276
30277 2008-12-26  Bruno Haible  <bruno@clisp.org>
30278
30279         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
30280
30281 2008-12-26  Bruno Haible  <bruno@clisp.org>
30282
30283         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
30284         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
30285         not __STDC_CONSTANT_MACROS.
30286         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30287
30288 2008-12-25  Bruno Haible  <bruno@clisp.org>
30289
30290         Add support for universal builds to vasnprintf.
30291         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
30292         universal builds, guess no.
30293         * modules/vasnprintf-posix (Depends-on): Add multiarch.
30294         * modules/vasprintf-posix (Depends-on): Likewise.
30295         * modules/fprintf-posix (Depends-on): Likewise.
30296         * modules/vfprintf-posix (Depends-on): Likewise.
30297         * modules/snprintf-posix (Depends-on): Likewise.
30298         * modules/vsnprintf-posix (Depends-on): Likewise.
30299         * modules/sprintf-posix (Depends-on): Likewise.
30300         * modules/vsprintf-posix (Depends-on): Likewise.
30301         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30302         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30303         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30304         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30305         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30306         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30307         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30308
30309         Add support for universal builds to <inttypes.h>.
30310         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
30311         _SCNu64_PREFIX): In Apple
30312         universal builds, define directly, using _LP64.
30313         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
30314         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
30315         * modules/inttypes (Depends-on): Add multiarch.
30316         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30317
30318         Add support for universal builds to <stdint.h>.
30319         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
30320         universal builds, define directly, using _LP64.
30321         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
30322         Apple universal builds, don't test for the size and suffix of ptrdiff_t
30323         and size_t.
30324         * modules/stdint (Depends-on): Add multiarch.
30325         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30326
30327         New module 'multiarch'.
30328         * modules/multiarch: New file.
30329         * m4/multiarch.m4: New file.
30330
30331 2008-12-25  Bruno Haible  <bruno@clisp.org>
30332
30333         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
30334
30335 2008-12-25  Bruno Haible  <bruno@clisp.org>
30336
30337         * modules/btowc (License): Relicense under LGPLv2+.
30338         * modules/mbsinit (License): Likewise.
30339         * modules/mbrtowc (License): Likewise.
30340         * modules/wcrtomb (License): Likewise.
30341         * modules/streq (License): Likewise.
30342         Reported by David Lutterkort <lutter@redhat.com>.
30343
30344 2008-12-23  Bruno Haible  <bruno@clisp.org>
30345
30346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
30347
30348 2008-12-23  Bruno Haible  <bruno@clisp.org>
30349
30350         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
30351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
30352         GETADDRINFO_LIB, not in LIBS.
30353         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
30354         * modules/canon-host (Link): Likewise.
30355         * NEWS: Mention the change.
30356         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
30357         GETADDRINFO_LIB.
30358
30359 2008-12-22  Bruno Haible  <bruno@clisp.org>
30360
30361         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
30362         * doc/posix-functions/iswalpha_l.texi: Likewise.
30363         * doc/posix-functions/iswblank_l.texi: Likewise.
30364         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30365         * doc/posix-functions/iswctype_l.texi: Likewise.
30366         * doc/posix-functions/iswdigit_l.texi: Likewise.
30367         * doc/posix-functions/iswgraph_l.texi: Likewise.
30368         * doc/posix-functions/iswlower_l.texi: Likewise.
30369         * doc/posix-functions/iswprint_l.texi: Likewise.
30370         * doc/posix-functions/iswpunct_l.texi: Likewise.
30371         * doc/posix-functions/iswspace_l.texi: Likewise.
30372         * doc/posix-functions/iswupper_l.texi: Likewise.
30373         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30374         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
30375         * doc/posix-functions/open_wmemstream.texi: Likewise.
30376         * doc/posix-functions/swscanf.texi: Likewise.
30377         * doc/posix-functions/towctrans_l.texi: Likewise.
30378         * doc/posix-functions/towlower.texi: Likewise.
30379         * doc/posix-functions/towlower_l.texi: Likewise.
30380         * doc/posix-functions/towupper.texi: Likewise.
30381         * doc/posix-functions/towupper_l.texi: Likewise.
30382         * doc/posix-functions/vfwprintf.texi: Likewise.
30383         * doc/posix-functions/vfwscanf.texi: Likewise.
30384         * doc/posix-functions/vswscanf.texi: Likewise.
30385         * doc/posix-functions/vwprintf.texi: Likewise.
30386         * doc/posix-functions/vwscanf.texi: Likewise.
30387         * doc/posix-functions/wcpcpy.texi: Likewise.
30388         * doc/posix-functions/wcpncpy.texi: Likewise.
30389         * doc/posix-functions/wcscasecmp.texi: Likewise.
30390         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
30391         * doc/posix-functions/wcscoll_l.texi: Likewise.
30392         * doc/posix-functions/wcsdup.texi: Likewise.
30393         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30394         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
30395         * doc/posix-functions/wcsnlen.texi: Likewise.
30396         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30397         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30398         * doc/posix-functions/wctrans_l.texi: Likewise.
30399         * doc/posix-functions/wctype_l.texi: Likewise.
30400         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
30401         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
30402         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
30403         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
30404         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
30405         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
30406         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
30407         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
30408         * doc/glibc-functions/wcschrnul.texi: Likewise.
30409         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30410         * doc/glibc-functions/wcstod_l.texi: Likewise.
30411         * doc/glibc-functions/wcstof_l.texi: Likewise.
30412         * doc/glibc-functions/wcstol_l.texi: Likewise.
30413         * doc/glibc-functions/wcstold_l.texi: Likewise.
30414         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30415         * doc/glibc-functions/wcstoq.texi: Likewise.
30416         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30417         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30418         * doc/glibc-functions/wcstouq.texi: Likewise.
30419         * doc/glibc-functions/wmempcpy.texi: Likewise.
30420
30421 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
30422             Eric Blake  <ebb9@byu.net>
30423             Paolo Bonzini  <bonzini@gnu.org>
30424             Bruno Haible  <bruno@clisp.org>
30425
30426         Make c-stack work on Haiku.
30427         * lib/c-stack.c (SA_ONSTACK): Define fallback.
30428         (c_stack_action): Use SA_ONSTACK flag.
30429
30430 2008-12-22  Bruno Haible  <bruno@clisp.org>
30431
30432         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30433
30434 2008-12-22  Bruno Haible  <bruno@clisp.org>
30435
30436         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30437         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30438         being overridden.
30439         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30440         New macros.
30441         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
30442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
30443         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
30444         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
30445
30446 2008-12-22  Bruno Haible  <bruno@clisp.org>
30447
30448         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
30449         from test code.
30450
30451 2008-12-22  Eric Blake  <ebb9@byu.net>
30452
30453         Avoid gcc warnings on cygwin.
30454         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
30455         Avoid unused variable.
30456         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
30457         Likewise.
30458
30459 2008-12-22  Bruno Haible  <bruno@clisp.org>
30460
30461         Remove HAVE_MBRTOWC conditionals.
30462         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
30463         (mbscasecmp): Assume mbrtowc function.
30464         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
30465         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
30466         * lib/mbschr.c: Include mbuiter.h unconditionally.
30467         (mbschr): Assume mbrtowc function.
30468         * lib/mbscspn.c: Include mbuiter.h unconditionally.
30469         (mbscspn): Assume mbrtowc function.
30470         * lib/mbslen.c: Include mbuiter.h unconditionally.
30471         (mbslen): Assume mbrtowc function.
30472         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
30473         (mbsncasecmp): Assume mbrtowc function.
30474         * lib/mbsnlen.c: Include mbiter.h unconditionally.
30475         (mbsnlen): Assume mbrtowc function.
30476         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
30477         (mbspbrk): Assume mbrtowc function.
30478         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
30479         (mbspcasecmp): Assume mbrtowc function.
30480         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
30481         (mbsrchr): Assume mbrtowc function.
30482         * lib/mbssep.c: Include mbuiter.h unconditionally.
30483         (mbssep): Assume mbrtowc function.
30484         * lib/mbsspn.c: Include mbuiter.h unconditionally.
30485         (mbsspn): Assume mbrtowc function.
30486         * lib/mbsstr.c: Include mbuiter.h unconditionally.
30487         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
30488         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
30489         (mbstok_r): Assume mbrtowc function.
30490         * lib/propername.c: Include mbuiter.h unconditionally.
30491         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
30492         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
30493         (trim2): Assume mbrtowc function.
30494         * lib/mbswidth.c (mbsinit): Remove fallback definition.
30495         (mbsnwidth): Assume mbrtowc function.
30496         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
30497         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
30498         fallback definitions.
30499         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
30500
30501 2008-12-22  Bruno Haible  <bruno@clisp.org>
30502
30503         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
30504
30505 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
30506
30507         * modules/regex: Request emulations for the mb*/wc* functions we need.
30508         * m4/regex.m4: Don't look for those functions here.
30509         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
30510
30511 2008-12-22  Bruno Haible  <bruno@clisp.org>
30512
30513         * modules/fnmatch (Depends-on): Remove duplicated dependency.
30514
30515 2008-12-21  Bruno Haible  <bruno@clisp.org>
30516
30517         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
30518         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
30519         (Include): Remove conditionalization.
30520         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
30521         (Include): Remove conditionalization.
30522         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
30523         (Include): Remove conditionalization.
30524         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
30525         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30526         * NEWS: Mention the change.
30527         Reported by Alan Hourihane <alanh@fairlite.co.uk>
30528         via Sergey Poznyakoff <gray@gnu.org.ua>.
30529
30530 2008-12-21  Bruno Haible  <bruno@clisp.org>
30531
30532         * MODULES.html.sh (Extended multibyte and wide character utilities
30533         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
30534         wcrtomb, wcsrtombs.
30535         (Support for systems lacking POSIX:2008): Add accept, bind, close,
30536         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
30537         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
30538         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
30539
30540 2008-12-21  Bruno Haible  <bruno@clisp.org>
30541
30542         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
30543
30544 2008-12-21  Bruno Haible  <bruno@clisp.org>
30545
30546         * modules/wcsnrtombs-tests: New file.
30547         * tests/test-wcsnrtombs1.sh: New file.
30548         * tests/test-wcsnrtombs2.sh: New file.
30549         * tests/test-wcsnrtombs3.sh: New file.
30550         * tests/test-wcsnrtombs4.sh: New file.
30551         * tests/test-wcsnrtombs.c: New file.
30552
30553         New module 'wcsnrtombs'.
30554         * lib/wchar.in.h (wcsnrtombs): New declaration.
30555         * lib/wcsnrtombs.c: New file.
30556         * lib/wcsrtombs-state.c: New file.
30557         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
30558         (internal_state): Remove variable.
30559         * m4/wcsnrtombs.m4: New file.
30560         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
30561         compilation units.
30562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
30563         HAVE_WCSNRTOMBS.
30564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
30565         HAVE_WCSNRTOMBS.
30566         * modules/wcsnrtombs: New file.
30567         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
30568         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
30569
30570 2008-12-21  Bruno Haible  <bruno@clisp.org>
30571
30572         * modules/wcsrtombs-tests: New file.
30573         * tests/test-wcsrtombs1.sh: New file.
30574         * tests/test-wcsrtombs2.sh: New file.
30575         * tests/test-wcsrtombs3.sh: New file.
30576         * tests/test-wcsrtombs4.sh: New file.
30577         * tests/test-wcsrtombs.c: New file.
30578
30579         New module 'wcsrtombs'.
30580         * lib/wchar.in.h (wcsrtombs): New declaration.
30581         * lib/wcsrtombs.c: New file.
30582         * m4/wcsrtombs.m4: New file.
30583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
30584         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
30586         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30587         * modules/wcsrtombs: New file.
30588         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
30589         bugs.
30590
30591 2008-12-21  Bruno Haible  <bruno@clisp.org>
30592
30593         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
30594         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
30595         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
30596         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
30597         if not correct.
30598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
30599         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
30600         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30601         m4/locale-zh.m4, m4/codeset.m4.
30602         * doc/posix-functions/wcrtomb.texi: Document the bug.
30603
30604 2008-12-21  Bruno Haible  <bruno@clisp.org>
30605
30606         Work around a btowc() bug on IRIX 6.5.
30607         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
30608         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
30609         REPLACE_WTOBC if not.
30610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
30611         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
30612         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
30613
30614 2008-12-21  Bruno Haible  <bruno@clisp.org>
30615
30616         * modules/wcrtomb-tests: New file.
30617         * tests/test-wcrtomb.sh: New file.
30618         * tests/test-wcrtomb.c: New file.
30619
30620         New module 'wcrtomb'.
30621         * lib/wchar.in.h (wcrtomb): New declaration.
30622         * lib/wcrtomb.c: New file.
30623         * m4/wcrtomb.m4: New file.
30624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
30625         HAVE_WCRTOMB.
30626         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
30627         HAVE_WCRTOMB.
30628         * modules/wcrtomb: New file.
30629         * doc/posix-functions/wcrtomb.texi: Mention the new module.
30630
30631 2008-12-21  Bruno Haible  <bruno@clisp.org>
30632
30633         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
30634         * modules/mbsrtowcs (Files): Likewise.
30635         * modules/wctob (Files): Likewise.
30636         * modules/c-strcase-tests (Files): Likewise.
30637         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30638         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30639         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30640         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30641         * modules/vasnprintf-posix-tests (Files): Likewise.
30642
30643 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30644
30645         gitlog-to-changelog: pass all command-line arguments to git-log
30646         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30647         it is sometimes convenient to filter the commits in various ways.
30648         gitlog-to-changelog only allows --since to specify a start date,
30649         but git-log itself supports many other filtering mechanisms.
30650         At the moment, I want to filter by branch name.  Rather than
30651         adding a --branch option to gitlog-to-changelog, it seems more
30652         flexible to simply pass all options directly to git-log and let
30653         git do the work.  Notice that this effectively makes --since a
30654         redundant option for gitlog-to-changelog, but removing it would
30655         require current usage to change since calls would then require
30656         an additional '--'.
30657
30658 2008-12-21  Bruno Haible  <bruno@clisp.org>
30659
30660         * modules/mbsnrtowcs-tests: New file.
30661         * tests/test-mbsnrtowcs1.sh: New file.
30662         * tests/test-mbsnrtowcs2.sh: New file.
30663         * tests/test-mbsnrtowcs3.sh: New file.
30664         * tests/test-mbsnrtowcs4.sh: New file.
30665         * tests/test-mbsnrtowcs.c: New file.
30666
30667         New module 'mbsnrtowcs'.
30668         * lib/wchar.in.h (mbsnrtowcs): New declaration.
30669         * lib/mbsnrtowcs.c: New file.
30670         * lib/mbsrtowcs-state.c: New file.
30671         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
30672         (internal_state): Remove variable.
30673         * m4/mbsnrtowcs.m4: New file.
30674         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
30675         compilation units.
30676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
30677         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30678         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
30679         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30680         * modules/mbsnrtowcs: New file.
30681         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
30682         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
30683         portability problem.
30684
30685 2008-12-21  Bruno Haible  <bruno@clisp.org>
30686
30687         Work around mbsrtowcs bug.
30688         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
30689         (gl_FUNC_MBSRTOWCS): Invoke it.
30690         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30691         m4/locale-zh.m4.
30692         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
30693
30694 2008-12-21  Bruno Haible  <bruno@clisp.org>
30695
30696         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
30697
30698 2008-12-21  Bruno Haible  <bruno@clisp.org>
30699
30700         Update doc for AIX.
30701         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
30702         16-bit wchar_t type.
30703         * doc/posix-functions/btowc.texi: Likewise.
30704         * doc/posix-functions/fgetwc.texi: Likewise.
30705         * doc/posix-functions/fgetws.texi: Likewise.
30706         * doc/posix-functions/fputwc.texi: Likewise.
30707         * doc/posix-functions/fputws.texi: Likewise.
30708         * doc/posix-functions/fwide.texi: Likewise.
30709         * doc/posix-functions/fwprintf.texi: Likewise.
30710         * doc/posix-functions/fwscanf.texi: Likewise.
30711         * doc/posix-functions/getwchar.texi: Likewise.
30712         * doc/posix-functions/getwc.texi: Likewise.
30713         * doc/posix-functions/iswalnum.texi: Likewise.
30714         * doc/posix-functions/iswalpha.texi: Likewise.
30715         * doc/posix-functions/iswblank.texi: Likewise.
30716         * doc/posix-functions/iswcntrl.texi: Likewise.
30717         * doc/posix-functions/iswctype.texi: Likewise.
30718         * doc/posix-functions/iswdigit.texi: Likewise.
30719         * doc/posix-functions/iswgraph.texi: Likewise.
30720         * doc/posix-functions/iswlower.texi: Likewise.
30721         * doc/posix-functions/iswprint.texi: Likewise.
30722         * doc/posix-functions/iswpunct.texi: Likewise.
30723         * doc/posix-functions/iswspace.texi: Likewise.
30724         * doc/posix-functions/iswupper.texi: Likewise.
30725         * doc/posix-functions/iswxdigit.texi: Likewise.
30726         * doc/posix-functions/mbrtowc.texi: Likewise.
30727         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30728         * doc/posix-functions/mbstowcs.texi: Likewise.
30729         * doc/posix-functions/mbtowc.texi: Likewise.
30730         * doc/posix-functions/putwchar.texi: Likewise.
30731         * doc/posix-functions/putwc.texi: Likewise.
30732         * doc/posix-functions/swprintf.texi: Likewise.
30733         * doc/posix-functions/tolower.texi: Likewise.
30734         * doc/posix-functions/toupper.texi: Likewise.
30735         * doc/posix-functions/towctrans.texi: Likewise.
30736         * doc/posix-functions/ungetwc.texi: Likewise.
30737         * doc/posix-functions/vswprintf.texi: Likewise.
30738         * doc/posix-functions/wcrtomb.texi: Likewise.
30739         * doc/posix-functions/wcscat.texi: Likewise.
30740         * doc/posix-functions/wcschr.texi: Likewise.
30741         * doc/posix-functions/wcscmp.texi: Likewise.
30742         * doc/posix-functions/wcscoll.texi: Likewise.
30743         * doc/posix-functions/wcscpy.texi: Likewise.
30744         * doc/posix-functions/wcscspn.texi: Likewise.
30745         * doc/posix-functions/wcsftime.texi: Likewise.
30746         * doc/posix-functions/wcslen.texi: Likewise.
30747         * doc/posix-functions/wcsncat.texi: Likewise.
30748         * doc/posix-functions/wcsncmp.texi: Likewise.
30749         * doc/posix-functions/wcsncpy.texi: Likewise.
30750         * doc/posix-functions/wcspbrk.texi: Likewise.
30751         * doc/posix-functions/wcsrchr.texi: Likewise.
30752         * doc/posix-functions/wcsrtombs.texi: Likewise.
30753         * doc/posix-functions/wcsspn.texi: Likewise.
30754         * doc/posix-functions/wcsstr.texi: Likewise.
30755         * doc/posix-functions/wcstod.texi: Likewise.
30756         * doc/posix-functions/wcstof.texi: Likewise.
30757         * doc/posix-functions/wcstoimax.texi: Likewise.
30758         * doc/posix-functions/wcstok.texi: Likewise.
30759         * doc/posix-functions/wcstold.texi: Likewise.
30760         * doc/posix-functions/wcstoll.texi: Likewise.
30761         * doc/posix-functions/wcstol.texi: Likewise.
30762         * doc/posix-functions/wcstombs.texi: Likewise.
30763         * doc/posix-functions/wcstoull.texi: Likewise.
30764         * doc/posix-functions/wcstoul.texi: Likewise.
30765         * doc/posix-functions/wcstoumax.texi: Likewise.
30766         * doc/posix-functions/wcswidth.texi: Likewise.
30767         * doc/posix-functions/wcsxfrm.texi: Likewise.
30768         * doc/posix-functions/wctob.texi: Likewise.
30769         * doc/posix-functions/wctomb.texi: Likewise.
30770         * doc/posix-functions/wctrans.texi: Likewise.
30771         * doc/posix-functions/wctype.texi: Likewise.
30772         * doc/posix-functions/wcwidth.texi: Likewise.
30773         * doc/posix-functions/wmemchr.texi: Likewise.
30774         * doc/posix-functions/wmemcmp.texi: Likewise.
30775         * doc/posix-functions/wmemcpy.texi: Likewise.
30776         * doc/posix-functions/wmemmove.texi: Likewise.
30777         * doc/posix-functions/wmemset.texi: Likewise.
30778         * doc/posix-functions/wprintf.texi: Likewise.
30779         * doc/posix-functions/wscanf.texi: Likewise.
30780
30781 2008-12-21  Bruno Haible  <bruno@clisp.org>
30782
30783         Update doc for HP-UX 11.11.
30784         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30785         in HP-UX version 11.00, not in all versions of HP-UX 11.
30786         * doc/posix-functions/fwide.texi: Likewise.
30787         * doc/posix-functions/fwprintf.texi: Likewise.
30788         * doc/posix-functions/fwscanf.texi: Likewise.
30789         * doc/posix-functions/inet_ntop.texi: Likewise.
30790         * doc/posix-functions/inet_pton.texi: Likewise.
30791         * doc/posix-functions/mbrlen.texi: Likewise.
30792         * doc/posix-functions/mbrtowc.texi: Likewise.
30793         * doc/posix-functions/mbsinit.texi: Likewise.
30794         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30795         * doc/posix-functions/swprintf.texi: Likewise.
30796         * doc/posix-functions/swscanf.texi: Likewise.
30797         * doc/posix-functions/towctrans.texi: Likewise.
30798         * doc/posix-functions/vfwprintf.texi: Likewise.
30799         * doc/posix-functions/vswprintf.texi: Likewise.
30800         * doc/posix-functions/vwprintf.texi: Likewise.
30801         * doc/posix-functions/wcrtomb.texi: Likewise.
30802         * doc/posix-functions/wcsrtombs.texi: Likewise.
30803         * doc/posix-functions/wcsstr.texi: Likewise.
30804         * doc/posix-functions/wctob.texi: Likewise.
30805         * doc/posix-functions/wctrans.texi: Likewise.
30806         * doc/posix-functions/wmemchr.texi: Likewise.
30807         * doc/posix-functions/wmemcmp.texi: Likewise.
30808         * doc/posix-functions/wmemcpy.texi: Likewise.
30809         * doc/posix-functions/wmemmove.texi: Likewise.
30810         * doc/posix-functions/wmemset.texi: Likewise.
30811         * doc/posix-functions/wprintf.texi: Likewise.
30812         * doc/posix-functions/wscanf.texi: Likewise.
30813
30814 2008-12-21  Bruno Haible  <bruno@clisp.org>
30815
30816         Work around a portability problem.
30817         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
30818         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
30819
30820 2008-12-20  Bruno Haible  <bruno@clisp.org>
30821
30822         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
30823         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
30824         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
30825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
30826         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
30827
30828         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
30829         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
30830         set.
30831         (GNULIB_defined_mbstate_t): New macro.
30832         (mbsinit): Redefine if REPLACE_MBSINIT is set.
30833         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
30834         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
30835         reuses the system's mbrtowc function but works around the bugs.
30836         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
30837         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
30838         macros.
30839         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
30840         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
30841         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
30842         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
30843         REPLACE_MBSINIT if mbsinit needs to be overridden.
30844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
30845         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30846         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
30847         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30848         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30849         m4/locale-zh.m4.
30850         (Depends): Add mbsinit.
30851         * modules/mbsinit (Depends): Add mbrtowc.
30852         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
30853
30854 2008-12-20  Bruno Haible  <bruno@clisp.org>
30855
30856         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
30857         so that there are no conversion errors on AIX.
30858         * tests/test-mbsrtowcs.c (main): LIkewise.
30859
30860 2008-12-20  Bruno Haible  <bruno@clisp.org>
30861
30862         Work around wctob bug on Solaris <= 9.
30863         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
30864         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
30865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
30866         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
30867         * modules/wctob (Files): Add m4/locale-fr.m4.
30868         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
30869
30870 2008-12-20  Bruno Haible  <bruno@clisp.org>
30871
30872         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
30873         /dev/null.
30874         * tests/test-select-in.sh: Likewise.
30875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30876
30877 2008-12-20  Bruno Haible  <bruno@clisp.org>
30878
30879         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
30880         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
30881         Cygwin 1.5.x.
30882
30883 2008-12-20  Bruno Haible  <bruno@clisp.org>
30884
30885         Ensure mbstate_t is defined on HP-UX 11.11.
30886         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
30887         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
30888         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
30889         AC_USE_SYSTEM_EXTENSIONS.
30890         * modules/fnmatch (Depends-on): Add extensions.
30891         * modules/mbrlen (Depends-on): Likewise.
30892         * modules/mbrtowc (Depends-on): Likewise.
30893         * modules/mbsinit (Depends-on): Likewise.
30894         * modules/mbsrtowcs (Depends-on): Likewise.
30895         * modules/mbswidth (Depends-on): Likewise.
30896         * modules/quotearg (Depends-on): Likewise.
30897         * modules/strftime (Depends-on): Likewise.
30898
30899 2008-12-20  Bruno Haible  <bruno@clisp.org>
30900
30901         Ensure wctob is declared on IRIX 6.5.
30902         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
30903         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
30904         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
30905         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
30906         of HAVE_WCTOB.
30907         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
30908         HAVE_WCTOB.
30909         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
30910
30911 2008-12-19  Bruno Haible  <bruno@clisp.org>
30912
30913         * modules/mbsrtowcs-tests: New file.
30914         * tests/test-mbsrtowcs1.sh: New file.
30915         * tests/test-mbsrtowcs2.sh: New file.
30916         * tests/test-mbsrtowcs3.sh: New file.
30917         * tests/test-mbsrtowcs4.sh: New file.
30918         * tests/test-mbsrtowcs.c: New file.
30919
30920         New module 'mbsrtowcs'.
30921         * lib/wchar.in.h (mbsrtowcs): New declaration.
30922         * lib/mbsrtowcs.c: New file.
30923         * m4/mbsrtowcs.m4: New file.
30924         * modules/mbsrtowcs: New file.
30925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
30926         HAVE_MBSRTOWCS.
30927         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
30928         HAVE_MBSRTOWCS.
30929         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
30930
30931 2008-12-19  Bruno Haible  <bruno@clisp.org>
30932
30933         New module 'mbrlen'.
30934         * lib/wchar.in.h (mbrlen): New declaration.
30935         * lib/mbrlen.c: New file.
30936         * m4/mbrlen.m4: New file.
30937         * modules/mbrlen: New file.
30938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
30939         HAVE_MBRLEN.
30940         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
30941         HAVE_MBRLEN.
30942         * doc/posix-functions/mbrlen.texi: Document the new module.
30943
30944 2008-12-19  Bruno Haible  <bruno@clisp.org>
30945
30946         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30947         * modules/mbrtowc (Depends-on): Add verify.
30948         Suggested by Paul Eggert.
30949
30950 2008-12-18  Bruno Haible  <bruno@clisp.org>
30951
30952         * modules/mbsinit-tests: New file.
30953         * tests/test-mbsinit.sh: New file.
30954         * tests/test-mbsinit.c: New file.
30955
30956 2008-12-18  Bruno Haible  <bruno@clisp.org>
30957
30958         * modules/mbrtowc-tests: New file.
30959         * tests/test-mbrtowc1.sh: New file.
30960         * tests/test-mbrtowc2.sh: New file.
30961         * tests/test-mbrtowc3.sh: New file.
30962         * tests/test-mbrtowc4.sh: New file.
30963         * tests/test-mbrtowc.c: New file.
30964
30965         New module 'mbrtowc'.
30966         * lib/wchar.in.h (mbstate_t): Override when the system does not have
30967         mbsinit and mbrtowc.
30968         (mbrtowc): New declaration.
30969         * lib/mbrtowc.c: New file.
30970         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
30971         * modules/mbrtowc: New file.
30972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
30973         HAVE_MBRTOWC.
30974         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
30975         HAVE_MBRTOWC.
30976         * doc/posix-functions/mbrtowc.texi: Document the new module.
30977
30978 2008-12-18  Bruno Haible  <bruno@clisp.org>
30979
30980         New module 'wctob'.
30981         * lib/wchar.in.h (wctob): New declaration.
30982         * lib/wctob.c: New file.
30983         * m4/wctob.m4: New file.
30984         * modules/wctob: New file.
30985         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
30986         HAVE_WCTOB.
30987         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
30988         * doc/posix-functions/wctob.texi: Document the new module.
30989
30990 2008-12-18  Bruno Haible  <bruno@clisp.org>
30991
30992         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
30993         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
30994
30995 2008-12-18  Simon Josefsson  <simon@josefsson.org>
30996
30997         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
30998         G. Christensen" <tgc@jupiterrise.com>.
30999
31000         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31001         G. Christensen" <tgc@jupiterrise.com>.
31002
31003         * lib/flock.c: Need to include string.h.  Reported by "Tom
31004         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31005         <ebb9@byu.net>.
31006
31007 2008-12-18  Bruno Haible  <bruno@clisp.org>
31008
31009         * m4/locale-ja.m4: New file, from GNU gettext.
31010
31011 2008-12-17  Bruno Haible  <bruno@clisp.org>
31012
31013         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31014         Suggested by Eric Blake.
31015
31016 2008-12-17  Bruno Haible  <bruno@clisp.org>
31017
31018         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31019
31020 2008-12-17  Bruno Haible  <bruno@clisp.org>
31021
31022         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31023         * modules/mbsinit (Depends-on): Add verify.
31024         Suggested by Paul Eggert.
31025
31026 2008-12-17  Bruno Haible  <bruno@clisp.org>
31027
31028         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31029         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31030         gl_FUNC_MBRTOWC.
31031         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31032         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31033         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31034         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31035         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31036         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31037         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31038         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31039         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31040         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31041         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31042         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31043         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31044         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31045         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31046         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31047         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31048         * modules/trim (configure.ac): Likewise.
31049
31050 2008-12-17  Bruno Haible  <bruno@clisp.org>
31051
31052         * modules/btowc-tests: New file.
31053         * tests/test-btowc1.sh: New file.
31054         * tests/test-btowc2.sh: New file.
31055         * tests/test-btowc.c: New file.
31056
31057         New module 'btowc'.
31058         * lib/wchar.in.h (btowc): New declaration.
31059         * lib/btowc.c: New file.
31060         * m4/btowc.m4: New file.
31061         * modules/btowc: New file.
31062         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31063         HAVE_BTOWC.
31064         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31065         * doc/posix-functions/btowc.texi: Document the new module.
31066
31067 2008-12-17  Bruno Haible  <bruno@clisp.org>
31068
31069         New module 'mbsinit'.
31070         * lib/wchar.in.h (mbsinit): New declaration.
31071         * lib/mbsinit.c: New file.
31072         * m4/mbsinit.m4: New file.
31073         * modules/mbsinit: New file.
31074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31075         HAVE_MBSINIT.
31076         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31077         HAVE_MBSINIT.
31078         * doc/posix-functions/mbsinit.texi: Document the new module.
31079
31080 2008-12-16  Bruno Haible  <bruno@clisp.org>
31081
31082         * lib/unistd.in.h: Add comment.
31083         * tests/test-environ.c: Don't include <stdlib.h>.
31084
31085 2008-12-16  Bruno Haible  <bruno@clisp.org>
31086
31087         * lib/parse-duration.h (parse_duration): Document return value
31088         convention.
31089         * lib/parse-duration.c: Include specification header first. Add
31090         comments.
31091         (_): Remove macro.
31092         (parse_year_month_day, parse_hour_minute_second): Move side effects
31093         outside of strchr call.
31094         (parse_non_iso8601): Move side effects outside of isspace call.
31095         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31096         call.
31097
31098 2008-12-16  Bruno Haible  <bruno@clisp.org>
31099
31100         * tests/test-parse-duration.sh: Produce no output when the test
31101         succeeds.
31102
31103 2008-12-16  Bruno Haible  <bruno@clisp.org>
31104
31105         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31106         expressions.
31107
31108 2008-12-15  Bruno Haible  <bruno@clisp.org>
31109
31110         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31111         * doc/glibc-functions/flistxattr.texi: Likewise.
31112         * doc/glibc-functions/fopencookie.texi: Likewise.
31113         * doc/glibc-functions/fremovexattr.texi: Likewise.
31114         * doc/glibc-functions/fsetxattr.texi: Likewise.
31115         * doc/glibc-functions/getxattr.texi: Likewise.
31116         * doc/glibc-functions/lgetxattr.texi: Likewise.
31117         * doc/glibc-functions/listxattr.texi: Likewise.
31118         * doc/glibc-functions/llistxattr.texi: Likewise.
31119         * doc/glibc-functions/lremovexattr.texi: Likewise.
31120         * doc/glibc-functions/lsetxattr.texi: Likewise.
31121         * doc/glibc-functions/removexattr.texi: Likewise.
31122         * doc/glibc-functions/setxattr.texi: Likewise.
31123         * doc/posix-functions/open_memstream.texi: Likewise.
31124
31125 2008-12-15  Eric Blake  <ebb9@byu.net>
31126
31127         Update doc for cygwin 1.7.
31128         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31129         functions.
31130         * doc/posix-functions/fchmodat.texi: Likewise.
31131         * doc/posix-functions/fchownat.texi: Likewise.
31132         * doc/posix-functions/fdopendir.texi: Likewise.
31133         * doc/posix-functions/fmemopen.texi: Likewise.
31134         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31135         * doc/posix-functions/fstatat.texi: Likewise.
31136         * doc/posix-functions/futimens.texi: Likewise.
31137         * doc/posix-functions/gai_strerror.texi: Likewise.
31138         * doc/posix-functions/getaddrinfo.texi: Likewise.
31139         * doc/posix-functions/getnameinfo.texi: Likewise.
31140         * doc/posix-functions/if_freenameindex.texi: Likewise.
31141         * doc/posix-functions/if_indextoname.texi: Likewise.
31142         * doc/posix-functions/if_nameindex.texi: Likewise.
31143         * doc/posix-functions/if_nametoindex.texi: Likewise.
31144         * doc/posix-functions/insque.texi: Likewise.
31145         * doc/posix-functions/linkat.texi: Likewise.
31146         * doc/posix-functions/llrint.texi: Likewise.
31147         * doc/posix-functions/llrintf.texi: Likewise.
31148         * doc/posix-functions/llrintl.texi: Likewise.
31149         * doc/posix-functions/lockf.texi: Likewise.
31150         * doc/posix-functions/lrintl.texi: Likewise.
31151         * doc/posix-functions/mkdirat.texi: Likewise.
31152         * doc/posix-functions/mkfifoat.texi: Likewise.
31153         * doc/posix-functions/mknodat.texi: Likewise.
31154         * doc/posix-functions/mq_close.texi: Likewise.
31155         * doc/posix-functions/mq_getattr.texi: Likewise.
31156         * doc/posix-functions/mq_notify.texi: Likewise.
31157         * doc/posix-functions/mq_open.texi: Likewise.
31158         * doc/posix-functions/mq_receive.texi: Likewise.
31159         * doc/posix-functions/mq_send.texi: Likewise.
31160         * doc/posix-functions/mq_setattr.texi: Likewise.
31161         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31162         * doc/posix-functions/mq_timedsend.texi: Likewise.
31163         * doc/posix-functions/mq_unlink.texi: Likewise.
31164         * doc/posix-functions/open_memstream.texi: Likewise.
31165         * doc/posix-functions/openat.texi: Likewise.
31166         * doc/posix-functions/posix_fadvise.texi: Likewise.
31167         * doc/posix-functions/posix_fallocate.texi: Likewise.
31168         * doc/posix-functions/posix_madvise.texi: Likewise.
31169         * doc/posix-functions/posix_memalign.texi: Likewise.
31170         * doc/posix-functions/posix_openpt.texi: Likewise.
31171         * doc/posix-functions/readlinkat.texi: Likewise.
31172         * doc/posix-functions/remque.texi: Likewise.
31173         * doc/posix-functions/renameat.texi: Likewise.
31174         * doc/posix-functions/rintl.texi: Likewise.
31175         * doc/posix-functions/sem_unlink.texi: Likewise.
31176         * doc/posix-functions/shm_open.texi: Likewise.
31177         * doc/posix-functions/shm_unlink.texi: Likewise.
31178         * doc/posix-functions/signgam.texi: Likewise.
31179         * doc/posix-functions/sigset.texi: Likewise.
31180         * doc/posix-functions/stpcpy.texi: Likewise.
31181         * doc/posix-functions/stpncpy.texi: Likewise.
31182         * doc/posix-functions/strerror.texi: Likewise.
31183         * doc/posix-functions/strtod.texi: Likewise.
31184         * doc/posix-functions/symlinkat.texi: Likewise.
31185         * doc/posix-functions/unlinkat.texi: Likewise.
31186         * doc/posix-functions/utimensat.texi: Likewise.
31187         * doc/glibc-functions/bindresvport.texi: Likewise.
31188         * doc/glibc-functions/dn_expand.texi: Likewise.
31189         * doc/glibc-functions/exp10.texi: Likewise.
31190         * doc/glibc-functions/exp10f.texi: Likewise.
31191         * doc/glibc-functions/fgetxattr.texi: Likewise.
31192         * doc/glibc-functions/flistxattr.texi: Likewise.
31193         * doc/glibc-functions/fopencookie.texi: Likewise.
31194         * doc/glibc-functions/freeifaddrs.texi: Likewise.
31195         * doc/glibc-functions/fremovexattr.texi: Likewise.
31196         * doc/glibc-functions/fsetxattr.texi: Likewise.
31197         * doc/glibc-functions/getifaddrs.texi: Likewise.
31198         * doc/glibc-functions/getxattr.texi: Likewise.
31199         * doc/glibc-functions/lgetxattr.texi: Likewise.
31200         * doc/glibc-functions/listxattr.texi: Likewise.
31201         * doc/glibc-functions/llistxattr.texi: Likewise.
31202         * doc/glibc-functions/lremovexattr.texi: Likewise.
31203         * doc/glibc-functions/lsetxattr.texi: Likewise.
31204         * doc/glibc-functions/pow10.texi: Likewise.
31205         * doc/glibc-functions/pow10f.texi: Likewise.
31206         * doc/glibc-functions/rcmd_af.texi: Likewise.
31207         * doc/glibc-functions/removexattr.texi: Likewise.
31208         * doc/glibc-functions/res_init.texi: Likewise.
31209         * doc/glibc-functions/res_mkquery.texi: Likewise.
31210         * doc/glibc-functions/res_query.texi: Likewise.
31211         * doc/glibc-functions/res_querydomain.texi: Likewise.
31212         * doc/glibc-functions/res_send.texi: Likewise.
31213         * doc/glibc-functions/rresvport_af.texi: Likewise.
31214         * doc/glibc-functions/setxattr.texi: Likewise.
31215         * doc/glibc-functions/strcasestr.texi: Likewise.
31216
31217 2008-12-15  Bruno Haible  <bruno@clisp.org>
31218
31219         Fix compilation error on OSF/1 4.0.
31220         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
31221         <sys/time.h>, simply delegate to the system header.
31222         Reported by Daniel Richard G. <oss@teragram.com>.
31223
31224 2008-12-15  Bruno Haible  <bruno@clisp.org>
31225
31226         * doc/posix-functions/openat.texi: Mention the 'openat' module.
31227         * doc/posix-functions/fchmodat.texi: Likewise.
31228         * doc/posix-functions/fchownat.texi: Likewise.
31229         * doc/posix-functions/fdopendir.texi: Likewise.
31230         * doc/posix-functions/fstatat.texi: Likewise.
31231         * doc/posix-functions/mkdirat.texi: Likewise.
31232         * doc/posix-functions/unlinkat.texi: Likewise.
31233
31234 2008-12-14  Bruno Haible  <bruno@clisp.org>
31235
31236         Update doc for POSIX:2008.
31237         * doc/posix-functions/faccessat.texi: New file.
31238         * doc/posix-functions/fchmodat.texi: New file.
31239         * doc/posix-functions/fchownat.texi: New file.
31240         * doc/posix-functions/fdopendir.texi: New file.
31241         * doc/posix-functions/fstatat.texi: New file.
31242         * doc/posix-functions/futimens.texi: New file.
31243         * doc/posix-functions/linkat.texi: New file.
31244         * doc/posix-functions/mkdirat.texi: New file.
31245         * doc/posix-functions/mkfifoat.texi: New file.
31246         * doc/posix-functions/mknodat.texi: New file.
31247         * doc/posix-functions/open_wmemstream.texi: New file.
31248         * doc/posix-functions/openat.texi: New file.
31249         * doc/posix-functions/psiginfo.texi: New file.
31250         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
31251         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
31252         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
31253         * doc/posix-functions/readlinkat.texi: New file.
31254         * doc/posix-functions/renameat.texi: New file.
31255         * doc/posix-functions/strerror_l.texi: New file.
31256         * doc/posix-functions/symlinkat.texi: New file.
31257         * doc/posix-functions/unlinkat.texi: New file.
31258         * doc/posix-functions/utimensat.texi: New file.
31259         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31260
31261 2008-12-14  Bruno Haible  <bruno@clisp.org>
31262
31263         Update doc for POSIX:2008.
31264         * doc/posix-functions/alphasort.texi: Renamed from
31265         doc/glibc-functions/alphasort.texi.
31266         * doc/posix-functions/dirfd.texi: Renamed from
31267         doc/glibc-functions/dirfd.texi.
31268         * doc/posix-functions/dprintf.texi: Renamed from
31269         doc/glibc-functions/dprintf.texi.
31270         * doc/posix-functions/duplocale.texi: Renamed from
31271         doc/glibc-functions/duplocale.texi.
31272         * doc/posix-functions/fexecve.texi: Renamed from
31273         doc/glibc-functions/fexecve.texi.
31274         * doc/posix-functions/fmemopen.texi: Renamed from
31275         doc/glibc-functions/fmemopen.texi.
31276         * doc/posix-functions/freelocale.texi: Renamed from
31277         doc/glibc-functions/freelocale.texi.
31278         * doc/posix-functions/getdate_err.texi: Renamed from
31279         doc/glibc-functions/getdate_err.texi.
31280         * doc/posix-functions/isalnum_l.texi: Renamed from
31281         doc/glibc-functions/isalnum_l.texi.
31282         * doc/posix-functions/isalpha_l.texi: Renamed from
31283         doc/glibc-functions/isalpha_l.texi.
31284         * doc/posix-functions/isblank_l.texi: Renamed from
31285         doc/glibc-functions/isblank_l.texi.
31286         * doc/posix-functions/iscntrl_l.texi: Renamed from
31287         doc/glibc-functions/iscntrl_l.texi.
31288         * doc/posix-functions/isdigit_l.texi: Renamed from
31289         doc/glibc-functions/isdigit_l.texi.
31290         * doc/posix-functions/isgraph_l.texi: Renamed from
31291         doc/glibc-functions/isgraph_l.texi.
31292         * doc/posix-functions/islower_l.texi: Renamed from
31293         doc/glibc-functions/islower_l.texi.
31294         * doc/posix-functions/isprint_l.texi: Renamed from
31295         doc/glibc-functions/isprint_l.texi.
31296         * doc/posix-functions/ispunct_l.texi: Renamed from
31297         doc/glibc-functions/ispunct_l.texi.
31298         * doc/posix-functions/isspace_l.texi: Renamed from
31299         doc/glibc-functions/isspace_l.texi.
31300         * doc/posix-functions/isupper_l.texi: Renamed from
31301         doc/glibc-functions/isupper_l.texi.
31302         * doc/posix-functions/iswalnum_l.texi: Renamed from
31303         doc/glibc-functions/iswalnum_l.texi.
31304         * doc/posix-functions/iswalpha_l.texi: Renamed from
31305         doc/glibc-functions/iswalpha_l.texi.
31306         * doc/posix-functions/iswblank_l.texi: Renamed from
31307         doc/glibc-functions/iswblank_l.texi.
31308         * doc/posix-functions/iswcntrl_l.texi: Renamed from
31309         doc/glibc-functions/iswcntrl_l.texi.
31310         * doc/posix-functions/iswctype_l.texi: Renamed from
31311         doc/glibc-functions/iswctype_l.texi.
31312         * doc/posix-functions/iswdigit_l.texi: Renamed from
31313         doc/glibc-functions/iswdigit_l.texi.
31314         * doc/posix-functions/iswgraph_l.texi: Renamed from
31315         doc/glibc-functions/iswgraph_l.texi.
31316         * doc/posix-functions/iswlower_l.texi: Renamed from
31317         doc/glibc-functions/iswlower_l.texi.
31318         * doc/posix-functions/iswprint_l.texi: Renamed from
31319         doc/glibc-functions/iswprint_l.texi.
31320         * doc/posix-functions/iswpunct_l.texi: Renamed from
31321         doc/glibc-functions/iswpunct_l.texi.
31322         * doc/posix-functions/iswspace_l.texi: Renamed from
31323         doc/glibc-functions/iswspace_l.texi.
31324         * doc/posix-functions/iswupper_l.texi: Renamed from
31325         doc/glibc-functions/iswupper_l.texi.
31326         * doc/posix-functions/iswxdigit_l.texi: Renamed from
31327         doc/glibc-functions/iswxdigit_l.texi.
31328         * doc/posix-functions/isxdigit_l.texi: Renamed from
31329         doc/glibc-functions/isxdigit_l.texi.
31330         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
31331         doc/glibc-functions/mbsnrtowcs.texi.
31332         * doc/posix-functions/mkdtemp.texi: Renamed from
31333         doc/glibc-functions/mkdtemp.texi.
31334         * doc/posix-functions/newlocale.texi: Renamed from
31335         doc/glibc-functions/newlocale.texi.
31336         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
31337         doc/glibc-functions/nl_langinfo_l.texi.
31338         * doc/posix-functions/open_memstream.texi: Renamed from
31339         doc/glibc-functions/open_memstream.texi.
31340         * doc/posix-functions/opterr.texi: Renamed from
31341         doc/glibc-functions/opterr.texi.
31342         * doc/posix-functions/optind.texi: Renamed from
31343         doc/glibc-functions/optind.texi.
31344         * doc/posix-functions/optopt.texi: Renamed from
31345         doc/glibc-functions/optopt.texi.
31346         * doc/posix-functions/psignal.texi: Renamed from
31347         doc/glibc-functions/psignal.texi.
31348         * doc/posix-functions/scandir.texi: Renamed from
31349         doc/glibc-functions/scandir.texi.
31350         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
31351         doc/glibc-functions/sched_get_priority_min.texi.
31352         * doc/posix-functions/signgam.texi: Renamed from
31353         doc/glibc-functions/signgam.texi.
31354         * doc/posix-functions/stpcpy.texi: Renamed from
31355         doc/glibc-functions/stpcpy.texi.
31356         * doc/posix-functions/stpncpy.texi: Renamed from
31357         doc/glibc-functions/stpncpy.texi.
31358         * doc/posix-functions/strcasecmp_l.texi: Renamed from
31359         doc/glibc-functions/strcasecmp_l.texi.
31360         * doc/posix-functions/strcoll_l.texi: Renamed from
31361         doc/glibc-functions/strcoll_l.texi.
31362         * doc/posix-functions/strfmon_l.texi: Renamed from
31363         doc/glibc-functions/strfmon_l.texi.
31364         * doc/posix-functions/strftime_l.texi: Renamed from
31365         doc/glibc-functions/strftime_l.texi.
31366         * doc/posix-functions/strncasecmp_l.texi: Renamed from
31367         doc/glibc-functions/strncasecmp_l.texi.
31368         * doc/posix-functions/strndup.texi: Renamed from
31369         doc/glibc-functions/strndup.texi.
31370         * doc/posix-functions/strnlen.texi: Renamed from
31371         doc/glibc-functions/strnlen.texi.
31372         * doc/posix-functions/strsignal.texi: Renamed from
31373         doc/glibc-functions/strsignal.texi.
31374         * doc/posix-functions/strxfrm_l.texi: Renamed from
31375         doc/glibc-functions/strxfrm_l.texi.
31376         * doc/posix-functions/timer_gettime.texi: Renamed from
31377         doc/glibc-functions/timer_gettime.texi.
31378         * doc/posix-functions/tolower_l.texi: Renamed from
31379         doc/glibc-functions/tolower_l.texi.
31380         * doc/posix-functions/toupper_l.texi: Renamed from
31381         doc/glibc-functions/toupper_l.texi.
31382         * doc/posix-functions/towctrans_l.texi: Renamed from
31383         doc/glibc-functions/towctrans_l.texi.
31384         * doc/posix-functions/towlower_l.texi: Renamed from
31385         doc/glibc-functions/towlower_l.texi.
31386         * doc/posix-functions/towupper_l.texi: Renamed from
31387         doc/glibc-functions/towupper_l.texi.
31388         * doc/posix-functions/uselocale.texi: Renamed from
31389         doc/glibc-functions/uselocale.texi.
31390         * doc/posix-functions/vdprintf.texi: Renamed from
31391         doc/glibc-functions/vdprintf.texi.
31392         * doc/posix-functions/wcpcpy.texi:
31393         Renamed from doc/glibc-functions/wcpcpy.texi.
31394         * doc/posix-functions/wcpncpy.texi: Renamed from
31395         doc/glibc-functions/wcpncpy.texi.
31396         * doc/posix-functions/wcscasecmp.texi: Renamed from
31397         doc/glibc-functions/wcscasecmp.texi.
31398         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
31399         doc/glibc-functions/wcscasecmp_l.texi.
31400         * doc/posix-functions/wcscoll_l.texi: Renamed from
31401         doc/glibc-functions/wcscoll_l.texi.
31402         * doc/posix-functions/wcsdup.texi: Renamed from
31403         doc/glibc-functions/wcsdup.texi.
31404         * doc/posix-functions/wcsncasecmp.texi: Renamed from
31405         doc/glibc-functions/wcsncasecmp.texi.
31406         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
31407         doc/glibc-functions/wcsncasecmp_l.texi.
31408         * doc/posix-functions/wcsnlen.texi: Renamed from
31409         doc/glibc-functions/wcsnlen.texi.
31410         * doc/posix-functions/wcsnrtombs.texi: Renamed from
31411         doc/glibc-functions/wcsnrtombs.texi.
31412         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
31413         doc/glibc-functions/wcsxfrm_l.texi.
31414         * doc/posix-functions/wctrans_l.texi: Renamed from
31415         doc/glibc-functions/wctrans_l.texi.
31416         * doc/posix-functions/wctype_l.texi: Renamed from
31417         doc/glibc-functions/wctype_l.texi.
31418         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31419         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
31420         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
31421         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
31422         these subsections.
31423         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
31424         Remove sections.
31425
31426 2008-12-14  Bruno Haible  <bruno@clisp.org>
31427
31428         Update doc for POSIX:2008.
31429         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31430
31431 2008-12-14  Bruno Haible  <bruno@clisp.org>
31432
31433         Update doc for POSIX:2008.
31434         * doc/pastposix-functions/bcmp.texi: Renamed from
31435         doc/posix-functions/bcmp.texi.
31436         * doc/pastposix-functions/bcopy.texi: Renamed from
31437         doc/posix-functions/bcopy.texi.
31438         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31439         doc/posix-functions/bsd_signal.texi.
31440         * doc/pastposix-functions/bzero.texi: Renamed from
31441         doc/posix-functions/bzero.texi.
31442         * doc/pastposix-functions/ecvt.texi: Renamed from
31443         doc/posix-functions/ecvt.texi.
31444         * doc/pastposix-functions/fcvt.texi: Renamed from
31445         doc/posix-functions/fcvt.texi.
31446         * doc/pastposix-functions/ftime.texi: Renamed from
31447         doc/posix-functions/ftime.texi.
31448         * doc/pastposix-functions/gcvt.texi: Renamed from
31449         doc/posix-functions/gcvt.texi.
31450         * doc/pastposix-functions/getcontext.texi: Renamed from
31451         doc/posix-functions/getcontext.texi.
31452         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
31453         doc/posix-functions/gethostbyaddr.texi.
31454         * doc/pastposix-functions/gethostbyname.texi: Renamed from
31455         doc/posix-functions/gethostbyname.texi.
31456         * doc/pastposix-functions/getwd.texi: Renamed from
31457         doc/posix-functions/getwd.texi.
31458         * doc/pastposix-functions/h_errno.texi: Renamed from
31459         doc/posix-functions/h_errno.texi.
31460         * doc/pastposix-functions/index.texi: Renamed from
31461         doc/posix-functions/index.texi.
31462         * doc/pastposix-functions/makecontext.texi: Renamed from
31463         doc/posix-functions/makecontext.texi.
31464         * doc/pastposix-functions/mktemp.texi: Renamed from
31465         doc/posix-functions/mktemp.texi.
31466         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
31467         doc/posix-functions/pthread_attr_getstackaddr.texi.
31468         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
31469         doc/posix-functions/pthread_attr_setstackaddr.texi.
31470         * doc/pastposix-functions/rindex.texi: Renamed from
31471         doc/posix-functions/rindex.texi.
31472         * doc/pastposix-functions/scalb.texi: Renamed from
31473         doc/posix-functions/scalb.texi.
31474         * doc/pastposix-functions/setcontext.texi: Renamed from
31475         doc/posix-functions/setcontext.texi.
31476         * doc/pastposix-functions/swapcontext.texi: Renamed from
31477         doc/posix-functions/swapcontext.texi.
31478         * doc/pastposix-functions/ualarm.texi: Renamed from
31479         doc/posix-functions/ualarm.texi.
31480         * doc/pastposix-functions/usleep.texi: Renamed from
31481         doc/posix-functions/usleep.texi.
31482         * doc/pastposix-functions/vfork.texi: Renamed from
31483         doc/posix-functions/vfork.texi.
31484         * doc/pastposix-functions/wcswcs.texi: Renamed from
31485         doc/posix-functions/wcswcs.texi.
31486         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
31487         (Function Substitutes): Update.
31488
31489 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31490
31491         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
31492         m4/strerror.m4.
31493
31494 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31495             Bruno Haible  <bruno@clisp.org>
31496
31497         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
31498
31499 2008-12-13  Bruno Haible  <bruno@clisp.org>
31500
31501         * modules/strtoull (Depends-on): Remove unistd.
31502
31503 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31504
31505         * modules/strtoull (Depends-on): Add stdlib.
31506
31507 2008-12-11  Simon Josefsson  <simon@josefsson.org>
31508
31509         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
31510
31511 2008-12-10  Jim Meyering  <meyering@redhat.com>
31512
31513         gl_ASSERT: don't say assertions are disabled when they're not
31514         * m4/assert.m4 (gl_ASSERT): Do not make configure report
31515         "checking whether to enable assertions... no", when they are in
31516         fact enabled.  This is solely a bug in the output of configure.
31517         In spite of saying "no", NDEBUG was not defined in that case.
31518         Also, as noted by Eric Blake, leave assertions enabled upon
31519         --enable-assert=INVALID.
31520
31521 2008-12-10  Bruno Haible  <bruno@clisp.org>
31522
31523         Change MODULES.html to refer to POSIX:2008 where possible.
31524         * MODULES.html.sh (POSIX2008_URL): New variable.
31525         (posix_headers): Remove sys/timeb, ucontext.
31526         (posix2001_headers): New variable.
31527         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
31528         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
31529         index, makecontext, mktemp, pthread_attr_getstackaddr,
31530         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
31531         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
31532         (posix2001_functions): New variable.
31533         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
31534         otherwise.
31535
31536 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31537
31538         add missing include to parse-duration.c
31539         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
31540         * modules/parse-duration (Depends-on): Add xalloc.
31541
31542         fix sed script reading maint.mk
31543         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
31544         (syntax-check-rules): Use it.
31545
31546 2008-12-09  Bruno Haible  <bruno@clisp.org>
31547
31548         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
31549         MacOS X 10.4/PowerPC.
31550         Reported by Simon Josefsson.
31551
31552 2008-12-08  Jim Meyering  <meyering@redhat.com>
31553
31554         work around mingw's lack of some S_IF definitions
31555         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
31556         Reported by Simon Josefsson.
31557
31558 2008-12-08  Bruno Haible  <bruno@clisp.org>
31559
31560         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
31561         applied to variables. Needed on MacOS X 10.4/PowerPC.
31562         Reported by Simon Josefsson.
31563
31564 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
31565         and Eric Blake  <ebb9@byu.net>
31566
31567         assert: honor --enable-assert
31568         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
31569         order to honor --enable-assert, rather than treating it as a
31570         synonym for --disable-assert.
31571
31572 2008-12-08  Jim Meyering  <meyering@redhat.com>
31573
31574         * lib/posixtm.c: Remove now-useless declaration of mktime.
31575
31576         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
31577
31578 2008-12-07  Bruno Haible  <bruno@clisp.org>
31579
31580         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
31581         test_once): Mark functions as static.
31582         * tests/test-tls.c (test_tls): Likewise.
31583
31584 2008-12-07  Bruno Haible  <bruno@clisp.org>
31585
31586         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
31587         iconv_register_autodetect.
31588
31589 2008-12-07  Jim Meyering  <meyering@redhat.com>
31590
31591         posixtm.c: avoid a warning
31592         * lib/posixtm.c (posixtime): Don't initialize tm0.
31593         It's no longer needed to placate gcc4's -Wuninitialized,
31594         and the attempt to placate would elicit a new warning.
31595
31596         unicodeio.c: mark unused parameters
31597         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31598         (fallback_failure_callback): Likewise.
31599
31600 2008-12-07  Bruno Haible  <bruno@clisp.org>
31601
31602         * gnulib-tool (func_create_testdir): When building the tests
31603         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
31604         Reported by Simon Josefsson.
31605
31606 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31607
31608         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
31609
31610 2008-12-06  Bruno Haible  <bruno@clisp.org>
31611
31612         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
31613         Suggested by Eric Blake.
31614
31615 2008-12-06  Bruno Haible  <bruno@clisp.org>
31616
31617         Fix a c-stack test failure on MacOS X.
31618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
31619         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
31620         handler for SIGBUS as well.
31621         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
31622         install a signal handler for SIGBUS as well.
31623         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
31624
31625 2008-12-06  Bruno Haible  <bruno@clisp.org>
31626
31627         Advocacy documentation.
31628         * doc/gnulib-intro.texi (Benefits): New section.
31629         * doc/gnulib.texi: Update.
31630
31631 2008-12-06  Bruno Haible  <bruno@clisp.org>
31632
31633         Document the 'manywarnings' module.
31634         * doc/manywarnings.texi: New file.
31635         * doc/gnulib.texi: Include it.
31636
31637 2008-12-05  Eric Blake  <ebb9@byu.net>
31638
31639         tests: silence some gcc warnings
31640         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
31641         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31642         type mismatches.
31643
31644 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31645             Bruno Haible  <bruno@clisp.org>
31646
31647         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31648
31649 2008-11-29  Jim Meyering  <meyering@redhat.com>
31650
31651         unicodeio.c: mark unused parameters
31652         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31653         (fallback_failure_callback): Likewise.
31654
31655         fts: fix a thinko
31656         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31657         (set_stat_type): Return S_IF*-valued "type" directly.
31658         Prompted by James Youngman's spotting a related bug.
31659         Confirmed by further testing through find.
31660
31661         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31662         * lib/fts.c (D_TYPE): Define.
31663         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31664         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31665         (s_ifmt_shift_bits): New function.
31666         (set_stat_type): New function.
31667         (fts_build): When not calling fts_stat, call set_stat_type
31668         to propagate dirent.d_type info to fts_read caller.
31669         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
31670         fts_statp->st_mode type information may be valid.
31671
31672 2008-11-28  Simon Josefsson  <simon@josefsson.org>
31673
31674         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
31675         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
31676         <sds@gnu.org>.
31677
31678 2008-11-20  Bruno Haible  <bruno@clisp.org>
31679
31680         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
31681         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
31682         INCLUDE_NEXT.
31683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
31684         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
31685         * modules/math (Makefile.am): Substitute
31686         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
31687         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31688
31689 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31690             Bruno Haible  <bruno@clisp.org>
31691
31692         * lib/stdint.in.h: Define all type macros so that their expansion is
31693         a single typedef'ed token. Fixes a compilation failure in Boost which
31694         does "using ::int8_t;".
31695
31696 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31697
31698         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
31699         gl_MANYWARN_ALL_GCC.
31700         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
31701         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
31702         * modules/manywarnings: New file.
31703         * MODULES.html.sh: Mention manywarnings module.
31704
31705 2008-11-18  Bruno Haible  <bruno@clisp.org>
31706
31707         * doc/gnulib-tool.texi (Unit tests): New section.
31708
31709 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31710
31711         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
31712         paths like 'lib/po/foo.po'.
31713
31714 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31715
31716         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
31717         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
31718
31719 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31720
31721         * m4/warnings.m4: Use CPPFLAGS to really check whether the
31722         parameter works.
31723
31724 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31725
31726         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
31727
31728 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31729
31730         * modules/parse-duration-tests: New file.
31731         * tests/test-parse-duration.sh: New file.
31732         * tests/test-parse-duration.c: New file.
31733
31734         New module 'parse-duration'.
31735         * lib/parse-duration.h: New file.
31736         * lib/parse-duration.c: New file.
31737         * modules/parse-duration: New file.
31738
31739 2008-11-17  Bruno Haible  <bruno@clisp.org>
31740
31741         * tests/test-select-out.sh: Comment out the first pipe test.
31742         Reported by Simon Josefsson.
31743
31744 2008-11-17  Bruno Haible  <bruno@clisp.org>
31745
31746         * modules/getaddrinfo (Depends-on): Add servent, hostent.
31747         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
31748         gl_HOSTENT.
31749
31750 2008-11-17  Bruno Haible  <bruno@clisp.org>
31751
31752         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
31753         -lnetwork and -lnet. Needed for Haiku and BeOS.
31754
31755 2008-11-16  Bruno Haible  <bruno@clisp.org>
31756
31757         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
31758
31759 2008-11-16  Bruno Haible  <bruno@clisp.org>
31760
31761         Avoid test failure on Haiku.
31762         * tests/test-fsync.c: Include <errno.h>.
31763         (main): Don't require that fsync (0) fails.
31764
31765 2008-11-15  Bruno Haible  <bruno@clisp.org>
31766
31767         New module 'hostent'.
31768         * modules/hostent: New file.
31769         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
31770
31771 2008-11-15  Bruno Haible  <bruno@clisp.org>
31772
31773         New module 'servent'.
31774         * modules/servent: New file.
31775         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
31776
31777 2008-11-15  Bruno Haible  <bruno@clisp.org>
31778
31779         Avoid generating same test program with two different rules.
31780         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31781         test-frexp to test-frexp-nolibm.
31782         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31783         test-frexpl to test-frexpl-nolibm.
31784
31785 2008-11-15  Bruno Haible  <bruno@clisp.org>
31786
31787         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31788         $(FREXPL_LIBM).
31789
31790 2008-11-15  Bruno Haible  <bruno@clisp.org>
31791
31792         * lib/netdb.in.h: Activate the definitions also when the system's
31793         <netdb.h> has 'struct addrinfo'.
31794         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31795         EAI_OVERFLOW or AI_NUMERICSERV.
31796         * doc/posix-headers/netdb.texi: Document the problem.
31797
31798 2008-11-15  Bruno Haible  <bruno@clisp.org>
31799
31800         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31801
31802         Make the 'sched' module work on platforms where <sched.h> exists but
31803         is incomplete (such as Haiku).
31804         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31805         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31806         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31807         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31808         HAVE_STRUCT_SCHED_PARAM.
31809         * modules/sched (Depends-on): Add include_next.
31810         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31811         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31812         * doc/posix-headers/sched.texi: Document the issue.
31813
31814 2008-11-13  Jim Meyering  <meyering@redhat.com>
31815
31816         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
31817         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
31818         test would fail due to the difference in the Report bugs to ...
31819         line.  The expected address is empty, "<>", while the actual
31820         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
31821
31822 2008-11-12  Bruno Haible  <bruno@clisp.org>
31823
31824         lstat: don't compile lstat.c on systems lacking lstat
31825         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
31826         which don't have lstat; this is handled by lib/sys_stat.in.h already.
31827         Reported by Daniel P. Berrange via Jim Meyering.
31828
31829 2008-11-12  Jim Meyering  <meyering@redhat.com>
31830
31831         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
31832
31833 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31834
31835         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
31836         instead.
31837
31838 2008-11-12  Bruno Haible  <bruno@clisp.org>
31839
31840         * lib/unicodeio.c: Include unistr.h.
31841         (utf8_wctomb): Remove function.
31842         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
31843
31844 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31845
31846         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
31847         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
31848         <bruno@clisp.org>.
31849         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
31850
31851 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31852
31853         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
31854         * doc/gnulib.texi: Add section for warnings.
31855
31856 2008-11-11  Bruno Haible  <bruno@clisp.org>
31857
31858         * lib/sockets.h: Add a comment.
31859
31860 2008-11-11  Karl Berry  <karl@gnu.org>
31861
31862         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
31863
31864 2008-11-11  Eric Blake  <ebb9@byu.net>
31865
31866         fdl.texi: avoid git symlinks
31867         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
31868
31869 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31870
31871         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
31872
31873 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31874
31875         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
31876         (gl_WARN_ADD): Substitute $2 if literal.
31877
31878 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31879
31880         * m4/warning.m4: Remove.
31881
31882 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31883
31884         * m4/warnings.m4: Almost complete rewrite. :-)
31885
31886 2008-11-10  Simon Josefsson  <simon@josefsson.org>
31887
31888         * modules/warnings: New module.
31889         * m4/warnings.m4: New file.
31890         * MODULES.html.sh: Mention warnings module.
31891         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
31892         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31893
31894 2008-11-10  Eric Blake  <ebb9@byu.net>
31895
31896         fdl.texi: make a symlink to the latest version
31897         * doc/standards.texi: Revert today's earlier change.
31898         * doc/fdl-1.2.texi: Rename from old fdl.texi...
31899         * doc/fdl.texi: ...and replace this with a symlink to the newer
31900         fdl-1.3.texi.
31901
31902 2008-11-10  Bruno Haible  <bruno@clisp.org>
31903
31904         * tests/test-select-fd.c (main): Accept the result file name as fourth
31905         argument.
31906         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
31907         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
31908
31909 2008-11-10  Bruno Haible  <bruno@clisp.org>
31910
31911         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
31912         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
31913         as autoconf-substituted macros.
31914         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
31915         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
31916         gl_NETDB_H_DEFAULTS. Set these variables.
31917         * modules/netdb (Makefile.am): Substitute these variables.
31918
31919 2008-11-10  Eric Blake  <ebb9@byu.net>
31920
31921         standards.texi: include correct file for FDL 1.3
31922         * doc/standards.texi (GNU Free Documentation License): Change
31923         include file to pull in FDL 1.3, not 1.2.
31924
31925         fdl.texi: revert accidental change to license
31926         * doc/fdl.texi: This is FDL 1.2, not 1.3.
31927
31928 2008-11-10  Bruno Haible  <bruno@clisp.org>
31929
31930         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
31931         cross-compiling guesses also when the native compile gives no result.
31932
31933 2008-11-10  Bruno Haible  <bruno@clisp.org>
31934
31935         * lib/spawni.c (__spawni): Force variable into the stack.
31936
31937 2008-11-10  Bruno Haible  <bruno@clisp.org>
31938
31939         Add support for Haiku.
31940         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
31941         glibc and BeOS, but also on Haiku.
31942         * lib/fpurge.c (fpurge): Likewise.
31943         * lib/freadable.c (freadable): Likewise.
31944         * lib/freadahead.c (freadahead): Likewise.
31945         * lib/freading.c (freading): Likewise.
31946         * lib/freadptr.c (freadptr): Likewise.
31947         * lib/freadseek.c (freadptrinc): Likewise.
31948         * lib/fseeko.c (rpl_fseeko): Likewise.
31949         * lib/fseterr.c (fseterr): Likewise.
31950         * lib/fwritable.c (fwritable): Likewise.
31951         * lib/fwriting.c (fwriting): Likewise.
31952         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
31953
31954 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31955
31956         * lib/config.charset: Treat Haiku like BeOS.
31957
31958 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31959
31960         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
31961         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
31962
31963 2008-11-08  Bruno Haible  <bruno@clisp.org>
31964
31965         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
31966         AC_CACHE_CHECK.
31967
31968 2008-11-08  Bruno Haible  <bruno@clisp.org>
31969
31970         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
31971
31972 2008-11-08  Bruno Haible  <bruno@clisp.org>
31973
31974         * tests/test-select-fd.c: New file.
31975         * tests/test-select-in.sh: New file.
31976         * tests/test-select-out.sh: New file.
31977         * tests/test-select-stdin.c: New file.
31978         * modules/select-tests (Files): Add the new files.
31979         (Depends-on): Add gettimeofday.
31980         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
31981         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
31982         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
31983
31984 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
31985             Bruno Haible  <bruno@clisp.org>
31986
31987         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
31988
31989 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
31990
31991         * build-aux/pmccabe2html: Added support for C++ source files.
31992
31993 2008-11-05  Ben Pfaff  <blp@gnu.org>
31994
31995         Fix lib/close.c build on Windows.
31996         * modules/close (Files): Add lib/w32sock.h.
31997
31998 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
31999
32000         Accept Bison's NEWS format.
32001         * build-aux/announce-gen (print_news_deltas): Tweak
32002         $re_prefix.
32003
32004 2008-11-04  Bruno Haible  <bruno@clisp.org>
32005
32006         * modules/random_r (Maintainer): Add glibc.
32007
32008 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32009
32010         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32011         by karl@freefriends.org (Karl Berry).
32012         * doc/alloca.texi: Likewise.
32013         * doc/c-ctype.texi: Likewise.
32014         * doc/c-strcase.texi: Likewise.
32015         * doc/c-strcaseeq.texi: Likewise.
32016         * doc/c-strcasestr.texi: Likewise.
32017         * doc/c-strstr.texi: Likewise.
32018         * doc/c-strtod.texi: Likewise.
32019         * doc/c-strtold.texi: Likewise.
32020         * doc/ctime.texi: Likewise.
32021         * doc/error.texi: Likewise.
32022         * doc/fdl.texi: Likewise.
32023         * doc/gcd.texi: Likewise.
32024         * doc/getdate.texi: Likewise.
32025         * doc/gnulib-intro.texi: Likewise.
32026         * doc/gnulib-tool.texi: Likewise.
32027         * doc/gnulib.texi: Likewise.
32028         * doc/inet_ntoa.texi: Likewise.
32029         * doc/maintain.texi: Likewise.
32030         * doc/make-stds.texi: Likewise.
32031         * doc/quote.texi: Likewise.
32032         * doc/regexprops-generic.texi: Likewise.
32033         * doc/standards.texi: Likewise.
32034         * doc/verify.texi: Likewise.
32035         * doc/visibility.texi: Likewise.
32036         * doc/gnulib.texi (GNU Free Documentation License): Include
32037         fdl-1.3.texi instead of fdl.texi.
32038
32039 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32040
32041         * doc/fdl-1.3.texi: New file, from
32042         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32043         * modules/fdl-1.3: Add.
32044         * MODULES.html.sh: Add fdl-1.3.
32045
32046 2008-11-03  Bruno Haible  <bruno@clisp.org>
32047
32048         Make determination of absolute name of header file work with AIX xlc.
32049         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32050         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32051         preprocessing.
32052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32053         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32054
32055 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32056
32057         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32058         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32059         <ludo@gnu.org>.
32060
32061 2008-11-02  Bruno Haible  <bruno@clisp.org>
32062
32063         Mark 'strpbrk' obsolete.
32064         * modules/strpbrk (Status, Notice): New sections.
32065         * modules/strtok_r (Depends-on): Add strpbrk.
32066
32067 2008-11-02  Bruno Haible  <bruno@clisp.org>
32068
32069         Mark 'strdup' obsolete.
32070         * modules/strdup (Status, Notice): New sections.
32071         * modules/findprog (Depends-on): Add strdup.
32072         * modules/getaddrinfo (Depends-on): Likewise.
32073         * modules/localename (Depends-on): Likewise.
32074         * modules/relocatable-lib (Depends-on): Likewise.
32075         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32076         * modules/relocatable-prog (Depends-on): Likewise.
32077         * modules/trim (Depends-on): Likewise.
32078         * modules/unictype/gen-ctype (Depends-on): Likewise.
32079         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32080
32081 2008-11-02  Bruno Haible  <bruno@clisp.org>
32082
32083         Mark 'strcspn' obsolete.
32084         * modules/strcspn (Status, Notice): New sections.
32085
32086 2008-11-02  Bruno Haible  <bruno@clisp.org>
32087
32088         Mark 'rmdir' obsolete.
32089         * modules/rmdir (Status, Notice): New sections.
32090         * modules/clean-temp (Depends-on): Add rmdir.
32091         * modules/openat (Depends-on): Likewise.
32092
32093 2008-11-02  Bruno Haible  <bruno@clisp.org>
32094
32095         Mark 'raise' obsolete.
32096         * modules/raise (Status, Notice): New sections.
32097         (Include): Specify <signal.h>.
32098         * modules/stdio (Depends-on): Add raise.
32099         * modules/write (Depends-on): Likewise.
32100
32101 2008-11-02  Bruno Haible  <bruno@clisp.org>
32102
32103         Mark 'memset' obsolete.
32104         * modules/memset (Status, Notice): New sections.
32105
32106 2008-11-02  Bruno Haible  <bruno@clisp.org>
32107
32108         Mark 'memmove' obsolete.
32109         * modules/memmove (Status, Notice): New sections.
32110         * modules/argp (Depends-on): Add memmove.
32111         * modules/argz (Depends-on): Likewise.
32112         * modules/canonicalize (Depends-on): Likewise.
32113         * modules/canonicalize-lgpl (Depends-on): Likewise.
32114         * modules/fts (Depends-on): Likewise.
32115         * modules/getcwd (Depends-on): Likewise.
32116         * modules/human (Depends-on): Likewise.
32117         * modules/regex (Depends-on): Likewise.
32118         * modules/striconveh (Depends-on): Likewise.
32119         * modules/trim (Depends-on): Likewise.
32120         * modules/unistr/u8-move (Depends-on): Likewise.
32121         * modules/unistr/u16-move (Depends-on): Likewise.
32122         * modules/unistr/u32-move (Depends-on): Likewise.
32123
32124 2008-11-02  Bruno Haible  <bruno@clisp.org>
32125
32126         Mark 'memcpy' obsolete.
32127         * modules/memcpy (Status, Notice): New sections.
32128
32129 2008-11-02  Bruno Haible  <bruno@clisp.org>
32130
32131         Mark 'memcmp' obsolete.
32132         * modules/memcmp (Status, Notice): New sections.
32133         * modules/argmatch (Depends-on): Add memchr.
32134         * modules/backupfile (Depends-on): Likewise.
32135         * modules/c-strcasestr (Depends-on): Likewise.
32136         * modules/crypto/des (Depends-on): Likewise.
32137         * modules/csharpcomp (Depends-on): Likewise.
32138         * modules/fnmatch (Depends-on): Likewise.
32139         * modules/git-merge-changelog (Depends-on): Likewise.
32140         * modules/isnand (Depends-on): Likewise.
32141         * modules/isnand-nolibm (Depends-on): Likewise.
32142         * modules/isnanf (Depends-on): Likewise.
32143         * modules/isnanf-nolibm (Depends-on): Likewise.
32144         * modules/isnanl (Depends-on): Likewise.
32145         * modules/isnanl-nolibm (Depends-on): Likewise.
32146         * modules/mbchar (Depends-on): Likewise.
32147         * modules/memcoll (Depends-on): Likewise.
32148         * modules/quotearg (Depends-on): Likewise.
32149         * modules/regex (Depends-on): Likewise.
32150         * modules/relocatable-prog (Depends-on): Likewise.
32151         * modules/same (Depends-on): Likewise.
32152         * modules/signbit (Depends-on): Likewise.
32153         * modules/strcasestr-simple (Depends-on): Likewise.
32154         * modules/unictype/gen-ctype (Depends-on): Likewise.
32155         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32156         * modules/uniname/uniname (Depends-on): Likewise.
32157         * modules/unistr/u8-cmp (Depends-on): Likewise.
32158
32159 2008-11-02  Bruno Haible  <bruno@clisp.org>
32160
32161         Mark 'memchr' obsolete.
32162         * modules/memchr (Status, Notice): New sections.
32163         * modules/argp (Depends-on): Add memchr.
32164         * modules/base64 (Depends-on): Likewise.
32165         * modules/c-strcasestr (Depends-on): Likewise.
32166         * modules/chdir-long (Depends-on): Likewise.
32167         * modules/fnmatch (Depends-on): Likewise.
32168         * modules/getsubopt (Depends-on): Likewise.
32169         * modules/git-merge-changelog (Depends-on): Likewise.
32170         * modules/glob (Depends-on): Likewise.
32171         * modules/strcasestr-simple (Depends-on): Likewise.
32172         * modules/strnlen (Depends-on): Likewise.
32173
32174 2008-11-02  Bruno Haible  <bruno@clisp.org>
32175
32176         Mark 'atexit' obsolete.
32177         * modules/atexit (Status, Notice): New sections.
32178         * modules/chdir-long (Depends-on): Add atexit.
32179         * modules/wait-process (Depends-on): Likewise.
32180
32181 2008-11-02  Bruno Haible  <bruno@clisp.org>
32182
32183         * gnulib-tool: New option --with-obsolete.
32184         (func_usage): Document it.
32185         (func_modules_transitive_closure): Drop obsolete dependencies if
32186         incobsolete is not true.
32187         (func_import): Read and save the incobsolete variable to the cache.
32188
32189 2008-11-02  Bruno Haible  <bruno@clisp.org>
32190
32191         * modules/TEMPLATE-EXTENDED: New field 'Status'.
32192         * gnulib-tool: New option --extract-status.
32193         (func_usage): Document it.
32194         (sed_extract_prog): Recognize it.
32195         (func_get_status): New function.
32196
32197 2008-10-30  Simon Josefsson  <simon@josefsson.org>
32198
32199         * modules/sockets (License): Change from LGPL to LGPLv2+.
32200
32201 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32202
32203         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
32204
32205 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32206
32207         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32208         Mention times and sys_times.
32209         * modules/sys_times, modules/sys_times-tests: New modules.
32210         * modules/times, modules/times-tests: Likewise
32211         * m4/sys_times_h.m4: New file.
32212         * lib/sys_times.in.h: Likewise
32213         * lib/times.c: Likewise.
32214         * tests/test-sys_times.c: Likewise.
32215         * tests/test-times.c: Likewise.
32216         * doc/posix-headers/sys_times.texi: Update.
32217         * doc/posix-functions/times.texi: Update.
32218
32219 2008-10-28  Jim Meyering  <meyering@redhat.com>
32220
32221         * modules/tempname (Depends-on): Add lstat.
32222
32223         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
32224
32225 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32226
32227         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
32228         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
32229         using idiom used elsewhere in gnulib.
32230
32231 2008-10-27  Jim Meyering  <meyering@redhat.com>
32232
32233         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
32234
32235 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32236
32237         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
32238         TESTS_ENVIRONMENT, for shell scripts that needs to call built
32239         programs.
32240         * tests/test-argp-2.sh: Use $EXEEXT when needed.
32241
32242 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32243
32244         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
32245
32246 2008-10-27  Bruno Haible  <bruno@clisp.org>
32247
32248         * tests/test-lstat.c: Include <stdio.h>.
32249
32250 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32251
32252         * modules/lstat-tests: New module.
32253         * tests/test-lstat.c: New file.
32254
32255 2008-10-26  Jim Meyering  <meyering@redhat.com>
32256
32257         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
32258
32259 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32260             Bruno Haible  <bruno@clisp.org>
32261
32262         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
32263         * modules/configmake (Include): Add a note that the include must come
32264         after all system headers.
32265         * lib/javaversion.c: Include configmake.h after all other includes.
32266
32267 2008-10-26  Bruno Haible  <bruno@clisp.org>
32268
32269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
32270         HAVE_STRUCT_RANDOM_DATA to 1.
32271         (gl_STDLIB_H): Simplify.
32272
32273 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32274
32275         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
32276         substitute HAVE_STRUCT_RANDOM_DATA.
32277         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
32278         random_data.
32279         * modules/stdlib (Makefile.am): Substitute
32280         HAVE_STRUCT_RANDOM_DATA.
32281
32282 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32283
32284         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
32285         * doc/gnulib-intro.texi (Copyright): Likewise.
32286
32287 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32288
32289         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
32290         findings.
32291
32292 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
32293             Bruno Haible  <bruno@clisp.org>
32294
32295         * lib/unistd.in.h: Include <winsock2.h>.
32296         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
32297         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
32298         Provide dummy declarations.
32299         (gethostname): Override.
32300         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
32301         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
32302         gl_PREREQ_SYS_H_WINSOCK2.
32303         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
32304         * doc/posix-functions/gethostname.texi: More details.
32305
32306 2008-10-25  Bruno Haible  <bruno@clisp.org>
32307
32308         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32309         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
32310         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
32311
32312         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
32313         here ...
32314         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
32315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
32316         gl_UNISTD_H_DEFAULTS.
32317
32318 2008-10-25  Eric Blake  <ebb9@byu.net>
32319
32320         signbit: avoid spurious compiler failure
32321         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
32322         declarations inside function.
32323
32324 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32325             Bruno Haible  <bruno@clisp.org>
32326
32327         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
32328         * modules/random_r (Depends-on): Add stdint.
32329
32330 2008-10-24  Bruno Haible  <bruno@clisp.org>
32331
32332         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
32333         Eggert.
32334         * modules/strerror (License): Likewise.
32335
32336 2008-10-24  Jim Meyering  <meyering@redhat.com>
32337
32338         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
32339         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
32340
32341 2008-10-24  Eric Blake  <ebb9@byu.net>
32342
32343         getgroups: fix compilation when getgroups is available
32344         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
32345         but with <config.h> override of getgroups disabled.
32346
32347 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32348
32349         * doc/gnulib.texi (Header files): Add note about C++ problems.
32350         Explained by Bruno Haible <bruno@clisp.org>.
32351
32352 2008-10-23  Bruno Haible  <bruno@clisp.org>
32353
32354         Define a dummy SA_NODEFER macro on Interix.
32355         * lib/signal.in.h (SA_NODEFER): Define fallback.
32356         Reported by Aleksey Cheusov <cheusov@tut.by> via
32357         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
32358
32359 2008-10-23  Bruno Haible  <bruno@clisp.org>
32360
32361         * modules/freadahead (License): Change to LGPLv2+.
32362         Suggested by Simon Josefsson.
32363
32364 2008-10-23  Jim Meyering  <meyering@redhat.com>
32365
32366         random_r: new module
32367         * modules/random_r: New file.
32368         * m4/random_r.m4: New file.
32369         * lib/random_r.c: New file, from glibc.
32370         * modules/random_r-tests: New file.
32371         * tests/test-random_r.c: New file.
32372         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
32373          Declare.
32374         (RAND_MAX): Define.
32375         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
32376         * modules/stdlib: Substitute them, too.
32377         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
32378         * doc/glibc-functions/initstate_r.texi: Mention the new module.
32379         * doc/glibc-functions/random_r.texi: Likewise.
32380         * doc/glibc-functions/setstate_r.texi: Likewise.
32381         * doc/glibc-functions/srandom_r.texi: Likewise.
32382         * config/srclist.txt: Mention it.
32383
32384 2008-10-23  David Lutterkort  <lutter@redhat.com>
32385
32386         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
32387         link requirement
32388
32389 2008-10-23  Jim Meyering  <meyering@redhat.com>
32390
32391         selinux-h: mark parameters of stub functions as intentionally unused
32392         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
32393         * lib/se-context.in.h: Likewise.
32394
32395 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32396
32397         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
32398
32399 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32400
32401         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
32402
32403 2008-10-22  Eric Blake  <ebb9@byu.net>
32404
32405         glthread/thread: avoid compiler warning
32406         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
32407         Add unreachable abort to silence compiler.
32408
32409 2008-10-22  Eric Blake  <ebb9@byu.net>
32410
32411         netdb: also supply struct addrinfo for cygwin 1.5.x
32412         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
32413         older cygwin.
32414         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
32415         cygwin.
32416         * doc/posix-headers/netdb.texi (netdb.h): Document this.
32417
32418 2008-10-22  Bruno Haible  <bruno@clisp.org>
32419
32420         * users.txt: Update entry about pspp.
32421
32422 2008-10-21  Bruno Haible  <bruno@clisp.org>
32423
32424         Simplification.
32425         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
32426         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
32427
32428         Simplification.
32429         * lib/ioctl.c (ioctl): Don't undefine.
32430         * lib/socket.c (socket): Don't undefine.
32431
32432         Remove unused module indicator macros.
32433         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32434         GNULIB_$1 as a C macro.
32435
32436         * doc/posix-functions/close.texi: Undo last change.
32437         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32438         Windows platforms.
32439
32440 2008-10-21  Bruno Haible  <bruno@clisp.org>
32441
32442         Add gethostname() declaration to <unistd.h>.
32443         * lib/unistd.in.h (gethostname): New declaration.
32444         * lib/gethostname.c: Include <unistd.h>.
32445         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
32446         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
32447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
32448         and HAVE_GETHOSTNAME.
32449         * modules/gethostname (Depends-on): Add unistd.
32450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32451         (Include): Specify <unistd.h>.
32452         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
32453         HAVE_GETHOSTNAME.
32454         * tests/test-gethostname.c: Include <unistd.h> first.
32455
32456 2008-10-21  Bruno Haible  <bruno@clisp.org>
32457
32458         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
32459         * modules/select-tests (Depends-on): Likewise.
32460         Reported by Simon Josefsson.
32461
32462 2008-10-21  Simon Josefsson  <simon@josefsson.org>
32463
32464         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
32465         * lib/accept.c: New file, based on winsock.c.
32466         * lib/bind.c: New file, based on winsock.c.
32467         * lib/connect.c: New file, based on winsock.c.
32468         * lib/getpeername.c: New file, based on winsock.c.
32469         * lib/getsockname.c: New file, based on winsock.c.
32470         * lib/getsockopt.c: New file, based on winsock.c.
32471         * lib/ioctl.c: New file, based on winsock.c.
32472         * lib/listen.c: New file, based on winsock.c.
32473         * lib/recv.c: New file, based on winsock.c.
32474         * lib/recvfrom.c: New file, based on winsock.c.
32475         * lib/send.c: New file, based on winsock.c.
32476         * lib/sendto.c: New file, based on winsock.c.
32477         * lib/setsockopt.c: New file, based on winsock.c.
32478         * lib/shutdown.c: New file, based on winsock.c.
32479         * lib/socket.c: New file, based on winsock.c.
32480         * lib/w32sock.h: New file, based on winsock.c.
32481         * lib/winsock.c: Remove file.
32482         * modules/accept: Likewise.
32483         * modules/bind: Likewise.
32484         * modules/connect: Likewise.
32485         * modules/getpeername: Likewise.
32486         * modules/getsockname: Likewise.
32487         * modules/getsockopt: Likewise.
32488         * modules/ioctl: Likewise.
32489         * modules/listen: Likewise.
32490         * modules/recv: Likewise.
32491         * modules/recvfrom: Likewise.
32492         * modules/send: Likewise.
32493         * modules/sendto: Likewise.
32494         * modules/setsockopt: Likewise.
32495         * modules/shutdown: Likewise.
32496         * modules/socket: Use socket.c instead of winsock.c.
32497         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
32498         * doc/posix-functions/accept.texi: Doc fix.
32499         * doc/posix-functions/bind.texi: Doc fix.
32500         * doc/posix-functions/close.texi: Doc fix.
32501         * doc/posix-functions/connect.texi: Doc fix.
32502         * doc/posix-functions/getpeername.texi: Doc fix.
32503         * doc/posix-functions/getsockname.texi: Doc fix.
32504         * doc/posix-functions/getsockopt.texi: Doc fix.
32505         * doc/posix-functions/ioctl.texi: Doc fix.
32506         * doc/posix-functions/listen.texi: Doc fix.
32507         * doc/posix-functions/recv.texi: Doc fix.
32508         * doc/posix-functions/recvfrom.texi: Doc fix.
32509         * doc/posix-functions/send.texi: Doc fix.
32510         * doc/posix-functions/sendto.texi: Doc fix.
32511         * doc/posix-functions/setsockopt.texi: Doc fix.
32512         * doc/posix-functions/shutdown.texi: Doc fix.
32513         * doc/posix-functions/socket.texi: Doc fix.
32514
32515 2008-10-20  Bruno Haible  <bruno@clisp.org>
32516
32517         Take into account the role of SIGABRT_COMPAT on Windows 2008.
32518         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
32519         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
32520         as an alias for SIGABRT.
32521         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
32522         (sigaction): Map it to SIGABRT.
32523         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
32524
32525 2008-10-20  Bruno Haible  <bruno@clisp.org>
32526
32527         * lib/fts.c: Don't include lstat.h.
32528         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
32529
32530         Move the lstat() declaration to <sys/stat.h>.
32531         * lib/lstat.h: Remove file.
32532         * lib/sys_stat.in.h: Add special invocation convention.
32533         (lstat): New declaration.
32534         * lib/lstat.c (orig_lstat): New function.
32535         (rpl_lstat): Use orig_lstat instead of lstat.
32536         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
32537         AC_C_INLINE. Set REPLACE_LSTAT.
32538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
32539         and REPLACE_LSTAT.
32540         * modules/lstat (Files): Remove lib/lstat.h.
32541         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32542         (Include): Specify <sys/stat.h> instead of lstat.h.
32543         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
32544         REPLACE_LSTAT.
32545         * NEWS: Mention the change.
32546
32547 2008-10-20  Bruno Haible  <bruno@clisp.org>
32548
32549         * modules/posix_spawn-tests: New file.
32550         * tests/test-posix_spawn3.c: New file.
32551
32552 2008-10-20  Bruno Haible  <bruno@clisp.org>
32553
32554         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
32555         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32556         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
32557         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32558         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
32559
32560 2008-10-20  Bruno Haible  <bruno@clisp.org>
32561
32562         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
32563         of posix_spawn on AIX 5.3.
32564
32565 2008-10-20  Bruno Haible  <bruno@clisp.org>
32566
32567         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
32568
32569 2008-10-20  Bruno Haible  <bruno@clisp.org>
32570
32571         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
32572         of AC_LANG_PROGRAM.
32573
32574 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32575
32576         * lib/netdb.in.h: Don't define GNU specific constants until they
32577         are supported or needed.  Reported by Bruno Haible
32578         <bruno@clisp.org>.
32579
32580 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32581
32582         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
32583
32584 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32585
32586         * lib/getaddrinfo.h: Remove file.
32587         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
32588         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
32589         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
32590         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
32591         * modules/netdb: Substitute GNULIB_GETADDRINFO.
32592         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
32593         * tests/test-getaddrinfo.c: Likewise.
32594         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
32595         * NEWS: Mention change.
32596
32597 2008-10-19  Bruno Haible  <bruno@clisp.org>
32598
32599         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
32600
32601 2008-10-19  Bruno Haible  <bruno@clisp.org>
32602
32603         * lib/wait-process.c: Include simply <sys/wait.h>.
32604         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
32605         WIFSTOPPED): Remove fallback definitions.
32606         * modules/wait-process (Depends-on): Add sys_wait.
32607
32608         New module 'sys_wait'.
32609         * modules/sys_wait: New file.
32610         * lib/sys_wait.in.h: New file, partially copied from
32611         lib/wait-process.c.
32612         * m4/sys_wait_h.m4: New file.
32613         * doc/posix-headers/sys_wait.texi: Mention the new module.
32614
32615 2008-10-19  Bruno Haible  <bruno@clisp.org>
32616
32617         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
32618
32619 2008-10-19  Bruno Haible  <bruno@clisp.org>
32620
32621         Assume that waitpid() fills an 'int' status, not a 'union wait'.
32622         * lib/wait-process.c (WAIT_T): Remove type.
32623         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
32624         (wait_subprocess): Update.
32625
32626 2008-10-19  Bruno Haible  <bruno@clisp.org>
32627
32628         New module 'atoll'.
32629         * modules/atoll: New file.
32630         * lib/stdlib.in.h (atoll): New declaration.
32631         * lib/atoll.c: New file, from glibc with modifications.
32632         * m4/atoll.m4: New file.
32633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
32634         HAVE_ATOLL.
32635         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
32636         * doc/posix-functions/atoll.texi: Mention the new module.
32637
32638 2008-10-19  Bruno Haible  <bruno@clisp.org>
32639
32640         Add strtoull() declaration to <stdlib.h>.
32641         * lib/stdlib.in.h (strtoull): New declaration.
32642         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32643         Set HAVE_STRTOULL.
32644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32645         HAVE_STRTOULL.
32646         * modules/strtoull (Depends-on): Add stdlib.
32647         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32648         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32649         HAVE_STRTOULL.
32650
32651 2008-10-19  Bruno Haible  <bruno@clisp.org>
32652
32653         Add strtoll() declaration to <stdlib.h>.
32654         * lib/stdlib.in.h (strtoll): New declaration.
32655         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32656         Set HAVE_STRTOLL.
32657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32658         HAVE_STRTOLL.
32659         * modules/strtoll (Depends-on): Add stdlib.
32660         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32661         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32662
32663 2008-10-19  Bruno Haible  <bruno@clisp.org>
32664
32665         * modules/bcopy (Depends-on): Add strings.
32666         (Include): Specify <strings.h>.
32667
32668 2008-10-19  Bruno Haible  <bruno@clisp.org>
32669
32670         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
32671
32672 2008-10-19  Bruno Haible  <bruno@clisp.org>
32673
32674         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
32675         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
32676         mingw.
32677
32678 2008-10-19  Bruno Haible  <bruno@clisp.org>
32679
32680         * lib/atanl.c: Don't include isnanl.h.
32681         * lib/cosl.c: Likewise.
32682         * lib/ldexpl.c: Likewise.
32683         * lib/logl.c: Likewise.
32684         * lib/sinl.c: Likewise.
32685         * lib/sqrtl.c: Likewise.
32686         * lib/tanl.c: Likewise.
32687
32688         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
32689         * lib/isnanf.h: Remove file.
32690         * lib/isnand.h: Remove file.
32691         * lib/isnanl.h: Remove file.
32692         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
32693         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
32694         macros.
32695         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
32696         HAVE_ISNANF, don't define it as a C macro.
32697         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
32698         HAVE_ISNAND, don't define it as a C macro.
32699         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
32700         HAVE_ISNANL, don't define it as a C macro.
32701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
32702         HAVE_ISNAN[FDL].
32703         * modules/isnanf (Files): Remove lib/isnanf.h.
32704         (Depends-on): Add math.
32705         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32706         (Include): Specify <math.h> instead of isnanf.h.
32707         * modules/isnand (Files): Remove lib/isnand.h.
32708         (Depends-on): Add math.
32709         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32710         (Include): Specify <math.h> instead of isnand.h.
32711         * modules/isnanl (Files): Remove lib/isnanl.h.
32712         (Depends-on): Add math.
32713         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32714         (Include): Specify <math.h> instead of isnanl.h.
32715         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
32716         HAVE_ISNAN[FDL].
32717         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
32718         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
32719         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
32720         * NEWS: Mention the change.
32721
32722 2008-10-18  Bruno Haible  <bruno@clisp.org>
32723
32724         Add getusershell(), setusershell(), endusershell() declarations to
32725         <unistd.h>.
32726         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
32727         declarations.
32728         * lib/getusershell.c: Include unistd.h.
32729         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
32730         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32731         HAVE_GETUSERSHELL.
32732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
32733         and HAVE_GETUSERSHELL.
32734         * modules/getusershell (Depends-on): Add unistd, extensions.
32735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32736         (Include): Specify <unistd.h>.
32737         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
32738         HAVE_GETUSERSHELL.
32739
32740 2008-10-18  Bruno Haible  <bruno@clisp.org>
32741
32742         Add a getloadavg() declaration to <stdlib.h>.
32743         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
32744         getloadavg declaration.
32745         (getloadavg): New declaration.
32746         * lib/getloadavg.c: Include <stdlib.h> first.
32747         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
32748         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
32749         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
32750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
32751         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32752         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32753         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32754         (Include): Specify <stdlib.h>.
32755         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
32756         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32757
32758 2008-10-18  Bruno Haible  <bruno@clisp.org>
32759
32760         * lib/dirchownmod.c: Don't include lchmod.h.
32761
32762         Move the lchmod() declaration to <sys/stat.h>.
32763         * lib/lchmod.h: Remove file.
32764         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
32765         (lchmod): New declaration, moved here from lib/lchown.h.
32766         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
32767         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
32768         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
32769         and HAVE_LCHMOD.
32770         * modules/lchmod (Files): Remove lib/lchmod.h.
32771         (Depends-on): Add sys_stat, extensions.
32772         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32773         (Include): Specify <sys/stat.h> instead of lchmod.h.
32774         * modules/sys_stat (Depends-on): Add link-warning.
32775         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
32776         definition of GL_LINK_WARNING.
32777         * NEWS: Mention the change.
32778
32779 2008-10-18  Bruno Haible  <bruno@clisp.org>
32780
32781         * lib/fchdir.c: Don't include dirfd.h.
32782         * lib/fts.c: Likewise.
32783         * lib/getcwd.c: Likewise.
32784         * lib/glob.c: Likewise.
32785
32786         Move the dirfd() declaration to <dirent.h>.
32787         * lib/dirfd.h: Remove file.
32788         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32789         (dirfd): New declaration.
32790         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32791         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32792         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32793         HAVE_DECL_DIRFD.
32794         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32795         HAVE_DECL_DIRFD.
32796         * modules/dirfd (Files): Remove lib/dirfd.h.
32797         (Depends-on): Add dirent, extensions.
32798         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32799         (Include): Specify <dirent.h> instead of dirfd.h.
32800         * modules/dirent (Depends-on): Add link-warning.
32801         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32802         definition of GL_LINK_WARNING.
32803         * NEWS: Mention the change.
32804
32805 2008-10-18  Bruno Haible  <bruno@clisp.org>
32806
32807         Move the euidaccess() declaration to <unistd.h>.
32808         * lib/euidaccess.h: Remove file.
32809         * lib/unistd.in.h (euidaccess): New declaration.
32810         * lib/euidaccess.c: Don't include euidaccess.h.
32811         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32812         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32814         and HAVE_EUIDACCESS.
32815         * modules/euidaccess (Files): Remove lib/euidaccess.h.
32816         (Depends-on): Add unistd.
32817         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32818         (Include): Specify <unistd.h> instead of euidaccess.h.
32819         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
32820         HAVE_EUIDACCESS.
32821         * NEWS: Mention the change.
32822
32823 2008-10-18  Bruno Haible  <bruno@clisp.org>
32824
32825         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
32826
32827         Move the getdomainname() declaration to <unistd.h>.
32828         * lib/getdomainname.h: Remove file.
32829         * lib/unistd.in.h (getdomainname): New declaration.
32830         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
32831         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
32832         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32833         HAVE_GETDOMAINNAME.
32834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32835         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
32836         * modules/getdomainname (Files): Remove lib/getdomainname.h.
32837         (Depends-on): Add unistd, extensions.
32838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32839         (Includes): Specify <unistd.h> instead of getdomainname.h.
32840         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
32841         HAVE_GETDOMAINNAME.
32842         * NEWS: Mention the change.
32843
32844 2008-10-18  Bruno Haible  <bruno@clisp.org>
32845
32846         * modules/dirent: New file.
32847         * m4/dirent_h.m4: New file.
32848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
32849         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
32850         * modules/fchdir (Files): Remove lib/dirent.in.h.
32851         (Depends-on): Add dirent.
32852         (Makefile.am): Move rules to modules/dirent.
32853         * doc/posix-headers/dirent.texi: Mention the new module.
32854
32855 2008-10-18  Bruno Haible  <bruno@clisp.org>
32856
32857         Avoid -Wunused-parameter warnings in public gnulib header files.
32858         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
32859         macro.
32860         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
32861
32862 2008-10-18  Bruno Haible  <bruno@clisp.org>
32863
32864         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
32865         * doc/glibc-functions/error.texi: Mention the module 'error'.
32866         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
32867         * doc/glibc-functions/getdomainname.texi: Mention the module
32868         'getdomainname'.
32869         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
32870         * doc/glibc-functions/getpagesize.texi: Mention the module
32871         'getpagesize'.
32872         * doc/glibc-functions/getusershell.texi: Mention the module
32873         'getusershell'.
32874         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32875         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
32876         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
32877         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
32878         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
32879         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
32880         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
32881         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
32882         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
32883         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
32884         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
32885         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
32886         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
32887         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
32888
32889 2008-10-17  Bruno Haible  <bruno@clisp.org>
32890
32891         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
32892         HP-UX and IRIX, use -0.0L.
32893         * tests/test-ceill.c (minus_zero): Likewise.
32894         * tests/test-floorl.c (minus_zero): Likewise.
32895         * tests/test-frexpl.c (minus_zero): Likewise.
32896         * tests/test-isnan.c (minus_zerol): Likewise.
32897         * tests/test-isnanl.h (minus_zero): Likewise.
32898         * tests/test-ldexpl.c (minus_zero): Likewise.
32899         * tests/test-roundl.c (minus_zero): Likewise.
32900         * tests/test-signbit.c (minus_zerol): Likewise.
32901         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32902         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32903         * tests/test-truncl.c (minus_zero): Likewise.
32904         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32905         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32906         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
32907         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32908
32909 2008-10-17  Bruno Haible  <bruno@clisp.org>
32910
32911         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
32912         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
32913         that it gets activated only for gcc >= 3.0.
32914         * lib/dirent.in.h: Likewise.
32915         * lib/errno.in.h: Likewise.
32916         * lib/fcntl.in.h: Likewise.
32917         * lib/float.in.h: Likewise.
32918         * lib/iconv.in.h: Likewise.
32919         * lib/inttypes.in.h: Likewise.
32920         * lib/locale.in.h: Likewise.
32921         * lib/math.in.h: Likewise.
32922         * lib/netdb.in.h: Likewise.
32923         * lib/netinet_in.in.h: Likewise.
32924         * lib/search.in.h: Likewise.
32925         * lib/signal.in.h: Likewise.
32926         * lib/spawn.in.h: Likewise.
32927         * lib/stdarg.in.h: Likewise.
32928         * lib/stdint.in.h: Likewise.
32929         * lib/stdio.in.h: Likewise.
32930         * lib/stdlib.in.h: Likewise.
32931         * lib/string.in.h: Likewise.
32932         * lib/strings.in.h: Likewise.
32933         * lib/sys_file.in.h: Likewise.
32934         * lib/sys_ioctl.in.h: Likewise.
32935         * lib/sys_select.in.h: Likewise.
32936         * lib/sys_socket.in.h: Likewise.
32937         * lib/sys_stat.in.h: Likewise.
32938         * lib/sys_time.in.h: Likewise.
32939         * lib/sysexits.in.h: Likewise.
32940         * lib/time.in.h: Likewise.
32941         * lib/unistd.in.h: Likewise.
32942         * lib/wchar.in.h: Likewise.
32943         * lib/wctype.in.h: Likewise.
32944         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32945
32946 2008-10-17  Jim Meyering  <meyering@redhat.com>
32947
32948         ignore-value: don't depend on inline module
32949         * modules/ignore-value (Depends-on): Remove 'inline'.
32950         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
32951         Suggestion from Bruno Haible.
32952
32953 2008-10-17  Bruno Haible  <bruno@clisp.org>
32954
32955         New implementation of condition variables for Win32.
32956         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
32957         (gl_linked_waitqueue_t): New type.
32958         (gl_cond_t): Use it.
32959         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
32960         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
32961         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
32962         (glthread_cond_init_func, glthread_cond_wait_func,
32963         glthread_cond_timedwait_func, glthread_cond_signal_func,
32964         glthread_cond_broadcast_func, glthread_cond_destroy_func):
32965         Reimplemented on the basis of gl_linked_waitqueue_t.
32966         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
32967         gl_waitqueue_t.
32968         (gl_rwlock_t): Update.
32969         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
32970
32971 2008-10-17  Simon Josefsson  <simon@josefsson.org>
32972
32973         * modules/recvfrom (Depends-on): Add dependency on getpeername.
32974         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32975
32976 2008-10-17  Jim Meyering  <meyering@redhat.com>
32977
32978         ignore-value: new module
32979         * modules/ignore-value: New file.
32980         * lib/ignore-value.h: New file.
32981         * MODULES.html.sh (Compiler warning management): New section,
32982         just for this module.  More to come.
32983
32984 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32985
32986         open-safer.c: avoid 'signed and unsigned in conditional...' warning
32987         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
32988         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
32989
32990 2008-10-16  Jim Meyering  <meyering@redhat.com>
32991
32992         openat-die.c: avoid 'no previous prototype' warning
32993         * lib/openat-die.c: Include "openat.h".
32994         Reported by Reuben Thomas <rrt@sc3d.org>.
32995
32996 2008-10-16  Simon Josefsson  <simon@josefsson.org>
32997
32998         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
32999         * lib/netdb.in.h: Fix typo.
33000         Reported by Bruno Haible  <bruno@clisp.org>
33001
33002         * lib/netdb.in.h: Include sys/socket.h for platforms without
33003         netdb.h, to get structures like hostent on MinGW.
33004         * modules/netdb (Depends-on): Add sys_socket.
33005
33006 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33007
33008         * modules/netdb, modules/netdb-tests: New file.
33009         * m4/netdb_h.m4: New file.
33010         * lib/netdb.in.h: Add, currently just an empty file pending
33011         definitions.
33012         * tests/test-netdb.c: New file.
33013         * doc/posix-headers/netdb.texi: Mention that we replace it if
33014         needed.
33015         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33016         netdb.
33017
33018 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33019
33020         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33021         with code.
33022
33023 2008-10-13  Bruno Haible  <bruno@clisp.org>
33024
33025         * lib/glthread/cond.c (glthread_cond_wait_func,
33026         glthread_cond_timedwait_func): Add a comment.
33027
33028 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33029
33030         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33031         * tests/test-select.c: Likewise,
33032
33033 2008-10-13  Bruno Haible  <bruno@clisp.org>
33034
33035         * lib/glthread/cond.c (glthread_cond_wait_func,
33036         glthread_cond_timedwait_func): Fix variable name.
33037         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33038
33039 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33040
33041         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33042         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33043         struct sockaddr.sa_len.
33044         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33045
33046 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33047
33048         * build-aux/pmccabe2html: Add css and css_url parameters.
33049
33050 2008-10-12  Bruno Haible  <bruno@clisp.org>
33051
33052         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33053         calling aclx_get.
33054         Reported by Rainer Tammer <tammer@tammer.net>.
33055
33056 2008-10-12  Bruno Haible  <bruno@clisp.org>
33057
33058         Use msvcrt aware primitives for creation/termination of Win32 threads.
33059         * lib/glthread/thread.c: Include <process.h>.
33060         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33061         (wrapper_func): Update signature.
33062         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33063
33064 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33065             Bruno Haible  <bruno@clisp.org>
33066
33067         Provide a Win32 implementation of the 'cond' module.
33068         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33069         * lib/glthread/cond.c (glthread_cond_init_func,
33070         glthread_cond_wait_func, glthread_cond_timedwait_func,
33071         glthread_cond_signal_func, glthread_cond_broadcast_func,
33072         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33073         * modules/cond (Dependencies): Add gettimeofday.
33074
33075 2008-10-11  Bruno Haible  <bruno@clisp.org>
33076
33077         Make sleep work on older versions of mingw.
33078         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33079         only whether it exists.
33080         * doc/posix-functions/sleep.texi: Mention the problem with older
33081         versions of mingw.
33082
33083 2008-10-11  Bruno Haible  <bruno@clisp.org>
33084
33085         New module 'shutdown'.
33086         * modules/shutdown: New file.
33087         * lib/sys_socket.in.h (shutdown): New declaration.
33088         * lib/winsock.c (shutdown): New function.
33089         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33090         GNULIB_SHUTDOWN.
33091         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33092         * doc/posix-functions/shutdown.texi: Document the new module.
33093
33094 2008-10-11  Jim Meyering  <meyering@redhat.com>
33095
33096         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33097
33098 2008-10-11  Bruno Haible  <bruno@clisp.org>
33099
33100         New module 'fclose'.
33101         * modules/fclose: New file.
33102         * lib/stdio.in.h (fclose): New declaration.
33103         * lib/fclose.c: New file.
33104         * m4/fclose.m4: New file.
33105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33106         REPLACE_FCLOSE.
33107         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33108         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33109         REPLACE_FCLOSE.
33110         * modules/close (Depends-on): fclose.
33111         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33112
33113 2008-10-11  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33116         set errno and don't call _close.
33117
33118 2008-10-10  Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33121         ACL, not afterwards. Fixes test failure on Cygwin.
33122
33123 2008-10-09  Ben Pfaff  <blp@gnu.org>
33124
33125         * build-aux/announce-gen: Fix gnulib version related part of usage
33126         message.  Die with a useful error message if no tarballs are
33127         found.
33128
33129 2008-10-10  Jim Meyering  <meyering@redhat.com>
33130
33131         bootstrap: use git's --depth=N option only if it's supported
33132         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33133         recognize the --depth option.  Reported by Pádraig Brady.
33134
33135 2008-10-09  Bruno Haible  <bruno@clisp.org>
33136
33137         New module 'ioctl'.
33138         * modules/ioctl: New file.
33139         * lib/sys_socket.in.h (ioctl): Remove declaration.
33140         * lib/winsock.c: Include <sys/ioctl.h>.
33141         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33142         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33143         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33144         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33145         * doc/posix-functions/ioctl.texi: Mention the new module.
33146
33147 2008-10-09  Bruno Haible  <bruno@clisp.org>
33148
33149         New module 'sys_ioctl'.
33150         * lib/sys_ioctl.in.h: New file.
33151         * m4/sys_ioctl_h.m4: New file.
33152         * modules/sys_ioctl: New file.
33153         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33154
33155 2008-10-09  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33158         * lib/winsock.c: Include <stdarg.h>.
33159         (rpl_ioctl): Change to second argument 'int' and then varargs.
33160
33161 2008-10-09  Bruno Haible  <bruno@clisp.org>
33162
33163         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33164         when the sys_socket module is present and the system has <winsock2.h>.
33165
33166 2008-10-09  Bruno Haible  <bruno@clisp.org>
33167
33168         * doc/posix-functions/close.texi: Mention module 'close' instead of
33169         module 'sys_socket'.
33170
33171 2008-10-09  Bruno Haible  <bruno@clisp.org>
33172
33173         * doc/glibc-headers/sys_ioctl.texi: New file.
33174         * doc/gnulib.texi: Include it.
33175
33176 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33177             Bruno Haible  <bruno@clisp.org>
33178
33179         Combine the two replacements of 'close'.
33180         * lib/sys_socket.in.h (close): Define to a reminder to include
33181         <unistd.h>.
33182         (_gl_close_fd_maybe_socket): New declaration.
33183         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
33184         * lib/winsock.c (close): Remove undefinition.
33185         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
33186         needed for the gnulib module 'close'.
33187         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
33188         define to an error symbol or to a warning, if suitable.
33189         * lib/close.c: Include <sys/socket.h>.
33190         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
33191         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
33192         UNISTD_H_HAVE_WINSOCK2_H.
33193         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
33194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33195         UNISTD_H_HAVE_WINSOCK2_H.
33196         * modules/sys_socket (Files): Add m4/unistd_h.m4.
33197         (configure.ac): Set a module indicator.
33198         (Makefile.am): Substitute GNULIB_CLOSE.
33199         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
33200         * modules/poll-tests (Depends-on): Add close.
33201         * modules/select-tests (Depends-on): Likewise.
33202
33203 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33204             Bruno Haible  <bruno@clisp.org>
33205
33206         New module 'close'.
33207         * modules/close: New file.
33208         * lib/unistd.in.h (close): Move declaration out of the
33209         FCHDIR_REPLACEMENT scope.
33210         (_gl_unregister_fd): New declaration.
33211         * lib/close.c: New file.
33212         * lib/fchdir.c (rpl_close): Remove function.
33213         * m4/close.m4: New file.
33214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33215         close.
33216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
33217         REPLACE_CLOSE.
33218         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
33219         REPLACE_CLOSE.
33220         * modules/fchdir (Depends-on): Add close.
33221
33222 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33223             Bruno Haible  <bruno@clisp.org>
33224
33225         * lib/fcntl.in.h (open): Simplify conditionals.
33226         (_gl_register_fd): New declaration.
33227         * lib/fchdir.c (rpl_open): Remove function.
33228         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
33229         also.
33230         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
33231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33232         open.
33233
33234 2008-10-09  Jim Meyering  <meyering@redhat.com>
33235
33236         GNUmakefile: use the more name-space-friendly "_version"
33237         * top/GNUmakefile (_dummy): Update.
33238         (_version): Rename from "version".
33239
33240 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33241             Bruno Haible  <bruno@clisp.org>
33242
33243         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
33244         rpl_close.
33245         (_gl_register_fd): New function, extracted from rpl_open.
33246         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
33247         (rpl_open, rpl_opendir): Use _gl_register_fd.
33248
33249 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33250
33251         Fix organization of 'open' replacement.
33252         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
33253         (gl_FUNC_OPEN): Use it.
33254         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
33255
33256 2008-10-08  Bruno Haible  <bruno@clisp.org>
33257
33258         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
33259
33260 2008-10-08  Simon Josefsson  <simon@josefsson.org>
33261
33262         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
33263         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
33264         listen).
33265
33266 2008-10-08  Eric Blake  <ebb9@byu.net>
33267
33268         GNUmakefile: add 'make version' target
33269         * top/GNUmakefile (_curr-ver): Split version update rules...
33270         (version): ...into a target.
33271
33272 2008-10-07  Bruno Haible  <bruno@clisp.org>
33273
33274         Use a more portable replacement expression for -0.0L.
33275         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
33276         instead of -0.0L. Fix m4 quotation.
33277
33278         * tests/test-signbit.c: Include <float.h>.
33279         (minus_zero): New variable.
33280         (test_signbitl): Use minus_zero instead of -zero.
33281         * modules/signbit-tests (Depends-on): Add float.
33282
33283         * tests/test-ceill.c: Include <float.h>.
33284         (zero): Remove variable.
33285         (minus_zero): New variable.
33286         (main): Use minus_zero instead of -zero.
33287         * modules/ceill-tests (Depends-on): Add float.
33288
33289         * tests/test-floorl.c: Include <float.h>.
33290         (zero): Remove variable.
33291         (minus_zero): New variable.
33292         (main): Use minus_zero instead of -zero.
33293         * modules/floorl-tests (Depends-on): Add float.
33294
33295         * tests/test-roundl.c: Include <float.h>.
33296         (zero): Remove variable.
33297         (minus_zero): New variable.
33298         (main): Use minus_zero instead of -zero.
33299         * modules/roundl-tests (Depends-on): Add float.
33300
33301         * tests/test-truncl.c: Include <float.h>.
33302         (zero): Remove variable.
33303         (minus_zero): New variable.
33304         (main): Use minus_zero instead of -zero.
33305         * modules/truncl-tests (Depends-on): Add float.
33306
33307         * tests/test-frexpl.c (zero): Remove variable.
33308         (minus_zero): New variable.
33309         (main): Use minus_zero instead of -zero.
33310         * modules/frexpl-tests (Depends-on): Add float.
33311
33312         * tests/test-isnan.c (zerol): Remove variable.
33313         (minus_zerol): New variable.
33314         (test_long_double): Use minus_zerol instead of -zerol.
33315         * modules/isnan-tests (Depends-on): Add float.
33316
33317         * tests/test-isnanl.h (zero): Remove variable.
33318         (minus_zero): New variable.
33319         (main): Use minus_zero instead of -zero.
33320         * modules/isnanl-nolibm-tests (Depends-on): Add float.
33321         * modules/isnanl-tests (Depends-on): Add float.
33322
33323         * tests/test-ldexpl.c (zero): Remove variable.
33324         (minus_zero): New variable.
33325         (main): Use minus_zero instead of -zero.
33326         * modules/ldexpl-tests (Depends-on): Add float.
33327
33328         * tests/test-snprintf-posix.h (zerol): Remove variable.
33329         (minus_zerol): New variable.
33330         (test_function): Use minus_zerol instead of -zerol.
33331         * modules/snprintf-posix-tests (Depends-on): Add float.
33332         * modules/vsnprintf-posix-tests (Depends-on): Add float.
33333
33334         * tests/test-sprintf-posix.h (zerol): Remove variable.
33335         (minus_zerol): New variable.
33336         (test_function): Use minus_zerol instead of -zerol.
33337         * modules/sprintf-posix-tests (Depends-on): Add float.
33338         * modules/vsprintf-posix-tests (Depends-on): Add float.
33339
33340         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
33341         (minus_zerol): New variable.
33342         (test_function): Use minus_zerol instead of -zerol.
33343         * modules/vasnprintf-posix-tests (Depends-on): Add float.
33344
33345         * tests/test-vasprintf-posix.c (zerol): Remove variable.
33346         (minus_zerol): New variable.
33347         (test_function): Use minus_zerol instead of -zerol.
33348         * modules/vasprintf-posix-tests (Depends-on): Add float.
33349
33350 2008-10-07  Simon Josefsson  <simon@josefsson.org>
33351
33352         * MODULES.html.sh (Support for building documentation): Mention
33353         pmccabe2html.  Sort entries.
33354
33355         Add pmccabe2html module, from gnupdf.
33356         * build-aux/pmccabe.css: New file.
33357         * build-aux/pmccabe2html: New file.
33358         * m4/pmccabe2html.m4: New file.
33359         * modules/pmccabe2html: New file.
33360
33361 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
33362
33363         flock: new module
33364         * MODULES.html.sh: Add to list of modules.
33365         * lib/flock.c: flock implementation for Windows and Unix systems
33366         which have fcntl.
33367         * doc/glibc-functions/flock.texi: Update documentation.
33368         * lib/sys_file.in.h: <sys/file.h> header file.
33369         * m4/flock.m4: M4 macros.
33370         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
33371         * modules/flock: flock module.
33372         * modules/flock-tests: flock tests module.
33373         * modules/sys_file: sys/file.h module.
33374         * tests/test-flock.c: test suite for flock.
33375
33376 2008-10-06  Jim Meyering  <meyering@redhat.com>
33377
33378         bootstrap: check for LT_INIT more portably still ;-)
33379         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
33380         Spotted by Bruno Haible.
33381
33382 2008-10-06  Eric Blake  <ebb9@byu.net>
33383
33384         test-signbit: avoid tripping Irix cc bug on -0.0L
33385         * tests/test-signbit.c (minus_zerol): Delete, and replace with
33386         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
33387         entire testsuite consistent and avoids an Irix 6.2 bug.
33388
33389 2008-10-05  Bruno Haible  <bruno@clisp.org>
33390             Jim Meyering  <jim@meyering.net>
33391
33392         Add an option for ignoring EPIPE during close_stdout.
33393         * lib/closeout.h: Include <stdbool.h>.
33394         (close_stdout_set_ignore_EPIPE): New declaration.
33395         * lib/closeout.c: Include <stdbool.h>.
33396         (ignore_EPIPE): New variable.
33397         (close_stdout_set_ignore_EPIPE): New function.
33398         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
33399         * lib/close-stream.c (close_stream): Mention the possible EPIPE
33400         failure.
33401         * modules/closeout (Depends-on): Add stdbool.
33402
33403 2008-10-05  Bruno Haible  <bruno@clisp.org>
33404
33405         * modules/accept: New file.
33406         * modules/bind: New file.
33407         * modules/connect: New file.
33408         * modules/getpeername: New file.
33409         * modules/getsockname: New file.
33410         * modules/getsockopt: New file.
33411         * modules/listen: New file.
33412         * modules/recv: New file.
33413         * modules/recvfrom: New file.
33414         * modules/send: New file.
33415         * modules/sendto: New file.
33416         * modules/setsockopt: New file.
33417         * modules/socket: New file.
33418         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
33419         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33420         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
33421         the particular module is requested. Add a link warning when the
33422         particular module is not requested.
33423         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
33424         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
33425         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
33426         the particular module is requested.
33427         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
33428         gl_SYS_SOCKET_H_DEFAULTS): New macros.
33429         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33430         * modules/sys_socket (Depends-on): Add link-warning.
33431         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33432         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33433         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33434         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33435         GL_LINK_WARNING.
33436         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33437         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33438         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33439         * doc/posix-functions/getpeername.texi: Mention the new module
33440         'getpeername'.
33441         * doc/posix-functions/getsockname.texi: Mention the new module
33442         'getsockname'.
33443         * doc/posix-functions/getsockopt.texi: Mention the new module
33444         'getsockopt'.
33445         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
33446         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
33447         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
33448         * doc/posix-functions/send.texi: Mention the new module 'send'.
33449         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
33450         * doc/posix-functions/setsockopt.texi: Mention the new module
33451         'setsockopt'.
33452         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
33453         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
33454         listen, connect, accept.
33455         * modules/select-tests (Depends-on): Likewise.
33456
33457 2008-10-05  Bruno Haible  <bruno@clisp.org>
33458
33459         * lib/winsock.c (strerror): Remove unused #undef.
33460         (rpl_close): Remove unused local variable.
33461
33462         * modules/sys_socket (Depends-on); Add errno.
33463
33464 2008-10-05  Bruno Haible  <bruno@clisp.org>
33465
33466         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
33467         (select): Add a link warning when the 'select' module is not used.
33468         * modules/sys_select (Depends-on): Add link-warning.
33469         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
33470         Suggested by Paolo Bonzini.
33471
33472 2008-10-05  Jim Meyering  <meyering@redhat.com>
33473
33474         bootstrap: check for LT_INIT more portably
33475         * build-aux/bootstrap: Avoid using grep -E, since it's not
33476         portable enough.  Suggestion from Bruno Haible.
33477
33478 2008-10-05  Bruno Haible  <bruno@clisp.org>
33479
33480         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
33481         as being fixed by gnulib.
33482
33483 2008-10-05  Bruno Haible  <bruno@clisp.org>
33484
33485         * modules/select-tests: New file, mostly copied from
33486         modules/sys_select-tests.
33487         * tests/test-select.c: New file, mostly copied from
33488         tests/test-sys_select.c.
33489         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
33490         * modules/sys_select-tests (Depends-on): Remove all dependencies.
33491         (Makefile.am): Remove test_sys_select_LDADD.
33492
33493         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
33494         to an undefined symbol, for an error message.
33495         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
33496         (gl_SYS_SELECT_H_DEFAULTS): New macro.
33497         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
33498         winsock-select.c here.
33499         * modules/sys_select (Files): Remove lib/winsock-select.c.
33500         (Depends-on): Remove alloca.
33501         (Makefile.am): Substitute GNULIB_SELECT.
33502         * modules/select: New file.
33503         * doc/posix-functions/select.texi: Update.
33504
33505 2008-10-05  Bruno Haible  <bruno@clisp.org>
33506
33507         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
33508         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
33509         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
33510         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
33511         getdtablesize.
33512         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33513         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33514
33515 2008-10-05  Bruno Haible  <bruno@clisp.org>
33516
33517         * modules/getdtablesize-tests: New file.
33518         * tests/test-getdtablesize.c: New file.
33519
33520         New module 'getdtablesize'.
33521         * lib/unistd.in.h (getdtablesize): New declaration.
33522         * lib/getdtablesize.c: New file.
33523         * m4/getdtablesize.m4: New file.
33524         * modules/getdtablesize: New file.
33525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33526         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
33527         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
33528         HAVE_GETDTABLESIZE.
33529         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
33530
33531 2008-10-05  Bruno Haible  <bruno@clisp.org>
33532
33533         * modules/sched (Makefile.am): Fix typo.
33534         Reported by Simon Josefsson.
33535
33536 2008-10-05  Jim Meyering  <meyering@redhat.com>
33537
33538         bootstrap: check for LT_INIT, too
33539         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
33540         are deprecated.  Suggestion from Ralf Wildenhues.
33541
33542 2008-10-05  Bruno Haible  <bruno@clisp.org>
33543
33544         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
33545         overriding them by ours.
33546         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
33547
33548 2008-10-05  Jim Meyering  <meyering@redhat.com>
33549
33550         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
33551         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
33552         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
33553
33554 2008-10-04  Bruno Haible  <bruno@clisp.org>
33555
33556         * modules/dup2 (License): Change to LGPLv2+.
33557         * modules/sleep (License): Likewise.
33558         * modules/perror (License): Likewise.
33559         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
33560         Blake.
33561         * modules/signal (License): Likewise.
33562         * modules/sigprocmask (License): Likewise.
33563         * modules/raise (License): Change to LGPLv2+, with approval by Jim
33564         Meyering.
33565
33566 2008-10-04  Bruno Haible  <bruno@clisp.org>
33567
33568         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
33569         Reported by Rainer Tammer <tammer@tammer.net>.
33570
33571 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
33572             Bruno Haible  <bruno@clisp.org>
33573
33574         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
33575         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
33576         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
33577
33578 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
33579
33580         filevercmp: new module
33581         * lib/filevercmp.h: New function filevercmp comparing version strings.
33582         * lib/filevercmp.c: Implementation of filevercmp function.
33583         * modules/filevercmp: Module metadata.
33584         * tests/test-filevercmp.c: Unit test for new module.
33585         * modules/filevercmp-tests: Unit test metadata.
33586         * MODULES.html.sh: Add filevercmp module.
33587
33588 2008-10-03  Bruno Haible  <bruno@clisp.org>
33589
33590         * lib/c-ctype.h: Add comment.
33591         Reported by Jim Meyering.
33592
33593 2008-10-02  Bruno Haible  <bruno@clisp.org>
33594
33595         * modules/posix_spawn-internal (Depends-on): Add 'open'.
33596
33597 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33598
33599         * build-aux/bootstrap: Allow renaming bootstrap, and change the
33600         name of bootstrap.conf accordingly.
33601
33602 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33603
33604         * build-aux/bootstrap: Install git-merge-changelog configuration
33605         items into .gitconfig if needed.
33606
33607 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33608
33609         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
33610         git repository, and initialize/update it accordingly.
33611
33612 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
33613
33614         * modules/fsync-tests: New file.
33615         * tests/test-fsync.c: New file.
33616
33617         New module 'fsync'.
33618         * lib/fsync.c: New file.
33619         * m4/fsync.m4: New file.
33620         * modules/fsync: New file.
33621         * lib/unistd.in.h (fsync): New declaration.
33622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
33623         GNULIB_FSYNC and HAVE_FSYNC.
33624         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
33625         * MODULES.html.sh (posix_functions): Add fsync.
33626         * doc/posix-functions/fsync.texi: Mention the new module.
33627
33628 2008-10-02  Jim Meyering  <meyering@redhat.com>
33629
33630         fts.c: sync with similar code from coreutils' remove.c
33631         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
33632         Guard also with "#if defined __linux__", since for now at least,
33633         this code is Linux-kernel-specific.
33634
33635 2008-10-02  Jim Meyering  <meyering@redhat.com>
33636
33637         fts: bug fixes
33638         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
33639         Include <sys/vfs.h>, not <sys/statfs.h>.
33640
33641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33642         Include <sys/vfs.h>, not <sys/statfs.h>.
33643
33644 2008-10-01  Bruno Haible  <bruno@clisp.org>
33645
33646         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33647         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33648         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33649         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33650         * doc/posix-functions/posix_spawnp.texi: Likewise.
33651         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33652         whether posix_spawn actually works.
33653         * m4/pipe.m4 (gl_PIPE): Likewise.
33654         * modules/execute (Files): Add m4/posix_spawn.m4.
33655         * modules/pipe (Files): Add m4/posix_spawn.m4.
33656         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33657
33658 2008-10-01  Jim Meyering  <meyering@redhat.com>
33659
33660         remove trailing spaces
33661         * NEWS: Likewise.
33662         * lib/poll.c (poll): Likewise.
33663         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33664         * lib/winsock.c (rpl_close): Likewise.
33665         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33666         * modules/yield: Likewise.
33667         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33668         * tests/test-sys_select.c (connect_to_socket): Likewise.
33669
33670         fts.c: adjust a new interface to be more generally useful
33671         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
33672         (fts_build): Adjust caller.
33673
33674 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33675
33676         * modules/cond-tests: New file.
33677         * tests/test-cond.c: New file.
33678
33679 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33680             Bruno Haible  <bruno@clisp.org>
33681
33682         * modules/cond (Dependencies): Add errno, time.
33683         * lib/glthread/cond.h: Include <time.h>.
33684         (gl_cond_define, gl_cond_define_initialized): Use the same definition
33685         across platforms.
33686
33687 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33688             Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
33691
33692 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33693             Bruno Haible  <bruno@clisp.org>
33694
33695         * modules/tls-tests (Depends-on): Add thread, yield.
33696         (configure.ac): Remove all checks.
33697         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
33698         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33699         gl_thread_self): Remove definitions. Include glthread/thread.h and
33700         glthread/yield.h instead.
33701         (test_tls): Pass an additional NULL argument to gl_thread_join.
33702
33703 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33704             Bruno Haible  <bruno@clisp.org>
33705
33706         * modules/lock-tests (Depends-on): Add thread, yield.
33707         (configure.ac): Remove all checks.
33708         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
33709         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33710         gl_thread_self): Remove definitions. Include glthread/thread.h and
33711         glthread/yield.h instead.
33712         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
33713         additional NULL argument to gl_thread_join.
33714
33715 2008-09-30  Bruno Haible  <bruno@clisp.org>
33716
33717         Fix the Win32 implementation of the 'thread' module.
33718         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
33719         pointer type.
33720         (gl_thread_self): Invoke gl_thread_self_func.
33721         (gl_thread_self_func): New declaration.
33722         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
33723         (do_init_self_key, init_self_key): New functions.
33724         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
33725         Remove some fields.
33726         (running_threads, running_lock): Remove variables.
33727         (get_current_thread_handle): New function.
33728         (gl_thread_self_func, wrapper_func, glthread_create_func,
33729         glthread_join_func, gl_thread_exit_func): Largely rewritten and
33730         simplified.
33731
33732 2008-09-30  Bruno Haible  <bruno@clisp.org>
33733
33734         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
33735         files.
33736
33737 2008-09-30  Jim Meyering  <meyering@redhat.com>
33738
33739         fts.m4: correct the test for statfs.f_type
33740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
33741         when checking for statfs.f_type.
33742
33743 2008-09-15  Simon Josefsson  <simon@josefsson.org>
33744
33745         tests: avoid some compiler warnings
33746         * tests/test-memchr.c (main): Pass NULL indirectly.
33747         * tests/test-getdate.c (main): Remove unused variable 'ret'.
33748
33749 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
33750
33751         getdate.y: disallow countable dayshifts like "4 yesterday ago"
33752         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
33753         exactly specified dayshifts.
33754         (dayshift): New rule.
33755         (rel): Add dayshift.
33756         (relative_time_table) [tomorrow, yesterday, today, now]:
33757         Use tDAY_SHIFT in place of tDAY_UNIT.
33758         * tests/test-getdate.c: Add tests for now-disallowed countable
33759         dayshifts, e.g., "4 yesterday ago".
33760
33761 2008-09-29  Bruno Haible  <bruno@clisp.org>
33762
33763         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
33764         * tests/test-posix_spawn1.in.sh: Renamed from
33765         tests/test-posix_spawn.in.sh.
33766         * tests/test-posix_spawn2.c: New file.
33767         * tests/test-posix_spawn2.in.sh: New file.
33768         * modules/posix_spawnp-tests (Files): Update.
33769         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
33770
33771 2008-09-29  Bruno Haible  <bruno@clisp.org>
33772
33773         Propagate effects of putenv/setenv/unsetenv to child processes.
33774         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
33775         * lib/pipe.c (create_pipe): Likewise.
33776
33777 2008-09-29  Bruno Haible  <bruno@clisp.org>
33778
33779         Enable use of shell scripts as executables in mingw.
33780         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33781         run the program as a shell script.
33782         * lib/pipe.c (create_pipe): Likewise.
33783         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33784         resulting array.
33785
33786 2008-09-29  Eric Blake  <ebb9@byu.net>
33787
33788         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33789
33790 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33791
33792         * doc/posix-functions/accept.texi: Update mingw problems.
33793         * doc/posix-functions/bind.texi: Update mingw problems.
33794         * doc/posix-functions/close.texi: Update mingw problems.
33795         * doc/posix-functions/connect.texi: Update mingw problems.
33796         * doc/posix-functions/getpeername.texi: Update mingw problems.
33797         * doc/posix-functions/getsockname.texi: Update mingw problems.
33798         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33799         * doc/posix-functions/ioctl.texi: Update mingw problems.
33800         * doc/posix-functions/listen.texi: Update mingw problems.
33801         * doc/posix-functions/recv.texi: Update mingw problems.
33802         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33803         * doc/posix-functions/select.texi: Update mingw problems.
33804         * doc/posix-functions/send.texi: Update mingw problems.
33805         * doc/posix-functions/sendto.texi: Update mingw problems.
33806         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33807         * doc/posix-functions/socket.texi: Update mingw problems.
33808
33809 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33810             Bruno Haible  <bruno@clisp.org>
33811
33812         * lib/sys_select.in.h: Include sys/time.h.
33813         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33814         * modules/sys_select: Depend on sys_time.
33815         * tests/test-sys_select.c: Test that sys/select.h defines struct
33816         timeval fully.
33817
33818 2008-09-29  Bruno Haible  <bruno@clisp.org>
33819
33820         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
33821         * lib/sys_select.in.h: Likewise.
33822
33823 2008-09-29  Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
33826
33827 2008-09-29  Bruno Haible  <bruno@clisp.org>
33828
33829         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
33830         Set LIBSOCKET instead of augmenting LIBS.
33831         * modules/sockets (Link): New section.
33832         * modules/sockets-tests (test_sockets_LDADD): New variable.
33833         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
33834         * modules/poll-tests (test_poll_LDADD): New variable.
33835         * NEWS: Document the change.
33836
33837 2008-09-29  Bruno Haible  <bruno@clisp.org>
33838
33839         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
33840         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
33841         ARPA_INET_H directly.
33842         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33843
33844 2008-09-28  Bruno Haible  <bruno@clisp.org>
33845
33846         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
33847         from gl_HEADER_SYS_SOCKET.
33848         (gl_HEADER_SYS_SOCKET): Invoke it.
33849         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33850
33851 2008-09-28  Bruno Haible  <bruno@clisp.org>
33852
33853         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
33854         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
33855         Needed on OSF/1 4.0.
33856
33857 2008-09-28  Bruno Haible  <bruno@clisp.org>
33858
33859         Override open more carefully.
33860         * lib/open.c (orig_open): New function.
33861         (rpl_open): Use orig_open instead of open.
33862         * lib/fcntl.in.h: Add special invocation convention.
33863         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
33864         (gl_FUNC_OPEN): Invoke it.
33865
33866         Override freopen more carefully.
33867         * lib/freopen.c (orig_freopen): New function.
33868         (rpl_freopen): Use orig_freopen instead of freopen.
33869         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
33870         (gl_FUNC_FREOPEN): Invoke it.
33871
33872         Override fopen more carefully.
33873         * lib/fopen.c (orig_fopen): New function.
33874         (rpl_fopen): Use orig_fopen instead of fopen.
33875         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
33876         (gl_FUNC_FOPEN): Invoke it.
33877         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
33878
33879 2008-09-28  Bruno Haible  <bruno@clisp.org>
33880
33881         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
33882         SIGPIPE.
33883
33884 2008-09-28  Bruno Haible  <bruno@clisp.org>
33885
33886         * tests/test-sigaction.c (handler, main): Disable the check whether
33887         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
33888         glibc systems with LinuxThreads.
33889
33890 2008-09-28  Bruno Haible  <bruno@clisp.org>
33891
33892         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
33893
33894         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
33895         with AIX xlc.
33896         * lib/fcntl.in.h (open): Likewise.
33897         Reported by Rainer Tammer <tammer@tammer.net>.
33898
33899 2008-09-28  Bruno Haible  <bruno@clisp.org>
33900
33901         * modules/posix_spawnp-tests: New file.
33902         * tests/test-posix_spawn.c: New file.
33903         * tests/test-posix_spawn.in.sh: New file.
33904
33905         New module 'posix_spawnp'.
33906         * modules/posix_spawnp: New file.
33907         * lib/spawnp.c: New file, from GNU libc with modifications.
33908         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
33909
33910         New module 'posix_spawn'.
33911         * modules/posix_spawn: New file.
33912         * lib/spawn.c: New file, from GNU libc with modifications.
33913         * doc/posix-functions/posix_spawn.texi: Mention the new module.
33914
33915         New module 'posix_spawnattr_destroy'.
33916         * modules/posix_spawnattr_destroy: New file.
33917         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
33918         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
33919         module.
33920
33921         New module 'posix_spawnattr_setsigmask'.
33922         * modules/posix_spawnattr_setsigmask: New file.
33923         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
33924         modifications.
33925         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
33926         new module.
33927
33928         New module 'posix_spawnattr_getsigmask'.
33929         * modules/posix_spawnattr_getsigmask: New file.
33930         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
33931         modifications.
33932         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
33933         new module.
33934
33935         New module 'posix_spawnattr_setsigdefault'.
33936         * modules/posix_spawnattr_setsigdefault: New file.
33937         * lib/spawnattr_setdefault.c: New file, from GNU libc with
33938         modifications.
33939         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
33940         new module.
33941
33942         New module 'posix_spawnattr_getsigdefault'.
33943         * modules/posix_spawnattr_getsigdefault: New file.
33944         * lib/spawnattr_getdefault.c: New file, from GNU libc with
33945         modifications.
33946         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
33947         new module.
33948
33949         New module 'posix_spawnattr_setschedpolicy'.
33950         * modules/posix_spawnattr_setschedpolicy: New file.
33951         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
33952         modifications.
33953         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
33954         new module.
33955
33956         New module 'posix_spawnattr_getschedpolicy'.
33957         * modules/posix_spawnattr_getschedpolicy: New file.
33958         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
33959         modifications.
33960         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
33961         new module.
33962
33963         New module 'posix_spawnattr_setschedparam'.
33964         * modules/posix_spawnattr_setschedparam: New file.
33965         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
33966         modifications.
33967         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
33968         new module.
33969
33970         New module 'posix_spawnattr_getschedparam'.
33971         * modules/posix_spawnattr_getschedparam: New file.
33972         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
33973         modifications.
33974         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
33975         new module.
33976
33977         New module 'posix_spawnattr_setpgroup'.
33978         * modules/posix_spawnattr_setpgroup: New file.
33979         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
33980         modifications.
33981         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
33982         module.
33983
33984         New module 'posix_spawnattr_getpgroup'.
33985         * modules/posix_spawnattr_getpgroup: New file.
33986         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
33987         modifications.
33988         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
33989         module.
33990
33991         New module 'posix_spawnattr_setflags'.
33992         * modules/posix_spawnattr_setflags: New file.
33993         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
33994         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
33995         module.
33996
33997         New module 'posix_spawnattr_getflags'.
33998         * modules/posix_spawnattr_getflags: New file.
33999         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34000         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34001         module.
34002
34003         New module 'posix_spawnattr_init'.
34004         * modules/posix_spawnattr_init: New file.
34005         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34006         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34007         module.
34008
34009         New module 'posix_spawn_file_actions_destroy'.
34010         * modules/posix_spawn_file_actions_destroy: New file.
34011         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34012         modifications.
34013         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34014         the new module.
34015
34016         New module 'posix_spawn_file_actions_addopen'.
34017         * modules/posix_spawn_file_actions_addopen: New file.
34018         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34019         modifications.
34020         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34021         the new module.
34022
34023         New module 'posix_spawn_file_actions_adddup2'.
34024         * modules/posix_spawn_file_actions_adddup2: New file.
34025         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34026         modifications.
34027         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34028         the new module.
34029
34030         New module 'posix_spawn_file_actions_addclose'.
34031         * modules/posix_spawn_file_actions_addclose: New file.
34032         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34033         modifications.
34034         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34035         the new module.
34036
34037         New module 'posix_spawn_file_actions_init'.
34038         * modules/posix_spawn_file_actions_init: New file.
34039         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34040         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34041         new module.
34042
34043         New module 'posix_spawn-internal'.
34044         * modules/posix_spawn-internal: New file.
34045         * lib/spawn_int.h: New file, from GNU libc with modifications.
34046         * lib/spawni.c: New file, from GNU libc with modifications.
34047         * m4/posix_spawn.m4: New file.
34048
34049         New module 'spawn'.
34050         * modules/spawn: New file.
34051         * lib/spawn.in.h: New file, from GNU libc with modifications.
34052         * m4/spawn_h.m4: New file.
34053         * doc/posix-headers/spawn.texi: Mention the new module.
34054
34055 2008-09-28  Bruno Haible  <bruno@clisp.org>
34056
34057         * modules/sched-tests: New file.
34058         * tests/test-sched.c: New file.
34059
34060         New module 'sched'.
34061         * modules/sched: New file.
34062         * lib/sched.in.h: New file.
34063         * m4/sched_h.m4: New file.
34064         * doc/posix-headers/sched.texi: Mention the new module.
34065
34066 2008-09-27  Eric Blake  <ebb9@byu.net>
34067
34068         Fix previous patch, and tweak references to $0.
34069         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34070         (func_version, func_gnulib_dir): Don't call this program
34071         gnulib-tool.
34072         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34073         with using $0 in function.
34074         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34075         (func_fatal_error): Reuse the name the user invoked us with.
34076
34077 2008-09-27  Bruno Haible  <bruno@clisp.org>
34078
34079         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34080         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34081         (gl_ICONV_H): Not here.
34082         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34083         instead of assigning ICONV_H directly.
34084
34085         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34087         WCHAR_H directly.
34088
34089 2008-09-27  Bruno Haible  <bruno@clisp.org>
34090
34091         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34092         * modules/arpa_inet (Depends-on): Add link-warning.
34093         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34094         * modules/unistd (Makefile.am): Likewise.
34095
34096 2008-09-26  Bruno Haible  <bruno@clisp.org>
34097
34098         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34099         variables.
34100         (func_version): Essentially copied from gnulib-tool.
34101         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34102         func_readlink): Copied from gnulib-tool.
34103
34104 2008-09-26  Bruno Haible  <bruno@clisp.org>
34105
34106         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34107         invoking git-version-gen.
34108
34109 2008-09-26  Bruno Haible  <bruno@clisp.org>
34110
34111         * posix-modules: Update to directory names changed on 2008-01-19.
34112         Remove commas in output before splitting into words. No more need to
34113         avoid 'ftruncate' since 2007-02-19.
34114
34115 2008-09-26  Bruno Haible  <bruno@clisp.org>
34116
34117         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34118
34119 2008-09-26  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34122         * modules/fwriteerror (Depends-on): Add errno.
34123
34124 2008-09-26  Bruno Haible  <bruno@clisp.org>
34125
34126         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34127         * tests/test-vc-list-files-cvs.sh: Likewise.
34128
34129 2008-09-26  Bruno Haible  <bruno@clisp.org>
34130
34131         * doc/posix-headers/sys_resource.texi: Reorder items.
34132
34133 2008-09-26  Jim Meyering  <meyering@redhat.com>
34134
34135         fts: tweak inode comparison function
34136         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34137         inode numbers, as documented.
34138
34139         fts: sort dirent entries on inode number before traversing
34140         This avoids a quadratic, seek-related performance penalty when
34141         operating on a directory containing many entries (measurable at 10k;
34142         3.5 hours at 2 million entries with a cold cache) on certain types
34143         of file systems, including ext3 and ext4, but not tmpfs.
34144         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34145         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34146         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34147         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34148         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34149         (fts_build): Set the stat.st_ino member from D_INO.
34150         If it is likely to be useful, sort dirent entries on inode number.
34151
34152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34153         and the struct statfs.f_type member.
34154         * modules/fts (Depends-on): Add d-ino.
34155
34156 2008-09-26  Bruno Haible  <bruno@clisp.org>
34157
34158         * modules/sigpipe-die (Depends-on): Add sigpipe.
34159
34160         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34161         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34162         and GNULIB_STDIO_H_SIGPIPE are set.
34163         * lib/stdio-write.c: New file.
34164         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34165         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34166         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34167         REPLACE_STDIO_WRITE_FUNCS.
34168         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34169         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34170         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34171         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34172         * modules/stdio (Files): Add lib/stdio-write.c.
34173         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34174         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34175         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34176         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34177         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
34178         REPLACE_FPRINTF_POSIX.
34179         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
34180         REPLACE_PRINTF_POSIX.
34181         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
34182         REPLACE_VFPRINTF_POSIX.
34183         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
34184         REPLACE_VPRINTF_POSIX.
34185         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
34186         SIGPIPE issue.
34187         * doc/posix-functions/fputc.texi: Likewise.
34188         * doc/posix-functions/fputs.texi: Likewise.
34189         * doc/posix-functions/fwrite.texi: Likewise.
34190         * doc/posix-functions/printf.texi: Likewise.
34191         * doc/posix-functions/putc.texi: Likewise.
34192         * doc/posix-functions/putchar.texi: Likewise.
34193         * doc/posix-functions/puts.texi: Likewise.
34194         * doc/posix-functions/vfprintf.texi: Likewise.
34195         * doc/posix-functions/vprintf.texi: Likewise.
34196
34197         * modules/safe-write (Depends-on): Add write.
34198
34199         * modules/sigpipe-tests: New file.
34200         * tests/test-sigpipe.c: New file.
34201         * tests/test-sigpipe.sh: New file.
34202
34203         * modules/write: New file.
34204         * lib/unistd.in.h: Include <sys/types.h>.
34205         (write): New declaration.
34206         * lib/write.c: New file.
34207         * m4/write.m4: New file.
34208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34209         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
34210         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
34211         GNULIB_WRITE, REPLACE_WRITE.
34212         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
34213         and the SIGPIPE issue.
34214
34215         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
34216         (raise): New declaration.
34217         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
34218         (ext_signal): New function.
34219         (rpl_raise): New function.
34220         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34221         GNULIB_SIGNAL_H_SIGPIPE.
34222         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
34223         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
34224
34225         * modules/sigpipe: New file.
34226         * m4/sigpipe.m4: New file.
34227
34228 2008-09-25  Derek Price  <derek@ximbiot.com>
34229             Bruno Haible  <bruno@clisp.org>
34230
34231         * gnulib-tool (func_import): Report all license incompatibilities, not
34232         just the first one.
34233
34234 2008-09-25  Bruno Haible  <bruno@clisp.org>
34235
34236         * gnulib-tool (func_import): When computing the edits, consider not
34237         only the Makefile.ams that exist but also those that will be generated.
34238
34239 2008-09-25  Simon Josefsson  <simon@josefsson.org>
34240
34241         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
34242         fixes gnulib-tool --test warning about duplicate dependency.
34243
34244 2008-09-25  Bruno Haible  <bruno@clisp.org>
34245
34246         * gnulib-tool: Don't ask the user to perform edits in the generated
34247         Makefile.ams.
34248         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
34249         apply to the Makefile.am being generated.
34250         (func_emit_tests_Makefile_am): Execute edits that apply to the
34251         Makefile.am being generated.
34252         (func_import): Setup list of Makefile.am edits before emitting the
34253         Makefile.ams, not at the end.
34254         (func_create_testdir): Update.
34255         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34256
34257 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34258
34259         * gnulib-tool (func_import): Store the --tests-base option in the
34260         comment in gnulib-cache.m4.
34261
34262 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
34263
34264         * NEWS: Document increased portability that sys_select now provides.
34265
34266         * lib/sys_select.in.h: Install select wrapper.
34267         * lib/sys_socket.in.h: Use more descriptive name when there is no
34268         select wrapper.
34269         * lib/winsock-select.c: New.
34270         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
34271         Require gl_HEADER_SYS_SOCKET.
34272         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
34273         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
34274         * tests/test-sys_select.c: Add functional tests.
34275
34276 2008-09-24  Eric Blake  <ebb9@byu.net>
34277
34278         open, fopen: close fd leak in last patch
34279         * lib/open.c (rpl_open): Close fd before returning error.
34280         * lib/fopen.c (rpl_fopen): Close fd before returning error.
34281         * doc/posix-functions/open.texi (open): Document that Irix also
34282         has the bug.
34283         * doc/posix-functions/fopen.texi (fopen): Likewise.
34284         Reported by Paolo Bonzini.
34285
34286 2008-09-24  Bruno Haible  <bruno@clisp.org>
34287
34288         Ensure that a filename ending in a slash cannot be used to access a
34289         non-directory.
34290         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
34291         to check whether it's really a directory.
34292         * lib/fopen.c: Include fcntl.h, unistd.h.
34293         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
34294         and fdopen().
34295         * modules/fopen (Depends-on): Add unistd.
34296         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
34297         * tests/test-fopen.c (main): Likewise.
34298         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
34299         * doc/posix-functions/fopen.texi: Likewise.
34300         Reported by Eric Blake.
34301
34302 2008-09-23  Eric Blake  <ebb9@byu.net>
34303
34304         c-stack: avoid compiler optimizations when provoking overflow
34305         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
34306         recursion harder to optimize, to ensure a stack overflow occurs.
34307         * tests/test-c-stack.c (recurse): Likewise.
34308         Borrowed from libsigsegv.
34309
34310         c-stack: work around Irix sigaltstack bug
34311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
34312         whether sigaltstack uses wrong end of stack_t (copied in part from
34313         libsigsegv).
34314         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
34315         Irix bug, without requiring an over-allocation.
34316         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
34317         bug.
34318
34319         fopen: document mingw bug on directories
34320         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
34321         not allowing a stream visiting a directory, even though reading
34322         from such a stream is not portable.
34323
34324 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34325
34326         * lib/poll.c: Rewrite.
34327         * modules/poll: Depend on alloca.
34328
34329 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34330
34331         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
34332         instead define prototypes for a full set of wrappers.  Ensure
34333         that Cygwin does not use the compatibility code, which is only
34334         for MinGW.
34335         * lib/winsock.c: New.
34336         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
34337         * modules/sys_socket: Add lib/winsock.c.
34338
34339         * modules/poll-tests: Add errno and perror.
34340         * tests/test-poll.c: Use ioctl, not ioctlsocket.
34341
34342 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34343
34344         * tests/test-poll.c: Downgrade minimum needed Winsock version.
34345
34346 2008-09-23  Bruno Haible  <bruno@clisp.org>
34347
34348         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
34349         * doc/glibc-functions/*: Likewise.
34350
34351 2008-09-23  Simon Josefsson  <simon@josefsson.org>
34352
34353         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
34354         success.
34355
34356 2008-09-22  Eric Blake  <ebb9@byu.net>
34357             Bruno Haible  <bruno@clisp.org>
34358
34359         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
34360         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
34361         supply %A but mishandle pseudo-NaN.
34362         Reported by Simon Josefsson.
34363
34364 2008-09-21  Bruno Haible  <bruno@clisp.org>
34365
34366         * tests/test-lock.c (main): Tweak skip message.
34367         * tests/test-tls.c (main): Likewise.
34368
34369 2008-09-21  Bruno Haible  <bruno@clisp.org>
34370
34371         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
34372         whether 'struct sigaction' has sa_sigaction here...
34373         (gl_PREREQ_SIG_HANDLER_H): ... not here.
34374         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
34375
34376 2008-09-21  Bruno Haible  <bruno@clisp.org>
34377
34378         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
34379         section.
34380         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
34381         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
34382         the new section.
34383         (Support for obsolete systems lacking POSIX:2001): New section.
34384         (String handling <string.h>): Move strdup to the new section.
34385         Suggested by Simon Josefsson and Paolo Bonzini.
34386
34387 2008-09-21  Bruno Haible  <bruno@clisp.org>
34388
34389         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
34390         exponents in %e and %g results on 'long double'. Needed for mingw's
34391         improved *printf functions.
34392         * tests/test-vasprintf-posix.c (test_function): Likewise.
34393         * tests/test-snprintf-posix.h (test_function): Likewise.
34394         * tests/test-sprintf-posix.h (test_function): Likewise.
34395         Reported by Eric Blake.
34396
34397 2008-09-21  Bruno Haible  <bruno@clisp.org>
34398
34399         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
34400         * tests/test-sprintf-posix.h (test_function): Likewise.
34401
34402 2008-09-21  Bruno Haible  <bruno@clisp.org>
34403
34404         * modules/getpass (Depends-on): Add strdup-posix.
34405
34406         New module 'strdup-posix'.
34407         * modules/strdup-posix: New file.
34408         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
34409         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
34410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34411         REPLACE_STRDUP.
34412         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
34413         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
34414         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34415         strdup-posix.
34416
34417         * modules/strdup (Depends-on): Remove malloc-posix.
34418
34419 2008-09-20  Bruno Haible  <bruno@clisp.org>
34420
34421         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
34422         Wildenhues.
34423
34424 2008-09-20  Bruno Haible  <bruno@clisp.org>
34425
34426         Ensure that wint_t gets defined on IRIX 5.3.
34427         * lib/wchar.in.h (wint_t): Define if not defined by the system.
34428         * lib/wctype.in.h (wint_t): Likewise.
34429         (__wctype_wint_t): Remove type.
34430         (isw*): Use wint_t instead of __wctype_wint_t.
34431         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34432         * modules/wchar (Files): Add m4/wint_t.m4.
34433         (Makefile.am): Substitute HAVE_WINT_T.
34434         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34435         * tests/test-wctype.c: Check that wint_t is defined.
34436         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34437         * doc/posix-headers/wctype.texi: Likewise.
34438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34439
34440 2008-09-18  Bruno Haible  <bruno@clisp.org>
34441
34442         * gnulib-tool (func_exit): Update comment.
34443
34444 2008-09-18  Simon Josefsson  <simon@josefsson.org>
34445
34446         * modules/getaddrinfo (Depends-on): Remove strdup, this module
34447         assumes strdup exists and does not depend on strdup to return
34448         ENOMEM on out of memory conditions.
34449
34450 2008-09-18  Bruno Haible  <bruno@clisp.org>
34451
34452         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
34453         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
34454         digits for the exponent.
34455
34456 2008-09-18  Jim Meyering  <meyering@redhat.com>
34457             Bruno Haible  <bruno@clisp.org>
34458
34459         * lib/vasnprintf.c (decimal_point_char): Define also if
34460         NEED_PRINTF_INFINITE_LONG_DOUBLE.
34461
34462 2008-09-16  Bruno Haible  <bruno@clisp.org>
34463         and Eric Blake  <ebb9@byu.net>
34464
34465         vasnprintf: support Irix 5.3
34466         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
34467         that mishandle long double infinity.
34468         Reported by Tom G. Christensen.
34469
34470 2008-09-16  Bruno Haible  <bruno@clisp.org>
34471
34472         * doc/glibc-functions/scandir.texi: Mention the function is missing on
34473         Solaris 9.
34474         * doc/glibc-functions/alphasort.texi: Likewise.
34475         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
34476
34477 2008-09-16  Jim Meyering  <meyering@redhat.com>
34478
34479         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
34480         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
34481         a umask modification leak out of a subshell.  Otherwise, the
34482         opensolaris /bin/sh would be accepted and thus cause unwarranted
34483         failures in the coreutils test suite.
34484
34485 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
34486
34487         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
34488         to succeed.
34489
34490 2008-09-16  Jim Meyering  <meyering@redhat.com>
34491
34492         avoid spurious test failure when library is built without ACL support
34493         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
34494         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
34495         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
34496         * tests/test-copy-acl.sh: Likewise.
34497
34498 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34499
34500         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
34501         based on character occurrence counts.
34502
34503 2008-09-15  Eric Blake  <ebb9@byu.net>
34504
34505         tests: avoid some compiler warnings
34506         * tests/test-memchr.c (main): Pass NULL indirectly.
34507         * tests/test-closein.c (main): Avoid unused variable.
34508
34509 2008-09-15  Bruno Haible  <bruno@clisp.org>
34510
34511         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
34512         are missing on OpenBSD 4.0 individually.
34513         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34514
34515 2008-09-15  Bruno Haible  <bruno@clisp.org>
34516
34517         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
34518         * doc/posix-functions/strerror.texi: Mention also Cygwin.
34519         * doc/posix-functions/perror.texi: Likewise.
34520         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
34521         is missing.
34522         Reported by Eric Blake.
34523
34524         * lib/errno.in.h: Use replacement values >= 2000.
34525         Reported by Eric Blake.
34526
34527 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34528
34529         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
34530         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
34531         limit.
34532         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
34533         compareseq was aborted.
34534
34535 2008-09-14  Bruno Haible  <bruno@clisp.org>
34536
34537         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
34538         yvec_edit_count.
34539         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
34540         (fstrcmp_bounded): Simplify result computation accordingly.
34541
34542 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34543
34544         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
34545         (fstrcmp): Define in terms of fstrcmp_bounded.
34546         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
34547         lower_bound argument.
34548         Return quickly if the result is certainly < lower_bound.
34549         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
34550
34551 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34552
34553         * lib/diffseq.h (EARLY_ABORT): New macro.
34554         (compareseq): Change return type to bool. Return true when EARLY_ABORT
34555         evaluates to true.
34556
34557 2008-09-14  Bruno Haible  <bruno@clisp.org>
34558
34559         * modules/perror-tests: New file.
34560         * tests/test-perror.sh: New file.
34561         * tests/test-perror.c: New file.
34562
34563         New module 'perror'.
34564         * lib/stdio.in.h (perror): New declaration.
34565         * lib/perror.c: New file.
34566         * m4/perror.m4: New file.
34567         * modules/perror: New file.
34568         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34569         * doc/posix-functions/perror.texi: Mention the perror module.
34570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
34571         REPLACE_PERROR.
34572         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
34573         REPLACE_PERROR.
34574
34575 2008-09-14  Bruno Haible  <bruno@clisp.org>
34576
34577         * modules/stdio (Makefile.am): Reorder to match the order in
34578         lib/stdio.in.h.
34579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34580
34581 2008-09-13  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
34584
34585 2008-09-13  Bruno Haible  <bruno@clisp.org>
34586
34587         Extend strerror to cover the added errno values.
34588         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
34589         (rpl_strerror): Provide error messages for the added errno values and
34590         for the WSA* values.
34591         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
34592         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
34593         strerror.
34594         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
34595         * modules/strerror (Depends-on): Add errno.
34596         * doc/posix-functions/strerror.texi: Document the change.
34597         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
34598         and EOVERFLOW.
34599
34600 2008-09-13  Bruno Haible  <bruno@clisp.org>
34601
34602         * modules/EOVERFLOW: Remove file.
34603         * m4/eoverflow.m4: Remove file.
34604         * modules/EOVERFLOW-tests: Remove file.
34605         * tests/test-EOVERFLOW.c: Remove file.
34606         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
34607         * modules/ftell (Depends-on): Likewise.
34608         * modules/getdelim (Depends-on): Likewise.
34609         * modules/getugroups (Depends-on): Likewise.
34610         * modules/poll (Depends-on): Likewise.
34611         * modules/snprintf (Depends-on): Likewise.
34612         * modules/sprintf-posix (Depends-on): Likewise.
34613         * modules/vasnprintf (Depends-on): Likewise.
34614         * modules/vasprintf (Depends-on): Likewise.
34615         * modules/vfprintf-posix (Depends-on): Likewise.
34616         * modules/vsnprintf (Depends-on): Likewise.
34617         * modules/vsprintf-posix (Depends-on): Likewise.
34618         * modules/xvasprintf (Depends-on): Likewise.
34619         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34620         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
34621         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
34622         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
34623         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34624         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
34625         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
34626         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
34627         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34628         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
34629         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
34630         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
34631         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34632         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
34633         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
34634         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
34635         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34636         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
34637         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
34638         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
34639         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34640         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
34641         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34642         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34643         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34644         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34645         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34646         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34647         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34648         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34649         * MODULES.html.sh: Remove EOVERFLOW.
34650         * NEWS: Mention the change.
34651
34652 2008-09-13  Bruno Haible  <bruno@clisp.org>
34653
34654         * modules/errno-tests: New file.
34655         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34656
34657         * lib/errno.in.h: New file.
34658         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34659         * modules/errno: New file.
34660         * doc/posix-headers/errno.texi: Update documentation.
34661         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34662
34663 2008-09-13  Bruno Haible  <bruno@clisp.org>
34664
34665         * tests/test-poll.c: Use #if for native Windows, rather than testing
34666         __MSVCRT__.
34667
34668 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34669             Bruno Haible  <bruno@clisp.org>
34670
34671         * lib/glob.c: Don't include <pwd.h> on native Windows.
34672         (WINDOWS32): New macro.
34673         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
34674
34675 2008-09-13  Bruno Haible  <bruno@clisp.org>
34676
34677         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
34678         (ETIMEDOUT): Remove macro.
34679         (glthread_cond_timedwait_multithreaded): New declaration.
34680         (glthread_cond_timedwait): Use it.
34681         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
34682         (glthread_cond_timedwait_multithreaded): New function.
34683
34684 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34685
34686         * modules/poll-tests: Do not check for io.h.
34687         * tests/test-poll.c: Check for __MSVCRT__ instead.
34688
34689 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34690
34691         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
34692         * modules/poll-tests: Add inet_pton, stdbool, sockets.
34693         * tests/test-poll.c: Use them.  Use _pipe on Windows.
34694
34695 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34696
34697         * modules/poll-tests: New.
34698         * tests/test-poll.c: New.
34699
34700 2008-09-12  Eric Blake  <ebb9@byu.net>
34701
34702         frexp: test for NetBSD failure on -0.0
34703         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
34704         not all, bugs from NetBSD 3.0 have been fixed.
34705         * doc/posix-functions/frexp.texi (frexp): Document bug.
34706         Reported by Thomas Klausner.
34707
34708         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
34709         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
34710         literal -0.0.
34711         Reported by Jonathan C. Patschke <jp@centtech.com>.
34712
34713 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34714
34715         * lib/glthread/cond.h: Use dummy implementation also if
34716         USE_WIN32_THREADS.
34717
34718 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34719
34720         * modules/fnmatch-posix (License): Change to LGPLv2+.
34721         * modules/fnmatch-gnu (License): Likewise.
34722
34723 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34724
34725         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
34726
34727 2008-09-11  Jim Meyering  <meyering@redhat.com>
34728
34729         * users.txt: Add gtk-vnc.
34730
34731 2008-09-08  Simon Josefsson  <simon@josefsson.org>
34732
34733         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
34734         rotate amounts.
34735
34736         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
34737         required for 16-bit and 8-bit rotates.
34738         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
34739         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
34740         UINT8_MAX instead of hard-coded constants.
34741         Suggested by Paul Eggert.
34742
34743 2008-09-07  Bruno Haible  <bruno@clisp.org>
34744
34745         * tests/test-striconveh.c (main): Check behaviour when converting from
34746         UTF-7.
34747
34748         Make striconveh work better with stateful encodings.
34749         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
34750         that iconv does not increment the inptr when returning -1/EINVAL.
34751
34752 2008-09-07  Bruno Haible  <bruno@clisp.org>
34753
34754         * build-aux/config.rpath: Update according to libtool-2.2.6.
34755         * build-aux/config.libpath: Likewise.
34756
34757 2008-09-06  Bruno Haible  <bruno@clisp.org>
34758
34759         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
34760         * lib/freadptr.c (freadptr): Likewise.
34761         * lib/freadseek.c (freadptrinc): Likewise.
34762         Reported by Simon Josefsson.
34763
34764 2008-09-06  Bruno Haible  <bruno@clisp.org>
34765
34766         * modules/freadptr (License): Change to LGPLv2+.
34767         * modules/freadseek (License): Likewise.
34768         Suggested by Eric Blake.
34769
34770         * modules/memchr2 (License): Change to LGPLv2+.
34771         Approved by Eric Blake.
34772
34773 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34774             Bruno Haible  <bruno@clisp.org>
34775
34776         Make gnulib-tool work with native 'sed' on AIX.
34777         * gnulib-tool (sed_noop): New variable.
34778         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34779         func_add_or_update, func_create_testdir): Use it to initialize sed
34780         script variables.
34781         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34782
34783 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34784             Bruno Haible  <bruno@clisp.org>
34785
34786         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34787         also works after #include directives.
34788
34789 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
34790
34791         getdate.y: reject an out-of-range timezone value
34792         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34793         the range [-24...+24].  When specified with only one or two digits,
34794         * tests/test-getdate.c: Tests for the fix.
34795         * doc/getdate.texi: Document this change.
34796
34797 2008-09-03  Bruno Haible  <bruno@clisp.org>
34798
34799         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34800
34801 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34802
34803         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34804         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34805         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34806         Blake <ebb9@byu.net>.
34807
34808         * tests/test-bitrotate.c: Add more test vectors.
34809
34810 2008-09-02  Eric Blake  <ebb9@byu.net>
34811
34812         vasnprintf-posix: handle large precision via %.*d
34813         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34814         when handling it ourselves.
34815         * tests/test-vasnprintf-posix.c (test_function): Add test.
34816         * tests/test-snprintf-posix.h (test_function): Likewise.
34817         * tests/test-sprintf-posix.h (test_function): Likewise.
34818         * tests/test-vasprintf-posix.c (test_function): Likewise.
34819         Reported by Alain Guibert.
34820
34821 2008-09-01  Eric Blake  <ebb9@byu.net>
34822
34823         c-stack: make configure-time check more robust
34824         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
34825         successful sigaction call.
34826         Reported by Tom G. Christensen.
34827
34828 2008-09-01  Bruno Haible  <bruno@clisp.org>
34829
34830         New module 'findprog-lgpl'.
34831         * modules/findprog-lgpl: New file.
34832         * lib/findprog-lgpl.c: New file.
34833         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
34834         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
34835         to decide whether to use strdup or xstrdup, concatenated_filename or
34836         xconcatenated_filename.
34837
34838 2008-09-01  Bruno Haible  <bruno@clisp.org>
34839
34840         Split module 'concat-filename' into 'concat-filename' (LGPL) and
34841         'xconcat-filename' (GPL).
34842         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
34843         (License): Change to LGPLv2+.
34844         * modules/xconcat-filename: New file.
34845         * lib/concat-filename.h (concatenated_filename): Change specification.
34846         (xconcatenated_filename): New declaration.
34847         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
34848         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
34849         memory situations.
34850         * lib/xconcat-filename.c: New file.
34851         * NEWS: Mention the change.
34852         * lib/findprog.c: Include concat-filename.h, not filename.h.
34853         (find_in_path): Use xconcatenated_filename instead of
34854         concatenated_filename.
34855         * lib/javacomp.c: Include concat-filename.h, not filename.h.
34856         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34857         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34858         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34859         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
34860         instead of concatenated_filename.
34861         * lib/javaexec.c: Include concat-filename.h, not filename.h.
34862         (execute_java_class): Use xconcatenated_filename instead of
34863         concatenated_filename.
34864         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
34865         * modules/javacomp (Depends-on): Likewise.
34866         * modules/javaexec (Depends-on): Likewise.
34867
34868 2008-09-01  Bruno Haible  <bruno@clisp.org>
34869
34870         Split module 'filename' into 'filename' and 'concat-filename'.
34871         * modules/filename: Keep only lib/filename.h.
34872         (License): Change to LGPLv2+.
34873         * modules/concat-filename: New file, extracted from modules/filename.
34874         * lib/filename.h (concatenated_filename): Remove declaration.
34875         * lib/concat-filename.h: New file, extracted from lib/filename.h.
34876         * lib/concat-filename.c: Include concat-filename.h.
34877         * NEWS: Mention the change.
34878
34879 2008-09-01  Simon Josefsson  <simon@josefsson.org>
34880
34881         * lib/bitrotate.h (rotl8, rotr8): Add.
34882
34883         * modules/bitrotate (configure.ac): Need
34884         AC_REQUIRE([AC_C_INLINE]).
34885         (Description): Mention stdint.h.  Reported by Bruno Haible
34886         <bruno@clisp.org>.
34887
34888         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
34889         Paolo Bonzini <bonzini@gnu.org>.
34890
34891 2008-08-31  Bruno Haible  <bruno@clisp.org>
34892
34893         Assume Solaris specific bi-arch conventions on Solaris systems.
34894         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
34895         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
34896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
34897         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
34898         like acl_libdirstem.
34899         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
34900         acl_libdirstem.
34901         * NEWS: Mention the change.
34902         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
34903
34904 2008-08-31  Jim Meyering  <meyering@redhat.com>
34905
34906         * lib/strftime.h: Add comments describing the two added arguments.
34907
34908         remove duplicate #include directives
34909         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
34910         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
34911
34912 2008-08-31  Bruno Haible  <bruno@clisp.org>
34913
34914         New module 'sigpipe-die'.
34915         * modules/sigpipe-die: New file.
34916         * lib/sigpipe-die.h: New file.
34917         * lib/sigpipe-die.c: New file.
34918         * MODULES.html.sh (Signal handling): Add sigpipe-die.
34919
34920 2008-08-31  Bruno Haible  <bruno@clisp.org>
34921
34922         Don't override previously installed signal handlers.
34923         * lib/fatal-signal.c (saved_sigactions): New variable.
34924         (uninstall_handlers): Reset the signal to the saved handler, not
34925         to SIG_DFL (except when ignored).
34926         (install_handlers): Save the previous handlers.
34927
34928 2008-08-30  Bruno Haible  <bruno@clisp.org>
34929
34930         * gnulib-tool (func_reset_sigpipe): New function.
34931         (func_get_automake_snippet, func_modules_transitive_closure,
34932         func_import): Invoke it before a join command that reads from stdin,
34933         to avoid "echo: write error: Broken pipe" error messages on stderr.
34934         Reported by Sam Steingold <sds@gnu.org>.
34935
34936 2008-08-30  Bruno Haible  <bruno@clisp.org>
34937
34938         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
34939         Code copied from m4/open.m4.
34940         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
34941         access and the filename ends in a slash. Code copied from lib/open.c.
34942         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
34943         * tests/test-fopen.c (main): Check against bug with trailing slash.
34944
34945 2008-08-29  Bruno Haible  <bruno@clisp.org>
34946
34947         Avoid some "gcc -pedantic" warnings.
34948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
34949         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
34950         * lib/dirent.in.h: Likewise.
34951         * lib/fcntl.in.h: Likewise.
34952         * lib/float.in.h: Likewise.
34953         * lib/iconv.in.h: Likewise.
34954         * lib/inttypes.in.h: Likewise.
34955         * lib/locale.in.h: Likewise.
34956         * lib/math.in.h: Likewise.
34957         * lib/netinet_in.in.h: Likewise.
34958         * lib/search.in.h: Likewise.
34959         * lib/signal.in.h: Likewise.
34960         * lib/stdarg.in.h: Likewise.
34961         * lib/stdint.in.h: Likewise.
34962         * lib/stdio.in.h: Likewise.
34963         * lib/stdlib.in.h: Likewise.
34964         * lib/string.in.h: Likewise.
34965         * lib/strings.in.h: Likewise.
34966         * lib/sys_select.in.h: Likewise.
34967         * lib/sys_socket.in.h: Likewise.
34968         * lib/sys_stat.in.h: Likewise.
34969         * lib/sys_time.in.h: Likewise.
34970         * lib/sysexits.in.h: Likewise.
34971         * lib/time.in.h: Likewise.
34972         * lib/unistd.in.h: Likewise.
34973         * lib/wchar.in.h: Likewise.
34974         * lib/wctype.in.h: Likewise.
34975         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
34976         * modules/fchdir (Makefile.am): Likewise.
34977         * modules/fcntl (Makefile.am): Likewise.
34978         * modules/float (Makefile.am): Likewise.
34979         * modules/iconv_open (Makefile.am): Likewise.
34980         * modules/inttypes (Makefile.am): Likewise.
34981         * modules/locale (Makefile.am): Likewise.
34982         * modules/math (Makefile.am): Likewise.
34983         * modules/netinet_in (Makefile.am): Likewise.
34984         * modules/search (Makefile.am): Likewise.
34985         * modules/signal (Makefile.am): Likewise.
34986         * modules/stdarg (Makefile.am): Likewise.
34987         * modules/stdint (Makefile.am): Likewise.
34988         * modules/stdio (Makefile.am): Likewise.
34989         * modules/stdlib (Makefile.am): Likewise.
34990         * modules/string (Makefile.am): Likewise.
34991         * modules/strings (Makefile.am): Likewise.
34992         * modules/sys_select (Makefile.am): Likewise.
34993         * modules/sys_socket (Makefile.am): Likewise.
34994         * modules/sys_stat (Makefile.am): Likewise.
34995         * modules/sys_time (Makefile.am): Likewise.
34996         * modules/sysexits (Makefile.am): Likewise.
34997         * modules/time (Makefile.am): Likewise.
34998         * modules/unistd (Makefile.am): Likewise.
34999         * modules/wchar (Makefile.am): Likewise.
35000         * modules/wctype (Makefile.am): Likewise.
35001         Reported by Reuben Thomas <rrt@sc3d.org>.
35002
35003 2008-08-29  Bruno Haible  <bruno@clisp.org>
35004
35005         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35006         any more.
35007
35008 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35009
35010         * MODULES.html.sh (Misc): Add bitrotate.
35011
35012         * modules/bitrotate: New file.
35013
35014         * lib/bitrotate.h: New file.
35015
35016         * modules/bitrotate-tests: New file.
35017
35018         * tests/test-bitrotate.c: New file.
35019
35020         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35021         on the bitrotate module.
35022
35023         * lib/arctwo.c: Use new bitrotate module.
35024
35025 2008-08-29  Jim Meyering  <meyering@redhat.com>
35026
35027         bootstrap: merge changes from coreutils
35028         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35029         of copied files.  Remove a kludge, now that this is fixed.
35030         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35031         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35032         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35033
35034 2008-08-29  Bruno Haible  <bruno@clisp.org>
35035
35036         * MODULES.html.sh: Remove --cvs-urls option.
35037
35038 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35039
35040         maint.mk: adjust to file name change
35041         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35042
35043 2008-08-28  Jim Meyering  <meyering@redhat.com>
35044
35045         * modules/getndelim2 (License): Relicense to LGPLv2+.
35046         Approved by Richard Stallman for the version of 1995, and by
35047         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35048
35049 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35050
35051         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35052         dummy if one is not available.  Do not touch them if
35053         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35054         (getc_maybe_unlocked): New.
35055         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35056
35057 2008-08-26  Eric Blake  <ebb9@byu.net>
35058
35059         doc/INSTALL: resync from autoconf
35060         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35061         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35062         moving...
35063         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35064         * INSTALL: Regenerate.
35065         * INSTALL.ISO: New file.
35066         * INSTALL.UTF-8: Likewise.
35067
35068 2008-08-26  Jim Meyering  <meyering@redhat.com>
35069
35070         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35071         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35072         these definitions conditional, so that they may be overridden, too.
35073
35074 2008-08-26  Bruno Haible  <bruno@clisp.org>
35075
35076         Generate INSTALL file variants with prettier quotes.
35077         * doc/Makefile (INSTALL_PRELUDE): New macro.
35078         (INSTALL): Use it.
35079         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35080
35081 2008-08-26  Bruno Haible  <bruno@clisp.org>
35082
35083         Run makeinfo in an English locale.
35084         * doc/Makefile (MAKEINFO): New variable.
35085
35086 2008-08-26  Bruno Haible  <bruno@clisp.org>
35087
35088         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35089         Suggested by Eric Blake.
35090
35091 2008-08-25  Bruno Haible  <bruno@clisp.org>
35092
35093         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35094
35095 2008-08-25  Eric Blake  <ebb9@byu.net>
35096
35097         c-stack: test that stack overflow can be caught
35098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35099         that platform allows handling stack overflow; at least OS/2 EMX
35100         has sigaltstack, but crashes before transferring control to
35101         handler on stack overflow.
35102         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35103         check for HAVE_STACK_OVERFLOW_HANDLING.
35104         Reported by Elbert Pol.
35105
35106 2008-08-25  Bruno Haible  <bruno@clisp.org>
35107
35108         * doc/posix-functions/strftime.texi: Fix description of strftime
35109         module.
35110
35111 2008-08-24  Bruno Haible  <bruno@clisp.org>
35112
35113         * tests/uniwidth/test-uc_width2.c: New file.
35114         * tests/uniwidth/test-uc_width2.sh: New file.
35115         * modules/uniwidth/width-tests (Files): Add the new files.
35116         (TESTS): Add uniwidth/test-uc_width2.sh.
35117         (TESTS_ENVIRONMENT): New variable.
35118         (check_PROGRAMS): Add test-uc_width2.
35119         (test_uc_width2_SOURCES): New variable.
35120
35121         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35122         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35123         not 0x00AB.
35124         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35125
35126 2008-08-22  Eric Blake  <ebb9@byu.net>
35127
35128         test-lock, test-tls: mention why a test is skipped
35129         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35130         skipped.
35131         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35132
35133         count-one-bits: relax license
35134         * modules/count-one-bits (License): Relicense to LGPLv2+.
35135         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35136
35137 2008-08-22  Andreas Schwab  <schwab@suse.de>
35138
35139         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35140         Remove spurious space in assignment.
35141
35142 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35143
35144         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35145         Paul Eggert <eggert@CS.UCLA.EDU>.
35146
35147 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35148
35149         * modules/gettext: Add m4/threadlib.m4.
35150
35151 2008-08-19  Eric Blake  <ebb9@byu.net>
35152
35153         test-c-stack: fix compilation failure on FreeBSD 5.0
35154         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35155         headers before <sys/resource.h>.
35156         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35157         the bug.
35158         Reported by Nelson H. F. Beebe.
35159
35160         strverscmp: migrate from "strverscmp.h" to <string.h>
35161         * modules/string (Makefile.am): Add new hooks.
35162         * modules/strverscmp (Files): Remove strverscmp.h.
35163         (Depends-on): Add string.
35164         (configure.ac): Add indicator.
35165         (Include): Mention new header.
35166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35167         defaults.
35168         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35169         results.
35170         * lib/strverscmp.h: Delete.
35171         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35172         * tests/test-strverscmp.c (includes): Adjust client.
35173         * lib/check-version.c (includes): Likewise.
35174         * NEWS: Document the change.
35175
35176         strverscmp: add unit test
35177         * modules/strverscmp-tests: New file.
35178         * tests/test-strverscmp.c: Likewise.
35179
35180 2008-08-19  Simon Josefsson  <simon@josefsson.org>
35181
35182         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
35183         regarding Windows crypto stuff, from Mono.
35184
35185 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
35186
35187         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
35188         if present, for intel RND.  Return error on failures.
35189
35190 2008-08-18  Ben Pfaff  <blp@gnu.org>
35191
35192         gitlog-to-changelog: give better diagnostic for failed pipe-open
35193         * build-aux/gitlog-to-changelog: Improve error message: suggest
35194         that the version of Git may be too old.
35195
35196 2008-08-18  Simon Josefsson  <simon@josefsson.org>
35197
35198         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
35199         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
35200
35201 2008-08-18  Bruno Haible  <bruno@clisp.org>
35202
35203         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
35204         pthread_in_use().
35205
35206 2008-08-18  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/glthread/threadlib.c: Include <pthread.h>.
35209
35210 2008-08-18  Bruno Haible  <bruno@clisp.org>
35211
35212         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
35213         glthread_recursive_lock_* macros.
35214         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
35215         Fix syntax error.
35216
35217 2008-08-18  Bruno Haible  <bruno@clisp.org>
35218
35219         * lib/glthread/thread.c: Avoid forcing a context switch right after
35220         thread creation.
35221
35222 2008-08-17  Bruno Haible  <bruno@clisp.org>
35223
35224         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
35225         * lib/glthread/thread.h: Provide Win32 specific implementation.
35226         * modules/thread (Files): Add lib/glthread/thread.c.
35227         (Depends-on): Add lock.
35228         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
35229
35230 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35231
35232         New module 'yield'.
35233         * modules/yield: New file.
35234         * lib/glthread/yield.h: New file.
35235         * m4/yield.m4: New file.
35236         * MODULES.html.sh (Multithreading): Add yield.
35237
35238 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35239
35240         New module 'thread'.
35241         * modules/thread: New file.
35242         * lib/glthread/thread.h: New file.
35243         * m4/thread.m4: New file.
35244         * MODULES.html.sh (Multithreading): Add thread.
35245
35246 2008-08-17  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/glthread/lock.h: Include <stdlib.h> always.
35249         * lib/glthread/tls.h: Likewise.
35250         * lib/glthread/cond.h: Likewise.
35251
35252 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35253
35254         New module 'cond'.
35255         * modules/cond: New file.
35256         * lib/glthread/cond.h: New file.
35257         * lib/glthread/cond.c: New file.
35258         * m4/cond.m4: New file.
35259         * MODULES.html.sh (Multithreading): Add cond.
35260
35261 2008-08-16  Eric Blake  <ebb9@byu.net>
35262
35263         c-stack: fix regression on Irix 5.3 from 2008-06-21
35264         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
35265         sa_sigaction...
35266         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
35267         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
35268         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
35269         * modules/signal (Makefile.am): Use the value.
35270         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
35271         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
35272         * doc/posix-headers/signal.texi (signal.h): Document this
35273         portability issue.
35274         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
35275         Reported by Tom G. Christensen.
35276
35277 2008-08-17  Bruno Haible  <bruno@clisp.org>
35278
35279         New module 'threadlib'.
35280         * modules/threadlib: New file.
35281         * lib/glthread/threadlib.c: New file, extracted from
35282         lib/glthread/lock.c.
35283         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
35284         functions.
35285         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
35286         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
35287         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
35288         macros.
35289         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
35290         (gl_DISABLE_THREADS): Remove macro.
35291         * modules/lock (Files): Remove build-aux/config.rpath.
35292         (Depends-on): Remove havelib. Add threadlib.
35293         (configure.ac-early): Remove section.
35294         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
35295         * modules/tls (Depends-on): Remove lock. Add threadlib.
35296         (Link): New section, copied from threadlib.
35297         * MODULES.html.sh (Multithreading): Add threadlib.
35298
35299 2008-08-14  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
35302         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
35303         glthread_rwlock_unlock, glthread_rwlock_destroy,
35304         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
35305         glthread_recursive_lock_destroy): Define as macros always.
35306         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
35307         glthread_lock_lock.
35308         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
35309         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
35310         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
35311         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
35312         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
35313         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
35314         (glthread_recursive_lock_lock_func): Renamed from
35315         glthread_recursive_lock_lock.
35316         (glthread_recursive_lock_unlock_func): Renamed from
35317         glthread_recursive_lock_unlock.
35318         (glthread_recursive_lock_destroy_func): Renamed from
35319         glthread_recursive_lock_destroy.
35320
35321 2008-08-14  Bruno Haible  <bruno@clisp.org>
35322
35323         * lib/glthread/lock.h: Renamed from lib/lock.h.
35324         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
35325         * lib/glthread/tls.h: Renamed from lib/tls.h.
35326         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
35327         * lib/fstrcmp.c: Update includes.
35328         * lib/strsignal.c: Update includes.
35329         * modules/lock (Files, Makefile.am): Update.
35330         (Include): Change to "glthread/lock.h".
35331         * modules/tls (Files, Makefile.am): Update.
35332         (Include): Change to "glthread/tls.h".
35333         * tests/test-lock.c: Update includes.
35334         * tests/test-tls.c: Update includes.
35335         * NEWS: Mention the renamed header files.
35336
35337 2008-08-11  Jim Meyering  <meyering@redhat.com>
35338
35339         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
35340
35341 2008-08-11  Eric Blake  <ebb9@byu.net>
35342
35343         test-c-stack: avoid C99-ism
35344         * tests/test-c-stack.c (main): Fix whitespace, move declaration
35345         before statement.
35346         Reported by Alain Guibert.
35347
35348 2008-08-10  Jim Meyering  <meyering@redhat.com>
35349
35350         ensure that return value of uinttostr et al are not ignored
35351         * lib/inttostr.h (__GNUC_PREREQ): Define.
35352         (__attribute_warn_unused_result__): Define.
35353         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
35354
35355 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
35356
35357         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
35358         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
35359
35360 2008-08-07  Jim Meyering  <meyering@redhat.com>
35361
35362         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
35363
35364         * modules/mkstemp (License): Relicense under LGPLv2+.
35365         * modules/tempname (License): Likewise.
35366
35367 2008-08-06  Bruno Haible  <bruno@clisp.org>
35368
35369         * lib/poll.c (poll): Further micro-optimization.
35370
35371 2008-08-06  Jim Meyering  <meyering@redhat.com>
35372
35373         inet_pton.c: use locale-independent tolower
35374         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
35375         (inet_pton6): Use c_tolower rather than tolower.
35376         * modules/inet_pton (Depends-on): Add c-ctype.
35377
35378 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
35379
35380         * lib/poll.c (poll): Avoid division when timeout is 0, cache
35381         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
35382
35383 2008-08-06  Jim Meyering  <meyering@redhat.com>
35384
35385         * modules/inet_pton (License): Relicense under LGPLv2+.
35386
35387 2008-08-03  Bruno Haible  <bruno@clisp.org>
35388
35389         Additional non-aborting API for lock and tls.
35390         * lib/lock.h: Include <errno.h>.
35391         (glthread_lock_init): New macro/function.
35392         (gl_lock_init): Define as wrapper around glthread_lock_init.
35393         (glthread_lock_lock): New macro/function.
35394         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
35395         (glthread_lock_unlock): New macro/function.
35396         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
35397         (glthread_lock_destroy): New macro/function.
35398         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
35399         (glthread_rwlock_init): New macro/function.
35400         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
35401         (glthread_rwlock_rdlock): New macro/function.
35402         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
35403         (glthread_rwlock_wrlock): New macro/function.
35404         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
35405         (glthread_rwlock_unlock): New macro/function.
35406         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
35407         (glthread_rwlock_destroy): New macro/function.
35408         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
35409         (glthread_recursive_lock_init): New macro/function.
35410         (gl_recursive_lock_init): Define as wrapper around
35411         glthread_recursive_lock_init.
35412         (glthread_recursive_lock_lock): New macro/function.
35413         (gl_recursive_lock_lock): Define as wrapper around
35414         glthread_recursive_lock_lock.
35415         (glthread_recursive_lock_unlock): New macro/function.
35416         (gl_recursive_lock_unlock): Define as wrapper around
35417         glthread_recursive_lock_unlock.
35418         (glthread_recursive_lock_destroy): New macro/function.
35419         (gl_recursive_lock_destroy): Define as wrapper around
35420         glthread_recursive_lock_destroy.
35421         (glthread_once): New macro/function.
35422         (gl_once): Define as wrapper around glthread_once.
35423         Update function declarations.
35424         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
35425         glthread_rwlock_init. Return error code.
35426         (glthread_rwlock_rdlock_multithreaded): Renamed from
35427         glthread_rwlock_rdlock. Return error code.
35428         (glthread_rwlock_wrlock_multithreaded): Renamed from
35429         glthread_rwlock_wrlock. Return error code.
35430         (glthread_rwlock_unlock_multithreaded): Renamed from
35431         glthread_rwlock_unlock. Return error code.
35432         (glthread_rwlock_destroy_multithreaded): Renamed from
35433         glthread_rwlock_destroy. Return error code.
35434         (glthread_recursive_lock_init_multithreaded): Renamed from
35435         glthread_recursive_lock_init. Return error code.
35436         (glthread_recursive_lock_lock_multithreaded): Renamed from
35437         glthread_recursive_lock_lock. Return error code.
35438         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35439         glthread_recursive_lock_unlock. Return error code.
35440         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35441         glthread_recursive_lock_destroy. Return error code.
35442         (glthread_once_call): Make static.
35443         (glthread_once_multithreaded): Renamed from glthread_once.
35444         * lib/tls.h: Include <errno.h>.
35445         (glthread_tls_key_init): New macro/function.
35446         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
35447         (glthread_tls_set): New macro/function.
35448         (gl_tls_set): Define as wrapper around glthread_tls_set.
35449         (glthread_tls_key_destroy): New macro/function.
35450         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
35451         Update function declarations.
35452         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
35453         glthread_tls_get.
35454         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35455
35456 2008-08-04  Eric Blake  <ebb9@byu.net>
35457
35458         gnumakefile: use space, not TAB, outside of targets
35459         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
35460
35461 2008-08-02  Jim Meyering  <meyering@redhat.com>
35462
35463         getdate.y: avoid locale-dependent date parsing failure
35464         In Turkish locales, getdate would fail to recognize keywords
35465         containing a lowercase "i".  The solution is not to rely on
35466         locale-sensitive case-conversion.
35467         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
35468         (lookup_word): Use c_toupper in place of toupper.
35469         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
35470         Reported by Vefa Bicakci <bicave@superonline.com> in
35471         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
35472         * modules/getdate (Depends-on): Add c-ctype.
35473
35474 2008-08-02  Bruno Haible  <bruno@clisp.org>
35475
35476         * gnulib-tool (func_import): When updating or creating a .gitignore
35477         file, prepend each added line with a slash, and ignore leading slashes
35478         from the existing lines.
35479         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35480
35481 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35482
35483         Portability fix for GNU make 3.79.1.
35484         * top/GNUmakefile: Avoid 'else COND', which older GNU make
35485         versions do not understand.
35486
35487 2008-08-01  Bruno Haible  <bruno@clisp.org>
35488
35489         Work around bug of HP-UX 10.20 cc with -0.0 literal.
35490         * tests/test-isnanf.h (zero): New variable.
35491         (main): Avoid literal -0.0f.
35492         * tests/test-isnand.h (zero): New variable.
35493         (main): Avoid literal -0.0.
35494         * tests/test-isnanl.h (zero): New variable.
35495         (main): Avoid literal -0.0L.
35496         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
35497         (test_float, test_double, test_long_double): Avoid literals -0.0f,
35498         -0.0, -0.0L.
35499         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
35500         (test_signbitd): Avoid literal -0.0.
35501         (test_signbitl): Avoid literal -0.0L.
35502         * tests/test-ceilf1.c (zero): New variable.
35503         (main): Avoid literal -0.0f.
35504         * tests/test-ceill.c (zero): New variable.
35505         (main): Avoid literal -0.0L.
35506         * tests/test-floorf1.c (zero): New variable.
35507         (main): Avoid literal -0.0f.
35508         * tests/test-floorl.c (zero): New variable.
35509         (main): Avoid literal -0.0L.
35510         * tests/test-roundf1.c (zero): New variable.
35511         (main): Avoid literal -0.0f.
35512         * tests/test-round1.c (zero): New variable.
35513         (main): Avoid literal -0.0.
35514         * tests/test-roundl.c (zero): New variable.
35515         (main): Avoid literal -0.0L.
35516         * tests/test-truncf1.c (zero): New variable.
35517         (main): Avoid literal -0.0f.
35518         * tests/test-trunc1.c (zero): New variable.
35519         (main): Avoid literal -0.0.
35520         * tests/test-truncl.c (zero): New variable.
35521         (main): Avoid literal -0.0L.
35522         * tests/test-frexp.c (zero): New variable.
35523         (main): Avoid literal -0.0.
35524         * tests/test-frexpl.c (zero): New variable.
35525         (main): Avoid literal -0.0L.
35526         * tests/test-ldexpl.c (zero): New variable.
35527         (main): Avoid literal -0.0L.
35528         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35529         (zerod, zerol): New variables.
35530         (test_function): Avoid literals -0.0, -0.0L.
35531         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35532         (zerod, zerol): New variables.
35533         (test_function): Avoid literals -0.0, -0.0L.
35534         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35535         (zerod, zerol): New variables.
35536         (test_function): Avoid literals -0.0, -0.0L.
35537         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35538         (zerod, zerol): New variables.
35539         (test_function): Avoid literals -0.0, -0.0L.
35540         * tests/test-strtod.c (zero): New variable.
35541         (main): Avoid literal -0.0.
35542         Reported by Jonathan C. Patschke <jp@centtech.com>.
35543
35544 2008-07-31  Jim Meyering  <meyering@redhat.com>
35545
35546         sha256.h: correct definition of SHA224_DIGEST_SIZE
35547         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
35548         Reported by Paulie Pena IV <paulie4@gmail.com>.
35549         Define as 224 / 8, rather than as a literal.
35550         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
35551         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
35552         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
35553
35554 2008-07-31  Bruno Haible  <bruno@clisp.org>
35555
35556         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
35557         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
35558         Reported by Jonathan Patschke <jp@centtech.com>.
35559
35560 2008-07-31  Bruno Haible  <bruno@clisp.org>
35561
35562         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
35563         Reported by Paolo Bonzini <bonzini@gnu.org>.
35564
35565 2008-07-30  Eric Blake  <ebb9@byu.net>
35566
35567         test-strtod: allow compilation without -lm
35568         * tests/test-strtod.c (main): Avoid link dependence on fabs.
35569         Reported by Dennis Clarke <blastwave@gmail.com>.
35570
35571 2008-07-28  Jim Meyering  <meyering@redhat.com>
35572
35573         bootstrap: work also when there are no .po files in po/
35574         * build-aux/bootstrap (update_po_files): Complete the change
35575         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
35576
35577 2008-07-27  Jim Meyering  <meyering@redhat.com>
35578
35579         * users.txt: Add zile.
35580
35581 2008-07-26  Ben Pfaff  <blp@gnu.org>
35582
35583         Add missing dependencies on new m4/exponent[fdl].m4 files.
35584         * modules/isnanf-nolibm: Add m4/exponentf.m4.
35585         * modules/isnand-nolibm: Add m4/exponentd.m4.
35586         * modules/isnanl-nolibm: Add m4/exponentl.m4.
35587         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
35588         m4/isnan[fdl].m4, because the macros actually used moved.
35589         Reported by Jim Meyering.
35590
35591 2008-07-14  Ben Pfaff  <blp@gnu.org>
35592
35593         Add isinf module.
35594         * lib/isinf.c: New file.
35595         * lib/math.in.h: Define isinf macro if we have decided to replace
35596         it.
35597         * m4/isinf.m4: New file.
35598         * m4/math_h.m4: Initialize and substitute variables for isinf
35599         module.
35600         * modules/isinf: New file.
35601         * modules/isinf-tests: New file.
35602         * modules/math: Add substitutions for new module.
35603         * tests/test-isinf.c: New file.
35604         * doc/posix-functions/isinf.texi: Mention new module.
35605         * MODULES.html.sh: Mention new module.
35606
35607 2008-07-14  Ben Pfaff  <blp@gnu.org>
35608
35609         Factor out some macros for use by additional modules.
35610         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
35611         exponentf.m4.
35612         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
35613         exponentd.m4.
35614         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
35615         file exponentl.m4.
35616         * m4/exponentf.m4: New file.
35617         * m4/exponentd.m4: New file.
35618         * m4/exponentl.m4: New file.
35619         * modules/isnanf: Use new file m4/exponentf.m4.
35620         * modules/isnand: Use new file m4/exponentd.m4.
35621         * modules/isnanl: Use new file m4/exponentl.m4.
35622
35623 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
35624
35625         mktime.c: normalize tp->tm_isdst value to -1/0/1.
35626         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
35627         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
35628         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
35629
35630         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
35631         readlink on platforms without PATH_MAX.
35632
35633 2008-07-21  Eric Blake  <ebb9@byu.net>
35634
35635         Warn, not fail, on stale version.
35636         * top/GNUmakefile (_curr-ver): Tone down previous patch.
35637
35638         Don't allow installation with stale devel version number.
35639         * top/GNUmakefile (_is-install-target): New macro.
35640         (_curr-ver): Forbid installation with stale version number.
35641
35642 2008-07-20  Bruno Haible  <bruno@clisp.org>
35643
35644         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35645         TESTS_ENVIRONMENT.
35646         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35647
35648 2008-07-20  Bruno Haible  <bruno@clisp.org>
35649
35650         * lib/c-stack.h (c_stack_action): Add documentation.
35651         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35652
35653 2008-07-20  Bruno Haible  <bruno@clisp.org>
35654
35655         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35656         * modules/readlink (License): Likewise.
35657
35658 2008-07-17  Eric Blake  <ebb9@byu.net>
35659
35660         * modules/c-stack (Link): Fix typo.
35661
35662         Make c-stack use libsigsegv, when available.
35663         * modules/c-stack (Depends-on): Add libsigsegv.
35664         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35665         needed.
35666         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35667         (segv_handler, overflow_handler, c_stack_action)
35668         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
35669         implementation when libsigsegv is available, but only when using
35670         the library is necessary.
35671         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
35672         comment, explaining why XSI check fails on Linux.
35673         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
35674         * tests/test-c-stack2.sh: Tweak skip message.
35675         * NEWS: Document new link-time requirements.
35676
35677 2008-07-16  Eric Blake  <ebb9@byu.net>
35678
35679         c-stack: Expose false positives when not using libsigsegv.
35680         * modules/c-stack-tests (Files): Expand test.
35681         * tests/test-c-stack.c (main): Add means to conditionally trigger
35682         non-overflow SIGSEGV.
35683         * tests/test-c-stack2.sh: New file.
35684
35685 2008-07-14  Bruno Haible  <bruno@clisp.org>
35686
35687         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
35688         Reported by Eric Blake.
35689
35690 2008-07-14  Sam Steingold  <sds@gnu.org>
35691             Bruno Haible  <bruno@clisp.org>
35692
35693         New module libsigsegv.
35694         * modules/libsigsegv: New file.
35695         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
35696         modifications.
35697         * MODULES.html.sh (Signal handling): New section.
35698
35699 2008-07-14  Bruno Haible  <bruno@clisp.org>
35700
35701         * modules/unictype/ctype-* (Description): Add the word "function".
35702         Improves the resulting doc in MODULES.html.
35703
35704 2008-07-12  Ben Pfaff  <blp@gnu.org>
35705
35706         Add longlong module.
35707         * modules/longlong: New file.
35708
35709 2008-07-12  Bruno Haible  <bruno@clisp.org>
35710
35711         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
35712         to empty.
35713
35714 2008-07-10  Ben Pfaff  <blp@gnu.org>
35715
35716         Add isnan module.
35717         * doc/posix-functions/isnan.texi: Mention new module.
35718         * lib/math.in.h: Define isnan macro if we have decided to replace
35719         it.
35720         * m4/isnan.m4: New file.
35721         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
35722         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
35723         also.
35724         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
35725         redundancy.
35726         * m4/math_h.m4: Initialize and substitute variables for isnan
35727         module.
35728         * modules/isnan: New file.
35729         * modules/isnan-tests: New file.
35730         * modules/math: Add substitutions for new module.
35731         * tests/test-isnan.c: New file.
35732         * MODULES.html.sh: Mention new module.
35733
35734 2008-07-10  Ben Pfaff  <blp@gnu.org>
35735
35736         Add isnanf module.
35737         * lib/isnanf.m4: New file.
35738         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
35739         (gl_HAVE_ISNANF_IN_LIBM): New macro.
35740         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
35741         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
35742         * modules/isnanf: New file.
35743         * modules/isnanf-tests: New file.
35744         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
35745         files.
35746         * tests/test-isnanf-nolibm.c: factored most of its contents into
35747         new file tests/test-isnanf.h.
35748         * tests/test-isnanf.h: New file.
35749         * tests/test-isnanf.c: New file.
35750         * MODULES.html.sh: Mention new module.
35751         * doc/glibc-functions/isnanf.texi: Mention new module.
35752
35753 2008-07-10  Ben Pfaff  <blp@gnu.org>
35754
35755         Add isnand module.
35756         * lib/isnand.h: New file.
35757         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
35758         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
35759         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
35760         functionality also.
35761         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
35762         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
35763         (gl_HAVE_ISNAND_IN_LIBM): New macro.
35764         * modules/isnand: New file.
35765         * modules/isnand-tests: New file.
35766         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
35767         files.
35768         * tests/test-isnand-nolibm.c: factored most of its contents into
35769         new file tests/test-isnand.h.
35770         * tests/test-isnand.h: New file.
35771         * tests/test-isnand.c: New file.
35772         * MODULES.html.sh: Mention new module.
35773
35774 2008-07-10  Ben Pfaff  <blp@gnu.org>
35775
35776         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35777         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35778         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35779         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35780         * modules/isnanf-nolibm: Update references to renamed files.
35781         * modules/isnand-nolibm: Likewise.
35782         * modules/isnanf-nolibm-tests: Likewise.
35783         * modules/isnand-nolibm-tests: Likewise.
35784         * lib/frexp.c: Likewise.
35785         * lib/isfinite.c: Likewise.
35786         * lib/signbitd.c: Likewise.
35787         * lib/signbitf.c: Likewise.
35788         * lib/vasnprintf.c: Likewise.
35789         * tests/test-ceilf1.c: Likewise.
35790         * tests/test-ceilf2.c: Likewise.
35791         * tests/test-floorf1.c: Likewise.
35792         * tests/test-floorf2.c: Likewise.
35793         * tests/test-frexp.c: Likewise.
35794         * tests/test-round1.c: Likewise.
35795         * tests/test-round2.c: Likewise.
35796         * tests/test-roundf1.c: Likewise.
35797         * tests/test-strtod.c: Likewise.
35798         * tests/test-trunc1.c: Likewise.
35799         * tests/test-trunc2.c: Likewise.
35800         * tests/test-truncf1.c: Likewise.
35801         * tests/test-truncf2.c: Likewise.
35802         * NEWS: Mention the renamed header files.
35803
35804 2008-07-11  Jim Meyering  <meyering@redhat.com>
35805
35806         vc-list-files: make the last-resort awk code more portable
35807         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35808         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35809         does not support it.
35810
35811 2008-07-10  Eric Blake  <ebb9@byu.net>
35812
35813         Work with tar's bootstrap.
35814         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35815         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
35816         an m4 comment.
35817
35818 2008-07-09  Jim Meyering  <meyering@redhat.com>
35819
35820         posix-shell.m4: fix typo that made this test malfunction
35821         * m4/posix-shell.m4: Remove capitalization in variable name.
35822
35823 2008-07-08  Bruno Haible  <bruno@clisp.org>
35824
35825         * m4/onceonly.m4: Update comments.
35826         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35827
35828 2008-07-04  Jim Meyering  <meyering@redhat.com>
35829
35830         * users.txt: Add vc-dwim.
35831         (bison, coreutils): Use the gitweb URL.
35832
35833 2008-07-03  Jim Meyering  <meyering@redhat.com>
35834
35835         * users.txt: Add libffcall.  From Sam Steingold.
35836
35837 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
35838
35839         getdate.y: do not ignore TZ with relative day, month or year offset
35840         * lib/getdate.y (get_date): Move the tz-handling block to follow the
35841         relative-date-handling, since otherwise, the latter would clobber the
35842         sole output (an updated Start value) of the tz-handling block.
35843         * tests/test-getdate.c: Tests for the fix
35844
35845 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35846
35847         Recognize 'foo_LIBRARIES += libgnu.a'.
35848         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
35849         makefile snippet has already specified an installation location,
35850         also using '+='.
35851
35852 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
35853
35854         getdate.y: factor out common actions
35855         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
35856         Use them in place of open-coded actions.
35857
35858 2008-07-01  Simon Josefsson  <simon@josefsson.org>
35859
35860         Add self-test for getdate module.
35861         * modules/getdate-tests: New file.
35862         * tests/test-getdate.c: New file.
35863
35864 2008-06-29  Bruno Haible  <bruno@clisp.org>
35865
35866         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
35867         .gitignore.
35868         Reported by Sylvain Beucler <beuc@beuc.net>.
35869
35870 2008-06-29  Bruno Haible  <bruno@clisp.org>
35871
35872         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
35873         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
35874
35875 2008-06-29  Bruno Haible  <bruno@clisp.org>
35876
35877         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
35878         EXTRA_DIST.
35879         Reported by Sylvain Beucler <beuc@beuc.net>.
35880
35881 2008-06-26  Jim Meyering  <meyering@redhat.com>
35882
35883         make several modules depend on the "open" module
35884         This provides slightly increased consistency when opening-for-write
35885         the name of a non-directory spelled with a trailing slash.
35886         * modules/chdir-safer: Likewise.
35887         * modules/chown: Likewise.
35888         * modules/clean-temp: Likewise.
35889         * modules/copy-file: Likewise.
35890         * modules/fchdir: Likewise.
35891         * modules/fcntl-safer: Likewise.
35892         * modules/pipe: Likewise.
35893         * modules/utime: Likewise.
35894         Prompted by Eric Blake and Bruno Haible.
35895
35896 2008-06-24  Andreas Schwab  <schwab@suse.de>
35897
35898         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
35899         literals can be used as initializers for global variables.
35900
35901 2008-06-23  Eric Blake  <ebb9@byu.net>
35902
35903         Make gnulib-cache.m4 easier to diff.
35904         * gnulib-tool (func_import): Allow newlines when reading cached
35905         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
35906
35907 2008-06-23  Bruno Haible  <bruno@clisp.org>
35908
35909         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
35910         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
35911         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
35912         m4/signalblocking.m4.
35913         (gl_PREREQ_SIGACTION): Don't invoke it.
35914         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
35915         gl_PREREQ_SIG_HANDLER_H.
35916         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35917         Don't check for sigaction here.
35918
35919 2008-06-23  Bruno Haible  <bruno@clisp.org>
35920
35921         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
35922         (install_handlers): Don't set the SA_RESETHAND flag.
35923
35924 2008-06-23  Bruno Haible  <bruno@clisp.org>
35925
35926         * m4/sigaction.m4: Comment fixes.
35927         * lib/signal.in.h: Likewise.
35928
35929 2008-06-23  Eric Blake  <ebb9@byu.net>
35930
35931         Fix typo.
35932         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
35933
35934         Avoid SA_ namespace.
35935         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
35936         Reported by Ralf Wildenhues.
35937
35938         Avoid test failure due to SA_RESTORER.
35939         * tests/test-sigaction.c (SA_MASK): New macro.
35940         (main): Avoid failing due to extension flags being set.
35941         Reported by Jim Meyering.
35942
35943         Revert use of sig-handler.h in sigprocmask.c.
35944         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
35945         it requires the existence of struct sigaction.
35946         * lib/sigprocmask.c (handler_t): Restore typedef.
35947         (rpl_signal, old_handlers): Use local type.
35948
35949 2008-06-22  Bruno Haible  <bruno@clisp.org>
35950
35951         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
35952         conditionally.
35953         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35954
35955 2008-06-22  Bruno Haible  <bruno@clisp.org>
35956
35957         * doc/posix-functions/siginterrupt.texi: Move note.
35958
35959         * lib/signal.in.h (SA_RESTART): New macro.
35960         * lib/sigaction.c: Update comment.
35961
35962         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
35963
35964         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
35965         (gl_PREREQ_SIGPROCMASK): Invoke it.
35966         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
35967
35968         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
35969
35970         * lib/sigprocmask.c: Update a comment.
35971
35972 2008-06-21  Eric Blake  <ebb9@byu.net>
35973
35974         Use sigaction module rather than signal().
35975         * modules/c-stack (Depends-on): Add sigaction.
35976         * modules/fatal-signal (Depends-on): Likewise.
35977         * modules/nanosleep (Depends-on): Likewise.
35978         * modules/sigprocmask (Files): Add sig-handler.h.
35979         * modules/sigaction (Files): Likewise.
35980         * lib/sig-handler.h (get_handler): New file, suggested by Paul
35981         Eggert.
35982         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
35983         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
35984         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
35985         (init_fatal_signals): Likewise.
35986         * lib/nanosleep.c (rpl_nanosleep): Likewise.
35987         (siginterrupt): Delete fallback.
35988         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
35989         instead.
35990         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
35991         siginterrupt.
35992
35993         New module sigaction, for mingw.
35994         * modules/sigaction: New module...
35995         * modules/sigaction-tests: ...and its test.
35996         * m4/sigaction.m4: New file.
35997         * lib/sigaction.c: Likewise.
35998         * tests/test-sigaction.c: Likewise.
35999         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36000         * modules/signal (Makefile.am): Likewise.
36001         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36002         needed.
36003         * doc/posix-headers/signal.texi (signal.h): Mention provided
36004         types.
36005         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36006         that sigaction is preferable.
36007         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36008         module.
36009         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36010         sigaction.
36011
36012         Improve robustness of sigprocmask by overriding signal.
36013         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36014         is in use.
36015         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36016         (SIGKILL, SIGSTOP): Provide fallbacks.
36017         (rpl_signal): Implement.
36018         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36019         signal can be called inside handlers.
36020
36021         Fix nanosleep module on mingw.
36022         * modules/nanosleep (Depends-on): Add sys_select.
36023         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36024
36025         Fix licensing of sigprocmask.
36026         * modules/raise (License): Relicense as LGPL.
36027
36028 2008-06-21  Bruno Haible  <bruno@clisp.org>
36029
36030         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36031         result if it contains question marks.
36032         Reported by Michael Geng <linux@michaelgeng.de>.
36033
36034 2008-06-19  Bruno Haible  <bruno@clisp.org>
36035
36036         Fix CVS-ism.
36037         * doc/gnulib.texi: Include updated-stamp.texi.
36038         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36039         (updated-stamp.texi): New rule.
36040         (gnulib.info): Depend on it.
36041         * doc/.gitignore: Add updated-stamp.texi.
36042         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36043
36044 2008-06-19  Bruno Haible  <bruno@clisp.org>
36045
36046         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36047         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36048
36049 2008-06-19  Eric Blake  <ebb9@byu.net>
36050
36051         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36052         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36053         Reported by Stepan Kasal.
36054
36055 2008-06-18  Bruno Haible  <bruno@clisp.org>
36056
36057         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36058         Reported by Eric Blake.
36059
36060 2008-06-18  Eric Blake  <ebb9@byu.net>
36061
36062         Work around cygwin 1.5.25 strsignal bug.
36063         * tests/test-strsignal.c: Allow for const char *.
36064         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36065
36066 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36067
36068         * users.txt: Update URL to article and add author/date
36069         information.
36070
36071 2008-06-17  Bruno Haible  <bruno@clisp.org>
36072
36073         New macro gl_DISABLE_THREADS.
36074         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36075         if the user did not pass --enable-threads or --disable-threads option.
36076         (gl_DISABLE_THREADS): New macro.
36077         Reported by Eric Blake <ebb9@byu.net>.
36078
36079 2008-06-17  Bruno Haible  <bruno@clisp.org>
36080
36081         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36082         when the macro ignores it.
36083         Based on a patch by Eric Blake <ebb9@byu.net>.
36084
36085 2008-06-17  Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/tls (License): Change to LGPLv2+.
36088         Reported by Eric Blake.
36089
36090 2008-06-17  Eric Blake  <ebb9@byu.net>
36091
36092         Simplify c-stack prerequisites.
36093         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36095         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36096         check.
36097         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36098         <sys/resource.h>.
36099
36100         Move c-stack test into testsuite.
36101         * modules/c-stack-tests: New file.
36102         * lib/c-stack.c [DEBUG]: Move test program...
36103         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36104         fail test if sigaltstack is lacking.
36105         * tests/test-c-stack.sh: New driver file.
36106
36107 2008-06-16  Eric Blake  <ebb9@byu.net>
36108
36109         Use raise module consistently.
36110         * modules/fatal-signal (Depends-on): Add raise.
36111         * modules/sigprocmask (Depends-on): Likewise.
36112         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36113         * lib/sigprocmask.c (sigprocmask): Likewise.
36114         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36115         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36116
36117         Fix compliance bug in sigpending.
36118         * lib/sigprocmask.c (sigpending): Return pending array via
36119         parameter, not return value.
36120
36121 2008-06-14  Eric Blake  <ebb9@byu.net>
36122
36123         Improve obstack-printf test code.
36124         * tests/test-obstack-printf.c (test_function): Fix comment, and
36125         simplify usage of obstack_* in macros.  Add a test for coverage.
36126         Reported by Bruno Haible.
36127
36128 2008-06-14  Bruno Haible  <bruno@clisp.org>
36129
36130         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36131         array size as a constant, not as a const variable.
36132         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36133         AC_USE_SYSTEM_EXTENSIONS.
36134         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36135         Test whether the obstack_printf function actually exists.
36136         * modules/obstack-printf (Depends-on): Add extensions.
36137         (Include): Remove obstack.h.
36138         * modules/obstack-printf-posix (Depends-on): Add extensions.
36139         (Include): Remove obstack.h.
36140
36141 2008-06-13  Eric Blake  <ebb9@byu.net>
36142
36143         Add obstack-printf and obstack-printf-posix modules.
36144         * modules/obstack-printf: New file.
36145         * modules/obstack-printf-posix: Likewise.
36146         * MODULES.html.sh (Misc): Mention them.
36147         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36148         Likewise.
36149         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36150         Likewise.
36151         * modules/stdio (Makefile.am): Accomodate new modules.
36152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36153         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36154         Declare.
36155         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36156         functions.
36157         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36158         (gl_REPLACE_OBSTACK_PRINTF): New macros
36159         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36160         * tests/test-obstack-printf.c: New file.
36161         * modules/obstack-printf-tests: Likewise.
36162         * modules/obstack-printf-posix-tests: Likewise.
36163
36164 2008-06-11  Bruno Haible  <bruno@clisp.org>
36165
36166         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36167         * lib/open.c: Include errno.h.
36168         (open): Fail when attempting to write to a file that has a trailing
36169         slash.
36170         * tests/test-open.c (main): Test against trailing slash bug.
36171         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36172
36173 2008-06-10  Bruno Haible  <bruno@clisp.org>
36174
36175         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36176         for $? to work inside the trap command, with various /bin/sh-s.
36177         * tests/test-vc-list-files-cvs.sh: Likewise.
36178
36179 2008-06-10  Bruno Haible  <bruno@clisp.org>
36180
36181         * lib/acl-internal.h: Don't include gettext.h here.
36182         * lib/set-mode-acl.c: Include gettext.h here.
36183         * lib/copy-acl.c: Likewise.
36184
36185 2008-06-10  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
36188         * lib/wait-process.c (wait_subprocess): Likewise.
36189         * lib/execute.h (execute): Add termsigp argument.
36190         * lib/execute.c (execute): Likewise.
36191         * lib/csharpcomp.c (compile_csharp_using_pnet,
36192         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
36193         * lib/csharpexec.c (execute_csharp_using_pnet,
36194         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
36195         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
36196         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
36197         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
36198         is_jikes_present): Update.
36199         * lib/javaexec.c (execute_java_class): Update.
36200         * lib/javaversion.c (execute_and_read_line): Update.
36201         * NEWS: Document the changes.
36202         Reported by Eric Blake.
36203
36204 2008-06-10  Eric Blake  <ebb9@byu.net>
36205
36206         Add missing include.
36207         * tests/test-strstr.c (includes): Add <signal.h>.
36208         * tests/test-strcasestr.c (includes): Likewise.
36209         * tests/test-memmem.c (includes): Likewise.
36210
36211 2008-06-10  Bruno Haible  <bruno@clisp.org>
36212
36213         * lib/wait-process.c (wait_subprocess): Add an assertion.
36214
36215 2008-06-10  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
36218
36219 2008-06-10  Bruno Haible  <bruno@clisp.org>
36220
36221         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
36222         using alarm().
36223         * tests/test-strcasestr.c (main): Likewise.
36224         * tests/test-strstr.c (main): Likewise.
36225
36226 2008-06-09  Bruno Haible  <bruno@clisp.org>
36227
36228         Work around the Solaris 10 ACE ACLs ABI change.
36229         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
36230         declare if ACL_NO_TRIVIAL is present.
36231         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
36232         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
36233         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
36234         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
36235         define if ACL_NO_TRIVIAL is present.
36236         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
36237         and use the current ABI.
36238         (file_has_acl): Use same #if condition as elsewhere.
36239         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
36240         in use, and use the current ABI.
36241         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
36242         Reported by Jim Meyering.
36243
36244 2008-06-09  Eric Blake  <ebb9@byu.net>
36245
36246         Work around environments that (stupidly) ignore SIGALRM.
36247         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
36248         before using alarm().
36249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36250         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36251         Reported by Ian Beckwith <ianb@erislabs.net>.
36252
36253         Produce autobuild blurb earlier in log.
36254         * modules/autobuild (configure.ac-early): Move AB_INIT here.
36255
36256 2008-06-09  Jim Meyering  <meyering@redhat.com>
36257         and OndÅ™ej Vašík  <ovasik@redhat.com>
36258
36259         utimens.c: correct kernel bug work-around
36260         OndÅ™ej Vašík found that the invalid return value of 280 indicates
36261         failure, not success, and the kernel bug we're trying to work
36262         around affects not just the utimensat call, but also the fallback
36263         futimens call.
36264         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
36265         not success.
36266         [HAVE_FUTIMENS]: Use the same work-around, here.
36267
36268 2008-06-09  Jim Meyering  <meyering@redhat.com>
36269
36270         add more guards around definition of ACE_-related code
36271         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
36272         ALLOW and ACE_OWNER are also defined.
36273
36274 2008-06-08  Bruno Haible  <bruno@clisp.org>
36275
36276         * lib/acl-internal.h: Add me as co-author.
36277         * lib/file-has-acl.c: Likewise.
36278         * lib/set-mode-acl.c: Likewise.
36279         * lib/copy-acl.c: Likewise.
36280
36281 2008-06-08  Bruno Haible  <bruno@clisp.org>
36282
36283         Add support for AIX ACLs.
36284         * lib/acl-internal.h (acl_nontrivial): New declaration.
36285         * lib/file-has-acl.c (acl_nontrivial): New function.
36286         (file_has_acl): Add implementation using AIX 4 ACL API.
36287         * lib/set-mode-acl.c (qset_acl): Likewise.
36288         * lib/copy-acl.c (qcopy_acl): Likewise.
36289
36290 2008-06-08  Bruno Haible  <bruno@clisp.org>
36291
36292         Add support for HP-UX ACLs.
36293         * lib/acl-internal.h (acl_nontrivial): New declaration.
36294         * lib/file-has-acl.c (acl_nontrivial): New function.
36295         (file_has_acl): Add implementation using HP-UX 11 ACL API.
36296         * lib/set-mode-acl.c (qset_acl): Likewise.
36297         * lib/copy-acl.c (qcopy_acl): Likewise.
36298
36299 2008-06-08  Bruno Haible  <bruno@clisp.org>
36300
36301         Add support for Cygwin ACLs.
36302         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
36303         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
36304         the chmod_or_fchmod call.
36305         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
36306
36307 2008-06-08  Bruno Haible  <bruno@clisp.org>
36308
36309         Fix bug with setuid modes in Solaris 10+ code.
36310         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
36311         succeeded, when the mode contains some special bits.
36312
36313 2008-06-08  Bruno Haible  <bruno@clisp.org>
36314
36315         Add support for Solaris 7..10 ACLs.
36316         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
36317         declarations.
36318         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
36319         functions.
36320         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
36321         * lib/set-mode-acl.c (qset_acl): Likewise.
36322         * lib/copy-acl.c (qcopy_acl): Likewise.
36323
36324 2008-06-08  Bruno Haible  <bruno@clisp.org>
36325
36326         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
36327         declaration.
36328         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
36329         (acl_access_nontrivial): Remove MacOS X case.
36330         (file_has_acl): Use acl_extended_nontrivial.
36331         * lib/copy-acl.c (qcopy_acl): Likewise.
36332
36333 2008-06-08  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
36336
36337 2008-06-08  Jim Meyering  <meyering@redhat.com>
36338
36339         * modules/acl (Maintainer): Add Bruno Haible.
36340
36341 2008-06-07  Bruno Haible  <bruno@clisp.org>
36342
36343         Improve support for Tru64 ACLs.
36344         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
36345         ACL on OSF/1.
36346
36347 2008-06-07  Bruno Haible  <bruno@clisp.org>
36348
36349         Add support for MacOS X ACLs.
36350         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
36351         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
36352         * lib/set-mode-acl.c (qset_acl): Likewise.
36353         * lib/copy-acl.c (qcopy_acl): Likewise.
36354
36355 2008-06-07  Bruno Haible  <bruno@clisp.org>
36356
36357         Fix memory leak introduced on 2008-05-22.
36358         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
36359         use.
36360
36361 2008-06-07  Bruno Haible  <bruno@clisp.org>
36362
36363         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
36364         to construct an empty ACL.
36365
36366 2008-06-07  Bruno Haible  <bruno@clisp.org>
36367
36368         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
36369         precisely.
36370         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
36371
36372 2008-06-07  Bruno Haible  <bruno@clisp.org>
36373
36374         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
36375         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
36376
36377 2008-06-07  Bruno Haible  <bruno@clisp.org>
36378
36379         * doc/posix-functions/_setjmp.texi: Explain the use of this function
36380         regardless of POSIX.
36381         * doc/posix-functions/_longjmp.texi: Likewise.
36382         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
36383         SystemV platform in this case.
36384
36385 2008-06-06  Eric Blake  <ebb9@byu.net>
36386
36387         Document abort() bugs.
36388         * doc/posix-functions/abort.texi (abort): Mention anomalies.
36389
36390         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
36391         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
36392         sigsetjmp.
36393         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
36394         siglongjmp, but only as a macro.
36395         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
36396         is obsolete.
36397         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
36398
36399         Tweak documentation to cover cygwin argz bugs.
36400         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
36401         argz bug fix; no code change needed since no cygwin releases
36402         occurred between the last fix and the bug being tested.
36403         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
36404         module and recently fixed cygwin bugs.
36405         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
36406         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
36407         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
36408         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
36409         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
36410         Likewise.
36411         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36412         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
36413         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
36414         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
36415         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
36416         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
36417         Likewise.
36418
36419         Avoid gcc warning on cygwin.
36420         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
36421         !ACL_NO_TRIVIAL]: Avoid unused variable.
36422
36423 2008-06-05  Eric Blake  <ebb9@byu.net>
36424
36425         Be tolerant of UNKNOWN version in gnulib-tool test dir.
36426         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
36427         git-version-gen fails to come up with a version.
36428         Reported by Simon Josefsson.
36429
36430 2008-06-05  Jim Meyering  <meyering@redhat.com>
36431             Paul Eggert  <eggert@cs.ucla.edu>
36432
36433         utimens.c: work around a probable Linux kernel bug
36434         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36435         appears to be a kernel bug that causes utimensat to return 280
36436         instead of 0, indicating success.
36437
36438 2008-06-04  Bruno Haible  <bruno@clisp.org>
36439
36440         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36441         2008-06-01 commit.
36442
36443 2008-06-04  Bruno Haible  <bruno@clisp.org>
36444
36445         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
36446         * lib/file-has-acl.c (acl_access_nontrivial): New function.
36447         (file_has_acl): Use it. Save errno afterwards.
36448         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
36449
36450 2008-06-03  Bruno Haible  <bruno@clisp.org>
36451
36452         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
36453         draft code. Simplify #ifs.
36454         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
36455         Put Solaris code after POSIX-draft code. Fix comments regarding
36456         Solaris 10, HP-UX. Mention Cygwin.
36457         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
36458
36459 2008-06-03  Eric Blake  <ebb9@byu.net>
36460
36461         Provide fallback for older kernels.
36462         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
36463         Provide runtime fallback if kernel lacks support.
36464         Reported by Mike Frysinger.
36465
36466 2008-06-02  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
36469         it exists.
36470
36471 2008-06-02  Bruno Haible  <bruno@clisp.org>
36472
36473         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
36474         * lib/copy-acl.c (qcopy_acl): Update comment.
36475
36476 2008-06-02  Bruno Haible  <bruno@clisp.org>
36477
36478         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
36479         like ACL APIs.
36480
36481 2008-06-02  Bruno Haible  <bruno@clisp.org>
36482
36483         * tests/test-file-has-acl.sh: Use different code for Cygwin.
36484         * tests/test-set-mode-acl.sh: Likewise.
36485         * tests/test-copy-acl.sh: Likewise.
36486         * tests/test-copy-file.sh: Likewise.
36487
36488 2008-06-02  Bruno Haible  <bruno@clisp.org>
36489
36490         * tests/test-file-has-acl.sh: Remove unused code.
36491
36492 2008-06-01  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
36495         (copy_acl): Just a wrapper around qcopy_acl that emits the error
36496         messages.
36497         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
36498
36499 2008-06-01  Bruno Haible  <bruno@clisp.org>
36500
36501         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
36502         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
36503         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
36504         APIs.
36505         * modules/acl-tests (configure.ac): Remove tests now contained in
36506         m4/acl.m4.
36507
36508 2008-06-02  Jim Meyering  <meyering@redhat.com>
36509
36510         announce-gen: use a better key-server host name
36511         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
36512         it may be more consistently reliable.  Suggested by Werner Koch
36513         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
36514
36515 2008-06-01  Bruno Haible  <bruno@clisp.org>
36516
36517         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
36518         Reported by Voroskoi Andras <voroskoi@gmail.com>.
36519
36520 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
36521
36522         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
36523
36524 2008-06-01  Bruno Haible  <bruno@clisp.org>
36525
36526         New ACL tests.
36527         * tests/test-file-has-acl.sh: New file.
36528         * tests/test-file-has-acl.c: New file.
36529         * tests/test-set-mode-acl.sh: New file.
36530         * tests/test-set-mode-acl.c: New file.
36531         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
36532         * tests/test-copy-acl.c: New file.
36533         * modules/acl-tests: New file, based on modules/copy-file-tests.
36534         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
36535         (Depends-on): Add acl-tests.
36536         (configure.ac): Remove checks.
36537         (Makefile.am): Don't create test-sameacls program here any more.
36538
36539 2008-06-01  Bruno Haible  <bruno@clisp.org>
36540
36541         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
36542         * tests/test-sameacls.c: Include progname.h.
36543         (main): Invoke set_program_name. Portability fixes for MacOS X,
36544         Solaris, HP-UX.
36545
36546 2008-06-01  Bruno Haible  <bruno@clisp.org>
36547
36548         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
36549         function.
36550         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
36551
36552 2008-06-01  Bruno Haible  <bruno@clisp.org>
36553
36554         * modules/rpmatch (Depends-on): Add strdup.
36555
36556 2008-06-01  Bruno Haible  <bruno@clisp.org>
36557
36558         * lib/pipe.c: Include unistd-safer.h.
36559         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
36560         * modules/pipe (Depends-on): Add unistd-safer.
36561
36562 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36563
36564         * modules/autobuild (configure.ac): Call AB_INIT.
36565
36566 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36567
36568         * tests/test-getaddrinfo.c: Don't print debug messages by default.
36569         Suggested by Bruno Haible <bruno@clisp.org>.
36570
36571 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36572
36573         * tests/test-base64.c: Cast size_t to unsigned long when invoking
36574         printf.  Use %lu instead of %d.  Reported by Bruno Haible
36575         <bruno@clisp.org>.
36576
36577 2008-05-29  Eric Blake  <ebb9@byu.net>
36578
36579         Prefer new POSIX 200x interfaces over futimesat.
36580         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
36581         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
36582         when available.
36583         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
36584
36585 2008-05-28  Bruno Haible  <bruno@clisp.org>
36586
36587         * modules/stpcpy (License): Change to LGPLv2+.
36588         Requested by David Lutterkort <dlutter@redhat.com>.
36589
36590 2008-05-27  Bruno Haible  <bruno@clisp.org>
36591
36592         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
36593         current mingw.
36594         Reported by Jose E. Marchesi <jemarch@gnu.org>.
36595
36596 2008-05-27  Bruno Haible  <bruno@clisp.org>
36597
36598         * modules/iconv_open (Link): New section, from module 'iconv'.
36599         * modules/striconv (Link): Likewise.
36600         * modules/striconveh (Link): Likewise.
36601         * modules/xstriconv (Link): Likewise.
36602         * modules/unicodeio (Link): Likewise.
36603         * modules/propername (Link): Likewise.
36604         Reported by Jim Meyering.
36605
36606 2008-05-26  Jim Meyering  <meyering@redhat.com>
36607
36608         sha256: do not artificially restrict buffer length to be < 2^32
36609         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
36610         uint32_t to size_t.
36611         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
36612         to match.
36613
36614         avoid unaligned access errors, e.g., on sparc
36615         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
36616         direct access through a possibly-unaligned uint64* pointer.
36617         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
36618         direct access through a possibly-unaligned uint32* pointer.
36619         Prompted by this patch from Tom "spot" Callaway:
36620         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
36621
36622         sha512.c: fix typo in comment
36623         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
36624
36625 2008-05-25  Bruno Haible  <bruno@clisp.org>
36626
36627         * lib/set-mode-acl.c: Renamed from lib/acl.c.
36628         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
36629         (Makefile.am): Update lib_SOURCES.
36630
36631 2008-05-25  Bruno Haible  <bruno@clisp.org>
36632
36633         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
36634
36635 2008-05-25  Jim Meyering  <meyering@redhat.com>
36636
36637         useless-if-before-free: freed expr may have white-space differences
36638         * build-aux/useless-if-before-free: Recognize cases in which the
36639         freed expression differs from the tested one in embedded white
36640         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
36641         $1 was used, so we can't make any regexp shy.  Improved tests now
36642         detect this.
36643
36644         useless-if-before-free: accept white space in the expression.
36645         * build-aux/useless-if-before-free: For now, any white space
36646         in the expression must be identical in the free argument.
36647
36648         useless-if-before-free: efficiency tweak
36649         * build-aux/useless-if-before-free: Make the expression-matching
36650         regexp "shy".
36651         Make the *outer* regexp shy, not the expr-matching one.
36652
36653         update code-in-comment to accept cast of free arg
36654         * build-aux/useless-if-before-free: Update regexp.
36655
36656 2008-05-25  Bruno Haible  <bruno@clisp.org>
36657
36658         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36659         * modules/copy-file-tests (Files, Makefile.am): Update.
36660         * tests/test-copy-file.c (func_test_copy): Update.
36661
36662 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36663
36664         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36665
36666 2008-05-23  Bruno Haible  <bruno@clisp.org>
36667
36668         Improve support for ACLs on OSF/1.
36669         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
36670         Remove fallback for unknown flavors of ACLs.
36671
36672 2008-05-22  Bruno Haible  <bruno@clisp.org>
36673
36674         Add support for ACLs on OSF/1.
36675         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
36676         replacements.
36677         (acl_free_text): New macro fallback.
36678         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
36679         acl_free.
36680         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
36681         acl_free_text function. Require AC_C_INLINE.
36682
36683 2008-05-22  Bruno Haible  <bruno@clisp.org>
36684
36685         Make copy_acl work on MacOS X 10.5.
36686         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
36687         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
36688         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
36689         If MODE_INSIDE_ACL, don't assume that every system has the same text
36690         representation for ACLs as FreeBSD.
36691         * lib/copy-acl.c (copy_acl): Add support for platforms with
36692         !MODE_INSIDE_ACL.
36693         * lib/file-has-acl.c (file_has_acl): Likewise.
36694         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
36695         FreeBSD, MacOS X, or IRIX, respectively.
36696
36697 2008-05-22  Bruno Haible  <bruno@clisp.org>
36698
36699         * lib/acl.h: Don't include <sys/acl.h>.
36700         (GETACLCNT): Move fallback to lib/acl-internal.h.
36701         * lib/acl-internal.h: Include <sys/acl.h> here.
36702         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
36703
36704 2008-05-22  Bruno Haible  <bruno@clisp.org>
36705
36706         Split off copy_acl function to separate file.
36707         * lib/copy-acl.c: New file, extracted from lib/acl.c.
36708         * lib/acl.c (copy_acl): Moved function to separate file.
36709         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
36710         * modules/acl (Files): Add lib/copy-acl.c.
36711         (Makefiles.am): Augment lib_SOURCES.
36712
36713 2008-05-22  Bruno Haible  <bruno@clisp.org>
36714
36715         * modules/copy-file-tests: New file.
36716         * tests/test-copy-file.sh: New file.
36717         * tests/test-copy-file.c: New file.
36718         * tests/test-copy-file-sameacls.c: New file.
36719
36720 2008-05-22  Eric Blake  <ebb9@byu.net>
36721
36722         Avoid gcc warning.
36723         * tests/test-memcmp.c (main): Pass NULL indirectly.
36724
36725 2008-05-21  Bruno Haible  <bruno@clisp.org>
36726
36727         Add reference doc about ACLs.
36728         * doc/acl-resources.txt: New file.
36729         * doc/acl-cygwin.txt: New file.
36730
36731 2008-05-21  Bruno Haible  <bruno@clisp.org>
36732
36733         Avoid one more warning from gcc.
36734         * lib/vasnprintf.c (IF_LINT): Update comments.
36735         (VASNPRINTF): Use it also for the 'prefix' array initializer.
36736
36737 2008-05-21  Jim Meyering  <meyering@redhat.com>
36738
36739         avoid a warning from gcc
36740         * lib/vasnprintf.c (IF_LINT): Define.
36741         (scale10_round_decimal_long_double):
36742         Use it to avoid a "may be used uninitialized" warning.
36743         (scale10_round_decimal_double): Likewise.
36744
36745 2008-05-21  Simon Josefsson  <simon@josefsson.org>
36746
36747         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
36748         declared.
36749
36750 2008-05-20  Bruno Haible  <bruno@clisp.org>
36751
36752         * tests/test-memcmp.c (main): Test also the sign of the result. Test
36753         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
36754
36755 2008-05-20  Simon Josefsson  <simon@josefsson.org>
36756
36757         * modules/memcmp-tests: New file.
36758         * tests/test-memcmp.c: New file.
36759
36760 2008-05-19  Bruno Haible  <bruno@clisp.org>
36761
36762         * modules/propername (Notice, configure.ac): Put quoted "..." into
36763         --keyword option.
36764         * lib/propername.h: Update comments accordingly.
36765         Reported by Eric Blake.
36766
36767 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
36768
36769         * modules/getpass-gnu (Depends-on): Add fseeko.
36770
36771 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36772
36773         * modules/base64-tests: New file.
36774
36775 2008-05-19  Bo Borgerson <gigabo@gmail.com>
36776
36777         * lib/base64.c (base64_decode_ctx): If a decode context structure
36778         was passed in use it to ignore newlines.  If a context structure
36779         was _not_ passed in, continue to treat newlines as garbage (this
36780         is the historical behavior).  Formerly base64_decode.
36781         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36782         takes a decode context structure.
36783         * lib/base64.h (base64_decode): Macro for four-argument calls.
36784         (base64_decode_alloc): Likewise.
36785         * lib/base64.c (base64_decode_ctx): If a decode context structure
36786         was passed in use it to ignore newlines.  If a context structure
36787         was _not_ passed in, continue to treat newlines as garbage (this
36788         is the historical behavior).  Formerly base64_decode.
36789         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36790         takes a decode context structure.
36791         * lib/base64.h (base64_decode): Macro for four-argument calls.
36792         (base64_decode_alloc): Likewise.
36793
36794 2008-05-19  Jim Meyering  <meyering@redhat.com>
36795
36796         avoid a warning from gcc
36797         * lib/trim.c (IF_LINT): Define.
36798         (trim2): Use it to avoid a "may be used uninitialized" warning.
36799
36800         Fix doc typo.
36801         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36802
36803 2008-05-19  Bruno Haible  <bruno@clisp.org>
36804
36805         * doc/glibc-functions/getpass.texi: Document limits of other
36806         implementations.
36807
36808 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36809             Bruno Haible <bruno@clisp.org>
36810
36811         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36812
36813 2008-05-18  Bruno Haible  <bruno@clisp.org>
36814
36815         * modules/propername: New file, from GNU gettext.
36816         * lib/propername.h: New file, from GNU gettext.
36817         * lib/propername.c: New file, from GNU gettext.
36818         * MODULES.html.sh (Internationalization functions): Add propername.
36819
36820 2008-05-16  Jim Meyering  <meyering@redhat.com>
36821             Bruno Haible  <bruno@clisp.org>
36822
36823         Avoid some warnings from "gcc -Wshadow".
36824         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
36825
36826 2008-05-15  Eric Blake  <ebb9@byu.net>
36827
36828         Extend previous patch to cygwin 1.7.0.
36829         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
36830         fast implementation in cygwin >= 1.7.0.
36831         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36833
36834 2008-05-15  Bruno Haible  <bruno@clisp.org>
36835
36836         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
36837         implementation in glibc >= 2.9.
36838         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36840
36841 2008-05-15  Bruno Haible  <bruno@clisp.org>
36842
36843         * MODULES.html.sh (Internationalization functions): Remove linebreak.
36844         (Unicode string functions): Add unilbrk/*.
36845         Reported by Karl Berry.
36846
36847 2008-05-15  Eric Blake  <ebb9@byu.net>
36848
36849         Fix violation of <stdbool.h> replacement in regex.
36850         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
36851         * lib/regexec.c (re_search_internal): Likewise.
36852         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
36853
36854 2008-05-15  Jim Meyering  <meyering@redhat.com>
36855
36856         avoid distracting test output when git or cvs is not found
36857         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
36858         * tests/test-vc-list-files-git.sh: Likewise.
36859
36860 2008-05-15  Eric Blake  <ebb9@byu.net>
36861
36862         Glibc finally accepted the memmem speedup code, bugzilla #5514.
36863         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
36864         glibc version.
36865         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36866         * doc/posix-functions/strstr.texi (strstr): Likewise.
36867         * lib/str-two-way.h (MAX): Sychronize with glibc.
36868
36869 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
36870
36871         * lib/regcomp.c (optimize_utf8): Add a note on why we test
36872         opr.ctx_type.
36873         (calc_first): Initialize constraint field.
36874         (duplicate_node_closure): Use it instead of special casing ANCHORS.
36875         Fix grammar.
36876         (duplicate_node): Merge constraint field for all node types.
36877         (calc_eclosure_iter): Look at constraint field for all node types.
36878         * lib/regex_internal.c (create_cd_newstate): Don't look at
36879         opr.ctx_type.
36880
36881 2008-05-14  Bruno Haible  <bruno@clisp.org>
36882
36883         Help GCC to do better code generation.
36884         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
36885         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
36886         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
36887         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
36888         Declare with attribute 'malloc' if supported.
36889
36890 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
36891
36892         use "echo STR|wc -c" rather than unportable "expr length STR"
36893         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
36894         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
36895
36896 2008-05-14  Jim Meyering  <meyering@redhat.com>
36897
36898         use dd ibs=$n count=1 ... rather than less-portable head -c$n
36899         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
36900         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
36901         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
36902         via Collin Lasse.
36903
36904 2008-05-14  Eric Blake  <ebb9@byu.net>
36905
36906         Avoid quadratic growth in gl_LIBSOURCES.
36907         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
36908         Suggested by Bruno Haible.
36909
36910         Test xmemdup0.
36911         * modules/xmemdup0-tests: New file.
36912         * tests/test-xmemdup0.c: Likewise.
36913
36914 2008-05-13  Eric Blake  <ebb9@byu.net>
36915
36916         Split xmemdup0 into its own module.
36917         * modules/xmemdup0: New file.
36918         * lib/xmemdup0.h: Likewise.
36919         * lib/xmemdup0.c: Likewise.
36920         * MODULES.html.sh (Memory management functions): Add xmemdup0.
36921         * lib/xalloc.h (xmemdup0): Remove.
36922         * lib/xmalloc.c (xmemdup0): Likewise.
36923
36924 2008-05-13  Eric Blake  <ebb9@byu.net>
36925             Bruno Haible  <bruno@clisp.org>
36926
36927         Reduce number of forks required during autoconf.
36928         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
36929         and gl_LIBSOURCES_DIR.
36930         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
36931         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
36932         m4_syscmd per file.
36933         <m4_foreach_w>: Move...
36934         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
36935
36936 2008-05-13  Eric Blake  <ebb9@byu.net>
36937
36938         * gnulib-tool: Fix various comment typos.
36939
36940 2008-05-12  Bruno Haible  <bruno@clisp.org>
36941
36942         Tailor the linebreaking algorithm.
36943         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
36944
36945 2008-05-12  Bruno Haible  <bruno@clisp.org>
36946
36947         Update to Unicode 5.0.0.
36948         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36949         LBP_JV, LBP_JT. Redistribute values.
36950         (unilbrk_table): Change size.
36951         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
36952         Unicode TR#14 rev. 22.
36953         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36954         LBP_JV, LBP_JT. Redistribute values.
36955         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
36956         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
36957         Update.
36958         * lib/unilbrk/lbrkprop1.h: Regenerated.
36959         * lib/unilbrk/lbrkprop2.h: Regenerated.
36960         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
36961         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
36962         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
36963         Likewise.
36964         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
36965         Likewise.
36966         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
36967         result.
36968         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36969         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36970         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36971         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
36972         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
36973         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
36974
36975 2008-05-11  Bruno Haible  <bruno@clisp.org>
36976
36977         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
36978
36979 2008-05-11  Bruno Haible  <bruno@clisp.org>
36980
36981         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
36982         * modules/unilbrk/gen-lbrk: New file.
36983
36984 2008-05-11  Bruno Haible  <bruno@clisp.org>
36985
36986         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
36987         * m4/sha512.m4 (gl_SHA512): Likewise.
36988
36989 2008-05-11  Jim Meyering  <meyering@redhat.com>
36990
36991         New modules: crypto/sha256, crypto/sha512 (from coreutils)
36992         * modules/crypto/sha256: New file.
36993         * modules/crypto/sha512: Likewise.
36994         * lib/sha256.c: Likewise.
36995         * lib/sha256.h: Likewise.
36996         * lib/sha512.c: Likewise.
36997         * lib/sha512.h: Likewise.
36998         * lib/u64.h: Likewise.
36999         * m4/sha256.m4: Likewise.
37000         * m4/sha512.m4: Likewise.
37001         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37002
37003 2008-05-10  Bruno Haible  <bruno@clisp.org>
37004
37005         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37006         (Input/Output <stdio.h>): Add xprintf.
37007         (Signal handling <signal.h>): Add strsignal.
37008         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37009         (Core language properties): Add func.
37010         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37011         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37012         strings.
37013         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37014         (Input/output): New section.
37015         (File system functions): Add openat-die, stat-macros.
37016         (Networking functions): Add sockets.
37017         (Unicode string functions): Add unictype/*.
37018         (Support for building libraries and executables): Add gperf.
37019         (Support for building documentation): Add agpl-3.0.
37020         (Misc): Add nocrash.
37021
37022 2008-05-10  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/unictype/gen-ctype: New file.
37025
37026 2008-05-10  Jim Meyering  <meyering@redhat.com>
37027
37028         Make chdir-safer.c more efficient on a system with no symlinks.
37029         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37030         also if ELOOP is zero.  Suggested by Bruno Haible.
37031
37032         Make chdir-safer.c slightly safer.
37033         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37034         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37035
37036         Avoid compile failure on systems without ELOOP (like mingw).
37037         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37038         Reported by Bruno Haible.
37039
37040 2008-05-10  Bruno Haible  <bruno@clisp.org>
37041
37042         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37043         (is_utf8_encoding): Use a case-insensitive comparison.
37044         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37045         streq.
37046
37047 2008-05-10  Bruno Haible  <bruno@clisp.org>
37048
37049         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37050         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37051         * lib/unilbrk/ulc-common.h (iconv_string_length,
37052         iconv_string_keeping_offsets): Remove declarations.
37053         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37054         Don't include <iconv.h>, streq.h, xsize.h.
37055         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37056         conversion.
37057         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37058         <iconv.h>, streq.h, xsize.h.
37059         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37060         conversion.
37061         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37062         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37063         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37064         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37065
37066 2008-05-10  Bruno Haible  <bruno@clisp.org>
37067
37068         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37069         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37070
37071         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37072         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37073
37074         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37075         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37076
37077         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37078         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37079
37080         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37081         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37082
37083         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37084         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37085
37086         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37087         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37088
37089         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37090         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37091
37092 2008-05-10  Bruno Haible  <bruno@clisp.org>
37093
37094         Split up 'linebreak' module.
37095         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37096         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37097         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37098         modifications.
37099         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37100         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37101         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37102         lib/linebreak.c.
37103         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37104         lib/linebreak.c.
37105         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37106         lib/linebreak.c.
37107         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37108         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37109         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37110         lib/linebreak.c.
37111         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37112         lib/linebreak.c.
37113         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37114         lib/linebreak.c.
37115         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37116         lib/linebreak.c.
37117         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37118         lib/linebreak.c.
37119         * modules/unilbrk/base: New file.
37120         * modules/unilbrk/tables: New file.
37121         * modules/unilbrk/u8-possible-linebreaks: New file.
37122         * modules/unilbrk/u16-possible-linebreaks: New file.
37123         * modules/unilbrk/u32-possible-linebreaks: New file.
37124         * modules/unilbrk/ulc-common: New file.
37125         * modules/unilbrk/ulc-possible-linebreaks: New file.
37126         * modules/unilbrk/u8-width-linebreaks: New file.
37127         * modules/unilbrk/u16-width-linebreaks: New file.
37128         * modules/unilbrk/u32-width-linebreaks: New file.
37129         * modules/unilbrk/ulc-width-linebreaks: New file.
37130         * lib/linebreak.h: Remove file.
37131         * lib/linebreak.c: Remove file.
37132         * m4/linebreak.m4: Remove file.
37133         * modules/linebreak: Remove file.
37134         * NEWS: Mention the changes.
37135
37136 2008-05-09  Eric Blake  <ebb9@byu.net>
37137
37138         Add xmemdup0.
37139         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37140         implementation.
37141         * lib/xmalloc.c (xmemdup0): New C implementation.
37142
37143 2008-05-08  Bruno Haible  <bruno@clisp.org>
37144
37145         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37146
37147 2008-05-07  Eric Blake  <ebb9@byu.net>
37148
37149         Support cross-compilation of <wctype.h>.
37150         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37151         AC_CACHE_CHECK.
37152
37153 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37154
37155         * build-aux/vc-list-files: Add support for bzr.
37156
37157 2008-05-03  Jim Meyering  <meyering@redhat.com>
37158
37159         avoid failed assertion with tight malloc
37160         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37161
37162 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37163
37164         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37165         are needed from arpa/inet.h.
37166         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37167         Reported by Bruno Haible.
37168
37169 2008-05-02  Jim Meyering  <meyering@redhat.com>
37170
37171         avoid compilation error on FreeBSD 6
37172         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37173
37174 2008-05-01  Jim Meyering  <meyering@redhat.com>
37175
37176         useless-if-before-free: correct --help's exit status description
37177         * build-aux/useless-if-before-free (usage): Like grep, exit 0
37178         for one or more matches, etc.  Reported by Bruno Haible.
37179
37180         vc-list-files: make the stand-alone gnulib test work
37181         * modules/vc-list-files-tests (configure.ac):
37182         Define and AC_SUBST abs_aux_dir.
37183         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
37184         $(abs_top_srcdir) to each script and having each of them
37185         duplicate the work of setting PATH, set PATH here, using
37186         the new variable, abs_aux_dir instead.
37187         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
37188         * tests/test-vc-list-files-git.sh: Likewise.
37189         Reported by Bruno Haible.
37190
37191 2008-05-01  Bruno Haible  <bruno@clisp.org>
37192
37193         * lib/getndelim2.c (getndelim2): Fix newsize computation during
37194         reallocation. Rename 'done' to 'found_delimiter'.
37195
37196 2008-05-01  Jim Meyering  <meyering@redhat.com>
37197
37198         vc-list-files: accommodate /bin/sh like the one from Solaris 10
37199         * build-aux/vc-list-files: Use `...`, not $(...).
37200
37201 2008-04-30  Jim Meyering  <meyering@redhat.com>
37202
37203         add tests for vc-list-files
37204         * modules/vc-list-files-tests: New module.
37205         * tests/test-vc-list-files-cvs.sh: New file.
37206         * tests/test-vc-list-files-git.sh: New file.
37207
37208         avoid a warning from gcc
37209         * lib/getndelim2.c (IF_LINT): Define.
37210         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
37211
37212         vc-list-files: work properly with build-aux/cvsu, too
37213         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
37214         to all cvs-based clauses.
37215
37216         vc-list-files: work properly in the CVS+awk case, too
37217         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
37218
37219         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
37220         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
37221         take more than one file argument, so .  Add quotes, just in case $dir
37222         ever contains a shell meta-character.  Prompted by Soren Hansen in
37223         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
37224
37225 2008-04-29  Eric Blake  <ebb9@byu.net>
37226
37227         Optimize getndelim2 to use block operations when possible.
37228         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
37229         freadseek, and memchr2.
37230         * lib/getndelim2.c (getndelim2): Use them for block reads.
37231
37232 2008-04-29  Bruno Haible  <bruno@clisp.org>
37233
37234         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
37235         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37236         * modules/inet_ntop (Depends-on): Add extensions.
37237         * modules/inet_pton (Depends-on): Likewise.
37238         Reported by Simon Josefsson.
37239
37240 2008-04-29  Jim Meyering  <meyering@redhat.com>
37241
37242         When the is more than one match in a block, match all of them.
37243         * build-aux/useless-if-before-free: Iterate through each block
37244         until there are no more matches.
37245
37246         Fix broken useless-if-before-free script.
37247         * build-aux/useless-if-before-free: Fix typo: missing "?" after
37248         the expression to match cast of argument to free-like function.
37249
37250 2008-04-29  Eric Blake  <ebb9@byu.net>
37251
37252         Use new header.
37253         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
37254
37255 2008-04-29  Jim Meyering  <meyering@redhat.com>
37256
37257         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
37258         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
37259         by gnulib to exist and to declare e.g., inet_ntop.
37260         Don't include "inet_ntop.h", now removed.
37261
37262         * m4/arpa_inet_h.m4: Remove trailing blanks.
37263
37264 2008-04-29  Eric Blake  <ebb9@byu.net>
37265
37266         Silence valgrind on safe reads beyond potential array bounds.
37267         * lib/rawmemchr.valgrind: New file.
37268         * lib/strchrnul.valgrind: Likewise.
37269         * modules/rawmemchr (Files): Distribute new file.
37270         * modules/strchrnul (Files): Likewise.
37271         Suggested by Bruno Haible.
37272
37273 2008-04-29  Bruno Haible  <bruno@clisp.org>
37274
37275         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
37276         (inet_ntop, inet_pton): Change portability warning's wording.
37277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
37278         Invoke gl_CHECK_NEXT_HEADERS.
37279         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
37280         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
37281         set ARPA_INET_H.
37282         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37283         * modules/arpa_inet (Description): No longer only for systems that
37284         lack it.
37285         (Depends-on): Add include_next.
37286         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
37287         HAVE_ARPA_INET_H.
37288
37289 2008-04-29  Jim Meyering  <meyering@redhat.com>
37290
37291         * modules/mkdir (License): Re-license as LGPLv2+.
37292
37293 2008-04-29  Bruno Haible  <bruno@clisp.org>
37294
37295         * modules/rawmemchr (Maintainer): Set to Eric.
37296         * modules/strchrnul (Maintainer): Likewise.
37297
37298 2008-04-29  Simon Josefsson  <simon@josefsson.org>
37299
37300         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
37301         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
37302
37303         * modules/arpa_inet (arpa/inet.h): Use them.
37304
37305 2008-04-28  Eric Blake  <ebb9@byu.net>
37306
37307         Test getndelim2.
37308         * modules/getndelim2-tests: New file.
37309         * tests/test-getndelim2.c: Likewise.
37310         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
37311         stream.
37312         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
37313
37314         * MODULES.html.sh: Document new module.
37315
37316 2008-04-20  Bruno Haible  <bruno@clisp.org>
37317
37318         * lib/c-stack.c (die): Use raise.
37319         * modules/c-stack (Depends-on): Add raise.
37320
37321 2008-04-28  Bruno Haible  <bruno@clisp.org>
37322
37323         Expect rpmatch to be declared.
37324         * lib/yesno.c (rpmatch): Remove declaration.
37325
37326         Declare rpmatch.
37327         * lib/stdlib.in.h (rpmatch): New declaration.
37328         * lib/rpmatch.c: Include <stdlib.h> first.
37329         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
37330         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
37331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
37332         HAVE_RPMATCH.
37333         * modules/rpmatch (Depends-on): Add stdlib, extensions.
37334         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37335         (Include): Set to <stdlib.h>.
37336         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
37337         HAVE_RPMATCH.
37338         * NEWS: Document the change.
37339
37340 2008-04-28  Bruno Haible  <bruno@clisp.org>
37341
37342         Change rpmatch to use nl_langinfo when appropriate.
37343         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
37344         (N_): New macro.
37345         (localized_pattern): New function/macro.
37346         (try): Remove match, nomatch arguments. Copy the pattern into safe
37347         memory before caching it.
37348         (rpmatch): Use localized_pattern. Add translator comments.
37349         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
37350         Suggested by Eric Blake.
37351         * modules/rpmatch (Depends-on): Add stdbool.
37352
37353 2008-04-28  Eric Blake  <ebb9@byu.net>
37354
37355         Add rawmemchr module, matching glibc.
37356         * modules/string (Makefile.am): New indicator.
37357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
37358         * lib/string.in.h (rawmemchr): Declare when appropriate.
37359         * modules/rawmemchr: New file.
37360         * m4/rawmemchr.m4: Likewise.
37361         * lib/rawmemchr.c: Likewise.
37362         * modules/rawmemchr-tests: Likewise.
37363         * tests/test-rawmemchr.c: Likewise.
37364         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
37365         module.
37366         * modules/strchrnul (Depends-on): Add rawmemchr.
37367         * lib/strchrnul.c (strchrnul): Optimize a corner case.
37368
37369         Whitespace cleanup.
37370         * tests/test-strchrnul.c: Reindent.
37371         * lib/strchrnul.c: Likewise.
37372
37373         Optimize and test strchrnul.
37374         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
37375         * modules/strchrnul-tests: New file.
37376         * tests/test-strchrnul.c: Likewise.
37377
37378         Remove intprops dependency.
37379         * modules/memchr (Depends-on): Remove intprops.
37380         * modules/memrchr (Depends-on): Likewise.
37381         * modules/memchr2 (Depends-on): Likewise.
37382         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
37383         * lib/memrchr.c (__memrchr): Likewise.
37384         * lib/memrchr2.c (memchr2): Likewise.
37385         Reported by Simon Josefsson.
37386
37387 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37388
37389         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
37390         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37391
37392 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37393
37394         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
37395
37396         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
37397
37398         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
37399
37400         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
37401         declarations.
37402         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
37403
37404         * m4/inet_pton.m4: Don't check for header files.
37405
37406         * m4/inet_ntop.m4: Don't check for header files.
37407
37408 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37409
37410         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
37411         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
37412         trigger for cygwin).
37413         Reported by Bruno Haible  <bruno@clisp.org>.
37414
37415 2008-04-28  Bruno Haible  <bruno@clisp.org>
37416
37417         * doc/posix-functions/strdup.texi: Mention mingw problem.
37418
37419 2008-04-27  Bruno Haible  <bruno@clisp.org>
37420
37421         * modules/stat-time-tests (Depends-on): Add sleep.
37422         * tests/test-stat-time.c (force_unlink): New function.
37423         (cleanup): Use it.
37424         (test_mtime): Remove the ctime related tests.
37425         (test_ctime): New function, containing the ctime related tests.
37426         (main): Call test_ctime, except on native Windows platforms.
37427
37428 2008-04-27  Bruno Haible  <bruno@clisp.org>
37429
37430         * lib/rpmatch.c (rpmatch): Add some comments.
37431         Reported by James Youngman <jay@gnu.org>.
37432
37433 2008-04-27  Bruno Haible  <bruno@clisp.org>
37434
37435         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37436         quiet NaNs.
37437
37438 2008-04-27  Bruno Haible  <bruno@clisp.org>
37439
37440         Make test-yesno.sh work on mingw.
37441         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
37442         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
37443         (main): Set stdin to binary mode.
37444         * modules/yesno-tests (Depends-on): Add binary-io.
37445
37446 2008-04-27  Bruno Haible  <bruno@clisp.org>
37447
37448         Fix 'isfinite' on x86, x86_64, ia64 platforms.
37449         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
37450         argument that lie outside the IEEE 854 domain.
37451         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
37452         (gl_ISFINITE): Use it.
37453         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
37454
37455 2008-04-27  Bruno Haible  <bruno@clisp.org>
37456
37457         Allow local renaming in config.h.
37458         * lib/memrchr.c (memrchr): Don't undefine outside libc.
37459
37460 2008-04-27  Bruno Haible  <bruno@clisp.org>
37461
37462         * lib/memchr.c (__memchr): Change type of 'i'.
37463         * lib/memchr2.c (memchr2): Likewise.
37464
37465 2008-04-26  Eric Blake  <ebb9@byu.net>
37466         and Bruno Haible  <bruno@clisp.org>
37467
37468         Optimize and test memrchr.
37469         * modules/memrchr (Depends-on): Add intprops.
37470         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
37471         * modules/memrchr-tests: New file.
37472         * tests/test-memrchr.c: New file.
37473
37474 2008-04-26  Bruno Haible  <bruno@clisp.org>
37475
37476         Add tentative support for DragonFly BSD.
37477         * lib/stdio-impl.h: Add macros for DragonFly BSD.
37478         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
37479         fp.
37480         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37481         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
37482         * lib/fpurge.c (fpurge): Likewise.
37483         * lib/freadable.c (freaadable): Likewise.
37484         * lib/freadahead.c (freadahead): Likewise.
37485         * lib/freading.c (freading): Likewise.
37486         * lib/freadptr.c (freadptr): Likewise.
37487         * lib/freadseek.c (freadptrinc): Likewise.
37488         * lib/fseeko.c (fseeko): Likewise.
37489         * lib/fseterr.c (fseterr): Likewise.
37490         * lib/fwritable.c (fwritable): Likewise.
37491         * lib/fwriting.c (fwriting): Likewise.
37492
37493 2008-04-26  Bruno Haible  <bruno@clisp.org>
37494
37495         * lib/stdio-impl.h: New file.
37496         * lib/fbufmode.c: Include stdio-impl.h.
37497         (fbufmode): Use fp_, remove redundant #defines.
37498         * lib/fflush.c: Include stdio-impl.h.
37499         (clear_ungetc_buffer): Remove redundant #defines.
37500         * lib/fpurge.c: Include stdio-impl.h.
37501         (fpurge): Remove redundant #defines.
37502         * lib/freadable.c: Include stdio-impl.h.
37503         (freadable): Remove redundant #defines.
37504         * lib/freadahead.c: Include stdio-impl.h.
37505         (freadahead): Remove redundant #defines.
37506         * lib/freading.c: Include stdio-impl.h.
37507         (freading): Remove redundant #defines.
37508         * lib/freadptr.c: Include stdio-impl.h.
37509         (freadptr): Remove redundant #defines.
37510         * lib/freadseek.c: Include stdio-impl.h.
37511         (freadptrinc): Remove redundant #defines.
37512         * lib/fseeko.c: Include stdio-impl.h.
37513         (rpl_fseeko): Remove redundant #defines.
37514         * lib/fseterr.c: Include stdio-impl.h.
37515         (fseterr): Remove redundant #defines.
37516         * lib/fwritable.c: Include stdio-impl.h.
37517         (fwritable: Remove redundant #defines.
37518         * lib/fwriting.c: Include stdio-impl.h.
37519         (fwriting): Remove redundant #defines.
37520         * modules/fbufmode (Files): Add lib/stdio-impl.h.
37521         * modules/fflush (Files): Likewise.
37522         * modules/fpurge (Files): Likewise.
37523         * modules/freadable (Files): Likewise.
37524         * modules/freadahead (Files): Likewise.
37525         * modules/freading (Files): Likewise.
37526         * modules/freadptr (Files): Likewise.
37527         * modules/freadseek (Files): Likewise.
37528         * modules/fseeko (Files): Likewise.
37529         * modules/fseterr (Files): Likewise.
37530         * modules/fwritable (Files): Likewise.
37531         * modules/fwriting (Files): Likewise.
37532
37533 2008-04-26  Bruno Haible  <bruno@clisp.org>
37534
37535         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37536         restore_seek_optimization, update_fpos_cache): New functions, extracted
37537         from rpl_fflush.
37538         (rpl_fflush): Use them.
37539         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
37540         (gl_REPLACE_FFLUSH): Use it.
37541
37542 2008-04-26  Bruno Haible  <bruno@clisp.org>
37543
37544         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
37545         on Solaris.
37546         * tests/test-xstrtoimax.sh: Likewise.
37547         * tests/test-xstrtoumax.sh: Likewise.
37548         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37549
37550 2008-04-26  Bruno Haible  <bruno@clisp.org>
37551
37552         * modules/memchr-tests: New file.
37553         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
37554
37555 2008-04-26  Eric Blake  <ebb9@byu.net>
37556             Bruno Haible  <bruno@clisp.org>
37557
37558         * lib/memchr.c: Include intprops.h.
37559         (__memchr): Optimize parallel detection of matching bytes. Rename local
37560         variables. Add explanatory comments.
37561
37562 2008-04-26  Bruno Haible  <bruno@clisp.org>
37563
37564         Fix module 'memchr', broken since 2000-10-28.
37565         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
37566
37567 2008-04-26  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
37570         comments.
37571
37572 2008-04-25  Eric Blake  <ebb9@byu.net>
37573
37574         Use native fstatat on cygwin 1.7.0.
37575         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
37576         first.
37577
37578 2008-04-23  Eric Blake  <ebb9@byu.net>
37579
37580         Improve memchr2 performance.
37581         * lib/memchr2.c (memchr2): Further optimize parallel detection of
37582         NUL bytes.
37583         * modules/memchr2 (Depends-on): Use intprops.h.
37584
37585 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37586
37587         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
37588         an inline function instead of a CPP macro.  Patch by Ben Pfaff
37589         <blp@cs.stanford.edu>.
37590
37591 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37592
37593         * lib/arpa_inet.in.h: New file.
37594
37595         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
37596         (Makefile.am): Sed in substitute header file.
37597
37598         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
37599         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
37600
37601         * modules/inet_ntop (configure.ac): Use
37602         gl_ARPA_INET_MODULE_INDICATOR.
37603
37604         * modules/inet_pton (configure.ac): Use
37605         gl_ARPA_INET_MODULE_INDICATOR.
37606
37607 2008-04-22  Jim Meyering  <meyering@redhat.com>
37608
37609         * modules/verify (License): Re-license as LGPLv2+.
37610
37611 2008-04-22  Simon Josefsson  <simon@josefsson.org>
37612
37613         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
37614         parameter to void* as per POSIX standard (MinGW uses char*).
37615
37616 2008-04-21  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37619         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37620         Define to replacements if REPLACE_ISWCNTRL is 1.
37621         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
37622         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
37623         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
37624         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
37625         what it fixes.
37626         * doc/posix-functions/iswalpha.texi: Likewise.
37627         * doc/posix-functions/iswblank.texi: Likewise.
37628         * doc/posix-functions/iswcntrl.texi: Likewise.
37629         * doc/posix-functions/iswdigit.texi: Likewise.
37630         * doc/posix-functions/iswgraph.texi: Likewise.
37631         * doc/posix-functions/iswlower.texi: Likewise.
37632         * doc/posix-functions/iswprint.texi: Likewise.
37633         * doc/posix-functions/iswpunct.texi: Likewise.
37634         * doc/posix-functions/iswspace.texi: Likewise.
37635         * doc/posix-functions/iswupper.texi: Likewise.
37636         * doc/posix-functions/iswxdigit.texi: Likewise.
37637         Reported by Alain Guibert.
37638
37639 2008-04-21  Bruno Haible  <bruno@clisp.org>
37640
37641         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37642         Patch by Alain Guibert.
37643
37644 2008-04-21  Bruno Haible  <bruno@clisp.org>
37645
37646         Fix test failures on mingw.
37647         * tests/test-xstrtol.c (print_no_progname): New function.
37648         (main): Install it in error_print_progname hook.
37649         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37650         * tests/test-xstrtoimax.sh: Likewise.
37651         * tests/test-xstrtoumax.sh: Likewise.
37652
37653 2008-04-21  Bruno Haible  <bruno@clisp.org>
37654
37655         Fix test failure on mingw.
37656         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37657
37658 2008-04-21  Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37661         Actually assign a value.
37662
37663 2008-04-20  Bruno Haible  <bruno@clisp.org>
37664
37665         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37666         take 2.
37667         * lib/canonicalize.c (canonicalize_file_name): Elide if the
37668         'canonicalize-lgpl' module is also used.
37669         * lib/canonicalize-lgpl.c: Undo last change.
37670         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
37671
37672 2008-04-20  Bruno Haible  <bruno@clisp.org>
37673
37674         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
37675         config.h. Provide _mkdir based fallback for mingw.
37676         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
37677         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
37678         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
37679         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
37680         rather than defining mkdir in config.h.
37681         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
37682         (gl_SYS_STAT_H_DEFAULTS): New macro.
37683         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
37684         HAVE_IO_H any more.
37685         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
37686         HAVE_DECL_MKDIR and HAVE_IO_H.
37687
37688 2008-04-20  Bruno Haible  <bruno@clisp.org>
37689
37690         * lib/isapipe.c: Port to native Windows platforms.
37691
37692 2008-04-20  Bruno Haible  <bruno@clisp.org>
37693
37694         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
37695
37696 2008-04-21  Eric Blake  <ebb9@byu.net>
37697
37698         Work around preprocessors that don't handle UINTMAX_MAX.
37699         * lib/memchr2.c (memchr2): Avoid embedded #if.
37700         Reported by Alain Guibert, fix suggested by Bruno Haible.
37701
37702 2008-04-21  Simon Josefsson  <simon@josefsson.org>
37703
37704         * doc/posix-functions/strftime.texi (strftime): Explain better
37705         Windows incompatibility.  Suggested by Micah Cowan
37706         <micah@cowan.name>.
37707
37708 2008-04-20  Bruno Haible  <bruno@clisp.org>
37709
37710         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
37711         unistr/u8-mblen.
37712
37713 2008-04-20  Bruno Haible  <bruno@clisp.org>
37714
37715         Fix test failure on platforms with non-GNU iconv.
37716         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
37717         (U_TO_U8): Use it, rather than u16_to_u8.
37718         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
37719         units at the end of the input string.
37720         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
37721
37722 2008-04-20  Bruno Haible  <bruno@clisp.org>
37723
37724         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
37725         when the resulting length is 0.
37726         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
37727
37728 2008-04-20  Bruno Haible  <bruno@clisp.org>
37729
37730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
37731         works.
37732         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
37733
37734 2008-04-20  Bruno Haible  <bruno@clisp.org>
37735
37736         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
37737         * modules/tsearch-tests (configure.ac): Test for initstate function.
37738
37739 2008-04-20  Bruno Haible  <bruno@clisp.org>
37740
37741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
37742         for nlink_t if missing.
37743         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
37744
37745 2008-04-19  Bruno Haible  <bruno@clisp.org>
37746
37747         Work around snprintf bug on Linux libc5.
37748         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
37749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37750         gl_SNPRINTF_SIZE1.
37751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37752         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
37753         that test failed.
37754         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
37755         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
37756         * modules/snprintf (Files): Add m4/printf.m4.
37757         * modules/vsnprintf (Files): Likewise.
37758         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
37759         * doc/posix-functions/vsnprintf.texi: Likewise.
37760
37761 2008-04-19  Bruno Haible  <bruno@clisp.org>
37762
37763         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
37764         from 0.0058 to less than 10^-7.
37765
37766 2008-04-19  Bruno Haible  <bruno@clisp.org>
37767
37768         Fix rounding when a precision is given.
37769         * lib/vasnprintf.c (is_borderline): New function.
37770         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
37771         9...9x.
37772         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
37773         %e, %g.
37774         * tests/test-vasprintf-posix.c (test_function): Likewise.
37775         * tests/test-snprintf-posix.h (test_function): Likewise.
37776         * tests/test-sprintf-posix.h (test_function): Likewise.
37777         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37778         * tests/test-printf-posix.h (test_function): Likewise.
37779         * tests/test-printf-posix.output: Update.
37780         Reported by John Darrington <john@darrington.wattle.id.au> via
37781         Ben Pfaff <blp@cs.stanford.edu>.
37782
37783 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37784
37785         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37786         Suggested by Bruno Haible <bruno@clisp.org>.
37787
37788 2008-04-17  Bruno Haible  <bruno@clisp.org>
37789
37790         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37791         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37792         implementation.
37793         Patch by Bruce Merry <bmerry@gmail.com>.
37794
37795 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37796
37797         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37798         doesn't work under Windows.
37799
37800 2008-04-16  Bruno Haible  <bruno@clisp.org>
37801
37802         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37803         New macros.
37804         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37805         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37806         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37807         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37808         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37809         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37810         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37811         macros.
37812         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37813         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37814         Northern Sotho, Uighur.
37815
37816 2008-04-16  Bruno Haible  <bruno@clisp.org>
37817
37818         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
37819         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
37820         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
37821         Reported by Daniel Bergström <daniel@octocode.com>.
37822
37823 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
37824             Bruno Haible  <bruno@clisp.org>
37825
37826         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
37827         function.
37828         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
37829         New functions, mostly extracted from gl_locale_name_default.
37830         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
37831
37832 2008-04-16  Eric Blake  <ebb9@byu.net>
37833
37834         Adjust strtod detection to catch glibc 2.7 bug.
37835         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
37836         Reported by John Gatewood Ham.
37837
37838 2008-04-16  Bruno Haible  <bruno@clisp.org>
37839
37840         Add tentative support for Linux libc5.
37841         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
37842         * lib/fpurge.c (fpurge): Likewise.
37843         * lib/freadable.c (freadable): Likewise.
37844         * lib/freadahead.c (freadahead): Likewise.
37845         * lib/freading.c (freading): Likewise.
37846         * lib/freadptr.c (freadptr): Likewise.
37847         * lib/freadseek.c (freadptrinc): Likewise.
37848         * lib/fseeko.c (rpl_fseeko): Likewise.
37849         * lib/fseterr.c (fseterr): Likewise.
37850         * lib/fwritable.c (fwritable): Likewise.
37851         * lib/fwriting.c (fwriting): Likewise.
37852         Reported by Alain Guibert <alguibert+bts@free.fr>.
37853
37854 2008-04-15  Bruno Haible  <bruno@clisp.org>
37855
37856         * modules/mathl (configure.ac): Define module indicator.
37857
37858 2008-04-15  Bruno Haible  <bruno@clisp.org>
37859
37860         * lib/logl.c (logl): Remove unused variables.
37861
37862 2008-04-15  Bruno Haible  <bruno@clisp.org>
37863
37864         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
37865         fails.
37866
37867 2008-04-15  Bruno Haible  <bruno@clisp.org>
37868
37869         * lib/trim.c (trim2): Fix argument of isspace() macro.
37870
37871 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
37872
37873         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
37874         to 0.
37875         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
37876
37877 2008-04-14  Bruno Haible  <bruno@clisp.org>
37878
37879         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
37880         AC_LANG_PROGRAM argument.
37881         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
37882         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
37883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37884         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37885         * m4/math_h.m4 (gl_MATH_H): Likewise.
37886         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37887         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37888         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37889         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
37890         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37891         * m4/regex.m4 (gl_REGEX): Likewise.
37892         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
37893         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
37894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37895         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
37896         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37897         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37899         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37900
37901 2008-04-14  Jim Meyering  <meyering@redhat.com>
37902
37903         test-strtod: fix typos: s/abs/fabs/
37904         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
37905
37906 2008-04-13  Bruno Haible  <bruno@clisp.org>
37907
37908         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
37909         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
37910         module is also used and while not building the reloc-wrapper.
37911
37912 2008-04-13  Bruno Haible  <bruno@clisp.org>
37913
37914         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
37915
37916 2008-04-13  Bruno Haible  <bruno@clisp.org>
37917
37918         Fix AIX compilation failure introduced on 2008-04-02.
37919         * tests/test-frexp.c (exp): Undefine before redefining.
37920         * tests/test-frexpl.c (exp): Likewise.
37921
37922 2008-04-13  Bruno Haible  <bruno@clisp.org>
37923
37924         Work around a HP-UX stdio bug.
37925         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
37926         * tests/test-ftello.c (main): Likewise.
37927         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
37928         * doc/posix-functions/ftello.texi: Likewise.
37929
37930 2008-04-13  Bruno Haible  <bruno@clisp.org>
37931
37932         Make test-signbit pass on HP-UX/hppa.
37933         * tests/test-signbit.c (minus_zerol): New variable.
37934         (test_signbitl): Use it.
37935
37936 2008-04-13  Bruno Haible  <bruno@clisp.org>
37937
37938         Make truncl work on OSF/1 4.0.
37939         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
37940         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37941         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
37943         HAVE_DECL_TRUNCL.
37944         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
37945         HAVE_DECL_TRUNCL.
37946         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
37947
37948 2008-04-13  Bruno Haible  <bruno@clisp.org>
37949
37950         * lib/unictype.h: Remove trailing comma from enumeration definitions.
37951
37952 2008-04-13  Bruno Haible  <bruno@clisp.org>
37953
37954         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
37955         expression, so as to avoid HP-UX 11 cc compiler bug.
37956
37957 2008-04-13  Bruno Haible  <bruno@clisp.org>
37958
37959         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
37960
37961 2008-04-13  Bruno Haible  <bruno@clisp.org>
37962
37963         * lib/git-merge-changelog.c: Remove empty declaration outside of
37964         functions.
37965
37966 2008-04-13  Bruno Haible  <bruno@clisp.org>
37967
37968         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
37969
37970 2008-04-13  Bruno Haible  <bruno@clisp.org>
37971
37972         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
37973         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
37974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
37975         also if it exists but lacks definitions of the SHUT_* macros.
37976         * modules/sys_socket (Description): Update.
37977         Reported by Elbert Pol <e.pol@chello.nl>.
37978
37979 2008-04-13  Bruno Haible  <bruno@clisp.org>
37980
37981         * lib/localcharset.c (OS2): Don't redefine if already defined.
37982         Reported by Elbert Pol <e.pol@chello.nl>.
37983
37984 2008-04-13  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/binary-io.h [__EMX__]: Include <io.h>.
37987         Reported by Elbert Pol <e.pol@chello.nl>.
37988
37989 2008-04-12  Bruno Haible  <bruno@clisp.org>
37990
37991         * lib/fpucw.h: Enable the definitions also for x86_64.
37992         Needed for NetBSD/x86_64.
37993         Reported by Thomas Klausner <tk@giga.or.at>.
37994
37995 2008-04-12  Bruno Haible  <bruno@clisp.org>
37996
37997         * tests/test-strtod.c: Include isnand.h.
37998         (main): Use isnand instead of isnan.
37999         Reported by Jim Meyering.
38000
38001 2008-04-12  Bruno Haible  <bruno@clisp.org>
38002
38003         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38004         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38005
38006 2008-04-12  Jim Meyering  <meyering@redhat.com>
38007
38008         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38009
38010 2008-04-12  Bruno Haible  <bruno@clisp.org>
38011
38012         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38013         Reported by Elbert Pol <e.pol@chello.nl>.
38014
38015 2008-04-12  Eric Blake  <ebb9@byu.net>
38016
38017         Work around Solaris 10 math.h bug.
38018         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38019         (gl_MATH_H_DEFAULTS): Set up default.
38020         * modules/math (Makefile.am): Replace new indicators.
38021         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38022         * tests/test-math.c (main): Test this.
38023         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38024         * doc/posix-headers/math.texi (math.h): Mention bug.
38025         Reported by Nelson H. F. Beebe and Jim Meyering.
38026
38027 2008-04-11  Bruno Haible  <bruno@clisp.org>
38028
38029         Adapt to future versions of Apple GCC.
38030         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38031         Reported by Peter O'Gorman <peter@pogma.com>.
38032
38033 2008-04-11  Bruno Haible  <bruno@clisp.org>
38034
38035         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38036
38037 2008-04-11  Bruno Haible  <bruno@clisp.org>
38038
38039         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38040
38041         * modules/getaddrinfo-tests (Makefile.am): Define
38042         test_getaddrinfo_LDADD.
38043
38044 2008-04-11  Bruno Haible  <bruno@clisp.org>
38045
38046         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38047         (init): Fix syntax error.
38048         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38049         is declared.
38050
38051 2008-04-11  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38054         * modules/glob (Depends-on): Add stdbool.
38055
38056 2008-04-11  Bruno Haible  <bruno@clisp.org>
38057
38058         * lib/trim.c: Include <string.h>.
38059
38060 2008-04-11  Eric Blake  <ebb9@byu.net>
38061
38062         Avoid compile failure on OS/2.
38063         * lib/regex_internal.h (internal_function): Disable optimization
38064         on OS/2 (__EMX__), where it caused compiler error.
38065         Reported by Elbert Pol.
38066
38067 2008-04-11  Bruno Haible  <bruno@clisp.org>
38068
38069         Flush the standard error stream before aborting. Needed on mingw.
38070         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38071         * tests/test-array_list.c (ASSERT): Likewise.
38072         * tests/test-array_oset.c (ASSERT): Likewise.
38073         * tests/test-avltree_list.c (ASSERT): Likewise.
38074         * tests/test-avltree_oset.c (ASSERT): Likewise.
38075         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38076         * tests/test-binary-io.c (ASSERT): Likewise.
38077         * tests/test-byteswap.c (ASSERT): Likewise.
38078         * tests/test-c-ctype.c (ASSERT): Likewise.
38079         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38080         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38081         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38082         * tests/test-c-strstr.c (ASSERT): Likewise.
38083         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38084         * tests/test-canonicalize.c (ASSERT): Likewise.
38085         * tests/test-carray_list.c (ASSERT): Likewise.
38086         * tests/test-ceilf1.c (ASSERT): Likewise.
38087         * tests/test-ceilf2.c (ASSERT): Likewise.
38088         * tests/test-ceill.c (ASSERT): Likewise.
38089         * tests/test-count-one-bits.c (ASSERT): Likewise.
38090         * tests/test-fbufmode.c (ASSERT): Likewise.
38091         * tests/test-fflush2.c (ASSERT): Likewise.
38092         * tests/test-floorf1.c (ASSERT): Likewise.
38093         * tests/test-floorf2.c (ASSERT): Likewise.
38094         * tests/test-floorl.c (ASSERT): Likewise.
38095         * tests/test-fopen.c (ASSERT): Likewise.
38096         * tests/test-fpending.c (ASSERT): Likewise.
38097         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38098         * tests/test-fpurge.c (ASSERT): Likewise.
38099         * tests/test-freadable.c (ASSERT): Likewise.
38100         * tests/test-freadahead.c (ASSERT): Likewise.
38101         * tests/test-freading.c (ASSERT): Likewise.
38102         * tests/test-freadptr.c (ASSERT): Likewise.
38103         * tests/test-freadptr2.c (ASSERT): Likewise.
38104         * tests/test-freadseek.c (ASSERT): Likewise.
38105         * tests/test-freopen.c (ASSERT): Likewise.
38106         * tests/test-frexp.c (ASSERT): Likewise.
38107         * tests/test-frexpl.c (ASSERT): Likewise.
38108         * tests/test-fseek.c (ASSERT): Likewise.
38109         * tests/test-fseeko.c (ASSERT): Likewise.
38110         * tests/test-fstrcmp.c (ASSERT): Likewise.
38111         * tests/test-ftell.c (ASSERT): Likewise.
38112         * tests/test-ftello.c (ASSERT): Likewise.
38113         * tests/test-func.c (ASSERT): Likewise.
38114         * tests/test-fwritable.c (ASSERT): Likewise.
38115         * tests/test-fwriting.c (ASSERT): Likewise.
38116         * tests/test-getdelim.c (ASSERT): Likewise.
38117         * tests/test-getline.c (ASSERT): Likewise.
38118         * tests/test-i-ring.c (ASSERT): Likewise.
38119         * tests/test-iconv-utf.c (ASSERT): Likewise.
38120         * tests/test-iconv.c (ASSERT): Likewise.
38121         * tests/test-isfinite.c (ASSERT): Likewise.
38122         * tests/test-isnand.c (ASSERT): Likewise.
38123         * tests/test-isnanf.c (ASSERT): Likewise.
38124         * tests/test-isnanl.h (ASSERT): Likewise.
38125         * tests/test-ldexpl.c (ASSERT): Likewise.
38126         * tests/test-linked_list.c (ASSERT): Likewise.
38127         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38128         * tests/test-localename.c (ASSERT): Likewise.
38129         * tests/test-lseek.c (ASSERT): Likewise.
38130         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38131         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38132         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38133         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38134         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38135         * tests/test-mbschr.c (ASSERT): Likewise.
38136         * tests/test-mbscspn.c (ASSERT): Likewise.
38137         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38138         * tests/test-mbspbrk.c (ASSERT): Likewise.
38139         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38140         * tests/test-mbsrchr.c (ASSERT): Likewise.
38141         * tests/test-mbsspn.c (ASSERT): Likewise.
38142         * tests/test-mbsstr1.c (ASSERT): Likewise.
38143         * tests/test-mbsstr2.c (ASSERT): Likewise.
38144         * tests/test-mbsstr3.c (ASSERT): Likewise.
38145         * tests/test-memchr2.c (ASSERT): Likewise.
38146         * tests/test-memmem.c (ASSERT): Likewise.
38147         * tests/test-open.c (ASSERT): Likewise.
38148         * tests/test-printf-frexp.c (ASSERT): Likewise.
38149         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38150         * tests/test-printf-posix.c (ASSERT): Likewise.
38151         * tests/test-quotearg.c (ASSERT): Likewise.
38152         * tests/test-rbtree_list.c (ASSERT): Likewise.
38153         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38154         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38155         * tests/test-round1.c (ASSERT): Likewise.
38156         * tests/test-roundf1.c (ASSERT): Likewise.
38157         * tests/test-roundl.c (ASSERT): Likewise.
38158         * tests/test-signbit.c (ASSERT): Likewise.
38159         * tests/test-sleep.c (ASSERT): Likewise.
38160         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38161         * tests/test-snprintf.c (ASSERT): Likewise.
38162         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38163         * tests/test-stat-time.c (ASSERT): Likewise.
38164         * tests/test-strcasestr.c (ASSERT): Likewise.
38165         * tests/test-strerror.c (ASSERT): Likewise.
38166         * tests/test-striconv.c (ASSERT): Likewise.
38167         * tests/test-striconveh.c (ASSERT): Likewise.
38168         * tests/test-striconveha.c (ASSERT): Likewise.
38169         * tests/test-strsignal.c (ASSERT): Likewise.
38170         * tests/test-strstr.c (ASSERT): Likewise.
38171         * tests/test-strtod.c (ASSERT): Likewise.
38172         * tests/test-trunc1.c (ASSERT): Likewise.
38173         * tests/test-trunc2.c (ASSERT): Likewise.
38174         * tests/test-truncf1.c (ASSERT): Likewise.
38175         * tests/test-truncf2.c (ASSERT): Likewise.
38176         * tests/test-truncl.c (ASSERT): Likewise.
38177         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
38178         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
38179         * tests/test-vasnprintf.c (ASSERT): Likewise.
38180         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
38181         * tests/test-vasprintf.c (ASSERT): Likewise.
38182         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
38183         * tests/test-vprintf-posix.c (ASSERT): Likewise.
38184         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
38185         * tests/test-vsnprintf.c (ASSERT): Likewise.
38186         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
38187         * tests/test-wcwidth.c (ASSERT): Likewise.
38188         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
38189         * tests/test-xprintf-posix.c (ASSERT): Likewise.
38190         * tests/test-xvasprintf.c (ASSERT): Likewise.
38191         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
38192         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
38193         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
38194         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
38195         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
38196         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
38197         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
38198         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
38199         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
38200         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
38201         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
38202         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
38203         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
38204         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
38205         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
38206         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
38207         * tests/unictype/test-block_list.c (ASSERT): Likewise.
38208         * tests/unictype/test-block_of.c (ASSERT): Likewise.
38209         * tests/unictype/test-block_test.c (ASSERT): Likewise.
38210         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
38211         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
38212         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
38213         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
38214         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
38215         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
38216         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
38217         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
38218         * tests/unictype/test-combining.c (ASSERT): Likewise.
38219         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
38220         * tests/unictype/test-digit.c (ASSERT): Likewise.
38221         * tests/unictype/test-mirror.c (ASSERT): Likewise.
38222         * tests/unictype/test-numeric.c (ASSERT): Likewise.
38223         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
38224         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
38225         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
38226         * tests/unictype/test-scripts.c (ASSERT): Likewise.
38227         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
38228         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
38229         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
38230         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
38231         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
38232         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
38233         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
38234         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
38235         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
38236         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
38237         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
38238         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
38239         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
38240         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
38241         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
38242         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
38243         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
38244         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
38245         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
38246         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
38247         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
38248         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
38249         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
38250         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
38251         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
38252         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
38253         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
38254         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
38255         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
38256         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
38257         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
38258         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
38259         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
38260         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
38261         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
38262         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
38263         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
38264         Reported by Eric Blake.
38265
38266 2008-04-11  Bruno Haible  <bruno@clisp.org>
38267
38268         * lib/wchar.in.h: Tweak comment.
38269
38270 2008-04-11  Bruno Haible  <bruno@clisp.org>
38271
38272         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
38273         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
38274         gl_COMMON.
38275         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
38276
38277 2008-04-11  Bruno Haible  <bruno@clisp.org>
38278
38279         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
38280
38281 2008-04-11  Simon Josefsson  <simon@josefsson.org>
38282
38283         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
38284         of attempting to use non-existing /dev/*random.  Based on patch
38285         from Adam Strzelecki <ono@java.pl> in
38286         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
38287
38288 2008-04-08  Bruno Haible  <bruno@clisp.org>
38289
38290         Add tentative support for emx+gcc.
38291         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
38292         * lib/fpurge.c (fpurge): Likewise.
38293         * lib/freadable.c (freadable): Likewise.
38294         * lib/freadahead.c (freadahead): Likewise.
38295         * lib/freading.c (freading): Likewise.
38296         * lib/freadptr.c (freadptr): Likewise.
38297         * lib/freadseek.c (freadptrinc): Likewise.
38298         * lib/fseeko.c (rpl_fseeko): Likewise.
38299         * lib/fseterr.c (fseterr): Likewise.
38300         * lib/fwritable.c (fwritable): Likewise.
38301         * lib/fwriting.c (fwriting): Likewise.
38302         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
38303
38304 2008-04-09  Eric Blake  <ebb9@byu.net>
38305
38306         Avoid some autoconf warnings.
38307         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
38308         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
38309         * m4/afs.m4 (gl_AFS): Likewise.
38310         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
38311         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
38312         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38313         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
38314         (gl_INTEGER_TYPE_SUFFIX): Likewise.
38315         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
38316         (AC_CHECK_DECLS_ONCE): Likewise.
38317         Rename file...
38318         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
38319         gnulib-tool requires autoconf 2.59 or better.
38320         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
38321
38322 2008-04-08  Eric Blake  <ebb9@byu.net>
38323
38324         Use 'git describe --match' if present (added in git 1.5.5).
38325         * build-aux/git-version-gen: Limit result to tags that match 'v*'
38326         if possible.
38327
38328 2008-04-08  Bruno Haible  <bruno@clisp.org>
38329
38330         Add tentative support for OpenServer.
38331         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
38332         _ptr, _cnt.
38333         * lib/fpurge.c (fpurge): Likewise.
38334         * lib/freadable.c (freadable): Likewise.
38335         * lib/freadahead.c (freadahead): Likewise.
38336         * lib/freading.c (freading): Likewise.
38337         * lib/freadptr.c (freadptr): Likewise.
38338         * lib/freadseek.c (freadptrinc): Likewise.
38339         * lib/fseeko.c (rpl_fseeko): Likewise.
38340         * lib/fseterr.c (fseterr): Likewise.
38341         * lib/fwritable.c (fwritable): Likewise.
38342         * lib/fwriting.c (fwriting): Likewise.
38343         Reported by Roger Cornelius <rac@tenzing.org> and
38344         Brian K. White <brian@aljex.com>.
38345
38346 2008-04-06  Jim Meyering  <meyering@redhat.com>
38347
38348         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
38349
38350 2008-04-06  Bruno Haible  <bruno@clisp.org>
38351
38352         Avoid possible error with non-ASCII bytes in UTF-8 locales.
38353         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
38354         * tests/test-printf-posix.sh: Likewise.
38355         * tests/test-vfprintf-posix.sh: Likewise.
38356         * tests/test-vprintf-posix.sh: Likewise.
38357         * tests/test-xprintf-posix.sh: Likewise.
38358
38359 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38360
38361         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
38362         hide error from 'ls', needed on OS/2.
38363         Report by Elbert Pol <elbert.pol@gmail.com>.
38364
38365 2008-04-04  Eric Blake  <ebb9@byu.net>
38366
38367         Make test-fseeko.c failures meaningful.
38368         * tests/test-fseeko.c: Print line number on failure.
38369         * tests/test-fseek.c: Likewise.
38370         Reported by Nelson H. F. Beebe.
38371
38372         Improve strtod bug detection check.
38373         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
38374         required for Solaris 10.
38375         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
38376
38377 2008-04-04  Bruno Haible  <bruno@clisp.org>
38378
38379         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
38380         by m4/setenv.m4.
38381
38382 2008-04-03  Eric Blake  <ebb9@byu.net>
38383
38384         Ensure sane .version contents.
38385         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
38386         version string.
38387         * build-aux/git-version-gen: Improve documentation.
38388
38389         Make GNU make output nicer.
38390         * top/GNUmakefile [!_have-Makefile]: Add dependency on
38391         MAKECMDGOALS to enforce message for all command line targets.  Set
38392         srcdir for use in maint.mk.
38393
38394         Another maintainer tweak.
38395         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
38396         a target that regenerates version.
38397
38398 2008-04-03  Jim Meyering  <meyering@redhat.com>
38399
38400         vc-list-files: don't cause coreutils "make po-check" failure
38401         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38402
38403 2008-04-03  Eric Blake  <ebb9@byu.net>
38404
38405         Allow VPATH usage of vc-list-files.
38406         * build-aux/vc-list-files (scriptversion): Add timestamp.
38407         (options): Add --help, --version, -C.
38408         (CVS): Support installed cvsu.
38409
38410 2008-04-02  Bruno Haible  <bruno@clisp.org>
38411
38412         Avoid some "statement with no effect" warnings from gcc.
38413         * tests/test-wctype.c (main): Explicitly ignore unused values.
38414         Reported by Jim Meyering.
38415
38416 2008-04-02  Jim Meyering  <meyering@redhat.com>
38417
38418         Avoid some warnings from "gcc -Wshadow".
38419         * tests/test-frexp.c (exp): Define to a different identifier.
38420         * tests/test-frexpl.c (exp): Likewise.
38421
38422 2008-04-03  Jim Meyering  <meyering@redhat.com>
38423
38424         bootstrap: remove dangling *.[ch] symlinks from lib
38425         * build-aux/bootstrap [dangling symlink removal]: Move find's
38426         -depth option to precede all others, to avoid a warning.
38427         Remove *.[ch] files too, and from "$source_base" (usually lib/).
38428
38429 2008-04-02  Bruno Haible  <bruno@clisp.org>
38430
38431         Avoid some warnings from "gcc -Wshadow".
38432         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38433         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38434         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38435         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38436         Reported by Jim Meyering.
38437
38438 2008-04-01  Bruno Haible  <bruno@clisp.org>
38439
38440         Fix test to work on IRIX 6.5 with cc.
38441         * tests/test-math.c (numeric_equal): New function.
38442         (main): Use it.
38443
38444 2008-04-01  Bruno Haible  <bruno@clisp.org>
38445
38446         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
38447
38448 2008-04-01  Bruno Haible  <bruno@clisp.org>
38449
38450         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
38451         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38452         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
38453         (Depends-on): Remove math.
38454
38455         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
38456         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38457         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
38458         (Depends-on): Remove math.
38459
38460         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
38461         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38462         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
38463         (Depends-on): Remove math.
38464         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
38465         (Depends-on): Remove math.
38466
38467         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
38468         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38469         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
38470         (Depends-on): Remove math.
38471         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
38472         (Depends-on): Remove math.
38473
38474         * tests/test-round1.c: Include nan.h.
38475         (main): Use NaNd instead of NAN.
38476         * modules/round-tests (Files): Add tests/nan.h.
38477
38478         * tests/test-trunc1.c: Include nan.h.
38479         (main): Use NaNd instead of NAN.
38480         * modules/trunc-tests (Files): Add tests/nan.h.
38481
38482         * tests/test-roundf1.c: Include nan.h.
38483         (main): Use NaNf instead of NAN.
38484         * modules/roundf-tests (Files): Add tests/nan.h.
38485
38486         * tests/test-truncf1.c: Include nan.h.
38487         (main): Use NaNf instead of NAN.
38488         * modules/truncf-tests (Files): Add tests/nan.h.
38489
38490         * tests/test-ceilf1.c: Include nan.h.
38491         (main): Use NaNf instead of NAN.
38492         * modules/ceilf-tests (Files): Add tests/nan.h.
38493
38494         * tests/test-floorf1.c: Include nan.h.
38495         (main): Use NaNf instead of NAN.
38496         * modules/floorf-tests (Files): Add tests/nan.h.
38497
38498         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
38499         (main): Use NaNf instead of NAN.
38500         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
38501
38502         * tests/test-isnand.c: Include nan.h instead of <math.h>.
38503         (main): Use NaNd instead of NAN.
38504         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
38505
38506         * tests/test-frexp.c: Include nan.h.
38507         (main): Use NaNd instead of NAN.
38508         * modules/frexp-tests (Files): Add tests/nan.h.
38509
38510         * lib/isnan.c: Don't include <math.h>.
38511         (FUNC): Don't use NAN macro.
38512         * modules/isnand-nolibm (Depends-on): Remove math.
38513         * modules/isnanf-nolibm (Depends-on): Remove math.
38514         * modules/isnanl (Depends-on): Remove math.
38515         * modules/isnanl-nolibm (Depends-on): Remove math.
38516
38517         * tests/nan.h: New file.
38518
38519 2008-04-01  Eric Blake  <ebb9@byu.net>
38520
38521         Fix typos.
38522         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
38523         values to be the right type.
38524
38525         For now, cater to gnulib strtod inaccuracies.
38526         * tests/test-strtod.c (main): Allow 1-ulp error on expected
38527         fractional results.  While not as nice from a QoI perspective, it
38528         is a quicker patch than correctly implementing decimal to binary
38529         rounding.
38530
38531 2008-03-31  Eric Blake  <ebb9@byu.net>
38532
38533         Guarantee a definition of NAN.
38534         * lib/math.in.h (NAN): Define if missing.
38535         * tests/test-math.c (main): Test it.
38536         * doc/posix-headers/math.texi (math.h): Document this.
38537         * lib/isnan.c (rpl_isnand): Use it.
38538         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
38539         * tests/test-floorf1.c (NaN): Likewise.
38540         * tests/test-frexp.c (NaN): Likewise.
38541         * tests/test-isnand.c (NaN): Likewise.
38542         * tests/test-isnanf.c (NaN): Likewise.
38543         * tests/test-round1.c (NaN): Likewise.
38544         * tests/test-roundf1.c (NaN): Likewise.
38545         * tests/test-snprintf-posix.h (NaN): Likewise.
38546         * tests/test-sprintf-posix.h (NaN): Likewise.
38547         * tests/test-trunc1.c (NaN): Likewise.
38548         * tests/test-truncf1.c (NaN): Likewise.
38549         * tests/test-vasnprintf-posix.c (NaN): Likewise.
38550         * tests/test-vasprintf-posix.c (NaN): Likewise.
38551         * modules/isnand-nolibm (Depends-on): Add math.
38552         * modules/isnanf-nolibm (Depends-on): Likewise.
38553         * modules/isnanl (Depends-on): Likewise.
38554         * modules/isnanl-nolibm (Depends-on): Likewise.
38555         * modules/snprintf-posix-tests (Depends-on): Likewise.
38556         * modules/sprintf-posix-tests (Depends-on): Likewise.
38557         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
38558         * modules/vsprintf-posix-tests (Depends-on): Likewise.
38559         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
38560         * modules/vasprintf-posix-tests (Depends-on): Likewise.
38561
38562 2008-03-31  Bruno Haible  <bruno@clisp.org>
38563
38564         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
38565         * doc/posix-functions/strtod.texi: Likewise.
38566
38567 2008-03-31  Bruno Haible  <bruno@clisp.org>
38568
38569         * tests/test-strtod.c (main): Don't use C99 syntax.
38570
38571 2008-03-31  Bruno Haible  <bruno@clisp.org>
38572
38573         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
38574         Reported by Eric Blake.
38575
38576 2008-03-31  Jim Meyering  <meyering@redhat.com>
38577
38578         Don't compare actual signbit return values.
38579         * tests/test-strtod.c (main): Rather, compare only their
38580         zero/non-zero nature.
38581
38582 2008-03-31  Eric Blake  <ebb9@byu.net>
38583
38584         More strtod documentation.
38585         * doc/posix-functions/strtod.texi (strtod): Interpret more test
38586         failures as distinct bugs.
38587
38588 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38589
38590         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
38591         Problem reported by Erik Benada in
38592         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
38593
38594 2008-03-30  Bruno Haible  <bruno@clisp.org>
38595
38596         * tests/test-strtod.c: Add comments about which assertion fails on which
38597         platform.
38598         * doc/posix-functions/strtod.texi: Add info about many more platforms.
38599
38600 2008-03-30  Eric Blake  <ebb9@byu.net>
38601
38602         Test signbit behavior on zeros.
38603         * tests/test-signbit.c (test_signbitf): Add tests for zero.
38604         (test_signbitd, test_signbitl): Likewise.
38605
38606         More strtod touchups.
38607         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
38608         sign of negative underflow, for now.  Use .5, not .1.
38609         * doc/posix-functions/strtod.texi (strtod): Mention these
38610         limitations.
38611         Reported by Jim Meyering.
38612
38613 2008-03-30  Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
38616         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
38617
38618 2008-03-30  Bruno Haible  <bruno@clisp.org>
38619
38620         Avoid failure when attempting to return empty iconv results on some
38621         platforms.
38622         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
38623         allocation, don't report ENOMEM when the resulting string is empty.
38624
38625 2008-03-30  Bruno Haible  <bruno@clisp.org>
38626
38627         Fix buffer overrun.
38628         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
38629         Don't consider the width for tmp_length. Check count against tmp_length
38630         before doing the padding. Ensure enough allocation during padding.
38631
38632 2008-03-30  Eric Blake  <ebb9@byu.net>
38633
38634         strtod touchups.
38635         * lib/strtod.c (strtod): Avoid compiler warnings.
38636         Reported by Jim Meyering.
38637
38638 2008-03-30  Bruno Haible  <bruno@clisp.org>
38639
38640         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
38641         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38642         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38643         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38644         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38645         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38646         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38647         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38648
38649         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38650         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38651         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38652         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38653         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38654         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38655         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38656         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38657
38658         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38659         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38660         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38661         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38662         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38663         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38664         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38665         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38666
38667         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
38668         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
38669
38670         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
38671         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
38672
38673         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
38674         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
38675
38676         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
38677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
38678         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
38679
38680         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
38681         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
38682         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
38683
38684         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
38685         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
38686         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
38687
38688         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
38689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
38690         * modules/vasprintf (Depends-on): Add EOVERFLOW.
38691
38692         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
38693         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
38694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
38695         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
38696         (Depends-on): Add EOVERFLOW.
38697         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
38698         (Depends-on): Add EOVERFLOW.
38699         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38700         (Depends-on): Add EOVERFLOW.
38701         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38702         (Depends-on): Add EOVERFLOW.
38703         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38704         (Depends-on): Add EOVERFLOW.
38705         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38706         (Depends-on): Add EOVERFLOW.
38707         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38708         (Depends-on): Add EOVERFLOW.
38709         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38710         (Depends-on): Add EOVERFLOW.
38711
38712         * lib/sprintf.c (EOVERFLOW): Remove fallback.
38713         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
38714         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
38715
38716         * lib/snprintf.c (EOVERFLOW): Remove fallback.
38717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
38718         * modules/snprintf (Depends-on): Add EOVERFLOW.
38719
38720         * lib/poll.c (EOVERFLOW): Remove fallback.
38721         * modules/poll (Depends-on): Add EOVERFLOW.
38722
38723         * lib/getugroups.c (EOVERFLOW): Remove fallback.
38724         * modules/getugroups (Depends-on): Add EOVERFLOW.
38725
38726         * lib/getdelim.c (EOVERFLOW): Remove fallback.
38727         * modules/getdelim (Depends-on): Add EOVERFLOW.
38728
38729         * lib/ftell.c (EOVERFLOW): Remove fallback.
38730         * modules/ftell (Depends-on): Add EOVERFLOW.
38731
38732         * lib/fprintf.c (EOVERFLOW): Remove fallback.
38733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
38734         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
38735
38736         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
38737
38738         * modules/EOVERFLOW-tests: New file.
38739         * tests/test-EOVERFLOW.c: New file.
38740
38741         * modules/EOVERFLOW: New file.
38742         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
38743
38744 2008-03-30  Bruno Haible  <bruno@clisp.org>
38745
38746         Fix bug introduced on 2007-06-10.
38747         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
38748         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
38749
38750 2008-03-30  Bruno Haible  <bruno@clisp.org>
38751
38752         Improve freadseek's efficiency after ungetc.
38753         * lib/freadseek.c: Include freadahead.h.
38754         (freadptrinc): New function, extracted from freadseek.
38755         (freadseek): Use it in a loop. Use freadahead to determine the number
38756         of loop iterations.
38757         * modules/freadseek (Depends-on): Add freadahead.
38758         (configure.ac): Require AC_C_INLINE.
38759
38760 2008-03-30  Bruno Haible  <bruno@clisp.org>
38761
38762         * lib/freadseek.c (freadseek): Don't ignore the return value of
38763         freadptr.
38764
38765 2008-03-29  Eric Blake  <ebb9@byu.net>
38766
38767         Add hex float support.
38768         * modules/strtod (Depends-on): Add c-ctype.
38769         (Link): Mention POW_LIB.
38770         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
38771         whitespace between 'e' and exponent.
38772         * tests/test-strtod.c (main): Enable hex float tests.
38773         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
38774         now provides.
38775
38776         Document various strtod bugs, with some fixes.
38777         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38778         "-0x", "inf", "nan", and hex constants.
38779         * doc/posix-functions/atof.texi (atof): Likewise.
38780         * modules/stdlib (Makefile.am): Support strtod.
38781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38782         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38783         detect additional strtod bugs.
38784         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38785         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38786         bool where appropriate.  Parse 'inf' and 'nan'.
38787         * tests/test-strtod.c: New file.
38788         * modules/strtod (Depends-on): Add stdbool, stdlib.
38789         (configure.ac): Turn on module indicator.
38790         * modules/strtod-tests: New module.
38791
38792 2008-03-29  Eric Blake  <ebb9@byu.net>
38793
38794         Fix ftell on mingw.
38795         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38796         * modules/ftell-tests (Depends-on): Add binary-io.
38797         * modules/ftello-tests (Depends-on): Likewise.
38798         * tests/test-ftell.c (main): Enhance test to cover behavior after
38799         ungetc.  Enforce binary mode.
38800         * tests/test-ftello.c (main): Likewise.
38801
38802         Pass test-freadseek on cygwin.
38803         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38804         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38805         ungetc buffer.
38806
38807         * tests/test-fflush2.c (main): Fix typo.
38808
38809 2008-03-29  Bruno Haible  <bruno@clisp.org>
38810
38811         * tests/test-fflush2.c (main): Temporarily disable the contents of
38812         this test.
38813         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38814         Reported by Eric Blake.
38815
38816 2008-03-28  Simon Josefsson  <simon@josefsson.org>
38817
38818         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
38819         (GC_SHA224_DIGEST_SIZE): Add.
38820
38821         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
38822         (gc_hash_digest_length): Likewise.
38823         (gc_hash_buffer): Likewise.
38824
38825 2008-03-25  Bruno Haible  <bruno@clisp.org>
38826
38827         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
38828         detail which gettext release to use.
38829         Reported by Simon Josefsson.
38830
38831 2008-03-26  Jim Meyering  <meyering@redhat.com>
38832
38833         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
38834         * modules/gnumakefile (clean-GNUmakefile): Also, use
38835         test ... && ... || : syntax rather than if-then ... fi.
38836
38837         gnumakefile: Don't double-quote-expand $(VPATH) value.
38838         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
38839
38840 2008-03-24  Eric Blake  <ebb9@byu.net>
38841
38842         Alter GNUmakefile to install into top directory.
38843         * modules/maintainer-makefile: Split, and add dependency...
38844         * modules/gnumakefile: to this new module.
38845         * build-aux/GNUmakefile: Move...
38846         * top/GNUmakefile: ...here.
38847         * build-aux/maint.mk: Move...
38848         * top/maint.mk: ...here.
38849         * MODULES.html.sh (Support for maintaining...): Document new
38850         module.
38851
38852 2008-03-23  Bruno Haible  <bruno@clisp.org>
38853
38854         * gnulib-tool: New options --vc-files, --no-vc-files.
38855         (func_usage): Document them.
38856         (vc_files): New variable.
38857         (func_import): Consider vc_files.
38858         (func_create_testdir): Set vc_files to empty.
38859         Suggested by Jim Meyering and Karl Berry.
38860
38861 2008-03-23  Bruno Haible  <bruno@clisp.org>
38862
38863         Fix regex compilation error on HP-UX 11.
38864         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
38865         * modules/regex (Files): Add m4/mbstate_t.m4.
38866         Reported by Ton Voon <ton.voon@altinity.com>.
38867
38868 2008-03-23  Bruno Haible  <bruno@clisp.org>
38869
38870         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
38871
38872 2008-03-23  Eric Blake  <ebb9@byu.net>
38873             Bruno Haible  <bruno@clisp.org>
38874
38875         Install files from top/ in the destination directory.
38876         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38877         augmentation also for the files from top/.
38878         (func_import, func_create_testdir): Rewrite file names:
38879         top/filename -> filename.
38880
38881 2008-03-23  Bruno Haible  <bruno@clisp.org>
38882
38883         Tweak "gnulib --version" output.
38884         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
38885
38886 2008-03-23  Bruno Haible  <bruno@clisp.org>
38887
38888         Tweak "gnulib --version" output.
38889         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
38890         rather than contents of ChangeLog, when possible.
38891
38892 2008-03-21  Eric Blake  <ebb9@byu.net>
38893
38894         More --version tweaks.
38895         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
38896         date of last ChangeLog entry.
38897
38898 2008-03-21  Jim Meyering  <meyering@redhat.com>
38899
38900         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
38901
38902 2008-03-20  Eric Blake  <ebb9@byu.net>
38903
38904         VPATH fix.
38905         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
38906
38907 2008-03-20  Simon Josefsson  <simon@josefsson.org>
38908
38909         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
38910         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
38911
38912 2008-03-20  Eric Blake  <ebb9@byu.net>
38913
38914         Sync GNUmakefile with coreutils.
38915         * build-aux/GNUmakefile (have-Makefile): Rename...
38916         (_have-Makefile): ...to this, for namespace consideration.
38917         (GNUmakefile.cfg): Include, if present.
38918         (_autoreconf): Define a default.
38919         (_is-dist-target): New rule for rebuilds to pick up intra-release
38920         version.
38921         (maint-cfg.mk): Rename...
38922         (cfg.mk): ...to this.
38923
38924 2008-03-18  Jim Meyering  <meyering@redhat.com>
38925
38926         New script and module: mktempd
38927         * MODULES.html.sh (maint+release support): Add mktempd.
38928         * build-aux/mktempd: New file.
38929         * modules/mktempd: New file.
38930
38931 2008-03-15  Jim Meyering  <meyering@redhat.com>
38932
38933         Undo last change.
38934         * lib/sha1.c, lib/md5.c: 63 != ~63.
38935         Reported by Andreas Schwab.
38936
38937         sha1.c, md5.c: Hoist a redundant expression.
38938         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
38939         "ctx->buflen" only once, before calling *_process_block.
38940         * lib/md5.c (md5_process_bytes): Likewise.
38941
38942 2008-03-14  Eric Blake  <ebb9@byu.net>
38943
38944         Bump copyright year in files generated by gnulib-tool.
38945         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
38946         gnulib-tool, rather than hard-coding it.
38947
38948         Fix 'gnulib-tool --version' output to work with git.
38949         * gnulib-tool (func_gnulib_dir): New function, extracted from...
38950         (startup): ...here.
38951         (func_version): Use it to invoke git-version-gen, rather than
38952         relying on CVS keyword expansion.  Modernize wording.
38953         (cvsdatestamp, last_checkin_date, version): Kill unused
38954         variables.
38955
38956 2008-03-12  Jim Meyering  <meyering@redhat.com>
38957
38958         Recognize optional cast of the argument to free.
38959         * build-aux/useless-if-before-free: Update regexps.
38960
38961         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
38962
38963 2008-03-11  Bruno Haible  <bruno@clisp.org>
38964
38965         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
38966         by a single package.
38967         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
38968         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
38969         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
38970         Reported by Sam Steingold <sds@gnu.org>.
38971
38972 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38973
38974         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
38975         repositories.
38976
38977 2008-03-11  Bruno Haible  <bruno@clisp.org>
38978
38979         Avoid conflicts between local macro definitions.
38980         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38981         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
38982
38983 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
38984             Bruno Haible  <bruno@clisp.org>
38985
38986         Make va_copy work with some version of xlc on AIX 5.1.
38987         * lib/stdarg.in.h: New file.
38988         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
38989         On AIX, use a <stdarg.h> file substitute.
38990         * modules/stdarg (Files): Add lib/stdarg.in.h.
38991         (Depends-on): Add include_next.
38992         (Makefile.am): Build a stdarg.h substitute if requested.
38993         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
38994
38995 2008-03-10  Bruno Haible  <bruno@clisp.org>
38996
38997         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
38998         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38999         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39000
39001 2008-03-10  Bruno Haible  <bruno@clisp.org>
39002
39003         * modules/stdlib (Depends-on): Add include_next, remove
39004         absolute-header.
39005
39006 2008-03-09  Bruno Haible  <bruno@clisp.org>
39007
39008         * lib/freadahead.h (freadahead): Document more precisely.
39009         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39010         the sum of both buffer sizes.
39011         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39012         * NEWS: Document the change.
39013
39014 2008-03-09  Bruno Haible  <bruno@clisp.org>
39015
39016         Extend freadptr to return also the buffer size.
39017         * lib/freadptr.h (freadptr): Add sizep argument.
39018         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39019         (freadptr): Add sizep argument. Determine buffer size like freadahead
39020         does.
39021         * tests/test-freadptr.c: Don't include freadahead.h.
39022         (main): Adapt for new calling convention of freadptr.
39023         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39024         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39025         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39026         tests/test-freadptr2.sh.
39027         (Depends): Remove freadahead.
39028         (TESTS): Add test-freadptr2.sh.
39029         (check_PROGRAMS): Add test-freadptr2.
39030
39031 2008-03-09  Bruno Haible  <bruno@clisp.org>
39032
39033         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39034         Report and solution by Simon Josefsson.
39035
39036 2008-03-06  Bruno Haible  <bruno@clisp.org>
39037
39038         Make fflush after ungetc work on BSD platforms.
39039         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39040         * tests/test-fflush2.c: New file.
39041         * tests/test-fflush2.sh: New file.
39042         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39043         tests/test-fflush2.c.
39044         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39045         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39046
39047 2008-03-06  Eric Blake  <ebb9@byu.net>
39048
39049         Likewise for ftello.
39050         * modules/ftello (Dependencies): Add extensions.
39051         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39052
39053 2008-03-06  Bruno Haible  <bruno@clisp.org>
39054
39055         * modules/fseeko (Dependencies): Add extensions.
39056         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39057         Needed on glibc systems.
39058
39059 2008-03-06  Bruno Haible  <bruno@clisp.org>
39060
39061         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39062         email address.
39063         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39064
39065 2008-03-06  Bruno Haible  <bruno@clisp.org>
39066
39067         * users.txt: Add libgnupdf.
39068
39069 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39070
39071         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39072         (Header File Substitutes, Function Substitutes,
39073         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39074         (Build robot for gnulib): Fix typo.
39075
39076 2008-03-06  Bruno Haible  <bruno@clisp.org>
39077
39078         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39079         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39080
39081 2008-03-06  Bruno Haible  <bruno@clisp.org>
39082
39083         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39084         * doc/gnulib.texi: Include it.
39085
39086 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39087
39088         * modules/func (License): Change license to unlimited; there was
39089         no LGPL parts in the module anyway.
39090
39091 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39092
39093         * modules/__func__: Renamed to modules/func.
39094         * modules/__func__-tests: Renamed to modules/func-tests.
39095         * tests/test-__func__.c: Renamed to tests/test-func.c.
39096         * m4/__func__.m4: Renamed to m4/func.m4.
39097         * doc/gnulib.texi (__func__): Section renamed to func.
39098         Suggested by Eric Blake <ebb9@byu.net>.
39099
39100 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39101
39102         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39103         about __func__.  Make example self-contained.  Suggested by Eric
39104         Blake <ebb9@byu.net>.
39105
39106         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39107         Suggested by Eric Blake <ebb9@byu.net>.
39108
39109 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39110
39111         * modules/__func__: New file.
39112         * modules/__func__-tests: New file.
39113         * tests/test-__func__.c: New file.
39114         * m4/__func__.m4: New file.
39115         * doc/gnulib.texi (__func__): Document __func__ module.
39116
39117 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39118
39119         * modules/byteswap (License): Re-license as LGPLv2+.
39120
39121 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39122
39123         * doc/Makefile: Add pdf target.
39124
39125 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39126
39127         * modules/inline (License): Use 'unlimited', since there are only
39128         *.m4 files in this module.
39129
39130 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39131             Bruno Haible  <bruno@clisp.org>
39132
39133         Add support for HP C 7.1 on OpenVMS 8.3.
39134         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39135
39136 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39137
39138         Update VMS specifics.
39139         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39140
39141 2008-03-02  Jim Meyering  <meyering@redhat.com>
39142
39143         Remove the last dependency on the "free" module.
39144         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39145         Reported by Bob Proulx.
39146
39147         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39148
39149         Remove useless "if" tests before free.  Deprecate "free" module.
39150         * doc/posix-functions/free.texi: Mention that this
39151         module is no longer useful.
39152         * modules/free (Notice): Say this module is obsolete.
39153         * modules/readutmp (Depends-on): Remove free.
39154         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39155         * lib/putenv.c (putenv): Likewise.
39156         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39157         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39158         * tests/test-c-strcasestr.c (main): Likewise.
39159         * tests/test-c-strstr.c (main): Likewise.
39160         * tests/test-mbscasestr1.c (main): Likewise.
39161         * tests/test-mbscasestr2.c (main): Likewise.
39162         * tests/test-mbsstr1.c (main): Likewise.
39163         * tests/test-mbsstr2.c (main): Likewise.
39164         * tests/test-memmem.c (main): Likewise.
39165         * tests/test-strcasestr.c (main): Likewise.
39166         * tests/test-striconv.c (main): Likewise.
39167         * tests/test-striconveh.c (main): Likewise.
39168         * tests/test-striconveha.c (main): Likewise.
39169         * tests/test-strstr.c (main): Likewise.
39170
39171         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39172
39173         bootstrap: sync from coreutils again
39174         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39175
39176 2008-03-01  Jim Meyering  <meyering@redhat.com>
39177
39178         bootstrap: sync from coreutils
39179         * build-aux/bootstrap (update_po_files): Copy a .po file into place
39180         also when the target doesn't exist.
39181
39182 2008-03-01  Eric Blake  <ebb9@byu.net>
39183
39184         Fix bugs in last patch.
39185         * lib/memchr2.c (memchr2): Fix typo.
39186         * tests/test-memchr2.c: Test previous bug, and don't use GNU
39187         extension.
39188         Reported by Bruce Korb.
39189
39190         New module 'memchr2'.
39191         * modules/memchr2: New file.
39192         * modules/memchr2-tests: Likewise.
39193         * lib/memchr2.h: Likewise.
39194         * lib/memchr2.c: Likewise, based on memchr.c.
39195         * tests/test-memchr2.c: New test.
39196         * MODULES.html.sh (String handling): Add memchr2.
39197
39198 2008-02-29  Bruno Haible  <bruno@clisp.org>
39199
39200         * modules/freadseek-tests: New file.
39201         * tests/test-freadseek.sh: New file.
39202         * tests/test-freadseek.c: New file.
39203
39204         New module 'freadseek'.
39205         * modules/freadseek: New file.
39206         * lib/freadseek.h: New file.
39207         * lib/freadseek.c: New file.
39208         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
39209
39210 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39211
39212         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
39213         wydawca.
39214
39215         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
39216         program_invocation_name and program_invocation_short_name are
39217         present.
39218
39219 2008-02-28  Bruno Haible  <bruno@clisp.org>
39220
39221         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
39222         * tests/test-freadptr.sh: Also test non-seekable stdin.
39223
39224 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
39225
39226         * build-aux/bootstrap (source_base, m4_base)
39227         (doc_base, tests_base): New variables.
39228         (gnulib_tool_options): Do not hardcode base directories, use
39229         the above variables instead.
39230
39231 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
39232
39233         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
39234
39235 2008-02-28  Bruno Haible  <bruno@clisp.org>
39236
39237         * modules/freadptr-tests: New file.
39238         * tests/test-freadptr.sh: New file.
39239         * tests/test-freadptr.c: New file.
39240
39241         New module 'freadptr'.
39242         * modules/freadptr: New file.
39243         * lib/freadptr.h: New file.
39244         * lib/freadptr.c: New file.
39245         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
39246
39247 2008-02-26  Karl Berry  <karl@freefriends.org>
39248
39249         Sync from Libtool:
39250         * libltdl/argz.c (argz_add, argz_count): New functions.
39251         * libltdl/argz.in.h: Declare them.
39252         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
39253
39254 2008-02-22  Bruno Haible  <bruno@clisp.org>
39255
39256         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
39257         is a pointer type.  Needed for HP-UX 10.
39258         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
39259         * doc/posix-functions/gmtime_r.texi: Likewise.
39260         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39261
39262 2008-02-24  Bruno Haible  <bruno@clisp.org>
39263
39264         * modules/environ-tests: New file.
39265         * tests/test-environ.c: New file.
39266
39267         New module 'environ'.
39268         * modules/environ: New file.
39269         * lib/unistd.in.h (environ): New declaration.
39270         * m4/environ.m4: New file.
39271         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
39272         after use.
39273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
39274         HAVE_DECL_ENVIRON.
39275         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
39276         HAVE_DECL_ENVIRON.
39277         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
39278         wrong claim that 'environ' is missing on some systems.
39279         * modules/execute (Depends-on): Add environ.
39280         * lib/execute.c (environ): Remove fallback declaration.
39281         * modules/pipe (Depends-on): Add environ.
39282         * lib/pipe.c (environ): Remove fallback declaration.
39283         * modules/setenv (Depends-on): Add environ.
39284         * lib/setenv.c (environ): Remove fallback declaration.
39285         * modules/unsetenv (Depends-on): Add environ.
39286         * lib/unsetenv.c (environ): Remove fallback declaration.
39287         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
39288         m4/environ.m4.
39289         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
39290         (gl_PREREQ_UNSETENV): Likewise.
39291
39292 2008-02-24  Bruno Haible  <bruno@clisp.org>
39293
39294         * doc/posix-functions/environ.texi: Document the MacOS X problem.
39295
39296 2008-02-20  Bob Proulx  <bob@proulx.com>
39297
39298         Enable use of older two part flavor 'git describe'.
39299         * build-aux/git-version-gen: If using the older two part flavor of
39300         git version then recreate the third part now present in the
39301         newer three part flavor of git describe.
39302
39303 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
39304
39305         * lib/fts.c (fts_build): Typo correction to comment.
39306
39307 2008-02-17  Bruno Haible  <bruno@clisp.org>
39308
39309         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
39310         generating no-op conflicts.
39311
39312 2008-02-17  Bruno Haible  <bruno@clisp.org>
39313
39314         Speed up by 10%.
39315         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
39316         result_entries, rather than an index-based loop.
39317
39318 2008-02-17  Bruno Haible  <bruno@clisp.org>
39319
39320         Speed up by 25%.
39321         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
39322         'hashcode_cached'.
39323         (entry_create): New function.
39324         (entry_hashcode): Use the cached hashcode if possible.
39325         (read_changelog_file, try_split_merged_entry): Use entry_create.
39326
39327 2008-02-17  Bruno Haible  <bruno@clisp.org>
39328
39329         Speed up from O(n^2) to O(n) for long ChangeLog files.
39330         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
39331         (read_changelog_file): Change implementation of entries_reversed list
39332         to rbtreehash.
39333         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
39334
39335 2008-02-17  Bruno Haible  <bruno@clisp.org>
39336
39337         New option --split-merged-entry.
39338         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
39339         (find_paragraph_end, try_split_merged_entry): New functions.
39340         (long_options): Add option --split-merged-entry.
39341         (usage): Document option --split-merged-entry.
39342         (main): Implement option --split-merged-entry.
39343         Reported by Eric Blake.
39344
39345 2008-02-17  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/git-merge-changelog.c: Include c-strstr.h.
39348         (main): Support the "git pull --rebase" situation.
39349         * modules/git-merge-changelog (Depends-on): Add c-strstr.
39350         Reported by Eric Blake.
39351
39352 2008-02-16  Eric Blake  <ebb9@byu.net>
39353
39354         Avoid doubling \ in common case of "c-maybe" quoting style.
39355         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
39356         eliding outer quotes.
39357         * lib/quotearg.h: Document this.
39358         * tests/test-quotearg.c (result_strings, inputs, results_g)
39359         (flag_results, locale_results): Test it by adding a new string to
39360         each test group.
39361         (compare_strings): Test new string.
39362
39363 2008-02-13  Eric Blake  <ebb9@byu.net>
39364
39365         Avoid trigraph quoting in default output.
39366         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
39367         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
39368         unless explicitly requested.
39369         * tests/test-quotearg.c (flag_results, main): Add additional tests.
39370
39371 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
39372
39373         Don't rely on signed integer overflowing to negative value.
39374         * lib/getugroups.c (getugroups): Include <limits.h>.
39375         Instead, compare against INT_MAX, and increment only if the test passes.
39376
39377 2008-02-13  Jim Meyering  <meyering@redhat.com>
39378         and Eric Blake  <ebb9@byu.net>
39379
39380         Avoid shadowing warning and compile errors on Linux.
39381         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
39382         forwarding macros on Linux.
39383         (dcgettext): Define a stub, for Linux.
39384         (results_g, main): Avoid warnings.
39385
39386 2008-02-12  Eric Blake  <ebb9@byu.net>
39387
39388         Silence warning in last patch.
39389         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
39390
39391         Quotearg part 4: add tests, fix c-maybe colon quoting.
39392         * lib/quotearg.h: Improve documentation.
39393         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
39394         escapes when adding outer quotes.  When quoting trigraphs, use
39395         valid C notation.  When quoting NUL, omit extra characters if next
39396         character is not digit.  Alter prototype.
39397         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
39398         callers.
39399         * modules/quotearg-tests: New module.
39400         * tests/test-quotearg.c: New test.
39401
39402 2008-02-07  Eric Blake  <ebb9@byu.net>
39403
39404         Quotearg part 3: add flag to control outer quote elision.
39405         * lib/quotearg.h (c_maybe_quoting_style): New style.
39406         (enum quoting_flags): Better documentation of flags.
39407         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
39408         c-maybe style.
39409         (quotearg_buffer_restyled): Handle new flag to elide outer
39410         quotes.
39411
39412         Quotearg part 2: add flag that can control NUL elision.
39413         * lib/quotearg.h (set_quoting_flags): New prototype.
39414         * lib/quotearg.c (struct quoting_options): Add flag field.
39415         (set_quoting_flags): New function.
39416         (quotearg_buffer_restyled): Add flags parameter.
39417         (quotearg_alloc_mem): Set the flag if length cannot be returned.
39418         (quotearg_n_options): Set the flag, since length cannot be
39419         returned.
39420         (quoting_options_from_style): Default flags correctly.
39421
39422         Quotearg part 1: more wrappers, restore quotearg_char state.
39423         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
39424         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
39425         (quotearg_colon_mem): New wrappers.
39426         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
39427         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
39428         functions.
39429         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39430         (quotearg_colon_mem): New functions.
39431
39432 2008-02-11  Bruno Haible  <bruno@clisp.org>
39433
39434         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39435         library in the current directory: it does not work with parallel make.
39436         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39437
39438 2008-02-11  Bruno Haible  <bruno@clisp.org>
39439
39440         * .gitattributes: New file.
39441
39442 2008-02-11  Jim Meyering  <meyering@redhat.com>
39443
39444         useless-if-before-free: Fix reversed exit values.
39445         * build-aux/useless-if-before-free: Use correct values
39446         for EXIT_MATCH and EXIT_NO_MATCH.
39447
39448         * build-aux/useless-if-before-free: Close stdout carefully.
39449
39450 2008-02-10  Bruno Haible  <bruno@clisp.org>
39451
39452         New module 'git-merge-changelog'.
39453         * modules/git-merge-changelog: New file.
39454         * lib/git-merge-changelog.c: New file.
39455
39456 2008-02-10  Jim Meyering  <meyering@redhat.com>
39457
39458         useless-if-before-free: New option: --list (-l).
39459
39460         useless-if-before-free: Don't exit immediately upon open failure.
39461         * build-aux/useless-if-before-free: Exit 2 for errors.
39462         Upon failure to open a file, don't exit immediately.
39463         Rather, just warn and continue with any remaining files.
39464
39465 2008-02-10  Bruno Haible  <bruno@clisp.org>
39466
39467         New abstract list operation 'node_set_value'.
39468         * lib/gl_list.h (gl_list_node_set_value): New function.
39469         (struct gl_list_implementation): New field node_set_value.
39470         * lib/gl_list.c (gl_list_node_set_value): New function.
39471         * lib/gl_array_list.c (gl_array_node_set_value): New function.
39472         (gl_array_list_implementation): Update.
39473         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
39474         (gl_carray_list_implementation): Update.
39475         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
39476         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39477         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39478         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
39479         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39480         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39481         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39482         Update.
39483         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39484         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
39485         (gl_sublist_list_implementation): Update.
39486
39487 2008-02-10  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
39490         Needed when ELEMENT is #defined to 'some_type *'.
39491
39492 2008-02-10  Jim Meyering  <meyering@redhat.com>
39493
39494         New script and module: useless-if-before-free
39495         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
39496         * build-aux/useless-if-before-free: New file.
39497         * modules/useless-if-before-free: New file.
39498
39499         * build-aux/gitlog-to-changelog: Use committer date, not author date.
39500
39501         xstrtol_error: Fix typo.
39502         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
39503         s/exit_failure/exit_status/.
39504
39505 2008-02-09  Jim Meyering  <meyering@redhat.com>
39506
39507         New script and module: gitlog-to-changelog
39508         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
39509         * modules/gitlog-to-changelog: New file.
39510         * build-aux/gitlog-to-changelog: New file.
39511
39512 2008-02-08  Jim Meyering  <meyering@redhat.com>
39513
39514         Avoid two "parameter unused" warnings.
39515         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
39516         Mark "st" as used.
39517
39518         Use "git COMMAND", not "git-COMMAND".
39519         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
39520         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
39521         * build-aux/git-version-gen: Use "git status", not "git-status".
39522
39523 2008-02-07  Bruno Haible  <bruno@clisp.org>
39524
39525         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
39526         Avoids a crash on Windows Vista.
39527         Reported by Adam Strzelecki <ono@java.pl> via
39528         Simon Josefsson <simon@josefsson.org>.
39529
39530 2008-02-06  Bruno Haible  <bruno@clisp.org>
39531
39532         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
39533         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
39534         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
39535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
39536         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39538         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
39539         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
39540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39547         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
39548         left-adjust flag.
39549         * tests/test-snprintf-posix.h (test_function): Likewise.
39550         * tests/test-sprintf-posix.h (test_function): Likewise.
39551         * tests/test-vasprintf-posix.c (test_function): Likewise.
39552         * doc/posix-functions/fprintf.texi: Update.
39553         * doc/posix-functions/printf.texi: Update.
39554         * doc/posix-functions/snprintf.texi: Update.
39555         * doc/posix-functions/sprintf.texi: Update.
39556         * doc/posix-functions/vfprintf.texi: Update.
39557         * doc/posix-functions/vprintf.texi: Update.
39558         * doc/posix-functions/vsnprintf.texi: Update.
39559         * doc/posix-functions/vsprintf.texi: Update.
39560         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39561
39562 2008-02-06  Bruno Haible  <bruno@clisp.org>
39563
39564         Fix bug introduced on 2008-01-26.
39565         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
39566
39567 2008-02-06  Bruno Haible  <bruno@clisp.org>
39568
39569         Fix bug introduced on 2007-06-10.
39570         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
39571         !NEED_PRINTF_FLAG_ZERO.
39572
39573 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
39574
39575         getloadavg: use libperfstat on AIX5
39576         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
39577
39578 2008-02-03  Bruno Haible  <bruno@clisp.org>
39579
39580         * lib/diffseq.h: Add comments about required #includes.
39581         Reported by Michael Biggs <gnulib@doubleplum.net>.
39582
39583 2008-02-01  Bruno Haible  <bruno@clisp.org>
39584
39585         * users.txt: Add gnuit.
39586
39587 2008-01-31  Bruno Haible  <bruno@clisp.org>
39588
39589         * lib/md4.c (set_uint32): Mark as inline.
39590         * lib/md5.c (set_uint32): Likewise.
39591         * lib/sha1.c (set_uint32): Likewise.
39592         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
39593         * m4/md5.m4 (gl_MD5): Likewise.
39594         * m4/sha1.m4 (gl_SHA1): Likewise.
39595
39596 2008-01-31  Jim Meyering  <meyering@redhat.com>
39597
39598         Use "sizeof VAR", rather than a literal "4".
39599         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
39600         * lib/md4.c (md4_read_ctx): Likewise.
39601         * lib/sha1.c (sha1_read_ctx): Likewise.
39602
39603 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39604
39605         * tests/test-sha1.c: New file, based on test-md5.c.
39606
39607         * modules/crypto/sha1-tests: New file.
39608
39609 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39610
39611         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
39612
39613 2008-01-31  Jim Meyering  <meyering@redhat.com>
39614
39615         Prefer "sizeof v" over the equivalent "4".
39616         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
39617         * lib/md5.c (set_uint32): Likewise.
39618         * lib/sha1.c (set_uint32): Likewise.
39619
39620 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39621
39622         * lib/sha1.c (set_uint32): Mark function as static.
39623
39624 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39625
39626         md2: clarify comments to say that alignment is not required.
39627         * lib/md2.h: Remove warning about alignment in comment.
39628         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
39629         never been required.
39630
39631 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39632
39633         md4: adapt alignment constraint fix from sha1.
39634         * lib/md4.c (set_uint32): New function, from sha1.c
39635         (md4_read_ctx): Use it.
39636         (md4_finish_ctx): Doc fix.
39637         * lib/md4.h: Doc fix.
39638
39639 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39640
39641         md5: adapt alignment constraint fix from sha1.
39642         * lib/md5.c (set_uint32): New function, from sha1.c
39643         (md5_read_ctx): Use it.
39644         (md5_finish_ctx): Doc fix.
39645         * lib/md5.h: Doc fix.
39646
39647 2008-01-30  Peter Palfrader  <weasel@debian.org>
39648
39649         sha1: remove the result buffer alignment constraint
39650         * lib/sha1.c (set_uint32): New function.
39651         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39652         constraint.
39653         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39654         * lib/sha1.h: Likewise.
39655
39656 2008-01-30  Andreas Schwab  <schwab@suse.de>
39657             Bruno Haible  <bruno@clisp.org>
39658
39659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39660         correct definition of LDBL_MIN_EXP.
39661
39662 2008-01-30  Karl Berry  <karl@gnu.org>
39663
39664         * config/srclist-update: try to preserve x bit on updates.
39665         * config/srclistvars.sh: update for karl.
39666
39667 2008-01-29  Jim Meyering  <meyering@redhat.com>
39668
39669         vasnprintf.c: Avoid warning about unused label
39670         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
39671         "overflow" label definition and associated code with the
39672         same cpp condition that guards the sole use of that label.
39673
39674 2008-01-26  Bruno Haible  <bruno@clisp.org>
39675
39676         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
39677         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
39678         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
39679         * lib/isnanl-nolibm.h (isnanl): Likewise.
39680         Reported by Paul Eggert <eggert@cs.ucla.edu>.
39681
39682 2008-01-26  Bruno Haible  <bruno@clisp.org>
39683
39684         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
39685         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
39686
39687 2008-01-26  Bruno Haible  <bruno@clisp.org>
39688
39689         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
39690         GCC >= 4.0 built-in.
39691         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
39692
39693 2008-01-26  Bruno Haible  <bruno@clisp.org>
39694
39695         Rename isnan, applicable to 'double' only, to isnand.
39696         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
39697         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
39698         (configure.ac): Update.
39699         (Include): Replace "isnan.h" with "isnand.h".
39700         * m4/isnand.m4: Renamed from m4/isnan.m4.
39701         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
39702         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
39703         instead of isnan.c.
39704         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
39705         instead of HAVE_ISNAN_IN_LIBC.
39706         (isnand): Renamed from isnan.
39707         * lib/isnand.c: New file.
39708         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
39709         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
39710         (Makefile.am): Update.
39711         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
39712         Include isnand.h instead of isnan.h.
39713         (main): Test isnand instead of isnan.
39714         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
39715         isnan-nolibm.
39716         * modules/frexp (Depends-on): Likewise.
39717         * modules/frexp-tests (Depends-on): Likewise.
39718         * modules/frexp-nolibm (Depends-on): Likewise.
39719         * modules/frexp-nolibm-tests (Depends-on): Likewise.
39720         * modules/isfinite (Depends-on): Likewise.
39721         * modules/round-tests (Depends-on): Likewise.
39722         * modules/signbit (Depends-on): Likewise.
39723         * modules/signbit-tests (Depends-on): Likewise.
39724         * modules/snprintf-posix (Depends-on): Likewise.
39725         * modules/sprintf-posix (Depends-on): Likewise.
39726         * modules/trunc-tests (Depends-on): Likewise.
39727         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39728         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39729         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39730         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39731         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39732         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39733         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39734         * modules/vasnprintf-posix (Depends-on): Likewise.
39735         * modules/vasprintf-posix (Depends-on): Likewise.
39736         * modules/vfprintf-posix (Depends-on): Likewise.
39737         * modules/vsnprintf-posix (Depends-on): Likewise.
39738         * modules/vsprintf-posix (Depends-on): Likewise.
39739         * lib/frexp.c: Include isnand.h instead of isnan.h.
39740         (ISNAN): Set to isnand instead of isnan.
39741         * lib/isfinite.c: Include isnand.h instead of isnan.h.
39742         (gl_isfinited): Use isnand instead of isnan.
39743         * lib/signbitd.c: Include isnand.h instead of isnan.h.
39744         (gl_signbitd): Use isnand instead of isnan.
39745         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
39746         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
39747         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
39748         (main): Use isnand instead of isnan.
39749         * tests/test-round1.c: Include isnand.h.
39750         (main): Use isnand instead of isnan.
39751         * tests/test-round2.c: Include isnand.h instead of isnan.h.
39752         (ISNAN): Set to isnand instead of isnan.
39753         * tests/test-trunc1.c: Include isnand.h.
39754         (main): Use isnand instead of isnan.
39755         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
39756         (equal): Use isnand instead of isnan.
39757         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
39758         isnand-nolibm.
39759         * NEWS: Mention the change.
39760
39761 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39762             Bruno Haible  <bruno@clisp.org>
39763
39764         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
39765         the GCC builtins for signbits are present and set
39766         REPLACE_SIGNBIT_USING_GCC if so.
39767         * lib/math.in.h (signbit): Define using GCC builtins if
39768         REPLACE_SIGNBIT_USING_GCC is set.
39769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
39770         REPLACE_SIGNBIT_USING_GCC.
39771         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
39772
39773 2008-01-25  Jim Meyering  <meyering@redhat.com>
39774
39775         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
39776         * lib/poll.c: Include <config.h>, not "config.h".
39777         * tests/test-getaddrinfo.c: Likewise.
39778
39779 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39780
39781         * modules/sockets-tests: New file.
39782
39783 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39784
39785         * modules/sockets: New module, can be used to call WSA_Startup and
39786         WSA_Cleanup when needed.
39787
39788         * lib/sockets.h, lib/sockets.c: New files.
39789
39790         * m4/sockets.m4: New file.
39791
39792         * tests/test-sockets.c: New file.
39793
39794 2008-01-19  Bruno Haible  <bruno@clisp.org>
39795
39796         * doc/posix-headers: Renamed from doc/headers.
39797         * doc/posix-functions: Renamed from doc/functions.
39798         * doc/gnulib.texi: Update.
39799
39800 2008-01-19  Bruno Haible  <bruno@clisp.org>
39801
39802         * doc/glibc-functions/strcasestr.texi: Include contents of
39803         doc/functions/strcasestr.texi, fixing the list of platforms.
39804         * doc/functions/strcasestr.texi: Remove file.
39805
39806 2008-01-19  Bruno Haible  <bruno@clisp.org>
39807
39808         * doc/glibc-functions/memmem.texi: Include contents of
39809         doc/functions/memmem.texi.
39810         * doc/functions/memmem.texi: Remove file.
39811
39812 2008-01-18  Bruno Haible  <bruno@clisp.org>
39813
39814         * doc/glibc-functions/*.texi: New files.
39815         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
39816         to use the new files.
39817
39818 2008-01-17  Bruno Haible  <bruno@clisp.org>
39819
39820         * tests/test-gethostname.c (main): Fix printf statement.
39821
39822 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39823
39824         * modules/gethostname-tests: New file.
39825
39826         * tests/test-gethostname.c: New file.
39827
39828 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39829
39830         * lib/gethostname.c: Include string.h unconditionally, strncpy is
39831         used by the UNAME case.  Reported by Bruno Haible
39832         <bruno@clisp.org>.
39833
39834 2008-01-17  Eric Blake  <ebb9@byu.net>
39835
39836         Convert c-strcasestr to be more efficient.
39837         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
39838         (Depends-on): Add c-strcase, remove malloca, strnlen.
39839         * tests/test-c-strcasestr.c (main): Enhance test.
39840         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
39841
39842 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39843
39844         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
39845         Use it in creating po/Makevars.
39846
39847 2008-01-15  Simon Josefsson  <simon@josefsson.org>
39848
39849         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
39850         Applications that requires it should initialize libgcrypt
39851         manually.
39852
39853 2008-01-16  Simon Josefsson  <simon@josefsson.org>
39854
39855         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
39856
39857 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
39858
39859         Fix problem with getdate on mingw32 reported by Simon Josefsson
39860         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
39861         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
39862         tzname", when deciding whether to declare tzname.
39863         * lib/strftime.c (tzname): Likewise.
39864
39865 2008-01-15  Bruno Haible  <bruno@clisp.org>
39866
39867         Work around a MacOS X 10.5 bug in frexpl().
39868         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
39869         * doc/functions/frexpl.texi: Document the bug.
39870         Reported by Elias Pipping <pipping@gentoo.org>.
39871
39872 2008-01-14  Eric Blake  <ebb9@byu.net>
39873
39874         Touch up previous patch.
39875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
39876         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
39877
39878         Convert strcasestr module to use Two-Way algorithm.
39879         * modules/strcasestr-simple: New module, based on the old
39880         strcasestr, but with Two-Way rather than KMP.
39881         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
39882         * lib/string.in.h (rpl_strcasestr): Declare.
39883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
39884         performance.
39885         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
39886         * modules/string (Makefile.am): Support strcasestr.
39887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39888         * modules/strcasestr-tests (Depends-on): Check for alarm.
39889         * tests/test-strcasestr.c: Augment test.
39890         * lib/str-two-way.h: Clean up stray macro.
39891         * NEWS: Document new module.
39892         * MODULES.html.sh (string handling): Likewise.
39893         * doc/functions/strcasestr.texi: New file.
39894         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39895         here, since it is not a POSIX function.
39896
39897 2008-01-14  Colin Watson  <cjwatson@debian.org>
39898             Bruno Haible  <bruno@clisp.org>
39899
39900         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
39901         works fine; if not, set REPLACE_STRSIGNAL.
39902         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
39903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39904         REPLACE_STRSIGNAL.
39905         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
39906         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
39907         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
39908
39909 2008-01-14  Bruno Haible  <bruno@clisp.org>
39910
39911         * modules/strsignal (Include): Change to <string.h>.
39912
39913 2008-01-14  Colin Watson  <cjwatson@debian.org>
39914
39915         * modules/argp (Notice): Add a notice recommending to change
39916         XGETTEXT_OPTIONS.
39917         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
39918
39919 2008-01-13  Colin Watson  <cjwatson@debian.org>
39920
39921         * modules/strsignal-tests: New file.
39922         * tests/test-strsignal.c: New file.
39923
39924         * lib/strsignal.c: New file, from glibc with modifications.
39925         * lib/siglist.h: New file, from glibc with modifications.
39926         * lib/string.in.h (strsignal): New declaration.
39927         * m4/strsignal.m4: New file.
39928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39929         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
39930         * modules/strsignal: New file.
39931         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
39932         HAVE_DECL_STRSIGNAL.
39933
39934 2008-01-13  Bruno Haible  <bruno@clisp.org>
39935
39936         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
39937         locale encoding is not ASCII. Needed for OpenBSD 4.0.
39938         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39939         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39940
39941 2008-01-13  Bruno Haible  <bruno@clisp.org>
39942
39943         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
39944         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
39945         * lib/argp.h (__attribute__): Likewise.
39946         * lib/c-stack.c (__attribute__): Likewise.
39947         * lib/error.h (__attribute__): Likewise.
39948         * lib/fts.c (__attribute__): Likewise.
39949         * lib/openat.h (__attribute__): Likewise.
39950         * lib/stdio.in.h (__attribute__): Likewise.
39951         * lib/string.in.h (__attribute__): Likewise.
39952         * lib/utimens.c (__attribute__): Likewise.
39953         * lib/vasnprintf.h (__attribute__): Likewise.
39954         * lib/xalloc.h (__attribute__): Likewise.
39955         * lib/xprintf.h (__attribute__): Likewise.
39956         * lib/xstrtol.h (__attribute__): Likewise.
39957         * lib/xvasprintf.h (__attribute__): Likewise.
39958
39959 2008-01-12  Bruno Haible  <bruno@clisp.org>
39960
39961         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
39962         * doc/glibc-headers/a.out.texi: New file.
39963         * doc/glibc-headers/aliases.texi: New file.
39964         * doc/glibc-headers/alloca.texi: New file.
39965         * doc/glibc-headers/ar.texi: New file.
39966         * doc/glibc-headers/argp.texi: New file.
39967         * doc/glibc-headers/argz.texi: New file.
39968         * doc/glibc-headers/byteswap.texi: New file.
39969         * doc/glibc-headers/crypt.texi: New file.
39970         * doc/glibc-headers/endian.texi: New file.
39971         * doc/glibc-headers/envz.texi: New file.
39972         * doc/glibc-headers/err.texi: New file.
39973         * doc/glibc-headers/error.texi: New file.
39974         * doc/glibc-headers/execinfo.texi: New file.
39975         * doc/glibc-headers/fpu_control.texi: New file.
39976         * doc/glibc-headers/fstab.texi: New file.
39977         * doc/glibc-headers/fts.texi: New file.
39978         * doc/glibc-headers/getopt.texi: New file.
39979         * doc/glibc-headers/ieee754.texi: New file.
39980         * doc/glibc-headers/ifaddrs.texi: New file.
39981         * doc/glibc-headers/libintl.texi: New file.
39982         * doc/glibc-headers/mcheck.texi: New file.
39983         * doc/glibc-headers/mntent.texi: New file.
39984         * doc/glibc-headers/obstack.texi: New file.
39985         * doc/glibc-headers/paths.texi: New file.
39986         * doc/glibc-headers/printf.texi: New file.
39987         * doc/glibc-headers/pty.texi: New file.
39988         * doc/glibc-headers/resolv.texi: New file.
39989         * doc/glibc-headers/shadow.texi: New file.
39990         * doc/glibc-headers/sysexits.texi: New file.
39991         * doc/glibc-headers/ttyent.texi: New file.
39992
39993 2008-01-12  Jim Meyering  <meyering@redhat.com>
39994
39995         announce-gen: emit Gnulib's git-based version string.
39996         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
39997         New option --gnulib-version=V, where V is expected to be
39998         the output of running git describe in the gnulib directory.
39999         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40000         not useful, and plan to stop publishing an xdelta file with each
40001         coreutils release.
40002
40003         * build-aux/announce-gen: Also check for lzma-compressed files.
40004
40005 2008-01-11  Bruno Haible  <bruno@clisp.org>
40006
40007         * tests/test-memmem.c (main): Increase maximum allowed time.
40008         * tests/test-strstr.c (main): Likewise.
40009
40010 2008-01-11  Bruno Haible  <bruno@clisp.org>
40011
40012         * doc/functions/memmem.texi: Add more precisions about platforms.
40013         * doc/functions/strstr.texi: Likewise.
40014
40015 2008-01-10  Eric Blake  <ebb9@byu.net>
40016
40017         * m4/strstr.m4: Delete cruft from copy-n-paste.
40018         Reported by Bruno Haible.
40019
40020 2008-01-10  Bruno Haible  <bruno@clisp.org>
40021
40022         Make c-strstr rely on strstr.
40023         * lib/c-strstr.c: Don't include str-kmp.h.
40024         (c_strstr): Define in terms of strstr.
40025         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40026         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40027
40028 2008-01-10  Bruno Haible  <bruno@clisp.org>
40029
40030         * doc/gnulib.texi (String Functions in C Locale): New section.
40031         * doc/c-ctype.texi: New file.
40032         * doc/c-strcase.texi: New file.
40033         * doc/c-strcaseeq.texi: New file.
40034         * doc/c-strcasestr.texi: New file.
40035         * doc/c-strstr.texi: New file.
40036         * doc/c-strtod.texi: New file.
40037         * doc/c-strtold.texi: New file.
40038
40039 2008-01-10  Eric Blake  <ebb9@byu.net>
40040
40041         * lib/relocatable.h: Fix a comment.
40042
40043 2008-01-10  Eric Blake  <ebb9@byu.net>
40044
40045         Share two-way algorithm.
40046         * lib/str-two-way.h: New file, merged from...
40047         * lib/memmem.c: ...here...
40048         * lib/strstr.c: ...and here.
40049         * modules/memmem (Files): Use it.
40050         * modules/strstr (Files): Likewise.
40051
40052         Avoid quadratic strstr implementations.
40053         * lib/strstr.c: New file.
40054         * m4/strstr.m4: Likewise.
40055         * modules/strstr: Likewise.
40056         * modules/strstr-tests: Likewise.
40057         * tests/test-strstr.c: Likewise.
40058         * lib/string.in.h (rpl_strstr): Declare.
40059         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40061         * modules/string (Makefile.am): Likewise.
40062         * MODULES.html.sh (string handling): Mention new module.
40063         * doc/functions/strstr.texi (strstr): Document the bug.
40064
40065 2008-01-10  Bruno Haible  <bruno@clisp.org>
40066
40067         * lib/relocatable.h (relocate): State whether result is freshly
40068         allocated or not.
40069         * lib/relocatable.c (relocate): Return a freshly allocated string
40070         instead of a pointer to a privately held string.
40071         Reported by Sylvain Beucler <beuc@gnu.org>.
40072
40073 2008-01-10  Colin Watson  <cjwatson@debian.org>
40074
40075         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40076         s/S_ISNLK/S_ISLNK/.
40077
40078 2008-01-09  Bruno Haible  <bruno@clisp.org>
40079
40080         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40081         and other files.
40082         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40083         if it's only a guess.
40084         * modules/memmem: Simplify by depending on memmem-simple.
40085
40086 2008-01-09  Bruno Haible  <bruno@clisp.org>
40087
40088         Work around OpenBSD 4.0 tdelete() bug.
40089         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40090         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40091         macros and don't redefine the enum values.
40092         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40093         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40094         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40095
40096 2008-01-09  Bruno Haible  <bruno@clisp.org>
40097
40098         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40099         (main): Don't perform the tests if setlocale did not install a UTF-8
40100         locale. Needed on OpenBSD 4.0.
40101         * modules/wcwidth-tests (Depends-on): Add localcharset.
40102
40103 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40104
40105         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40106         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40107         * NEWS: announce this.
40108         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40109
40110 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40111         and Eric Blake  <ebb9@byu.net>
40112
40113         Add memmem-simple module.
40114         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40115         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40116         * modules/memmem-simple: New file.
40117         * modules/memmem (Description): Tweak.
40118         * MODULES.html.sh (string handling): Mention new module.
40119         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40120         addressed by memmem-simple.
40121         * NEWS: Document the difference.
40122
40123 2008-01-09  Eric Blake  <ebb9@byu.net>
40124
40125         Give gcc some memmem optimization hints.
40126         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40127         (strcasestr): Declare as pure.
40128         * modules/memmem (Maintainer): Claim my implementation.
40129
40130 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40131
40132         Support AIX 6.1 and higher.
40133         * build-aux/config.libpath: Likewise.
40134         * build-aux/config.rpath: Likewise.
40135
40136 2008-01-08  Jim Meyering  <meyering@redhat.com>
40137             Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40140         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40141         Reported by Peter Fales in
40142         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40143
40144 2008-01-08  Bruno Haible  <bruno@clisp.org>
40145
40146         * modules/unictype/category-of (Depends-on): Add
40147         unictype/category-none.
40148         * modules/unictype/category-and-tests (Depends-on): Add
40149         unictype/category-{L,N,Lu,Nd}.
40150         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40151         * modules/unictype/category-or-tests (Depends-on): Add
40152         unictype/category-{L,N}.
40153         * modules/unictype/category-name-tests (Depends-on): Add
40154         unictype/category-{Z,Nl}.
40155         Reported by Simon Josefsson.
40156
40157 2008-01-08  Bruno Haible  <bruno@clisp.org>
40158
40159         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40160         convention better.
40161         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40162         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40163         Reported by Peter Miller <millerp@canb.auug.org.au>.
40164
40165 2008-01-08  Eric Blake  <ebb9@byu.net>
40166
40167         Rewrite memmem to guarantee linear complexity without malloc.
40168         * lib/memmem.c (memmem): Use Two-Way rather than
40169         Knuth-Morris-Pratt, to allow O(1) space usage.
40170         (critical_factorization, two_way_short_needle)
40171         (two_way_long_needle): New functions.
40172         (knuth_morris_pratt): Delete.
40173         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40174         Add stdint.
40175         * tests/test-memmem.c (main): Add tests for periodic needle and
40176         sublinear performance.
40177         * doc/functions/memmem.texi (memmem): Document other deficiencies
40178         in cygwin and older glibc.
40179
40180 2008-01-08  Bruno Haible  <bruno@clisp.org>
40181
40182         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
40183         augmentation.
40184
40185 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
40186
40187         Add a configure time option: --disable-acl.
40188         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
40189         AC_ARG_ENABLE(acl).
40190
40191 2008-01-06  Simon Josefsson  <simon@josefsson.org>
40192
40193         * tests/test-localename.c: Don't include obsolete "setenv.h".
40194
40195         * modules/localename-tests (Depends-on): Need unsetenv.
40196
40197 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40198
40199         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
40200
40201 2008-01-06  Colin Watson  <cjwatson@debian.org>
40202
40203         * users.txt: Add man-db.
40204
40205 2008-01-07  Bruno Haible  <bruno@clisp.org>
40206
40207         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
40208         previous section name.
40209
40210 2008-01-07  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/progname.c (set_program_name): Don't strip off a leading
40213         "lt-" prefix outside a .libs directory.
40214         Suggested by Paul Eggert.
40215
40216 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
40217             Bruno Haible  <bruno@clisp.org>
40218
40219         Improve memory cleanup in 'relocatable' module.
40220         * lib/relocatable.h (compute_curr_prefix): Change return type to
40221         'char *'.
40222         * lib/relocatable.c (compute_curr_prefix): Change return type to
40223         'char *'. Free curr_installdir after use.
40224         (relocate): Free curr_prefix_better after use.
40225         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
40226
40227 2008-01-01  Bruno Haible  <bruno@clisp.org>
40228
40229         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
40230         failure on older glibc systems.
40231         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40232
40233 2008-01-05  Eric Blake  <ebb9@byu.net>
40234
40235         Avoid quadratic system memmem.
40236         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
40237         Reported by Ralf Wildenhues.
40238
40239         Fix memmem test for mingw.
40240         * modules/memmem-tests (configure.ac): Check for alarm.
40241         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
40242         it.
40243         * doc/functions/memmem.texi: New file.
40244         * doc/gnulib.texi (Function Substitutes): Add memmem.
40245         Reported by Bruno Haible.
40246
40247 2008-01-04  Bruno Haible  <bruno@clisp.org>
40248
40249         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
40250         Require gl_HEADER_STRINGS_H_DEFAULTS, not
40251         gl_HEADER_STRING_H_DEFAULTS.
40252
40253 2008-01-04  Eric Blake  <ebb9@byu.net>
40254
40255         Shorten duration of memmem test.
40256         * tests/test-memmem.c (main): Use alarm to declare failure if test
40257         is taking too long.
40258         Reported by Ralf Wildenhues.
40259
40260 2007-12-21  Simon Josefsson  <simon@josefsson.org>
40261
40262         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
40263         string, needed by strerror.
40264
40265 2008-01-03  Colin Watson  <cjwatson@debian.org>
40266             Bruno Haible  <bruno@clisp.org>
40267
40268         * doc/gnulib-tool.texi (Localization): New section.
40269
40270 2008-01-02  Bruno Haible  <bruno@clisp.org>
40271
40272         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
40273         variables to 'unsigned char *' type.
40274         Reported by Paul Eggert.
40275
40276 2008-01-02  Jim Meyering  <jim@meyering.net>
40277
40278         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
40279
40280 2007-12-31  Jim Meyering  <jim@meyering.net>
40281
40282         Avoid use of private FTS type name.
40283         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
40284
40285 2007-12-30  Karl Berry  <karl@gnu.org>
40286
40287         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
40288         work around defect in Texinfo and/or the standalone Info browser.
40289
40290 2007-12-30  Bruno Haible  <bruno@clisp.org>
40291
40292         Unify 5 copies of the KMP code.
40293         * lib/str-kmp.h: New file.
40294         * lib/c-strcasestr.c: Include str-kmp.h.
40295         (knuth_morris_pratt): Remove function.
40296         (c_strcasestr): Update.
40297         * lib/c-strstr.c: Include str-kmp.h.
40298         (knuth_morris_pratt): Remove function.
40299         (c_strcasestr): Update.
40300         * lib/mbscasestr.c: Include str-kmp.h.
40301         (knuth_morris_pratt_unibyte): Remove function.
40302         * lib/mbsstr.c: Include str-kmp.h.
40303         (knuth_morris_pratt_unibyte): Remove function.
40304         * lib/strcasestr.c: Include str-kmp.h.
40305         (knuth_morris_pratt): Remove function.
40306         (strcasestr): Update.
40307         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
40308         * modules/c-strstr (Files): Likewise.
40309         * modules/mbscasestr (Files): Likewise.
40310         * modules/mbsstr (Files): Likewise.
40311         * modules/strcasestr (Files): Likewise.
40312         Suggested by Paul Eggert.
40313
40314 2007-12-30  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
40317         defined.
40318
40319 2007-12-30  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/xmalloca.h: Include xalloc.h.
40322         (xnmalloca): New macro.
40323
40324 2007-12-30  Bruno Haible  <bruno@clisp.org>
40325
40326         * lib/malloca.h (nmalloca): New macro.
40327         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
40328         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
40329         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
40330         knuth_morris_pratt_multibyte): Likewise.
40331         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
40332         knuth_morris_pratt_multibyte): Likewise.
40333         * lib/memmem.c (knuth_morris_pratt): Likewise.
40334         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
40335
40336 2007-12-25  Bruno Haible  <bruno@clisp.org>
40337
40338         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
40339         * lib/glob.c: Don't include openat.h.
40340         (link_exists2_p): Add back the code that deals with the
40341         !GLOB_ALTDIRFUNC case.
40342         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
40343         let it do the filename concatenation.
40344         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
40345         * modules/glob (Depends-on): Remove openat.
40346
40347 2007-12-31  Bruno Haible  <bruno@clisp.org>
40348
40349         * modules/dirfd (License): Change to LGPLv2+.
40350         Approved by Jim Meyering.
40351
40352 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40353
40354         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
40355         when multiplying M by sizeof (size_t).
40356
40357 2007-12-10  Martin Lambers  <marlam@marlam.de>
40358
40359         Override getpagesize on mingw.
40360         * lib/getpagesize.c: New file.
40361         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
40362         * modules/getpagesize (Files): Add lib/getpagesize.c.
40363         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
40364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40365         REPLACE_GETPAGESIZE.
40366         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
40367
40368 2007-12-25  Bruno Haible  <bruno@clisp.org>
40369
40370         * modules/localcharset (Notice): New field.
40371         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
40372         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40373
40374 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40375             Bruno Haible  <bruno@clisp.org>
40376
40377         Avoid using the syntax symbol() in formatted documentation.
40378         * MODULES.html.sh (func_module): When replacing symbol() with a
40379         hyperlink, remove the parentheses. Show an error if some remain.
40380         Recognize and render the '...' syntax.
40381         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
40382         Rework. Add paragraph about GCC's inlining.
40383         * doc/alloca.texi: Likewise.
40384         * doc/error.texi: Remove parentheses from symbol reference.
40385         * doc/gnulib-intro.texi: Likewise.
40386         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
40387         * modules/fnmatch (Description): Reword to say "the ... function".
40388         * modules/full-read (Description): Likewise.
40389         * modules/full-write (Description): Likewise.
40390         * modules/safe-read (Description): Likewise.
40391         * modules/safe-write (Description): Likewise.
40392         * modules/strchrnul (Description): Likewise.
40393         * modules/trim (Description): Likewise.
40394         * modules/error (Description): Remove parentheses from symbol
40395         references.
40396         * modules/verror (Description): Likewise.
40397         Reported by Karl Berry.
40398
40399 2007-12-25  Bruno Haible  <bruno@clisp.org>
40400
40401         Fixup after 2007-10-16 commit.
40402         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
40403
40404 2007-12-24  Bruno Haible  <bruno@clisp.org>
40405
40406         Make --enable-relocatable work with DESTDIR.
40407         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
40408         to compute installdir from destprog.
40409         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
40410         also set the RELOC_DESTDIR variable.
40411         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40412
40413 2007-12-24  Bruno Haible  <bruno@clisp.org>
40414
40415         Fix link error due to xalloc_die().
40416         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
40417         of xreadlink.
40418         * lib/relocwrapper.c: Update comments.
40419         * build-aux/install-reloc: Remove xreadlink.c from file list.
40420         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
40421         xreadlink.c.
40422         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40423
40424 2007-12-24  Bruno Haible  <bruno@clisp.org>
40425
40426         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
40427         * lib/setenv.h: Remove file.
40428         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
40429         lib/setenv.h.
40430         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40431         (Depends-on): Add stdlib.
40432         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40433         gl_FUNC_UNSETENV.
40434         (Include): Replace setenv.h with <stdlib.h>.
40435         * modules/unsetenv: New file.
40436         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40437         * lib/unsetenv.c: Include <stdlib.h> first.
40438         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40439         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40440         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40441         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
40442         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
40443         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
40445         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40446         * doc/functions/unsetenv.texi: Update.
40447         * modules/xsetenv (Depends-on): Add unsetenv.
40448         * modules/getdate (Depends-on): Likewise.
40449         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
40450         * lib/xsetenv.c: Don't include setenv.h.
40451         * lib/getdate.y: Likewise.
40452         * lib/relocwrapper.c: Likewise.
40453         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
40454         (Depends-on): Add stdlib.
40455         * NEWS: Mention the changes.
40456         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40457
40458 2007-12-23  Bruno Haible  <bruno@clisp.org>
40459
40460         * lib/memmem.c (memmem): Use lowercase variable names. Tab
40461         indentation.
40462
40463 2007-12-23  Bruno Haible  <bruno@clisp.org>
40464
40465         * lib/c-strcasestr.c: Add more comments.
40466         * lib/c-strstr.c: Likewise.
40467         * lib/mbscasestr.c: Likewise.
40468         * lib/mbsstr.c: Likewise.
40469         * lib/strcasestr.c: Likewise.
40470         * lib/memmem.c: Likewise.
40471
40472 2007-12-23  Bruno Haible  <bruno@clisp.org>
40473
40474         * tests/test-memmem.c: Include <string.h> first.
40475
40476 2007-12-22  Bruno Haible  <bruno@clisp.org>
40477
40478         * gnulib-tool (func_create_testdir): Change $auxdir while generating
40479         the contents of $testsbase.
40480         Reported by Ralf Wildenhues.
40481
40482 2007-12-22  Bruno Haible  <bruno@clisp.org>
40483
40484         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
40485         two variables local_ldadd_before, local_ldadd_last.
40486
40487 2007-12-20  Eric Blake  <ebb9@byu.net>
40488
40489         Work around circular library issue when cross-compiling.
40490         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
40491         that progname.o does not need to pull in rpl_memcmp.
40492
40493 2007-12-19  Eric Blake  <ebb9@byu.net>
40494
40495         Fix memmem to avoid O(n^2) worst-case complexity.
40496         * lib/memmem.c (knuth_morris_pratt): New function.
40497         (memmem): Use it if first few naive iterations fail.
40498         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
40499         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
40500         * modules/memchr (License): Likewise.
40501         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
40502         malloca.
40503         * tests/test-memmem.c: Rewrite, borrowing ideas from
40504         test-mbsstr1.c; the old version wouldn't even compile!
40505         * modules/memmem-tests: New file.
40506         * lib/string.in.h (rpl_memmem): Add declaration.
40507         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
40508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
40509         REPLACE_MEMMEM.
40510
40511 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40512
40513         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
40514         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
40515         before any system include files, and undef after them all.  This
40516         should fix a problem on VMS reported by John E. Malmberg in
40517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
40518
40519 2007-12-17  Eric Blake  <ebb9@byu.net>
40520
40521         Revert addition of verify, for BSD/OS.
40522         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
40523         can't handle large files, for the sake of obsolete platforms.
40524         * modules/fseeko (Depends-on): Remove verify.
40525         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
40526         * doc/functions/ftello.texi (ftello): Likewise.
40527         * doc/functions/fgetpos.texi (fgetpos): Likewise.
40528         Reported by Larry Jones.
40529
40530 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
40531
40532         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
40533         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
40534
40535 2007-12-17  Jim Meyering  <meyering@redhat.com>
40536
40537         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
40538         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
40539         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
40540         * modules/getcwd (Depends-on): Add openat.
40541         Reported by Petr Salinger.
40542
40543 2007-12-17  Bruno Haible  <bruno@clisp.org>
40544
40545         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
40546         avoid a segmentation fault of the configure test on x86_64 systems.
40547
40548 2007-12-15  Jim Meyering  <meyering@redhat.com>
40549
40550         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
40551
40552 2007-12-13  Eric Blake  <ebb9@byu.net>
40553
40554         Another fseek test.
40555         * tests/test-fseek.c (main): Also test ungetc handling.
40556         * tests/test-fseeko.c (main): Likewise.
40557         * modules/fseeko (Depends-on): Add verify.
40558         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
40559         large.
40560         Reported by Larry Jones.
40561
40562         Fix fseeko on mingw.
40563         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
40564         seek.
40565
40566         Beef up fseek tests.
40567         * tests/test-fseek.c (main): Also test eof handling.
40568         * tests/test-fseeko.c (main): Likewise.
40569         Reported by Larry Jones.
40570
40571 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
40572
40573         Fix fseeko on BSD-based platforms.
40574         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
40575         successful seek.
40576
40577 2007-12-12  Eric Blake  <ebb9@byu.net>
40578
40579         Allow circular dependency of separate libtests.a
40580         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
40581         when use_libtests.
40582
40583 2007-12-11  Eric Blake  <ebb9@byu.net>
40584
40585         Fix bug with -0.0L in previous patch.
40586         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
40587         * tests/test-isnan.c (main): Also test on zeroes.
40588         * tests/test-isnanf.c (main): Likewise.
40589         * tests/test-isnanl.h (main): Likewise.
40590
40591         Detect pseudo-denormals on x86 even when cross-compiling.
40592         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
40593         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
40594         invalid bit patterns that happen to satisfy ==.
40595
40596         Avoid link failures with separate libtests.a.
40597         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
40598         last, to satisfy circular dependencies.
40599
40600 2007-12-11  Eric Blake  <ebb9@byu.net>
40601         and Bruno Haible  <bruno@clisp.org>
40602
40603         Fix OpenBSD 4.0 <float.h> handling of long double.
40604         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
40605         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
40606         * doc/headers/float.texi (float.h): Document OpenBSD bug.
40607
40608 2007-12-11  Jim Meyering  <meyering@redhat.com>
40609
40610         * users.txt: Add libvirt.
40611
40612         Support versions of autoconf prior to 2.59c.
40613         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
40614         if it is not already defined.
40615
40616 2007-12-09  Bruno Haible  <bruno@clisp.org>
40617
40618         Let 'gnulib-tool --import' collect sources needed for the tests in
40619         tests/ rather than in lib/.
40620         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
40621         argument. If true, add rules to generate libtests.a, and put libtests.a
40622         into $(LDADD). Consider source files in subdirectories and set
40623         uses_subdirs.
40624         (func_emit_initmacro_start, func_emit_initmacro_end,
40625         func_emit_initmacro_done): Pass all arguments explicitly.
40626         (func_import): Determine two module lists main_modules,
40627         testsrelated_modules. Determine use_libtests. Determine two variables
40628         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
40629         instead of just sed_transform_lib_file. Determine two variables
40630         main_files and testsrelated_files. Compute 'files' as the union of
40631         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
40632         func_add_or_update. In the generated gnulib-comp.m4, collect the
40633         object files for tests/ in different variables than those for lib/.
40634         Substitute LIBTESTS_LIBDEPS.
40635         (func_create_testdir): Combine the uses_subdirs results from
40636         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
40637
40638 2007-12-09  Bruno Haible  <bruno@clisp.org>
40639
40640         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
40641         the build-aux directory.
40642
40643 2007-12-09  Bruno Haible  <bruno@clisp.org>
40644
40645         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40646         introduced on 2006-09-09.
40647
40648 2007-12-07  Jim Meyering  <meyering@redhat.com>
40649
40650         Let these macros work also with autoconf-2.59.
40651         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40652         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40653         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40654
40655 2007-12-06  Jim Meyering  <meyering@redhat.com>
40656
40657         Avoid a configure-time syntax error in gl_FUNC_ACL.
40658         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40659         function in each branch, before testing the cache variable.
40660
40661 2007-12-04  Eric Blake  <ebb9@byu.net>
40662
40663         Make scripts executable.
40664         * build-aux/config.guess: Add execute permissions.
40665         * build-aux/config.sub: Likewise.
40666         * build-aux/gendocs.sh: Likewise.
40667
40668         Fix frexp on mingw.
40669         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
40670         cross-compiling.
40671         * doc/functions/frexp.texi (frexp): Document the bug.
40672
40673         Make cygwin fseeko check more reliable.
40674         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
40675         version numbers, rather than unrelated feature check.
40676         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
40677         * doc/functions/ftello.texi (ftello): Likewise.
40678         Reported by Bruno Haible.
40679
40680         * m4/strerror.m4: Bump version number.
40681
40682 2007-12-03  Bruno Haible  <bruno@clisp.org>
40683
40684         * doc/functions/mprotect.texi: Mention the mingw problem.
40685
40686 2007-12-03  Eric Blake  <ebb9@byu.net>
40687
40688         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
40689         REPLACE_STRERROR is initialized before this macro.
40690
40691 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40692
40693         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40694         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
40695         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
40696         put -lsec in even for programs other than 'ls'.  This fixes a problem
40697         for gettext reported by Bruno Haible in
40698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
40699         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
40700         Add support for Solaris 10.  This isn't efficient, but should get the
40701         job done for now.
40702
40703 2007-12-03  James Youngman  <jay@gnu.org>
40704
40705         * doc/regexprops-generic.texi: change "an close-group" to "a
40706         close-group" and "illegal" to "not allowed".
40707
40708 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40709
40710         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
40711         pr_byname.h. Needed for the rare case when the maintainer has done
40712         "make maintainer-clean" in the source directory and then attempts a
40713         build outside the source directory.
40714         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
40715         scripts_byname.h.
40716
40717 2007-12-02  Martin Lambers <marlam@marlam.de>
40718             Bruno Haible  <bruno@clisp.org>
40719
40720         * lib/getpagesize.h: Remove file.
40721         * lib/unistd.in.h: Include declaration of getpagesize here.
40722         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
40723         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
40724         HAVE_SYS_PARAM_H.
40725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
40726         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40727         * modules/getpagesize (Files): Remove lib/getpagesize.h.
40728         (Depends-on): Add unistd.
40729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40730         (Include): Use <unistd.h> instead of getpagesize.h.
40731         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
40732         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40733         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
40734         gl_GETPAGESIZE invocation, already handled by module dependency.
40735         * lib/pagealign_alloc.c: Don't include getpagesize.h.
40736
40737 2007-12-02  Bruno Haible  <bruno@clisp.org>
40738
40739         * modules/strings-tests: New file.
40740         * tests/test-strings.c: New file.
40741
40742         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
40743         * lib/strings.in.h: New file.
40744         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
40745         * m4/strings_h.m4: New file.
40746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
40747         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
40748         * modules/strings: New file.
40749         * modules/string (Makefile.am): Update.
40750         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
40751         Reported by Karl Berry.
40752
40753 2007-12-01  Eric Blake  <ebb9@byu.net>
40754
40755         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
40756         accomodate fix in cygwin 1.5.25.
40757
40758 2007-12-01  Jim Meyering  <meyering@redhat.com>
40759
40760         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
40761         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
40762         that would inhibit utf8-optimization of a regexp containing line-
40763         or buffer-anchors, e.g., `^', `$'.
40764
40765 2007-11-30  Bruno Haible  <bruno@clisp.org>
40766
40767         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
40768         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
40769         glthread_recursive_lock_init.
40770         * lib/lock.c (glthread_recursive_lock_init)
40771         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
40772         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40773
40774 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
40775
40776         New function qset_acl, like set_acl but with syscall semantics.
40777         * lib/acl.h (qset_acl): New decl.
40778         * lib/acl.c (qset_acl): New function.
40779         (set_acl): Use new function.  Use more-consistent diagnostics.
40780
40781 2007-11-28  Jim Meyering  <meyering@redhat.com>
40782
40783         * modules/physmem (License): Change from GPL to LGPLv2+.
40784
40785 2007-11-26  Bruno Haible  <bruno@clisp.org>
40786
40787         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40788         'long double' type has excess precision.
40789         Reported by Jim Meyering in
40790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40791
40792 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40793
40794         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40795         Sync from <http://gnu.org/licenses>.
40796         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40797         with license text from same location.
40798         * doc/maintain.texi, doc/standards.texi:  Sync from
40799         <http://savannah.gnu.org/projects/gnustandards>.
40800
40801 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
40802         and Jim Meyering  <meyering@redhat.com>
40803
40804         Adjust getdate' grammar to accept a slightly more regular language.
40805         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40806         Before, the former was rejected.
40807         * lib/getdate.y (digits_to_date_time): New function, factored
40808         out of ...
40809         (number): ...here.  Just call digits_to_date_time.
40810         (hybrid): New non-terminal to handle an <unsigned number,
40811         signed relative offset> sequence consistently.
40812
40813 2007-11-18  Jim Meyering  <meyering@redhat.com>
40814
40815         Pull my changes from coreutils:
40816         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
40817         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
40818         use of $gnulib_tool_option_extras, so that it's separated from the
40819         preceding argument.
40820
40821         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
40822         * build-aux/bootstrap (cp_mark_as_generated): Create any required
40823         parent destination directories before copying a file into place.
40824
40825 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40826
40827         bootstrap: work also with 4-argument variant of AC_INIT
40828         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
40829
40830 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40831
40832         Port test-getaddrinfo to Solaris.
40833         Problem reported by Bruno Haible in
40834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
40835         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
40836         explanation of setting 'hints'.
40837         Don't reject an implementation merely because it returns EAI_SERVICE.
40838         (EAI_SERVICE): Define to 0 if not defined.
40839
40840 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40841
40842         The license of gnu-make and posix-shell is now "GPLed build tool".
40843         * modules/gnu-make (License): Likewise.
40844         * modules/posix-shell (License): Likewise.
40845
40846         New module posix-shell, for determining a POSIX shell
40847         or perhaps something that is close enough to a POSIX shell.
40848         * m4/posix-shell.m4: New file.
40849         * modules/posix-shell: New file.
40850
40851         * MODULES.html.sh: Mention new module.
40852
40853         New module gnu-make, for determining whether we're using GNU Make.
40854         * m4/gnu-make.m4: New file.
40855         * modules/gnu-make: New file.
40856         * MODULES.html.sh: Mention new module.
40857
40858 2007-11-14  Jim Meyering  <meyering@redhat.com>
40859
40860         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
40861         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
40862         use this macro to create a function _definition_.
40863         Remove useless "#undef ARGMATCH_DIE".
40864
40865 2007-11-14  Bruno Haible  <bruno@clisp.org>
40866
40867         * lib/config.charset: Update for OpenBSD 4.1.
40868         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
40869
40870 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
40871
40872         Document 64-bit #if problems in stdint.texi.
40873         * doc/headers/stdint.texi (stdint.h): Mention problems with
40874         64-bit-#if, and how to work around them.
40875
40876         Don't insist on 'long long int' support in the preprocessor.  It
40877         breaks too many things.  For example, PRIdMAX still uses a 'long
40878         long int' format with the latest Sun compiler, even though
40879         HAVE_LONG_LONG_INT isn't defined due to that compiler's
40880         preprocessor problem.  This causes the latest coreutils to dump
40881         core on Solaris 10 sparc with the Sun C compiler.
40882         Instead, fix the 2007-10-16 problem in a different way, by evaluating
40883         the troublesome expressions at configure-time, not at #if-time.
40884         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
40885         preprocessor.
40886         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
40887         compile-time C checks, done at 'configure'-time.
40888         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
40889         * modules/inttypes (Makefile): Substitute the new symbols that
40890         gl_INTTYPES_H now generates.
40891         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
40892
40893 2007-11-12  Bruno Haible  <bruno@clisp.org>
40894
40895         Tests for Unicode character classification functions.
40896
40897         * modules/unictype/bidicategory-byname-tests: New file.
40898         * modules/unictype/bidicategory-name-tests: New file.
40899         * modules/unictype/bidicategory-of-tests: New file.
40900         * modules/unictype/bidicategory-test-tests: New file.
40901         * modules/unictype/block-list-tests: New file.
40902         * modules/unictype/block-of-tests: New file.
40903         * modules/unictype/block-test-tests: New file.
40904         * modules/unictype/category-C-tests: New file.
40905         * modules/unictype/category-Cc-tests: New file.
40906         * modules/unictype/category-Cf-tests: New file.
40907         * modules/unictype/category-Cn-tests: New file.
40908         * modules/unictype/category-Co-tests: New file.
40909         * modules/unictype/category-Cs-tests: New file.
40910         * modules/unictype/category-L-tests: New file.
40911         * modules/unictype/category-Ll-tests: New file.
40912         * modules/unictype/category-Lm-tests: New file.
40913         * modules/unictype/category-Lo-tests: New file.
40914         * modules/unictype/category-Lt-tests: New file.
40915         * modules/unictype/category-Lu-tests: New file.
40916         * modules/unictype/category-M-tests: New file.
40917         * modules/unictype/category-Mc-tests: New file.
40918         * modules/unictype/category-Me-tests: New file.
40919         * modules/unictype/category-Mn-tests: New file.
40920         * modules/unictype/category-N-tests: New file.
40921         * modules/unictype/category-Nd-tests: New file.
40922         * modules/unictype/category-Nl-tests: New file.
40923         * modules/unictype/category-No-tests: New file.
40924         * modules/unictype/category-P-tests: New file.
40925         * modules/unictype/category-Pc-tests: New file.
40926         * modules/unictype/category-Pd-tests: New file.
40927         * modules/unictype/category-Pe-tests: New file.
40928         * modules/unictype/category-Pf-tests: New file.
40929         * modules/unictype/category-Pi-tests: New file.
40930         * modules/unictype/category-Po-tests: New file.
40931         * modules/unictype/category-Ps-tests: New file.
40932         * modules/unictype/category-S-tests: New file.
40933         * modules/unictype/category-Sc-tests: New file.
40934         * modules/unictype/category-Sk-tests: New file.
40935         * modules/unictype/category-Sm-tests: New file.
40936         * modules/unictype/category-So-tests: New file.
40937         * modules/unictype/category-Z-tests: New file.
40938         * modules/unictype/category-Zl-tests: New file.
40939         * modules/unictype/category-Zp-tests: New file.
40940         * modules/unictype/category-Zs-tests: New file.
40941         * modules/unictype/category-and-not-tests: New file.
40942         * modules/unictype/category-and-tests: New file.
40943         * modules/unictype/category-byname-tests: New file.
40944         * modules/unictype/category-name-tests: New file.
40945         * modules/unictype/category-none-tests: New file.
40946         * modules/unictype/category-of-tests: New file.
40947         * modules/unictype/category-or-tests: New file.
40948         * modules/unictype/category-test-withtable-tests: New file.
40949         * modules/unictype/combining-class-tests: New file.
40950         * modules/unictype/ctype-alnum-tests: New file.
40951         * modules/unictype/ctype-alpha-tests: New file.
40952         * modules/unictype/ctype-blank-tests: New file.
40953         * modules/unictype/ctype-cntrl-tests: New file.
40954         * modules/unictype/ctype-digit-tests: New file.
40955         * modules/unictype/ctype-graph-tests: New file.
40956         * modules/unictype/ctype-lower-tests: New file.
40957         * modules/unictype/ctype-print-tests: New file.
40958         * modules/unictype/ctype-punct-tests: New file.
40959         * modules/unictype/ctype-space-tests: New file.
40960         * modules/unictype/ctype-upper-tests: New file.
40961         * modules/unictype/ctype-xdigit-tests: New file.
40962         * modules/unictype/decimal-digit-tests: New file.
40963         * modules/unictype/digit-tests: New file.
40964         * modules/unictype/mirror-tests: New file.
40965         * modules/unictype/numeric-tests: New file.
40966         * modules/unictype/property-alphabetic-tests: New file.
40967         * modules/unictype/property-ascii-hex-digit-tests: New file.
40968         * modules/unictype/property-bidi-arabic-digit-tests: New file.
40969         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
40970         * modules/unictype/property-bidi-block-separator-tests: New file.
40971         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
40972         * modules/unictype/property-bidi-common-separator-tests: New file.
40973         * modules/unictype/property-bidi-control-tests: New file.
40974         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
40975         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
40976         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
40977         * modules/unictype/property-bidi-european-digit-tests: New file.
40978         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
40979         * modules/unictype/property-bidi-left-to-right-tests: New file.
40980         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
40981         * modules/unictype/property-bidi-other-neutral-tests: New file.
40982         * modules/unictype/property-bidi-pdf-tests: New file.
40983         * modules/unictype/property-bidi-segment-separator-tests: New file.
40984         * modules/unictype/property-bidi-whitespace-tests: New file.
40985         * modules/unictype/property-byname-tests: New file.
40986         * modules/unictype/property-combining-tests: New file.
40987         * modules/unictype/property-composite-tests: New file.
40988         * modules/unictype/property-currency-symbol-tests: New file.
40989         * modules/unictype/property-dash-tests: New file.
40990         * modules/unictype/property-decimal-digit-tests: New file.
40991         * modules/unictype/property-default-ignorable-code-point-tests: New file.
40992         * modules/unictype/property-deprecated-tests: New file.
40993         * modules/unictype/property-diacritic-tests: New file.
40994         * modules/unictype/property-extender-tests: New file.
40995         * modules/unictype/property-format-control-tests: New file.
40996         * modules/unictype/property-grapheme-base-tests: New file.
40997         * modules/unictype/property-grapheme-extend-tests: New file.
40998         * modules/unictype/property-grapheme-link-tests: New file.
40999         * modules/unictype/property-hex-digit-tests: New file.
41000         * modules/unictype/property-hyphen-tests: New file.
41001         * modules/unictype/property-id-continue-tests: New file.
41002         * modules/unictype/property-id-start-tests: New file.
41003         * modules/unictype/property-ideographic-tests: New file.
41004         * modules/unictype/property-ids-binary-operator-tests: New file.
41005         * modules/unictype/property-ids-trinary-operator-tests: New file.
41006         * modules/unictype/property-ignorable-control-tests: New file.
41007         * modules/unictype/property-iso-control-tests: New file.
41008         * modules/unictype/property-join-control-tests: New file.
41009         * modules/unictype/property-left-of-pair-tests: New file.
41010         * modules/unictype/property-line-separator-tests: New file.
41011         * modules/unictype/property-logical-order-exception-tests: New file.
41012         * modules/unictype/property-lowercase-tests: New file.
41013         * modules/unictype/property-math-tests: New file.
41014         * modules/unictype/property-non-break-tests: New file.
41015         * modules/unictype/property-not-a-character-tests: New file.
41016         * modules/unictype/property-numeric-tests: New file.
41017         * modules/unictype/property-other-alphabetic-tests: New file.
41018         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41019         * modules/unictype/property-other-grapheme-extend-tests: New file.
41020         * modules/unictype/property-other-id-continue-tests: New file.
41021         * modules/unictype/property-other-id-start-tests: New file.
41022         * modules/unictype/property-other-lowercase-tests: New file.
41023         * modules/unictype/property-other-math-tests: New file.
41024         * modules/unictype/property-other-uppercase-tests: New file.
41025         * modules/unictype/property-paired-punctuation-tests: New file.
41026         * modules/unictype/property-paragraph-separator-tests: New file.
41027         * modules/unictype/property-pattern-syntax-tests: New file.
41028         * modules/unictype/property-pattern-white-space-tests: New file.
41029         * modules/unictype/property-private-use-tests: New file.
41030         * modules/unictype/property-punctuation-tests: New file.
41031         * modules/unictype/property-quotation-mark-tests: New file.
41032         * modules/unictype/property-radical-tests: New file.
41033         * modules/unictype/property-sentence-terminal-tests: New file.
41034         * modules/unictype/property-soft-dotted-tests: New file.
41035         * modules/unictype/property-space-tests: New file.
41036         * modules/unictype/property-terminal-punctuation-tests: New file.
41037         * modules/unictype/property-test-tests: New file.
41038         * modules/unictype/property-titlecase-tests: New file.
41039         * modules/unictype/property-unassigned-code-value-tests: New file.
41040         * modules/unictype/property-unified-ideograph-tests: New file.
41041         * modules/unictype/property-uppercase-tests: New file.
41042         * modules/unictype/property-variation-selector-tests: New file.
41043         * modules/unictype/property-white-space-tests: New file.
41044         * modules/unictype/property-xid-continue-tests: New file.
41045         * modules/unictype/property-xid-start-tests: New file.
41046         * modules/unictype/property-zero-width-tests: New file.
41047         * modules/unictype/scripts-tests: New file.
41048         * modules/unictype/syntax-c-ident-tests: New file.
41049         * modules/unictype/syntax-c-whitespace-tests: New file.
41050         * modules/unictype/syntax-java-ident-tests: New file.
41051         * modules/unictype/syntax-java-whitespace-tests: New file.
41052         * tests/unictype/test-bidi_byname.c: New file.
41053         * tests/unictype/test-bidi_name.c: New file.
41054         * tests/unictype/test-bidi_of.c: New file.
41055         * tests/unictype/test-bidi_test.c: New file.
41056         * tests/unictype/test-block_list.c: New file.
41057         * tests/unictype/test-block_of.c: New file.
41058         * tests/unictype/test-block_test.c: New file.
41059         * tests/unictype/test-categ_and.c: New file.
41060         * tests/unictype/test-categ_and_not.c: New file.
41061         * tests/unictype/test-categ_byname.c: New file.
41062         * tests/unictype/test-categ_name.c: New file.
41063         * tests/unictype/test-categ_none.c: New file.
41064         * tests/unictype/test-categ_of.c: New file.
41065         * tests/unictype/test-categ_or.c: New file.
41066         * tests/unictype/test-categ_test_withtable.c: New file.
41067         * tests/unictype/test-combining.c: New file.
41068         * tests/unictype/test-decdigit.c: New file.
41069         * tests/unictype/test-digit.c: New file.
41070         * tests/unictype/test-mirror.c: New file.
41071         * tests/unictype/test-numeric.c: New file.
41072         * tests/unictype/test-pr_byname.c: New file.
41073         * tests/unictype/test-pr_test.c: New file.
41074         * tests/unictype/test-predicate-part1.h: New file.
41075         * tests/unictype/test-predicate-part2.h: New file.
41076         * tests/unictype/test-scripts.c: New file.
41077         * tests/unictype/test-sy_c_ident.c: New file.
41078         * tests/unictype/test-sy_java_ident.c: New file.
41079
41080         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41081         for Unicode 5.0.0.
41082         * tests/unictype/test-categ_Cc.c: Likewise.
41083         * tests/unictype/test-categ_Cf.c: Likewise.
41084         * tests/unictype/test-categ_Cn.c: Likewise.
41085         * tests/unictype/test-categ_Co.c: Likewise.
41086         * tests/unictype/test-categ_Cs.c: Likewise.
41087         * tests/unictype/test-categ_L.c: Likewise.
41088         * tests/unictype/test-categ_Ll.c: Likewise.
41089         * tests/unictype/test-categ_Lm.c: Likewise.
41090         * tests/unictype/test-categ_Lo.c: Likewise.
41091         * tests/unictype/test-categ_Lt.c: Likewise.
41092         * tests/unictype/test-categ_Lu.c: Likewise.
41093         * tests/unictype/test-categ_M.c: Likewise.
41094         * tests/unictype/test-categ_Mc.c: Likewise.
41095         * tests/unictype/test-categ_Me.c: Likewise.
41096         * tests/unictype/test-categ_Mn.c: Likewise.
41097         * tests/unictype/test-categ_N.c: Likewise.
41098         * tests/unictype/test-categ_Nd.c: Likewise.
41099         * tests/unictype/test-categ_Nl.c: Likewise.
41100         * tests/unictype/test-categ_No.c: Likewise.
41101         * tests/unictype/test-categ_P.c: Likewise.
41102         * tests/unictype/test-categ_Pc.c: Likewise.
41103         * tests/unictype/test-categ_Pd.c: Likewise.
41104         * tests/unictype/test-categ_Pe.c: Likewise.
41105         * tests/unictype/test-categ_Pf.c: Likewise.
41106         * tests/unictype/test-categ_Pi.c: Likewise.
41107         * tests/unictype/test-categ_Po.c: Likewise.
41108         * tests/unictype/test-categ_Ps.c: Likewise.
41109         * tests/unictype/test-categ_S.c: Likewise.
41110         * tests/unictype/test-categ_Sc.c: Likewise.
41111         * tests/unictype/test-categ_Sk.c: Likewise.
41112         * tests/unictype/test-categ_Sm.c: Likewise.
41113         * tests/unictype/test-categ_So.c: Likewise.
41114         * tests/unictype/test-categ_Z.c: Likewise.
41115         * tests/unictype/test-categ_Zl.c: Likewise.
41116         * tests/unictype/test-categ_Zp.c: Likewise.
41117         * tests/unictype/test-categ_Zs.c: Likewise.
41118         * tests/unictype/test-ctype_alnum.c: Likewise.
41119         * tests/unictype/test-ctype_alpha.c: Likewise.
41120         * tests/unictype/test-ctype_blank.c: Likewise.
41121         * tests/unictype/test-ctype_cntrl.c: Likewise.
41122         * tests/unictype/test-ctype_digit.c: Likewise.
41123         * tests/unictype/test-ctype_graph.c: Likewise.
41124         * tests/unictype/test-ctype_lower.c: Likewise.
41125         * tests/unictype/test-ctype_print.c: Likewise.
41126         * tests/unictype/test-ctype_punct.c: Likewise.
41127         * tests/unictype/test-ctype_space.c: Likewise.
41128         * tests/unictype/test-ctype_upper.c: Likewise.
41129         * tests/unictype/test-ctype_xdigit.c: Likewise.
41130         * tests/unictype/test-decdigit.h: Likewise.
41131         * tests/unictype/test-digit.h: Likewise.
41132         * tests/unictype/test-numeric.h: Likewise.
41133         * tests/unictype/test-pr_alphabetic.c: Likewise.
41134         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41135         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41136         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41137         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41138         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41139         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41140         * tests/unictype/test-pr_bidi_control.c: Likewise.
41141         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41142         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41143         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41144         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41145         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41146         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41147         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41148         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41149         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41150         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41151         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41152         * tests/unictype/test-pr_combining.c: Likewise.
41153         * tests/unictype/test-pr_composite.c: Likewise.
41154         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41155         * tests/unictype/test-pr_dash.c: Likewise.
41156         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41157         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41158         * tests/unictype/test-pr_deprecated.c: Likewise.
41159         * tests/unictype/test-pr_diacritic.c: Likewise.
41160         * tests/unictype/test-pr_extender.c: Likewise.
41161         * tests/unictype/test-pr_format_control.c: Likewise.
41162         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41163         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41164         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41165         * tests/unictype/test-pr_hex_digit.c: Likewise.
41166         * tests/unictype/test-pr_hyphen.c: Likewise.
41167         * tests/unictype/test-pr_id_continue.c: Likewise.
41168         * tests/unictype/test-pr_id_start.c: Likewise.
41169         * tests/unictype/test-pr_ideographic.c: Likewise.
41170         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41171         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41172         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41173         * tests/unictype/test-pr_iso_control.c: Likewise.
41174         * tests/unictype/test-pr_join_control.c: Likewise.
41175         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41176         * tests/unictype/test-pr_line_separator.c: Likewise.
41177         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41178         * tests/unictype/test-pr_lowercase.c: Likewise.
41179         * tests/unictype/test-pr_math.c: Likewise.
41180         * tests/unictype/test-pr_non_break.c: Likewise.
41181         * tests/unictype/test-pr_not_a_character.c: Likewise.
41182         * tests/unictype/test-pr_numeric.c: Likewise.
41183         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41184         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
41185         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
41186         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41187         * tests/unictype/test-pr_other_id_start.c: Likewise.
41188         * tests/unictype/test-pr_other_lowercase.c: Likewise.
41189         * tests/unictype/test-pr_other_math.c: Likewise.
41190         * tests/unictype/test-pr_other_uppercase.c: Likewise.
41191         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
41192         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
41193         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
41194         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
41195         * tests/unictype/test-pr_private_use.c: Likewise.
41196         * tests/unictype/test-pr_punctuation.c: Likewise.
41197         * tests/unictype/test-pr_quotation_mark.c: Likewise.
41198         * tests/unictype/test-pr_radical.c: Likewise.
41199         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41200         * tests/unictype/test-pr_soft_dotted.c: Likewise.
41201         * tests/unictype/test-pr_space.c: Likewise.
41202         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41203         * tests/unictype/test-pr_titlecase.c: Likewise.
41204         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41205         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41206         * tests/unictype/test-pr_uppercase.c: Likewise.
41207         * tests/unictype/test-pr_variation_selector.c: Likewise.
41208         * tests/unictype/test-pr_white_space.c: Likewise.
41209         * tests/unictype/test-pr_xid_continue.c: Likewise.
41210         * tests/unictype/test-pr_xid_start.c: Likewise.
41211         * tests/unictype/test-pr_zero_width.c: Likewise.
41212         * tests/unictype/test-sy_c_whitespace.c: Likewise.
41213         * tests/unictype/test-sy_java_whitespace.c: Likewise.
41214
41215 2007-11-12  Bruno Haible  <bruno@clisp.org>
41216
41217         Unicode character classification functions.
41218         * lib/unictype.h: New file.
41219         * modules/unictype/base: New file.
41220         * modules/unictype/category-L: New file.
41221         * modules/unictype/category-Lu: New file.
41222         * modules/unictype/category-Ll: New file.
41223         * modules/unictype/category-Lt: New file.
41224         * modules/unictype/category-Lm: New file.
41225         * modules/unictype/category-Lo: New file.
41226         * modules/unictype/category-M: New file.
41227         * modules/unictype/category-Mn: New file.
41228         * modules/unictype/category-Mc: New file.
41229         * modules/unictype/category-Me: New file.
41230         * modules/unictype/category-N: New file.
41231         * modules/unictype/category-Nd: New file.
41232         * modules/unictype/category-Nl: New file.
41233         * modules/unictype/category-No: New file.
41234         * modules/unictype/category-P: New file.
41235         * modules/unictype/category-Pc: New file.
41236         * modules/unictype/category-Pd: New file.
41237         * modules/unictype/category-Ps: New file.
41238         * modules/unictype/category-Pe: New file.
41239         * modules/unictype/category-Pi: New file.
41240         * modules/unictype/category-Pf: New file.
41241         * modules/unictype/category-Po: New file.
41242         * modules/unictype/category-S: New file.
41243         * modules/unictype/category-Sm: New file.
41244         * modules/unictype/category-Sc: New file.
41245         * modules/unictype/category-Sk: New file.
41246         * modules/unictype/category-So: New file.
41247         * modules/unictype/category-Z: New file.
41248         * modules/unictype/category-Zs: New file.
41249         * modules/unictype/category-Zl: New file.
41250         * modules/unictype/category-Zp: New file.
41251         * modules/unictype/category-C: New file.
41252         * modules/unictype/category-Cc: New file.
41253         * modules/unictype/category-Cf: New file.
41254         * modules/unictype/category-Cs: New file.
41255         * modules/unictype/category-Co: New file.
41256         * modules/unictype/category-Cn: New file.
41257         * modules/unictype/category-or: New file.
41258         * modules/unictype/category-of: New file.
41259         * modules/unictype/category-test: New file.
41260         * modules/unictype/category-test-withtable: New file.
41261         * modules/unictype/category-byname: New file.
41262         * modules/unictype/category-none: New file.
41263         * modules/unictype/category-and: New file.
41264         * modules/unictype/category-and-not: New file.
41265         * modules/unictype/category-name: New file.
41266         * modules/unictype/combining-class: New file.
41267         * modules/unictype/category-all: New file.
41268         * modules/unictype/bidicategory-all: New file.
41269         * modules/unictype/bidicategory-byname: New file.
41270         * modules/unictype/bidicategory-name: New file.
41271         * modules/unictype/bidicategory-of: New file.
41272         * modules/unictype/bidicategory-test: New file.
41273         * modules/unictype/decimal-digit: New file.
41274         * modules/unictype/digit: New file.
41275         * modules/unictype/numeric: New file.
41276         * modules/unictype/mirror: New file.
41277         * modules/unictype/property-white-space: New file.
41278         * modules/unictype/property-alphabetic: New file.
41279         * modules/unictype/property-other-alphabetic: New file.
41280         * modules/unictype/property-not-a-character: New file.
41281         * modules/unictype/property-default-ignorable-code-point: New file.
41282         * modules/unictype/property-other-default-ignorable-code-point: New
41283         file.
41284         * modules/unictype/property-deprecated: New file.
41285         * modules/unictype/property-logical-order-exception: New file.
41286         * modules/unictype/property-variation-selector: New file.
41287         * modules/unictype/property-private-use: New file.
41288         * modules/unictype/property-unassigned-code-value: New file.
41289         * modules/unictype/property-uppercase: New file.
41290         * modules/unictype/property-other-uppercase: New file.
41291         * modules/unictype/property-lowercase: New file.
41292         * modules/unictype/property-other-lowercase: New file.
41293         * modules/unictype/property-titlecase: New file.
41294         * modules/unictype/property-soft-dotted: New file.
41295         * modules/unictype/property-id-start: New file.
41296         * modules/unictype/property-other-id-start: New file.
41297         * modules/unictype/property-id-continue: New file.
41298         * modules/unictype/property-other-id-continue: New file.
41299         * modules/unictype/property-xid-start: New file.
41300         * modules/unictype/property-xid-continue: New file.
41301         * modules/unictype/property-pattern-white-space: New file.
41302         * modules/unictype/property-pattern-syntax: New file.
41303         * modules/unictype/property-join-control: New file.
41304         * modules/unictype/property-grapheme-base: New file.
41305         * modules/unictype/property-grapheme-extend: New file.
41306         * modules/unictype/property-other-grapheme-extend: New file.
41307         * modules/unictype/property-grapheme-link: New file.
41308         * modules/unictype/property-bidi-control: New file.
41309         * modules/unictype/property-bidi-left-to-right: New file.
41310         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
41311         * modules/unictype/property-bidi-arabic-right-to-left: New file.
41312         * modules/unictype/property-bidi-european-digit: New file.
41313         * modules/unictype/property-bidi-eur-num-separator: New file.
41314         * modules/unictype/property-bidi-eur-num-terminator: New file.
41315         * modules/unictype/property-bidi-arabic-digit: New file.
41316         * modules/unictype/property-bidi-common-separator: New file.
41317         * modules/unictype/property-bidi-block-separator: New file.
41318         * modules/unictype/property-bidi-segment-separator: New file.
41319         * modules/unictype/property-bidi-whitespace: New file.
41320         * modules/unictype/property-bidi-non-spacing-mark: New file.
41321         * modules/unictype/property-bidi-boundary-neutral: New file.
41322         * modules/unictype/property-bidi-pdf: New file.
41323         * modules/unictype/property-bidi-embedding-or-override: New file.
41324         * modules/unictype/property-bidi-other-neutral: New file.
41325         * modules/unictype/property-hex-digit: New file.
41326         * modules/unictype/property-ascii-hex-digit: New file.
41327         * modules/unictype/property-ideographic: New file.
41328         * modules/unictype/property-unified-ideograph: New file.
41329         * modules/unictype/property-radical: New file.
41330         * modules/unictype/property-ids-binary-operator: New file.
41331         * modules/unictype/property-ids-trinary-operator: New file.
41332         * modules/unictype/property-zero-width: New file.
41333         * modules/unictype/property-space: New file.
41334         * modules/unictype/property-non-break: New file.
41335         * modules/unictype/property-iso-control: New file.
41336         * modules/unictype/property-format-control: New file.
41337         * modules/unictype/property-dash: New file.
41338         * modules/unictype/property-hyphen: New file.
41339         * modules/unictype/property-punctuation: New file.
41340         * modules/unictype/property-line-separator: New file.
41341         * modules/unictype/property-paragraph-separator: New file.
41342         * modules/unictype/property-quotation-mark: New file.
41343         * modules/unictype/property-sentence-terminal: New file.
41344         * modules/unictype/property-terminal-punctuation: New file.
41345         * modules/unictype/property-currency-symbol: New file.
41346         * modules/unictype/property-math: New file.
41347         * modules/unictype/property-other-math: New file.
41348         * modules/unictype/property-paired-punctuation: New file.
41349         * modules/unictype/property-left-of-pair: New file.
41350         * modules/unictype/property-combining: New file.
41351         * modules/unictype/property-composite: New file.
41352         * modules/unictype/property-decimal-digit: New file.
41353         * modules/unictype/property-numeric: New file.
41354         * modules/unictype/property-diacritic: New file.
41355         * modules/unictype/property-extender: New file.
41356         * modules/unictype/property-ignorable-control: New file.
41357         * modules/unictype/property-test: New file.
41358         * modules/unictype/property-byname: New file.
41359         * modules/unictype/property-all: New file.
41360         * modules/unictype/scripts: New file.
41361         * modules/unictype/scripts-all: New file.
41362         * modules/unictype/block-of: New file.
41363         * modules/unictype/block-test: New file.
41364         * modules/unictype/block-list: New file.
41365         * modules/unictype/block-all: New file.
41366         * modules/unictype/syntax-c-whitespace: New file.
41367         * modules/unictype/syntax-java-whitespace: New file.
41368         * modules/unictype/syntax-c-ident: New file.
41369         * modules/unictype/syntax-java-ident: New file.
41370         * modules/unictype/ctype-alnum: New file.
41371         * modules/unictype/ctype-alpha: New file.
41372         * modules/unictype/ctype-cntrl: New file.
41373         * modules/unictype/ctype-digit: New file.
41374         * modules/unictype/ctype-graph: New file.
41375         * modules/unictype/ctype-lower: New file.
41376         * modules/unictype/ctype-print: New file.
41377         * modules/unictype/ctype-punct: New file.
41378         * modules/unictype/ctype-space: New file.
41379         * modules/unictype/ctype-upper: New file.
41380         * modules/unictype/ctype-xdigit: New file.
41381         * modules/unictype/ctype-blank: New file.
41382         * lib/unictype/bidi_byname.c: New file.
41383         * lib/unictype/bidi_name.c: New file.
41384         * lib/unictype/bidi_of.c: New file.
41385         * lib/unictype/bidi_test.c: New file.
41386         * lib/unictype/bitmap.h: New file.
41387         * lib/unictype/block_test.c: New file.
41388         * lib/unictype/blocks.c: New file.
41389         * lib/unictype/categ_C.c: New file.
41390         * lib/unictype/categ_Cc.c: New file.
41391         * lib/unictype/categ_Cf.c: New file.
41392         * lib/unictype/categ_Cn.c: New file.
41393         * lib/unictype/categ_Co.c: New file.
41394         * lib/unictype/categ_Cs.c: New file.
41395         * lib/unictype/categ_L.c: New file.
41396         * lib/unictype/categ_Ll.c: New file.
41397         * lib/unictype/categ_Lm.c: New file.
41398         * lib/unictype/categ_Lo.c: New file.
41399         * lib/unictype/categ_Lt.c: New file.
41400         * lib/unictype/categ_Lu.c: New file.
41401         * lib/unictype/categ_M.c: New file.
41402         * lib/unictype/categ_Mc.c: New file.
41403         * lib/unictype/categ_Me.c: New file.
41404         * lib/unictype/categ_Mn.c: New file.
41405         * lib/unictype/categ_N.c: New file.
41406         * lib/unictype/categ_Nd.c: New file.
41407         * lib/unictype/categ_Nl.c: New file.
41408         * lib/unictype/categ_No.c: New file.
41409         * lib/unictype/categ_P.c: New file.
41410         * lib/unictype/categ_Pc.c: New file.
41411         * lib/unictype/categ_Pd.c: New file.
41412         * lib/unictype/categ_Pe.c: New file.
41413         * lib/unictype/categ_Pf.c: New file.
41414         * lib/unictype/categ_Pi.c: New file.
41415         * lib/unictype/categ_Po.c: New file.
41416         * lib/unictype/categ_Ps.c: New file.
41417         * lib/unictype/categ_S.c: New file.
41418         * lib/unictype/categ_Sc.c: New file.
41419         * lib/unictype/categ_Sk.c: New file.
41420         * lib/unictype/categ_Sm.c: New file.
41421         * lib/unictype/categ_So.c: New file.
41422         * lib/unictype/categ_Z.c: New file.
41423         * lib/unictype/categ_Zl.c: New file.
41424         * lib/unictype/categ_Zp.c: New file.
41425         * lib/unictype/categ_Zs.c: New file.
41426         * lib/unictype/categ_and.c: New file.
41427         * lib/unictype/categ_and_not.c: New file.
41428         * lib/unictype/categ_byname.c: New file.
41429         * lib/unictype/categ_name.c: New file.
41430         * lib/unictype/categ_none.c: New file.
41431         * lib/unictype/categ_of.c: New file.
41432         * lib/unictype/categ_or.c: New file.
41433         * lib/unictype/categ_test.c: New file.
41434         * lib/unictype/combining.c: New file.
41435         * lib/unictype/ctype_alnum.c: New file.
41436         * lib/unictype/ctype_alpha.c: New file.
41437         * lib/unictype/ctype_blank.c: New file.
41438         * lib/unictype/ctype_cntrl.c: New file.
41439         * lib/unictype/ctype_digit.c: New file.
41440         * lib/unictype/ctype_graph.c: New file.
41441         * lib/unictype/ctype_lower.c: New file.
41442         * lib/unictype/ctype_print.c: New file.
41443         * lib/unictype/ctype_punct.c: New file.
41444         * lib/unictype/ctype_space.c: New file.
41445         * lib/unictype/ctype_upper.c: New file.
41446         * lib/unictype/ctype_xdigit.c: New file.
41447         * lib/unictype/decdigit.c: New file.
41448         * lib/unictype/digit.c: New file.
41449         * lib/unictype/identsyntaxmap.h: New file.
41450         * lib/unictype/mirror.c: New file.
41451         * lib/unictype/numeric.c: New file.
41452         * lib/unictype/pr_alphabetic.c: New file.
41453         * lib/unictype/pr_ascii_hex_digit.c: New file.
41454         * lib/unictype/pr_bidi_arabic_digit.c: New file.
41455         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
41456         * lib/unictype/pr_bidi_block_separator.c: New file.
41457         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
41458         * lib/unictype/pr_bidi_common_separator.c: New file.
41459         * lib/unictype/pr_bidi_control.c: New file.
41460         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
41461         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
41462         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
41463         * lib/unictype/pr_bidi_european_digit.c: New file.
41464         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
41465         * lib/unictype/pr_bidi_left_to_right.c: New file.
41466         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
41467         * lib/unictype/pr_bidi_other_neutral.c: New file.
41468         * lib/unictype/pr_bidi_pdf.c: New file.
41469         * lib/unictype/pr_bidi_segment_separator.c: New file.
41470         * lib/unictype/pr_bidi_whitespace.c: New file.
41471         * lib/unictype/pr_byname.c: New file.
41472         * lib/unictype/pr_byname.gperf: New file.
41473         * lib/unictype/pr_combining.c: New file.
41474         * lib/unictype/pr_composite.c: New file.
41475         * lib/unictype/pr_currency_symbol.c: New file.
41476         * lib/unictype/pr_dash.c: New file.
41477         * lib/unictype/pr_decimal_digit.c: New file.
41478         * lib/unictype/pr_default_ignorable_code_point.c: New file.
41479         * lib/unictype/pr_deprecated.c: New file.
41480         * lib/unictype/pr_diacritic.c: New file.
41481         * lib/unictype/pr_extender.c: New file.
41482         * lib/unictype/pr_format_control.c: New file.
41483         * lib/unictype/pr_grapheme_base.c: New file.
41484         * lib/unictype/pr_grapheme_extend.c: New file.
41485         * lib/unictype/pr_grapheme_link.c: New file.
41486         * lib/unictype/pr_hex_digit.c: New file.
41487         * lib/unictype/pr_hyphen.c: New file.
41488         * lib/unictype/pr_id_continue.c: New file.
41489         * lib/unictype/pr_id_start.c: New file.
41490         * lib/unictype/pr_ideographic.c: New file.
41491         * lib/unictype/pr_ids_binary_operator.c: New file.
41492         * lib/unictype/pr_ids_trinary_operator.c: New file.
41493         * lib/unictype/pr_ignorable_control.c: New file.
41494         * lib/unictype/pr_iso_control.c: New file.
41495         * lib/unictype/pr_join_control.c: New file.
41496         * lib/unictype/pr_left_of_pair.c: New file.
41497         * lib/unictype/pr_line_separator.c: New file.
41498         * lib/unictype/pr_logical_order_exception.c: New file.
41499         * lib/unictype/pr_lowercase.c: New file.
41500         * lib/unictype/pr_math.c: New file.
41501         * lib/unictype/pr_non_break.c: New file.
41502         * lib/unictype/pr_not_a_character.c: New file.
41503         * lib/unictype/pr_numeric.c: New file.
41504         * lib/unictype/pr_other_alphabetic.c: New file.
41505         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
41506         * lib/unictype/pr_other_grapheme_extend.c: New file.
41507         * lib/unictype/pr_other_id_continue.c: New file.
41508         * lib/unictype/pr_other_id_start.c: New file.
41509         * lib/unictype/pr_other_lowercase.c: New file.
41510         * lib/unictype/pr_other_math.c: New file.
41511         * lib/unictype/pr_other_uppercase.c: New file.
41512         * lib/unictype/pr_paired_punctuation.c: New file.
41513         * lib/unictype/pr_paragraph_separator.c: New file.
41514         * lib/unictype/pr_pattern_syntax.c: New file.
41515         * lib/unictype/pr_pattern_white_space.c: New file.
41516         * lib/unictype/pr_private_use.c: New file.
41517         * lib/unictype/pr_punctuation.c: New file.
41518         * lib/unictype/pr_quotation_mark.c: New file.
41519         * lib/unictype/pr_radical.c: New file.
41520         * lib/unictype/pr_sentence_terminal.c: New file.
41521         * lib/unictype/pr_soft_dotted.c: New file.
41522         * lib/unictype/pr_space.c: New file.
41523         * lib/unictype/pr_terminal_punctuation.c: New file.
41524         * lib/unictype/pr_test.c: New file.
41525         * lib/unictype/pr_titlecase.c: New file.
41526         * lib/unictype/pr_unassigned_code_value.c: New file.
41527         * lib/unictype/pr_unified_ideograph.c: New file.
41528         * lib/unictype/pr_uppercase.c: New file.
41529         * lib/unictype/pr_variation_selector.c: New file.
41530         * lib/unictype/pr_white_space.c: New file.
41531         * lib/unictype/pr_xid_continue.c: New file.
41532         * lib/unictype/pr_xid_start.c: New file.
41533         * lib/unictype/pr_zero_width.c: New file.
41534         * lib/unictype/scripts.c: New file.
41535         * lib/unictype/sy_c_ident.c: New file.
41536         * lib/unictype/sy_c_whitespace.c: New file.
41537         * lib/unictype/sy_java_ident.c: New file.
41538         * lib/unictype/sy_java_whitespace.c: New file.
41539
41540         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
41541         Unicode 5.0.0.
41542         * lib/unictype/blocks.h: Likewise.
41543         * lib/unictype/categ_C.h: Likewise.
41544         * lib/unictype/categ_Cc.h: Likewise.
41545         * lib/unictype/categ_Cf.h: Likewise.
41546         * lib/unictype/categ_Cn.h: Likewise.
41547         * lib/unictype/categ_Co.h: Likewise.
41548         * lib/unictype/categ_Cs.h: Likewise.
41549         * lib/unictype/categ_L.h: Likewise.
41550         * lib/unictype/categ_Ll.h: Likewise.
41551         * lib/unictype/categ_Lm.h: Likewise.
41552         * lib/unictype/categ_Lo.h: Likewise.
41553         * lib/unictype/categ_Lt.h: Likewise.
41554         * lib/unictype/categ_Lu.h: Likewise.
41555         * lib/unictype/categ_M.h: Likewise.
41556         * lib/unictype/categ_Mc.h: Likewise.
41557         * lib/unictype/categ_Me.h: Likewise.
41558         * lib/unictype/categ_Mn.h: Likewise.
41559         * lib/unictype/categ_N.h: Likewise.
41560         * lib/unictype/categ_Nd.h: Likewise.
41561         * lib/unictype/categ_Nl.h: Likewise.
41562         * lib/unictype/categ_No.h: Likewise.
41563         * lib/unictype/categ_P.h: Likewise.
41564         * lib/unictype/categ_Pc.h: Likewise.
41565         * lib/unictype/categ_Pd.h: Likewise.
41566         * lib/unictype/categ_Pe.h: Likewise.
41567         * lib/unictype/categ_Pf.h: Likewise.
41568         * lib/unictype/categ_Pi.h: Likewise.
41569         * lib/unictype/categ_Po.h: Likewise.
41570         * lib/unictype/categ_Ps.h: Likewise.
41571         * lib/unictype/categ_S.h: Likewise.
41572         * lib/unictype/categ_Sc.h: Likewise.
41573         * lib/unictype/categ_Sk.h: Likewise.
41574         * lib/unictype/categ_Sm.h: Likewise.
41575         * lib/unictype/categ_So.h: Likewise.
41576         * lib/unictype/categ_Z.h: Likewise.
41577         * lib/unictype/categ_Zl.h: Likewise.
41578         * lib/unictype/categ_Zp.h: Likewise.
41579         * lib/unictype/categ_Zs.h: Likewise.
41580         * lib/unictype/categ_of.h: Likewise.
41581         * lib/unictype/combining.h: Likewise.
41582         * lib/unictype/ctype_alnum.h: Likewise.
41583         * lib/unictype/ctype_alpha.h: Likewise.
41584         * lib/unictype/ctype_blank.h: Likewise.
41585         * lib/unictype/ctype_cntrl.h: Likewise.
41586         * lib/unictype/ctype_digit.h: Likewise.
41587         * lib/unictype/ctype_graph.h: Likewise.
41588         * lib/unictype/ctype_lower.h: Likewise.
41589         * lib/unictype/ctype_print.h: Likewise.
41590         * lib/unictype/ctype_punct.h: Likewise.
41591         * lib/unictype/ctype_space.h: Likewise.
41592         * lib/unictype/ctype_upper.h: Likewise.
41593         * lib/unictype/ctype_xdigit.h: Likewise.
41594         * lib/unictype/decdigit.h: Likewise.
41595         * lib/unictype/digit.h: Likewise.
41596         * lib/unictype/mirror.h: Likewise.
41597         * lib/unictype/numeric.h: Likewise.
41598         * lib/unictype/pr_alphabetic.h: Likewise.
41599         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41600         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41601         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41602         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41603         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41604         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41605         * lib/unictype/pr_bidi_control.h: Likewise.
41606         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41607         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41608         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41609         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41610         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41611         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41612         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41613         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41614         * lib/unictype/pr_bidi_pdf.h: Likewise.
41615         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41616         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41617         * lib/unictype/pr_combining.h: Likewise.
41618         * lib/unictype/pr_composite.h: Likewise.
41619         * lib/unictype/pr_currency_symbol.h: Likewise.
41620         * lib/unictype/pr_dash.h: Likewise.
41621         * lib/unictype/pr_decimal_digit.h: Likewise.
41622         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41623         * lib/unictype/pr_deprecated.h: Likewise.
41624         * lib/unictype/pr_diacritic.h: Likewise.
41625         * lib/unictype/pr_extender.h: Likewise.
41626         * lib/unictype/pr_format_control.h: Likewise.
41627         * lib/unictype/pr_grapheme_base.h: Likewise.
41628         * lib/unictype/pr_grapheme_extend.h: Likewise.
41629         * lib/unictype/pr_grapheme_link.h: Likewise.
41630         * lib/unictype/pr_hex_digit.h: Likewise.
41631         * lib/unictype/pr_hyphen.h: Likewise.
41632         * lib/unictype/pr_id_continue.h: Likewise.
41633         * lib/unictype/pr_id_start.h: Likewise.
41634         * lib/unictype/pr_ideographic.h: Likewise.
41635         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41636         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41637         * lib/unictype/pr_ignorable_control.h: Likewise.
41638         * lib/unictype/pr_iso_control.h: Likewise.
41639         * lib/unictype/pr_join_control.h: Likewise.
41640         * lib/unictype/pr_left_of_pair.h: Likewise.
41641         * lib/unictype/pr_line_separator.h: Likewise.
41642         * lib/unictype/pr_logical_order_exception.h: Likewise.
41643         * lib/unictype/pr_lowercase.h: Likewise.
41644         * lib/unictype/pr_math.h: Likewise.
41645         * lib/unictype/pr_non_break.h: Likewise.
41646         * lib/unictype/pr_not_a_character.h: Likewise.
41647         * lib/unictype/pr_numeric.h: Likewise.
41648         * lib/unictype/pr_other_alphabetic.h: Likewise.
41649         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41650         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41651         * lib/unictype/pr_other_id_continue.h: Likewise.
41652         * lib/unictype/pr_other_id_start.h: Likewise.
41653         * lib/unictype/pr_other_lowercase.h: Likewise.
41654         * lib/unictype/pr_other_math.h: Likewise.
41655         * lib/unictype/pr_other_uppercase.h: Likewise.
41656         * lib/unictype/pr_paired_punctuation.h: Likewise.
41657         * lib/unictype/pr_paragraph_separator.h: Likewise.
41658         * lib/unictype/pr_pattern_syntax.h: Likewise.
41659         * lib/unictype/pr_pattern_white_space.h: Likewise.
41660         * lib/unictype/pr_private_use.h: Likewise.
41661         * lib/unictype/pr_punctuation.h: Likewise.
41662         * lib/unictype/pr_quotation_mark.h: Likewise.
41663         * lib/unictype/pr_radical.h: Likewise.
41664         * lib/unictype/pr_sentence_terminal.h: Likewise.
41665         * lib/unictype/pr_soft_dotted.h: Likewise.
41666         * lib/unictype/pr_space.h: Likewise.
41667         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41668         * lib/unictype/pr_titlecase.h: Likewise.
41669         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41670         * lib/unictype/pr_unified_ideograph.h: Likewise.
41671         * lib/unictype/pr_uppercase.h: Likewise.
41672         * lib/unictype/pr_variation_selector.h: Likewise.
41673         * lib/unictype/pr_white_space.h: Likewise.
41674         * lib/unictype/pr_xid_continue.h: Likewise.
41675         * lib/unictype/pr_xid_start.h: Likewise.
41676         * lib/unictype/pr_zero_width.h: Likewise.
41677         * lib/unictype/scripts.h: Likewise.
41678         * lib/unictype/scripts_byname.gperf: Likewise.
41679         * lib/unictype/sy_c_ident.h: Likewise.
41680         * lib/unictype/sy_c_whitespace.h: Likewise.
41681         * lib/unictype/sy_java_ident.h: Likewise.
41682         * lib/unictype/sy_java_whitespace.h: Likewise.
41683
41684         * lib/unictype/Makefile: New file.
41685         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
41686         glibc.
41687         * lib/unictype/3level.h: New file, copied from glibc.
41688         * lib/unictype/3levelbit.h: New file.
41689
41690 2007-11-11  Bruno Haible  <bruno@clisp.org>
41691
41692         * modules/gperf: New file.
41693         * modules/iconv_open (Depends-on): Add it.
41694         (Makefile.am): Remove the GPERF definition.
41695
41696 2007-11-11  Bruno Haible  <bruno@clisp.org>
41697
41698         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
41699         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
41700
41701 2007-11-11  Bruno Haible  <bruno@clisp.org>
41702
41703         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
41704         (usage): Remove function.
41705
41706 2007-11-11  Bruno Haible  <bruno@clisp.org>
41707
41708         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
41709         gl_FUNC_CEILF_LIBS.
41710         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
41711         gl_FUNC_CEIL_LIBS.
41712         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
41713         gl_FUNC_CEILL_LIBS.
41714         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
41715         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
41716         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
41717
41718 2007-11-11  Bruno Haible  <bruno@clisp.org>
41719
41720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
41721         roundf were declared but do not exist on functions.
41722         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
41723         roundl were declared but do not exist on functions.
41724         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
41725         HAVE_FLOORL_AND_CEILL, respectively.
41726         Needed for Sun C on Solaris 10.
41727
41728 2007-11-11  Bruno Haible  <bruno@clisp.org>
41729
41730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
41731         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
41732         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
41733         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
41734         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
41735         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
41736         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
41737         HAVE_DECL_ROUNDF.
41738         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
41739         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
41740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
41741         of HAVE_DECL_ROUND*.
41742         * modules/math (Makefile.am): Update.
41743
41744 2007-11-10  Bruno Haible  <bruno@clisp.org>
41745
41746         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
41747         ptrdiff_t as m4/intl.m4.
41748
41749 2007-11-10  Jim Meyering  <meyering@redhat.com>
41750
41751         Avoid link failure for the argmatch test.
41752         * tests/test-argmatch.c (usage): Define function to avoid a link
41753         failure: argmatch_die requires a usage function.
41754
41755 2007-11-09  Bruno Haible  <bruno@clisp.org>
41756
41757         * doc/functions/snprintf.texi: Mention BeOS deficiency.
41758         * doc/functions/vsnprintf.texi: Likewise.
41759         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
41760         with a size argument < 2.
41761
41762 2007-11-09  Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
41765         buffer. Fixes an inefficiency introduced on 2007-11-03.
41766
41767 2007-11-09  Bruno Haible  <bruno@clisp.org>
41768
41769         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
41770         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
41771
41772 2007-11-08  Jim Meyering  <meyering@redhat.com>
41773
41774         Change cache variable name prefix "jm_" to "gl_" everywhere.
41775         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
41776         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41777         * m4/uptime.m4: s/gl_/jm_/
41778
41779 2007-11-07  Bruno Haible  <bruno@clisp.org>
41780
41781         Update to GNU gettext 0.17.
41782         * m4/intl.m4: Update to GNU gettext 0.17.
41783         * m4/po.m4: Likewise.
41784         * modules/gettext (Files): Remove m4/ulonglong.m4.
41785         (configure.ac): Require gettext infrastructure from version 0.17.
41786
41787 2007-11-06  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41790         symbolic values are not defined in a public header.
41791         * lib/freadable.c (freadable) [QNX]: Likewise.
41792         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41793         * lib/freading.c (freading) [QNX]: Likewise.
41794         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41795         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41796         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41797         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41798         Reported by Alain Magloire.
41799
41800         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41801
41802 2007-11-05  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41805         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41806         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41807         Reported by Eric Blake.
41808
41809 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41810             Bruno Haible  <bruno@clisp.org>
41811
41812         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41813         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41814         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41815         (malloc): Undefine also before including <stdlib.h>.
41816         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
41817         Needed on OSF/1 4.0.
41818
41819 2007-11-05  Jim Meyering  <meyering@redhat.com>
41820
41821         git-version-gen: sync from coreutils.
41822         * build-aux/git-version-gen: Add comments.
41823         Change the first '-' to '.' in the snapshot version string,
41824         e.g., 6.9-377-08144 -> 6.9.377-08144
41825         Remove first parameter.
41826         Don't declare a version "-dirty" merely because a time
41827         stamp has changed.
41828
41829 2007-11-04  Bruno Haible  <bruno@clisp.org>
41830
41831         * lib/lock.h: Protect all macro definitions containing an 'if'
41832         statement through a "do { ... } while (0)".
41833         * lib/tls.h: Likewise.
41834
41835 2007-11-04  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
41838
41839 2007-11-04  Bruno Haible  <bruno@clisp.org>
41840
41841         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
41842         * modules/fprintf-posix (Depends-on): Add nocrash.
41843         * modules/snprintf-posix (Depends-on): Likewise.
41844         * modules/sprintf-posix (Depends-on): Likewise.
41845         * modules/vasnprintf-posix (Depends-on): Likewise.
41846         * modules/vasprintf-posix (Depends-on): Likewise.
41847         * modules/vfprintf-posix (Depends-on): Likewise.
41848         * modules/vsnprintf-posix (Depends-on): Likewise.
41849         * modules/vsprintf-posix (Depends-on): Likewise.
41850         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41851         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41852         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41853         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41854         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41855         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41856         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41857
41858 2007-11-04  Bruno Haible  <bruno@clisp.org>
41859
41860         * modules/nocrash: New file.
41861         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
41862         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
41863
41864 2007-11-04  Bruno Haible  <bruno@clisp.org>
41865
41866         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
41867         precision handling.
41868         * tests/test-vasprintf-posix.c (test_function): Likewise.
41869         * tests/test-snprintf-posix.h (test_function): Likewise.
41870         * tests/test-sprintf-posix.h (test_function): Likewise.
41871
41872         Fix *printf behaviour for large precisions on mingw and BeOS.
41873         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
41874         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
41875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
41876         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41878         gl_PRINTF_PRECISION and test its result. Invoke
41879         gl_PREREQ_VASNPRINTF_PRECISION.
41880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41882         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41883         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41884         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41887         * doc/functions/fprintf.texi: Update.
41888         * doc/functions/printf.texi: Update.
41889         * doc/functions/snprintf.texi: Update.
41890         * doc/functions/sprintf.texi: Update.
41891         * doc/functions/vfprintf.texi: Update.
41892         * doc/functions/vprintf.texi: Update.
41893         * doc/functions/vsnprintf.texi: Update.
41894         * doc/functions/vsprintf.texi: Update.
41895
41896 2007-11-04  Bruno Haible  <bruno@clisp.org>
41897
41898         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
41899
41900 2007-11-04  Bruno Haible  <bruno@clisp.org>
41901
41902         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
41903         Reported by Sylvain Beucler <beuc@gnu.org>.
41904
41905 2007-11-03  Bruno Haible  <bruno@clisp.org>
41906
41907         * tests/test-fprintf-posix2.sh: New file.
41908         * tests/test-fprintf-posix2.c: New file.
41909         * modules/fprintf-posix-tests (Files): Add them.
41910         (TESTS): Add test-fprintf-posix2.sh.
41911         (configure.ac): Check for getrlimit and setrlimit.
41912         (check_PROGRAMS): Add test-fprintf-posix2.
41913
41914         * tests/test-printf-posix2.sh: New file.
41915         * tests/test-printf-posix2.c: New file.
41916         * modules/printf-posix-tests (Files): Add them.
41917         (TESTS): Add test-printf-posix2.sh.
41918         (configure.ac): Check for getrlimit and setrlimit.
41919         (check_PROGRAMS): Add test-printf-posix2.
41920
41921         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
41922         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
41923         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
41924         (decode_double): New function, copied from decode_long_double.
41925         (scale10_round_decimal_decoded): New function, extracted from
41926         scale10_round_decimal_long_double.
41927         (scale10_round_decimal_long_double): Use it.
41928         (scale10_round_decimal_double): New function.
41929         (floorlog10): New function.
41930         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
41931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
41932         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41933         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41934         gl_PRINTF_ENOMEM and test its result. Invoke
41935         gl_PREREQ_VASNPRINTF_ENOMEM.
41936         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41937         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41938         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41939         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41940         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41941         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41942         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41943         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
41944         * modules/snprintf-posix (Depends-on): Likewise.
41945         * modules/sprintf-posix (Depends-on): Likewise.
41946         * modules/vasnprintf-posix (Depends-on): Likewise.
41947         * modules/vasprintf-posix (Depends-on): Likewise.
41948         * modules/vfprintf-posix (Depends-on): Likewise.
41949         * modules/vsnprintf-posix (Depends-on): Likewise.
41950         * modules/vsprintf-posix (Depends-on): Likewise.
41951         * doc/functions/fprintf.texi: Update.
41952         * doc/functions/printf.texi: Update.
41953         * doc/functions/snprintf.texi: Update.
41954         * doc/functions/sprintf.texi: Update.
41955         * doc/functions/vfprintf.texi: Update.
41956         * doc/functions/vprintf.texi: Update.
41957         * doc/functions/vsnprintf.texi: Update.
41958         * doc/functions/vsprintf.texi: Update.
41959
41960 2007-11-03  Bruno Haible  <bruno@clisp.org>
41961
41962         * modules/frexp-nolibm-tests: New file.
41963
41964         * modules/frexp-nolibm: New file.
41965         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
41966
41967 2007-11-03  Bruno Haible  <bruno@clisp.org>
41968
41969         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
41970         value is C99 compliant.
41971         Needed for OSF/1 5.1.
41972
41973 2007-11-03  Bruno Haible  <bruno@clisp.org>
41974
41975         Fix out-of-memory handling of vasnprintf.
41976         * lib/printf-parse.c: Include <errno.h>.
41977         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
41978         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
41979         is already set.
41980
41981 2007-11-02  Eric Blake  <ebb9@byu.net>
41982
41983         Fix tests on cygwin.
41984         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
41985
41986 2007-11-01  Bruno Haible  <bruno@clisp.org>
41987
41988         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
41989         warning.
41990         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
41991         needed for POSIX compatibility.
41992
41993 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41994
41995         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
41996         for compatibility with GNU.
41997
41998 2007-11-01  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42001         (putenv): Renamed from rpl_putenv. Change argument type from
42002         'const char *' to 'char *'.
42003         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42004         of defining putenv in config.h, just set REPLACE_PUTENV.
42005         * modules/putenv (Depends-on): Add stdlib.
42006         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42007         (Include): Use <stdlib.h>.
42008         * lib/stdlib.in.h (putenv): New declaration.
42009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42010         REPLACE_PUTENV.
42011         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42012         REPLACE_PUTENV.
42013         Needed for MacOS X 10.5.0.
42014         Reported by Peter O'Gorman <peter@pogma.com>.
42015
42016 2007-11-01  Jim Meyering  <meyering@redhat.com>
42017
42018         Treat an empty date string exactly like "0".
42019         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42020         if the remaining date string (to be parsed) is empty, use "0".
42021         Reported by Mischa Molhoek and discussed in this thread:
42022         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42023
42024 2007-10-31  Bruno Haible  <bruno@clisp.org>
42025
42026         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42027         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42028         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42029         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42030         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42031         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42032
42033 2007-10-31  Bruno Haible  <bruno@clisp.org>
42034
42035         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42036         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42037         (AC_TYPE_LONG_LONG_INT): Use it.
42038         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42039         it as well.
42040         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42041         to m4/longlong.m4.
42042         * modules/stdint (Files): Remove m4/ulonglong.m4.
42043         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42044         m4/ulonglong.m4.
42045         * modules/strtoumax (Files): Likewise.
42046
42047 2007-10-30  Bruno Haible  <bruno@clisp.org>
42048
42049         * modules/xvasprintf-posix: New file.
42050         Suggested by Eric Blake.
42051
42052 2007-10-30  Bruno Haible  <bruno@clisp.org>
42053
42054         * modules/xprintf-posix-tests: New file.
42055         * tests/test-xprintf-posix.sh: New file.
42056         * tests/test-xprintf-posix.c: New file.
42057         * tests/test-xfprintf-posix.c: New file.
42058
42059         * modules/xprintf-posix: New file.
42060
42061 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42062
42063         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42064         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42065         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42066
42067 2007-10-29  Bruno Haible  <bruno@clisp.org>
42068
42069         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42070         contain the special marker '_cv_'.
42071         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42072         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42073         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42074         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42075         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42076         Reported by Ralf Wildenhues.
42077
42078 2007-10-29  Bruno Haible  <bruno@clisp.org>
42079
42080         * gnulib-tool (func_import): When --lgpl is not specified, set
42081         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42082         GPLv3.
42083         Reported by Simon Josefsson.
42084
42085 2007-10-28  Bruno Haible  <bruno@clisp.org>
42086
42087         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42088         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42089         HAVE_DECL_ISFINITE.
42090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42091         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42092         HAVE_DECL_ISFINITE.
42093
42094 2007-10-28  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42097         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42098
42099 2007-10-28  Bruno Haible  <bruno@clisp.org>
42100
42101         Fix link errors with Sun C 5.0 on Solaris 10.
42102         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42103         function is declared but not present in the compiler's libm.
42104         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42105         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42106         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42107         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42108         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42109         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42110         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42112         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42113         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42114         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42115         HAVE_DECL_FLOORL.
42116
42117 2007-10-28  Bruno Haible  <bruno@clisp.org>
42118
42119         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42120         gl_FUNC_FLOORL. Cache the result.
42121         (gl_FUNC_FLOORL): Use it.
42122         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42123         gl_FUNC_CEILL. Cache the result.
42124         (gl_FUNC_CEILL): Use it.
42125
42126         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42127         gl_FUNC_FLOOR. Cache the result.
42128         (gl_FUNC_FLOOR): Use it.
42129         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42130         gl_FUNC_CEIL. Cache the result.
42131         (gl_FUNC_CEIL): Use it.
42132
42133         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42134         gl_FUNC_FLOORF. Cache the result.
42135         (gl_FUNC_FLOORF): Use it.
42136         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42137         gl_FUNC_CEILF. Cache the result.
42138         (gl_FUNC_CEILF): Use it.
42139
42140 2007-10-28  Bruno Haible  <bruno@clisp.org>
42141
42142         * gnulib-tool: Allow specifying the LGPL version number through
42143         --lgpl=2 or --lgpl=3.
42144         (func_usage): Document --lgpl with argument.
42145         Handle --lgpl=... arguments.
42146         (func_import): Recognize also gl_LGPL calls with an argument. When
42147         --lgpl=2 is used and the module's license is just LGPL, report an
42148         error. Set sed_transform_lib_file according to the lgpl variable. In
42149         the generated files, use --lgpl or gl_LGPL invocations with argument,
42150         if necessary.
42151         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42152         an LGPv2+ license.
42153         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42154         gl_LGPL macro.
42155
42156 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42157             Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42160         (u16_uctomb_aux): Likewise.
42161         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42162         !HAVE_INLINE.
42163         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42164
42165 2007-10-28  Bruno Haible  <bruno@clisp.org>
42166
42167         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42168         Invoke AM_GETTEXT_OPTION if it exists.
42169         * modules/vasprintf: Likewise.
42170         * modules/verror: Likewise.
42171         * modules/xprintf: Likewise.
42172         * modules/xvasprintf: Likewise.
42173
42174 2007-10-27  Ben Pfaff  <blp@gnu.org>
42175
42176         * lib/math.in.h: Define isfinite macro and prototypes for
42177         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
42178         implementations.
42179         * m4/math_h.m4: New substitutions for isfinite module.
42180         * lib/isfinite.c: New file.
42181         * m4/isfinite.m4: New file.
42182         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
42183         * modules/isfinite: New file.
42184         * modules/isfinite-tests: New file.
42185         * tests/tests-isfinite.c: New file.
42186         * doc/functions/isfinite.texi: Mention isfinite module.
42187         * MODULES.html.sh: Mention new module.
42188
42189 2007-10-27  Ben Pfaff  <blp@gnu.org>
42190
42191         Ralf Wildenhues reported that Tru64 4.0D declares the round
42192         functions but does not have definitions.
42193         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
42194         cannot be found in any library, set the output variable to
42195         "missing" instead of "".
42196         * m4/round.m4: Also use our substitute if we cannot find round in
42197         any library, even if it is declared.
42198         * m4/roundf.m4: Likewise for roundf.
42199         * m4/roundl.m4: Likewise for roundl.
42200         * lib/math.in.h: Undefine roundf, round, roundl before defining
42201         their replacements, to allow for hypothetical systems where these
42202         may be defined as macros but not available in libraries.
42203
42204 2007-10-27  Bruno Haible  <bruno@clisp.org>
42205
42206         * doc/gnulib.texi: Invoke @firstparagraphindent.
42207         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
42208         changes in gnulib.
42209         (Source changes): New section.
42210
42211 2007-10-26  Bruno Haible  <bruno@clisp.org>
42212
42213         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
42214         borrowed from autoconf.
42215
42216 2007-10-26  Bruno Haible  <bruno@clisp.org>
42217
42218         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
42219         strerror returned the empty string. Needed on HP-UX 11.00.
42220
42221 2007-10-24  Micah Cowan  <micah@cowan.name>
42222
42223         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
42224         * build-aux/bootstrap: Remove support for now-unnecessary option,
42225         --cvs-user, and envvars CVS_USER, CVS_RSH.
42226
42227 2007-10-24  Jim Meyering  <meyering@redhat.com>
42228
42229         Avoid diagnostics from sha1sum when there is no cached checksum.
42230         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
42231         if the po.s1 file hasn't been created yet.
42232
42233         * build-aux/bootstrap: Sync from coreutils:
42234         2007-10-24  Jim Meyering  <meyering@redhat.com>
42235         Get gnulib from the git repository, not from an obsolete cvs one.
42236         * build-aux/bootstrap: Suggestion from Micah Cowan.
42237         2007-10-04  Jim Meyering  <jim@meyering.net>
42238         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
42239         (update_po_files): Work also when there are no .po files in po/.
42240
42241 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42242
42243         * README: Append ".git" to git and cg examples.
42244         Problem reported by Benoit Sigoure.
42245
42246 2007-10-23  Micah Cowan  <micah@cowan.name>
42247
42248         * users.txt: Add wget.
42249
42250 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42251
42252         Fix linking of some unistdio tests on FreeBSD.
42253         * modules/unistdio/u16-vsnprintf-tests
42254         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
42255         * modules/unistdio/u16-vsprintf-tests
42256         (test_u16_vsnprintf1_LDADD): Likewise.
42257         * modules/unistdio/u32-vsnprintf-tests
42258         (test_u32_vsnprintf1_LDADD): Likewise.
42259         * modules/unistdio/u32-vsprintf-tests
42260         (test_u32_vsprintf1_LDADD): Likewise.
42261         * modules/unistdio/u8-vsnprintf-tests
42262         (test_u8_vsnprintf1_LDADD): Likewise.
42263         * modules/unistdio/u8-vsprintf-tests
42264         (test_u8_vsprintf1_LDADD): Likewise.
42265         * modules/unistdio/ulc-vsnprintf-tests
42266         (test_ulc_vsnprintf1_LDADD): Likewise.
42267         * modules/unistdio/ulc-vsprintf-tests
42268         (test_ulc_vsprintf1_LDADD): Likewise.
42269
42270         Fix linking of some uniconv tests on FreeBSD.
42271         * modules/uniconv/u16-conv-from-enc-tests
42272         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
42273         * modules/uniconv/u16-conv-to-enc-tests
42274         (test_u16_conv_to_enc_LDADD): Likewise.
42275         * modules/uniconv/u16-strconv-from-enc-tests
42276         (test_u16_strconv_from_enc_LDADD): Likewise.
42277         * modules/uniconv/u16-strconv-to-enc-tests
42278         (test_u16_strconv_to_enc_LDADD): Likewise.
42279         * modules/uniconv/u32-conv-from-enc-tests
42280         (test_u32_conv_from_enc_LDADD): Likewise.
42281         * modules/uniconv/u32-conv-to-enc-tests
42282         (test_u32_conv_to_enc_LDADD): Likewise.
42283         * modules/uniconv/u32-strconv-from-enc-tests
42284         (test_u32_strconv_from_enc_LDADD): Likewise.
42285         * modules/uniconv/u32-strconv-to-enc-tests
42286         (test_u32_strconv_to_enc_LDADD): Likewise.
42287         * modules/uniconv/u8-conv-from-enc-tests
42288         (test_u8_conv_from_enc_LDADD): Likewise.
42289         * modules/uniconv/u8-conv-to-enc-tests
42290         (test_u8_conv_to_enc_LDADD): Likewise.
42291         * modules/uniconv/u8-strconv-from-enc-tests
42292         (test_u8_strconv_from_enc_LDADD): Likewise.
42293         * modules/uniconv/u8-strconv-to-enc-tests
42294         (test_u8_strconv_to_enc_LDADD): Likewise.
42295
42296 2007-10-22  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
42299         size.
42300
42301 2007-10-22  Eric Blake  <ebb9@byu.net>
42302
42303         Tweak x*printf documentation.
42304         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
42305         variable name and comments.
42306         Suggested by Bruno Haible.
42307
42308 2007-10-22  Bruno Haible  <bruno@clisp.org>
42309
42310         * lib/acl.c (copy_acl): Fix file name in comment.
42311
42312 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42313
42314         Fix Tru64 problem with stdbool.h.
42315         * lib/stdbool.in.h (false, true):
42316         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
42317         Don't declare as an enum in this situation; it runs afoul of Tru64.
42318         Problem reported by Steven M. Schweda in
42319         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
42320
42321 2007-10-22  Eric Blake  <ebb9@byu.net>
42322
42323         Also wrap vf?printf.
42324         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
42325         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
42326         (xvprintf, xvfprintf): New functions.
42327
42328 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42329
42330         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
42331         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
42332
42333         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
42334         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
42335
42336 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42337
42338         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
42339         by Bruno Haible.
42340
42341 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42342
42343         * lib/getloadavg.c
42344         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
42345         Undef `sys' after including sys/table.h, for Tru64 4.0D.
42346
42347         * tests/test-i-ring.c: Work for C89.
42348
42349 2007-10-22  Bruno Haible  <bruno@clisp.org>
42350
42351         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
42352         -1u, in preprocessor expression, so that we don't test for the bug
42353         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
42354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
42355
42356 2007-10-22  Eric Blake  <ebb9@byu.net>
42357
42358         * tests/test-yesno.sh: Silence stderr during test.
42359
42360 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42361
42362         * modules/crypto/gc-camellia: New file.
42363
42364         * m4/gc-camellia.m4: New file.
42365
42366         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
42367
42368         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
42369
42370 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42371
42372         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
42373         --help to stdout.  Reported by sms@antinode.org (Steven
42374         M. Schweda).
42375
42376 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42377
42378         * users.txt: Fix link to libksba.
42379
42380 2007-10-21  Ben Pfaff  <blp@gnu.org>
42381
42382         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
42383         round.c roundf implementation that depends on floorf and ceilf to
42384         be tested unconditionally.
42385
42386 2007-10-21  Ben Pfaff  <blp@gnu.org>
42387
42388         * m4/check-libm-func.m4: Removed.
42389         * m4/check-math-lib.m4: New file.
42390         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
42391         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
42392         definition and lack of AC_LIBOBJ([roundf]).
42393         * m4/roundl.m4: Ditto, and similarly for roundl.
42394         * modules/round: Reference new m4 file.
42395         * modules/roundf: Ditto.
42396         * modules/roundl: Ditto.
42397         * tests/test-round2.c (main): Use ROUND instead of round.
42398         Bug report from Bruno Haible.
42399
42400 2007-10-21  Bruno Haible  <bruno@clisp.org>
42401
42402         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
42403         context.
42404
42405 2007-10-21  Bruno Haible  <bruno@clisp.org>
42406
42407         * tests/test-wcwidth.c (main): Allow negative result for some control
42408         characters.
42409
42410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
42411         Needed on OSF/1 5.1.
42412
42413 2007-10-21  Bruno Haible  <bruno@clisp.org>
42414
42415         * tests/test-floorf1.c: Include isnanf.h.
42416         (main): Use isnanf() instead of isnan().
42417         * tests/test-ceilf1.c: Include isnanf.h.
42418         (main): Use isnanf() instead of isnan().
42419         * tests/test-truncf1.c: Include isnanf.h.
42420         (main): Use isnanf() instead of isnan().
42421         * tests/test-roundf1.c: Include isnanf.h.
42422         (main): Use isnanf() instead of isnan().
42423
42424 2007-10-21  Eric Blake  <ebb9@byu.net>
42425
42426         * users.txt: Update URL for m4.
42427
42428 2007-10-21  Bruno Haible  <bruno@clisp.org>
42429
42430         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42431
42432 2007-10-21  Bruno Haible  <bruno@clisp.org>
42433
42434         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42435         Git's management files if the CVS files are not present.
42436
42437 2007-10-20  Bruno Haible  <bruno@clisp.org>
42438
42439         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42440         gcc-3.4.x.
42441
42442 2007-10-20  Ben Pfaff  <blp@gnu.org>
42443
42444         * lib/math.in.h: Declare round, roundf, roundl if we are providing
42445         implementations.
42446         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
42447         * lib/round.c: New file.
42448         * lib/roundf.c: New file.
42449         * lib/roundl.c: New file.
42450         * m4/round.m4: New file.
42451         * m4/roundf.m4: New file.
42452         * m4/roundl.m4: New file.
42453         * m4/check-libm-func-m4: New file.
42454         * modules/math: Replace round, roundf, roundl related @VARS@ in
42455         math.in.h.
42456         * modules/round: New file.
42457         * modules/round-tests: New file.
42458         * modules/roundf: New file.
42459         * modules/roundf-tests: New file.
42460         * modules/roundl: New file.
42461         * modules/roundl-tests: New file.
42462         * tests/test-round1.c: New file.
42463         * tests/test-round2.c: New file.
42464         * tests/test-roundf1.c: New file.
42465         * tests/test-roundf2.c: New file.
42466         * tests/test-roundl.c: New file.
42467         * doc/functions/round.texi: Mention round module.
42468         * doc/functions/roundf.texi: Mention roundf module.
42469         * doc/functions/roundl.texi: Mention roundl module.
42470         * MODULES.html.sh: Mention new modules.
42471         Thanks to Bruno Haible for suggestions.
42472
42473 2007-10-20  Jim Meyering  <meyering@redhat.com>
42474
42475         * lib/xprintf.c: Include <config.h> unconditionally.
42476
42477         Change xprintf's license to GPL.
42478         * modules/xprintf (License): s/LGPL/GPL/, since this module
42479         depends on modules (exit and exitfail) which are GPL.
42480         Suggestion from Bruno Haible.
42481
42482         xprintf fixes.
42483         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
42484         Use a clearer diagnostic.
42485         Patch from Bruno Haible.
42486
42487 2007-10-20  Bruno Haible  <bruno@clisp.org>
42488
42489         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
42490         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
42491         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42492
42493 2007-10-20  Bruno Haible  <bruno@clisp.org>
42494
42495         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
42496         precision in the comparison result > x - 1 or similar.
42497         * tests/test-ceilf2.c (correct_result_p): Likewise.
42498         * tests/test-truncf2.c (correct_result_p): Likewise.
42499         * tests/test-trunc2.c (correct_result_p): Likewise.
42500         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42501
42502 2007-10-20  Bruno Haible  <bruno@clisp.org>
42503
42504         * modules/ceil: New file.
42505         * m4/ceil.m4: New file.
42506         * doc/functions/ceil.texi: Mention the 'ceil' module.
42507
42508 2007-10-20  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/floor: New file.
42511         * m4/floor.m4: New file.
42512         * doc/functions/floor.texi: Mention the 'floor' module.
42513
42514 2007-10-20  Bruno Haible  <bruno@clisp.org>
42515
42516         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
42517         of %a.
42518         * modules/floorf-tests (Depends-on): Likewise.
42519         * modules/truncf-tests (Depends-on): Likewise.
42520         * modules/trunc-tests (Depends-on): Likewise.
42521         Reported by Ben Pfaff.
42522
42523 2007-10-19  Jim Meyering  <meyering@redhat.com>
42524
42525         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
42526         Don't bother testing specific errno values.  Just test ferror.
42527
42528         New module: xprintf
42529         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
42530
42531 2007-10-19  Bruno Haible  <bruno@clisp.org>
42532
42533         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
42534         syntax.
42535         * modules/javaexec (Makefile.am): Likewise.
42536         * modules/relocatable-prog (Makefile.am): Likewise.
42537         Suggested by Jim Meyering.
42538
42539 2007-10-18  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
42542         Reported by Jim Meyering.
42543
42544 2007-10-18  Eric Blake  <ebb9@byu.net>
42545
42546         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
42547
42548 2007-10-18  Bruno Haible  <bruno@clisp.org>
42549
42550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
42551         the format string into writable memory. Needed in Fortify conditions.
42552
42553 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
42554             Bruno Haible  <bruno@clisp.org>
42555
42556         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
42557         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
42558         * modules/trim (Depends-on): Add mbchar.
42559         (configure.ac): Add gl_FUNC_MBRTOWC.
42560         (Makefile.am): Augment lib_SOURCES.
42561
42562 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42563
42564         Modify glob.c to use fstatat and dirfd, to simplify it.
42565         Suggested by Eric Blake.
42566         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
42567         Don't include <stdbool.h>; not used.
42568         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
42569         (link_exists_p): Simplify implementation, since we can now assume
42570         dirfd and fstatat.
42571         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
42572
42573 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42574
42575         * gnulib-tool (func_get_dependencies): Fix sed script to
42576         match only tests.
42577
42578 2007-10-17  Bruno Haible  <bruno@clisp.org>
42579
42580         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
42581         allow locale names without encoding suffix.
42582         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42583         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42584
42585 2007-10-16  Bruno Haible  <bruno@clisp.org>
42586
42587         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
42588         * lib/getgroups.c (getgroups): Likewise.
42589         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
42590
42591 2007-10-16  Bruno Haible  <bruno@clisp.org>
42592
42593         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
42594         * modules/malloc-posix (License): Likewise.
42595         * modules/realloc-posix (License): Likewise.
42596         * modules/calloc-posix (License): Likewise.
42597         * modules/intprops (License): Change from GPL to LGPL, with
42598         Paul Eggert's approval.
42599
42600 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42601
42602         Merge glibc changes into lib/glob.c.
42603
42604         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
42605         2007-10-15 04:59:03 UTC.  Here are the changes:
42606
42607         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
42608
42609         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
42610
42611         * lib/glob.c: Add some branch prediction throughout.
42612
42613         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
42614
42615         [BZ #5103]
42616         * lib/glob.c (glob): Recognize patterns starting \/.
42617
42618         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
42619
42620         [BZ #3996]
42621         * lib/glob.c (attribute_hidden): Define if not defined.
42622         (glob): Unescape dirname, filename or username when needed and not
42623         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
42624         is NULL.  Handle unescaped [ in pattern without closing ].
42625         Don't pass GLOB_CHECK down to recursive glob for directories.
42626         (__glob_pattern_type): New function.
42627         (__glob_pattern_p): Implement using __glob_pattern_type.
42628         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
42629         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
42630         Remove unreachable code.
42631
42632         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
42633
42634         * lib/glob.c (glob_in_dir): Add some comments and asserts to
42635         explain why there are no leaks.
42636
42637         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
42638
42639         [BZ #3253]
42640         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
42641         time, rather allocate increasingly bigger arrays of pointers, if
42642         possible with alloca, if too large with malloc.
42643
42644 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42645
42646         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42647         Problem reported by H.Merijn Brand in
42648         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42649         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42650         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42651
42652 2007-10-15  Bruno Haible  <bruno@clisp.org>
42653
42654         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42655         with explicit rpl_ prefix.
42656         * lib/fopen.c (fopen): Likewise.
42657         * lib/freopen.c (freopen): Likewise.
42658         * lib/iconv.c (iconv): Likewise.
42659         * lib/iconv_close.c (iconv_close): Likewise.
42660
42661 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42662
42663         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42664
42665 2007-10-15  Bruno Haible  <bruno@clisp.org>
42666
42667         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
42668         <stddef.h> instead of <stdlib.h> since we only need NULL.
42669         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42670
42671 2007-10-15  Bruno Haible  <bruno@clisp.org>
42672
42673         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
42674         Replace paragraph talking about LIBOBJS.
42675         Reported by Colin Watson <cjwatson@debian.org>.
42676
42677 2007-10-15  Bruno Haible  <bruno@clisp.org>
42678
42679         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
42680         <stdlib.h> before using NULL.
42681
42682 2007-10-15  Simon Josefsson  <simon@josefsson.org>
42683
42684         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
42685         Reported by Albert Chin <china@thewrittenword.com>.
42686
42687 2007-10-14  Bruno Haible  <bruno@clisp.org>
42688
42689         * modules/iconv_open-utf-tests: New file.
42690         * tests/test-iconv-utf.c: New file.
42691
42692         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
42693         * modules/iconv_open-utf: New file.
42694         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
42695         (iconv, iconv_close): New declarations.
42696         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
42697         be defined.
42698         (iconv_open): Add special handling of conversion between UTF-8 and
42699         UTF-{16,32}{BE,LE}.
42700         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
42701         * lib/iconv_close.c: New file.
42702         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
42703         gl_FUNC_ICONV_OPEN.
42704         (gl_FUNC_ICONV_OPEN): Use it.
42705         (gl_FUNC_ICONV_OPEN_UTF): New macro.
42706         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
42707         and REPLACE_ICONV_UTF.
42708         * modules/iconv_open (Depends-on): Add c-strcase.
42709         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
42710         ICONV_CONST.
42711         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
42712
42713 2007-10-13  Albert Chin  <china@thewrittenword.com>
42714             Bruno Haible  <bruno@clisp.org>
42715
42716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
42717         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
42718
42719 2007-10-13  Bruno Haible  <bruno@clisp.org>
42720
42721         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
42722         defined, use the ISO C99 inline semantics.
42723         * lib/argp.h (ARGP_EI): Likewise.
42724
42725 2007-10-13  Bruno Haible  <bruno@clisp.org>
42726
42727         Handle 'inline' change in gcc 4.3.0.
42728         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
42729         argp_fmtstream_write, argp_fmtstream_set_lmargin,
42730         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
42731         argp_fmtstream_point): Disable 'extern' declaration if the function
42732         definition is going to be provided inline.
42733         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
42734         semantics, not the ISO C99 inline semantics.
42735         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
42736         'extern' declaration if the function definition is going to be provided
42737         inline.
42738         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
42739         the GNU C inline semantics, not the ISO C99 inline semantics. With
42740         GCC 4.2, avoid a warning.
42741
42742 2007-10-13  Bruno Haible  <bruno@clisp.org>
42743
42744         * lib/freading.h (freading): Enable the use of __freading for
42745         glibc >= 2.7.
42746         * lib/freading.c (freading): Likewise.
42747
42748 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42749
42750         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
42751         "warning: C99 inline functions are not supported; using GNU89".
42752
42753 2007-10-12  Bruno Haible  <bruno@clisp.org>
42754
42755         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
42756         of 2.
42757         * tests/test-ceilf2.c: New file.
42758         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
42759
42760         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
42761         * modules/ceilf-tests: Update.
42762
42763 2007-10-12  Bruno Haible  <bruno@clisp.org>
42764
42765         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
42766         of 2.
42767         * tests/test-floorf2.c: New file.
42768         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
42769
42770         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
42771         * modules/floorf-tests: Update.
42772
42773 2007-10-12  Bruno Haible  <bruno@clisp.org>
42774
42775         * tests/test-trunc2.c: New file.
42776         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42777
42778         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42779         * modules/trunc-tests: Update.
42780
42781 2007-10-12  Bruno Haible  <bruno@clisp.org>
42782
42783         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42784         of 2.
42785         * tests/test-truncf2.c: New file.
42786         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42787
42788         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42789         * modules/truncf-tests: Update.
42790
42791 2007-10-11  Eric Blake  <ebb9@byu.net>
42792
42793         Don't claim strerror is broken on Interix.
42794         * doc/functions/strerror.texi (strerror): Known broken systems are
42795         now Solaris 8, and not Interix.
42796         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42797         Interix on cross-compile.
42798         Reported by Martin Koeppe in
42799         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42800
42801 2007-10-11  Bruno Haible  <bruno@clisp.org>
42802
42803         * modules/i-ring-tests: New file.
42804         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42805         instead of assert.
42806
42807 2007-10-11  Bruno Haible  <bruno@clisp.org>
42808
42809         * modules/filenamecat-tests: New file.
42810         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42811         * lib/filenamecat.c: Remove test code.
42812
42813 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42814
42815         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
42816
42817         * lib/strerror.c: Include <string.h> always, to test interface,
42818         and to remove the need for the dummy.
42819         Include intprops.h to compute width instead of doing it ourselves
42820         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
42821         (strerror): Define it to return NULL if there's no system strerror.
42822         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
42823         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
42824         ancient pre-strerror Unix systems well any more.  Saying "unknown
42825         system error" is enough.
42826         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
42827         simpler strerror.c implementation.
42828         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
42829         Simplify the tests to reflect the simpler strerror implementation.
42830         * modules/strerror (Depends-on): Add intprops.
42831
42832 2007-10-09  Eric Blake  <ebb9@byu.net>
42833
42834         Silence test-fpending.
42835         * modules/fpending-tests (Files): Add wrapper script.
42836         * tests/test-fpending.sh: New file.
42837
42838 2007-10-09  Bruno Haible  <bruno@clisp.org>
42839
42840         * MODULES.html.sh (func_module): Don't create a hyperlink for
42841         function names like 'printf_frexp'.
42842         (Misc): Add crc, memxor.
42843         (Characteristics of floating types): New section.
42844         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
42845         isnanf-nolibm, signbit, trunc, truncf, truncl.
42846         (Enhancements for ISO C 99 functions): New subsection Input/output.
42847         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
42848         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
42849         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
42850         (Compatibility checks for POSIX:2001 functions): Add clock-time.
42851         (Enhancements for POSIX:2001 functions): Add chdir-long.
42852         (File system functions): Add areadlink, chdir-safer, read-file.
42853         Remove cycle-check.
42854         (File system as inode set): New section.
42855         (Date and time): Add gethrxtime.
42856         (Multithreading): Add openmp.
42857         (Internationalization functions): Add localename.
42858         (Unicode string functions): Add unistr/u*-mbsnlen.
42859         (Support for maintaining and releasing projects): Add git-version-gen.
42860         (Lone files): Remove directories.
42861
42862 2007-10-08  Ben Pfaff  <blp@gnu.org>
42863
42864         * lib/xmalloca.h: Fix typo in comment.
42865
42866 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42867
42868         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
42869         when avoiding problems with integer overflow.  Use a portable test
42870         instead.
42871
42872 2007-10-08  Simon Josefsson  <simon@josefsson.org>
42873
42874         * modules/dummy (License): Change to LGPLv2+.
42875         * modules/float (License): Likewise
42876         * modules/realloc (License): Likewise
42877         * modules/stdlib (License): Likewise
42878
42879 2007-10-07  Bruno Haible  <bruno@clisp.org>
42880
42881         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
42882         * floor.c (TWO_MANT_DIG): Likewise.
42883         * ceil.c (TWO_MANT_DIG): Likewise.
42884         Reported by Ben Pfaff.
42885
42886 2007-10-07  Bruno Haible  <bruno@clisp.org>
42887
42888         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
42889         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
42890         * lib/frexp.c (FUNC): Likewise.
42891         * lib/printf-frexp.h (printf_frexp): Likewise.
42892         * lib/printf-frexpl.h (printf_frexpl): Likewise.
42893         * lib/printf-frexp.c (FUNC): Likewise.
42894         Suggested by Jim Meyering.
42895
42896 2007-10-07  Jim Meyering  <meyering@redhat.com>
42897
42898         Make xnanosleep's integer overflow test more robust.
42899         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
42900         so that gcc-4.3.0 doesn't optimize away this test for overflow.
42901
42902 2007-10-07  Bruno Haible  <bruno@clisp.org>
42903
42904         * NEWS: Mention the license change.
42905
42906         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42907         abbreviations in the modules files.
42908
42909         Change copyright notice from GPLv2+ to GPLv3+.
42910         * README: Change copyright notice.
42911         * MODULES.html.sh: Likewise.
42912         * build-aux/bootstrap.conf: Likewise.
42913         * build-aux/config.libpath: Likewise.
42914         * build-aux/csharpcomp.sh.in: Likewise.
42915         * build-aux/csharpexec.sh.in: Likewise.
42916         * build-aux/install-reloc: Likewise.
42917         * build-aux/javacomp.sh.in: Likewise.
42918         * build-aux/javaexec.sh.in: Likewise.
42919         * build-aux/ldd.sh.in: Likewise.
42920         * build-aux/reloc-ldflags: Likewise.
42921         * build-aux/relocatable.sh.in: Likewise.
42922         * build-aux/x-to-1.in: Likewise.
42923         * check-module: Likewise.
42924         * config/srclistvars.sh: Likewise.
42925         * gnulib-tool: Likewise.
42926         * lib/acl-internal.h: Likewise.
42927         * lib/acl.c: Likewise.
42928         * lib/acl.h: Likewise.
42929         * lib/acl_entries.c: Likewise.
42930         * lib/areadlink-with-size.c: Likewise.
42931         * lib/areadlink.c: Likewise.
42932         * lib/areadlink.h: Likewise.
42933         * lib/argmatch.c: Likewise.
42934         * lib/argmatch.h: Likewise.
42935         * lib/argp-ba.c: Likewise.
42936         * lib/argp-eexst.c: Likewise.
42937         * lib/argp-fmtstream.c: Likewise.
42938         * lib/argp-fmtstream.h: Likewise.
42939         * lib/argp-fs-xinl.c: Likewise.
42940         * lib/argp-help.c: Likewise.
42941         * lib/argp-namefrob.h: Likewise.
42942         * lib/argp-parse.c: Likewise.
42943         * lib/argp-pin.c: Likewise.
42944         * lib/argp-pv.c: Likewise.
42945         * lib/argp-pvh.c: Likewise.
42946         * lib/argp-xinl.c: Likewise.
42947         * lib/argp.h: Likewise.
42948         * lib/at-func.c: Likewise.
42949         * lib/atanl.c: Likewise.
42950         * lib/backupfile.c: Likewise.
42951         * lib/backupfile.h: Likewise.
42952         * lib/basename.c: Likewise.
42953         * lib/binary-io.h: Likewise.
42954         * lib/byteswap.in.h: Likewise.
42955         * lib/c-stack.c: Likewise.
42956         * lib/c-stack.h: Likewise.
42957         * lib/c-strcasestr.c: Likewise.
42958         * lib/c-strcasestr.h: Likewise.
42959         * lib/c-strstr.c: Likewise.
42960         * lib/c-strstr.h: Likewise.
42961         * lib/c-strtod.c: Likewise.
42962         * lib/calloc.c: Likewise.
42963         * lib/canon-host.c: Likewise.
42964         * lib/canon-host.h: Likewise.
42965         * lib/canonicalize-lgpl.c: Likewise.
42966         * lib/canonicalize.c: Likewise.
42967         * lib/canonicalize.h: Likewise.
42968         * lib/ceil.c: Likewise.
42969         * lib/ceilf.c: Likewise.
42970         * lib/ceill.c: Likewise.
42971         * lib/chdir-long.c: Likewise.
42972         * lib/chdir-long.h: Likewise.
42973         * lib/chdir-safer.c: Likewise.
42974         * lib/chdir-safer.h: Likewise.
42975         * lib/chown.c: Likewise.
42976         * lib/classpath.c: Likewise.
42977         * lib/classpath.h: Likewise.
42978         * lib/clean-temp.c: Likewise.
42979         * lib/clean-temp.h: Likewise.
42980         * lib/cloexec.c: Likewise.
42981         * lib/close-stream.c: Likewise.
42982         * lib/closein.c: Likewise.
42983         * lib/closein.h: Likewise.
42984         * lib/closeout.c: Likewise.
42985         * lib/closeout.h: Likewise.
42986         * lib/concat-filename.c: Likewise.
42987         * lib/copy-file.c: Likewise.
42988         * lib/copy-file.h: Likewise.
42989         * lib/count-one-bits.h: Likewise.
42990         * lib/crc.c: Likewise.
42991         * lib/crc.h: Likewise.
42992         * lib/creat-safer.c: Likewise.
42993         * lib/csharpcomp.c: Likewise.
42994         * lib/csharpcomp.h: Likewise.
42995         * lib/csharpexec.c: Likewise.
42996         * lib/csharpexec.h: Likewise.
42997         * lib/cycle-check.c: Likewise.
42998         * lib/cycle-check.h: Likewise.
42999         * lib/diacrit.c: Likewise.
43000         * lib/diacrit.h: Likewise.
43001         * lib/diffseq.h: Likewise.
43002         * lib/dirchownmod.c: Likewise.
43003         * lib/dirent.in.h: Likewise.
43004         * lib/dirfd.c: Likewise.
43005         * lib/dirfd.h: Likewise.
43006         * lib/dirname.c: Likewise.
43007         * lib/dirname.h: Likewise.
43008         * lib/dummy.c: Likewise.
43009         * lib/dup-safer.c: Likewise.
43010         * lib/dup2.c: Likewise.
43011         * lib/eealloc.h: Likewise.
43012         * lib/error.c: Likewise.
43013         * lib/error.h: Likewise.
43014         * lib/euidaccess.c: Likewise.
43015         * lib/exclude.c: Likewise.
43016         * lib/exclude.h: Likewise.
43017         * lib/execute.c: Likewise.
43018         * lib/execute.h: Likewise.
43019         * lib/exitfail.c: Likewise.
43020         * lib/exitfail.h: Likewise.
43021         * lib/expl.c: Likewise.
43022         * lib/fatal-signal.c: Likewise.
43023         * lib/fatal-signal.h: Likewise.
43024         * lib/fbufmode.c: Likewise.
43025         * lib/fbufmode.h: Likewise.
43026         * lib/fchdir.c: Likewise.
43027         * lib/fchmodat.c: Likewise.
43028         * lib/fchownat.c: Likewise.
43029         * lib/fcntl--.h: Likewise.
43030         * lib/fcntl-safer.h: Likewise.
43031         * lib/fcntl.in.h: Likewise.
43032         * lib/fd-safer.c: Likewise.
43033         * lib/fflush.c: Likewise.
43034         * lib/file-has-acl.c: Likewise.
43035         * lib/file-set.c: Likewise.
43036         * lib/file-type.c: Likewise.
43037         * lib/file-type.h: Likewise.
43038         * lib/fileblocks.c: Likewise.
43039         * lib/filemode.c: Likewise.
43040         * lib/filemode.h: Likewise.
43041         * lib/filename.h: Likewise.
43042         * lib/filenamecat.c: Likewise.
43043         * lib/filenamecat.h: Likewise.
43044         * lib/findprog.c: Likewise.
43045         * lib/findprog.h: Likewise.
43046         * lib/float.in.h: Likewise.
43047         * lib/floor.c: Likewise.
43048         * lib/floorf.c: Likewise.
43049         * lib/floorl.c: Likewise.
43050         * lib/fopen-safer.c: Likewise.
43051         * lib/fopen.c: Likewise.
43052         * lib/fpending.c: Likewise.
43053         * lib/fpending.h: Likewise.
43054         * lib/fprintf.c: Likewise.
43055         * lib/fprintftime.h: Likewise.
43056         * lib/fpucw.h: Likewise.
43057         * lib/fpurge.c: Likewise.
43058         * lib/fpurge.h: Likewise.
43059         * lib/freadable.c: Likewise.
43060         * lib/freadable.h: Likewise.
43061         * lib/freadahead.c: Likewise.
43062         * lib/freadahead.h: Likewise.
43063         * lib/freading.c: Likewise.
43064         * lib/freading.h: Likewise.
43065         * lib/free.c: Likewise.
43066         * lib/freopen.c: Likewise.
43067         * lib/frexp.c: Likewise.
43068         * lib/frexpl.c: Likewise.
43069         * lib/fseek.c: Likewise.
43070         * lib/fseterr.c: Likewise.
43071         * lib/fseterr.h: Likewise.
43072         * lib/fstatat.c: Likewise.
43073         * lib/fstrcmp.c: Likewise.
43074         * lib/fstrcmp.h: Likewise.
43075         * lib/fsusage.c: Likewise.
43076         * lib/fsusage.h: Likewise.
43077         * lib/ftell.c: Likewise.
43078         * lib/ftello.c: Likewise.
43079         * lib/fts-cycle.c: Likewise.
43080         * lib/fts.c: Likewise.
43081         * lib/fts_.h: Likewise.
43082         * lib/full-read.c: Likewise.
43083         * lib/full-read.h: Likewise.
43084         * lib/full-write.c: Likewise.
43085         * lib/full-write.h: Likewise.
43086         * lib/fwritable.c: Likewise.
43087         * lib/fwritable.h: Likewise.
43088         * lib/fwriteerror.c: Likewise.
43089         * lib/fwriteerror.h: Likewise.
43090         * lib/fwriting.c: Likewise.
43091         * lib/fwriting.h: Likewise.
43092         * lib/gcd.c: Likewise.
43093         * lib/gcd.h: Likewise.
43094         * lib/getcwd.c: Likewise.
43095         * lib/getdate.h: Likewise.
43096         * lib/getdate.y: Likewise.
43097         * lib/getdomainname.c: Likewise.
43098         * lib/getdomainname.h: Likewise.
43099         * lib/getgroups.c: Likewise.
43100         * lib/gethostname.c: Likewise.
43101         * lib/gethrxtime.c: Likewise.
43102         * lib/gethrxtime.h: Likewise.
43103         * lib/getloadavg.c: Likewise.
43104         * lib/getndelim2.c: Likewise.
43105         * lib/getndelim2.h: Likewise.
43106         * lib/getnline.c: Likewise.
43107         * lib/getnline.h: Likewise.
43108         * lib/getopt.c: Likewise.
43109         * lib/getopt.in.h: Likewise.
43110         * lib/getopt1.c: Likewise.
43111         * lib/getopt_int.h: Likewise.
43112         * lib/getpagesize.h: Likewise.
43113         * lib/getsubopt.c: Likewise.
43114         * lib/gettime.c: Likewise.
43115         * lib/getugroups.c: Likewise.
43116         * lib/getugroups.h: Likewise.
43117         * lib/getusershell.c: Likewise.
43118         * lib/gl_anyavltree_list1.h: Likewise.
43119         * lib/gl_anyavltree_list2.h: Likewise.
43120         * lib/gl_anyhash_list1.h: Likewise.
43121         * lib/gl_anyhash_list2.h: Likewise.
43122         * lib/gl_anylinked_list1.h: Likewise.
43123         * lib/gl_anylinked_list2.h: Likewise.
43124         * lib/gl_anyrbtree_list1.h: Likewise.
43125         * lib/gl_anyrbtree_list2.h: Likewise.
43126         * lib/gl_anytree_list1.h: Likewise.
43127         * lib/gl_anytree_list2.h: Likewise.
43128         * lib/gl_anytree_oset.h: Likewise.
43129         * lib/gl_anytreehash_list1.h: Likewise.
43130         * lib/gl_anytreehash_list2.h: Likewise.
43131         * lib/gl_array_list.c: Likewise.
43132         * lib/gl_array_list.h: Likewise.
43133         * lib/gl_array_oset.c: Likewise.
43134         * lib/gl_array_oset.h: Likewise.
43135         * lib/gl_avltree_list.c: Likewise.
43136         * lib/gl_avltree_list.h: Likewise.
43137         * lib/gl_avltree_oset.c: Likewise.
43138         * lib/gl_avltree_oset.h: Likewise.
43139         * lib/gl_avltreehash_list.c: Likewise.
43140         * lib/gl_avltreehash_list.h: Likewise.
43141         * lib/gl_carray_list.c: Likewise.
43142         * lib/gl_carray_list.h: Likewise.
43143         * lib/gl_linked_list.c: Likewise.
43144         * lib/gl_linked_list.h: Likewise.
43145         * lib/gl_linkedhash_list.c: Likewise.
43146         * lib/gl_linkedhash_list.h: Likewise.
43147         * lib/gl_list.c: Likewise.
43148         * lib/gl_list.h: Likewise.
43149         * lib/gl_oset.c: Likewise.
43150         * lib/gl_oset.h: Likewise.
43151         * lib/gl_rbtree_list.c: Likewise.
43152         * lib/gl_rbtree_list.h: Likewise.
43153         * lib/gl_rbtree_oset.c: Likewise.
43154         * lib/gl_rbtree_oset.h: Likewise.
43155         * lib/gl_rbtreehash_list.c: Likewise.
43156         * lib/gl_rbtreehash_list.h: Likewise.
43157         * lib/gl_sublist.c: Likewise.
43158         * lib/gl_sublist.h: Likewise.
43159         * lib/group-member.c: Likewise.
43160         * lib/group-member.h: Likewise.
43161         * lib/hard-locale.c: Likewise.
43162         * lib/hard-locale.h: Likewise.
43163         * lib/hash-pjw.c: Likewise.
43164         * lib/hash-pjw.h: Likewise.
43165         * lib/hash-triple.c: Likewise.
43166         * lib/hash.c: Likewise.
43167         * lib/hash.h: Likewise.
43168         * lib/human.c: Likewise.
43169         * lib/human.h: Likewise.
43170         * lib/i-ring.c: Likewise.
43171         * lib/i-ring.h: Likewise.
43172         * lib/idcache.c: Likewise.
43173         * lib/imaxabs.c: Likewise.
43174         * lib/imaxdiv.c: Likewise.
43175         * lib/inet_pton.c: Likewise.
43176         * lib/inet_pton.h: Likewise.
43177         * lib/intprops.h: Likewise.
43178         * lib/inttostr.c: Likewise.
43179         * lib/inttostr.h: Likewise.
43180         * lib/inttypes.in.h: Likewise.
43181         * lib/isapipe.c: Likewise.
43182         * lib/isdir.c: Likewise.
43183         * lib/isnan.c: Likewise.
43184         * lib/isnan.h: Likewise.
43185         * lib/isnanf.c: Likewise.
43186         * lib/isnanf.h: Likewise.
43187         * lib/isnanl-nolibm.h: Likewise.
43188         * lib/isnanl.c: Likewise.
43189         * lib/isnanl.h: Likewise.
43190         * lib/javacomp.c: Likewise.
43191         * lib/javacomp.h: Likewise.
43192         * lib/javaexec.c: Likewise.
43193         * lib/javaexec.h: Likewise.
43194         * lib/javaversion.c: Likewise.
43195         * lib/javaversion.h: Likewise.
43196         * lib/javaversion.java: Likewise.
43197         * lib/lbrkprop.h: Likewise.
43198         * lib/lchmod.h: Likewise.
43199         * lib/lchown.c: Likewise.
43200         * lib/ldexpl.c: Likewise.
43201         * lib/linebreak.c: Likewise.
43202         * lib/linebreak.h: Likewise.
43203         * lib/linebuffer.c: Likewise.
43204         * lib/linebuffer.h: Likewise.
43205         * lib/locale.in.h: Likewise.
43206         * lib/logl.c: Likewise.
43207         * lib/long-options.c: Likewise.
43208         * lib/long-options.h: Likewise.
43209         * lib/lstat.c: Likewise.
43210         * lib/lstat.h: Likewise.
43211         * lib/math.in.h: Likewise.
43212         * lib/mbchar.c: Likewise.
43213         * lib/mbchar.h: Likewise.
43214         * lib/mbfile.h: Likewise.
43215         * lib/mbiter.h: Likewise.
43216         * lib/mbscasecmp.c: Likewise.
43217         * lib/mbscasestr.c: Likewise.
43218         * lib/mbschr.c: Likewise.
43219         * lib/mbscspn.c: Likewise.
43220         * lib/mbslen.c: Likewise.
43221         * lib/mbsncasecmp.c: Likewise.
43222         * lib/mbsnlen.c: Likewise.
43223         * lib/mbspbrk.c: Likewise.
43224         * lib/mbspcasecmp.c: Likewise.
43225         * lib/mbsrchr.c: Likewise.
43226         * lib/mbssep.c: Likewise.
43227         * lib/mbsspn.c: Likewise.
43228         * lib/mbsstr.c: Likewise.
43229         * lib/mbstok_r.c: Likewise.
43230         * lib/mbswidth.c: Likewise.
43231         * lib/mbswidth.h: Likewise.
43232         * lib/mbuiter.h: Likewise.
43233         * lib/memcasecmp.c: Likewise.
43234         * lib/memcasecmp.h: Likewise.
43235         * lib/memchr.c: Likewise.
43236         * lib/memcmp.c: Likewise.
43237         * lib/memcoll.c: Likewise.
43238         * lib/memcoll.h: Likewise.
43239         * lib/memcpy.c: Likewise.
43240         * lib/memrchr.c: Likewise.
43241         * lib/mkancesdirs.c: Likewise.
43242         * lib/mkdir-p.c: Likewise.
43243         * lib/mkdir-p.h: Likewise.
43244         * lib/mkdir.c: Likewise.
43245         * lib/mkdirat.c: Likewise.
43246         * lib/mkdtemp.c: Likewise.
43247         * lib/mkstemp-safer.c: Likewise.
43248         * lib/mkstemp.c: Likewise.
43249         * lib/modechange.c: Likewise.
43250         * lib/modechange.h: Likewise.
43251         * lib/mountlist.c: Likewise.
43252         * lib/mountlist.h: Likewise.
43253         * lib/mpsort.c: Likewise.
43254         * lib/nanosleep.c: Likewise.
43255         * lib/obstack.c: Likewise.
43256         * lib/obstack.h: Likewise.
43257         * lib/open-safer.c: Likewise.
43258         * lib/open.c: Likewise.
43259         * lib/openat-die.c: Likewise.
43260         * lib/openat-priv.h: Likewise.
43261         * lib/openat-proc.c: Likewise.
43262         * lib/openat.c: Likewise.
43263         * lib/openat.h: Likewise.
43264         * lib/pagealign_alloc.c: Likewise.
43265         * lib/pagealign_alloc.h: Likewise.
43266         * lib/physmem.c: Likewise.
43267         * lib/physmem.h: Likewise.
43268         * lib/pipe-safer.c: Likewise.
43269         * lib/pipe.c: Likewise.
43270         * lib/pipe.h: Likewise.
43271         * lib/posixtm.c: Likewise.
43272         * lib/posixtm.h: Likewise.
43273         * lib/posixver.c: Likewise.
43274         * lib/printf-frexp.c: Likewise.
43275         * lib/printf-frexp.h: Likewise.
43276         * lib/printf-frexpl.c: Likewise.
43277         * lib/printf-frexpl.h: Likewise.
43278         * lib/printf.c: Likewise.
43279         * lib/progname.c: Likewise.
43280         * lib/progname.h: Likewise.
43281         * lib/progreloc.c: Likewise.
43282         * lib/putenv.c: Likewise.
43283         * lib/quote.c: Likewise.
43284         * lib/quote.h: Likewise.
43285         * lib/quotearg.c: Likewise.
43286         * lib/quotearg.h: Likewise.
43287         * lib/raise.c: Likewise.
43288         * lib/readline.c: Likewise.
43289         * lib/readline.h: Likewise.
43290         * lib/readlink.c: Likewise.
43291         * lib/readtokens.c: Likewise.
43292         * lib/readtokens.h: Likewise.
43293         * lib/readtokens0.c: Likewise.
43294         * lib/readtokens0.h: Likewise.
43295         * lib/readutmp.c: Likewise.
43296         * lib/readutmp.h: Likewise.
43297         * lib/realloc.c: Likewise.
43298         * lib/relocwrapper.c: Likewise.
43299         * lib/rename-dest-slash.c: Likewise.
43300         * lib/rename.c: Likewise.
43301         * lib/rmdir.c: Likewise.
43302         * lib/rpmatch.c: Likewise.
43303         * lib/safe-read.c: Likewise.
43304         * lib/safe-read.h: Likewise.
43305         * lib/safe-write.c: Likewise.
43306         * lib/safe-write.h: Likewise.
43307         * lib/same-inode.h: Likewise.
43308         * lib/same.c: Likewise.
43309         * lib/same.h: Likewise.
43310         * lib/save-cwd.c: Likewise.
43311         * lib/save-cwd.h: Likewise.
43312         * lib/savedir.c: Likewise.
43313         * lib/savedir.h: Likewise.
43314         * lib/savewd.c: Likewise.
43315         * lib/savewd.h: Likewise.
43316         * lib/search.in.h: Likewise.
43317         * lib/setenv.c: Likewise.
43318         * lib/setenv.h: Likewise.
43319         * lib/settime.c: Likewise.
43320         * lib/sh-quote.c: Likewise.
43321         * lib/sh-quote.h: Likewise.
43322         * lib/sig2str.c: Likewise.
43323         * lib/sig2str.h: Likewise.
43324         * lib/signal.in.h: Likewise.
43325         * lib/signbitd.c: Likewise.
43326         * lib/signbitf.c: Likewise.
43327         * lib/signbitl.c: Likewise.
43328         * lib/sigprocmask.c: Likewise.
43329         * lib/sincosl.c: Likewise.
43330         * lib/sleep.c: Likewise.
43331         * lib/sprintf.c: Likewise.
43332         * lib/sqrtl.c: Likewise.
43333         * lib/stat-time.h: Likewise.
43334         * lib/stdio--.h: Likewise.
43335         * lib/stdio-safer.h: Likewise.
43336         * lib/stdlib--.h: Likewise.
43337         * lib/stdlib-safer.h: Likewise.
43338         * lib/stdlib.in.h: Likewise.
43339         * lib/stpcpy.c: Likewise.
43340         * lib/stpncpy.c: Likewise.
43341         * lib/strchrnul.c: Likewise.
43342         * lib/strcspn.c: Likewise.
43343         * lib/strerror.c: Likewise.
43344         * lib/strftime.c: Likewise.
43345         * lib/strftime.h: Likewise.
43346         * lib/striconveh.c: Likewise.
43347         * lib/striconveh.h: Likewise.
43348         * lib/striconveha.c: Likewise.
43349         * lib/striconveha.h: Likewise.
43350         * lib/stripslash.c: Likewise.
43351         * lib/strnlen1.c: Likewise.
43352         * lib/strnlen1.h: Likewise.
43353         * lib/strtod.c: Likewise.
43354         * lib/strtoimax.c: Likewise.
43355         * lib/strtok_r.c: Likewise.
43356         * lib/strtol.c: Likewise.
43357         * lib/strtoll.c: Likewise.
43358         * lib/strtoul.c: Likewise.
43359         * lib/strtoull.c: Likewise.
43360         * lib/sysexits.in.h: Likewise.
43361         * lib/tempname.c: Likewise.
43362         * lib/tempname.h: Likewise.
43363         * lib/timespec.h: Likewise.
43364         * lib/tls.c: Likewise.
43365         * lib/tls.h: Likewise.
43366         * lib/tmpdir.c: Likewise.
43367         * lib/tmpdir.h: Likewise.
43368         * lib/tmpfile-safer.c: Likewise.
43369         * lib/tmpfile.c: Likewise.
43370         * lib/trigl.c: Likewise.
43371         * lib/trigl.h: Likewise.
43372         * lib/trim.c: Likewise.
43373         * lib/trim.h: Likewise.
43374         * lib/trunc.c: Likewise.
43375         * lib/truncf.c: Likewise.
43376         * lib/truncl.c: Likewise.
43377         * lib/tsearch.c: Likewise.
43378         * lib/unicodeio.c: Likewise.
43379         * lib/unicodeio.h: Likewise.
43380         * lib/unistd--.h: Likewise.
43381         * lib/unistd-safer.h: Likewise.
43382         * lib/unistdio/ulc-fprintf.c: Likewise.
43383         * lib/unistdio/ulc-vfprintf.c: Likewise.
43384         * lib/unlinkdir.c: Likewise.
43385         * lib/unlinkdir.h: Likewise.
43386         * lib/unlocked-io.h: Likewise.
43387         * lib/unsetenv.c: Likewise.
43388         * lib/userspec.c: Likewise.
43389         * lib/utime.c: Likewise.
43390         * lib/utimecmp.c: Likewise.
43391         * lib/utimecmp.h: Likewise.
43392         * lib/utimens.c: Likewise.
43393         * lib/verify.h: Likewise.
43394         * lib/verror.c: Likewise.
43395         * lib/verror.h: Likewise.
43396         * lib/version-etc-fsf.c: Likewise.
43397         * lib/version-etc.c: Likewise.
43398         * lib/version-etc.h: Likewise.
43399         * lib/vfprintf.c: Likewise.
43400         * lib/vprintf.c: Likewise.
43401         * lib/vsprintf.c: Likewise.
43402         * lib/w32spawn.h: Likewise.
43403         * lib/wait-process.c: Likewise.
43404         * lib/wait-process.h: Likewise.
43405         * lib/wcwidth.c: Likewise.
43406         * lib/write-any-file.c: Likewise.
43407         * lib/xalloc-die.c: Likewise.
43408         * lib/xalloc.h: Likewise.
43409         * lib/xasprintf.c: Likewise.
43410         * lib/xgetcwd.c: Likewise.
43411         * lib/xgetcwd.h: Likewise.
43412         * lib/xgetdomainname.c: Likewise.
43413         * lib/xgetdomainname.h: Likewise.
43414         * lib/xgethostname.c: Likewise.
43415         * lib/xmalloc.c: Likewise.
43416         * lib/xmalloca.c: Likewise.
43417         * lib/xmalloca.h: Likewise.
43418         * lib/xmemcoll.c: Likewise.
43419         * lib/xnanosleep.c: Likewise.
43420         * lib/xreadlink.c: Likewise.
43421         * lib/xreadlink.h: Likewise.
43422         * lib/xsetenv.c: Likewise.
43423         * lib/xsetenv.h: Likewise.
43424         * lib/xstriconv.c: Likewise.
43425         * lib/xstriconv.h: Likewise.
43426         * lib/xstrndup.c: Likewise.
43427         * lib/xstrndup.h: Likewise.
43428         * lib/xstrtod.c: Likewise.
43429         * lib/xstrtod.h: Likewise.
43430         * lib/xstrtol-error.c: Likewise.
43431         * lib/xstrtol.c: Likewise.
43432         * lib/xstrtol.h: Likewise.
43433         * lib/xtime.h: Likewise.
43434         * lib/xvasprintf.c: Likewise.
43435         * lib/xvasprintf.h: Likewise.
43436         * lib/yesno.c: Likewise.
43437         * lib/yesno.h: Likewise.
43438         * posix-modules: Likewise.
43439         * tests/test-alloca-opt.c: Likewise.
43440         * tests/test-arcfour.c: Likewise.
43441         * tests/test-arctwo.c: Likewise.
43442         * tests/test-argmatch.c: Likewise.
43443         * tests/test-argp-2.sh: Likewise.
43444         * tests/test-argp.c: Likewise.
43445         * tests/test-arpa_inet.c: Likewise.
43446         * tests/test-array_list.c: Likewise.
43447         * tests/test-array_oset.c: Likewise.
43448         * tests/test-atexit.c: Likewise.
43449         * tests/test-avltree_list.c: Likewise.
43450         * tests/test-avltree_oset.c: Likewise.
43451         * tests/test-avltreehash_list.c: Likewise.
43452         * tests/test-base64.c: Likewise.
43453         * tests/test-binary-io.c: Likewise.
43454         * tests/test-byteswap.c: Likewise.
43455         * tests/test-c-ctype.c: Likewise.
43456         * tests/test-c-strcasecmp.c: Likewise.
43457         * tests/test-c-strcasestr.c: Likewise.
43458         * tests/test-c-strncasecmp.c: Likewise.
43459         * tests/test-c-strstr.c: Likewise.
43460         * tests/test-canonicalize-lgpl.c: Likewise.
43461         * tests/test-canonicalize.c: Likewise.
43462         * tests/test-carray_list.c: Likewise.
43463         * tests/test-ceilf.c: Likewise.
43464         * tests/test-ceill.c: Likewise.
43465         * tests/test-count-one-bits.c: Likewise.
43466         * tests/test-crc.c: Likewise.
43467         * tests/test-dirname.c: Likewise.
43468         * tests/test-fbufmode.c: Likewise.
43469         * tests/test-fcntl.c: Likewise.
43470         * tests/test-fflush.c: Likewise.
43471         * tests/test-floorf.c: Likewise.
43472         * tests/test-floorl.c: Likewise.
43473         * tests/test-fopen.c: Likewise.
43474         * tests/test-fprintf-posix.c: Likewise.
43475         * tests/test-fprintf-posix.h: Likewise.
43476         * tests/test-fpurge.c: Likewise.
43477         * tests/test-freadable.c: Likewise.
43478         * tests/test-freadahead.c: Likewise.
43479         * tests/test-freading.c: Likewise.
43480         * tests/test-freopen.c: Likewise.
43481         * tests/test-frexp.c: Likewise.
43482         * tests/test-frexpl.c: Likewise.
43483         * tests/test-fseek.c: Likewise.
43484         * tests/test-fseeko.c: Likewise.
43485         * tests/test-fseterr.c: Likewise.
43486         * tests/test-fstrcmp.c: Likewise.
43487         * tests/test-ftell.c: Likewise.
43488         * tests/test-ftello.c: Likewise.
43489         * tests/test-fwritable.c: Likewise.
43490         * tests/test-fwriting.c: Likewise.
43491         * tests/test-getaddrinfo.c: Likewise.
43492         * tests/test-getpass.c: Likewise.
43493         * tests/test-gettimeofday.c: Likewise.
43494         * tests/test-hmac-md5.c: Likewise.
43495         * tests/test-hmac-sha1.c: Likewise.
43496         * tests/test-iconv.c: Likewise.
43497         * tests/test-iconvme.c: Likewise.
43498         * tests/test-inttypes.c: Likewise.
43499         * tests/test-isnan.c: Likewise.
43500         * tests/test-isnanf.c: Likewise.
43501         * tests/test-isnanl-nolibm.c: Likewise.
43502         * tests/test-isnanl.c: Likewise.
43503         * tests/test-isnanl.h: Likewise.
43504         * tests/test-ldexpl.c: Likewise.
43505         * tests/test-linked_list.c: Likewise.
43506         * tests/test-linkedhash_list.c: Likewise.
43507         * tests/test-locale.c: Likewise.
43508         * tests/test-localename.c: Likewise.
43509         * tests/test-lock.c: Likewise.
43510         * tests/test-lseek.c: Likewise.
43511         * tests/test-malloca.c: Likewise.
43512         * tests/test-math.c: Likewise.
43513         * tests/test-mbscasecmp.c: Likewise.
43514         * tests/test-mbscasestr1.c: Likewise.
43515         * tests/test-mbscasestr2.c: Likewise.
43516         * tests/test-mbscasestr3.c: Likewise.
43517         * tests/test-mbscasestr4.c: Likewise.
43518         * tests/test-mbschr.c: Likewise.
43519         * tests/test-mbscspn.c: Likewise.
43520         * tests/test-mbsncasecmp.c: Likewise.
43521         * tests/test-mbspbrk.c: Likewise.
43522         * tests/test-mbspcasecmp.c: Likewise.
43523         * tests/test-mbsrchr.c: Likewise.
43524         * tests/test-mbsspn.c: Likewise.
43525         * tests/test-mbsstr1.c: Likewise.
43526         * tests/test-mbsstr2.c: Likewise.
43527         * tests/test-mbsstr3.c: Likewise.
43528         * tests/test-md5.c: Likewise.
43529         * tests/test-memmem.c: Likewise.
43530         * tests/test-netinet_in.c: Likewise.
43531         * tests/test-open.c: Likewise.
43532         * tests/test-printf-frexp.c: Likewise.
43533         * tests/test-printf-frexpl.c: Likewise.
43534         * tests/test-printf-posix.c: Likewise.
43535         * tests/test-printf-posix.h: Likewise.
43536         * tests/test-rbtree_list.c: Likewise.
43537         * tests/test-rbtree_oset.c: Likewise.
43538         * tests/test-rbtreehash_list.c: Likewise.
43539         * tests/test-read-file.c: Likewise.
43540         * tests/test-rijndael.c: Likewise.
43541         * tests/test-search.c: Likewise.
43542         * tests/test-signbit.c: Likewise.
43543         * tests/test-sleep.c: Likewise.
43544         * tests/test-snprintf-posix.c: Likewise.
43545         * tests/test-snprintf-posix.h: Likewise.
43546         * tests/test-snprintf.c: Likewise.
43547         * tests/test-sprintf-posix.c: Likewise.
43548         * tests/test-sprintf-posix.h: Likewise.
43549         * tests/test-stat-time.c: Likewise.
43550         * tests/test-stdbool.c: Likewise.
43551         * tests/test-stdint.c: Likewise.
43552         * tests/test-stdio.c: Likewise.
43553         * tests/test-stdlib.c: Likewise.
43554         * tests/test-stpncpy.c: Likewise.
43555         * tests/test-strcasestr.c: Likewise.
43556         * tests/test-striconv.c: Likewise.
43557         * tests/test-striconveh.c: Likewise.
43558         * tests/test-striconveha.c: Likewise.
43559         * tests/test-string.c: Likewise.
43560         * tests/test-sys_select.c: Likewise.
43561         * tests/test-sys_socket.c: Likewise.
43562         * tests/test-sys_stat.c: Likewise.
43563         * tests/test-sys_time.c: Likewise.
43564         * tests/test-sysexits.c: Likewise.
43565         * tests/test-time.c: Likewise.
43566         * tests/test-tls.c: Likewise.
43567         * tests/test-trunc.c: Likewise.
43568         * tests/test-truncf.c: Likewise.
43569         * tests/test-truncl.c: Likewise.
43570         * tests/test-unistd.c: Likewise.
43571         * tests/test-vasnprintf-posix.c: Likewise.
43572         * tests/test-vasnprintf-posix2.c: Likewise.
43573         * tests/test-vasnprintf.c: Likewise.
43574         * tests/test-vasprintf-posix.c: Likewise.
43575         * tests/test-vasprintf.c: Likewise.
43576         * tests/test-verify.c: Likewise.
43577         * tests/test-vfprintf-posix.c: Likewise.
43578         * tests/test-vprintf-posix.c: Likewise.
43579         * tests/test-vsnprintf-posix.c: Likewise.
43580         * tests/test-vsnprintf.c: Likewise.
43581         * tests/test-vsprintf-posix.c: Likewise.
43582         * tests/test-wchar.c: Likewise.
43583         * tests/test-wctype.c: Likewise.
43584         * tests/test-wcwidth.c: Likewise.
43585         * tests/test-xstrtol.c: Likewise.
43586         * tests/test-xvasprintf.c: Likewise.
43587         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
43588         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
43589         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43590         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43591         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43592         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
43593         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43594         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43595         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43596         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
43597         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43598         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43599         * tests/uniname/test-uninames.c: Likewise.
43600         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
43601         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
43602         * tests/unistdio/test-u16-printf1.h: Likewise.
43603         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
43604         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
43605         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
43606         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
43607         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
43608         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
43609         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
43610         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
43611         * tests/unistdio/test-u32-printf1.h: Likewise.
43612         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
43613         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
43614         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
43615         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
43616         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
43617         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
43618         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
43619         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
43620         * tests/unistdio/test-u8-printf1.h: Likewise.
43621         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
43622         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
43623         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
43624         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
43625         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
43626         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
43627         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
43628         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
43629         * tests/unistdio/test-ulc-printf1.h: Likewise.
43630         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
43631         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
43632         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
43633         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
43634         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
43635         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
43636         * tests/uniwidth/test-u16-strwidth.c: Likewise.
43637         * tests/uniwidth/test-u16-width.c: Likewise.
43638         * tests/uniwidth/test-u32-strwidth.c: Likewise.
43639         * tests/uniwidth/test-u32-width.c: Likewise.
43640         * tests/uniwidth/test-u8-strwidth.c: Likewise.
43641         * tests/uniwidth/test-u8-width.c: Likewise.
43642         * tests/uniwidth/test-uc_width.c: Likewise.
43643         * config/srclist-update: Likewise.
43644         (fixlicense): Update to GPLv3+.
43645
43646         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43647         * tests/test-tsearch.c: Change copyright notice.
43648
43649         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43650         * lib/c-strcaseeq.h: Change copyright notice.
43651         * lib/streq.h: Likewise.
43652         * lib/uniconv.h: Likewise.
43653         * lib/uniconv/u-conv-from-enc.h: Likewise.
43654         * lib/uniconv/u-conv-to-enc.h: Likewise.
43655         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43656         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43657         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43658         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43659         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43660         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43661         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43662         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43663         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43664         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43665         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43666         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43667         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
43668         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
43669         * lib/uniconv/u8-conv-from-enc.c: Likewise.
43670         * lib/uniconv/u8-conv-to-enc.c: Likewise.
43671         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
43672         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
43673         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
43674         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
43675         * lib/uniname.h: Likewise.
43676         * lib/uniname/uniname.c: Likewise.
43677         * lib/unistdio.h: Likewise.
43678         * lib/unistdio/u-asnprintf.h: Likewise.
43679         * lib/unistdio/u-asprintf.h: Likewise.
43680         * lib/unistdio/u-printf-args.c: Likewise.
43681         * lib/unistdio/u-printf-args.h: Likewise.
43682         * lib/unistdio/u-printf-parse.h: Likewise.
43683         * lib/unistdio/u-snprintf.h: Likewise.
43684         * lib/unistdio/u-sprintf.h: Likewise.
43685         * lib/unistdio/u-vasprintf.h: Likewise.
43686         * lib/unistdio/u-vsnprintf.h: Likewise.
43687         * lib/unistdio/u-vsprintf.h: Likewise.
43688         * lib/unistdio/u16-asnprintf.c: Likewise.
43689         * lib/unistdio/u16-asprintf.c: Likewise.
43690         * lib/unistdio/u16-printf-parse.c: Likewise.
43691         * lib/unistdio/u16-snprintf.c: Likewise.
43692         * lib/unistdio/u16-sprintf.c: Likewise.
43693         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
43694         * lib/unistdio/u16-u16-asprintf.c: Likewise.
43695         * lib/unistdio/u16-u16-snprintf.c: Likewise.
43696         * lib/unistdio/u16-u16-sprintf.c: Likewise.
43697         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
43698         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
43699         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
43700         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
43701         * lib/unistdio/u16-vasnprintf.c: Likewise.
43702         * lib/unistdio/u16-vasprintf.c: Likewise.
43703         * lib/unistdio/u16-vsnprintf.c: Likewise.
43704         * lib/unistdio/u16-vsprintf.c: Likewise.
43705         * lib/unistdio/u32-asnprintf.c: Likewise.
43706         * lib/unistdio/u32-asprintf.c: Likewise.
43707         * lib/unistdio/u32-printf-parse.c: Likewise.
43708         * lib/unistdio/u32-snprintf.c: Likewise.
43709         * lib/unistdio/u32-sprintf.c: Likewise.
43710         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
43711         * lib/unistdio/u32-u32-asprintf.c: Likewise.
43712         * lib/unistdio/u32-u32-snprintf.c: Likewise.
43713         * lib/unistdio/u32-u32-sprintf.c: Likewise.
43714         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
43715         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
43716         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
43717         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
43718         * lib/unistdio/u32-vasnprintf.c: Likewise.
43719         * lib/unistdio/u32-vasprintf.c: Likewise.
43720         * lib/unistdio/u32-vsnprintf.c: Likewise.
43721         * lib/unistdio/u32-vsprintf.c: Likewise.
43722         * lib/unistdio/u8-asnprintf.c: Likewise.
43723         * lib/unistdio/u8-asprintf.c: Likewise.
43724         * lib/unistdio/u8-printf-parse.c: Likewise.
43725         * lib/unistdio/u8-snprintf.c: Likewise.
43726         * lib/unistdio/u8-sprintf.c: Likewise.
43727         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
43728         * lib/unistdio/u8-u8-asprintf.c: Likewise.
43729         * lib/unistdio/u8-u8-snprintf.c: Likewise.
43730         * lib/unistdio/u8-u8-sprintf.c: Likewise.
43731         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
43732         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
43733         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
43734         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
43735         * lib/unistdio/u8-vasnprintf.c: Likewise.
43736         * lib/unistdio/u8-vasprintf.c: Likewise.
43737         * lib/unistdio/u8-vsnprintf.c: Likewise.
43738         * lib/unistdio/u8-vsprintf.c: Likewise.
43739         * lib/unistdio/ulc-asnprintf.c: Likewise.
43740         * lib/unistdio/ulc-asprintf.c: Likewise.
43741         * lib/unistdio/ulc-printf-parse.c: Likewise.
43742         * lib/unistdio/ulc-snprintf.c: Likewise.
43743         * lib/unistdio/ulc-sprintf.c: Likewise.
43744         * lib/unistdio/ulc-vasnprintf.c: Likewise.
43745         * lib/unistdio/ulc-vasprintf.c: Likewise.
43746         * lib/unistdio/ulc-vsnprintf.c: Likewise.
43747         * lib/unistdio/ulc-vsprintf.c: Likewise.
43748         * lib/unistr.h: Likewise.
43749         * lib/unistr/u-cpy-alloc.h: Likewise.
43750         * lib/unistr/u-cpy.h: Likewise.
43751         * lib/unistr/u-endswith.h: Likewise.
43752         * lib/unistr/u-move.h: Likewise.
43753         * lib/unistr/u-set.h: Likewise.
43754         * lib/unistr/u-startswith.h: Likewise.
43755         * lib/unistr/u-stpcpy.h: Likewise.
43756         * lib/unistr/u-stpncpy.h: Likewise.
43757         * lib/unistr/u-strcat.h: Likewise.
43758         * lib/unistr/u-strcpy.h: Likewise.
43759         * lib/unistr/u-strcspn.h: Likewise.
43760         * lib/unistr/u-strdup.h: Likewise.
43761         * lib/unistr/u-strlen.h: Likewise.
43762         * lib/unistr/u-strncat.h: Likewise.
43763         * lib/unistr/u-strncpy.h: Likewise.
43764         * lib/unistr/u-strnlen.h: Likewise.
43765         * lib/unistr/u-strpbrk.h: Likewise.
43766         * lib/unistr/u-strspn.h: Likewise.
43767         * lib/unistr/u-strstr.h: Likewise.
43768         * lib/unistr/u-strtok.h: Likewise.
43769         * lib/unistr/u16-check.c: Likewise.
43770         * lib/unistr/u16-chr.c: Likewise.
43771         * lib/unistr/u16-cmp.c: Likewise.
43772         * lib/unistr/u16-cpy-alloc.c: Likewise.
43773         * lib/unistr/u16-cpy.c: Likewise.
43774         * lib/unistr/u16-endswith.c: Likewise.
43775         * lib/unistr/u16-mblen.c: Likewise.
43776         * lib/unistr/u16-mbsnlen.c: Likewise.
43777         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43778         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43779         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43780         * lib/unistr/u16-mbtouc.c: Likewise.
43781         * lib/unistr/u16-mbtoucr.c: Likewise.
43782         * lib/unistr/u16-move.c: Likewise.
43783         * lib/unistr/u16-next.c: Likewise.
43784         * lib/unistr/u16-prev.c: Likewise.
43785         * lib/unistr/u16-set.c: Likewise.
43786         * lib/unistr/u16-startswith.c: Likewise.
43787         * lib/unistr/u16-stpcpy.c: Likewise.
43788         * lib/unistr/u16-stpncpy.c: Likewise.
43789         * lib/unistr/u16-strcat.c: Likewise.
43790         * lib/unistr/u16-strchr.c: Likewise.
43791         * lib/unistr/u16-strcmp.c: Likewise.
43792         * lib/unistr/u16-strcpy.c: Likewise.
43793         * lib/unistr/u16-strcspn.c: Likewise.
43794         * lib/unistr/u16-strdup.c: Likewise.
43795         * lib/unistr/u16-strlen.c: Likewise.
43796         * lib/unistr/u16-strmblen.c: Likewise.
43797         * lib/unistr/u16-strmbtouc.c: Likewise.
43798         * lib/unistr/u16-strncat.c: Likewise.
43799         * lib/unistr/u16-strncmp.c: Likewise.
43800         * lib/unistr/u16-strncpy.c: Likewise.
43801         * lib/unistr/u16-strnlen.c: Likewise.
43802         * lib/unistr/u16-strpbrk.c: Likewise.
43803         * lib/unistr/u16-strrchr.c: Likewise.
43804         * lib/unistr/u16-strspn.c: Likewise.
43805         * lib/unistr/u16-strstr.c: Likewise.
43806         * lib/unistr/u16-strtok.c: Likewise.
43807         * lib/unistr/u16-to-u32.c: Likewise.
43808         * lib/unistr/u16-to-u8.c: Likewise.
43809         * lib/unistr/u16-uctomb-aux.c: Likewise.
43810         * lib/unistr/u16-uctomb.c: Likewise.
43811         * lib/unistr/u32-check.c: Likewise.
43812         * lib/unistr/u32-chr.c: Likewise.
43813         * lib/unistr/u32-cmp.c: Likewise.
43814         * lib/unistr/u32-cpy-alloc.c: Likewise.
43815         * lib/unistr/u32-cpy.c: Likewise.
43816         * lib/unistr/u32-endswith.c: Likewise.
43817         * lib/unistr/u32-mblen.c: Likewise.
43818         * lib/unistr/u32-mbsnlen.c: Likewise.
43819         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43820         * lib/unistr/u32-mbtouc.c: Likewise.
43821         * lib/unistr/u32-mbtoucr.c: Likewise.
43822         * lib/unistr/u32-move.c: Likewise.
43823         * lib/unistr/u32-next.c: Likewise.
43824         * lib/unistr/u32-prev.c: Likewise.
43825         * lib/unistr/u32-set.c: Likewise.
43826         * lib/unistr/u32-startswith.c: Likewise.
43827         * lib/unistr/u32-stpcpy.c: Likewise.
43828         * lib/unistr/u32-stpncpy.c: Likewise.
43829         * lib/unistr/u32-strcat.c: Likewise.
43830         * lib/unistr/u32-strchr.c: Likewise.
43831         * lib/unistr/u32-strcmp.c: Likewise.
43832         * lib/unistr/u32-strcpy.c: Likewise.
43833         * lib/unistr/u32-strcspn.c: Likewise.
43834         * lib/unistr/u32-strdup.c: Likewise.
43835         * lib/unistr/u32-strlen.c: Likewise.
43836         * lib/unistr/u32-strmblen.c: Likewise.
43837         * lib/unistr/u32-strmbtouc.c: Likewise.
43838         * lib/unistr/u32-strncat.c: Likewise.
43839         * lib/unistr/u32-strncmp.c: Likewise.
43840         * lib/unistr/u32-strncpy.c: Likewise.
43841         * lib/unistr/u32-strnlen.c: Likewise.
43842         * lib/unistr/u32-strpbrk.c: Likewise.
43843         * lib/unistr/u32-strrchr.c: Likewise.
43844         * lib/unistr/u32-strspn.c: Likewise.
43845         * lib/unistr/u32-strstr.c: Likewise.
43846         * lib/unistr/u32-strtok.c: Likewise.
43847         * lib/unistr/u32-to-u16.c: Likewise.
43848         * lib/unistr/u32-to-u8.c: Likewise.
43849         * lib/unistr/u32-uctomb.c: Likewise.
43850         * lib/unistr/u8-check.c: Likewise.
43851         * lib/unistr/u8-chr.c: Likewise.
43852         * lib/unistr/u8-cmp.c: Likewise.
43853         * lib/unistr/u8-cpy-alloc.c: Likewise.
43854         * lib/unistr/u8-cpy.c: Likewise.
43855         * lib/unistr/u8-endswith.c: Likewise.
43856         * lib/unistr/u8-mblen.c: Likewise.
43857         * lib/unistr/u8-mbsnlen.c: Likewise.
43858         * lib/unistr/u8-mbtouc-aux.c: Likewise.
43859         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43860         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43861         * lib/unistr/u8-mbtouc.c: Likewise.
43862         * lib/unistr/u8-mbtoucr.c: Likewise.
43863         * lib/unistr/u8-move.c: Likewise.
43864         * lib/unistr/u8-next.c: Likewise.
43865         * lib/unistr/u8-prev.c: Likewise.
43866         * lib/unistr/u8-set.c: Likewise.
43867         * lib/unistr/u8-startswith.c: Likewise.
43868         * lib/unistr/u8-stpcpy.c: Likewise.
43869         * lib/unistr/u8-stpncpy.c: Likewise.
43870         * lib/unistr/u8-strcat.c: Likewise.
43871         * lib/unistr/u8-strchr.c: Likewise.
43872         * lib/unistr/u8-strcmp.c: Likewise.
43873         * lib/unistr/u8-strcpy.c: Likewise.
43874         * lib/unistr/u8-strcspn.c: Likewise.
43875         * lib/unistr/u8-strdup.c: Likewise.
43876         * lib/unistr/u8-strlen.c: Likewise.
43877         * lib/unistr/u8-strmblen.c: Likewise.
43878         * lib/unistr/u8-strmbtouc.c: Likewise.
43879         * lib/unistr/u8-strncat.c: Likewise.
43880         * lib/unistr/u8-strncmp.c: Likewise.
43881         * lib/unistr/u8-strncpy.c: Likewise.
43882         * lib/unistr/u8-strnlen.c: Likewise.
43883         * lib/unistr/u8-strpbrk.c: Likewise.
43884         * lib/unistr/u8-strrchr.c: Likewise.
43885         * lib/unistr/u8-strspn.c: Likewise.
43886         * lib/unistr/u8-strstr.c: Likewise.
43887         * lib/unistr/u8-strtok.c: Likewise.
43888         * lib/unistr/u8-to-u16.c: Likewise.
43889         * lib/unistr/u8-to-u32.c: Likewise.
43890         * lib/unistr/u8-uctomb-aux.c: Likewise.
43891         * lib/unistr/u8-uctomb.c: Likewise.
43892         * lib/unitypes.h: Likewise.
43893         * lib/uniwidth.h: Likewise.
43894         * lib/uniwidth/cjk.h: Likewise.
43895         * lib/uniwidth/u16-strwidth.c: Likewise.
43896         * lib/uniwidth/u16-width.c: Likewise.
43897         * lib/uniwidth/u32-strwidth.c: Likewise.
43898         * lib/uniwidth/u32-width.c: Likewise.
43899         * lib/uniwidth/u8-strwidth.c: Likewise.
43900         * lib/uniwidth/u8-width.c: Likewise.
43901         * lib/uniwidth/width.c: Likewise.
43902
43903 2007-10-07  Bruno Haible  <bruno@clisp.org>
43904
43905         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
43906         The file is still under LGPL (see modules/inttypes).
43907
43908 2007-10-06  Bruno Haible  <bruno@clisp.org>
43909
43910         * modules/trunc (Dependencies): Add 'extensions'.
43911         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
43912         Reported by Ben Pfaff <blp@gnu.org>.
43913
43914 2007-10-06  Bruno Haible  <bruno@clisp.org>
43915
43916         * modules/freopen-tests: New file.
43917         * tests/test-freopen.c: New file.
43918
43919         * modules/fopen-tests: New file.
43920         * tests/test-fopen.c: New file.
43921
43922         * modules/fopen: New file.
43923         * lib/fopen.c: New file.
43924         * m4/fopen.m4: New file.
43925         * modules/freopen: New file.
43926         * lib/freopen.c: New file.
43927         * m4/freopen.m4: New file.
43928         * lib/stdio.in.h (fopen, freopen): New declarations.
43929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
43930         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43931         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
43932         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43933         * doc/functions/fopen.texi: Mention the 'fopen' module.
43934         * doc/functions/freopen.texi: Mention the 'freopen' module.
43935
43936 2007-10-06  Bruno Haible  <bruno@clisp.org>
43937
43938         * modules/open-tests: New file.
43939         * tests/test-open.c: New file.
43940
43941         * modules/open: New file.
43942         * lib/open.c: New file.
43943         * m4/open.m4: New file.
43944         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
43945         lib/open.c does.
43946         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
43947         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
43948         macros.
43949         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
43950         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
43951         REPLACE_OPEN.
43952         * doc/functions/open.texi: Mention the 'open' module.
43953
43954 2007-10-04  Bruno Haible  <bruno@clisp.org>
43955
43956         * modules/ceill-tests: New file.
43957         * tests/test-ceill.c: New file.
43958
43959         * modules/ceill: New file.
43960         * lib/ceill.c: Replace entire file.
43961         * m4/ceill.m4: New file.
43962         * lib/math.in.h (ceill): Replace declaration.
43963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
43964         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
43965         * doc/functions/ceill.texi: Mention the 'ceill' module.
43966         * modules/mathl (Files): Remove lib/ceill.c.
43967         (Depends-on): Add ceill.
43968
43969 2007-10-04  Bruno Haible  <bruno@clisp.org>
43970
43971         * modules/ceilf-tests: New file.
43972         * tests/test-ceilf.c: New file.
43973
43974         * modules/ceilf: New file.
43975         * lib/ceil.c: New file.
43976         * lib/ceilf.c: New file.
43977         * m4/ceilf.m4: New file.
43978         * lib/math.in.h (ceilf): New declaration.
43979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
43980         HAVE_DECL_CEILF.
43981         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
43982         HAVE_DECL_CEILF.
43983         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
43984
43985 2007-10-04  Bruno Haible  <bruno@clisp.org>
43986
43987         * modules/floorl-tests: New file.
43988         * tests/test-floorl.c: New file.
43989
43990         * modules/floorl: New file.
43991         * lib/floorl.c: Replace entire file.
43992         * m4/floorl.m4: New file.
43993         * lib/math.in.h (floorl): Replace declaration.
43994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
43995         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
43996         * doc/functions/floorl.texi: Mention the 'floorl' module.
43997         * modules/mathl (Files): Remove lib/floorl.c.
43998         (Depends-on): Add floorl.
43999
44000 2007-10-04  Bruno Haible  <bruno@clisp.org>
44001
44002         * modules/floorf-tests: New file.
44003         * tests/test-floorf.c: New file.
44004
44005         * modules/floorf: New file.
44006         * lib/floor.c: New file.
44007         * lib/floorf.c: New file.
44008         * m4/floorf.m4: New file.
44009         * lib/math.in.h (floorf): New declaration.
44010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44011         HAVE_DECL_FLOORF.
44012         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44013         HAVE_DECL_FLOORF.
44014         * doc/functions/floorf.texi: Mention the 'floorf' module.
44015
44016 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44017             Bruno Haible  <bruno@clisp.org>
44018
44019         Advertise for the Git server instead of the CVS server.
44020         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44021         repository instead of the CVS one.
44022         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44023         about all VCS systems generically.
44024         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44025
44026 2007-10-04  Bruno Haible  <bruno@clisp.org>
44027
44028         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44029         means.
44030         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44031
44032 2007-10-04  Bruno Haible  <bruno@clisp.org>
44033
44034         * modules/truncl-tests: New file.
44035         * tests/test-truncl.c: New file.
44036
44037         * modules/truncl: New file.
44038         * lib/truncl.c: New file.
44039         * m4/truncl.m4: New file.
44040         * lib/math.in.h (truncl): New declaration.
44041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44042         HAVE_DECL_TRUNCL.
44043         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44044         HAVE_DECL_TRUNCL.
44045         * doc/functions/truncl.texi: Mention the 'truncl' module.
44046
44047 2007-10-04  Bruno Haible  <bruno@clisp.org>
44048
44049         * modules/truncf-tests: New file.
44050         * tests/test-truncf.c: New file.
44051
44052         * modules/truncf: New file.
44053         * lib/trunc.c: Make paramerizable through USE_* macros.
44054         * lib/truncf.c: New file.
44055         * m4/truncf.m4: New file.
44056         * lib/math.in.h (truncf): New declaration.
44057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44058         HAVE_DECL_TRUNCF.
44059         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44060         HAVE_DECL_TRUNCF.
44061         * doc/functions/truncf.texi: Mention the 'truncf' module.
44062
44063 2007-10-03  Bruno Haible  <bruno@clisp.org>
44064
44065         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44066         augmentation also for tests modules.
44067         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44068         * modules/atexit-tests (Makefile.am): Likewise.
44069         * modules/binary-io-tests (Makefile.am): Likewise.
44070         * modules/c-strcase-tests (Makefile.am): Likewise.
44071         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44072         * modules/canonicalize-tests (Makefile.am): Likewise.
44073         * modules/closein-tests (Makefile.am): Likewise.
44074         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44075         * modules/freadahead-tests (Makefile.am): Likewise.
44076         * modules/fseek-tests (Makefile.am): Likewise.
44077         * modules/fseeko-tests (Makefile.am): Likewise.
44078         * modules/ftell-tests (Makefile.am): Likewise.
44079         * modules/ftello-tests (Makefile.am): Likewise.
44080         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44081         * modules/isnanl-tests (Makefile.am): Likewise.
44082         * modules/lseek-tests (Makefile.am): Likewise.
44083         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44084         * modules/mbscasestr-tests (Makefile.am): Likewise.
44085         * modules/mbschr-tests (Makefile.am): Likewise.
44086         * modules/mbscspn-tests (Makefile.am): Likewise.
44087         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44088         * modules/mbspbrk-tests (Makefile.am): Likewise.
44089         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44090         * modules/mbsrchr-tests (Makefile.am): Likewise.
44091         * modules/mbsspn-tests (Makefile.am): Likewise.
44092         * modules/mbsstr-tests (Makefile.am): Likewise.
44093         * modules/printf-posix-tests (Makefile.am): Likewise.
44094         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44095         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44096         * modules/tsearch-tests (Makefile.am): Likewise.
44097         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44098         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44099         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44100         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44101         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44102         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44103         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44104         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44105         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44106         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44107         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44108         * modules/xstrtol-tests (Makefile.am): Likewise.
44109         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44110         * modules/yesno-tests (Makefile.am): Likewise.
44111
44112 2007-10-03  Bruno Haible  <bruno@clisp.org>
44113
44114         * modules/trunc-tests: New file.
44115         * tests/test-trunc.c: New file.
44116
44117         * modules/trunc: New file.
44118         * lib/trunc.c: New file.
44119         * m4/trunc.m4: New file.
44120         * lib/math.in.h (trunc): New declaration.
44121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44122         HAVE_DECL_TRUNC.
44123         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44124         HAVE_DECL_TRUNC.
44125         * doc/functions/trunc.texi: Mention the 'trunc' module.
44126
44127 2007-10-03  Bruno Haible  <bruno@clisp.org>
44128
44129         * tests/test-fpending.c: New file, mostly copied
44130         from coreutils/lib/t-fpending.c.
44131         * modules/fpending-tests: New file.
44132
44133 2007-10-03  Bruno Haible  <bruno@clisp.org>
44134
44135         Port the stdio extensions to QNX (untested).
44136         * lib/fseterr.c (fseterr): Add support for QNX.
44137         * lib/fbufmode.c (fbufmode): Likewise.
44138         * lib/freadable.c (freadable): Likewise.
44139         * lib/fwritable.c (fwritable): Likewise.
44140         * lib/freading.c (freading): Likewise.
44141         * lib/fwriting.c (fwriting): Likewise.
44142         * lib/freadahead.c (freadahed): Likewise.
44143         * lib/fpurge.c (fpurge): Likewise.
44144         * lib/fseeko.c (rpl_fseeko): Likewise.
44145
44146 2007-10-03  Bruno Haible  <bruno@clisp.org>
44147             Jim Meyering  <jim@meyering.net>
44148             Eric Blake  <ebb9@byu.net>
44149
44150         * doc/relocatable.texi: Use @command instead of @program.
44151
44152 2007-10-02  Jim Meyering  <jim@meyering.net>
44153
44154         Perform one more "_.h" -> ".in.h" substitution.
44155         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44156         instead of unistd_.h here, too.
44157
44158 2007-10-01  Bruno Haible  <bruno@clisp.org>
44159
44160         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44161         Needed for the alloca-opt module.
44162
44163 2007-09-30  Bruno Haible  <bruno@clisp.org>
44164
44165         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44166         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44167         alloca_.h.
44168         * lib/argz.in.h: Renamed from lib/argz_.h.
44169         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44170         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44171         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44172         byteswap_.h.
44173         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44174         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44175         dirent_.h.
44176         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
44177         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
44178         fcntl_.h.
44179         * lib/float.in.h: Renamed from lib/float_.h.
44180         * modules/float (Files, Makefile.am): Use float.in.h instead of
44181         float_.h.
44182         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
44183         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
44184         fnmatch_.h.
44185         * lib/getopt.in.h: Renamed from lib/getopt_.h.
44186         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
44187         getopt_.h.
44188         * lib/glob.in.h: Renamed from lib/glob_.h.
44189         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
44190         * lib/iconv.in.h: Renamed from lib/iconv_.h.
44191         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
44192         iconv_.h.
44193         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
44194         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
44195         inttypes_.h.
44196         * lib/locale.in.h: Renamed from lib/locale_.h.
44197         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
44198         locale_.h.
44199         * lib/math.in.h: Renamed from lib/math_.h.
44200         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
44201         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
44202         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
44203         of netinet_in_.h. Add dependency.
44204         * lib/poll.in.h: Renamed from lib/poll_.h.
44205         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
44206         * lib/search.in.h: Renamed from lib/search_.h.
44207         * modules/search (Files, Makefile.am): Use search.in.h instead of
44208         search_.h.
44209         * lib/signal.in.h: Renamed from lib/signal_.h.
44210         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
44211         _signal.h.
44212         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
44213         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
44214         stdbool_.h.
44215         * lib/stdint.in.h: Renamed from lib/stdint_.h.
44216         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
44217         stdint_.h.
44218         * lib/stdio.in.h: Renamed from lib/stdio_.h.
44219         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
44220         stdio_.h.
44221         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
44222         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
44223         stdlib_.h.
44224         * lib/string.in.h: Renamed from lib/string_.h.
44225         * modules/string (Files, Makefile.am): Use string.in.h instead of
44226         string_.h.
44227         * doc/gnulib-tool.texi (Initial import): Update.
44228         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
44229         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
44230         of sys_select_.h. Add dependency.
44231         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
44232         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
44233         of sys_socket_.h.
44234         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
44235         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
44236         sys_stat_.h.
44237         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
44238         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
44239         sys_time_.h.
44240         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
44241         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
44242         sysexits_.h.
44243         * lib/time.in.h: Renamed from lib/time_.h.
44244         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
44245         * lib/unistd.in.h: Renamed from lib/unistd_.h.
44246         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
44247         unistd_.h.
44248         * lib/wchar.in.h: Renamed from lib/wchar_.h.
44249         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
44250         wchar_.h.
44251         * lib/wctype.in.h: Renamed from lib/wctype_.h.
44252         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
44253         wctype_.h.
44254         * build-aux/bootstrap (slurp): Update.
44255         * lib/.cppi-disable: Update.
44256
44257 2007-09-30  Bruno Haible  <bruno@clisp.org>
44258
44259         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
44260         Needed on BeOS.
44261
44262 2007-09-30  Bruno Haible  <bruno@clisp.org>
44263
44264         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
44265
44266 2007-09-29  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
44269
44270 2007-09-29  Bruno Haible  <bruno@clisp.org>
44271
44272         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
44273         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
44274         * build-aux/install-reloc: Compile also areadlink.c.
44275         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
44276
44277 2007-09-29  Bruno Haible  <bruno@clisp.org>
44278
44279         * gnulib-tool (func_emit_initmacro_done): Indentation.
44280
44281 2007-09-29  Bruno Haible  <bruno@clisp.org>
44282
44283         * README: Add CVS checkout update instructions.
44284         Info from Bob Proulx <bob@proulx.com>.
44285
44286 2007-09-28  Eric Blake  <ebb9@byu.net>
44287
44288         Provide move-if-change.
44289         * build-aux/move-if-change: New file, based on best practice
44290         rather than any canonical upstream location.
44291
44292 2007-09-28  Jim Meyering  <jim@meyering.net>
44293
44294         Fix canonicalize loop-detection corner case.
44295         Do not attempt to stat the symlink values stored via seen_triple.
44296         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
44297         on linux-2.6.18, (but not 2.6.22).
44298         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
44299         triple_compare.  The former compares dev,ino,filename, while the latter
44300         would actually stat dirname(filename) when dev and ino were equal.
44301         * lib/hash-triple.c: Install <string.h>.
44302         (STREQ): Define.
44303         (triple_compare_ino_str): New function.
44304         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
44305
44306 2007-09-28  Eric Blake  <ebb9@byu.net>
44307
44308         Enforce that AC_REPLACE_FUNCS files exist.
44309         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
44310         override check for typos.
44311
44312         Fix test-closein on Solaris 10.
44313         * tests/test-closein.c (main): Don't assume stdin can be inherited
44314         closed on all systems.
44315         * tests/test-closein.sh: Likewise.
44316         Reported by Piotr Tarnowski.
44317
44318 2007-09-28  Jim Meyering  <jim@meyering.net>
44319
44320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
44321
44322 2007-09-27  Jim Meyering  <jim@meyering.net>
44323
44324         canonicalize: Avoid a false-positive cycle failure.
44325         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
44326         Sort.  Remove cycle-check.
44327         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
44328         not cycle-check.h.
44329         (seen_triple): New function.
44330         (canonicalize_filename_mode): Use it instead of cycle-check.
44331         * tests/test-canonicalize.c: Add a test for this bug.
44332         * tests/test-canonicalize.sh: Set up and run the test.
44333
44334         New module, file-set, from coreutils.
44335         * modules/file-set: Define it.
44336         * lib/file-set.c, lib/file-set.h: Implement.
44337
44338         New module, hash-triple, from coreutils.
44339         * modules/hash-triple: Define it.
44340         * lib/hash-triple.c, lib/hash-triple.h: Implement.
44341
44342 2007-09-25  Eric Blake  <ebb9@byu.net>
44343
44344         Fix strerror on Interix.
44345         * lib/string_.h (strerror): Declare replacement.
44346         * doc/functions/strerror.texi (strerror): Document the Interix
44347         shortcoming.
44348         * modules/string (Makefile.am): Support new hooks.
44349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
44350         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
44351         gl_FUNC_STRERROR_SEPARATE.
44352         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
44353         * lib/strerror.c (rpl_strerror): Provide replacement.
44354         * modules/strerror (Depends-on): Add string.
44355         (configure.ac): Detect use of module.
44356         * tests/test-strerror.c: New file.
44357         * modules/strerror-tests: New test module.
44358         * modules/argp (Depends-on): Add strerror.
44359         * modules/error (Depends-on): Likewise.
44360         Reported by Martin Koeppe.
44361
44362 2007-09-24  Bruno Haible  <bruno@clisp.org>
44363
44364         * README: Update git instructions.
44365
44366 2007-09-24  Eric Blake  <ebb9@byu.net>
44367
44368         Revert fpending breakage from 2007-09-08.
44369         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
44370         __fpending.c.
44371
44372 2007-09-24  Jim Meyering  <jim@meyering.net>
44373
44374         filenamecat.c: Add a test.
44375         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
44376         showing how the function works when DIR is the empty string.
44377
44378 2007-09-21  Simon Josefsson  <simon@josefsson.org>
44379
44380         * tests/test-canonicalize.sh: Turn on executable bit.
44381
44382 2007-09-19  Eric Blake  <ebb9@byu.net>
44383
44384         * README: Update CVS instructions.
44385
44386 2007-09-18  Bruno Haible  <bruno@clisp.org>
44387
44388         * modules/areadlink: New file.
44389         * lib/areadlink.h (areadlink): New declaration.
44390         * lib/areadlink.c: New file, based on lib/xreadlink.c.
44391
44392 2007-09-17  Jim Meyering  <jim@meyering.net>
44393
44394         * lib/savewd.c (ESTALE) [!defined]: Define.
44395         Reported to be required on Interix by Martin Koeppe.
44396
44397 2007-09-17  Bruno Haible  <bruno@clisp.org>
44398
44399         * gnulib-tool (func_version): Use $version.
44400
44401 2007-09-16  Bruno Haible  <bruno@clisp.org>
44402
44403         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
44404         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
44405         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
44406         Reported by Greg Schafer <gschafer@zip.com.au>.
44407
44408 2007-09-15  Bruno Haible  <bruno@clisp.org>
44409
44410         * gnulib-tool (sed): Try a little harder to make bash understand the
44411         alias.
44412         Reported by Bruce Korb <bruce.korb@gmail.com>.
44413
44414 2007-09-13  Eric Blake  <ebb9@byu.net>
44415
44416         * ChangeLog: Remove conflict markers.
44417
44418 2007-09-13  Simon Josefsson  <simon@josefsson.org>
44419
44420         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
44421         Reported by Bruno Haible <bruno@clisp.org>.
44422
44423 2007-09-12  Bruno Haible  <bruno@clisp.org>
44424
44425         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
44426         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
44427         is not defined.
44428
44429 2007-09-12  Eric Blake  <ebb9@byu.net>
44430
44431         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44432         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44433         Autoconf definition.
44434         * modules/euidaccess (Depends-on): Add extensions, for
44435         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44436         * modules/fnmatch (Depends-on): Likewise.
44437         * modules/getaddrinfo (Depends-on): Likewise.
44438         * modules/getdelim (Depends-on): Likewise.
44439         * modules/getline (Depends-on): Likewise.
44440         * modules/getsubopt (Depends-on): Likewise.
44441         * modules/gettext (Depends-on): Likewise.
44442         * modules/group-member (Depends-on): Likewise.
44443         * modules/mbchar (Depends-on): Likewise.
44444         * modules/memmem (Depends-on): Likewise.
44445         * modules/mempcpy (Depends-on): Likewise.
44446         * modules/memrchr (Depends-on): Likewise.
44447         * modules/pagealign_alloc (Depends-on): Likewise.
44448         * modules/readutmp (Depends-on): Likewise.
44449         * modules/stpcpy (Depends-on): Likewise.
44450         * modules/stpncpy (Depends-on): Likewise.
44451         * modules/strchrnul (Depends-on): Likewise.
44452         * modules/strndup (Depends-on): Likewise.
44453         * modules/strsep (Depends-on): Likewise.
44454         * modules/strverscmp (Depends-on): Likewise.
44455         * modules/vasprintf (Depends-on): Likewise.
44456         * modules/wcwidth (Depends-on): Likewise.
44457         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
44458         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
44459         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
44460         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
44461         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44462         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44463         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
44464         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44465         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
44466         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
44467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44468         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44469         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44470         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44471         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
44472         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44473         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44474         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44476         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44477         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44478         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44479         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44480         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
44481         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
44482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44483         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
44484         so that lock.m4 can be used in gettext without extensions module.
44485
44486 2007-09-11  Bruno Haible  <bruno@clisp.org>
44487
44488         * m4/isc-posix.m4: Remove file.
44489         Suggested by Eric Blake.
44490
44491 2007-09-11  Eric Blake  <ebb9@byu.net>
44492
44493         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
44494
44495 2007-09-10  Bruno Haible  <bruno@clisp.org>
44496
44497         * posix-modules: Fix typo in error message.
44498         Reported by Matt <mkraai@beckman.com>.
44499
44500 2007-09-09  Bruno Haible  <bruno@clisp.org>
44501
44502         * doc/functions/getdelim.texi: Update list of platforms lacking the
44503         function.
44504         * doc/functions/getline.texi: Likewise.
44505
44506 2007-09-09  Jim Meyering  <jim@meyering.net>
44507
44508         * lib/hash.c (hash_initialize): Detect calloc failure.
44509         Reported by Bruno Haible.
44510
44511 2007-09-09  Bruno Haible  <bruno@clisp.org>
44512
44513         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
44514         malloc or realloc fails.
44515
44516 2007-09-09  Bruno Haible  <bruno@clisp.org>
44517
44518         * modules/getcwd (Depends-on): Add malloc-posix.
44519         * modules/glob (Depends-on): Likewise.
44520         * modules/putenv (Depends-on): Likewise.
44521         * modules/strdup (Depends-on): Likewise.
44522         * modules/getdelim (Depends-on): Add realloc-posix.
44523         * modules/read-file (Depends-on): Likewise.
44524
44525 2007-09-09  Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
44528         (gl_FUNC_MALLOC_POSIX): Require it.
44529         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
44530         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
44531         * modules/realloc (Files): Add m4/malloc.m4.
44532         * modules/calloc (Files): Likewise.
44533
44534 2007-09-09  Bruno Haible  <bruno@clisp.org>
44535
44536         * modules/malloc-posix: New file.
44537         * modules/malloc (Depends-on): Add malloc-posix.
44538         * lib/malloc.c: Include errno.h.
44539         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
44540         and a POSIX-compatible malloc into a single function. Set ENOMEM
44541         when returning NULL.
44542         * m4/malloc.m4: New file.
44543         * doc/functions/malloc.texi: Mention the malloc-posix module.
44544         * lib/stdlib_.h (malloc): New declaration.
44545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44546         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
44547         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
44548         and HAVE_MALLOC_POSIX.
44549
44550 2007-09-09  Bruno Haible  <bruno@clisp.org>
44551
44552         * modules/realloc-posix: New file.
44553         * modules/realloc (Depends-on): Add realloc-posix.
44554         * lib/realloc.c: Include errno.h.
44555         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
44556         and a POSIX-compatible realloc into a single function. Set ENOMEM
44557         when returning NULL.
44558         * m4/realloc.m4: New file.
44559         * doc/functions/realloc.texi: Mention the realloc-posix module.
44560         * lib/stdlib_.h (realloc): New declaration.
44561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44562         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
44563         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
44564         and HAVE_REALLOC_POSIX.
44565
44566 2007-09-09  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/calloc-posix: New file.
44569         * modules/calloc (Depends-on): Add calloc-posix.
44570         * lib/calloc.c: Include errno.h.
44571         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
44572         and a POSIX-compatible calloc into a single function. Set ENOMEM
44573         when returning NULL.
44574         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
44575         * doc/functions/calloc.texi: Mention the calloc-posix module.
44576         * lib/stdlib_.h (calloc): New declaration.
44577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44578         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
44579         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
44580         and HAVE_CALLOC_POSIX.
44581
44582 2007-09-09  Bruno Haible  <bruno@clisp.org>
44583
44584         Allow for modules to show an arbitrary notice.
44585         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
44586         * gnulib-tool: New option --extract-notice.
44587         (func_usage): Document it.
44588         (sed_extract_prog): Update.
44589         (func_get_notice): New function.
44590         (func_modules_notice): New function.
44591         (func_import, func_create_testdir): Invoke it.
44592         Suggested by Jim Meyering.
44593
44594 2007-09-09  Bruno Haible  <bruno@clisp.org>
44595
44596         * gnulib-tool: New options --verbose, --quiet.
44597         (func_usage): Document them.
44598         (verbose): New variable.
44599         (func_execute_command): New function.
44600         (func_import): Don't show the module list and the file list if
44601         $verbose < 0.
44602         (func_create_testdir): Likewise. Use func_execute_command.
44603         (func_create_megatestdir): Use func_execute_command.
44604
44605 2007-09-08  Bruno Haible  <bruno@clisp.org>
44606
44607         * gnulib-tool (func_import): Prefer rsync over wget when available,
44608         for fetching the PO files.
44609
44610 2007-09-08  Bruno Haible  <bruno@clisp.org>
44611
44612         * posix-modules: New file. Portions copied from gnulib-tool.
44613         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
44614
44615 2007-09-08  Jim Meyering  <jim@meyering.net>
44616
44617         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
44618         * lib/fpending.h: Rename from __fpending.h.
44619         * lib/fpending.c: Rename from __fpending.c.
44620         Include "fpending.h", not "__fpending.h".
44621         * lib/__fpending.h, lib/__fpending.c: Remove files.
44622         * modules/fpending (Files): Reflect new file names.
44623         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
44624
44625 2007-09-08  Bruno Haible  <bruno@clisp.org>
44626
44627         * m4/inttypes-h.m4: Remove stub file.
44628
44629 2007-09-07  Simon Josefsson  <simon@josefsson.org>
44630
44631         * doc/headers/stdint.texi: Discuss #include_next issue.
44632
44633 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44634
44635         * build-aux/bootstrap: Remove obsolete comment about wget --help.
44636
44637 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44638
44639         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
44640         in variable name.
44641
44642 2007-09-03  Jim Meyering  <jim@meyering.net>
44643
44644         New module: git-version-gen.
44645         * modules/git-version-gen: New file.
44646
44647         Import changes from coreutils for bootstrap script.
44648
44649         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44650
44651         bootstrap: uses rsync to download the .po files
44652         * build-aux/bootstrap (po_download_command_format): New global.
44653         (download_po_files): Use rsync.
44654         (update_po_files): Don't remove .po files after download,
44655         so future rsync runs can take advantage of the copies.
44656
44657         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44658
44659         Solve the unnecessary-.po-file-regeneration problem once and for all.
44660         * build-aux/bootstrap (download_po_files): New function, renamed from
44661         get_translations.  Now, downloads, but doesn't update LINGUAS.
44662         (update_po_files): New function.
44663
44664         bootstrap: Ignore more.
44665         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44666         uniwidth to e.g., lib/.gitignore.
44667         (slurp): Handle the sys_stat_.h -> sys mapping, too.
44668
44669         * build-aux/bootstrap: New setting: vc_ignore.
44670         (insert_sorted_if_absent): Create $file if absent.
44671         Adapt to new, possibly empty, list: $vc_ignore.
44672
44673         bootstrap: generate more ignorable names
44674         * build-aux/bootstrap (slurp): When generating ignorable names,
44675         also map .sin to .sed, .gperf to .c, and .y to .c.
44676
44677 2007-09-03  Jim Meyering  <jim@meyering.net>
44678
44679         * build-aux/git-version-gen: New file, from coreutils.  For details, see
44680         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
44681
44682 2007-09-02  Bruno Haible  <bruno@clisp.org>
44683
44684         Fix mis-recognition of 'mcs' on QNX 6.
44685         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
44686         output contains the string "Mono".
44687         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
44688         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
44689
44690 2007-09-01  Bruno Haible  <bruno@clisp.org>
44691
44692         Fix collision between uniwidth/* and linebreak modules.
44693         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
44694         u32_width): Remove declarations.
44695         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
44696         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
44697         streq3, streq2, streq1, streq0): Remove functions.
44698         (STREQ): Remove macro.
44699         (is_cjk_encoding): Remove function.
44700         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
44701         (uc_width, u8_width, u16_width, u32_width): Remove functions.
44702         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
44703         * NEWS: Document the change.
44704
44705 2007-09-01  Bruno Haible  <bruno@clisp.org>
44706
44707         * lib/streq.h: Add double-inclusion guard.
44708
44709 2007-09-01  Karl Berry  <karl@gnu.org>
44710
44711         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
44712
44713 2007-08-28  Jim Meyering  <jim@meyering.net>
44714
44715         Rename mreadlink_with_size to areadlink_with_size.
44716         * NEWS: Document the change.
44717         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
44718         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
44719         * lib/mreadlink.h: Rename this to...
44720         * lib/areadlink.h: ...this.
44721         * modules/mreadlink-with-size: Rename this to...
44722         * modules/areadlink-with-size: ...this.
44723         * lib/canonicalize.c: Reflect the renaming.
44724         * modules/canonicalize: Likewise.
44725
44726 2007-08-26  Bruno Haible  <bruno@clisp.org>
44727
44728         * gnulib-tool (func_import): When deciding which files to remove,
44729         consider also dangling symbolic links.
44730         Reported by Eric Blake.
44731
44732 2007-08-26  Bruno Haible  <bruno@clisp.org>
44733
44734         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
44735
44736 2007-08-23  Simon Josefsson  <simon@josefsson.org>
44737
44738         * lib/readline.c: Don't include getline.h, the prototype is now
44739         found in stdio.h.
44740
44741 2007-08-23  Jim Meyering  <jim@meyering.net>
44742
44743         Getdelim touchup.
44744         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
44745         around the funlockfile call, since funlockfile never sets errno.
44746         Don't set errno upon failed realloc.
44747
44748 2007-08-22  Eric Blake  <ebb9@byu.net>
44749
44750         Getline touchups.
44751         * lib/getdelim.c (getdelim): Revert regression that required *n to
44752         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
44753         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
44754         getdelim, rather than whether implementation is missing.
44755         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
44756         * lib/stdio_.h (getline): Also declare if replacement is
44757         required.
44758         * doc/functions/getdelim.texi: New file.
44759         * doc/functions/getline.texi: Likewise.
44760         * doc/gnulib.texi (Function Substitutes): Add new files.
44761         Reported by Bruno Haible.
44762
44763 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
44764
44765         * users.txt: Add Guile.
44766
44767 2007-08-22  Eric Blake  <ebb9@byu.net>
44768
44769         * tests/test-getdelim.c (main): Use remove, not unlink.
44770         * tests/test-getline.c (main): Likewise.
44771
44772         Move getline and getdelim into stdio.h, per POSIX 200x.
44773         * modules/getline (Files): Remove getline.h.
44774         (Depends-on): Add stdio.
44775         (configure.ac): Add module indicator.
44776         * modules/getdelim (Files): Remove getdelim.h.
44777         (Depends-on): Add stdio.
44778         (configure.ac): Add module indicator.
44779         * modules/stdio (Makefile.am): Work with new indicators.
44780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44783         * lib/getdelim.h: Delete.
44784         * lib/getline.h: Delete.
44785         * lib/stdio_.h (getdelim, getline): Declare.
44786         * modules/getdelim-tests: New module.
44787         * modules/getline-tests: Likewise.
44788         * tests/test-getdelim.c: New file.
44789         * tests/test-getline.c: Likewise.
44790         * NEWS: Document the change.
44791         * lib/getline.c: Update choice of header.
44792         * lib/csharpcomp.c: Likewise.
44793         * lib/getpass.c: Likewise.
44794         * lib/javacomp.c: Likewise.
44795         * lib/javaversion.c: Likewise.
44796         * lib/yesno.c: Likewise.
44797         * lib/getdelim.c: Likewise.
44798         (getdelim): Set errno on failure, and avoid memory leak.
44799
44800 2007-08-19  Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/closein (Depends-on): Add freadahead.
44803         * lib/closein.c: Include freadahead.h.
44804         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44805         is zero.
44806
44807 2007-08-19  Bruno Haible  <bruno@clisp.org>
44808
44809         * modules/freadahead-tests: New file.
44810         * tests/test-freadahead.sh: New file.
44811         * tests/test-freadahead.c: New file.
44812
44813         * modules/freadahead: New file.
44814         * lib/freadahead.h: New file.
44815         * lib/freadahead.c: New file.
44816         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
44817         fbufmode, fpurge, freadable, fwritable.
44818
44819 2007-08-19  Eric Blake  <ebb9@byu.net>
44820
44821         Test yesno in combination with closein.
44822         * lib/yesno.c (yesno): Document use of stdin.
44823         * modules/yesno-tests (Files): New module.
44824         * tests/test-yesno.c (main): New file.
44825         * tests/test-yesno.sh: Likewise.
44826
44827 2007-08-19  Bruno Haible  <bruno@clisp.org>
44828
44829         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
44830         * lib/fseeko.c (rpl_fseeko): Likewise.
44831         * lib/fseterr.c (fseterr): Likewise.
44832
44833 2007-08-19  Bruno Haible  <bruno@clisp.org>
44834
44835         * tests/test-lseek.c (main): Disable a test for BeOS.
44836         * doc/functions/lseek.texi: Document the BeOS bug.
44837
44838 2007-08-19  Bruno Haible  <bruno@clisp.org>
44839             Eric Blake  <ebb9@byu.net>
44840
44841         * lib/lseek.c: Include <sys/stat.h>.
44842         (rpl_lseek): Add workaround code also for Unix platforms.
44843         Needed for BeOS.
44844         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
44845         * doc/functions/lseek.texi: Document BeOS definiency.
44846
44847 2007-08-18  Bruno Haible  <bruno@clisp.org>
44848
44849         * modules/fstrcmp-tests: New file.
44850         * tests/test-fstrcmp.c: New file.
44851
44852 2007-08-18  Bruno Haible  <bruno@clisp.org>
44853
44854         * modules/fstrcmp: New file, from GNU gettext with modifications.
44855         * lib/fstrcmp.h: New file, from GNU gettext.
44856         * lib/fstrcmp.c: New file, from GNU gettext.
44857         * MODULES.html.sh (String handling): Add fstrcmp.
44858
44859 2007-08-18  Bruno Haible  <bruno@clisp.org>
44860
44861         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
44862         'bool'.
44863         (diag, compareseq): Remove const from the ctxt argument.
44864         (USE_HEURISTIC): Undefine at the end.
44865
44866 2007-08-18  Jim Meyering  <jim@meyering.net>
44867
44868         New file: lib/idcache.h
44869         * NEWS: Mention the addition.
44870         * modules/idcache (Files): Add lib/idcache.h
44871         * lib/idcache.c: Include "idcache.h".
44872         Don't include <sys/types.h>.
44873         Add a FIXME comment.
44874         Move file-scoped "static" declarations to the top.
44875         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
44876
44877 2007-08-17  Bruno Haible  <bruno@clisp.org>
44878         and Paul Eggert  <eggert@cs.ucla.edu>
44879
44880         * MODULES.html.sh: Add diffseq.
44881         * modules/diffseq: New file.
44882         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
44883         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
44884
44885 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44886
44887         Import changes from coreutils for bootstrap script.
44888
44889         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44890
44891         * build-aux/bootstrap (slurp): Work even in environments where
44892         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
44893         current code does not slurp files whose names start with ".", and
44894         this looks like it might be a troublesome area.
44895
44896         2007-07-11  Jim Meyering  <jim@meyering.net>
44897
44898         If there's a GPL vN copyright comment, require that N == 3.
44899
44900         2007-07-08  Jim Meyering  <jim@meyering.net>
44901
44902         Run the coreutils-specific code only if tests/Makefile.am.in exists.
44903         * build-aux/bootstrap (mam_template): Move definition out of loop.
44904
44905         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
44906
44907         * build-aux/bootstrap (symlink_to_dir): Rename function from
44908         symlink_to_gnulib.  Add a directory parameter.  Update all
44909         callers.
44910         (cp_mark_as_generated): Also check for -- and link to -- files in
44911         gl/.
44912
44913         2007-07-08  Jim Meyering  <jim@meyering.net>
44914
44915         Adapt to deeper hierarchy in gnulib.
44916         * build-aux/bootstrap (symlink_to_dir): If the destination
44917         directory doesn't exist, create it. This is required at least for
44918         "lib/uniwidth/cjk.h".
44919
44920         2007-05-15  Jim Meyering  <jim@meyering.net>
44921
44922         * build-aux/bootstrap: Now that generated Makefile.am files
44923         are no longer under version control, they must be created at
44924         bootstrap time.
44925
44926 2007-08-14  Ben Pfaff  <blp@gnu.org>
44927
44928         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
44929
44930 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44931
44932         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
44933         given the changes below.
44934         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
44935         even on hosts that have padding bits beyond the supported 64.
44936
44937 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44938
44939         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
44940         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
44941         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
44942         depends on it.
44943         (xstrtol_error): Remove.
44944         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
44945         but with a different signature.
44946         (ATTRIBUTE_NORETURN, __attribute__): New macros.
44947         * lib/xstrtol-error.c: Include exitfail.h.
44948         (xstrtol_fatal): New function, with a different signature from the
44949         old xstrtol_error, so that the caller need not worry about passing
44950         in an exit status, or about storage management of the option argument.
44951         (xstrtol_error): Now a static function.  Redo signature to
44952         implement xstrtol_fatal.  Output the correct number of hyphens in
44953         front of the option so that the caller need not worry about
44954         storage management.
44955         (N_): New macro.
44956         (_): Remove; not used now.
44957         * modules/xstrtol: Depend on getopt.
44958         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
44959         of old STRTOL_FATAL_ERROR macro.
44960         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
44961         of test program.
44962         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
44963         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
44964
44965 2007-08-08  Eric Blake  <ebb9@byu.net>
44966
44967         * lib/xstrtol-error.c: Add missing include.
44968
44969         Move xstrtol messages into gnulib domain, when --pobase is used.
44970         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
44971         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
44972         * modules/xstrtol (Files): Distribute new file.
44973         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
44974         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
44975         * tests/test-xstrtol.c: ...into new file.
44976         * tests/test-xstrtoul.c: Also test xstrtoul.
44977         * tests/test-xstrtoimax.c: Also test xstrtoimax.
44978         * tests/test-xstrtoumax.c: Also test xstrtoumax.
44979         * tests/test-xstrtol.sh: Drive the tests.
44980         * tests/test-xstrtoimax.sh: Likewise.
44981         * tests/test-xstrtoumax.sh: Likewise.
44982         * modules/xstrtol-tests: New module.
44983         * modules/xstrtoimax-tests: Likewise.
44984         * modules/xstrtoumax-tests: Likewise.
44985
44986 2007-08-08  Jim Meyering  <jim@meyering.net>
44987
44988         New function: mfile_name_concat.
44989         * lib/filenamecat.c (mfile_name_concat): New function, just like
44990         file_name_concat, but return NULL upon failure rather than exiting
44991         with a diagnostic.
44992         * lib/filenamecat.h: Declare it.
44993
44994 2007-08-07  Bruno Haible  <bruno@clisp.org>
44995
44996         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
44997         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
44998         warning from gcc.
44999         Reported by Eric Blake.
45000
45001 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45002
45003         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45004         * modules/crypto/arcfour (License): Likewise.
45005         * modules/crypto/des-tests (License): Likewise.
45006         * modules/crypto/gc-arctwo-tests (License): Likewise.
45007         * modules/crypto/gc-des-tests (License): Likewise.
45008         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45009         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45010         * modules/crypto/gc-md2-tests (License): Likewise.
45011         * modules/crypto/gc-md4-tests (License): Likewise.
45012         * modules/crypto/gc-md5-tests (License): Likewise.
45013         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45014         * modules/crypto/gc-rijndael-tests (License): Likewise.
45015         * modules/crypto/gc-sha1-tests (License): Likewise.
45016         * modules/crypto/gc-tests (License): Likewise.
45017         * modules/crypto/hmac-md5 (License): Likewise.
45018         * modules/crypto/hmac-sha1 (License): Likewise.
45019         * modules/crypto/md2-tests (License): Likewise.
45020         * modules/crypto/md4-tests (License): Likewise.
45021         * modules/crypto/md5 (License): Likewise.
45022         * modules/crypto/rijndael (License): Likewise.
45023         * modules/crypto/sha1 (License): Likewise.
45024         * modules/memxor (License): Likewise.
45025
45026 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45027         and Bruno Haible  <bruno@clisp.org>
45028
45029         * NEWS: Describe interface changes to human, xstrtol.
45030         * lib/human.h: Include <xstrtol.h>.
45031         (human_options): Return enum strtol_error, not int.  Remove
45032         bool arg; take int * instead.
45033         * lib/human.c: Don't include "gettext.h".
45034         (_): Remove; no longer used.
45035         Don't include <xstrtol.h>, since human.h does it.
45036         (human_options): Adjust to abovementioned interface changes.
45037         Do not report error to stderr; that's now the caller's
45038         responsibility.
45039         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45040         interface change.
45041         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45042         Str, Argument_type_string.  All uses changed.  Put " argument"
45043         in diagnostics to make them clearer.  Change wording of suffix
45044         message for clarity.
45045         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45046         Argument_type_string.
45047         (STRTOL_FATAL_WARN): Remove; no longer used.
45048         * modules/human (Depends-on): Remove gettext-h.
45049
45050 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45051
45052         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45053
45054 2007-07-31  Bruno Haible  <bruno@clisp.org>
45055
45056         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45057         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45058         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45059
45060 2007-07-31  Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45063         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45064
45065 2007-07-30  Bruno Haible  <bruno@clisp.org>
45066
45067         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45068         * modules/c-ctype (License): Likewise.
45069         * modules/c-strcase (License): Likewise.
45070         * modules/check-version (License): Likewise.
45071         * modules/iconv (License): Likewise.
45072         * modules/iconv_open (License): Likewise.
45073         * modules/read-file (License): Likewise.
45074         * modules/striconv (License): Likewise.
45075         * modules/strverscmp (License): Likewise.
45076         * modules/vasprintf (License): Likewise.
45077         * modules/crypto/des (License): Likewise.
45078         * modules/crypto/gc (License): Likewise.
45079         * modules/crypto/gc-arcfour (License): Likewise.
45080         * modules/crypto/gc-arctwo (License): Likewise.
45081         * modules/crypto/gc-des (License): Likewise.
45082         * modules/crypto/gc-hmac-md5 (License): Likewise.
45083         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45084         * modules/crypto/gc-md2 (License): Likewise.
45085         * modules/crypto/gc-md4 (License): Likewise.
45086         * modules/crypto/gc-md5 (License): Likewise.
45087         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45088         * modules/crypto/gc-random (License): Likewise.
45089         * modules/crypto/gc-rijndael (License): Likewise.
45090         * modules/crypto/gc-sha1 (License): Likewise.
45091         * modules/crypto/md2 (License): Likewise.
45092         * modules/crypto/md4 (License): Likewise.
45093
45094 2007-07-30  Jim Meyering  <jim@meyering.net>
45095
45096         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45097         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45098         it has valid stat data.  This bug would cause du not to count the
45099         sizes of inaccessible directories.
45100         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45101         in <http://bugzilla.redhat.com/250077>.
45102
45103 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45104             Bruno Haible  <bruno@clisp.org>
45105
45106         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45107         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45108         #include_next, gives a diagnostic about it, but reports no error in
45109         the exit code.
45110         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45111
45112 2007-07-24  Ben Pfaff  <blp@gnu.org>
45113
45114         Improve name: "count-one-bits" is better than "popcount".
45115         * MODULES.html.sh: Update name.
45116         * lib/popcount.h: Renamed lib/count-one-bits.h.
45117         (popcount): Renamed count_one_bits.
45118         (popcountl): Renamed count_one_bits_l.
45119         (popcountll): Renamed count_one_bits_ll.
45120         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45121         * modules/popcount: Renamed module/count-one-bits.
45122         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45123         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45124
45125 2007-07-23  Ben Pfaff  <blp@gnu.org>
45126
45127         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45128         better code generation, and add U to large constants to avoid
45129         warnings, in non-GCC case.
45130         Suggested by Bruno Haible.
45131
45132 2007-07-23  Ben Pfaff  <blp@gnu.org>
45133
45134         * lib/popcount.h: Use verify_true instead of if...abort.
45135         * modules/popcount: Depend on verify module.
45136         Suggested by Jim Meyering.
45137
45138 2007-07-23  Bruno Haible  <bruno@clisp.org>
45139
45140         * gnulib-tool (func_import): Create a .cvsignore file also when the
45141         directory is not yet in CVS but the toplevel directory is. When
45142         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45143         Reported by Karl Berry.
45144
45145 2007-07-22  Ben Pfaff  <blp@gnu.org>
45146
45147         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45148         case.
45149         Suggested by Eric Blake.
45150
45151 2007-07-22  Ben Pfaff  <blp@gnu.org>
45152
45153         New module: popcount.
45154         * MODULES.html.sh: Add popcount.
45155         * modules/popcount: New file.
45156         * modules/popcount-tests: New file.
45157         * tests/test-popcount.c: New file.
45158         * lib/popcount.h: New file.
45159         * m4/popcount.m4: New file.
45160
45161 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45162
45163         * build-aux/announce-gen: Update to GPLv3.
45164
45165         * build-aux/config.guess: Update from config.
45166
45167 2007-07-21  Bruno Haible  <bruno@clisp.org>
45168
45169         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45170         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45171
45172 2007-07-20  Jim Meyering  <jim@meyering.net>
45173
45174         * check-module: Diagnose a self-dependency.
45175
45176 2007-07-19  Bruno Haible  <bruno@clisp.org>
45177
45178         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
45179         empty.
45180         Reported by Eric Blake.
45181
45182 2007-07-18  Bruno Haible  <bruno@clisp.org>
45183
45184         * gnulib-tool: New options --po-base, --po-domain.
45185         (func_usage): Document them.
45186         (pobase, po_domain): New variables.
45187         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
45188         DEFAULT_TEXT_DOMAIN.
45189         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
45190         (func_import): Consider pobase and po_domain. Create a po/ directory.
45191         (func_create_testdir): Set pobase and po_domain to empty.
45192         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
45193         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
45194
45195 2007-07-18  Bruno Haible  <bruno@clisp.org>
45196
45197         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45198         EXTRA_DIST augmentation for files in build-aux/.
45199
45200 2007-07-16  Bruno Haible  <bruno@clisp.org>
45201
45202         * modules/lseek (License): Use the synonymous term "LGPLv2+".
45203         * modules/getdelim (License): Likewise.
45204
45205 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45206
45207         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
45208         * modules/d-type (License): Likewise.
45209         * modules/extensions (License): Likewise.
45210         * modules/fnmatch (License): Likewise.
45211         * modules/fseeko (License): Likewise.
45212         * modules/getaddrinfo (License): Likewise.
45213         * modules/getline (License): Likewise.
45214         * modules/getlogin_r (License): Likewise.
45215         * modules/getpass (License): Likewise.
45216         * modules/gettimeofday (License): Likewise.
45217         * modules/glob (License): Likewise.
45218         * modules/inet_ntop (License): Likewise.
45219         * modules/malloc (License): Likewise.
45220         * modules/malloca (License): Likewise.
45221         * modules/memmem (License): Likewise.
45222         * modules/mempcpy (License): Likewise.
45223         * modules/memset (License): Likewise.
45224         * modules/minmax (License): Likewise.
45225         * modules/mktime (License): Likewise.
45226         * modules/netinet_in (License): Likewise.
45227         * modules/pathmax (License): Likewise.
45228         * modules/poll (License): Likewise.
45229         * modules/regex (License): Likewise.
45230         * modules/snprintf (License): Likewise.
45231         * modules/stdbool (License): Likewise.
45232         * modules/stdint (License): Likewise.
45233         * modules/stdio (License): Likewise.
45234         * modules/strcase (License): Likewise.
45235         * modules/strcasestr (License): Likewise.
45236         * modules/strdup (License): Likewise.
45237         * modules/string (License): Likewise.
45238         * modules/strndup (License): Likewise.
45239         * modules/strnlen (License): Likewise.
45240         * modules/strpbrk (License): Likewise.
45241         * modules/strptime (License): Likewise.
45242         * modules/strsep (License): Likewise.
45243         * modules/sys_select (License): Likewise.
45244         * modules/sys_socket (License): Likewise.
45245         * modules/sys_stat (License): Likewise.
45246         * modules/sys_time (License): Likewise.
45247         * modules/time (License): Likewise.
45248         * modules/time_r (License): Likewise.
45249         * modules/timegm (License): Likewise.
45250         * modules/unistd (License): Likewise.
45251         * modules/vsnprintf (License): Likewise.
45252         * modules/wctype (License): Likewise.
45253
45254 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45255
45256         * modules/argz (License): LGPLv2+.
45257
45258 2007-07-15  Karl Berry  <karl@gnu.org>
45259
45260         * doc/gnulib.texi: revise node structure per new fdl.texi.
45261
45262 2007-07-14  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
45265         the output file.
45266         * lib/uniname/uninames.h: Regenerated.
45267
45268 2007-07-14  Karl Berry  <karl@gnu.org>
45269
45270         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
45271         omitting sectioning and index commands.
45272
45273 2007-07-13  Bruno Haible  <bruno@clisp.org>
45274
45275         New gnulib-tool option --more-symlinks.
45276         * gnulib-tool (func_usage): Document --more-symlinks.
45277         (do_copyrights): New variable.
45278         Recognize option --more-symlinks.
45279         (func_import): Don't add a copyright notice transform to
45280         sed_transform_lib_file if do_copyrights is empty.
45281
45282 2007-07-13  Bruno Haible  <bruno@clisp.org>
45283
45284         * lib/vasnprintf.c (decimal_point_char): Define also if
45285         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
45286         && !NEED_PRINTF_DIRECTIVE_A.
45287         Reported by Clemens Koller <clemens.koller@anagramm.de> via
45288         Gary V. Vaughan <gary@gnu.org>.
45289
45290 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
45291
45292         * lib/inttypes_.h: Undo previous change, since it was fixed
45293         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
45294
45295 2007-07-13  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
45298         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
45299
45300 2007-07-13  Jim Meyering  <jim@meyering.net>
45301
45302         df: Don't fail for Tru64's "file-on-file mount".
45303         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
45304         so we fall through and use statfs instead.  Details here:
45305         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45306         Reported by Albert Chin.
45307
45308 2007-07-13  Bruno Haible  <bruno@clisp.org>
45309
45310         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
45311         * modules/configmake (License): Likewise.
45312         * modules/gettext (License): Likewise.
45313         * modules/gettext-h (License): Likewise.
45314         * modules/include_next (License): Likewise.
45315         * modules/link-warning (License): Likewise.
45316         * modules/localcharset (License): Likewise.
45317         * modules/localename (License): Likewise.
45318         * modules/lock (License): Likewise.
45319         * modules/relocatable-lib-lgpl (License): Likewise.
45320         * modules/size_max (License): Likewise.
45321         * modules/vasnprintf (License): Likewise.
45322         * modules/wchar (License): Likewise.
45323         * modules/xsize (License): Likewise.
45324
45325 2007-07-13  Bruno Haible  <bruno@clisp.org>
45326
45327         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
45328         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
45329
45330 2007-07-12  Bruno Haible  <bruno@clisp.org>
45331
45332         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
45333         in the modules files.
45334
45335 2007-07-11  Karl Berry  <karl@gnu.org>
45336
45337         * MODULES.html.sh (func_module): use
45338          sed -e '\|^'"${includefile}"'$|d'
45339          instead of /.../d, to avoid errors on $includefile's containing /.
45340
45341 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45342
45343         * gnulib-tool (func_import): Avoid duplication of --avoid
45344         statements
45345         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
45346         names to `_' in variable names.
45347
45348 2007-07-10  Eric Blake  <ebb9@byu.net>
45349
45350         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
45351         * NEWS: Document this change.
45352
45353 2007-07-08  Bruno Haible  <bruno@clisp.org>
45354
45355         Update to Unicode 5.0.
45356         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
45357         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
45358         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
45359         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
45360         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
45361         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
45362         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
45363         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
45364         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
45365         U+10A3F, U+1D242..U+1D244.
45366         (nonspacing_table_ind): Update.
45367         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
45368         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
45369
45370 2007-07-08  Bruno Haible  <bruno@clisp.org>
45371
45372         Update to Unicode 5.0.
45373         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
45374         code transform. Extend the name index field of unicode_name_to_code and
45375         unicode_code_to_name from 16 to 24 bits.
45376         * lib/uniname/uniname.c (unicode_character_name,
45377         unicode_name_character): Add the range 0x12xxx to the code transform.
45378         * lib/uniname/uninames.h: Regenerated.
45379         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
45380
45381 2007-07-07  Bruno Haible  <bruno@clisp.org>
45382
45383         * modules/wcwidth-tests: New file.
45384         * tests/test-wcwidth.c: New file.
45385
45386         Work around MacOS X wcwidth() bug.
45387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
45388         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
45389         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
45390         original wcwidth in non-UTF-8 locales.
45391         * modules/wcwidth (Depends-on): Add localcharset, streq,
45392         uniwidth/width.
45393         * doc/functions/wcwidth.texi: Update.
45394
45395 2007-07-07  Bruno Haible  <bruno@clisp.org>
45396
45397         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
45398         (wcwidth): New declaration.
45399         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
45400         macros.
45401         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
45402         here. Prepare for creating <wchar.h> unconditionally.
45403         * modules/wchar (Depends-on): Add link-warning.
45404         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
45405         REPLACE_WCWIDTH, and GL_LINK_WARNING.
45406         * lib/wcwidth.h: Remove file.
45407         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
45408         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
45409         * modules/wcwidth (Files): Remove lib/wcwidth.h.
45410         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
45411         (Include): Replace wcwidth.h with <wchar.h>.
45412         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
45413         * lib/mbchar.h: Don't include wcwidth.h.
45414         * lib/mbswidth.c: Likewise.
45415         * NEWS: Mention the change.
45416
45417 2007-07-07  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
45420         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
45421         definition with an external declaration.
45422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
45423         defined as a function. Remove AC_C_INLINE requirement.
45424         * modules/wcwidth (Files): Add lib/wcwidth.c.
45425         (Makefile.am): Remove redundant statement.
45426
45427 2007-07-07  Bruno Haible  <bruno@clisp.org>
45428
45429         * MODULES.html.sh (Unicode string functions): Add the new modules.
45430
45431         * tests/uniwidth/test-u32-strwidth.c: New file.
45432         * modules/uniwidth/u32-strwidth-tests: New file.
45433
45434         * lib/uniwidth/u32-strwidth.c: New file.
45435         * modules/uniwidth/u32-strwidth: New file.
45436
45437         * tests/uniwidth/test-u16-strwidth.c: New file.
45438         * modules/uniwidth/u16-strwidth-tests: New file.
45439
45440         * lib/uniwidth/u16-strwidth.c: New file.
45441         * modules/uniwidth/u16-strwidth: New file.
45442
45443         * tests/uniwidth/test-u8-strwidth.c: New file.
45444         * modules/uniwidth/u8-strwidth-tests: New file.
45445
45446         * lib/uniwidth/u8-strwidth.c: New file.
45447         * modules/uniwidth/u8-strwidth: New file.
45448
45449         * tests/uniwidth/test-u32-width.c: New file.
45450         * modules/uniwidth/u32-width-tests: New file.
45451
45452         * lib/uniwidth/u32-width.c: New file.
45453         * modules/uniwidth/u32-width: New file.
45454
45455         * tests/uniwidth/test-u16-width.c: New file.
45456         * modules/uniwidth/u16-width-tests: New file.
45457
45458         * lib/uniwidth/u16-width.c: New file.
45459         * modules/uniwidth/u16-width: New file.
45460
45461         * tests/uniwidth/test-u8-width.c: New file.
45462         * modules/uniwidth/u8-width-tests: New file.
45463
45464         * lib/uniwidth/u8-width.c: New file.
45465         * modules/uniwidth/u8-width: New file.
45466
45467         * tests/uniwidth/test-uc_width.c: New file.
45468         * modules/uniwidth/width-tests: New file.
45469
45470         * lib/uniwidth/width.c: New file, from GNU libiconv.
45471         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
45472         * modules/uniwidth/width: New file.
45473
45474         * lib/uniwidth.h: New file, from GNU libiconv.
45475         * modules/uniwidth/base: New file.
45476
45477 2007-07-07  Bruno Haible  <bruno@clisp.org>
45478
45479         * lib/uniname.h: New file, from GNU gettext.
45480         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
45481         * lib/uniname/uninames.h: New file, from GNU gettext.
45482         * lib/uniname/uniname.c: New file, from GNU gettext.
45483         * tests/uniname/test-uninames.sh: New file.
45484         * tests/uniname/test-uninames.c: New file, from GNU gettext.
45485         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
45486         * modules/uniname/base: New file.
45487         * modules/uniname/uniname: New file.
45488         * modules/uniname/uniname-tests: New file.
45489         * MODULES.html.sh (Unicode string functions): Add the new modules.
45490
45491 2007-07-06  Bruno Haible  <bruno@clisp.org>
45492
45493         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
45494
45495 2007-07-06  Bruno Haible  <bruno@clisp.org>
45496
45497         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
45498         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
45499         includes <cygwin/sys_time.h> which includes <sys/select.h> which
45500         include <sys/time.h>.
45501         Reported by Eric Blake.
45502
45503 2007-07-06  Eric Blake  <ebb9@byu.net>
45504
45505         Fix testing canonicalize on cygwin.
45506         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45507         Revert patch from 2007-06-19.
45508         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
45509         canonicalize module is also in use.
45510         * tests/test-canonicalize.c: New file.
45511         * tests/test-canonicalize.sh: Likewise.
45512         * modules/canonicalize-tests: Likewise.
45513
45514 2007-07-06  Jim Meyering  <jim@meyering.net>
45515
45516         * lib/getugroups.c (getugroups): Detect getgrent failure.
45517         Adjust comment to reflect reality: this function may return -1.
45518
45519 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
45520
45521         * build-aux/bootstrap (TP_URL,get_translations): Update to use
45522         the new TP address.
45523         (usage): Fix typo
45524         (gnulib_mk): New variable.
45525
45526 2007-07-05  Jim Meyering  <jim@meyering.net>
45527
45528         Don't let endgrent clobber errno, no matter how improbable.
45529         * lib/getugroups.c (getugroups): Save and restore errno around
45530         endgrent call.
45531
45532         Close the group DB even when failing with 2^31 or more members.
45533         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
45534
45535 2007-07-04  Jim Meyering  <jim@meyering.net>
45536
45537         * lib/getugroups.h: New file.
45538         * lib/getugroups.c: Include "getugroups.h".
45539         Remove uses of "register" keyword.
45540         Move local variable, "cp", down into scope where used.
45541         Give "username" parameter the "const" attribute.
45542         * modules/getugroups (Files): Add lib/getugroups.h
45543
45544 2007-07-04  Karl Berry  <karl@gnu.org>
45545
45546         * MODULES.html.sh (func_all_modules): Complete rename of
45547         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
45548
45549 2007-07-02  Bruno Haible  <bruno@clisp.org>
45550
45551         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
45552         mode, when inttypes.h comes from gnulib.
45553         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45554
45555 2007-07-02  Simon Josefsson  <simon@josefsson.org>
45556
45557         * NEWS: Mention lgpl module name change.
45558
45559         * modules/lgpl-2.1: Renamed from lgpl.
45560
45561         * NEWS: Mention gpl module name change.
45562
45563         * modules/gpl-3.0: New file, based on gpl-2.0.
45564
45565         * modules/gpl-2.0: Renamed from gpl.
45566
45567         * modules/gpl: Fix filename, doc/gpl.texi is now found at
45568         doc/gpl-2.0.texi.
45569
45570 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45571
45572         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
45573         #define __STDC_LIMIT_MACROS temporarily while including
45574         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
45575         Problem reported by Joel E. Denny in
45576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
45577
45578 2007-07-01  Bruno Haible  <bruno@clisp.org>
45579
45580         * lib/unistdio.h: New file.
45581         * lib/unistdio/u-asnprintf.h: New file.
45582         * lib/unistdio/u-asprintf.h: New file.
45583         * lib/unistdio/u-printf-args.c: New file.
45584         * lib/unistdio/u-printf-args.h: New file.
45585         * lib/unistdio/u-printf-parse.h: New file.
45586         * lib/unistdio/u-snprintf.h: New file.
45587         * lib/unistdio/u-sprintf.h: New file.
45588         * lib/unistdio/u-vasprintf.h: New file.
45589         * lib/unistdio/u-vsnprintf.h: New file.
45590         * lib/unistdio/u-vsprintf.h: New file.
45591         * lib/unistdio/ulc-asnprintf.c: New file.
45592         * lib/unistdio/ulc-asprintf.c: New file.
45593         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
45594         * lib/unistdio/ulc-printf-parse.c: New file.
45595         * lib/unistdio/ulc-snprintf.c: New file.
45596         * lib/unistdio/ulc-sprintf.c: New file.
45597         * lib/unistdio/ulc-vasnprintf.c: New file.
45598         * lib/unistdio/ulc-vasprintf.c: New file.
45599         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
45600         * lib/unistdio/ulc-vsnprintf.c: New file.
45601         * lib/unistdio/ulc-vsprintf.c: New file.
45602         * lib/unistdio/u8-asnprintf.c: New file.
45603         * lib/unistdio/u8-asprintf.c: New file.
45604         * lib/unistdio/u8-printf-parse.c: New file.
45605         * lib/unistdio/u8-snprintf.c: New file.
45606         * lib/unistdio/u8-sprintf.c: New file.
45607         * lib/unistdio/u8-vasnprintf.c: New file.
45608         * lib/unistdio/u8-vasprintf.c: New file.
45609         * lib/unistdio/u8-vsnprintf.c: New file.
45610         * lib/unistdio/u8-vsprintf.c: New file.
45611         * lib/unistdio/u8-u8-asnprintf.c: New file.
45612         * lib/unistdio/u8-u8-asprintf.c: New file.
45613         * lib/unistdio/u8-u8-snprintf.c: New file.
45614         * lib/unistdio/u8-u8-sprintf.c: New file.
45615         * lib/unistdio/u8-u8-vasnprintf.c: New file.
45616         * lib/unistdio/u8-u8-vasprintf.c: New file.
45617         * lib/unistdio/u8-u8-vsnprintf.c: New file.
45618         * lib/unistdio/u8-u8-vsprintf.c: New file.
45619         * lib/unistdio/u16-asnprintf.c: New file.
45620         * lib/unistdio/u16-asprintf.c: New file.
45621         * lib/unistdio/u16-printf-parse.c: New file.
45622         * lib/unistdio/u16-snprintf.c: New file.
45623         * lib/unistdio/u16-sprintf.c: New file.
45624         * lib/unistdio/u16-vasnprintf.c: New file.
45625         * lib/unistdio/u16-vasprintf.c: New file.
45626         * lib/unistdio/u16-vsnprintf.c: New file.
45627         * lib/unistdio/u16-vsprintf.c: New file.
45628         * lib/unistdio/u16-u16-asnprintf.c: New file.
45629         * lib/unistdio/u16-u16-asprintf.c: New file.
45630         * lib/unistdio/u16-u16-snprintf.c: New file.
45631         * lib/unistdio/u16-u16-sprintf.c: New file.
45632         * lib/unistdio/u16-u16-vasnprintf.c: New file.
45633         * lib/unistdio/u16-u16-vasprintf.c: New file.
45634         * lib/unistdio/u16-u16-vsnprintf.c: New file.
45635         * lib/unistdio/u16-u16-vsprintf.c: New file.
45636         * lib/unistdio/u32-asnprintf.c: New file.
45637         * lib/unistdio/u32-asprintf.c: New file.
45638         * lib/unistdio/u32-printf-parse.c: New file.
45639         * lib/unistdio/u32-snprintf.c: New file.
45640         * lib/unistdio/u32-sprintf.c: New file.
45641         * lib/unistdio/u32-vasnprintf.c: New file.
45642         * lib/unistdio/u32-vasprintf.c: New file.
45643         * lib/unistdio/u32-vsnprintf.c: New file.
45644         * lib/unistdio/u32-vsprintf.c: New file.
45645         * lib/unistdio/u32-u32-asnprintf.c: New file.
45646         * lib/unistdio/u32-u32-asprintf.c: New file.
45647         * lib/unistdio/u32-u32-snprintf.c: New file.
45648         * lib/unistdio/u32-u32-sprintf.c: New file.
45649         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45650         * lib/unistdio/u32-u32-vasprintf.c: New file.
45651         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45652         * lib/unistdio/u32-u32-vsprintf.c: New file.
45653         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45654         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45655         * tests/unistdio/test-ulc-printf1.h: New file.
45656         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45657         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45658         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45659         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45660         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45661         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45662         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45663         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45664         * tests/unistdio/test-u8-asnprintf1.c: New file.
45665         * tests/unistdio/test-u8-asnprintf1.h: New file.
45666         * tests/unistdio/test-u8-printf1.h: New file.
45667         * tests/unistdio/test-u8-vasnprintf1.c: New file.
45668         * tests/unistdio/test-u8-vasnprintf2.c: New file.
45669         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
45670         * tests/unistdio/test-u8-vasnprintf3.c: New file.
45671         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
45672         * tests/unistdio/test-u8-vasprintf1.c: New file.
45673         * tests/unistdio/test-u8-vsnprintf1.c: New file.
45674         * tests/unistdio/test-u8-vsprintf1.c: New file.
45675         * tests/unistdio/test-u16-asnprintf1.c: New file.
45676         * tests/unistdio/test-u16-asnprintf1.h: New file.
45677         * tests/unistdio/test-u16-printf1.h: New file.
45678         * tests/unistdio/test-u16-vasnprintf1.c: New file.
45679         * tests/unistdio/test-u16-vasnprintf2.c: New file.
45680         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
45681         * tests/unistdio/test-u16-vasnprintf3.c: New file.
45682         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
45683         * tests/unistdio/test-u16-vasprintf1.c: New file.
45684         * tests/unistdio/test-u16-vsnprintf1.c: New file.
45685         * tests/unistdio/test-u16-vsprintf1.c: New file.
45686         * tests/unistdio/test-u32-asnprintf1.c: New file.
45687         * tests/unistdio/test-u32-asnprintf1.h: New file.
45688         * tests/unistdio/test-u32-printf1.h: New file.
45689         * tests/unistdio/test-u32-vasnprintf1.c: New file.
45690         * tests/unistdio/test-u32-vasnprintf2.c: New file.
45691         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
45692         * tests/unistdio/test-u32-vasnprintf3.c: New file.
45693         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
45694         * tests/unistdio/test-u32-vasprintf1.c: New file.
45695         * tests/unistdio/test-u32-vsnprintf1.c: New file.
45696         * tests/unistdio/test-u32-vsprintf1.c: New file.
45697         * modules/unistdio/base: New file.
45698         * modules/unistdio/u-printf-args: New file.
45699         * modules/unistdio/ulc-asnprintf: New file.
45700         * modules/unistdio/ulc-asprintf: New file.
45701         * modules/unistdio/ulc-fprintf: New file.
45702         * modules/unistdio/ulc-printf-parse: New file.
45703         * modules/unistdio/ulc-snprintf: New file.
45704         * modules/unistdio/ulc-sprintf: New file.
45705         * modules/unistdio/ulc-vasnprintf: New file.
45706         * modules/unistdio/ulc-vasprintf: New file.
45707         * modules/unistdio/ulc-vfprintf: New file.
45708         * modules/unistdio/ulc-vsnprintf: New file.
45709         * modules/unistdio/ulc-vsprintf: New file.
45710         * modules/unistdio/u8-asnprintf: New file.
45711         * modules/unistdio/u8-asprintf: New file.
45712         * modules/unistdio/u8-printf-parse: New file.
45713         * modules/unistdio/u8-snprintf: New file.
45714         * modules/unistdio/u8-sprintf: New file.
45715         * modules/unistdio/u8-vasnprintf: New file.
45716         * modules/unistdio/u8-vasprintf: New file.
45717         * modules/unistdio/u8-vsnprintf: New file.
45718         * modules/unistdio/u8-vsprintf: New file.
45719         * modules/unistdio/u8-u8-asnprintf: New file.
45720         * modules/unistdio/u8-u8-asprintf: New file.
45721         * modules/unistdio/u8-u8-snprintf: New file.
45722         * modules/unistdio/u8-u8-sprintf: New file.
45723         * modules/unistdio/u8-u8-vasnprintf: New file.
45724         * modules/unistdio/u8-u8-vasprintf: New file.
45725         * modules/unistdio/u8-u8-vsnprintf: New file.
45726         * modules/unistdio/u8-u8-vsprintf: New file.
45727         * modules/unistdio/u16-asnprintf: New file.
45728         * modules/unistdio/u16-asprintf: New file.
45729         * modules/unistdio/u16-printf-parse: New file.
45730         * modules/unistdio/u16-snprintf: New file.
45731         * modules/unistdio/u16-sprintf: New file.
45732         * modules/unistdio/u16-vasnprintf: New file.
45733         * modules/unistdio/u16-vasprintf: New file.
45734         * modules/unistdio/u16-vsnprintf: New file.
45735         * modules/unistdio/u16-vsprintf: New file.
45736         * modules/unistdio/u16-u16-asnprintf: New file.
45737         * modules/unistdio/u16-u16-asprintf: New file.
45738         * modules/unistdio/u16-u16-snprintf: New file.
45739         * modules/unistdio/u16-u16-sprintf: New file.
45740         * modules/unistdio/u16-u16-vasnprintf: New file.
45741         * modules/unistdio/u16-u16-vasprintf: New file.
45742         * modules/unistdio/u16-u16-vsnprintf: New file.
45743         * modules/unistdio/u16-u16-vsprintf: New file.
45744         * modules/unistdio/u32-asnprintf: New file.
45745         * modules/unistdio/u32-asprintf: New file.
45746         * modules/unistdio/u32-printf-parse: New file.
45747         * modules/unistdio/u32-snprintf: New file.
45748         * modules/unistdio/u32-sprintf: New file.
45749         * modules/unistdio/u32-vasnprintf: New file.
45750         * modules/unistdio/u32-vasprintf: New file.
45751         * modules/unistdio/u32-vsnprintf: New file.
45752         * modules/unistdio/u32-vsprintf: New file.
45753         * modules/unistdio/u32-u32-asnprintf: New file.
45754         * modules/unistdio/u32-u32-asprintf: New file.
45755         * modules/unistdio/u32-u32-snprintf: New file.
45756         * modules/unistdio/u32-u32-sprintf: New file.
45757         * modules/unistdio/u32-u32-vasnprintf: New file.
45758         * modules/unistdio/u32-u32-vasprintf: New file.
45759         * modules/unistdio/u32-u32-vsnprintf: New file.
45760         * modules/unistdio/u32-u32-vsprintf: New file.
45761         * modules/unistdio/ulc-asnprintf-tests: New file.
45762         * modules/unistdio/ulc-vasnprintf-tests: New file.
45763         * modules/unistdio/ulc-vasprintf-tests: New file.
45764         * modules/unistdio/ulc-vsnprintf-tests: New file.
45765         * modules/unistdio/ulc-vsprintf-tests: New file.
45766         * modules/unistdio/u8-asnprintf-tests: New file.
45767         * modules/unistdio/u8-vasnprintf-tests: New file.
45768         * modules/unistdio/u8-vasprintf-tests: New file.
45769         * modules/unistdio/u8-vsnprintf-tests: New file.
45770         * modules/unistdio/u8-vsprintf-tests: New file.
45771         * modules/unistdio/u16-asnprintf-tests: New file.
45772         * modules/unistdio/u16-vasnprintf-tests: New file.
45773         * modules/unistdio/u16-vasprintf-tests: New file.
45774         * modules/unistdio/u16-vsnprintf-tests: New file.
45775         * modules/unistdio/u16-vsprintf-tests: New file.
45776         * modules/unistdio/u32-asnprintf-tests: New file.
45777         * modules/unistdio/u32-vasnprintf-tests: New file.
45778         * modules/unistdio/u32-vasprintf-tests: New file.
45779         * modules/unistdio/u32-vsnprintf-tests: New file.
45780         * modules/unistdio/u32-vsprintf-tests: New file.
45781         * MODULES.html.sh (Unicode string functions): Add the new modules.
45782
45783 2007-07-01  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/sprintf.c (sprintf): Limit the available length estimation,
45786         to avoid address wraparound.
45787         * lib/vsprintf.c (vsprintf): Likewise.
45788         * modules/sprintf-posix (Dependencies): Add stdint.
45789         * modules/vsprintf-posix (Dependencies): Likewise.
45790
45791 2007-07-01  Bruno Haible  <bruno@clisp.org>
45792
45793         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45794         Windows PATH as well. Conservative double-quoting. Comments.
45795
45796 2007-07-01  Bruno Haible  <bruno@clisp.org>
45797             Eric Blake  <ebb9@byu.net>
45798             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45799
45800         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45801         empty components in $PATH, denoting '.'.
45802
45803 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45804
45805         * gnulib-tool: Fix indentation.
45806         (func_create_megatestdir): Likewise.
45807         Report by Bruno Haible.
45808
45809 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45810
45811         Sync from Automake.
45812         * build-aux/gnupload: Fix shell portability issues with for loops.
45813         Report by Karl Berry.
45814
45815 2007-06-29  Simon Josefsson  <simon@josefsson.org>
45816
45817         * build-aux/maint.mk (POURL): Use translationproject.org.
45818
45819 2007-06-27  Simon Josefsson  <simon@josefsson.org>
45820             Bruno Haible  <bruno@clisp.org>
45821
45822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
45823         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
45824         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
45825         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
45826         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
45827
45828 2007-06-27  Bruno Haible  <bruno@clisp.org>
45829
45830         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
45831         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
45832
45833 2007-06-26  Karl Berry  <karl@gnu.org>
45834
45835         * MODULES.html.sh: remove xreadlink-with-size.
45836
45837 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45838
45839         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
45840         method that I hope also handles the double-include problem noted
45841         by Bruno Haible in
45842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
45843
45844 2007-06-23  Bruno Haible  <bruno@clisp.org>
45845
45846         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45847         Don't let the 'mostlyclean' target fail if the last subdirectory could
45848         not be removed.
45849         Reported by Karl Berry.
45850
45851 2007-06-23  Bruno Haible  <bruno@clisp.org>
45852
45853         * gnulib-tool (echo): Add a speedier workaround for ksh.
45854         * tests/test-echo.sh: Likewise.
45855
45856 2007-06-23  Bruno Haible  <bruno@clisp.org>
45857
45858         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
45859         * tests/test-echo.sh: Likewise.
45860
45861 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45862
45863         * gnulib-tool (IFS): Initialize early, so we don't set it to
45864         empty later.
45865         (self_abspathname): Rewrite algorithm to set it, reindent.
45866         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
45867         (func_create_megatestdir): Merge some sed scripts.
45868
45869 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45870
45871         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
45872         exposed by Sun Studio 11 cc on Solaris 8.
45873
45874 2007-06-22  Bruno Haible  <bruno@clisp.org>
45875
45876         * gnulib-tool (echo): Ensure the echo primitive does not interpret
45877         backslashes.
45878         * tests/test-echo.sh: New file.
45879
45880 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45881
45882         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
45883         simplify `sed_replace_build_aux' scripts, they are portable but
45884         echoing them with `echo' is not.
45885         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
45886
45887 2007-06-21  Karl Berry  <karl@gnu.org>
45888
45889         * config/srclist.txt: guess we can't handle the licenses via
45890         srclist at the moment.
45891
45892 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45893
45894         * MODULES.html.sh: Add include_next.
45895         * modules/include_next: New file.
45896
45897 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45898
45899         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
45900         INCLUDE_NEXT.
45901         (gl_CHECK_NEXT_HEADERS): New macro.
45902         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
45903         the obsolescent gl_ABSOLUTE_HEADER.
45904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
45905         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
45906         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
45907         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45908         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45909         * m4/math_h.m4 (gl_MATH_H): Likewise.
45910         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45911         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
45912         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45913         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45914         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
45915         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
45916         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
45917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45920         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
45921         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45922         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45923         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45924         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45925         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45926         * m4/inttypes.m4 (gl_INTTYPES_H): Define
45927         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
45928         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
45929         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
45930         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
45931         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
45932         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
45933         * lib/float_.h: Likewise.
45934         * lib/inttypes_.h: Likewise.
45935         * lib/math_.h: Likewise.
45936         * lib/search_.h: Likewise.
45937         * lib/signal_.h: Likewise.
45938         * lib/stdint_.h: Likewise.
45939         * lib/stdio_.h: Likewise.
45940         * lib/stdlib_.h: Likewise.
45941         * lib/string_.h: Likewise.
45942         * lib/sys_stat_.h: Likewise.
45943         * lib/sys_time_.h: Likewise.
45944         * lib/time_.h: Likewise.
45945         * lib/unistd_.h: Likewise.
45946         * lib/wchar_.h: Likewise.
45947         * lib/wctype_.h: Likewise.
45948         * lib/dirent_.h: Likewise.
45949         * lib/iconv_.h: Likewise.
45950         * lib/locale_.h: Likewise.
45951         * lib/netinet_in_.h: Likewise.
45952         * lib/sys_select_.h: Likewise.
45953         * lib/sys_socket_.h: Likewise.
45954         * lib/sysexits_.h: Likewise.
45955         * modules/fcntl (Depends-on): Depend on include_next, not
45956         absolute_header.
45957         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
45958         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
45959         * modules/fchdir: Likewise.
45960         * modules/float: Likewise.
45961         * modules/iconv_open: Likewise.
45962         * modules/inttypes: Likewise.
45963         * modules/locale: Likewise.
45964         * modules/math: Likewise.
45965         * modules/netinet_in: Likewise.
45966         * modules/search: Likewise.
45967         * modules/signal: Likewise.
45968         * modules/stdint: Likewise.
45969         * modules/stdio: Likewise.
45970         * modules/stdlib: Likewise.
45971         * modules/string: Likewise.
45972         * modules/sys_select: Likewise.
45973         * modules/sys_socket: Likewise.
45974         * modules/sys_stat: Likewise.
45975         * modules/sys_time: Likewise.
45976         * modules/sysexits: Likewise.
45977         * modules/time: Likewise.
45978         * modules/unistd: Likewise.
45979         * modules/wchar: Likewise.
45980         * modules/wctype: Likewise.
45981         * modules/sys_stat: Change maintainer to "all".
45982         * modules/unistd: Likewise.
45983
45984 2007-06-20  Karl Berry  <karl@gnu.org>
45985
45986         * config/srclist.txt: track www changes in license files.
45987
45988 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
45989
45990         * build-aux/bootstrap: Remove stray dot.
45991         Make sure build_aux settings are honored when linking
45992         gnulib_extra_files.
45993
45994 2007-06-19  Eric Blake  <ebb9@byu.net>
45995
45996         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45997         Allow compilation on cygwin.
45998
45999 2007-06-19  Jim Meyering  <jim@meyering.net>
46000
46001         xreadlink-with-size: Remove module.  No longer used.
46002         Ex-callers now use xreadlink or mreadlink-with-size.
46003         * modules/xreadlink-with-size: Remove module.
46004         * lib/xreadlink-with-size.c: Remove file.
46005         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46006         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46007         just before the function definition *is* accurate.
46008
46009         Eliminate one way canonicalize_filename_mode could exit.
46010         * lib/canonicalize.c (canonicalize_filename_mode):
46011         Use mreadlink_with_size, not xreadlink_with_size.
46012
46013 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46014
46015         Detect porting problems to FreeBSD/arm, which has time_t wider than
46016         long int.  Original problem reported for GNU diff by Xin Li in
46017         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46018         * modules/getdate (Depends-on): Add intprops, verify.
46019         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46020         is an integer type no wider than long int.
46021
46022 2007-06-18  Jim Meyering  <jim@meyering.net>
46023
46024         New module: mreadlink-with-size.
46025         * MODULES.html.sh: Add mreadlink-with-size.
46026         * modules/mreadlink-with-size: New module
46027         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46028         not xreadlink-with-size.
46029         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46030
46031 2007-06-16  Bruno Haible  <bruno@clisp.org>
46032
46033         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46034         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46035         Reported by Gary V. Vaughan <gary@gnu.org>.
46036
46037 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46038
46039         Revamp lchown so that it lives in unistd.h where it belongs.
46040         * lib/lchown.h: Remove.
46041         * lib/dirchownmod.c: Don't include lib/lchown.h.
46042         * lib/fchownat.c: Likewise.
46043         * lib/openat.c: Likewise.
46044         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46045         does not follow symlinks.
46046         (EOPNOTSUPP): Define if not defined.
46047         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46048         is defined to 0.
46049         (lchown): New decl.
46050         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46051         Do not check for lchown decl.
46052         Set REPLACE_LCHOWN.
46053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46054         REPLACE_LCHOWN.
46055         * modules/chown: Make it clear it follows symlinks.
46056         * modules/lchown: Make it clear it doesn't follow symlinks.
46057         (Files): Remove lib/lchown.h
46058         (Depends-on): Add unistd.
46059         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46060         (Include): Include <unistd.h>, not "lchown.h".
46061         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46062         REPLACE_LCHOWN.
46063
46064 2007-06-15  Jim Meyering  <jim@meyering.net>
46065
46066         Change license (GPL to LGPL) of fsusage and dependents.
46067         * modules/fsusage (License): Change to LGPL.
46068         * modules/full-read (License): Likewise.
46069         * modules/full-write (License): Likewise.
46070         * modules/safe-read (License): Likewise.
46071         * modules/safe-write (License): Likewise.
46072
46073 2007-06-14  Ben Pfaff  <blp@gnu.org>
46074
46075         Missing part of allocsa -> malloca transition.
46076         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46077         gl_MALLOCA.
46078
46079 2007-06-12  Bruno Haible  <bruno@clisp.org>
46080
46081         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46082         to ia64, x86_64, i386.
46083         Reported by Eric Blake.
46084
46085 2007-06-12  Bruno Haible  <bruno@clisp.org>
46086
46087         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46088         cross-compiling to x86_64.
46089
46090 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46091
46092         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46093         glitch reported by Ralf Wildenhues in
46094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46095
46096         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46097         Vin Shelton.
46098
46099 2007-06-11  Bruno Haible  <bruno@clisp.org>
46100
46101         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46102         replacement string.
46103         Reported by Eric Blake.
46104
46105 2007-06-10  Bruno Haible  <bruno@clisp.org>
46106
46107         Prepare vasnprintf code for use with Unicode strings.
46108         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46109         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46110         TYPE_U32_STRING.
46111         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46112         a_u32_string variants.
46113         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46114         * lib/printf-args.c: Don't include config.h and the specification
46115         header if PRINTF_FETCHARGS is already defined.
46116         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46117         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46118         TYPE_U16_STRING, TYPE_U32_STRING.
46119         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46120         u16_directive, u16_directives, u32_directive, u32_directives): New
46121         types.
46122         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46123         New declarations.
46124         * lib/printf-parse.c: Don't include config.h and the specification
46125         header if PRINTF_PARSE is already defined. Eliminate the set of
46126         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46127         them now. Include c-ctype.h.
46128         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46129         directive and CHAR_T_ONLY_ASCII.
46130         * lib/vasnprintf.c: Don't include config.h and the specification header
46131         if VASNPRINTF is already defined.
46132         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46133         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46134         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46135         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46136         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46137         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46138         code accordingly.
46139         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46140         pad_ourselves also in this case, with the 'c' and 's' directives, and
46141         with a different notion of "width".
46142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46143
46144 2007-06-10  Bruno Haible  <bruno@clisp.org>
46145
46146         * modules/unistr/u32-mbsnlen: New file.
46147         * lib/unistr/u32-mbsnlen.c: New file.
46148
46149         * modules/unistr/u16-mbsnlen: New file.
46150         * lib/unistr/u16-mbsnlen.c: New file.
46151
46152         * modules/unistr/u8-mbsnlen: New file.
46153         * lib/unistr/u8-mbsnlen.c: New file.
46154
46155         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46156         declarations.
46157
46158 2007-06-10  Bruno Haible  <bruno@clisp.org>
46159
46160         * lib/string_.h (mbsnlen): New declaration.
46161         * lib/mbsnlen.c: New file.
46162         * m4/mbsnlen.m4: New file.
46163         * modules/mbsnlen: New file.
46164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46165         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46166         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46167
46168 2007-06-10  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46171
46172 2007-06-10  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46175         * lib/mbuiter.h: Likewise.
46176
46177 2007-06-10  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
46180         declaration.
46181
46182 2007-06-10  Karl Berry  <karl@gnu.org>
46183
46184         * config/srclist.txt: remove gettext entries, Bruno prefers
46185         to update individually.
46186
46187 2007-06-10  Bruno Haible  <bruno@clisp.org>
46188
46189         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
46190         'maxlen'. Ensure only length + width bytes are allocated, not
46191         length + 1 + width.
46192
46193 2007-06-09  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
46196         (CHAR_T): Remove macro.
46197         (VASNPRINTF): Update.
46198
46199 2007-06-09  Bruno Haible  <bruno@clisp.org>
46200
46201         * MODULES.html.sh (Unicode string functions): Add the new modules.
46202
46203         * modules/uniconv/u32-conv-to-enc: New file.
46204         * lib/uniconv/u32-conv-to-enc.c: New file.
46205         * modules/uniconv/u32-conv-to-enc-tests: New file.
46206         * tests/uniconv/test-u32-conv-to-enc.c: New file.
46207
46208         * modules/uniconv/u16-conv-to-enc: New file.
46209         * lib/uniconv/u16-conv-to-enc.c: New file.
46210         * lib/uniconv/u-conv-to-enc.h: New file.
46211         * modules/uniconv/u16-conv-to-enc-tests: New file.
46212         * tests/uniconv/test-u16-conv-to-enc.c: New file.
46213
46214         * modules/uniconv/u8-conv-to-enc: New file.
46215         * lib/uniconv/u8-conv-to-enc.c: New file.
46216         * modules/uniconv/u8-conv-to-enc-tests: New file.
46217         * tests/uniconv/test-u8-conv-to-enc.c: New file.
46218
46219         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46220         u32_conv_to_encoding): New declarations.
46221
46222 2007-06-09  Bruno Haible  <bruno@clisp.org>
46223
46224         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
46225
46226 2007-06-09  Bruno Haible  <bruno@clisp.org>
46227
46228         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
46229         * modules/malloca: Renamed from modules/allocsa, updated.
46230         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
46231         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
46232         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
46233         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
46234         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
46235         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
46236         * modules/xmalloca: Renamed from modules/xallocsa, updated.
46237         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
46238         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
46239         * modules/c-strcasestr (Depends-on): Update.
46240         * lib/c-strcasestr.c: Update.
46241         * modules/c-strstr (Depends-on): Update.
46242         * lib/c-strstr.c: Update.
46243         * modules/canonicalize-lgpl (Depends-on): Update.
46244         * lib/canonicalize-lgpl.c: Update.
46245         * modules/clean-temp (Depends-on): Update.
46246         * lib/clean-temp.c: Update.
46247         * modules/csharpcomp (Depends-on): Update.
46248         * lib/csharpcomp.c: Update.
46249         * modules/csharpexec (Depends-on): Update.
46250         * lib/csharpexec.c: Update.
46251         * modules/javacomp (Depends-on): Update.
46252         * lib/javacomp.c: Update.
46253         * modules/javaexec (Depends-on): Update.
46254         * lib/javaexec.c: Update.
46255         * modules/mbscasestr (Depends-on): Update.
46256         * lib/mbscasestr.c: Update.
46257         * modules/mbsstr (Depends-on): Update.
46258         * lib/mbsstr.c: Update.
46259         * modules/setenv (Depends-on): Update.
46260         * lib/setenv.c: Update.
46261         * modules/strcasestr (Depends-on): Update.
46262         * lib/strcasestr.c: Update.
46263         * modules/striconveha (Depends-on): Update.
46264         * lib/striconveha.c: Update.
46265         * modules/relocatable-prog-wrapper (Files): Update.
46266         * lib/relocwrapper.c: Update.
46267         * build-aux/install-reloc: Update.
46268         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
46269
46270 2007-06-08  Bruno Haible  <bruno@clisp.org>
46271
46272         Port to uClibc.
46273         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
46274         * lib/fpurge.c (fpurge): Likewise.
46275         * lib/freading.c (freading): Likewise.
46276         * lib/fseeko.c (rpl_fseeko): Likewise.
46277         * lib/fseterr.c (fseterr): Likewise.
46278         * lib/fwriting.c (fwriting): Likewise.
46279         * tests/test-fflush.c (main): Avoid a failure on uClibc.
46280
46281 2007-06-08  Bruno Haible  <bruno@clisp.org>
46282
46283         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
46284         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
46285         * modules/gettext (Files): Add m4/intlmacosx.m4.
46286
46287 2007-06-07  Bruno Haible  <bruno@clisp.org>
46288
46289         * modules/localename-tests: New file.
46290         * tests/test-localename.c: New file.
46291
46292         New module 'localename'.
46293         * lib/localename.h: New file.
46294         * lib/localename.c: New file, from GNU gettext.
46295         * m4/localename.m4: New file.
46296         * modules/localename: New file.
46297
46298 2007-06-07  Bruno Haible  <bruno@clisp.org>
46299
46300         Work around the lack of <wchar.h> on some builds of uClibc.
46301         * doc/headers/wchar.texi: Update.
46302         * lib/wchar_.h: Include <wchar.h> only if it exists.
46303         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
46304         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
46305         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
46306         doesn't exist.
46307         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
46308         * modules/mbfile (Depends-on): Add wchar.
46309         * modules/mbiter (Depends-on): Likewise.
46310         * modules/mbuiter (Depends-on): Likewise.
46311         Reported by Simon Josefsson.
46312
46313 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46314
46315         Work around problem reported by Steven M. Schweda in
46316         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
46317         Tru64 5.1B with the Compaq compiler environment installed declares
46318         an 'isblank' function but does not define it in the C library.
46319         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
46320         * lib/regex_internal.h (isblank): Likewise.
46321         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
46322         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46323
46324 2007-06-05  Bruno Haible  <bruno@clisp.org>
46325
46326         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
46327         ia64.
46328         * modules/printf-safe: New file.
46329         * modules/fprintf-posix (Depends-on): Add printf-safe.
46330         * modules/printf-posix (Depends-on): Likewise.
46331         * modules/snprintf-posix (Depends-on): Likewise.
46332         * modules/sprintf-posix (Depends-on): Likewise.
46333         * modules/vasnprintf-posix (Depends-on): Likewise.
46334         * modules/vasprintf-posix (Depends-on): Likewise.
46335         * modules/vfprintf-posix (Depends-on): Likewise.
46336         * modules/vprintf-posix (Depends-on): Likewise.
46337         * modules/vsnprintf-posix (Depends-on): Likewise.
46338         * modules/vsprintf-posix (Depends-on): Likewise.
46339         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46340         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
46341         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
46342         "no" on i386, x86_64, ia64.
46343         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
46344         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46345         on i386, x86_64, ia64.
46346         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
46347         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46348         on i386, x86_64, ia64.
46349         * tests/test-vasnprintf-posix.c: Include float.h.
46350         (LDBL80_WORDS): New macro.
46351         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46352         on i386, x86_64, ia64.
46353         * tests/test-vasprintf-posix.c: Include float.h.
46354         (LDBL80_WORDS): New macro.
46355         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46356         on i386, x86_64, ia64.
46357         * tests/test-snprintf-posix.c: Include float.h.
46358         * tests/test-sprintf-posix.c: Likewise.
46359         * tests/test-vsnprintf-posix.c: Likewise.
46360         * tests/test-vsprintf-posix.c: Likewise.
46361
46362 2007-06-05  Bruno Haible  <bruno@clisp.org>
46363
46364         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
46365         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
46366         non-IEEE numbers on i386, x86_64, ia64.
46367         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
46368         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
46369         * tests/test-isnanl.h: Include float.h.
46370         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
46371
46372 2007-06-05  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
46375         also the %a / %A. Handle the %a / %A code before this extra handling.
46376
46377 2007-06-05  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
46380         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
46381
46382 2007-06-05  Bruno Haible  <bruno@clisp.org>
46383
46384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
46385         typo in variable name.
46386
46387 2007-06-05  Eric Blake  <ebb9@byu.net>
46388
46389         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
46390         Reported by Simon Josefsson.
46391
46392 2007-06-04  Bruno Haible  <bruno@clisp.org>
46393
46394         Avoid test failures on some PowerPC platforms.
46395         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
46396         Define differently for PowerPC.
46397         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
46398         Reported by Gary V. Vaughan <gary@gnu.org>.
46399
46400 2007-06-02  Bruno Haible  <bruno@clisp.org>
46401
46402         Fix test-stdint failure on FreeBSD/ia64.
46403         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
46404         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
46405         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
46406         * doc/headers/stdint.texi: Update.
46407
46408 2007-06-01  Bruno Haible  <bruno@clisp.org>
46409
46410         * tests/test-binary-io.c (main): Pass a third argument to open().
46411         Reported by Gary V. Vaughan <gary@gnu.org>.
46412
46413 2007-06-01  Bruno Haible  <bruno@clisp.org>
46414
46415         * doc/functions/frexpl.texi: Update for mingw.
46416
46417 2007-06-01  Bruno Haible  <bruno@clisp.org>
46418
46419         * tests/test-lseek.c (main): Disable test of errno for invalid third
46420         argument.
46421         * doc/functions/lseek.texi: Update.
46422         Reported by Gary V. Vaughan <gary@gnu.org>.
46423
46424 2007-05-28  Bruno Haible  <bruno@clisp.org>
46425
46426         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
46427
46428 2007-05-31  Eric Blake  <ebb9@byu.net>
46429
46430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46431         cross compiling.
46432
46433 2007-05-30  Eric Blake  <ebb9@byu.net>
46434         and Bruno Haible  <bruno@clisp.org>
46435
46436         Work around mingw test failures exposed by m4-1.4.9b.
46437         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46438         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46439         moment.
46440
46441 2007-05-30  Bruno Haible  <bruno@clisp.org>
46442
46443         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
46444         assuming that they are closed. Needed on HP-UX 11.
46445
46446 2007-05-29  Bruno Haible  <bruno@clisp.org>
46447
46448         Fix a problem with #include_next.
46449         * lib/dirent_.h: Split the double-inclusion guard.
46450         * lib/fcntl_.h: Likewise.
46451         * lib/float_.h: Likewise.
46452         * lib/iconv_.h: Likewise.
46453         * lib/inttypes_.h: Likewise.
46454         * lib/locale_.h: Likewise.
46455         * lib/math_.h: Likewise.
46456         * lib/netinet_in_.h: Likewise.
46457         * lib/search_.h: Likewise.
46458         * lib/signal_.h: Likewise.
46459         * lib/stdint_.h: Likewise.
46460         * lib/stdio_.h: Likewise.
46461         * lib/stdlib_.h: Likewise.
46462         * lib/string_.h: Likewise.
46463         * lib/sys_select_.h: Likewise.
46464         * lib/sys_socket_.h: Likewise.
46465         * lib/sys_stat_.h: Likewise.
46466         * lib/sys_time_.h: Likewise.
46467         * lib/sysexits_.h: Likewise.
46468         * lib/time_.h: Likewise.
46469         * lib/unistd_.h: Likewise.
46470         * lib/wchar_.h: Likewise.
46471         * lib/wctype_.h: Likewise.
46472
46473 2007-05-29  Bruno Haible  <bruno@clisp.org>
46474
46475         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
46476         for the moment.
46477
46478 2007-05-29  Bruno Haible  <bruno@clisp.org>
46479
46480         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
46481         invocation.
46482         Reported by Eric Blake.
46483
46484 2007-05-29  Bruno Haible  <bruno@clisp.org>
46485
46486         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
46487         compiling case.
46488
46489 2007-05-29  Eric Blake  <ebb9@byu.net>
46490             Bruno Haible  <bruno@clisp.org>
46491
46492         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
46493         cross compiles.
46494
46495 2007-05-28  Eric Blake  <ebb9@byu.net>
46496
46497         * modules/closein-tests (test_closein_LDADD): Support test on
46498         cygwin with libtool.
46499
46500 2007-05-28  Bruno Haible  <bruno@clisp.org>
46501
46502         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
46503         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46504         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46505         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46506         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46507         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46508         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46509         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46510         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46511
46512 2007-05-28  Eric Blake  <ebb9@byu.net>
46513
46514         Unconditionally include <config.h> in unit tests.
46515         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
46516         * tests/test-allocsa.c, tests/test-arcfour.c,
46517         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
46518         tests/test-array_list.c, tests/test-array_oset.c,
46519         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
46520         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
46521         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
46522         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
46523         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
46524         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
46525         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
46526         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
46527         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
46528         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
46529         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
46530         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
46531         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
46532         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
46533         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
46534         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
46535         test-md5.c, test-memmem.c, test-printf-posix.c,
46536         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
46537         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
46538         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
46539         test-strcasestr.c, test-striconv.c, test-striconveh.c,
46540         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
46541         test-vasnprintf-posix2.c, test-vasnprintf.c,
46542         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
46543         test-vfprintf-posix.c, test-vprintf-posix.c,
46544         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
46545         test-xvasprintf.c: Likewise.
46546
46547 2007-05-28  Bruno Haible  <bruno@clisp.org>
46548
46549         * gnulib-tool (func_import): Remember the --with-tests command-line
46550         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
46551         Reported by Eric Blake.
46552
46553 2007-05-28  Bruno Haible  <bruno@clisp.org>
46554
46555         * modules/ftell-tests: New file.
46556         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
46557         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
46558
46559         * lib/ftell.c: New file.
46560         * modules/ftell: New file.
46561         * m4/ftell.m4: New file.
46562         * doc/functions/ftell.texi: Update.
46563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
46564         REPLACE_FTELL.
46565         * lib/stdio_.h (rpl_ftell): New declaration.
46566         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
46567         REPLACE_FTELL.
46568
46569 2007-05-28  Eric Blake  <ebb9@byu.net>
46570
46571         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
46572
46573 2007-05-28  Bruno Haible  <bruno@clisp.org>
46574
46575         * modules/fseek-tests: New file.
46576         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
46577         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
46578
46579         * lib/fseek.c: New file.
46580         * modules/fseek: New file.
46581         * m4/fseek.m4: New file.
46582         * doc/functions/fseek.texi: Update.
46583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
46584         REPLACE_FSEEK.
46585         * lib/stdio_.h (rpl_fseek): New declaration.
46586         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
46587         REPLACE_FSEEK.
46588
46589 2007-05-28  Bruno Haible  <bruno@clisp.org>
46590
46591         * lib/stdio_.h (fflush): More comments.
46592
46593 2007-05-28  Bruno Haible  <bruno@clisp.org>
46594
46595         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
46596         runtime test.
46597
46598 2007-05-28  Eric Blake  <ebb9@byu.net>
46599
46600         Improve lseek module.
46601         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
46602         * lib/unistd_.h (lseek): Scale back link warning message.
46603         * tests/test-lseek.c: Beef up test.
46604         * tests/test-lseek.sh: Exercise more facets of lseek.
46605         Reported by Bruno Haible.
46606
46607 2007-05-28  Bruno Haible  <bruno@clisp.org>
46608
46609         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
46610         to define.
46611
46612 2007-05-27  Bruno Haible  <bruno@clisp.org>
46613
46614         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
46615
46616 2007-05-27  Bruno Haible  <bruno@clisp.org>
46617
46618         * modules/openmp: New file.
46619         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
46620         Noah Misch.
46621
46622 2007-05-26  Bruno Haible  <bruno@clisp.org>
46623
46624         * modules/chdir-long (Depends-on): Add fchdir.
46625         * modules/chdir-safer (Depends-on): Likewise.
46626         * modules/fts (Depends-on): Likewise.
46627         * modules/fts-lgpl (Depends-on): Likewise.
46628         * modules/openat (Depends-on): Likewise.
46629         * modules/savewd (Depends-on): Likewise.
46630
46631 2007-05-24  Eric Blake  <ebb9@byu.net>
46632
46633         Fix lseek on mingw.
46634         * modules/lseek: New module.
46635         * m4/lseek.m4: New file.
46636         * lib/lseek.c: New file.
46637         * modules/lseek-tests: New file.
46638         * tests/test-lseek.c: New file.
46639         * tests/test-lseek.sh: New file.
46640         * MODULES.html.sh: Document lseek module.
46641         * modules/fflush (Depends-on): Add lseek, fseeko.
46642         * modules/fseeko (Depends-on): Likewise.
46643         * modules/ftello (Depends-on): Likewise.
46644         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46645         broken.
46646         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46647         broken.
46648         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46649         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46650         * lib/ftello.c (rpl_ftello): Likewise.
46651         * tests/test-fseeko.c (main): Test this.
46652         * tests/test-fseeko.sh: Likewise.
46653         * tests/test-ftello.c (main): Likewise.
46654         * tests/test-ftello.sh: Likewise.
46655         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46656         implies replacing fseek.
46657         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46658         HAVE_FTELLO.
46659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46660         * modules/unistd (Makefile.am): Likewise.
46661         * lib/unistd_.h (lseek): Declare a replacement.
46662         * doc/functions/lseek.texi (lseek): Document this fix.
46663         * doc/functions/fseek.texi (fseek): Likewise.
46664         * doc/functions/ftell.texi (ftell): Likewise.
46665
46666 2007-05-24  Bruno Haible  <bruno@clisp.org>
46667
46668         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
46669         in the printed representation of a NaN.
46670         * tests/test-vasprintf-posix.c (test_function): Likewise.
46671         * tests/test-snprintf-posix.h (test_function): Likewise.
46672         * tests/test-sprintf-posix.h (test_function): Likewise.
46673         Reported by Eric Blake.
46674
46675 2007-05-23  Eric Blake  <ebb9@byu.net>
46676
46677         Fix fseeko/ftello on cygwin 1.5.24.
46678         * doc/functions/fseeko.texi (fseeko): Document the fix.
46679         * doc/functions/ftello.texi (ftello): Document the fix.
46680         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
46681         * doc/functions/stdout.text (stdout): New file.
46682         * doc/functions/stderr.text (stderr): New file.
46683         * doc/gnulib.texi (Function Substitutes): Use new files.
46684         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
46685         prior to 1.7.0.
46686         * tests/test-ftello.c (main): Likewise for ftello.
46687         * tests/test-fseeko.sh: New file.
46688         * tests/test-ftello.sh: New file.
46689         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
46690         with seekable stdin.
46691         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
46692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
46693         (gl_REPLACE_FSEEKO): New macro.
46694         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
46695         * modules/fseeko (Files): Distribute fseeko.c.
46696         * modules/ftello (Files): Distribute ftello.c.
46697         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
46698         mode.
46699         * lib/ftello.c (rpl_ftello): New file.
46700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
46701         fseeko, ftello.
46702         (gl_STDIN_LARGE_OFFSET): New macro.
46703         * modules/stdio (Makefile.am): Perform the replacement.
46704         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
46705
46706 2007-05-23  Bruno Haible  <bruno@clisp.org>
46707
46708         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
46709         GNULIB_POSIXCHECK is defined.
46710
46711 2007-05-21  Bruno Haible  <bruno@clisp.org>
46712
46713         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
46714         Check also the output for NaN arguments. When cross-compiling, guess
46715         no on IRIX.
46716         * lib/vasnprintf.c: Update comments.
46717         * tests/test-vasnprintf-posix.c (strisnan): New function.
46718         (test_function): Use it.
46719         * tests/test-vasprintf-posix.c (strisnan): New function.
46720         (test_function): Use it.
46721         * tests/test-snprintf-posix.h (strisnan): New function.
46722         (test_function): Use it.
46723         * tests/test-sprintf-posix.h (strisnan): New function.
46724         (test_function): Use it.
46725         Reported by Eric Blake.
46726
46727 2007-05-20  Bruno Haible  <bruno@clisp.org>
46728
46729         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
46730         numbers that fails on BeOS.
46731         * doc/functions/frexpl.texi: Update.
46732
46733 2007-05-20  Jim Meyering  <jim@meyering.net>
46734
46735         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
46736         forced upon us by glibc-2.6.
46737
46738 2007-05-20  Bruno Haible  <bruno@clisp.org>
46739
46740         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
46741         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
46742         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
46743         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
46744         NEED_PRINTF_INFINITE.
46745         (is_infinitel): New function.
46746         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
46747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
46748         gl_PREREQ_VASNPRINTF_INFINITE.
46749         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
46750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46751         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
46752         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
46753         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
46754         gl_PREREQ_VASNPRINTF_INFINITE.
46755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46756         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46757         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46758         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46759         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46760         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46761         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46762         * doc/functions/fprintf.texi: Update.
46763         * doc/functions/printf.texi: Update.
46764         * doc/functions/snprintf.texi: Update.
46765         * doc/functions/sprintf.texi: Update.
46766         * doc/functions/vfprintf.texi: Update.
46767         * doc/functions/vprintf.texi: Update.
46768         * doc/functions/vsnprintf.texi: Update.
46769         * doc/functions/vsprintf.texi: Update.
46770
46771 2007-05-20  Bruno Haible  <bruno@clisp.org>
46772
46773         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
46774         was not found in libc.
46775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46776
46777 2007-05-20  Bruno Haible  <bruno@clisp.org>
46778
46779         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46780         printed as "-nan" instead of "nan".
46781         * tests/test-vasprintf-posix.c (test_function): Likewise.
46782         * tests/test-snprintf-posix.h (test_function): Likewise.
46783         * tests/test-sprintf-posix.h (test_function): Likewise.
46784         Needed for HP-UX 11.
46785
46786 2007-05-20  Jim Meyering  <jim@meyering.net>
46787
46788         Fix buggy test for the fchownat-deref bug.
46789         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46790         symlink required for the run-test.  Without it, this test would
46791         always declare that fchownat doesn't work, and client code would
46792         unnecessarily use the replacement function with fixed libc.
46793         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46794         Reported by Greg Schafer.
46795
46796 2007-05-19  Bruno Haible  <bruno@clisp.org>
46797
46798         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46799         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46800         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46801         Needed for IRIX 6.5 and Solaris 2.5.1.
46802
46803 2007-05-19  Bruno Haible  <bruno@clisp.org>
46804
46805         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46806         (test_function): Skip tests involving -0.0 on platforms where
46807         -0.0 = 0.0.
46808         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46809         (test_function): Skip tests involving -0.0 on platforms where
46810         -0.0 = 0.0.
46811         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46812         (test_function): Skip tests involving -0.0 on platforms where
46813         -0.0 = 0.0.
46814         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46815         (test_function): Skip tests involving -0.0 on platforms where
46816         -0.0 = 0.0.
46817         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
46818         tests.
46819         * tests/test-printf-posix.h (test_function): Likewise.
46820         * tests/test-printf-posix.output: Remove all -0.0 related results.
46821         Needed for IRIX 6.5.
46822
46823 2007-05-19  Bruno Haible  <bruno@clisp.org>
46824
46825         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46826         printed as "nan0x7fffffff" instead of "nan".
46827         * tests/test-vasprintf-posix.c (test_function): Likewise.
46828         * tests/test-snprintf-posix.h (test_function): Likewise.
46829         * tests/test-sprintf-posix.h (test_function): Likewise.
46830         * tests/test-fprintf-posix.h (NaN): Remove macro.
46831         (test_function): Remove all NaN related tests.
46832         * tests/test-printf-posix.h (NaN): Remove macro.
46833         (test_function): Remove all NaN related tests.
46834         * tests/test-printf-posix.output: Remove all NaN related results.
46835         Needed for IRIX 6.5.
46836
46837 2007-05-19  Bruno Haible  <bruno@clisp.org>
46838
46839         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
46840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46841
46842 2007-05-19  Bruno Haible  <bruno@clisp.org>
46843
46844         * lib/float_.h: New file.
46845         * m4/float_h.m4: New file.
46846         * modules/float: New file.
46847         * modules/isnanl (Dependencies): Add float.
46848         * modules/isnanl-nolibm (Dependencies): Likewise.
46849         * modules/mathl (Dependencies): Likewise.
46850         * modules/printf-frexpl (Dependencies): Likewise.
46851         * modules/signbit (Dependencies): Likewise.
46852         * modules/vasnprintf (Dependencies): Likewise.
46853         * doc/headers/float.texi: Update.
46854
46855 2007-05-19  Jim Meyering  <jim@meyering.net>
46856
46857         * lib/utimens.c (gl_futimens): Rename from futimens,
46858         now that glibc-2.6 declares futimens.
46859         * lib/utimens.h: Likewise.
46860
46861 2007-05-19  Bruno Haible  <bruno@clisp.org>
46862
46863         Avoid test failures on mingw.
46864         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
46865         * tests/test-printf-posix.sh: Likewise.
46866         * tests/test-vfprintf-posix.sh: Likewise.
46867         * tests/test-vprintf-posix.sh: Likewise.
46868
46869 2007-05-19  Bruno Haible  <bruno@clisp.org>
46870
46871         Fix *printf result for NaN, Inf, -0.0 on mingw.
46872         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
46873         * lib/vasnprintf.c: Include math.h and isnan.h.
46874         (is_infinite_or_zero): New function.
46875         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
46876         values in the %f, %F, %e, %E, %g, %G directives.
46877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
46878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46879         gl_PRINTF_INFINITE and test its result. Invoke
46880         gl_PREREQ_VASNPRINTF_INFINITE.
46881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46885         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46888         * doc/functions/fprintf.texi: Update.
46889         * doc/functions/printf.texi: Update.
46890         * doc/functions/snprintf.texi: Update.
46891         * doc/functions/sprintf.texi: Update.
46892         * doc/functions/vfprintf.texi: Update.
46893         * doc/functions/vprintf.texi: Update.
46894         * doc/functions/vsnprintf.texi: Update.
46895         * doc/functions/vsprintf.texi: Update.
46896
46897 2007-05-19  Bruno Haible  <bruno@clisp.org>
46898
46899         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
46900         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
46901         Instead of multiplying with 10^k, set extra_zeroes to k.
46902         (scale10_round_long_double): Remove function.
46903
46904 2007-05-18  Bruno Haible  <bruno@clisp.org>
46905
46906         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
46907         introduced on 2007-05-06.
46908
46909 2007-05-18  Bruno Haible  <bruno@clisp.org>
46910
46911         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
46912         %g directives.
46913         * tests/test-vasprintf-posix.c (test_function): Likewise.
46914         * tests/test-snprintf-posix.h (test_function): Likewise.
46915         * tests/test-sprintf-posix.h (test_function): Likewise.
46916
46917 2007-05-18  Bruno Haible  <bruno@clisp.org>
46918
46919         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
46920         (strmatch): New function.
46921         (test_function): Test the %f directive on numbers of various exponents.
46922         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
46923         (strmatch): New function.
46924         (test_function): Test the %f directive on numbers of various exponents.
46925         * tests/test-snprintf-posix.h (strmatch): New function.
46926         (test_function): Test the %f directive on numbers of various exponents.
46927         * tests/test-sprintf-posix.h (strmatch): New function.
46928         (test_function): Test the %f directive on numbers of various exponents.
46929         * tests/test-snprintf-posix.c (SIZEOF): New macro.
46930         * tests/test-sprintf-posix.c (SIZEOF): New macro.
46931         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
46932         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
46933
46934 2007-05-18  Bruno Haible  <bruno@clisp.org>
46935
46936         Add support for 'long double' number output.
46937         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
46938         * lib/vasnprintf.c: Include math.h and float+.h.
46939         (mp_limb_t): New type.
46940         (GMP_LIMB_BITS): New macro.
46941         (mp_twolimb_t): New type.
46942         (GMP_TWOLIMB_BITS): New macro.
46943         (mpn_t): New type.
46944         (multiply, divide, convert_to_decimal, decode_long_double,
46945         scale10_round_long_double, scale10_round_decimal_long_double,
46946         floorlog10l): New functions.
46947         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
46948         for the %f, %F, %e, %E, %g, %G directives.
46949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
46950         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46951         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
46952         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
46953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46954         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46960         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
46961         * modules/snprintf-posix (Depends-on): Likewise.
46962         * modules/sprintf-posix (Depends-on): Likewise.
46963         * modules/vasnprintf-posix (Depends-on): Likewise.
46964         * modules/vasprintf-posix (Depends-on): Likewise.
46965         * modules/vfprintf-posix (Depends-on): Likewise.
46966         * modules/vsnprintf-posix (Depends-on): Likewise.
46967         * modules/vsprintf-posix (Depends-on): Likewise.
46968         * modules/vasnprintf (Files): Add lib/float+.h.
46969         * doc/functions/fprintf.texi: Update.
46970         * doc/functions/printf.texi: Update.
46971         * doc/functions/snprintf.texi: Update.
46972         * doc/functions/sprintf.texi: Update.
46973         * doc/functions/vfprintf.texi: Update.
46974         * doc/functions/vprintf.texi: Update.
46975         * doc/functions/vsnprintf.texi: Update.
46976         * doc/functions/vsprintf.texi: Update.
46977
46978 2007-05-18  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
46981
46982 2007-05-18  Bruno Haible  <bruno@clisp.org>
46983
46984         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
46985         for printing 64-bit integers. Needed for mingw.
46986
46987 2007-05-18  Bruno Haible  <bruno@clisp.org>
46988
46989         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46990         gl_FUNC_FREXPL_WORKS.
46991         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
46992
46993 2007-05-18  Bruno Haible  <bruno@clisp.org>
46994
46995         * modules/frexpl-nolibm-tests: New file.
46996
46997         * modules/frexpl-nolibm: New file.
46998         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
46999
47000 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47001
47002         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47003         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47004         GCC 4.2, which otherwise issues a lot of warnings.
47005         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47006         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47007         Likewise.
47008         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47009         * modules/iconv_open (iconv.h): Likewise.
47010         * modules/locale (locale.h): Likewise.
47011         * modules/netinet_in (netinet/in.h): Likewise.
47012         * modules/sys_select (sys_select.h): Likewise.
47013         * modules/sys_socket (sys/socket.h): Likewise.
47014         * modules/sys_stat (sys/stat.h): Likewise.
47015         * modules/sysexits (sysexits.h): Likewise.
47016         * modules/unistd (unistd.h): Likewise.
47017
47018 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47019
47020         * modules/closein-tests (Makefile.am): Distribute
47021         `test-closein.sh'.
47022
47023 2007-05-17  Bruno Haible  <bruno@clisp.org>
47024
47025         * tests/test-printf-posix.output: Renamed from
47026         tests/test-fprintf-posix.out.
47027         * modules/fprintf-posix-tests: Update.
47028         * modules/printf-posix-tests: Update.
47029         * modules/vfprintf-posix-tests: Update.
47030         * modules/vprintf-posix-tests: Update.
47031         * tests/test-fprintf-posix.sh: Update.
47032         * tests/test-printf-posix.sh: Update.
47033         * tests/test-vfprintf-posix.sh: Update.
47034         * tests/test-vprintf-posix.sh: Update.
47035         Reported by Ralf Wildenhues.
47036
47037 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47038
47039         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47040         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47041         GCC 4.2, which otherwise issues a lot of warnings.
47042         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47043         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47044         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47045         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47046         it should no longer be needed.
47047         * lib/string_.h: Likewise.
47048         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47049         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47050         * modules/inttypes (inttypes.h): Likewise.
47051         * modules/math (math.h): Likewise.
47052         * modules/search (search.h): Likewise.
47053         * modules/signal (signal.h): Likewise.
47054         * modules/stdint (stdint.h): Likewise.
47055         * modules/stdio (stdio.h): Likewise.
47056         * modules/stdlib (stdlib.h): Likewise.
47057         * modules/string (string.h): Likewise.
47058         * modules/sys_time (sys/time.h): Likewise.
47059         * modules/time (time.h): Likewise.
47060         * modules/wchar (wchar.h): Likewise.
47061         * modules/wctype (wtype.h): Likewise.
47062
47063 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47064
47065         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47066
47067 2007-05-13  Bruno Haible  <bruno@clisp.org>
47068
47069         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47070         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47071         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47072         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47073         (gl_PREREQ_STRTOK_R): Don't require it here.
47074
47075 2007-05-13  Bruno Haible  <bruno@clisp.org>
47076
47077         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47078         when used in C++ mode.
47079
47080 2007-05-12  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/linebuffer.h: Tweak doc.
47083         * lib/linebuffer.c: Likewise.
47084
47085 2007-05-12  James Youngman  <jay@gnu.org>
47086
47087         * lib/linebuffer.c (readlinebuffer_delim): New function,
47088         like readlinebuffer, but use a caller-specified delimiter.
47089         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47090         as the delimiter.
47091         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47092
47093 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47094
47095         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47096         * modules/openat (Files): Remove openat-die.c.
47097         (Depends-on): Add openat-die.
47098         * modules/openat-die: New module.
47099
47100 2007-05-06  Bruno Haible  <bruno@clisp.org>
47101
47102         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47103         Update with info about Cygwin.
47104         * doc/functions/fprintf.texi: Update.
47105         * doc/functions/printf.texi: Update.
47106         * doc/functions/snprintf.texi: Update.
47107         * doc/functions/sprintf.texi: Update.
47108         * doc/functions/vfprintf.texi: Update.
47109         * doc/functions/vprintf.texi: Update.
47110         * doc/functions/vsnprintf.texi: Update.
47111         * doc/functions/vsprintf.texi: Update.
47112         Reported by Eric Blake.
47113
47114 2007-05-06  Bruno Haible  <bruno@clisp.org>
47115
47116         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47117         padding ourselves for the floating-point directives.
47118         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47121         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47122         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47130         * tests/test-snprintf-posix.h (test_function): Also check the width
47131         and some flags in the %f directive.
47132         * tests/test-sprintf-posix.h (test_function): Likewise.
47133         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47134         * tests/test-vasprintf-posix.c (test_function): Likewise.
47135         * doc/functions/fprintf.texi: Update.
47136         * doc/functions/printf.texi: Update.
47137         * doc/functions/snprintf.texi: Update.
47138         * doc/functions/sprintf.texi: Update.
47139         * doc/functions/vfprintf.texi: Update.
47140         * doc/functions/vprintf.texi: Update.
47141         * doc/functions/vsnprintf.texi: Update.
47142         * doc/functions/vsprintf.texi: Update.
47143
47144 2007-05-06  Bruno Haible  <bruno@clisp.org>
47145
47146         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47147         pass the ' flag character to sprintf or snprintf.
47148         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47151         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47152         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47153         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47154         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47155         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47157         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47158         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47159         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47160         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47161         flag.
47162         * tests/test-sprintf-posix.h (test_function): Likewise.
47163         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47164         * tests/test-vasprintf-posix.c (test_function): Likewise.
47165         * doc/functions/fprintf.texi: Update.
47166         * doc/functions/printf.texi: Update.
47167         * doc/functions/snprintf.texi: Update.
47168         * doc/functions/sprintf.texi: Update.
47169         * doc/functions/vfprintf.texi: Update.
47170         * doc/functions/vprintf.texi: Update.
47171         * doc/functions/vsnprintf.texi: Update.
47172         * doc/functions/vsprintf.texi: Update.
47173
47174 2007-05-01  Bruno Haible  <bruno@clisp.org>
47175
47176         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
47177
47178 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
47179
47180         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
47181         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
47182
47183 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47184
47185         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
47186         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
47187         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
47188
47189 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
47190
47191         * lib/argp-help.c (struct hol_entry): New member `ord'.
47192         (HOL_ENTRY_PTRCMP): Use ord for comparison
47193         (hol_sort): Initialize ord.
47194
47195 2007-05-01  Bruno Haible  <bruno@clisp.org>
47196
47197         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
47198         Reported by Eric Blake.
47199         * doc/gnulib.texi (Function Substitutes): Update.
47200
47201 2007-05-01  Bruno Haible  <bruno@clisp.org>
47202
47203         * doc/functions.texi: Remove file, now redundant through
47204         doc/functions/*.texi.
47205
47206 2007-05-01  Bruno Haible  <bruno@clisp.org>
47207
47208         * modules/argp (Depends-on): Add sleep.
47209
47210 2007-05-01  Bruno Haible  <bruno@clisp.org>
47211
47212         * modules/sleep-tests: New file.
47213         * tests/test-sleep.c: New file.
47214
47215         * modules/sleep: New file.
47216         * lib/sleep.c: New file.
47217         * m4/sleep.m4: New file.
47218         * lib/unistd_.h (sleep): New declaration.
47219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
47220         HAVE_SLEEP.
47221         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
47222         * doc/functions/sleep.texi: Document the sleep module.
47223
47224 2007-05-01  Bruno Haible  <bruno@clisp.org>
47225
47226         * lib/sigprocmask.h: Remove file.
47227         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
47228         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
47229         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
47230         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
47231         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47232         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
47233         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
47234         HAVE_SIGSET_T as a shell variable.
47235         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
47236         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
47237         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
47238         (Depends-on): Add signal. Remove verify.
47239         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
47240         (Include): Mention <signal.h> instead of sigprocmask.h.
47241         * NEWS: Mention the change.
47242         * lib/fatal-signal.c: Don't include sigprocmask.h.
47243
47244 2007-05-01  Bruno Haible  <bruno@clisp.org>
47245
47246         * modules/signal: New file.
47247         * lib/signal_.h: New file.
47248         * m4/signal_h.m4: New file.
47249
47250 2007-05-01  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
47253         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
47254         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
47255         HAVE_WCTYPE_CTMP_BUG into wctype.h.
47256
47257 2007-05-01  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
47260         configure time.
47261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
47262         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
47263         * modules/sys_stat (Makefile.am): Substitute their values into
47264         sys/stat.h.
47265
47266 2007-05-01  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
47269         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
47270         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
47271
47272 2007-05-01  Bruno Haible  <bruno@clisp.org>
47273
47274         * doc/header/assert.texi: Undo last change: don't mention the gnulib
47275         'assert' module here.
47276
47277 2007-05-01  Bruno Haible  <bruno@clisp.org>
47278
47279         * doc/functions/*.texi: New files.
47280         * doc/functions/google-ranking.txt: New file.
47281         * doc/gnulib.texi (Function Substitutes): New chapter.
47282         (ctime, inet_ntoa): Remove sections.
47283         * doc/ctime.texi: Remove file.
47284         * doc/inet_ntoa.texi: Remove file.
47285         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
47286         dependencies.
47287         (%.info): New rule, specifying a --reference-limit.
47288
47289 2007-05-01  Bruno Haible  <bruno@clisp.org>
47290
47291         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
47292
47293 2007-05-01  Bruno Haible  <bruno@clisp.org>
47294
47295         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
47296         the portability of 'mkdir' to mingw systems.
47297
47298 2007-05-01  Bruno Haible  <bruno@clisp.org>
47299
47300         * doc/headers/google-ranking.txt: New file.
47301
47302 2007-04-30  Eric Blake  <ebb9@byu.net>
47303
47304         Prefer fseeko to fseek.
47305         * modules/getpass (Depends-on): Add fseeko.
47306         * lib/getpass.c (getpass): Use fseeko, not fseek.
47307
47308 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
47309
47310         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
47311         assumes the sorting is stable, while most qsort implementations
47312         are not.  Use argument addresses to ensure they never compare as
47313         equal.
47314
47315         * tests/test-argp-2.sh (usage-indent test): Fix output
47316         (func_compare): Restore diff options
47317         * tests/test-argp.c: Restore #include "progname.h"
47318
47319 2007-04-29  Bruno Haible  <bruno@clisp.org>
47320
47321         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
47322         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47323         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
47324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47325         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
47326         (configure.ac): Define CHECK_SNPRINTF_POSIX.
47327         (TESTS, check_PROGRAMS): Add test-snprintf.
47328         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
47329         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
47330         (TESTS, check_PROGRAMS): Add test-vsnprintf.
47331         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
47332         assertions that fail on HP-UX, OSF/1, or IRIX.
47333         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
47334
47335 2007-04-29  Bruno Haible  <bruno@clisp.org>
47336
47337         * MODULES.html.sh (posix_functions): Remove 'contents'.
47338
47339 2007-04-29  Karl Berry  <karl@gnu.org>
47340
47341         * config/srclist.txt (gendocs_template_min): new entry.
47342
47343 2007-04-29  Bruno Haible  <bruno@clisp.org>
47344
47345         Work around fpurge bug on BSD systems.
47346         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
47347         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47348         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
47349         fpurge to rpl_fpurge if the system already has this function.
47350         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
47351         the case where the system already has this function. Correct invariants
47352         on BSD systems.
47353         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
47354         BSD systems.
47355
47356 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47357
47358         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
47359         proposed by Sven Verdoolaege.
47360
47361         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
47362         options.
47363         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
47364         (usage and help tests): Update
47365
47366 2007-04-29  Bruno Haible  <bruno@clisp.org>
47367
47368         * tests/test-fflush.c (main): Use a file of size 17, not 10.
47369         Print more information in case of failure. Disable a test on BeOS.
47370
47371 2007-04-29  Bruno Haible  <bruno@clisp.org>
47372
47373         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
47374         This helps debugging on systems on which no gdb is available.
47375
47376 2007-04-29  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/freading.h: Improve comments.
47379         * lib/fwriting.h: Likewise.
47380         * tests/test-freading.c (main): Don't check freading immediately after
47381         repositioning. Needed for glibc.
47382
47383 2007-04-29  Bruno Haible  <bruno@clisp.org>
47384
47385         * lib/freading.c (freading): Trivial simplification.
47386
47387 2007-04-28  Bruno Haible  <bruno@clisp.org>
47388
47389         * tests/test-fwriting.c (main): Also test the interaction between
47390         fflush and fwriting.
47391         * modules/fwriting-tests (Depends-on): Add fflush.
47392
47393         * tests/test-freading.c (main): Also test the interaction between
47394         fflush and freading.
47395         * modules/freading-tests (Depends-on): Add fflush.
47396
47397 2007-04-28  Bruno Haible  <bruno@clisp.org>
47398
47399         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
47400         fseeko and ftello.
47401         Suggested by Eric Blake.
47402
47403 2007-04-28  Jim Meyering  <jim@meyering.net>
47404
47405         Avoid false-negative in gl_STDINT_H's C99 conformance test.
47406         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
47407         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
47408
47409 2007-04-27  Eric Blake  <ebb9@byu.net>
47410
47411         * doc/headers/assert.texi (assert.h): Document assert module use.
47412
47413 2007-04-27  Bruno Haible  <bruno@clisp.org>
47414
47415         * doc/headers/*.texi: New files.
47416         * doc/gnulib.texi (Header File Substitutes): New chapter.
47417         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
47418         dependencies.
47419         (standards.info ,standards.html, standards.dvi): Update dependencies.
47420         (mostlyclean, clean): New targets.
47421
47422 2007-04-27  Bruno Haible  <bruno@clisp.org>
47423
47424         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
47425         * modules/sysexits (Files, Makefile.am): Update.
47426
47427         * lib/sys_socket_.h: Renamed from lib/socket_.h.
47428         * modules/sys_socket (Files, Makefile.am): Update.
47429
47430         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47431         * modules/sys_stat (Files, Makefile.am): Update.
47432
47433 2007-04-27  Eric Blake  <ebb9@byu.net>
47434
47435         * lib/freading.h: Improve comments.
47436         * lib/fwriting.h: Likewise.
47437         * lib/fflush.c: Likewise.
47438
47439         Fix closein for mingw.
47440         * modules/closein-tests: Add tests for closein.
47441         * tests/test-closein.c: New file.
47442         * tests/test-closein.sh: Likewise.
47443         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
47444         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
47445
47446 2007-04-27  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
47449         version is < 6.
47450         * lib/math_.h [__DECC]: Likewise.
47451         * lib/stdio_.h [__DECC]: Likewise.
47452         * lib/stdlib_.h [__DECC]: Likewise.
47453         * lib/string_.h [__DECC]: Likewise.
47454         * lib/time_.h [__DECC]: Likewise.
47455         * lib/wchar_.h [__DECC]: Likewise.
47456         * lib/wctype_.h [__DECC]: Likewise.
47457
47458 2007-04-27  Bruno Haible  <bruno@clisp.org>
47459
47460         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
47461
47462 2007-04-27  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/fflush.c: Add comments.
47465         * modules/fpurge-tests (Depends-on): Add fflush.
47466         * modules/freadable-tests (Depends-on): Likewise.
47467         * modules/fwritable-tests (Depends-on): Likewise.
47468
47469 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
47470
47471         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
47472         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
47473         Report by Bruno Haible <bruno@clisp.org>.
47474
47475 2007-04-26  Eric Blake  <ebb9@byu.net>
47476
47477         Fix fflush on mingw.
47478         * modules/fflush (Depends-on): Add freading.
47479         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
47480         but unread data.
47481
47482 2007-04-26  Eric Blake  <ebb9@byu.net>
47483         and Bruno Haible  <bruno@clisp.org>
47484
47485         Implement freading and fwriting.
47486         * lib/freading.c: New file.
47487         * lib/freading.h: Likewise.
47488         * m4/freading.m4: Likewise.
47489         * modules/freading: Likewise.
47490         * modules/freading-tests: Likewise.
47491         * tests/test-freading.c: Likewise.
47492         * lib/fwriting.c: New file.
47493         * lib/fwriting.h: Likewise.
47494         * m4/fwriting.m4: Likewise.
47495         * modules/fwriting: Likewise.
47496         * modules/fwriting-tests: Likewise.
47497         * tests/test-fwriting.c: Likewise.
47498         * MODULES.html.sh (File stream based Input/Output): Mention them.
47499
47500 2007-04-26  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
47503         'long' when we assume it.
47504         Suggested by Eric Blake.
47505
47506 2007-04-26  Bruno Haible  <bruno@clisp.org>
47507
47508         Ensure fseeko, ftello are declared on glibc systems.
47509         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
47510         * modules/fseeko (configure.ac-early): Likewise.
47511         * modules/ftello (configure.ac-early): Likewise.
47512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
47513         AC_FUNC_FSEEKO for this.
47514         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
47515         (gl_CHECK_FSEEKO): Remove macro.
47516
47517 2007-04-26  Bruno Haible  <bruno@clisp.org>
47518
47519         * tests/test-fflush.c (main): Also check the ftell result after
47520         fflush and fseek/fseeko.
47521         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
47522         file descriptor position cache in the stream.
47523         * lib/fseeko.c (rpl_fseeko): Likewise.
47524
47525 2007-04-26  Bruno Haible  <bruno@clisp.org>
47526
47527         * modules/fflush-tests (Depends-on): Add fseeko.
47528
47529 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
47530             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47531
47532         * lib/argz_.h: ensure error_t definition is obtained in same
47533         mechanism system argz.h would have.
47534         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
47535         argz facilities are known bad.  Err on the side of caution if
47536         cross-compiling.
47537
47538 2007-04-25  Eric Blake  <ebb9@byu.net>
47539
47540         * lib/fpurge.c (includes): Use stdlib.h for free.
47541         * tests/test-fflush.c (main): Also test fflush-fseeko.
47542
47543 2007-04-25  Bruno Haible  <bruno@clisp.org>
47544
47545         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
47546         * lib/fseeko.c: New file.
47547         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
47548         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
47549         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
47550         gl_FUNC_FSEEKO.
47551         (gl_FUNC_FSEEKO): Invoke it.
47552         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
47553         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
47554         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
47555
47556 2007-04-25  Bruno Haible  <bruno@clisp.org>
47557
47558         * modules/fflush (Depends-on): Add ftello.
47559
47560 2007-04-25  Bruno Haible  <bruno@clisp.org>
47561
47562         * modules/ftello-tests: New file.
47563         * tests/test-ftello.c: New file.
47564
47565         * modules/ftello: New file.
47566         * m4/ftello.m4: New file.
47567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
47568         HAVE_FTELLO.
47569         * lib/stdio_.h (ftello): New declaration.
47570         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
47571         HAVE_FTELLO.
47572
47573 2007-04-25  Bruno Haible  <bruno@clisp.org>
47574
47575         * modules/fseeko-tests: New file.
47576         * tests/test-fseeko.c: New file.
47577
47578         * modules/fseeko: New file.
47579         * m4/fseeko.m4: New file.
47580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
47581         HAVE_FSEEKO.
47582         * lib/stdio_.h (fseeko): New declaration.
47583         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
47584         HAVE_FSEEKO.
47585
47586 2007-04-25  Bruno Haible  <bruno@clisp.org>
47587
47588         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
47589
47590 2007-04-25  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
47593         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
47594         * tests/test-unistd.c: Likewise.
47595         * tests/test-fcntl.c: Likewise.
47596
47597 2007-04-23  Eric Blake  <ebb9@byu.net>
47598
47599         * lib/fflush.c: Fix missing include.
47600         Reported by Bruno Haible.
47601
47602 2007-04-23  Bruno Haible  <bruno@clisp.org>
47603
47604         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
47605         Reported by Eric Blake.
47606
47607 2007-04-23  Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
47610
47611 2007-04-23  Bruno Haible  <bruno@clisp.org>
47612
47613         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
47614
47615 2007-04-23  Bruno Haible  <bruno@clisp.org>
47616
47617         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
47618         Needed on HP-UX 11.
47619
47620 2007-04-16  Eric Blake  <ebb9@byu.net>
47621
47622         Make fflush rely on fpurge.
47623         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
47624         open coding all variants.
47625         * modules/fflush (Depends-on): Add fpurge and unistd.
47626         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
47627         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
47628
47629         Fix --with-tests compilation on cygwin.
47630         * modules/argmatch-tests (Makefile.am): List gnulib library first
47631         in LDADD.
47632         * modules/argp-tests (Makefile.am): Likewise.
47633         * modules/array-list-tests (Makefile.am): Likewise.
47634         * modules/array-oset-tests (Makefile.am): Likewise.
47635         * modules/avltree-list-tests (Makefile.am): Likewise.
47636         * modules/avltree-oset-tests (Makefile.am): Likewise.
47637         * modules/avltreehash-list-tests (Makefile.am): Likewise.
47638         * modules/carray-list-tests (Makefile.am): Likewise.
47639         * modules/dirname-tests (Makefile.am): Likewise.
47640         * modules/frexp-tests (Makefile.am): Likewise.
47641         * modules/isnanl-tests (Makefile.am): Likewise.
47642         * modules/linked-list-tests (Makefile.am): Likewise.
47643         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47644         * modules/lock-tests (Makefile.am): Likewise.
47645         * modules/rbtree-list-tests (Makefile.am): Likewise.
47646         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47647         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47648         * modules/tls-tests (Makefile.am): Likewise.
47649         * modules/tsearch-tests (Makefile.am): Likewise.
47650         * modules/xvasprintf-tests (Makefile.am): Likewise.
47651
47652         Fix fpurge for cygwin.
47653         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47654         value.
47655         * modules/fpurge-tests (Depends-on): Clean up trash.
47656
47657 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47658
47659         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47660
47661         * m4/autobuild.m4: Re-indent.
47662
47663 2007-04-13  Bruno Haible  <bruno@clisp.org>
47664
47665         * modules/fpurge-tests: New file.
47666         * tests/test-fpurge.c: New file.
47667
47668         * modules/fpurge: New file.
47669         * lib/fpurge.h: New file.
47670         * lib/fpurge.c: New file.
47671         * m4/fpurge.m4: New file.
47672
47673 2007-04-13  Bruno Haible  <bruno@clisp.org>
47674
47675         * modules/fbufmode-tests: New file.
47676         * tests/test-fbufmode.c: New file.
47677
47678         * modules/fbufmode: New file.
47679         * lib/fbufmode.h: New file.
47680         * lib/fbufmode.c: New file.
47681         * m4/fbufmode.m4: New file.
47682
47683 2007-04-13  Bruno Haible  <bruno@clisp.org>
47684
47685         * modules/fwritable-tests: New file.
47686         * tests/test-fwritable.c: New file.
47687
47688         * modules/fwritable: New file.
47689         * lib/fwritable.h: New file.
47690         * lib/fwritable.c: New file.
47691         * m4/fwritable.m4: New file.
47692
47693 2007-04-13  Bruno Haible  <bruno@clisp.org>
47694
47695         * modules/freadable-tests: New file.
47696         * tests/test-freadable.c: New file.
47697
47698         * modules/freadable: New file.
47699         * lib/freadable.h: New file.
47700         * lib/freadable.c: New file.
47701         * m4/freadable.m4: New file.
47702
47703 2007-04-13  Bruno Haible  <bruno@clisp.org>
47704
47705         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
47706         MOSTLYCLEANFILES.
47707
47708 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
47711         gzip bootstrap.conf to avoid dragging in i18n machinery.
47712         (gnulib_tool_option): Use it.
47713
47714 2007-04-13  Bruno Haible  <bruno@clisp.org>
47715
47716         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
47717         %F directives.
47718         * tests/test-vasprintf-posix.c (test_function): Likewise.
47719         * tests/test-snprintf-posix.h (test_function): Likewise.
47720         * tests/test-sprintf-posix.h (test_function): Likewise.
47721         * tests/test-fprintf-posix.h (test_function): Likewise.
47722         * tests/test-printf-posix.h (test_function): Likewise.
47723         * tests/test-fprintf-posix.out: Likewise.
47724
47725 2007-04-13  Bruno Haible  <bruno@clisp.org>
47726
47727         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
47728         * modules/tls-tests (configure.ac): Likewise.
47729         Reported by Arto C. Nirkko <anirkko@insel.ch>.
47730
47731 2007-04-13  Bruno Haible  <bruno@clisp.org>
47732
47733         * lib/tls.c (glthread_tls_get): Fix return type.
47734         Patch by Arto C. Nirkko <anirkko@insel.ch>.
47735
47736 2007-04-12  Eric Blake  <ebb9@byu.net>
47737
47738         * modules/gettime (Depends-on): Remove gettime.
47739         Reported by Dmitry V. Levin.
47740
47741 2007-04-12  Bruno Haible  <bruno@clisp.org>
47742
47743         * modules/fflush (Include): Mention <stdio.h>.
47744         * modules/strtoimax (Include): Mention <inttypes.h>.
47745         * modules/strtoumax (Include): Likewise.
47746
47747 2007-04-12  Eric Blake  <ebb9@byu.net>
47748
47749         * .cvsignore: New file.
47750         * .gitignore: Likewise.
47751
47752 2007-04-12  Bruno Haible  <bruno@clisp.org>
47753
47754         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
47755         not before, since $(LDADD) often contains libgnu.a.
47756         * modules/striconv-tests (test_striconv_LDADD): Likewise.
47757         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
47758         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
47759         Needed on Cygwin.
47760
47761 2007-04-12  Eric Blake  <ebb9@byu.net>
47762
47763         Work around glibc's failure to flush stdin on fclose.
47764         * lib/closein.c (close_stdin): Flush stdin before closing.
47765
47766         Work around glibc's failure to reset seekable stdin on exit.
47767         * modules/closein: New module.
47768         * lib/closein.c: New file.
47769         * lib/closein.h: Likewise.
47770         * m4/closein.m4: Likewise.
47771         * MODULES.html.sh (File stream based Input/Output): Document it.
47772
47773 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47774
47775         * gnulib-tool: Rename generated 'autobuild' script to
47776         'do-autobuild' in --create-megatestdir output.
47777
47778         * doc/gnulib.texi (Build robot for gnulib): Fix.
47779
47780 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47781
47782         * modules/sysexits (Depends-on): Add absolute-header.
47783
47784 2007-04-12  Eric Blake  <ebb9@byu.net>
47785
47786         No need to preserve errno on success.
47787         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47788         Reported by Bruno Haible.
47789
47790 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47791
47792         * MODULES.html.sh (Support for maintaining and releasing
47793         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47794
47795 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47796
47797         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47798
47799 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47800
47801         * modules/autobuild: New module.
47802
47803         * m4/autobuild.m4: New file.
47804
47805 2007-04-11  Bruno Haible  <bruno@clisp.org>
47806
47807         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47808         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47812         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47813         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47815         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47816         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47817         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
47818         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47819         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
47821         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47822         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47823         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
47824         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47825         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47826         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
47827         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47828         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
47830         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47831         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
47833         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47834         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47835         Reported by Eric Blake.
47836
47837 2007-04-11  Bruno Haible  <bruno@clisp.org>
47838
47839         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
47840
47841 2007-04-10  Bruno Haible  <bruno@clisp.org>
47842
47843         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
47844         for NaN and Infinity. Needed on FreeBSD 6.1.
47845         * tests/test-vasnprintf-posix.c (test_function): Undo last change
47846         regarding results for "%010a" of Infinity and NaN.
47847         * tests/test-vasprintf-posix.c (test_function): Likewise.
47848         * tests/test-snprintf-posix.h (test_function): Likewise.
47849         * tests/test-sprintf-posix.h (test_function): Likewise.
47850         * tests/test-fprintf-posix.h (test_function): Likewise.
47851         * tests/test-printf-posix.h (test_function): Likewise.
47852         * tests/test-fprintf-posix.out: Likewise.
47853
47854 2007-04-10  Bruno Haible  <bruno@clisp.org>
47855
47856         * modules/locale-tests: New file.
47857         * tests/test-locale.c: New file.
47858
47859         * modules/locale: New file.
47860         * lib/locale_.h: New file.
47861         * m4/locale_h.m4: New file.
47862
47863 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
47864             Bruno Haible  <bruno@clisp.org>
47865
47866         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
47867         be determined, test for availability of the copysignf, copysign,
47868         copysignl functions.
47869         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
47870         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
47871         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
47872
47873 2007-04-09  Eric Blake  <ebb9@byu.net>
47874
47875         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
47876         * modules/stdio (Makefile.am): Support fflush.
47877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47878         * modules/fflush: New file.
47879         * lib/fflush.c: Likewise.
47880         * m4/fflush.m4: Likewise.
47881         * modules/fflush-tests: New test.
47882         * tests/test-fflush.c: Likewise.
47883         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
47884
47885 2007-04-06  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
47888         (VASNPRINTF): Use signbit for faster determination whether to print a
47889         minus sign.
47890         * modules/vasnprintf (Files): Remove lib/float+.h.
47891         * modules/fprintf-posix (Depends-on): Add signbit.
47892         * modules/snprintf-posix (Depends-on): Likewise.
47893         * modules/sprintf-posix (Depends-on): Likewise.
47894         * modules/vasnprintf-posix (Depends-on): Likewise.
47895         * modules/vasprintf-posix (Depends-on): Likewise.
47896         * modules/vfprintf-posix (Depends-on): Likewise.
47897         * modules/vsnprintf-posix (Depends-on): Likewise.
47898         * modules/vsprintf-posix (Depends-on): Likewise.
47899
47900 2007-04-06  Bruno Haible  <bruno@clisp.org>
47901
47902         * tests/test-frexp.c (main): Test also the sign bit of zero results.
47903         * tests/test-frexpl.c (main): Likewise.
47904         * tests/test-ldexpl.c (main): Likewise.
47905         * modules/frexp-tests (Depends-on): Add signbit.
47906         * modules/frexpl-tests (Depdends-on): Likewise.
47907         * modules/ldexpl-tests (Depdends-on): Likewise.
47908
47909 2007-04-06  Bruno Haible  <bruno@clisp.org>
47910
47911         * modules/signbit-tests: New file.
47912         * tests/test-signbit.c: New file.
47913
47914         * modules/signbit: New file.
47915         * lib/signbitf.c: New file.
47916         * lib/signbitd.c: New file.
47917         * lib/signbitl.c: New file.
47918         * m4/signbit.m4: New file.
47919         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
47920         (signbit): New macro.
47921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
47922         REPLACE_SIGNBIT.
47923         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
47924         REPLACE_FREXPL into math.h.
47925
47926 2007-04-06  Bruno Haible  <bruno@clisp.org>
47927
47928         * modules/isnanf-nolibm-tests: New file.
47929         * tests/test-isnanf.c: New file.
47930
47931         * modules/isnanf-nolibm: New file.
47932         * lib/isnanf.h: New file.
47933         * lib/isnanf.c: New file.
47934         * lib/isnan.c: Consider the USE_FLOAT macro.
47935         * m4/isnanf.m4: New file.
47936
47937 2007-04-06  Bruno Haible  <bruno@clisp.org>
47938
47939         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
47940         (Link): New section.
47941
47942         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
47943
47944 2007-04-06  Bruno Haible  <bruno@clisp.org>
47945
47946         Assume the 'long double' type.
47947         * m4/longdouble.m4: Remove file.
47948         * config/srclist.txt: Don't mention longdouble.m4.
47949         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
47950         * lib/float+.h: Likewise.
47951         * lib/frexp.c: Likewise.
47952         * lib/printf-args.h: Likewise.
47953         * lib/printf-args.c: Likewise.
47954         * lib/printf-frexp.c: Likewise.
47955         * lib/printf-parse.c: Likewise.
47956         * lib/vasnprintf.c: Likewise.
47957         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
47958         * m4/intl.m4: Likewise.
47959         * m4/isnanl.m4: Likewise.
47960         * m4/printf.m4: Likewise.
47961         * m4/printf-frexpl.m4: Likewise.
47962         * m4/vasnprintf.m4: Likewise.
47963         * modules/allocsa (Files): Remove m4/longdouble.m4.
47964         * modules/gettext (Files): Likewise.
47965         * modules/relocatable-prog-wrapper (Files): Likewise.
47966         * modules/vasnprintf (Files): Likewise.
47967         * modules/isnanl (Files): Likewise.
47968         (Include): Simplify.
47969         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
47970         (Include): Simplify.
47971         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
47972         (Include): Simplify.
47973         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
47974         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47975         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
47976         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47977         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47978         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47979         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
47980         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47981         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47982         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47983         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
47984         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47985         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
47986         * tests/test-isnanl.c: Likewise.
47987         * tests/test-snprintf-posix.h: Likewise.
47988         * tests/test-sprintf-posix.h: Likewise.
47989         * tests/test-vasnprintf-posix.c: Likewise.
47990         * tests/test-vasnprintf-posix2.c: Likewise.
47991         * tests/test-vasprintf-posix.c: Likewise.
47992
47993 2007-04-06  Bruno Haible  <bruno@clisp.org>
47994
47995         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
47996         * lib/math_.h [__DECC]: Include the overridden include file through
47997         #include_next, outside the double-inclusion guard.
47998         * lib/stdio_.h [__DECC]: Likewise.
47999         * lib/stdlib_.h [__DECC]: Likewise.
48000         * lib/string_.h [__DECC]: Likewise.
48001         * lib/time_.h [__DECC]: Likewise.
48002         * lib/wchar_.h [__DECC]: Likewise.
48003         * lib/wctype_.h [__DECC]: Likewise.
48004         * lib/inttypes_.h [__DECC]: Likewise.
48005         Reported by Albert Chin <china@thewrittenword.com> in
48006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48007
48008 2007-04-04  Eric Blake  <ebb9@byu.net>
48009
48010         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48011         1.5.x.
48012
48013 2007-04-04  Bruno Haible  <bruno@clisp.org>
48014
48015         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48016         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48017
48018 2007-04-04  Bruno Haible  <bruno@clisp.org>
48019
48020         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48021         results for "%010a" of Infinity and NaN.
48022         * tests/test-vasprintf-posix.c (test_function): Likewise.
48023         * tests/test-snprintf-posix.h (test_function): Likewise.
48024         * tests/test-sprintf-posix.h (test_function): Likewise.
48025         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48026         * tests/test-printf-posix.h (test_function): Likewise.
48027         * tests/test-fprintf-posix.out: Update.
48028         Needed for FreeBSD 6.1.
48029
48030 2007-04-04  Bruno Haible  <bruno@clisp.org>
48031
48032         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48033         directly used by the gnulib modules nor by gnulib-tool.
48034
48035 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48036
48037         * DEPENDENCIES: Give overall description of version dependency
48038         desirability.  Use more-typical names for apps.
48039         Add shell, coreutils, diffutils, grep, tar, gzip.
48040
48041 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48042
48043         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48044
48045 2007-04-04  Karl Berry  <karl@gnu.org>
48046
48047         * MODULES.html.sh (func_module): missing '.
48048
48049 2007-04-03  Bruno Haible  <bruno@clisp.org>
48050
48051         * modules/argmatch-tests (Makefile.am): New variable
48052         test_argmatch_LDADD.
48053         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48054         * modules/array-list-tests (Makefile.am): New variable
48055         test_array_list_LDADD.
48056         * modules/array-oset-tests (Makefile.am): New variable
48057         test_array_oset_LDADD.
48058         * modules/avltree-list-tests (Makefile.am): New variable
48059         test_avltree_list_LDADD.
48060         * modules/avltree-oset-tests (Makefile.am): New variable
48061         test_avltree_oset_LDADD.
48062         * modules/avltreehash-list-tests (Makefile.am): New variable
48063         test_avltreehash_list_LDADD.
48064         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48065         test_canonicalize_lgpl_LDADD.
48066         * modules/carray-list-tests (Makefile.am): New variable
48067         test_carray_list_LDADD.
48068         * modules/dirname-tests (Makefile.am): New variable
48069         test_dirname_LDADD.
48070         * modules/linked-list-tests (Makefile.am): New variable
48071         test_linked_list_LDADD.
48072         * modules/linkedhash-list-tests (Makefile.am): New variable
48073         test_linkedhash_list_LDADD.
48074         * modules/rbtree-list-tests (Makefile.am): New variable
48075         test_rbtree_list_LDADD.
48076         * modules/rbtree-oset-tests (Makefile.am): New variable
48077         test_rbtree_oset_LDADD.
48078         * modules/rbtreehash-list-tests (Makefile.am): New variable
48079         test_rbtreehash_list_LDADD.
48080         * modules/xvasprintf-tests (Makefile.am): New variable
48081         test_xvasprintf_LDADD.
48082         Reported by Eric Blake.
48083
48084 2007-04-03  Eric Blake  <ebb9@byu.net>
48085
48086         * DEPENDENCIES: Weaken m4 requirements.
48087
48088 2007-04-03  Bruno Haible  <bruno@clisp.org>
48089
48090         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48091         * modules/isnanl-tests (configure.ac): Likewise.
48092
48093 2007-04-03  Ben Pfaff  <blp@gnu.org>
48094
48095         * modules/iconv_open: Add $(srcdir)/ to source directory
48096         references in Makefile fragments that call gperf, to fix VPATH
48097         builds.
48098
48099 2007-04-03  Bruno Haible  <bruno@clisp.org>
48100
48101         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48102         * lib/ldexpl.c: Undo last change.
48103
48104 2007-04-03  Bruno Haible  <bruno@clisp.org>
48105
48106         * modules/printf-frexpl (Depends-on): Undo last change.
48107         (Files): Add m4/ldexpl.m4.
48108
48109 2007-04-03  Bruno Haible  <bruno@clisp.org>
48110
48111         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48112         * modules/isnanl (Link): New section.
48113
48114         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48115         * modules/frexp (Link): New section.
48116
48117         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48118         * modules/frexpl (Link): New section.
48119
48120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48121         * modules/ldexpl (Link): New section.
48122
48123 2007-04-03  Bruno Haible  <bruno@clisp.org>
48124
48125         * modules/TEMPLATE-EXTENDED: New file.
48126         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48127
48128 2007-04-03  Bruno Haible  <bruno@clisp.org>
48129
48130         * DEPENDENCIES: New file.
48131         Suggested by Simon Josefsson.
48132
48133 2007-04-03  Bruno Haible  <bruno@clisp.org>
48134
48135         * doc/gnulib.texi: Escape @.
48136
48137 2007-04-03  James Youngman  <jay@gnu.org>
48138         and Paul Eggert  <eggert@cs.ucla.edu>
48139
48140         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48141         birthtime on all systems that have birthtime, not just those which
48142         use st_birthtimensec rather than st_birthtim.  Putting zero in
48143         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48144         that the birth time is not available for files on an NFS mount.
48145
48146 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48147
48148         * modules/memxor: Move back from crypto/, suggested by Bruno.
48149         * modules/crypto/hmac-sha1: Fix memxor dependency.
48150
48151         * modules/crypto/gc: Moved from ../.
48152
48153 2007-04-02  Eric Blake  <ebb9@byu.net>
48154
48155         * lib/ldexpl.c (includes): Avoid libm.
48156
48157         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48158
48159 2007-04-02  Bruno Haible  <bruno@clisp.org>
48160
48161         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48162         on IRIX.
48163
48164 2007-04-02  Bruno Haible  <bruno@clisp.org>
48165
48166         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48167         x86 or x86_64 platforms running MacOS X.
48168         Reported by Ryan Schmidt <@ryandesign.com>.
48169
48170 2007-04-02  Bruno Haible  <bruno@clisp.org>
48171
48172         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48173         i386.
48174
48175 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48176
48177         * modules/crypto/arcfour: Moved from ../.
48178         * modules/crypto/arcfour-tests: Moved from ../.
48179         * modules/crypto/arctwo: Moved from ../.
48180         * modules/crypto/arctwo-tests: Moved from ../.
48181         * modules/crypto/des: Moved from ../.
48182         * modules/crypto/des-tests: Moved from ../.
48183         * modules/crypto/gc-arcfour: Moved from ../.
48184         * modules/crypto/gc-arcfour-tests: Moved from ../.
48185         * modules/crypto/gc-arctwo: Moved from ../.
48186         * modules/crypto/gc-arctwo-tests: Moved from ../.
48187         * modules/crypto/gc-des: Moved from ../.
48188         * modules/crypto/gc-des-tests: Moved from ../.
48189         * modules/crypto/gc-hmac-md5: Moved from ../.
48190         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
48191         * modules/crypto/gc-hmac-sha1: Moved from ../.
48192         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
48193         * modules/crypto/gc-md2: Moved from ../.
48194         * modules/crypto/gc-md2-tests: Moved from ../.
48195         * modules/crypto/gc-md4: Moved from ../.
48196         * modules/crypto/gc-md4-tests: Moved from ../.
48197         * modules/crypto/gc-md5: Moved from ../.
48198         * modules/crypto/gc-md5-tests: Moved from ../.
48199         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
48200         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
48201         * modules/crypto/gc-random: Moved from ../.
48202         * modules/crypto/gc-rijndael: Moved from ../.
48203         * modules/crypto/gc-rijndael-tests: Moved from ../.
48204         * modules/crypto/gc-sha1: Moved from ../.
48205         * modules/crypto/gc-sha1-tests: Moved from ../.
48206         * modules/crypto/gc-tests: Moved from ../.
48207         * modules/crypto/hmac-md5: Moved from ../.
48208         * modules/crypto/hmac-md5-tests: Moved from ../.
48209         * modules/crypto/hmac-sha1: Moved from ../.
48210         * modules/crypto/hmac-sha1-tests: Moved from ../.
48211         * modules/crypto/md2: Moved from ../.
48212         * modules/crypto/md2-tests: Moved from ../.
48213         * modules/crypto/md4: Moved from ../.
48214         * modules/crypto/md4-tests: Moved from ../.
48215         * modules/crypto/md5: Moved from ../.
48216         * modules/crypto/md5-tests: Moved from ../.
48217         * modules/crypto/memxor: Moved from ../.
48218         * modules/crypto/rijndael: Moved from ../.
48219         * modules/crypto/rijndael-tests: Moved from ../.
48220         * modules/crypto/sha1: Moved from ../.
48221
48222 2007-03-30  James Youngman  <jay@gnu.org>
48223
48224         * tests/test-stat-time.c (prepare_test): use chmod() rather than
48225         rename() to change the ctime of a file (because ctime is unaffected
48226         by rename on jfs2 on AIX 5.1).
48227         (main): Start by doing cleanup, in case a previous run failed leaving
48228         test files behind.
48229
48230 2007-03-31  Bruno Haible  <bruno@clisp.org>
48231
48232         Support old proprietary implementations of iconv.
48233         * modules/iconv_open: New file.
48234         * lib/iconv_.h: New file.
48235         * m4/iconv_h.m4: New file.
48236         * lib/iconv_open.c: New file.
48237         * lib/iconv_open-aix.gperf: New file.
48238         * lib/iconv_open-hpux.gperf: New file.
48239         * lib/iconv_open-irix.gperf: New file.
48240         * lib/iconv_open-osf.gperf: New file.
48241         * m4/iconv_open.m4: New file.
48242         * modules/linebreak (Depends-on): Add iconv_open.
48243         * modules/striconv (Depends-on): Likewise.
48244         * modules/striconveh (Depends-on): Likewise.
48245         * modules/unicodeio (Depends-on): Likewise.
48246         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
48247         (iconv_t)(-1).
48248         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
48249         conversion if cd is (iconv_t)(-1).
48250         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
48251         is not possible.
48252
48253 2007-03-31  Bruno Haible  <bruno@clisp.org>
48254
48255         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48256         work on Solaris either. Protect also second use of "autodetect_jp".
48257
48258 2007-03-31  Bruno Haible  <bruno@clisp.org>
48259
48260         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
48261         the function is not present.
48262
48263 2007-03-31  Bruno Haible  <bruno@clisp.org>
48264
48265         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
48266         the function is not present.
48267
48268 2007-03-31  Bruno Haible  <bruno@clisp.org>
48269
48270         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
48271         a bug in HP-UX iconv_open().
48272
48273 2007-03-31  Bruno Haible  <bruno@clisp.org>
48274
48275         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
48276         (Mathematics <math.h>): New section, add fpieee.
48277         (Input/output <stdio.h>): Add fseterr.
48278         (Mathematics <math.h>): New section, add printf-frexp.
48279         (Container data structures): Add sublist.
48280         (Core language properties): Add fpucw, inline.
48281         (Functions for greatest-width integer types <inttypes.h>): Add
48282         imaxabs, imaxdiv, inttypes.
48283         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
48284         isnanl-nolibm, ldexp.
48285         (Mathematics <math.h>): New section, add printf-frexpl.
48286         (Support for systems lacking POSIX:2001): Add fprintf-posix,
48287         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
48288         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
48289         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
48290         (Unicode string functions): Add unistr/u*-mbtoucr.
48291         (Java): Add javacomp-script, javaexec-script.
48292         (C#): Add csharpcomp-script, csharpexec-script.
48293         (Support for building libraries and executables): Add havelib,
48294         relocatable-*.
48295         (Support for maintaining and releasing projects): Renamed from
48296         'Support for maintaining and release projects'. Add announce-gen.
48297
48298 2007-03-31  Bruno Haible  <bruno@clisp.org>
48299
48300         * README: Talk primarily about git.
48301         (git and CVS): Renamed from CVS.
48302         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
48303         gnulib is available through git.
48304         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
48305
48306 2007-03-30  Bruno Haible  <bruno@clisp.org>
48307
48308         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
48309         * lib/poll_.h: Likewise.
48310         * lib/stat_.h: Likewise.
48311         * lib/sys_time_.h: Likewise.
48312         * lib/sysexit_.h: Likewise.
48313         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
48314         * lib/stdbool_.h: Likewise.
48315         * lib/byteswap_.h: Add double-inclusion guard.
48316
48317 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
48318
48319         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
48320
48321 2007-03-30  Karl Berry  <karl@gnu.org>
48322
48323         * config/srclist-update: double space after USA in the license
48324         substitution, since that's how it's usually (?) written.
48325
48326 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48327
48328         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
48329         reported by Bruno Haible.
48330
48331 2007-03-29  Bruno Haible  <bruno@clisp.org>
48332
48333         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
48334         a bug in AIX iconv().
48335
48336 2007-03-29  Bruno Haible  <bruno@clisp.org>
48337
48338         * modules/ldexpl-tests: New file.
48339         * tests/test-ldexpl.c: New file.
48340
48341 2007-03-29  Bruno Haible  <bruno@clisp.org>
48342
48343         * lib/ldexpl.c: Include fpucw.h.
48344         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
48345         multiplication.
48346         * modules/ldexpl (Depends-on): Add fpucw.
48347
48348 2007-03-29  Bruno Haible  <bruno@clisp.org>
48349
48350         * modules/ldexpl: New file.
48351         * m4/ldexpl.m4: New file.
48352         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
48353         set.
48354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
48355         REPLACE_LDEXPL.
48356         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
48357         REPLACE_LDEXPL.
48358         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48359         gl_FUNC_LDEXPL_WORKS.
48360         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
48361         * modules/mathl (Files): Remove lib/ldexpl.c.
48362         (Depends-on): Add ldexpl.
48363
48364 2007-03-29  Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
48367
48368 2007-03-29  Bruno Haible  <bruno@clisp.org>
48369
48370         * tests/test-striconveh.c (main): Don't assume that a direct conversion
48371         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
48372         and possibly also HP-UX.
48373         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48374         work on AIX, IRIX, HP-UX, OSF/1.
48375         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48376         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48377         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48378         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48379         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
48380         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48381
48382 2007-03-29  Bruno Haible  <bruno@clisp.org>
48383
48384         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
48385
48386 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48387
48388         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
48389         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
48390
48391 2007-03-29  Eric Blake  <ebb9@byu.net>
48392
48393         * lib/acl-internal.h: Remove redundant include.
48394         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
48395         Cygwin when a file is locked.
48396
48397 2007-03-29  Bruno Haible  <bruno@clisp.org>
48398
48399         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
48400         file.
48401         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
48402
48403 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48404
48405         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
48406         try to remove a parent directory if the child couldn't be removed
48407         (except for the first rmdir, which could fail because the child
48408         doesn't exist).  Problem reported by Jeff Blaine in
48409         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
48410
48411 2007-03-28  Bruno Haible  <bruno@clisp.org>
48412
48413         * lib/striconveh.c (utf8conv_carefully): New function.
48414         (mem_cd_iconveh_internal): Invoke it.
48415
48416 2007-03-28  Bruno Haible  <bruno@clisp.org>
48417
48418         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
48419         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
48420         input.
48421         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
48422         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
48423         unistr/u8-uctomb.
48424
48425 2007-03-28  Bruno Haible  <bruno@clisp.org>
48426
48427         * modules/unistr/u8-mbtoucr: New file.
48428         * lib/unistr/u8-mbtoucr.c: New file.
48429         * modules/unistr/u16-mbtoucr: New file.
48430         * lib/unistr/u16-mbtoucr.c: New file.
48431         * modules/unistr/u16-mbtoucr: New file.
48432         * lib/unistr/u16-mbtoucr.c: New file.
48433         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48434
48435 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48436             Bruno Haible  <bruno@clisp.org>
48437
48438         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48439         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48440         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48441
48442         * m4/stdio_h.m4: Add stubs for vasprintf too.
48443
48444         * modules/stdio: Support vasprintf in sed command.
48445
48446         * modules/vasprintf: Depend on stdio for prototypes.  Remove
48447         vasprintf.h.  Add stdio module indicator.
48448
48449         * lib/stdio_.h: Declare asprintf and vasprintf, based on
48450         vasprintf.h.
48451
48452         * lib/vasprintf.h: File removed.
48453
48454         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
48455         * lib/vasprintf.c: Ditto.
48456         * lib/xvasprintf.c: Ditto.
48457         * tests/test-vasprintf-posix.c: Ditto.
48458         * tests/test-vasprintf.c: Ditto.
48459
48460 2007-03-27  Bruno Haible  <bruno@clisp.org>
48461
48462         Make vasnprintf multithread-safe.
48463         * lib/vasnprintf.c (decimal_point_char): New function.
48464         (VASNPRINTF): Use it.
48465         Suggested by Simon Josefsson.
48466
48467 2007-03-27  Eric Blake  <ebb9@byu.net>
48468
48469         Support sub-second birthtime on cygwin.
48470         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
48471         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
48472         (get_stat_birthtime): Also work with st_birthtim.
48473
48474 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
48475
48476         * lib/stat-time.h (USE_BIRTHTIME): Remove.
48477         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
48478         (get_stat_birthtime_ns): Do not try to use "spare" fields.
48479         (get_stat_birthtime_ns): Simplify compile-time tests.
48480         (get_stat_birthtime): Change the API to look like
48481         get_stat_mtime etc., except return a negative tv_nsec on error.
48482         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
48483         Don't check for "spare" fields.
48484         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
48485         or for struct stat.st_birthtime, as these tests aren't used.
48486         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
48487
48488 2007-03-27  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/stat-time.h: Include <sys/stat.h>.
48491
48492 2007-03-27  James Youngman  <jay@gnu.org>
48493
48494         * lib/stat-time.h (get_stat_birthtime): New function for
48495           retrieving st_birthtime as provided by UFS2 (hence *BSD).
48496         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
48497           and its variants.
48498         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
48499         * modules/stat-time-test: New file.
48500         * tests/test-stat-time.c: New test, devised by Bruno Haible.
48501
48502 2007-03-26  Bruno Haible  <bruno@clisp.org>
48503
48504         Better support of signalling NaNs.
48505         * lib/atanl.c: Include isnanl.h.
48506         (atanl): Perform test for NaN at the beginning of the function and
48507         through a call to isnanl.
48508         * lib/cosl.c: Include isnanl.h.
48509         (cosl): Perform test for NaN at the beginning of the function and
48510         through a call to isnanl.
48511         * lib/ldexpl.c: Include isnanl.h.
48512         (ldexpl): Perform test for NaN through a call to isnanl.
48513         * lib/logl.c: Include isnanl.h.
48514         (logl): Perform test for NaN at the beginning of the function and
48515         through a call to isnanl.
48516         * lib/sinl.c: Include isnanl.h.
48517         (sinl): Perform test for NaN at the beginning of the function and
48518         through a call to isnanl.
48519         * lib/sqrtl.c: Include isnanl.h.
48520         (sqrtl): Perform test for NaN at the beginning of the function and
48521         through a call to isnanl.
48522         * lib/tanl.c: Include isnanl.h.
48523         (tanl): Perform test for NaN at the beginning of the function and
48524         through a call to isnanl.
48525         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
48526         * modules/mathl (Depends-on): Add isnanl.
48527
48528 2007-03-26  Eric Blake  <ebb9@byu.net>
48529
48530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
48531         regression in logic sense of previous patch.
48532
48533 2007-03-26  Bruno Haible  <bruno@clisp.org>
48534
48535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
48536         unportable shell command "if ! ...".
48537         Reported by Ralf Wildenhues.
48538
48539 2007-03-25  Bruno Haible  <bruno@clisp.org>
48540
48541         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
48542         <sysexits.h> file, and only add EX_CONFIG.
48543         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
48544         absolute file name and whether it is sufficient. Substitute also
48545         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
48546         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
48547         ABSOLUTE_SYSEXITS_H into sysexits.h.
48548
48549 2007-03-25  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
48552         hints is NULL.
48553
48554 2007-03-25  Bruno Haible  <bruno@clisp.org>
48555
48556         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
48557         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
48558
48559 2007-03-25  Bruno Haible  <bruno@clisp.org>
48560
48561         * lib/vasnprintf.c: Include langinfo.h.
48562         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
48563         multithread-safe.
48564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
48565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
48566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48567         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48568         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48569         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48571         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
48572         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48573         Reported by Simon Josefsson.
48574
48575 2007-03-25  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
48578         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
48579         * modules/vasnprintf (Depends-on): Add stdint.
48580
48581 2007-03-25  Bruno Haible  <bruno@clisp.org>
48582
48583         * modules/fpieee: New file.
48584         * m4/fpieee.m4: New file.
48585         * modules/isnan-nolibm (Depends-on): Add fpieee.
48586         * modules/isnanl-nolibm (Depends-on): Add fpieee.
48587         * modules/isnanl (Depends-on): Add fpieee.
48588
48589 2007-03-25  Bruno Haible  <bruno@clisp.org>
48590
48591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
48592
48593 2007-03-25  Bruno Haible  <bruno@clisp.org>
48594
48595         Avoid test failures on IRIX 6.5.
48596         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
48597         (main): Use it.
48598         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
48599         macros.
48600         (main): Use them.
48601
48602 2007-03-25  Bruno Haible  <bruno@clisp.org>
48603
48604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
48605         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
48606         exists but doesn't work.
48607         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
48608         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
48609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
48610         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
48611
48612 2007-03-25  Bruno Haible  <bruno@clisp.org>
48613
48614         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
48615         returns inf. Needed on IRIX 6.5.
48616
48617 2007-03-25  Bruno Haible  <bruno@clisp.org>
48618
48619         * tests/test-frexpl.c: Include isnanl-nolibm.h.
48620         (main): Use isnanl instead of x != x idiom.
48621         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
48622
48623         * tests/test-frexp.c: Include isnan.h.
48624         (main): Use isnan instead of x != x idiom.
48625         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
48626
48627 2007-03-25  Bruno Haible  <bruno@clisp.org>
48628
48629         * tests/test-frexp.c (NaN): New function/macro.
48630         (main): Use it instead of 0.0 / 0.0.
48631         * tests/test-isnan.c (NaN): New function/macro.
48632         (main): Use it instead of 0.0 / 0.0.
48633         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
48634         (test_function): Use it instead of 0.0 / 0.0.
48635         * tests/test-vasprintf-posix.c (NaN): New function/macro.
48636         (test_function): Use it instead of 0.0 / 0.0.
48637         * tests/test-snprintf-posix.h (NaN): New function/macro.
48638         (test_function): Use it instead of 0.0 / 0.0.
48639         * tests/test-sprintf-posix.h (NaN): New function/macro.
48640         (test_function): Use it instead of 0.0 / 0.0.
48641         * tests/test-fprintf-posix.h (NaN): New function/macro.
48642         (test_function): Use it instead of 0.0 / 0.0.
48643         * tests/test-printf-posix.h (NaN): New function/macro.
48644         (test_function): Use it instead of 0.0 / 0.0.
48645
48646         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48647
48648 2007-03-25  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48651
48652 2007-03-25  Bruno Haible  <bruno@clisp.org>
48653
48654         * lib/regexec.c (merge_state_with_log): Make static.
48655
48656 2007-03-25  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/trigl.c (kernel_rem_pio2): Make static.
48659
48660 2007-03-25  Bruno Haible  <bruno@clisp.org>
48661
48662         * lib/sincosl.c (sincosl_table): Make static.
48663
48664 2007-03-25  Bruno Haible  <bruno@clisp.org>
48665
48666         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48667         if the compiler does not support C99.
48668
48669 2007-03-25  Bruno Haible  <bruno@clisp.org>
48670
48671         * modules/time (Makefile.am): Ensure all rule action lines start with a
48672         tab.
48673
48674 2007-03-24  Bruno Haible  <bruno@clisp.org>
48675
48676         * modules/tsearch-tests: New file.
48677         * tests/test-tsearch.sh: New file.
48678         * tests/test-tsearch.c: New file, mostly copied from glibc.
48679
48680         * modules/search-tests: New file.
48681         * tests/test-search.c: New file.
48682
48683         * modules/search: New file.
48684         * lib/search_.h: New file, incorporating lib/tsearch.h.
48685         * m4/search_h.m4: New file.
48686         * lib/tsearch.h: Remove file.
48687         * lib/tsearch.c: Include search.h instead of tsearch.h.
48688         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
48689         HAVE_TSEARCH.
48690         * modules/tsearch (Files): Remove lib/tsearch.h.
48691         (Depends-on): Add search.
48692         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
48693         (Include): Change tsearch.h into search.h.
48694
48695 2007-03-24  Bruno Haible  <bruno@clisp.org>
48696
48697         * modules/fpucw: New file.
48698         * lib/fpucw.h: New file.
48699         * lib/frexp.c: Include fpucw.h.
48700         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48701         (FUNC): Use them.
48702         * lib/printf-frexp.c: Include fpucw.h.
48703         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48704         (FUNC): Use them.
48705         * lib/vasnprintf.c: Include fpucw.h.
48706         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
48707         'long double' calculations.
48708         * tests/test-frexpl.c: Include fpucw.h.
48709         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48710         * tests/test-printf-frexpl.c: Include fpucw.h.
48711         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48712         * modules/frexpl (Depends-on): Add fpucw.
48713         * modules/printf-frexpl (Depends-on): Likewise.
48714         * modules/fprintf-posix (Depends-on): Likewise.
48715         * modules/snprintf-posix (Depends-on): Likewise.
48716         * modules/sprintf-posix (Depends-on): Likewise.
48717         * modules/vasnprintf-posix (Depends-on): Likewise.
48718         * modules/vasprintf-posix (Depends-on): Likewise.
48719         * modules/vfprintf-posix (Depends-on): Likewise.
48720         * modules/vsnprintf-posix (Depends-on): Likewise.
48721         * modules/vsprintf-posix (Depends-on): Likewise.
48722         * modules/frexpl-tests (Depends-on): Likewise.
48723         * modules/printf-frexpl-tests (Depends-on): Likewise.
48724
48725 2007-03-24  Bruno Haible  <bruno@clisp.org>
48726
48727         * lib/float+.h: New file.
48728         * lib/isnan.c: Include float+.h.
48729         (SIZE): New macro.
48730         (FUNC): Compare only SIZE bytes of the value.
48731         * lib/vasnprintf.c: Include float+.h.
48732         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
48733         SIZEOF_LDBL or SIZEOF_DBL bytes.
48734         * modules/isnan-nolibm (Files): Add lib/float+.h.
48735         * modules/isnanl-nolibm (Files): Add lib/float+.h.
48736         * modules/isnanl (Files): Add lib/float+.h.
48737         * modules/vasnprintf (Files): Add lib/float+.h.
48738
48739 2007-03-24  Bruno Haible  <bruno@clisp.org>
48740
48741         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
48742         include isnanl-nolibm.h.
48743
48744 2007-03-24  Bruno Haible  <bruno@clisp.org>
48745
48746         * tests/test-read-file.c (main): Don't produce spurious output for
48747         expected situations. Make the test fail if it encountered unexpected
48748         results.
48749
48750 2007-03-24  Bruno Haible  <bruno@clisp.org>
48751
48752         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
48753         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
48754
48755 2007-03-24  Bruno Haible  <bruno@clisp.org>
48756
48757         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
48758
48759 2007-03-24  Bruno Haible  <bruno@clisp.org>
48760
48761         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
48762         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
48763
48764         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
48765         * modules/utf8-ucs4: Turn into a symbolic link to module
48766         unistr/u8-mbtouc.
48767
48768         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
48769         utf8-ucs4-unsafe.
48770         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
48771         unistr/u8-mbtouc-unsafe.
48772
48773         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
48774         * modules/utf16-ucs4: Turn into a symbolic link to module
48775         unistr/u16-mbtouc.
48776
48777         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48778         utf16-ucs4-unsafe.
48779         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48780         unistr/u16-mbtouc-unsafe.
48781
48782         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48783         * modules/ucs4-utf8: Turn into a symbolic link to module
48784         unistr/u8-ubtomb.
48785
48786         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48787         * modules/ucs4-utf16: Turn into a symbolic link to module
48788         unistr/u16-ubtomb.
48789
48790 2007-03-24  Bruno Haible  <bruno@clisp.org>
48791
48792         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48793         Enable the function only if HAVE_INLINE.
48794         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48795         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48796         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48797         Enable the function only if HAVE_INLINE.
48798         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48799         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48800         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48801         Enable the function only if HAVE_INLINE.
48802         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48803         Enable the function only if HAVE_INLINE.
48804         * modules/utf8-ucs4: Update.
48805         * modules/utf8-ucs4-unsafe: Update.
48806         * modules/utf16-ucs4: Update.
48807         * modules/utf16-ucs4-unsafe: Update.
48808         * modules/ucs4-utf8: Update.
48809         * modules/ucs4-utf16: Update.
48810
48811 2007-03-24  Bruno Haible  <bruno@clisp.org>
48812
48813         * lib/utf8-ucs4.h: Remove file.
48814         * lib/utf8-ucs4-unsafe.h: Remove file.
48815         * lib/utf16-ucs4.h: Remove file.
48816         * lib/utf16-ucs4-unsafe.h: Remove file.
48817         * lib/ucs4-utf8.h: Remove file.
48818         * lib/ucs4-utf16.h: Remove file.
48819         * lib/unistr.h: Include their previous contents.
48820         * m4/utf-ucs4.m4: Remove file.
48821         * m4/ucs4-utf.m4: Remove file.
48822         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
48823         (Depends-on): Add unistr/base.
48824         (configure.ac): Remove gl_UTF_UCS4.
48825         (Makefile.am): Update.
48826         (Include): Change to unistr.h.
48827         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
48828         (Depends-on): Add unistr/base.
48829         (configure.ac): Remove gl_UTF_UCS4.
48830         (Makefile.am): Update.
48831         (Include): Change to unistr.h.
48832         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
48833         (Depends-on): Add unistr/base.
48834         (configure.ac): Remove gl_UTF_UCS4.
48835         (Makefile.am): Update.
48836         (Include): Change to unistr.h.
48837         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
48838         (Depends-on): Add unistr/base.
48839         (configure.ac): Remove gl_UTF_UCS4.
48840         (Makefile.am): Update.
48841         (Include): Change to unistr.h.
48842         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
48843         (Depends-on): Add unistr/base.
48844         (configure.ac): Remove gl_UCS4_UTF.
48845         (Makefile.am): Update.
48846         (Include): Change to unistr.h.
48847         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
48848         (Depends-on): Add unistr/base.
48849         (configure.ac): Remove gl_UCS4_UTF.
48850         (Makefile.am): Update.
48851         (Include): Change to unistr.h.
48852         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
48853         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
48854         utf8-ucs4-unsafe.h.
48855         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
48856         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
48857         utf16-ucs4-unsafe.h.
48858         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
48859         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
48860         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
48861         * lib/unistr/u8-strchr.c: Likewise.
48862         * lib/unistr/u8-strrchr.c: Likewise.
48863         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
48864         * lib/unistr/u16-strchr.c: Likewise.
48865         * lib/unistr/u16-strrchr.c: Likewise.
48866         * lib/striconveh.c: Update.
48867         * lib/linebreak.c: Update.
48868
48869 2007-03-24  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
48872         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
48873
48874 2007-03-22  Bruno Haible  <bruno@clisp.org>
48875
48876         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
48877
48878 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48879
48880         * MODULES.html.sh (File system functions): New module write-any-file.
48881         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
48882         * m4/write-any-file.m4: New files.
48883
48884 2007-03-23  Eric Blake  <ebb9@byu.net>
48885
48886         * gnulib-tool: Rearrange space-tab sequences, since some editors
48887         like to eat them.
48888
48889 2007-03-23  Eric Blake  <ebb9@byu.net>
48890
48891         * lib/version-etc.c (version_etc_va): Update license wording to
48892         be more concise.  Recommended by Richard Stallman.
48893
48894 2007-03-22  Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/poll.c (MSG_PEEK): New fallback definition.
48897
48898 2007-03-22  Bruno Haible  <bruno@clisp.org>
48899
48900         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
48901         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
48902         (main): Update.
48903         Fixes a compilation error on BeOS.
48904
48905 2007-03-22  Bruno Haible  <bruno@clisp.org>
48906
48907         * modules/frexpl-tests: New file.
48908         * tests/test-frexpl.c: New file.
48909
48910         * modules/frexpl: New file.
48911         * m4/frexpl.m4: New file.
48912         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
48913         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
48914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
48915         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
48916         (Depends-on): Add frexpl. Remove isnanl-nolibm.
48917         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
48918
48919 2007-03-22  Bruno Haible  <bruno@clisp.org>
48920
48921         * lib/frexpl.c: Share code with lib/frexp.c.
48922         * modules/mathl (Files): Add lib/frexp.c.
48923         (Depends-on): Add isnanl-nolibm.
48924
48925 2007-03-22  Bruno Haible  <bruno@clisp.org>
48926
48927         * modules/printf-frexp (Files): Add m4/frexp.m4.
48928         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
48929         only if the found frexp function actually works.
48930
48931 2007-03-22  Bruno Haible  <bruno@clisp.org>
48932
48933         * lib/frexp.c: Remove older implementation that uses divisions.
48934
48935 2007-03-21  Bruno Haible  <bruno@clisp.org>
48936
48937         * modules/frexp-tests: New file.
48938         * tests/test-frexp.c: New file.
48939
48940         * modules/frexp: New file.
48941         * lib/frexp.c: New file.
48942         * m4/frexp.m4: New file.
48943         * lib/math_.h (frexp): New declaration.
48944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
48945         REPLACE_FREXP.
48946         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
48947
48948 2007-03-21  Bruno Haible  <bruno@clisp.org>
48949
48950         * modules/isnanl-tests: New file.
48951         * tests/test-isnanl.c: New file.
48952
48953         * modules/isnanl: New file.
48954         * lib/isnanl.h: New file.
48955         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
48956         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
48957         gl_FUNC_ISNANL_WORKS.
48958         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
48959         New macros.
48960
48961 2007-03-21  Bruno Haible  <bruno@clisp.org>
48962
48963         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
48964         lib/isnanl.h.
48965         (Include): Update.
48966         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
48967         * lib/vasnprintf.c: Update.
48968         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
48969         tests/test-isnanl.h, remove tests/test-isnanl.c.
48970         (Makefile.am): Update.
48971         * tests/test-isnanl-nolibm.c: New file.
48972         * tests/test-isnanl.h: New file.
48973         * tests/test-isnanl.c: Remove file.
48974
48975 2007-03-21  Jim Meyering  <jim@meyering.net>
48976
48977         When trying to open ".", treat ESTALE like EACCES.
48978         * lib/savewd.c (savewd_save): Resort to forking not just upon
48979         failure with EACCES, but also when errno is ESTALE.
48980
48981 2007-03-20  Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
48984         Needed on AIX 5.1. Reported by Matthew Woehlke.
48985
48986 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48987
48988         Suggestions by Bruno Haible:
48989         * lib/acl-internal.h: Include "gettext.h" rather than rolling
48990         our own.
48991         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
48992         * modules/acl (Depends-on): Add gettext.
48993
48994 2007-03-19  Bruno Haible  <bruno@clisp.org>
48995
48996         * modules/iconvme: Remove file.
48997         * lib/iconvme.h: Remove file.
48998         * lib/iconvme.c: Remove file.
48999         * m4/iconvme.m4: Remove file.
49000
49001 2007-03-19  Bruno Haible  <bruno@clisp.org>
49002
49003         * doc/relocatable-maint.texi: Break long shell script line.
49004         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49005
49006 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49007
49008         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49009         handle file_has_acl.
49010         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49011         * lib/acl.c: Move header inclusions and related macro defns into
49012         lib/acl-internal.h.
49013         (S_ISLNK): Remove defn, since that's now done for us.
49014         (file_has_acl): Move to lib/file-has-acl.c.
49015         Call acl_trivial if available.  This is the crucial part of the fix.
49016         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49017         shared within the library.  Rewrite a bit, partly to make it compatible
49018         with the GNU coding style.
49019         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49020         Remove unnecessary double-quotes.
49021         Don't test for acl_to_text; the build will catch that.
49022         Replace acl_entries if it doesn't exist and it is needed.
49023         Check for -lsec and acl_trivial (as used on Solaris 10).
49024         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49025         lib/file-has-acl.c.
49026         (Depends-on): Add sys_stat, for S_ISLNK.
49027
49028 2007-03-19  Ben Pfaff  <blp@gnu.org>
49029
49030         * doc/gnulib.texi: Fix typos.
49031         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49032
49033 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49034
49035         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49036         If size is zero here, buf must be zero.
49037
49038 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49039
49040         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49041         <bruno@clisp.org>.
49042
49043 2007-03-18  Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49046         Suggested by Eric Blake.
49047
49048 2007-03-18  Ben Pfaff  <blp@gnu.org>
49049
49050         * doc/relocatable.texi: Recommend using as prefix a directory
49051         that does not exist and will never be created.  Based on
49052         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49053         and others.
49054
49055 2007-03-17  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/fchownat.c: Include lchown.h.
49058
49059 2007-03-17  Bruno Haible  <bruno@clisp.org>
49060
49061         Fix endless loop when the given allocated size was > INT_MAX.
49062         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49063         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49064         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49065         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49066         * lib/sprintf.c (sprintf): Likewise.
49067
49068 2007-03-17  Bruno Haible  <bruno@clisp.org>
49069
49070         * tests/test-argp-2.sh (func_compare): Output a context diff.
49071
49072 2007-03-17  Bruno Haible  <bruno@clisp.org>
49073
49074         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49075         locale's decimal-point character.
49076
49077 2007-03-17  Bruno Haible  <bruno@clisp.org>
49078
49079         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49080         before comparing it. Needed because on some platforms (e.g. x86) a
49081         'long double' occupies less bytes than sizeof (long double).
49082
49083 2007-03-17  Bruno Haible  <bruno@clisp.org>
49084
49085         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49086         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49087         * tests/test-getaddrinfo.c (simple): Likewise.
49088         * tests/test-read-file.c (main): Likewise.
49089
49090 2007-03-17  Bruno Haible  <bruno@clisp.org>
49091
49092         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49093
49094 2007-03-17  Bruno Haible  <bruno@clisp.org>
49095
49096         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49097         unused variable.
49098
49099 2007-03-17  Bruno Haible  <bruno@clisp.org>
49100
49101         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49102         * tests/test-c-strncasecmp.c: Likewise.
49103
49104 2007-03-17  Bruno Haible  <bruno@clisp.org>
49105
49106         * modules/stdlib (Depends-on): Add unistd.
49107         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49108         Needed for MacOS X 10.3.
49109
49110 2007-03-17  Bruno Haible  <bruno@clisp.org>
49111
49112         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49113
49114 2007-03-17  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49117
49118 2007-03-17  Bruno Haible  <bruno@clisp.org>
49119
49120         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49121         to reflect files copied from gnulib (with or without modifications).
49122         Suggested by Jim Meyering.
49123
49124 2007-03-17  Eric Blake  <ebb9@byu.net>
49125
49126         * NEWS: Document stdlib change from 2007-02-18.
49127
49128 2007-03-17  Jim Meyering  <jim@meyering.net>
49129
49130         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49131         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49132         someone uses a name containing shell meta-characters.
49133         Reported by Alfred M. Szmidt.
49134
49135         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49136
49137 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49138
49139         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49140         and copy gettext configuration files only if configure.ac contains
49141         a use of AM_GNU_GETTEXT_VERSION.
49142
49143 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49144
49145         * build-aux/bootstrap (gnulib_name): New variable.
49146         (gnulib_tool_options): Use it.
49147
49148 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49149
49150         * tests/test-des.c: Use new namespace.
49151
49152 2007-03-15  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49155         Reported by James Youngman <jay@gnu.org>.
49156
49157 2007-03-15  Bruno Haible  <bruno@clisp.org>
49158
49159         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49160         declared prototype. Needed with cc on OSF/1 5.1.
49161
49162 2007-03-15  Bruno Haible  <bruno@clisp.org>
49163
49164         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49165         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49166         (struct gl_list_implementation): Add dispose_fn argument to the
49167         'create_empty', 'create' methods.
49168         (struct gl_list_impl_base): Add field 'dispose_fn'.
49169         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49170         argument.
49171         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49172         dispose_fn argument.
49173         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49174         dispose_fn on the dropped values.
49175         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49176         dispose_fn argument.
49177         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
49178         dropped values.
49179         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
49180         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49181         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
49182         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49183         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
49184         argument.
49185         (gl_tree_list_free): Call dispose_fn on the dropped values.
49186         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
49187         the dropped values.
49188         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49189         Add dispose_fn argument.
49190         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
49191         Call dispose_fn on the dropped values.
49192         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
49193         Add dispose_fn argument.
49194         (gl_sublist_create): Initialize the 'dispose_fn' field.
49195         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
49196         * tests/test-array_list.c (main): Update.
49197         * tests/test-carray_list.c (main): Update.
49198         * tests/test-avltree_list.c (main): Update.
49199         * tests/test-rbtree_list.c (main): Update.
49200         * tests/test-avltreehash_list.c (main): Update.
49201         * tests/test-rbtreehash_list.c (main): Update.
49202         * tests/test-linked_list.c (main): Update.
49203         * tests/test-linkedhash_list.c (main): Update.
49204         * tests/test-array_oset.c (main): Update.
49205
49206 2007-03-15  Bruno Haible  <bruno@clisp.org>
49207
49208         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
49209         (gl_oset_create_empty): Add dispose_fn argument.
49210         (struct gl_oset_implementation): Add dispose_fn argument to
49211         'create_empty' method.
49212         (struct gl_oset_impl_base): Add dispose_fn field.
49213         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
49214         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
49215         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
49216         values.
49217         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
49218         (gl_tree_oset_free): Call dispose_fn on the dropped values.
49219         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49220         dropped value.
49221         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49222         dropped value.
49223         * tests/test-array_oset.c (main): Update.
49224         * tests/test-avltree_oset.c (main): Update.
49225         * tests/test-rbtree_oset.c (main): Update.
49226         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
49227
49228 2007-03-13  Bruno Haible  <bruno@clisp.org>
49229
49230         * tests/test-stdbool.c (i): Update after last patch.
49231
49232 2007-03-12  Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/quotearg.c: Include <wctype.h> early, before the definition of
49235         the iswprint macro. Needed on Solaris 2.5.1.
49236
49237 2007-03-12  Bruno Haible  <bruno@clisp.org>
49238
49239         * tests/test-printf-frexp.c (main): Declare x as volatile.
49240
49241 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49242
49243         * doc/gnulib.texi (Build robot for gnulib): New section.
49244
49245 2007-03-12  Jim Meyering  <jim@meyering.net>
49246
49247         * build-aux/bootstrap: New file.
49248         * build-aux/bootstrap.conf: New file, from coreutils.
49249
49250 2007-03-11  Bruno Haible  <bruno@clisp.org>
49251
49252         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
49253
49254 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49255
49256         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
49257         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
49258         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
49259
49260 2007-03-11  Bruno Haible  <bruno@clisp.org>
49261
49262         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
49263         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
49264
49265 2007-03-11  Bruno Haible  <bruno@clisp.org>
49266
49267         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
49268         formula. Needed for SunPRO C 5.0.
49269
49270 2007-03-11  Bruno Haible  <bruno@clisp.org>
49271
49272         * modules/long-options (Depends-on): Add getopt.
49273
49274 2007-03-11  Bruno Haible  <bruno@clisp.org>
49275
49276         * modules/modechange (Depends-on): Add stdbool.
49277
49278 2007-03-11  Bruno Haible  <bruno@clisp.org>
49279
49280         * modules/i-ring (Depends-on): Add stdbool.
49281
49282 2007-03-11  Bruno Haible  <bruno@clisp.org>
49283
49284         * modules/gc-des (Depends-on): Add stdbool.
49285
49286 2007-03-11  Bruno Haible  <bruno@clisp.org>
49287
49288         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
49289
49290 2007-03-11  Bruno Haible  <bruno@clisp.org>
49291
49292         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
49293
49294 2007-03-11  Bruno Haible  <bruno@clisp.org>
49295
49296         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
49297
49298 2007-03-11  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/vasnprintf.c (sprintf): Undefine.
49301
49302 2007-03-11  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
49305         initializers in SunPRO C and Compaq C compilers.
49306
49307 2007-03-11  Bruno Haible  <bruno@clisp.org>
49308
49309         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
49310         decrementing code ANSI C compliant.
49311
49312 2007-03-11  Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
49315         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
49316
49317 2007-03-11  Bruno Haible  <bruno@clisp.org>
49318
49319         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
49320         <stdbool.h> substitute doesn't pass.
49321
49322 2007-03-11  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
49325
49326 2007-03-11  Bruno Haible  <bruno@clisp.org>
49327
49328         * gnulib-tool (func_create_megatestdir): Create also an autobuild
49329         script, for submission to autobuild.josefsson.org.
49330
49331 2007-03-10  Bruno Haible  <bruno@clisp.org>
49332
49333         * modules/canonicalize-lgpl-tests: New file.
49334         * tests/test-canonicalize-lgpl.sh: New file.
49335         * tests/test-canonicalize-lgpl.c: New file.
49336
49337         * modules/c-strcase-tests: New file.
49338         * tests/test-c-strcase.sh: New file.
49339         * tests/test-c-strcasecmp.c: New file.
49340         * tests/test-c-strncasecmp.c: New file.
49341
49342         * modules/atexit-tests: New file.
49343         * tests/test-atexit.sh: New file.
49344         * tests/test-atexit.c: New file.
49345
49346 2007-03-10  Bruno Haible  <bruno@clisp.org>
49347
49348         * tests/test-binary-io.sh: Use temporary filenames that are not so
49349         likely to clash with those of other tests (in a parallel make).
49350         * tests/test-binary-io.c: Likewise.
49351
49352 2007-03-10  Bruno Haible  <bruno@clisp.org>
49353
49354         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
49355         fallback; use #error instead.
49356         Suggested by Simon Josefsson.
49357
49358 2007-03-10  Bruno Haible  <bruno@clisp.org>
49359
49360         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
49361         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
49362         first and the last.
49363
49364 2007-03-10  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
49367
49368 2007-03-10  Bruno Haible  <bruno@clisp.org>
49369
49370         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
49371         "make distcheck".
49372         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
49373         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
49374         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
49375
49376 2007-03-10  Bruno Haible  <bruno@clisp.org>
49377
49378         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
49379         variable.
49380         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
49381         variable.
49382
49383 2007-03-09  Eric Blake  <ebb9@byu.net>
49384         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
49385
49386         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
49387         types are not being provided by gnulib.
49388         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
49389         types are supported.
49390
49391 2007-03-10  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/stdio_.h (__attribute__): New macro.
49394         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
49395         vsprintf): Specify __attribute__ __format__ for GCC.
49396         Suggested by Eric Blake.
49397
49398 2007-03-09  Bruno Haible  <bruno@clisp.org>
49399
49400         * modules/printf-posix-tests: New file.
49401         * tests/test-printf-posix.sh: New file.
49402         * tests/test-printf-posix.c: New file.
49403
49404         * modules/printf-posix: New file.
49405         * lib/printf.c: New file.
49406         * m4/printf-posix-rpl.m4: New file.
49407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
49408         REPLACE_PRINTF.
49409         * lib/stdio_.h (printf): New declaration.
49410         (format, __format__, ____printf____, ____scanf____, ____strftime____,
49411         ____strfmon____): New macros.
49412         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
49413         REPLACE_PRINTF.
49414
49415 2007-03-09  Bruno Haible  <bruno@clisp.org>
49416
49417         * tests/test-vasnprintf-posix2.sh: New file.
49418         * tests/test-vasnprintf-posix2.c: New file.
49419         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
49420         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49421         (Makefile.am): Activate test-vasnprintf-posix2.sh.
49422
49423         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
49424         a locale dependent decimal point, rather than always '.'.
49425
49426 2007-03-09  Eric Blake  <ebb9@byu.net>
49427
49428         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
49429         spite of platforms like Tandem/NSK that define it to -1.
49430
49431 2007-03-08  Bruno Haible  <bruno@clisp.org>
49432
49433         * modules/vprintf-posix-tests: New file.
49434         * tests/test-vprintf-posix.sh: New file.
49435         * tests/test-vprintf-posix.c: New file.
49436         * tests/test-printf-posix.h: New file.
49437
49438         * modules/vprintf-posix: New file.
49439         * lib/vprintf.c: New file.
49440         * m4/vprintf-posix.m4: New file.
49441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
49442         REPLACE_VPRINTF.
49443         * lib/stdio_.h (vprintf): New declaration.
49444         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
49445         REPLACE_VPRINTF.
49446
49447 2007-03-08  Bruno Haible  <bruno@clisp.org>
49448
49449         * modules/fprintf-posix-tests: New file.
49450         * tests/test-fprintf-posix.sh: New file.
49451         * tests/test-fprintf-posix.c: New file.
49452
49453         * modules/fprintf-posix: New file.
49454         * lib/fprintf.c: New file.
49455         * m4/fprintf-posix.m4: New file.
49456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
49457         REPLACE_FPRINTF.
49458         * lib/stdio_.h (fprintf): New declaration.
49459         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
49460         REPLACE_FPRINTF.
49461
49462 2007-03-08  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/vfprintf-posix-tests: New file.
49465         * tests/test-vfprintf-posix.sh: New file.
49466         * tests/test-vfprintf-posix.c: New file.
49467         * tests/test-fprintf-posix.h: New file.
49468         * tests/test-fprintf-posix.out: New file.
49469
49470         * modules/vfprintf-posix: New file.
49471         * lib/vfprintf.c: New file.
49472         * m4/vfprintf-posix.m4: New file.
49473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
49474         REPLACE_VFPRINTF.
49475         * lib/stdio_.h (vfprintf): New declaration.
49476         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
49477         REPLACE_VFPRINTF.
49478
49479 2007-03-08  Bruno Haible  <bruno@clisp.org>
49480
49481         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
49482
49483 2007-03-08  Bruno Haible  <bruno@clisp.org>
49484
49485         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
49486         instead of 'expr' invocations.
49487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49492         Suggested by Paul Eggert.
49493
49494 2007-03-08  Bruno Haible  <bruno@clisp.org>
49495
49496         * modules/fseterr-tests: New file.
49497         * tests/test-fseterr.c: New file.
49498
49499         * modules/fseterr: New file.
49500         * lib/fseterr.h: New file.
49501         * lib/fseterr.c: New file.
49502
49503 2007-03-08  Bruno Haible  <bruno@clisp.org>
49504
49505         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
49506         * lib/getopt_.h: Likewise.
49507         * lib/mbswidth.h: Likewise.
49508         * lib/setenv.h: Likewise.
49509         * lib/vasnprintf.h: Likewise.
49510         * lib/vasprintf.h: Likewise.
49511         * lib/verror.h: Likewise.
49512         * lib/xsetenv.h: Likewise.
49513         * lib/xvasprintf.h: Likewise.
49514
49515 2007-03-08  Jim Meyering  <jim@meyering.net>
49516
49517         * users.txt: Add parted.
49518
49519         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
49520
49521 2007-03-07  Bruno Haible  <bruno@clisp.org>
49522
49523         * m4/printf.m4: Make the shell script snippets copy&pastable.
49524
49525 2007-03-02  Bruno Haible  <bruno@clisp.org>
49526
49527         * lib/netinet_in_.h: New file.
49528         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
49529         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
49530         * modules/netinet_in (Files): Add lib/netinet_in_.h.
49531         (Depends-on): Add absolute-header.
49532         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
49533         into netinet/in.h.
49534
49535 2007-03-03  Bruno Haible  <bruno@clisp.org>
49536
49537         * lib/sys_select_.h: New file.
49538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
49539         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
49540         * modules/sys_select (Files): Add lib/sys_select_.h.
49541         (Depends-on): Add absolute-header.
49542         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
49543         into sys/select.h.
49544
49545 2007-03-02  Bruno Haible  <bruno@clisp.org>
49546
49547         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
49548         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
49549         values.
49550         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
49551         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
49552         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
49553         * modules/sys_socket (Depends-on): Add absolute-header.
49554         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
49555         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
49556         (Include): Remove requirement of inclusion of <sys/types.h>.
49557
49558 2007-03-02  Bruno Haible  <bruno@clisp.org>
49559
49560         * lib/byteswap_.h (bswap_32): Fix formula.
49561
49562 2007-03-06  Bruno Haible  <bruno@clisp.org>
49563
49564         * modules/sprintf-posix-tests: New file.
49565         * tests/test-sprintf-posix.c: New file.
49566
49567         * modules/sprintf-posix: New file.
49568         * lib/sprintf.c: New file.
49569         * m4/sprintf-posix.m4: New file.
49570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
49571         REPLACE_SPRINTF.
49572         * lib/stdio_.h (sprintf): New declaration.
49573         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
49574         REPLACE_SPRINTF.
49575
49576 2007-03-06  Bruno Haible  <bruno@clisp.org>
49577
49578         * modules/vsprintf-posix-tests: New file.
49579         * tests/test-vsprintf-posix.c: New file.
49580         * tests/test-sprintf-posix.h: New file.
49581
49582         * modules/vsprintf-posix: New file.
49583         * lib/vsprintf.c: New file.
49584         * m4/vsprintf-posix.m4: New file.
49585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
49586         REPLACE_VSPRINTF.
49587         * lib/stdio_.h (vsprintf): New declaration.
49588         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
49589         REPLACE_VSPRINTF.
49590
49591 2007-03-06  Bruno Haible  <bruno@clisp.org>
49592
49593         * modules/vsnprintf (Depend-on): Remove minmax.
49594
49595 2007-03-06  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/snprintf-posix-tests: New file.
49598         * tests/test-snprintf-posix.c: New file.
49599
49600         * modules/snprintf-posix: New file.
49601         * m4/snprintf-posix.m4: New file.
49602         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
49603         gl_FUNC_SNPRINTF.
49604         (gl_FUNC_SNPRINTF): Invoke it.
49605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
49606         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
49607         is set.
49608         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
49609
49610 2007-03-06  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/vsnprintf-posix-tests: New file.
49613         * tests/test-vsnprintf-posix.c: New file.
49614         * tests/test-snprintf-posix.h: New file.
49615
49616         * modules/vsnprintf-posix: New file.
49617         * m4/vsnprintf-posix.m4: New file.
49618         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
49619         gl_FUNC_VSNPRINTF.
49620         (gl_FUNC_VSNPRINTF): Invoke it.
49621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
49622         * lib/stdio_.h (vsnprintf): Define as a replacement if
49623         REPLACE_VSNPRINTF is set.
49624         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
49625
49626 2007-03-06  Bruno Haible  <bruno@clisp.org>
49627
49628         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
49629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
49630
49631 2007-03-06  Bruno Haible  <bruno@clisp.org>
49632
49633         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
49634         (asinl): Declare also if HAVE_DECL_ASINL is set.
49635         (atanl): Declare also if HAVE_DECL_ATANL is set.
49636         (ceill): Declare also if HAVE_DECL_CEILL is set.
49637         (cosl): Declare also if HAVE_DECL_COSL is set.
49638         (expl): Declare also if HAVE_DECL_EXPL is set.
49639         (floorl): Declare also if HAVE_DECL_FLOORL is set.
49640         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
49641         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49642         (logl): Declare also if HAVE_DECL_LOGL is set.
49643         (sinl): Declare also if HAVE_DECL_SINL is set.
49644         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49645         (tanl): Declare also if HAVE_DECL_TANL is set.
49646         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49648         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49649         declaration of frexpl, ldexpl.
49650         * modules/printf-frexpl (Depends-on): Add math.
49651         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49652
49653 2007-03-05  Bruno Haible  <bruno@clisp.org>
49654
49655         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49656         frexpl and ldexpl are declared.
49657         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49658
49659 2007-03-05  Bruno Haible  <bruno@clisp.org>
49660
49661         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49662         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49663
49664 2007-03-05  Bruno Haible  <bruno@clisp.org>
49665
49666         * lib/stdio_.h: Include <stddef.h>.
49667
49668 2007-03-05  Bruno Haible  <bruno@clisp.org>
49669
49670         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
49671
49672 2007-03-05  Bruno Haible  <bruno@clisp.org>
49673
49674         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
49675         NetBSD 4, from Ralf Wildenhues.
49676
49677 2007-03-04  Bruno Haible  <bruno@clisp.org>
49678
49679         * lib/vasprintf.h: Update #if logic for the case when the functions
49680         exist but are overridden.
49681
49682 2007-03-04  Bruno Haible  <bruno@clisp.org>
49683
49684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
49685         implementations: glibc-2.4 and MacOS X 10.3.
49686         * tests/test-vasnprintf-posix.c (test_function): Test also the case
49687         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
49688         * tests/test-vasprintf-posix.c (test_function): Likewise.
49689
49690 2007-03-04  Bruno Haible  <bruno@clisp.org>
49691
49692         * modules/vasprintf-posix-tests: New file.
49693         * tests/test-vasprintf-posix.c: New file.
49694
49695         * modules/vasprintf-posix: New file.
49696         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
49697         defined.
49698         * m4/vasprintf-posix.m4: New file.
49699         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
49700         gl_FUNC_VASPRINTF.
49701         (gl_FUNC_VASPRINTF): Invoke it.
49702         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
49703         here.
49704         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
49705
49706 2007-03-04  Bruno Haible  <bruno@clisp.org>
49707
49708         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
49709         REPLACE_GETTIMEOFDAY.
49710         * modules/sys_time (Makefile.am): Likewise.
49711         * m4/sys_time_h.m4: Likewise.
49712         * m4/gettimeofday.m4: Likewise.
49713
49714 2007-03-04  Bruno Haible  <bruno@clisp.org>
49715
49716         * modules/vasnprintf-posix-tests: New file.
49717         * tests/test-vasnprintf-posix.c: New file.
49718
49719         * modules/vasnprintf-posix: New file.
49720         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
49721         printf-frexpl.h.
49722         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
49723         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
49724         REPLACE_VASNPRINTF is defined.
49725         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
49726         gl_FUNC_VASNPRINTF.
49727         (gl_FUNC_VASNPRINTF): Invoke it.
49728         * m4/vasnprintf-posix.m4: New file.
49729         * m4/printf.m4: New file.
49730
49731 2007-03-04  Bruno Haible  <bruno@clisp.org>
49732
49733         Compile progreloc.c only if --enable-relocatable is specified.
49734         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
49735         if --enable-relocatable was specified.
49736         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
49737         lib_SOURCES.
49738
49739 2007-03-04  Jim Meyering  <jim@meyering.net>
49740
49741         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
49742         Use it consistently, rather than enumerating errno constants.
49743
49744 2007-03-04  Bruno Haible  <bruno@clisp.org>
49745
49746         * modules/xvasprintf-tests: New file.
49747         * tests/test-xvasprintf.c: New file.
49748
49749         * modules/vasprintf-tests: New file.
49750         * tests/test-vasprintf.c: New file.
49751
49752         * modules/vasnprintf-tests: New file.
49753         * tests/test-vasnprintf.c: New file.
49754
49755         * modules/vsnprintf-tests: New file.
49756         * tests/test-vsnprintf.c: New file.
49757
49758         * modules/snprintf-tests: New file.
49759         * tests/test-snprintf.c: New file.
49760
49761 2007-03-04  Bruno Haible  <bruno@clisp.org>
49762
49763         Compile relocatable.c only if --enable-relocatable is specified.
49764         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
49765         gl_RELOCATABLE_LIBRARY.
49766         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
49767         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
49768         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
49769         gl_RELOCATABLE_LIBRARY.
49770         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
49771         (Makefile.am): Remove lib_SOURCES.
49772         * modules/relocatable-lib-lgpl (configure.ac): Invoke
49773         gl_RELOCATABLE_LIBRARY.
49774         (Makefile.am): Remove lib_SOURCES.
49775         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
49776         always.
49777         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49778         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49779
49780 2007-03-04  Bruno Haible  <bruno@clisp.org>
49781
49782         * modules/argmatch-tests: New file.
49783         * tests/test-argmatch.c: New file.
49784
49785         * tests/test-allocsa.c (main): Halve the number of loop runs.
49786
49787         * modules/alloca-opt-tests: New file.
49788         * tests/test-alloca-opt.c: New file.
49789
49790 2007-03-04  Jim Meyering  <jim@meyering.net>
49791
49792         Work around difference between Linux ACLs and Solaris 10 ZFS.
49793         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49794         for EINVAL.
49795
49796 2007-03-03  Bruno Haible  <bruno@clisp.org>
49797
49798         * modules/relocatable-prog (Depends-on): Add back progreloc's
49799         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49800
49801 2007-03-03  Bruno Haible  <bruno@clisp.org>
49802
49803         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49804         * modules/relocatable-lib: New file.
49805
49806 2007-03-03  Bruno Haible  <bruno@clisp.org>
49807
49808         * modules/relocatable-prog: Renamed from modules/relocatable.
49809         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49810
49811 2007-03-03  Bruno Haible  <bruno@clisp.org>
49812
49813         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49814         m4/relocatable-lib.m4.
49815         (Depends-on): Remove 'relocatable'.
49816         (configure.ac): Add gl_RELOCATABLE_NOP.
49817
49818 2007-03-03  Bruno Haible  <bruno@clisp.org>
49819
49820         * modules/relocatable-prog-wrapper: New file.
49821         * modules/relocatable (Depends-on): Add it. Remove all other
49822         dependencies except progname.
49823         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
49824
49825         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
49826         (gl_FUNC_STRERROR): Nop.
49827         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
49828
49829         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
49830         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
49831
49832         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
49833         (gl_FUNC_READLINK): Update.
49834
49835         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
49836
49837 2007-03-03  Bruno Haible  <bruno@clisp.org>
49838
49839         * lib/xreadlink.c: Include <unistd.h> unconditionally.
49840         * modules/xreadlink (Depends-on): Add unistd.
49841         * modules/xreadlink-with-size (Depends-on): Likewise.
49842
49843 2007-03-03  Bruno Haible  <bruno@clisp.org>
49844
49845         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
49846         extracted from gt_FUNC_SETENV.
49847         (gt_FUNC_SETENV): Remove macro.
49848         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
49849         remove gt_FUNC_SETENV.
49850
49851 2007-03-03  Bruno Haible  <bruno@clisp.org>
49852
49853         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
49854         ENABLE_RELOCATABLE here.
49855         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
49856
49857 2007-03-03  Bruno Haible  <bruno@clisp.org>
49858
49859         * modules/rbtreehash-list-tests (Depends-on): Add progname.
49860         * tests/test-rbtreehash_list.c: Include progname.h.
49861         (main): Call set_program_name.
49862
49863         * modules/rbtree-oset-tests (Depends-on): Add progname.
49864         * tests/test-rbtree_oset.c: Include progname.h.
49865         (main): Call set_program_name.
49866
49867         * modules/rbtree-list-tests (Depends-on): Add progname.
49868         * tests/test-rbtree_list.c: Include progname.h.
49869         (main): Call set_program_name.
49870
49871         * modules/linked-list-tests (Depends-on): Add progname.
49872         * tests/test-linked_list.c: Include progname.h.
49873         (main): Call set_program_name.
49874
49875 2007-03-03  Bruno Haible  <bruno@clisp.org>
49876
49877         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
49878         All uses of __restrict changed to _Restrict_.
49879         * lib/glob_.h (__restrict): Remove macro.
49880
49881 2007-03-02  Bruno Haible  <bruno@clisp.org>
49882
49883         * modules/gettext (configure.ac): Require gettext infrastructure
49884         from version 0.16.1.
49885
49886 2007-03-02  Bruno Haible  <bruno@clisp.org>
49887
49888         * modules/linkedhash-list-tests (Depends-on): Add progname.
49889         * tests/test-linkedhash_list.c: Include progname.h.
49890         (main): Call set_program_name.
49891
49892         * modules/carray-list-tests (Depends-on): Add progname.
49893         * tests/test-carray_list.c: Include progname.h.
49894         (main): Call set_program_name.
49895
49896         * modules/avltreehash-list-tests (Depends-on): Add progname.
49897         * tests/test-avltreehash_list.c: Include progname.h.
49898         (main): Call set_program_name.
49899
49900         * modules/avltree-oset-tests (Depends-on): Add progname.
49901         * tests/test-avltree_oset.c: Include progname.h.
49902         (main): Call set_program_name.
49903
49904         * modules/avltree-list-tests (Depends-on): Add progname.
49905         * tests/test-avltree_list.c: Include progname.h.
49906         (main): Call set_program_name.
49907
49908         * modules/array-oset-tests (Depends-on): Add progname.
49909         * tests/test-array_oset.c: Include progname.h.
49910         (main): Call set_program_name.
49911
49912         * modules/array-list-tests (Depends-on): Add progname.
49913         * tests/test-array_list.c: Include progname.h.
49914         (main): Call set_program_name.
49915
49916         * modules/argp-tests (Depends-on): Add progname.
49917         * tests/test-argp.c: Include argp.h first. Include progname.h.
49918         (main): Call set_program_name.
49919
49920 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
49921
49922         * doc/gnulib-tool.texi (Initial import): Reword description of
49923         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
49924         limited effect even if defined after the first system include.
49925
49926 2007-03-01  Bruno Haible  <bruno@clisp.org>
49927
49928         * build-aux/config.libpath: Update to libtool-1.5.22.
49929         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49930
49931 2007-03-01  Bruno Haible  <bruno@clisp.org>
49932
49933         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
49934         foo_CFLAGS.
49935         Reported by Ralf Wildenhues.
49936
49937 2007-03-01  Bruno Haible  <bruno@clisp.org>
49938
49939         * build-aux/install-reloc: Remove object files left over by some
49940         compilers.
49941         Reported by Ralf Wildenhues.
49942
49943 2007-03-01  Bruno Haible  <bruno@clisp.org>
49944
49945         * build-aux/install-reloc: Break long lines.
49946
49947 2007-03-01  Bruno Haible  <bruno@clisp.org>
49948
49949         * doc/relocatable.texi: Document that it may not work on OpenBSD.
49950         Reported by Ralf Wildenhues.
49951
49952 2007-03-01  Bruno Haible  <bruno@clisp.org>
49953
49954         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
49955         include ordering constraints.
49956
49957 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
49960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
49961         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
49962         as another example.
49963         * lib/time_.h: Fix misspelling.
49964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49965         Require gl_HEADER_TIME_H_DEFAULTS.
49966         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
49967         * m4/time_r.m4 (gl_TIME_R): Likewise.
49968         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
49969
49970 2007-03-01  Bruno Haible  <bruno@clisp.org>
49971
49972         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
49973         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49974
49975 2007-03-01  Jim Meyering  <jim@meyering.net>
49976
49977         * modules/xreadlink (Maintainer): Add my name.
49978         * modules/xreadlink-with-size (Depends-on): Alphabetize.
49979
49980 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
49981             Bruno Haible  <bruno@clisp.org>
49982
49983         * build-aux/install-reloc: Compile also c-ctype.c.
49984         * build-aux/relocatable.sh.in: New file.
49985         * doc/relocatable.texi: New file.
49986         * doc/relocatable-maint.texi: New file.
49987         * doc/gnulib.texi: Include relocatable-maint.texi.
49988         * lib/progreloc.c: Include unistd.h unconditionally.
49989         * lib/relocwrapper.c: Include unistd.h unconditionally.
49990         Include c-ctype.h.
49991         (add_dotbin): Use c_tolower.
49992         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
49993         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
49994         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
49995         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
49996         to m4/relocatable-lib.m4.
49997         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
49998         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
49999         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50000         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50001         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50002         * modules/relocatable: New file.
50003         * modules/relocatable-lib: New file.
50004         * modules/relocatable-script: New file.
50005
50006 2007-02-28  Bruno Haible  <bruno@clisp.org>
50007
50008         Import --enable-relocatable infrastructure.
50009         * build-aux/config.libpath: New file, from GNU gettext.
50010         * build-aux/install-reloc: New file, from GNU gettext.
50011         * build-aux/reloc-ldflags: New file, from GNU gettext.
50012         * lib/relocatable.h: New file, from GNU gettext.
50013         * lib/relocatable.c: New file, from GNU gettext.
50014         * lib/relocwrapper.c: New file, from GNU gettext.
50015         * m4/relocatable.m4: New file, from GNU gettext.
50016
50017 2007-02-28  Bruno Haible  <bruno@clisp.org>
50018
50019         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50020
50021         * modules/xreadlink: New file, from GNU gettext with modifications.
50022         * lib/xreadlink.c: New file, from GNU gettext.
50023         * lib/xreadlink.h: Add comments.
50024         (xreadlink): New declaration.
50025
50026         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50027         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50028         lib/xreadlink-with-size.c.
50029         (configure.ac): Remove gl_XREADLINK invocation.
50030         (Makefile.am): Augment lib_SOURCES.
50031         * m4/xreadlink.m4: Remove file.
50032         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50033         (xreadlink_with_size): Renamed from xreadink.
50034         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50035         * modules/canonicalize (Depends-on): Replace xreadlink with
50036         xreadlink-with-size.
50037         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50038
50039 2007-02-25  Jim Meyering  <jim@meyering.net>
50040
50041         * build-aux/announce-gen: When complaining about excess arguments,
50042         list them.
50043
50044 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50045
50046         * README: Document signed integer overflow situation more
50047         accurately.
50048
50049 2007-02-25  Bruno Haible  <bruno@clisp.org>
50050
50051         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50052         'a' or 'A' conversion.
50053
50054 2007-02-25  Bruno Haible  <bruno@clisp.org>
50055
50056         * modules/filename: Renamed from modules/pathname.
50057         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50058         lib/concatpath.c with lib/concat-filename.c.
50059         (Makefile.am): Update.
50060         (Include): Replace pathname.h with filename.h.
50061         * lib/filename.h: Renamed from lib/pathname.h.
50062         (concatenated_filename): Renamed from concatenated_pathname.
50063         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50064         (concatenated_filename): Renamed from concatenated_pathname.
50065         * lib/findprog.c: Include filename.h instead of pathname.h.
50066         (find_in_path): Update.
50067         * lib/javacomp.c: Include filename.h instead of pathname.h.
50068         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50069         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50070         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50071         is_oldgcj_14_13_usable, is_javac_usable): Update.
50072         * lib/javaexec.c: Include filename.h instead of pathname.h.
50073         (execute_java_class): Update.
50074         * modules/findprog: Update.
50075         * modules/javacomp: Update.
50076         * modules/javaexec: Update.
50077         * MODULES.html.sh (File system functions): Add 'filename', remove
50078         'pathname'.
50079
50080 2007-02-25  Bruno Haible  <bruno@clisp.org>
50081
50082         * modules/printf-frexpl-tests: New file.
50083         * tests/test-printf-frexpl.c: New file.
50084
50085         * modules/printf-frexpl: New file.
50086         * lib/printf-frexpl.h: New file.
50087         * lib/printf-frexpl.c: New file.
50088         * m4/printf-frexpl.m4: New file.
50089
50090 2007-02-25  Bruno Haible  <bruno@clisp.org>
50091
50092         * modules/printf-frexp-tests: New file.
50093         * tests/test-printf-frexp.c: New file.
50094
50095         * modules/printf-frexp: New file.
50096         * lib/printf-frexp.h: New file.
50097         * lib/printf-frexp.c: New file.
50098         * m4/printf-frexp.m4: New file.
50099
50100 2007-02-25  Bruno Haible  <bruno@clisp.org>
50101
50102         Assume automake >= 1.10 for the tests.
50103         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50104         * modules/arctwo-tests: Likewise.
50105         * modules/argp-tests: Likewise.
50106         * modules/avltree-list-tests: Likewise.
50107         * modules/avltree-oset-tests: Likewise.
50108         * modules/avltreehash-list-tests: Likewise.
50109         * modules/carray-list-tests: Likewise.
50110         * modules/crc-tests: Likewise.
50111         * modules/des-tests: Likewise.
50112         * modules/gc-arcfour-tests: Likewise.
50113         * modules/gc-arctwo-tests: Likewise.
50114         * modules/gc-des-tests: Likewise.
50115         * modules/gc-hmac-md5-tests: Likewise.
50116         * modules/gc-hmac-sha1-tests: Likewise.
50117         * modules/gc-md2-tests: Likewise.
50118         * modules/gc-md4-tests: Likewise.
50119         * modules/gc-md5-tests: Likewise.
50120         * modules/gc-pbkdf2-sha1-tests: Likewise.
50121         * modules/gc-rijndael-tests: Likewise.
50122         * modules/gc-sha1-tests: Likewise.
50123         * modules/gc-tests: Likewise.
50124         * modules/getaddrinfo-tests: Likewise.
50125         * modules/hmac-md5-tests: Likewise.
50126         * modules/hmac-sha1-tests: Likewise.
50127         * modules/linked-list-tests: Likewise.
50128         * modules/linkedhash-list-tests: Likewise.
50129         * modules/lock-tests: Likewise.
50130         * modules/md2-tests: Likewise.
50131         * modules/md4-tests: Likewise.
50132         * modules/md5-tests: Likewise.
50133         * modules/rbtree-list-tests: Likewise.
50134         * modules/rbtree-oset-tests: Likewise.
50135         * modules/rbtreehash-list-tests: Likewise.
50136         * modules/read-file-tests: Likewise.
50137         * modules/rijndael-tests: Likewise.
50138         * modules/stdint-tests: Likewise.
50139         * modules/tls-tests: Likewise.
50140
50141 2007-02-24  Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50144         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50145         function; instead check whether isnan with a double argument links.
50146         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50147         function; instead check whether isnan with a 'long double' argument
50148         links.
50149         Reported by Eric Blake <ebb9@byu.net>.
50150
50151 2007-02-24  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50154         defined.
50155         * lib/isnanl.c: Remove all code. Just include isnan.c.
50156         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50157
50158 2007-02-25  Jim Meyering  <jim@meyering.net>
50159
50160         Avoid conflicting types for 'unsetenv' on FreeBSD.
50161         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50162         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50163         in stdlib.h.
50164
50165 2007-02-24  Bruno Haible  <bruno@clisp.org>
50166
50167         * modules/isnanl-nolibm-tests: New file.
50168         * tests/test-isnanl.c: New file.
50169
50170         * modules/isnanl-nolibm: New file.
50171         * lib/isnanl.h: New file.
50172         * lib/isnanl.c: New file.
50173         * m4/isnanl.m4: New file.
50174
50175 2007-02-24  Bruno Haible  <bruno@clisp.org>
50176
50177         * modules/isnan-nolibm-tests: New file.
50178         * tests/test-isnan.c: New file.
50179
50180         * modules/isnan-nolibm: New file.
50181         * lib/isnan.h: New file.
50182         * lib/isnan.c: New file.
50183         * m4/isnan.m4: New file.
50184
50185 2007-02-24  Bruno Haible  <bruno@clisp.org>
50186
50187         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
50188         assume that an exponent fits in 20 bits.
50189
50190 2007-02-24  Jim Meyering  <jim@meyering.net>
50191
50192         * m4/regex.m4: Update the description of the configure-time option,
50193         --without-included-regex, to state accurately what the defaults are,
50194         and perhaps to give people an idea why using this option is risky.
50195
50196 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50197
50198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
50199         loops on small arguments.  This attempts to avoid the problem
50200         Bruno Haible reported for AIX 4.3.2 in
50201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
50202
50203 2007-02-23  Bruno Haible  <bruno@clisp.org>
50204
50205         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
50206         Needed for help2man.
50207
50208 2007-02-23  Karl Berry  <karl@gnu.org>
50209
50210         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
50211         exists, foo.h should be cvs-ignored, not committed.
50212
50213 2007-02-23  Eric Blake  <ebb9@byu.net>
50214
50215         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
50216         * lib/stat-time.h (includes): Likewise.
50217         * lib/utimecmp.c (includes): Likewise.
50218         * lib/utimens.h (includes): Likewise.
50219         * lib/getdate.y (includes): Also include "timespec.h" for use
50220         internal to the module.
50221         * modules/utimens (Depends-on): Revert yesterday's patch.
50222         * modules/nanosleep (Depends-on): Add missing dependency.
50223
50224 2007-02-22  Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/glob.c: Don't include getlogin_r.h.
50227
50228 2007-02-22  Jim Meyering  <jim@meyering.net>
50229
50230         * modules/utimens (Depends-on): Add timespec, required for
50231         utimens.h's inclusion of timespec.h.
50232
50233 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
50234
50235         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
50236         long unreadable paths in GNU/Linux.  Problem reported by Andreas
50237         Schwab in
50238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
50239         I'll try to think of a better way to fix the Solaris problem.
50240
50241         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
50242         like glibc; on Solaris 10, it fails with errno == EINVAL.
50243         POSIX says the behavior is unspecified if the first argument is NULL,
50244         so play it safe and never pass NULL to the system getcwd.
50245
50246 2007-02-21  Jim Meyering  <jim@meyering.net>
50247
50248         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
50249         of gettimeofday.  It would conflict with the one now always
50250         provided via sys_time_.h.  Reported by Matthew Woehlke, as
50251         an IRIX 6.5 build failure.
50252
50253 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50254
50255         Minor fixups to port to Solaris 10 with Sun C 5.8.
50256         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
50257         * modules/getcwd (Depends-on): Add dirfd.
50258         * lib/putenv.c (putenv): #undef it.
50259         (rpl_putenv): New decl.
50260         (malloc, free): Include <stdlib.h> rather than prototyping separately.
50261
50262 2007-02-20  Bruno Haible  <bruno@clisp.org>
50263
50264         * modules/stdio-tests: New file.
50265         * tests/test-stdio.c: New file.
50266
50267         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
50268         (Depends-on): Add stdio.
50269         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50270         (Include): Use <stdio.h> instead of vsnprintf.h.
50271         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50272         HAVE_DECL_VSNPRINTF.
50273         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
50274
50275         * modules/snprintf (Files): Remove lib/snprintf.h.
50276         (Depends-on): Add stdio.
50277         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50278         (Include): Use <stdio.h> instead of snprintf.h.
50279         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50280         HAVE_DECL_SNPRINTF.
50281         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
50282         * lib/getaddrinfo.c: Likewise.
50283
50284         * modules/stdio: New file.
50285         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
50286         * lib/snprintf.h: Remove file.
50287         * lib/vsnprintf.h: Remove file.
50288         * lib/.cppi-disable: Remove snprintf.h.
50289         * m4/stdio_h.m4: New file.
50290         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
50291
50292 2007-02-20  Jim Meyering  <jim@meyering.net>
50293
50294         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
50295         used by e.g., mingw.  From Bruno Haible.
50296
50297 2007-02-19  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
50300         warnings.
50301         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50302
50303 2007-02-19  Bruno Haible  <bruno@clisp.org>
50304
50305         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
50306         from mingw users.
50307
50308 2007-02-19  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
50311         warnings.
50312         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
50313
50314 2007-02-19  Jim Meyering  <jim@meyering.net>
50315
50316         Don't use FD after a successful "fdopendir (fd)".
50317         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
50318         Reset it by calling dirfd on the just-obtained DIR*.
50319
50320         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
50321         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
50322
50323 2007-02-18  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/readlink.c: Include <unistd.h>.
50326         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
50327         HAVE_READLINK.
50328         * modules/readlink (Depends-on): Add unistd.
50329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50330         (Include): Add <unistd.h>.
50331
50332         * lib/getlogin_r.h: Remove file.
50333         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
50334         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
50335         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
50336         HAVE_DECL_GETLOGIN_R.
50337         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
50338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50339         (Include): Use <unistd.h> instead of getlogin_r.h.
50340
50341         * lib/getcwd.h: Remove file.
50342         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
50343         * lib/xgetcwd.c: Likewise.
50344         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
50345         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
50346         * modules/getcwd (Files): Remove lib/getcwd.h.
50347         (Depends-on): Add unistd.
50348         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50349         (Include): Use <unistd.h> instad of getcwd.h.
50350
50351         * lib/ftruncate.c: Include <unistd.h> first.
50352         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
50353         Set HAVE_FTRUNCATE.
50354         * modules/ftruncate (Depends-on): Add unistd.
50355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50356
50357         * lib/fchdir.c: Include <unistd.h> first.
50358         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
50359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
50360         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
50361         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50362         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
50363
50364         * lib/dup2.c: Include <unistd.h> first.
50365         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
50366         HAVE_DUP2.
50367         * modules/dup2 (Depends-on): Add unistd.
50368         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50369
50370         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
50371         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
50372         REPLACE_CHOWN. Don't define chown as a macro here.
50373         * modules/chown (Depends-on): Add unistd.
50374         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50375
50376         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
50377         Add definition for GL_LINK_WARNING.
50378         (chown, dup2): New declarations.
50379         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
50380         link warning.
50381         (ftruncate): New declaration.
50382         (getcwd): New declaration, taken from old getcwd.h.
50383         (getlogin_r): New declaration, taken from old getlogin_r.h.
50384         (readlink): New declaration.
50385         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
50386         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
50387         (gl_PREREQ_UNISTD): Remove macro.
50388         (gl_UNISTD_MODULE_INDICATOR): New macro.
50389         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
50390         many new variables. Don't set UNISTD_H.
50391         * modules/unistd (Description): Change.
50392         (Depends-on): Add link-warning.
50393         (configure.ac): Update.
50394         (Makefile.am): Create unistd.h always. Substitute many new variables
50395         into it.
50396
50397 2007-02-18  Bruno Haible  <bruno@clisp.org>
50398
50399         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
50400         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
50401         HAVE_GETSUBOPT.
50402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
50403         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
50404         * lib/getsubopt.h: Remove file.
50405         * modules/getsubopt (Files): Remove lib/getsubopt.h.
50406         (Depends-on): Add stdlib.
50407         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50408         (Includes): Use <stdlib.h> instead of getsubopt.h.
50409         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
50410         Set HAVE_GETSUBOPT.
50411         * lib/getsubopt.c: Don't include getsubopt.h.
50412
50413 2007-02-18  Bruno Haible  <bruno@clisp.org>
50414
50415         * modules/fchdir (Depends-on): Add dup2.
50416
50417 2007-02-18  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/stdlib_.h: Handle glibc's special invocation convention
50420         specially.
50421
50422 2007-02-18  Bruno Haible  <bruno@clisp.org>
50423
50424         * modules/stdlib-tests: New file.
50425         * tests/test-stdlib.c: New file.
50426
50427         * modules/mkstemp (Files): Remove lib/mkstemp.h.
50428         (Depends-on): Add stdlib.
50429         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50430         (Includes): Use <stdlib.h> instead of mkstemp.h.
50431         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50432         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50433         * lib/mkstemp.c: Don't include mkstemp.h.
50434         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50435         * lib/stdlib--.h: Don't include mkstemp.h.
50436
50437         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50438         (Depends-on): Add stdlib.
50439         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50440         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50441         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50442         HAVE_MKDTEMP.
50443         * lib/mkdtemp.c: Don't include mkdtemp.h.
50444         * lib/clean-temp.c: Don't include mkdtemp.h.
50445
50446         * modules/exit (Files): Remove lib/exit.h.
50447         (Depends-on): Add stdlib.
50448         (Makefile.am): Remove lib_SOURCES.
50449         (Include): Use <stdlib.h> instead of exit.h.
50450         * lib/argmatch.c: Don't include exit.h.
50451         * lib/execute.c: Likewise.
50452         * lib/pagealign_alloc.c: Likewise.
50453         * lib/pipe.c: Likewise.
50454         * lib/wait-process.c: Likewise.
50455         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
50456         * lib/exitfail.c: Likewise.
50457         * lib/savewd.c: Likewise.
50458         * lib/xsetenv.c: Likewise.
50459
50460         * modules/stdlib: New file.
50461         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
50462         and extra comments about mkstemp().
50463         * lib/exit.h: Remove file.
50464         * lib/mkdtemp.h: Remove file.
50465         * lib/mkstemp.h: Remove file.
50466         * m4/stdlib_h.m4: New file.
50467         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
50468
50469 2007-02-18  Bruno Haible  <bruno@clisp.org>
50470
50471         * modules/math-tests: New file.
50472         * tests/test-math.c: New file.
50473
50474         * modules/math: New file.
50475         * modules/mathl (Files): Remove lib/mathl.h.
50476         (Depends-on): Add math.
50477         (Makefile.am): Don't mention mathl.h.
50478         (Include): Use <math.h> instead of mathl.h.
50479         * lib/math_.h: New file.
50480         * lib/mathl.h: Remove file.
50481         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
50482         mathl.h.
50483         * lib/asinl.c: Likewise.
50484         * lib/atanl.c: Likewise.
50485         * lib/ceill.c: Likewise.
50486         * lib/cosl.c: Likewise.
50487         * lib/expl.c: Likewise.
50488         * lib/floorl.c: Likewise.
50489         * lib/frexpl.c: Likewise.
50490         * lib/ldexpl.c: Likewise.
50491         * lib/logl.c: Likewise.
50492         * lib/sincosl.c: Likewise.
50493         * lib/sinl.c: Likewise.
50494         * lib/sqrtl.c: Likewise.
50495         * lib/tanl.c: Likewise.
50496         * lib/trigl.c: Likewise.
50497         * m4/math_h.m4: New file.
50498         * MODULES.html.sh (Mathematics): Add math.
50499
50500 2007-02-17  Bruno Haible  <bruno@clisp.org>
50501
50502         * modules/wctype-tests: New file.
50503         * tests/test-wctype.c: New file.
50504
50505         * modules/wchar-tests: New file.
50506         * tests/test-wchar.c: New file.
50507
50508         * modules/unistd-tests: New file.
50509         * tests/test-unistd.c: New file.
50510
50511         * modules/time-tests: New file.
50512         * tests/test-time.c: New file.
50513
50514         * modules/sysexits-tests: New file.
50515         * tests/test-sysexits.c: New file.
50516
50517         * modules/sys_time-tests: New file.
50518         * tests/test-sys_time.c: New file.
50519
50520         * modules/sys_stat-tests: New file.
50521         * tests/test-sys_stat.c: New file.
50522
50523         * modules/sys_socket-tests: New file.
50524         * tests/test-sys_socket.c: New file.
50525
50526         * modules/sys_select-tests: New file.
50527         * tests/test-sys_select.c: New file.
50528
50529         * modules/string-tests: New file.
50530         * tests/test-string.c: New file.
50531
50532         * modules/stdbool-tests: New file.
50533         * tests/test-stdbool.c: New file.
50534
50535         * modules/netinet_in-tests: New file.
50536         * tests/test-netinet_in.c: New file.
50537
50538         * modules/inttypes-tests: New file.
50539         * tests/test-inttypes.c: New file.
50540
50541         * modules/fcntl-tests: New file.
50542         * tests/test-fcntl.c: New file.
50543
50544         * modules/byteswap-tests: New file.
50545         * tests/test-byteswap.c: New file.
50546
50547         * modules/arpa_inet-tests: New file.
50548         * tests/test-arpa_inet.c: New file.
50549
50550 2007-02-17  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
50553         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
50554         if the corresponding module is not enabled. Emit link warnings if
50555         the function is used nevertheless.
50556         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
50557         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
50558         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
50559         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
50560         * modules/inttypes (Depends-on): Add link-warning.
50561         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50562         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
50563         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
50564         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
50565         * modules/imaxdiv (configure.ac): Likewise.
50566         * modules/strtoimax (configure.ac): Likewise.
50567         * modules/strtoumax (configure.ac): Likewise.
50568
50569 2007-02-17  Bruno Haible  <bruno@clisp.org>
50570
50571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
50572         gl_STRING_MODULE_INDICATOR_DEFAULTS.
50573         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
50574         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
50575
50576 2007-02-17  Bruno Haible  <bruno@clisp.org>
50577
50578         * modules/link-warning: New file.
50579         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
50580         * lib/string_.h (GL_LINK_WARNING): Remove definition.
50581         * modules/string (Depends-on): Add link-warning.
50582         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50583         string.h.
50584         * MODULES.html.sh (Support for building libraries and executables): Add
50585         link-warning.
50586
50587 2007-02-17  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
50590         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
50591         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
50592         long lines.
50593
50594 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
50595             Bruno Haible  <bruno@clisp.org>
50596
50597         * modules/tmpfile: New file.
50598         * lib/tmpfile.c: New file.
50599         * m4/tmpfile.m4: New file.
50600         * MODULES.html.sh (func_all_modules): New section "Input/output".
50601
50602 2007-02-15  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
50605         (supports_delete_on_close): New function.
50606         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
50607
50608 2007-02-14  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/mbspcasecmp-tests: New file.
50611         * tests/test-mbspcasecmp.sh: New file.
50612         * tests/test-mbspcasecmp.c: New file.
50613
50614         New module mbspcasecmp.
50615         * modules/mbspcasecmp: New file.
50616         * lib/mbspcasecmp.c: New file.
50617         * lib/string_.h (strncasecmp): Change warning message.
50618         (mbspcasecmp): New declaration.
50619         * m4/mbspcasecmp.m4: New file.
50620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50621         GNULIB_MBSPCASECMP.
50622         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
50623         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
50624
50625 2007-02-14  Bruno Haible  <bruno@clisp.org>
50626
50627         * modules/mbsncasecmp-tests: New file.
50628         * tests/test-mbsncasecmp.sh: New file.
50629         * tests/test-mbsncasecmp.c: New file.
50630
50631         New module mbsncasecmp.
50632         * modules/mbsncasecmp: New file.
50633         * lib/mbsncasecmp.c: New file.
50634         * lib/string_.h (mbsncasecmp): New declaration.
50635         * m4/mbsncasecmp.m4: New file.
50636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50637         GNULIB_MBSNCASECMP.
50638         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
50639         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
50640
50641 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50642
50643         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50644         Verify that it doesn't overlap with our flags.
50645         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50646         do not have the desired effect in multibyte locales; instead, use
50647         mbscasecmp.
50648         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50649         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50650         we don't require GNU fnmatch ourselves (if our users require it, they
50651         should do so explicitly).
50652
50653         Fix regex code so it doesn't rely on strcasecmp.
50654         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50655         Otherwise, include gnulib's langinfo.h.
50656         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50657         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50658         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50659         * modules/regex (FILES): Remove m4/codeset.m4.
50660         (Depends-on): Add localcharset.  Remove strcase.
50661
50662 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50663
50664         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50665         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50666
50667 2007-02-13  Bruno Haible  <bruno@clisp.org>
50668
50669         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
50670         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50671
50672 2007-02-12  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50675         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
50676         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
50677         time warning rather than a link error.
50678
50679 2007-02-12  Bruno Haible  <bruno@clisp.org>
50680
50681         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
50682         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50684
50685 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
50688         args, not 2.
50689
50690 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50691
50692         New module 'time', so that apps can include <time.h> as per
50693         POSIX and GNU instead of separate include files like time_r.h
50694         and timegm.h.  This implementation tries out a simpler approach
50695         for replacing decls in standard include files (as compared to
50696         the string module), somewhat as an experiment.
50697
50698         * config/srclist.txt: Comment out mktime.c for now.
50699         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
50700         since it doesn't apply any more.  Use generic wording instead.
50701         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
50702         'time'.
50703         * lib/time_.h, m4/time_h.m4, modules/time: New files.
50704         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
50705         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
50706         Don't include <sys/types.h>; no longer needed since we assume C89.
50707         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
50708         * lib/strftime.c: Likewise.
50709         * lib/time_r.c: Likewise.
50710         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
50711         * lib/nanosleep.c: Include <time.h> first, to check interface.
50712         * lib/strptime.c: Likewise.
50713         * lib/time_r.c: Likewise.
50714         * lib/timegm.c: Likewise.
50715         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
50716         needed.
50717         * lib/timegm.c: Don't include timegm.h; no longer needed.
50718         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
50719         time.h now handles any problems in that area.
50720         (struct timespec, nanosleep): Remove; time.h now arranges for these.
50721         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
50722         that time.h defines struct timespec.
50723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
50724         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
50725         handles that.
50726         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
50727         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
50728         needed.  Set REPLACE_LOCALTIME.
50729         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
50730         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
50731         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
50732         nanosleep; time_h.m4 now does that.  Don't require
50733         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
50734         module handles this now.
50735         * modules/getdate (Depends-on): Remove timespec.  Add time.
50736         * modules/nanosleep (Depends-on): Likewise.
50737         * modules/stat-time (Depends-on): Likewise.
50738         * modules/nanosleep (Include): Include time.h, not timespec.h.
50739         * modules/strptime (Files): Remove lib/strptime.h.
50740         (Depends-on): Add extensions, time.
50741         (Include): Include time.h, not strptime.h.
50742         * modules/time_r (Files): Remove lib/time_r.h.
50743         (Depends-on): Add time.
50744         (Include): Include time.h, not time_r.h.
50745         * modules/timegm: Likewise.
50746         * modules/timespec (Description): Now does timespec-related decls
50747         of our own, instead of struct timespec itself.
50748         (Depends-on): Add time; remove extensions.
50749         (Maintainer): Add self.
50750         * modules/utimecmp (Depends-on): Add time; remove timespec.
50751         * modules/utimens (Depends-on): Likewise.
50752         * modules/xnanosleep (Depends-on): Likewise.
50753
50754 2007-02-11  Bruno Haible  <bruno@clisp.org>
50755
50756         * lib/c-strstr.c: Include allocsa.h.
50757         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50758         * lib/c-strcasestr.c: Include allocsa.h.
50759         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50760         * lib/strcasestr.c: Include allocsa.h.
50761         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50762         * lib/mbsstr.c: Include allocsa.h.
50763         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50764         allocsa/freesa instead of malloc/free.
50765         * lib/mbscasestr.c: Include allocsa.h.
50766         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50767         allocsa/freesa instead of malloc/free.
50768         * modules/c-strstr (Depends-on): Add allocsa.
50769         * modules/c-strcasestr (Depends-on): Likewise.
50770         * modules/strcasestr (Depends-on): Likewise.
50771         * modules/mbsstr (Depends-on): Likewise.
50772         * modules/mbscasestr (Depends-on): Likewise.
50773
50774 2007-02-11  Bruno Haible  <bruno@clisp.org>
50775
50776         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50777
50778         * modules/mbsspn-tests: New file.
50779         * tests/test-mbsspn.sh: New file.
50780         * tests/test-mbsspn.c: New file.
50781
50782 2007-02-11  Bruno Haible  <bruno@clisp.org>
50783
50784         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50785
50786         * modules/mbspbrk-tests: New file.
50787         * tests/test-mbspbrk.sh: New file.
50788         * tests/test-mbspbrk.c: New file.
50789
50790 2007-02-11  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50793         unneeded cast.
50794
50795         * modules/mbscspn-tests: New file.
50796         * tests/test-mbscspn.sh: New file.
50797         * tests/test-mbscspn.c: New file.
50798
50799 2007-02-11  Bruno Haible  <bruno@clisp.org>
50800
50801         * modules/mbscasecmp-tests: New file.
50802         * tests/test-mbscasecmp.sh: New file.
50803         * tests/test-mbscasecmp.c: New file.
50804
50805 2007-02-11  Bruno Haible  <bruno@clisp.org>
50806
50807         Ensure O(n) worst-case complexity of mbscasestr.
50808         * lib/mbscasestr.c: Include stdbool.h.
50809         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50810         functions.
50811         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50812         the bookkeeping indicates that it's worth it.
50813         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50814
50815         * modules/mbscasestr-tests: New file.
50816         * tests/test-mbscasestr1.c: New file.
50817         * tests/test-mbscasestr2.sh: New file.
50818         * tests/test-mbscasestr2.c: New file.
50819         * tests/test-mbscasestr3.sh: New file.
50820         * tests/test-mbscasestr3.c: New file.
50821         * tests/test-mbscasestr4.sh: New file.
50822         * tests/test-mbscasestr4.c: New file.
50823         * m4/locale-tr.m4: New file.
50824
50825 2007-02-11  Bruno Haible  <bruno@clisp.org>
50826
50827         Ensure O(n) worst-case complexity of mbsstr.
50828         * lib/mbsstr.c: Include stdbool.h.
50829         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50830         functions.
50831         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
50832         bookkeeping indicates that it's worth it.
50833         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
50834
50835         * modules/mbsstr-tests: New file.
50836         * tests/test-mbsstr1.c: New file.
50837         * tests/test-mbsstr2.sh: New file.
50838         * tests/test-mbsstr2.c: New file.
50839         * tests/test-mbsstr3.sh: New file.
50840         * tests/test-mbsstr3.c: New file.
50841         * m4/locale-fr.m4: New file.
50842
50843 2007-02-11  Bruno Haible  <bruno@clisp.org>
50844
50845         * lib/mbsrchr.c (mbsrchr): Fix bug.
50846
50847         * modules/mbsrchr-tests: New file.
50848         * tests/test-mbsrchr.sh: New file.
50849         * tests/test-mbsrchr.c: New file.
50850
50851 2007-02-11  Bruno Haible  <bruno@clisp.org>
50852
50853         * lib/mbschr.c (mbschr): Fix bug.
50854
50855         * modules/mbschr-tests: New file.
50856         * tests/test-mbschr.sh: New file.
50857         * tests/test-mbschr.c: New file.
50858         * m4/locale-zh.m4: New file.
50859
50860 2007-02-11  Bruno Haible  <bruno@clisp.org>
50861
50862         Support for copying multibyte string iterators.
50863         * lib/mbiter.h: Include <string.h>.
50864         (mbiter_multi_copy): New function.
50865         (mbi_copy): New macro.
50866         * lib/mbuiter.h: Include <string.h>.
50867         (mbuiter_multi_copy): New function.
50868         (mbui_copy): New macro.
50869
50870 2007-02-11  Bruno Haible  <bruno@clisp.org>
50871
50872         New module mbslen.
50873         * modules/mbslen: New file.
50874         * lib/mbslen.c: New file.
50875         * lib/string_.h (mbslen): New declaration.
50876         * m4/mbslen.m4: New file.
50877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50878         GNULIB_MBSLEN.
50879         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
50880         * MODULES.html.sh (Internationalization functions): Add mbslen.
50881
50882 2007-02-11  Bruno Haible  <bruno@clisp.org>
50883
50884         Ensure O(n) worst-case complexity of strcasestr substitute.
50885         * lib/strcasestr.c: Include stdbool.h.
50886         (knuth_morris_pratt): New function.
50887         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50888         bookkeeping indicates that it's worth it.
50889         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
50890
50891         * modules/strcasestr-tests: New file.
50892         * tests/test-strcasestr.c: New file.
50893
50894 2007-02-11  Bruno Haible  <bruno@clisp.org>
50895
50896         Ensure O(n) worst-case complexity of c_strcasestr.
50897         * lib/c-strcasestr.c: Include stdbool.h, string.h.
50898         (knuth_morris_pratt): New function.
50899         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50900         the bookkeeping indicates that it's worth it.
50901         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
50902
50903         * modules/c-strcasestr-tests: New file.
50904         * tests/test-c-strcasestr.c: New file.
50905
50906 2007-02-11  Bruno Haible  <bruno@clisp.org>
50907
50908         Ensure O(n) worst-case complexity of c_strstr.
50909         * lib/c-strstr.c: Include stdbool.h, string.h.
50910         (knuth_morris_pratt): New function.
50911         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50912         bookkeeping indicates that it's worth it.
50913         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
50914
50915         * lib/c-strstr.c: Complete rewrite for maintainability.
50916
50917         * modules/c-strstr-tests: New file.
50918         * tests/test-c-strstr.c: New file.
50919
50920 2007-02-11  Bruno Haible  <bruno@clisp.org>
50921
50922         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
50923         5.2.1 and earlier, whereby \055 was treated just like the range
50924         delimiter '-'.
50925         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50926
50927 2007-02-08  Bruno Haible  <bruno@clisp.org>
50928
50929         * modules/regex (Depends-on): Add stdbool.
50930         Reported by Dalibor Topic <robilad@kaffe.org>.
50931
50932 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50933
50934         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
50935         Prefer returning from main to exiting from it.
50936         Remove unnecessary parens after sizeof.
50937
50938 2007-02-05  Bruno Haible  <bruno@clisp.org>
50939
50940         New module mbssep.
50941         * modules/mbssep: New file.
50942         * lib/mbssep.c: New file.
50943         * lib/string_.h (strsep): Add a conditional link warning.
50944         (mbssep): New declaration.
50945         * m4/mbssep.m4: New file.
50946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50947         GNULIB_MBSSEP.
50948         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
50949         * MODULES.html.sh (Internationalization functions): Add mbssep.
50950
50951 2007-02-05  Bruno Haible  <bruno@clisp.org>
50952
50953         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
50954         Optimize search in case of 1 delimiter.
50955
50956 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50957
50958         * lib/acl.h: Include sys/types.h before sys/acl.h.
50959
50960 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50961
50962         Merge upstream fix for glibc bugzilla #3957:
50963
50964         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
50965
50966         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
50967         bit for RE_HAT_LISTS_NOT_NEWLINE.
50968         (build_charclass_op): Remove bogus comment.
50969
50970 2007-02-05  Simon Josefsson  <simon@josefsson.org>
50971
50972         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
50973
50974 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50975
50976         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
50977         * lib/memmem.c [!defined _LIBC]: Include config.h.
50978
50979 2007-02-04  Bruno Haible  <bruno@clisp.org>
50980
50981         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
50982         warning message.
50983
50984 2007-02-04  Bruno Haible  <bruno@clisp.org>
50985
50986         New module mbstok_r.
50987         * modules/mbstok_r: New file.
50988         * lib/mbstok_r.c: New file.
50989         * lib/string_.h (strtok_r): Change argument names to match the
50990         comments. Add a conditional link warning.
50991         (mbstok_r): New declaration.
50992         * m4/mbstok_r.m4: New file.
50993         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50994         GNULIB_MBSTOK_R.
50995         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
50996         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
50997
50998 2007-02-04  Bruno Haible  <bruno@clisp.org>
50999
51000         New module mbsspn.
51001         * modules/mbsspn: New file.
51002         * lib/mbsspn.c: New file.
51003         * lib/string_.h (strspn): Add a conditional link warning.
51004         (mbsspn): New declaration.
51005         * m4/mbsspn.m4: New file.
51006         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51007         GNULIB_MBSSPN.
51008         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51009         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51010
51011 2007-02-04  Bruno Haible  <bruno@clisp.org>
51012
51013         New module mbspbrk.
51014         * modules/mbspbrk: New file.
51015         * lib/mbspbrk.c: New file.
51016         * lib/string_.h (strpbrk): Add a conditional link warning.
51017         (mbspbrk): New declaration.
51018         * m4/mbspbrk.m4: New file.
51019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51020         GNULIB_MBSPBRK.
51021         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51022         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51023
51024 2007-02-04  Bruno Haible  <bruno@clisp.org>
51025
51026         New module mbscspn.
51027         * modules/mbscspn: New file.
51028         * lib/mbscspn.c: New file.
51029         * lib/string_.h (strcspn): Add a conditional link warning.
51030         (mbscspn): New declaration.
51031         * m4/mbscspn.m4: New file.
51032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51033         GNULIB_MBSCSPN.
51034         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51035         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51036
51037 2007-02-04  Bruno Haible  <bruno@clisp.org>
51038
51039         New module mbscasestr, reduced goal of strcasestr.
51040         * modules/mbscasestr: New file.
51041         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51042         (mbscasestr): Renamed from strcasestr.
51043         * lib/strcasestr.c: Don't include mbuiter.h.
51044         (strcasestr): Remove support for multibyte locales.
51045         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51046         Change the conditional link warning.
51047         (mbscasestr): New declaration.
51048         * m4/mbscasestr.m4: New file.
51049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51050         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51051         REPLACE_STRCASESTR.
51052         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51054         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51055         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51056         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51057         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51058         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51059         (Depends-on): Remove mbuiter.
51060         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51061
51062 2007-02-04  Bruno Haible  <bruno@clisp.org>
51063
51064         Simplify handling of strncasecmp.
51065         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51066         the conditional link warning.
51067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51068         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51069         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51070         * modules/strcase (configure.ac): Don't invoke
51071         gl_STRING_MODULE_INDICATOR.
51072         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51073
51074 2007-02-04  Bruno Haible  <bruno@clisp.org>
51075
51076         New module mbscasecmp, reduced goal of strcasecmp.
51077         * modules/mbscasecmp: New file.
51078         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51079         (mbscasecmp): Renamed from strcasecmp.
51080         * lib/strcasecmp.c: Don't include mbuiter.h.
51081         (strcasecmp): Remove support for multibyte locales.
51082         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51083         Change the conditional link warning.
51084         (mbscasecmp): New declaration.
51085         * m4/mbscasecmp.m4: New file.
51086         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51087         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51088         REPLACE_STRCASECMP.
51089         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51090         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51091         GNULIB_MBSCASECMP.
51092         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51093         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51094         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51095         (Depends-on): Remove mbuiter.
51096         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51097
51098 2007-02-04  Bruno Haible  <bruno@clisp.org>
51099
51100         New module mbsstr. Remove module strstr.
51101         * modules/mbsstr: New file.
51102         * modules/strstr: Remove file.
51103         * lib/mbsstr.c: Renamed from lib/strstr.c.
51104         (mbsstr): Renamed from strstr.
51105         * lib/string_.h (strstr): Remove declaration. Change the conditional
51106         link warning.
51107         (mbsstr): New declaration.
51108         * m4/mbsstr.m4: New file.
51109         * m4/strstr.m4: Remove file.
51110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51111         REPLACE_STRSTR.
51112         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51113         Don't initialize GNULIB_STRSTR.
51114         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51115         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51116         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51117         (Support for systems lacking ANSI C 89): Remove strstr.
51118
51119 2007-02-04  Bruno Haible  <bruno@clisp.org>
51120
51121         New module mbsrchr.
51122         * modules/mbsrchr: New file.
51123         * lib/mbsrchr.c: New file.
51124         * lib/string_.h (strrchr): Add a conditional link warning.
51125         (mbsrchr): New declaration.
51126         * m4/mbsrchr.m4: New file.
51127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51128         GNULIB_MBSRCHR.
51129         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51130         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51131
51132 2007-02-04  Bruno Haible  <bruno@clisp.org>
51133
51134         New module mbschr.
51135         * modules/mbschr: New file.
51136         * lib/mbschr.c: New file.
51137         * lib/string_.h (strchr): Add a conditional link warning.
51138         (mbschr): New declaration.
51139         * m4/mbschr.m4: New file.
51140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51141         GNULIB_MBSCHR.
51142         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51143         * MODULES.html.sh (Internationalization functions): Add mbschr.
51144
51145 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51146
51147         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51148
51149         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51150
51151 2007-02-04  Bruno Haible  <bruno@clisp.org>
51152
51153         New module description section 'configure.ac-early'.
51154         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51155         (func_get_autoconf_early_snippet): New function.
51156         (func_import, func_create_testdir): Use it. Remove special cases for
51157         modules 'extensions' and 'lock'.
51158         * modules/extensions (configure.ac-early): Require
51159         gl_USE_SYSTEM_EXTENSIONS.
51160         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51161
51162 2007-02-04  Bruno Haible  <bruno@clisp.org>
51163
51164         Make use of gcj-4.3's -fsource and -ftarget option.
51165         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51166         and if so try the options -fsource and -ftarget.
51167         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51168         source_version, ftarget_option, target_version arguments.
51169         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51170         (is_envjavac_oldgcj_14_14_usable): Renamed from
51171         is_envjavac_gcj_14_14_usable.
51172         (is_envjavac_oldgcj_14_13_usable): Renamed from
51173         is_envjavac_gcj_14_13_usable.
51174         (is_gcj_present): Update.
51175         (is_gcj_43, is_gcj43_usable): New functions.
51176         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
51177         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
51178         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
51179         try the options -fsource and -ftarget.
51180
51181 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51182
51183         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
51184         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
51185         larger value.
51186
51187 2007-02-03  Jim Meyering  <jim@meyering.net>
51188
51189         Give tools a better chance to allocate space for very large buffers.
51190         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
51191
51192         Make pwd and readlink work also when run with an unreadable parent dir
51193         on systems with openat support.
51194         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
51195         provided getcwd function, even when we have openat support.
51196         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
51197
51198 2007-02-02  Bruno Haible  <bruno@clisp.org>
51199
51200         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51201         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
51202         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
51203         portability problems if one of these functions is only used on specific
51204         platforms.
51205         Reported by Paul Eggert.
51206
51207 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
51210         is causing more trouble than it's curing.
51211         * lib/regex_internal.h (__mempcpy): Remove.
51212         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
51213         (and make the code a tad smaller to boot).
51214         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
51215
51216 2007-02-02  Jim Meyering  <jim@meyering.net>
51217
51218         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
51219         section, not in the Makefile.am: one.
51220
51221 2007-02-02  Eric Blake  <ebb9@byu.net>
51222
51223         * lib/strchrnul.c: Always include config.h first.
51224
51225         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
51226         gnulib strstr is not necessary here.
51227
51228 2007-02-02  Simon Josefsson  <simon@josefsson.org>
51229
51230         * m4/socklen.m4: Fix typo.
51231
51232 2007-02-02  Eric Blake  <ebb9@byu.net>
51233
51234         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
51235         * modules/netinet_in (Makefile.am): Likewise.
51236
51237 2007-02-01  Bruno Haible  <bruno@clisp.org>
51238
51239         * lib/string_.h (GL_LINK_WARNING): New macro.
51240         (strcasecmp, strstr, strcasestr): If provided by the system,
51241         conditionally define as a macro that leads to a warning instead of to
51242         an error.
51243         (strncasecmp): Conditionally define as a macro that leads to a warning.
51244
51245 2007-02-01  Karl Berry  <karl@gnu.org>
51246
51247         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
51248
51249 2007-02-01  Bruno Haible  <bruno@clisp.org>
51250
51251         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
51252         renamings.
51253
51254 2007-02-01  Eric Blake  <ebb9@byu.net>
51255
51256         * modules/regex (Depends-on): Revert dependence on mempcpy.
51257         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
51258         module's definition of mempcpy.
51259         Reported by Paul Eggert.
51260
51261 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51262
51263         * lib/string_.h: If the gnulib module XYZ is not present, undefine
51264         the symbol XYZ before redefining it.  This fixes a problem with
51265         programs that don't use XYZ, when compiled on systems that define
51266         XYZ to something else.
51267
51268 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
51269
51270         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
51271         occurs when "mkdir -m foo" creates a setgid directory that is (1)
51272         writeable to group or other and (2) is intended to have a special
51273         mode bit that is set or cleared.  In such a case, the directory
51274         should be neither group- nor other-writeable until the special
51275         mode bits are right.
51276
51277 2007-01-31  Eric Blake  <ebb9@byu.net>
51278
51279         * modules/mountlist (Depends-on): Add strstr.
51280
51281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
51282         bug.
51283         * modules/string (Makefile.am): Remove redundant replacement.
51284         * modules/regex (Depends-on): Add mempcpy.
51285
51286 2007-01-31  Bruno Haible  <bruno@clisp.org>
51287
51288         New module description field 'Link'.
51289         * gnulib-tool (func_usage): Document --extract-link-directive.
51290         (sed_extract_prog): Recognize 'Link' directive.
51291         (func_get_link_directive): New function.
51292         (func_import): Show summary of link directives.
51293         Handle --extract-link-directive option.
51294         * modules/acl (Link): New section.
51295         * modules/clock-time (Link): New section.
51296         * modules/euidaccess (Link): New section.
51297         * modules/gettext (Link): New section.
51298         * modules/iconv (Link): New section.
51299         * modules/lock (Link): New section.
51300         * modules/nanosleep (Link): New section.
51301         * modules/readline (Link): New section.
51302
51303 2007-01-27  Bruno Haible  <bruno@clisp.org>
51304
51305         Enforce the use of gnulib modules for unportable <string.h> functions.
51306         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
51307         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
51308         (gl_HEADER_STRING_H_BODY): Require it.
51309         * lib/string_.h: If the gnulib module XYZ is not present, redefine
51310         the symbol XYZ to one that gives a link error.
51311         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
51312         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
51313         * modules/mempcpy (configure.ac): Likewise.
51314         * modules/memrchr (configure.ac): Likewise.
51315         * modules/stpcpy (configure.ac): Likewise.
51316         * modules/stpncpy (configure.ac): Likewise.
51317         * modules/strcase (configure.ac): Likewise.
51318         * modules/strcasestr (configure.ac): Likewise.
51319         * modules/strchrnul (configure.ac): Likewise.
51320         * modules/strdup (configure.ac): Likewise.
51321         * modules/strndup (configure.ac): Likewise.
51322         * modules/strnlen (configure.ac): Likewise.
51323         * modules/strpbrk (configure.ac): Likewise.
51324         * modules/strsep (configure.ac): Likewise.
51325         * modules/strstr (configure.ac): Likewise.
51326         * modules/strtok_r (configure.ac): Likewise.
51327
51328 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
51329
51330         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
51331
51332 2007-01-30  Jim Meyering  <jim@meyering.net>
51333
51334         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
51335
51336 2007-01-29  Bruno Haible  <bruno@clisp.org>
51337
51338         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
51339         * lib/execute.c: Likewise.
51340         * lib/pipe.c: Likewise.
51341         * lib/printf-args.h: Likewise.
51342         * lib/printf-args.c: Likewise.
51343         * lib/printf-parse.c: Likewise.
51344         * lib/vasnprintf.c: Likewise.
51345
51346 2007-01-29  Eric Blake  <ebb9@byu.net>
51347
51348         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
51349         declaration.
51350
51351 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51352
51353         * lib/strptime.h (strptime): Use 'restrict' for args where
51354         POSIX requires this.
51355         * lib/strptime.c (strptime): Likewise.
51356         Change license notice from LGPL to GPL, since gnulib-tool will
51357         change this as needed.
51358         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
51359         defined.
51360         Include "strptime.h" first, to check interface.
51361         Do not #undef _LIBC and _NL_CURRENT.
51362         Do not include <stdlib.h>; no longer needed.
51363         Include "time_r.h" and declare ptime_locale_status
51364         only if _LIBC is not defined.
51365         (__P): Remove unused macro.
51366         (match_string): Bring back glibc version, but use it only if _LIBC
51367         is defined.
51368         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
51369         Remove unnecessary assertion and abort() call.
51370         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
51371         * m4/strptime.m4: Fix serial number comment.
51372         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
51373         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
51374         (Depends-on): Add time_r.
51375
51376 2007-01-29  Bruno Haible  <bruno@clisp.org>
51377
51378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51379         strptime.
51380         * modules/strptime (Depends-on): Add stdbool.
51381         * lib/strptime.h: Include <time.h> always. Add comments.
51382
51383 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51384
51385         * modules/strptime: New file.
51386         * lib/strptime.h: New file.
51387         * lib/strptime.c: New file.
51388         * m4/strptime.m4: New file.
51389
51390 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51391
51392         * MODULES.html.sh: New module mpsort.
51393         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
51394
51395         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
51396         a circularity problem with HP-UX ia64 reported by Bob Proulx in
51397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
51398         All uses changed.
51399         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
51400         All uses changed.
51401         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
51402         to _Restrict_.
51403         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
51404         the parameter matches the prototype.
51405
51406 2007-01-28  Jim Meyering  <jim@meyering.net>
51407
51408         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
51409         sys/time.h here, reverting that part of the previous patch:
51410         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
51411
51412 2007-01-28  Bruno Haible  <bruno@clisp.org>
51413
51414         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
51415         value of $(SYS_TIME_H).
51416         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
51417         remove it conditionally, too. [added by Jim Meyering]
51418         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
51419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51420         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
51421         GETTIMEOFDAY_REPLACEMENT to 1.
51422
51423 2007-01-28  Bruno Haible  <bruno@clisp.org>
51424
51425         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
51426         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
51427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
51428         Set UNISTD_H instead of UNISTD_H2.
51429         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51430
51431 2007-01-28  Bruno Haible  <bruno@clisp.org>
51432
51433         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51434         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51435
51436 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51437
51438         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51439         (func_create_testdir): Ensure C locale for `grep' and `tr'
51440         character ranges.
51441         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
51442         ACLOCAL_AMFLAGS parsing state machine.
51443
51444 2007-01-27  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/unistr/base: Update.
51447
51448 2007-01-27  Bruno Haible  <bruno@clisp.org>
51449
51450         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
51451         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
51452         * modules/unistr/u32-mbtouc-unsafe: Renamed from
51453         modules/unistr/u32-mbtouc.
51454         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
51455         * lib/unistr.h: Update.
51456         * lib/linebreak.c: Update.
51457         * modules/unistr/u32-mbtouc: Renamed from
51458         modules/unistr/u32-mbtouc-safe.
51459         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
51460         * lib/unistr.h: Update.
51461         * lib/unistr/u32-to-u8.c: Update.
51462         * lib/unistr/u32-to-u16.c: Update.
51463
51464 2007-01-27  Bruno Haible  <bruno@clisp.org>
51465
51466         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
51467         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
51468         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
51469         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
51470         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
51471         * modules/unistr/u16-mbtouc-unsafe: Renamed from
51472         modules/unistr/u16-mbtouc.
51473         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
51474         * lib/unistr.h: Update.
51475         * lib/linebreak.c: Update.
51476         * modules/linebreak: Update.
51477         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
51478         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
51479         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
51480         * modules/unistr/u16-mbtouc: Renamed from
51481         modules/unistr/u16-mbtouc-safe.
51482         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
51483         * lib/unistr.h: Update.
51484         * lib/unistr/u16-to-u8.c: Update.
51485         * modules/unistr/u16-to-u8: Update.
51486         * lib/unistr/u16-to-u32.c: Update.
51487         * modules/unistr/u16-to-u32: Update.
51488
51489 2007-01-27  Bruno Haible  <bruno@clisp.org>
51490
51491         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
51492         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
51493         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
51494         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
51495         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
51496         * modules/unistr/u8-mbtouc-unsafe: Renamed from
51497         modules/unistr/u8-mbtouc.
51498         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
51499         * lib/unistr.h: Update.
51500         * lib/striconveh.c: Update.
51501         * modules/striconveh: Update.
51502         * lib/linebreak.c: Update.
51503         * modules/linebreak: Update.
51504         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
51505         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
51506         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
51507         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
51508         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
51509         * lib/unistr.h: Update.
51510         * lib/striconveh.c: Update.
51511         * modules/striconveh: Update.
51512         * lib/unistr/u8-to-u16.c: Update.
51513         * modules/unistr/u8-to-u16: Update.
51514         * lib/unistr/u8-to-u32.c: Update.
51515         * modules/unistr/u8-to-u32: Update.
51516
51517 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51518
51519         Sync from Libtool.
51520         * lib/argz.c: Do not include strings.h nor memory.h, include
51521         string.h unconditionally.  Patch by Simon Josefsson.
51522
51523 2007-01-27  Bruno Haible  <bruno@clisp.org>
51524
51525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
51526         from gl_HEADER_STRING_H_BODY.
51527         (gl_HEADER_STRING_H_BODY): Require it.
51528         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
51529         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51530         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51531         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51532         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51533         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
51534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51535         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51536         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
51537         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51538         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51539         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
51540         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51541         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51542         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51543
51544 2007-01-27  Bruno Haible  <bruno@clisp.org>
51545
51546         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
51547         check_PROGRAMS into noinst_PROGRAMS.
51548         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
51549         check_PROGRAMS in this case.
51550         (func_import): Set for_test to false.
51551         (func_create_testdir): Set for_test to true.
51552
51553 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51554             Bruno Haible  <bruno@clisp.org>
51555
51556         * modules/strcasestr (Files): Remove lib/strcasestr.h.
51557         (Depends-on): Add string.
51558         (Includes): Use <string.h> instead of strcasestr.h.
51559         * modules/string (Makefile.am): Also substitute the value of
51560         REPLACE_STRCASESTR.
51561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
51562         assume strcasestr is declared in <string.h> not <strings.h>. Also
51563         set REPLACE_STRCASESTR.
51564         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
51565         REPLACE_STRCASESTR.
51566         * lib/strcasestr.h: Remove file.
51567         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
51568         * lib/string_.h (strcasestr): New declaration.
51569
51570 2007-01-27  Bruno Haible  <bruno@clisp.org>
51571
51572         * lib/string_.h: Use 'extern'.
51573
51574 2007-01-27  Jim Meyering  <jim@meyering.net>
51575
51576         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
51577         of set-but-not-used local, "q".
51578
51579         * lib/mempcpy.c: Include <config.h> before <string.h>.
51580         This fixes a compilation error on HP-UX, due to the system's
51581         "restrict"-using mempcpy prototype.
51582
51583 2007-01-26  Bruno Haible  <bruno@clisp.org>
51584
51585         Small optimization.
51586         * lib/javacomp.c: Include c-strstr.h.
51587          (is_envjavac_gcj): Use c_strstr instead of strstr.
51588         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
51589
51590 2007-01-26  Bruno Haible  <bruno@clisp.org>
51591
51592         * MODULES.html.sh (Unicode string functions): Add the new modules.
51593
51594         * modules/uniconv/u32-strconv-to-locale: New file.
51595         * lib/uniconv/u32-strconv-to-locale.c: New file.
51596
51597         * modules/uniconv/u16-strconv-to-locale: New file.
51598         * lib/uniconv/u16-strconv-to-locale.c: New file.
51599
51600         * modules/uniconv/u8-strconv-to-locale: New file.
51601         * lib/uniconv/u8-strconv-to-locale.c: New file.
51602
51603         * modules/uniconv/u32-strconv-from-locale: New file.
51604         * lib/uniconv/u32-strconv-from-locale.c: New file.
51605
51606         * modules/uniconv/u16-strconv-from-locale: New file.
51607         * lib/uniconv/u16-strconv-from-locale.c: New file.
51608
51609         * modules/uniconv/u8-strconv-from-locale: New file.
51610         * lib/uniconv/u8-strconv-from-locale.c: New file.
51611
51612         * modules/uniconv/u32-strconv-to-enc: New file.
51613         * lib/uniconv/u32-strconv-to-enc.c: New file.
51614         * modules/uniconv/u32-strconv-to-enc-tests: New file.
51615         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
51616
51617         * modules/uniconv/u16-strconv-to-enc: New file.
51618         * lib/uniconv/u16-strconv-to-enc.c: New file.
51619         * lib/uniconv/u-strconv-to-enc.h: New file.
51620         * modules/uniconv/u16-strconv-to-enc-tests: New file.
51621         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
51622
51623         * modules/uniconv/u8-strconv-to-enc: New file.
51624         * lib/uniconv/u8-strconv-to-enc.c: New file.
51625         * modules/uniconv/u8-strconv-to-enc-tests: New file.
51626         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
51627
51628         * modules/uniconv/u32-strconv-from-enc: New file.
51629         * lib/uniconv/u32-strconv-from-enc.c: New file.
51630         * modules/uniconv/u32-strconv-from-enc-tests: New file.
51631         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
51632
51633         * modules/uniconv/u16-strconv-from-enc: New file.
51634         * lib/uniconv/u16-strconv-from-enc.c: New file.
51635         * modules/uniconv/u16-strconv-from-enc-tests: New file.
51636         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
51637
51638         * modules/uniconv/u8-strconv-from-enc: New file.
51639         * lib/uniconv/u8-strconv-from-enc.c: New file.
51640         * lib/uniconv/u-strconv-from-enc.h: New file.
51641         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51642         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51643
51644         * modules/uniconv/u32-conv-from-enc: New file.
51645         * lib/uniconv/u32-conv-from-enc.c: New file.
51646         * modules/uniconv/u32-conv-from-enc-tests: New file.
51647         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51648
51649         * modules/uniconv/u16-conv-from-enc: New file.
51650         * lib/uniconv/u16-conv-from-enc.c: New file.
51651         * lib/uniconv/u-conv-from-enc.h: New file.
51652         * modules/uniconv/u16-conv-from-enc-tests: New file.
51653         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51654
51655         * modules/uniconv/u8-conv-from-enc: New file.
51656         * lib/uniconv/u8-conv-from-enc.c: New file.
51657         * modules/uniconv/u8-conv-from-enc-tests: New file.
51658         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51659
51660         * modules/uniconv/base: New file.
51661         * lib/uniconv.h: New file.
51662
51663 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51664
51665         * doc/gnulib-tool.texi (Initial import): Update to match current
51666         behavior with strdup module.
51667         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
51668         * lib/memmem.h: Remove; all uses removed.  This is now done
51669         by <string.h>.
51670         * lib/mempcpy.h: Likewise.
51671         * lib/memrchr.h: Likewise.
51672         * lib/stpcpy.h: Likewise.
51673         * lib/stpncpy.h: Likewise.
51674         * lib/strcase.h: Likewise.
51675         * lib/strchrnul.h: Likewise.
51676         * lib/strdup.h: Likewise.
51677         * lib/strndup.h: Likewise.
51678         * lib/strnlen.h: Likewise.
51679         * lib/strpbrk.h: Likewise.
51680         * lib/strsep.h: Likewise.
51681         * lib/strstr.h: Likewise.
51682         * lib/strtok_r.h: Likewise.
51683         * lib/string_.h: New file.
51684         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
51685         Rely on <string.h> instead.
51686         * lib/canon-host.c: Likewise.
51687         * lib/chdir-long.c: Likewise.
51688         * lib/concatpath.c: Likewise.
51689         * lib/exclude.c: Likewise.
51690         * lib/fchdir.c: Likewise.
51691         * lib/getaddrinfo.c: Likewise.
51692         * lib/getcwd.c: Likewise.
51693         * lib/getsubopt.c: Likewise.
51694         * lib/glob.c: Likewise.
51695         * lib/hard-locale.c: Likewise.
51696         * lib/iconvme.c: Likewise.
51697         * lib/javacomp.c: Likewise.
51698         * lib/mempcpy.c: Likewise.
51699         * lib/memrchr.c: Likewise.
51700         * lib/regex_internal.h: Likewise.
51701         * lib/stpncpy.c: Likewise.
51702         * lib/strcasecmp.c: Likewise.
51703         * lib/strchrnul.c: Likewise.
51704         * lib/strdup.c: Likewise.
51705         * lib/striconv.c: Likewise.
51706         * lib/striconveh.c: Likewise.
51707         * lib/striconveha.c: Likewise.
51708         * lib/strncasecmp.c: Likewise.
51709         * lib/strndup.c: Likewise.
51710         * lib/strnlen.c: Likewise.
51711         * lib/strsep.c: Likewise.
51712         * lib/strstr.c: Likewise.
51713         * lib/strtok_r.c: Likewise.
51714         * lib/userspec.c: Likewise.
51715         * lib/w32spawn.h: Likewise.
51716         * lib/xstrndup.c: Likewise.
51717         * lib/mountlist.c (strstr): Remove decl.
51718         * m4/string_h.m4: New file.
51719         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
51720         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
51721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
51722         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
51723         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
51724         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
51725         Set REPLACE_STRCASECMP if necessary.
51726         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
51727         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
51728         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
51729         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
51730         HAVE_DECL_STRDUP if necessary.
51731         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
51732         since gl_FUNC_STRNDUP does that now.
51733         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
51734         Check for decl here...
51735         (gl_PREREQ_STRNLEN): ... not here.
51736         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
51737         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
51738         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
51739         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
51740         necessary.
51741         * modules/string: New file.
51742         * modules/memmem (Files): Remove special-purpose include file.
51743         (Depends-on): Add string.
51744         (Include): Include <string.h>, not the removed file.
51745         * modules/mempcpy: Likewise.
51746         * modules/memrchr: Likewise.
51747         * modules/stpcpy: Likewise.
51748         * modules/stpncpy: Likewise.
51749         * modules/strcase: Likewise.
51750         * modules/strchrnul: Likewise.
51751         * modules/strdup: Likewise.
51752         * modules/strndup: Likewise.
51753         * modules/strnlen: Likewise.
51754         * modules/strpbrk: Likewise.
51755         * modules/strsep: Likewise.
51756         * modules/strstr: Likewise.
51757         * modules/strtok_r: Likewise.
51758         * tests/test-dirname.c: Don't include "strdup.h", since
51759         <string.h> now suffices.
51760         * tests/test-memmem.c: Don't include "memmem.h", since
51761         <string.h> now suffices.
51762
51763 2007-01-25  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
51766         *resultp is 0.
51767
51768         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
51769         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
51770         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
51771         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
51772
51773         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
51774         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
51775         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
51776         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51777         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51778         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51779
51780 2007-01-24  Bruno Haible  <bruno@clisp.org>
51781
51782         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51784         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51785         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51786         gl_FUNC_FTS_CORE.
51787         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51788         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51789         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51790         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51791         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51792         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51793         gl_FUNC_FCHOWNAT.
51794         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51795         gl_FUNC_STRFTIME.
51796         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51797         Reported by Ralf Wildenhues.
51798
51799 2007-01-24  Bruno Haible  <bruno@clisp.org>
51800
51801         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51802         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51803         gl_GETADDRINFO.
51804         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51805         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51806         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51807
51808 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51811         Don't use 'exit'; just return from 'main'.
51812         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51813
51814         * lib/fnmatch_.h: Readjust white space and comments to match
51815         glibc, to avoid spurious diffs.
51816
51817 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51818
51819         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
51820         2004-12-01 change by Jakub Jelinek, since this code won't compile
51821         if !LIBC.  Problem reported by Bob Proulx.
51822
51823 2007-01-23  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/striconveh.c: Include c-strcaseeq.h.
51826         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
51827         * modules/striconveh (Depends-on): Add c-strcaseeq.
51828
51829 2007-01-23  Bruno Haible  <bruno@clisp.org>
51830
51831         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
51832
51833         * modules/c-strcaseeq: New file.
51834         * lib/c-strcaseeq.h: New file.
51835
51836         * modules/streq: New file.
51837         * lib/streq.h: New file.
51838
51839 2007-01-23  Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/striconveha-tests: New file.
51842         * tests/test-striconveha.c: New file.
51843
51844         * lib/striconveha.h: Include <stdbool.h>.
51845         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
51846         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
51847         (mem_iconveha_notranslit): Renamed from mem_iconveha.
51848         (mem_iconveha): New function.
51849         (str_iconveha_notranslit): Renamed from str_iconveha.
51850         (str_iconveha): New function.
51851         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
51852         c-strcase.
51853
51854 2007-01-23  Bruno Haible  <bruno@clisp.org>
51855
51856         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
51857         encodings without forgiving before trying any encoding with handler.
51858         (str_iconveha): Try all encodings without forgiving before trying any
51859         encoding with handler.
51860
51861 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51862
51863         Import the following changes from libc.
51864
51865         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51866
51867         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
51868
51869         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51870
51871         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
51872         normal_bracket label.
51873
51874         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
51875
51876         [BZ #361]
51877         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
51878         to normal_bracket after fetching the next character.
51879
51880 2007-01-22  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
51883         argument.
51884         * lib/striconveh.c (iconv_carefully_1): New function.
51885         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
51886         argument.
51887         (str_cd_iconveh): Update.
51888         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
51889         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
51890         * tests/test-striconveh.c (MAGIC): New macro.
51891         (new_offsets): New function.
51892         (main): Test call with and without offsets.
51893
51894 2007-01-22  Bruno Haible  <bruno@clisp.org>
51895
51896         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
51897         * modules/sys_select (Makefile.am): Likewise.
51898         * modules/sys_socket (Makefile.am): Likewise.
51899         * modules/sys_time (Makefile.am): Likewise.
51900
51901 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51902
51903         * modules/gettimeofday (License): Change from GPL to LGPL, since
51904         gettimeofday is a library function.
51905
51906 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51907
51908         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
51909
51910 2007-01-21  Bruno Haible  <bruno@clisp.org>
51911
51912         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
51913
51914 2007-01-21  Bruno Haible  <bruno@clisp.org>
51915
51916         * modules/striconveha: New file.
51917         * lib/striconveha.h: New file.
51918         * lib/striconveha.c: New file.
51919         * MODULES.html.sh (Internationalization functions): Add striconveha.
51920         * lib/striconv.c (str_iconv): Optimize the case of an empty input
51921         string.
51922         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
51923
51924 2007-01-21  Bruno Haible  <bruno@clisp.org>
51925
51926         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
51927         * lib/striconveh.c (str_iconveh): Likewise.
51928
51929 2007-01-21  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/striconveh.h (mem_iconveh): New declaration.
51932         * lib/striconveh.c (mem_iconveh): New function.
51933         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
51934
51935 2007-01-21  Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
51938
51939         * lib/striconveh.h (mem_cd_iconveh): Change specification.
51940         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
51941         original result buffer.
51942         (str_cd_iconveh): Update.
51943         * tests/test-striconveh.c (main): Update.
51944
51945         * lib/striconv.h (mem_cd_iconv): Change specification.
51946         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
51947         result buffer.
51948         (str_cd_iconv): Update.
51949         * tests/test-striconv.c (main): Update.
51950
51951 2007-01-21  Bruno Haible  <bruno@clisp.org>
51952
51953         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
51954
51955 2007-01-20  Jim Meyering  <jim@meyering.net>
51956
51957         * lib/userspec.c (parse_with_separator): If a user or group string
51958         starts with "+", skip the corresponding name-to-ID look-up, since
51959         such a look-up must fail: user and group names may not include "+".
51960
51961 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51962
51963         * lib/poll.c: Include sys/time.h and time.h unconditionally,
51964         since we now assume the sys_time module.
51965         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
51966         check for sys/time.h; no longer needed.
51967         * modules/poll (Depends-on): Depend on sys_time.
51968
51969 2007-01-18  Bruno Haible  <bruno@clisp.org>
51970
51971         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
51972         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51973
51974         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
51975         gettimeofday.
51976
51977         * tests/test-gettimeofday.c: Include <time.h>.
51978         (dummy): Remove variable.
51979
51980         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
51981         gl_HEADER_SYS_TIME_H.
51982         (gl_HEADER_SYS_TIME_H): New macro.
51983
51984         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
51985         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51986         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51987         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
51988         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51989         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
51990         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
51991         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51992         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
51993         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
51994         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51995
51996         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
51997         last change; it caused a compilation error when cross-compiling to
51998         Cygwin.
51999
52000 2007-01-18  Jim Meyering  <jim@meyering.net>
52001
52002         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52003         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52004         than the race-prone "test -d sys || mkdir sys".
52005         (configure.ac): Use AC_PROG_MKDIR_P.
52006         * modules/sys_select: Likewise.
52007         * modules/sys_socket: Likewise.
52008         * modules/sys_time: Likewise.
52009
52010 2007-01-18  Eric Blake  <ebb9@byu.net>
52011
52012         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52013         replace gettimeofday.
52014         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52015         name, to avoid infinite recursion.
52016
52017 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52018
52019         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52020         module sys_time.
52021         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52022         assume timespec.h defines struct timeval.
52023         * lib/settime.c: Likewise.
52024         * lib/utimens.c: Likewise.
52025         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52026         since we now assume the gettimeofday module.
52027         * lib/tempname.c (__gen_tempname): Likewise.
52028         * lib/gettimeofday.h: Remove.
52029         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52030         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52031         Include <time.h>, for 'time()'.
52032         (localtime_buffer_addr): Also use this workaround if
52033         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52034         to simplify the uses.  All uses changed.
52035         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52036         that #undef is inside {}, and 'const' follows type name consistently.
52037         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52038         (gettimeofday): Do not use the maximum possible value for
52039         tv->tv_usec, since that might break usages other than ls.c.
52040         Instead, we'll leave ls.c alone.  This undoes today's patch
52041         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52042         we've never observed the problem but might as well keep the
52043         canary.
52044         * lib/nanosleep.c: Include timespec.h first, for interface check.
52045         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52046         now assume the sys_time module.
52047         * lib/tempname.c: Likewise.
52048         * lib/timespec.h: Likewise.
52049         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52050         needed.
52051         * lib/strftime.c: Likewise.
52052         * lib/timespec.h: Likewise.
52053         * lib/posixtm.c: Include posixtm.h first, for interface check.
52054         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52055         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52056         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52057         * lib/sys_time_.h: New file.
52058         * lib/timespec.h (struct timespec): Use long int, not long.
52059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52060         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52061         Remove obsolescent call to AC_HEADER_TIME.
52062         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52064         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52065         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52066         Likewise.
52067         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52068         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52069         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52070         into the sys_time module.  Check for gettimeofday just once.
52071         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52072         for gettimeofday signature to just check the signature.  Merely
52073         compile it, since linking doesn't test signature.  Improve test for
52074         whether gettimeofday.o is actually needed.
52075         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52076         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52077         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52078         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52079         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52080         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52081         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52082         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52083         than worrying about sys/time.h.
52084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52085         Don't bother worrying about TIME_WITH_SYS_TIME.
52086         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52087         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52088         * m4/sys_time_h.m4: New file.
52089         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52090         Don't include sys/time.h.  Return from main rather than exiting.
52091         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52092         all uses changed.
52093         * modules/gethrxtime (Depends-on): Add sys_time.
52094         * modules/gettime (Depends-on): Likewise.
52095         * modules/gettimeofday (Depends-on): Likewise.
52096         * modules/nanosleep (Depends-on): Likewise.
52097         * modules/settime (Depends-on): Likewise.
52098         * modules/tempname (Depends-on): Likewise.
52099         * modules/utimens (Depends-on): Likewise.
52100         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52101         (Include:) Change back to <sys/time.h>.
52102         (Maintainer:) Add self.
52103         * modules/sys_time: New file.
52104         * modules/tempname (Depends-on): Add gettimeofday.
52105         * tests/test-gettimeofday.c: Include <sys/time.h>
52106         rather than gettimeofday.h.
52107
52108 2007-01-17  Bruno Haible  <bruno@clisp.org>
52109
52110         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52111         the license default to GPL.
52112         (func_create_testdir): Don't complain if a module is LGPL and its
52113         tests module depends on GPLed modules.
52114
52115 2007-01-17  Bruno Haible  <bruno@clisp.org>
52116
52117         * lib/gettimeofday.c (gettimeofday): Add code for the case
52118         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52119         maximum possible value for tv->tv_usec, rather than the minimum one.
52120
52121 2005-10-08  Martin Lambers  <marlam@marlam.de>
52122 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52123 2007-01-16  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52126         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52127         gl_FUNC_GETTIMEOFDAY.
52128         (Include): Add gettimeofday.h.
52129         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52130         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52131         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52132         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52133         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52134         * lib/gettimeofday.h: New file.
52135         * lib/gettimeofday.c: Include <sys/timeb.h>.
52136         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52137         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52138         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52139         fall back on time().
52140
52141         * tests/test-gettimeofday.c: New file.
52142         * modules/gettimeofday-tests: New file.
52143
52144 2007-01-16  Eric Blake  <ebb9@byu.net>
52145
52146         * modules/fnmatch (Depends-on): Depend on wchar.
52147         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52148         * m4/fnmatch.m4: Likewise.
52149         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52150         * m4/mbchar.m4: Likewise.
52151         * modules/mbswidth (Depends-on): Depend on wchar.
52152         * lib/mbswidth.c: Assume <wchar.h>.
52153         * m4/mbswidth.m4: Likewise.
52154         * modules/quotearg (Depends-on): Depend on wchar.
52155         * lib/quotearg.c: Assume <wchar.h>.
52156         * m4/quotearg.m4: Likewise.
52157         * modules/regex (Depends-on): Depend on wchar.
52158         * lib/regex_internal.h: Assume <wchar.h>.
52159         * m4/regex.m4: Likewise.
52160         * modules/stdint (Depends-on): Depend on wchar.
52161         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52162         * m4/stdint.m4: Likewise.
52163         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52164         * modules/strftime (Depends-on): Depend on wchar.
52165         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52166         * modules/strtol (Depends-on): Depend on wchar.
52167         * lib/strtol.c: Assume <wchar.h>.
52168         * modules/wcwidth (Depends-on): Depend on wchar.
52169         * lib/wcwidth.h: Assume <wchar.h>.
52170         * m4/wcwidth.m4: Likewise.
52171
52172 2007-01-16  Bruno Haible  <bruno@clisp.org>
52173
52174         * modules/csharpexec-script: New, created from...
52175         * modules/csharpexec: ... this.
52176
52177 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52178
52179         * modules/javaexec-script: New, created from...
52180         * modules/javaexec: ... this.
52181
52182 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52183
52184         * modules/poll (Dependencies): Add sys_select.
52185
52186 2007-01-15  Jim Meyering  <jim@meyering.net>
52187
52188         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
52189         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
52190         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
52191         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
52192
52193 2007-01-15  Bruno Haible  <bruno@clisp.org>
52194
52195         * modules/striconveh: New file.
52196         * lib/striconveh.h: New file.
52197         * lib/striconveh.c: New file.
52198         * MODULES.html.sh (Internationalization functions): Add striconveh.
52199
52200         * modules/striconveh-tests: New file.
52201         * tests/test-striconveh.c: New file.
52202
52203 2007-01-15  Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
52206         not from GNU libiconv or GNU libc.
52207
52208 2007-01-15  Bruno Haible  <bruno@clisp.org>
52209
52210         * doc/gnulib-intro.texi (Copyright): Explain the different license
52211         terms for module descriptions, autoconf macros, tests, documentation.
52212
52213 2007-01-14  Bruno Haible  <bruno@clisp.org>
52214
52215         * modules/striconv-tests: New file.
52216         * tests/test-striconv.c: New file.
52217
52218 2007-01-14  Bruno Haible  <bruno@clisp.org>
52219
52220         * modules/iconv-tests: New file.
52221         * tests/test-iconv.c: New file.
52222
52223 2007-01-14  Bruno Haible  <bruno@clisp.org>
52224
52225         * gnulib-tool (func_get_license): For test modules, use the license of
52226         the main module.
52227
52228 2007-01-14  Bruno Haible  <bruno@clisp.org>
52229
52230         * modules/iconv (Include): Clarify that <iconv.h> can only be included
52231         if iconv is found to exist.
52232
52233 2007-01-14  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/c-ctype-tests: New file.
52236         * tests/test-c-ctype.c: New file.
52237
52238 2007-01-14  Bruno Haible  <bruno@clisp.org>
52239
52240         * modules/binary-io-tests: New file.
52241         * tests/test-binary-io.sh: New file.
52242         * tests/test-binary-io.c: New file.
52243
52244 2007-01-14  Bruno Haible  <bruno@clisp.org>
52245
52246         * modules/array-oset-tests: New file.
52247         * tests/test-array_oset.c: New file.
52248
52249 2007-01-14  Bruno Haible  <bruno@clisp.org>
52250
52251         * modules/array-list-tests: New file.
52252         * tests/test-array_list.c: New file.
52253
52254 2007-01-14  Bruno Haible  <bruno@clisp.org>
52255
52256         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
52257         and make.
52258         Reported by Simon Josefsson in
52259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
52260
52261 2007-01-14  Bruno Haible  <bruno@clisp.org>
52262
52263         * modules/allocsa-tests: New file.
52264         * tests/test-allocsa.c: New file.
52265
52266 2007-01-14  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/fchdir (Depends-on): Add absolute-header.
52269         * modules/unistd (Depends-on): Likewise.
52270
52271 2006-12-30  Bruno Haible  <bruno@clisp.org>
52272
52273         * modules/fchdir: New file.
52274         * modules/unistd (Files): Add lib/unistd_.h.
52275         (Makefile.am): Generate unistd.h from unistd_.h.
52276         * lib/fchdir.c: New file.
52277         * lib/dirent_.h: New file.
52278         * lib/unistd_.h: New file.
52279         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
52280         * m4/fchdir.m4: New file.
52281         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
52282         (gl_HEADER_UNISTD): Invoke it.
52283         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
52284         function.
52285         * lib/backupfile.c (opendir, closedir): Undefine.
52286         * lib/chown.c (open, close): Undefine.
52287         * lib/clean-temp.c (open, close): Undefine.
52288         * lib/copy-file.c (open, close): Undefine.
52289         * lib/execute.c (open, close): Undefine.
52290         * lib/fsusage.c (open, close): Undefine.
52291         * lib/gc-gnulib.c (open, close): Undefine.
52292         * lib/getcwd.c (opendir, closedir): Undefine.
52293         * lib/glob.c (opendir, closedir): Undefine.
52294         * lib/javacomp.c (open, close): Undefine.
52295         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
52296         * lib/openat-proc.c (open, close): Undefine.
52297         * lib/pagealign_alloc.c (open, close): Undefine.
52298         * lib/pipe.c (open, close): Undefine.
52299         * lib/progreloc.c (open, close): Undefine.
52300         * lib/savedir.c (opendir, closedir): Undefine.
52301         * lib/utime.c (open, close): Undefine.
52302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
52303
52304 2007-01-10  Bruno Haible  <bruno@clisp.org>
52305
52306         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
52307
52308 2007-01-12  Eric Blake  <ebb9@byu.net>
52309
52310         Provide a robust <wchar.h>.  Further simplifications are now
52311         possible in other modules, but not included here.
52312         * modules/wchar: New module.
52313         * m4/wchar.m4: New file.
52314         * lib/wchar_.h: Likewise.
52315         * modules/mbchar (Depends-on): Depend on wchar, as the first use
52316         of the new module.
52317         * MODULES.html.sh (Extended multibyte and wide character utilities):
52318         New section.
52319
52320 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
52323         to a reasonable default for memory allocation.
52324         (xreadlink): Don't allocate a huge buffer, to work around a buggy
52325         file system that reports garbage st_size values for symlinks.
52326         Problem reported by Liyang Hu.
52327
52328 2007-01-11  Simon Josefsson  <simon@josefsson.org>
52329
52330         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
52331         Emacs .#* auto-save files).
52332
52333 2007-01-11  Bruno Haible  <bruno@clisp.org>
52334
52335         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
52336         directory.
52337
52338 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52339
52340         Use @...@ consistently in lib/wctype_.h.
52341         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
52342         on it being set to 1 or 0.
52343         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
52344         go back to AC_SUBSTing it.
52345         * modules/wctype (Makefile.am): Undo previous change.
52346
52347 2007-01-10  Eric Blake  <ebb9@byu.net>
52348
52349         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
52350         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
52351         * modules/wctype (Makefile.am): Likewise.
52352         Reported by Chris McGuire.
52353
52354 2007-01-10  Jim Meyering  <jim@meyering.net>
52355
52356         fts.c: a small readability/maintainability improvement
52357         * lib/fts.c (fts_read): Make this code slightly more readable and
52358         maintainable by hoisting the "sp->fts_cur = p" assignments to
52359         immediately follow the statements that set P.  Derived from
52360         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
52361
52362 2007-01-10  Eric Blake  <ebb9@byu.net>
52363
52364         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
52365         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
52366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52367         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52368         Reported by Chris McGuire.
52369
52370 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52371
52372         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
52373         in sed script.
52374
52375 2007-01-09  Bruno Haible  <bruno@clisp.org>
52376
52377         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
52378         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
52379         variables.
52380         (func_module): Use them.
52381
52382 2007-01-09  Bruno Haible  <bruno@clisp.org>
52383
52384         * modules/unistr/base: New file.
52385         * lib/unistr.h: New file.
52386
52387         * modules/unistr/u8-to-u16: New file.
52388         * lib/unistr/u8-to-u16.c: New file.
52389
52390         * modules/unistr/u8-to-u32: New file.
52391         * lib/unistr/u8-to-u32.c: New file.
52392
52393         * modules/unistr/u16-to-u8: New file.
52394         * lib/unistr/u16-to-u8.c: New file.
52395
52396         * modules/unistr/u16-to-u32: New file.
52397         * lib/unistr/u16-to-u32.c: New file.
52398
52399         * modules/unistr/u32-to-u8: New file.
52400         * lib/unistr/u32-to-u8.c: New file.
52401
52402         * modules/unistr/u32-to-u16: New file.
52403         * lib/unistr/u32-to-u16.c: New file.
52404
52405         * modules/unistr/u8-check: New file.
52406         * modules/unistr/u16-check: New file.
52407         * modules/unistr/u32-check: New file.
52408         * lib/unistr/u8-check.c: New file.
52409         * lib/unistr/u16-check.c: New file.
52410         * lib/unistr/u32-check.c: New file.
52411
52412         * modules/unistr/u8-chr: New file.
52413         * modules/unistr/u16-chr: New file.
52414         * modules/unistr/u32-chr: New file.
52415         * lib/unistr/u8-chr.c: New file.
52416         * lib/unistr/u16-chr.c: New file.
52417         * lib/unistr/u32-chr.c: New file.
52418
52419         * modules/unistr/u8-cmp: New file.
52420         * modules/unistr/u16-cmp: New file.
52421         * modules/unistr/u32-cmp: New file.
52422         * lib/unistr/u8-cmp.c: New file.
52423         * lib/unistr/u16-cmp.c: New file.
52424         * lib/unistr/u32-cmp.c: New file.
52425
52426         * modules/unistr/u8-cpy: New file.
52427         * modules/unistr/u16-cpy: New file.
52428         * modules/unistr/u32-cpy: New file.
52429         * lib/unistr/u8-cpy.c: New file.
52430         * lib/unistr/u16-cpy.c: New file.
52431         * lib/unistr/u32-cpy.c: New file.
52432         * lib/unistr/u-cpy.h: New file.
52433
52434         * modules/unistr/u8-cpy-alloc: New file.
52435         * modules/unistr/u16-cpy-alloc: New file.
52436         * modules/unistr/u32-cpy-alloc: New file.
52437         * lib/unistr/u8-cpy-alloc.c: New file.
52438         * lib/unistr/u16-cpy-alloc.c: New file.
52439         * lib/unistr/u32-cpy-alloc.c: New file.
52440         * lib/unistr/u-cpy-alloc.h: New file.
52441
52442         * modules/unistr/u8-endswith: New file.
52443         * modules/unistr/u16-endswith: New file.
52444         * modules/unistr/u32-endswith: New file.
52445         * lib/unistr/u8-endswith.c: New file.
52446         * lib/unistr/u16-endswith.c: New file.
52447         * lib/unistr/u32-endswith.c: New file.
52448         * lib/unistr/u-endswith.h: New file.
52449
52450         * modules/unistr/u8-mblen: New file.
52451         * modules/unistr/u16-mblen: New file.
52452         * modules/unistr/u32-mblen: New file.
52453         * lib/unistr/u8-mblen.c: New file.
52454         * lib/unistr/u16-mblen.c: New file.
52455         * lib/unistr/u32-mblen.c: New file.
52456
52457         * modules/unistr/u8-mbtouc: New file.
52458         * modules/unistr/u16-mbtouc: New file.
52459         * modules/unistr/u32-mbtouc: New file.
52460         * lib/unistr/u8-mbtouc.c: New file.
52461         * lib/unistr/u16-mbtouc.c: New file.
52462         * lib/unistr/u32-mbtouc.c: New file.
52463
52464         * modules/unistr/u8-mbtouc-safe: New file.
52465         * modules/unistr/u16-mbtouc-safe: New file.
52466         * modules/unistr/u32-mbtouc-safe: New file.
52467         * lib/unistr/u8-mbtouc-safe.c: New file.
52468         * lib/unistr/u16-mbtouc-safe.c: New file.
52469         * lib/unistr/u32-mbtouc-safe.c: New file.
52470
52471         * modules/unistr/u8-move: New file.
52472         * modules/unistr/u16-move: New file.
52473         * modules/unistr/u32-move: New file.
52474         * lib/unistr/u8-move.c: New file.
52475         * lib/unistr/u16-move.c: New file.
52476         * lib/unistr/u32-move.c: New file.
52477         * lib/unistr/u-move.h: New file.
52478
52479         * modules/unistr/u8-next: New file.
52480         * modules/unistr/u16-next: New file.
52481         * modules/unistr/u32-next: New file.
52482         * lib/unistr/u8-next.c: New file.
52483         * lib/unistr/u16-next.c: New file.
52484         * lib/unistr/u32-next.c: New file.
52485
52486         * modules/unistr/u8-prev: New file.
52487         * modules/unistr/u16-prev: New file.
52488         * modules/unistr/u32-prev: New file.
52489         * lib/unistr/u8-prev.c: New file.
52490         * lib/unistr/u16-prev.c: New file.
52491         * lib/unistr/u32-prev.c: New file.
52492
52493         * modules/unistr/u8-set: New file.
52494         * modules/unistr/u16-set: New file.
52495         * modules/unistr/u32-set: New file.
52496         * lib/unistr/u8-set.c: New file.
52497         * lib/unistr/u16-set.c: New file.
52498         * lib/unistr/u32-set.c: New file.
52499         * lib/unistr/u-set.h: New file.
52500
52501         * modules/unistr/u8-startswith: New file.
52502         * modules/unistr/u16-startswith: New file.
52503         * modules/unistr/u32-startswith: New file.
52504         * lib/unistr/u8-startswith.c: New file.
52505         * lib/unistr/u16-startswith.c: New file.
52506         * lib/unistr/u32-startswith.c: New file.
52507         * lib/unistr/u-startswith.h: New file.
52508
52509         * modules/unistr/u8-stpcpy: New file.
52510         * modules/unistr/u16-stpcpy: New file.
52511         * modules/unistr/u32-stpcpy: New file.
52512         * lib/unistr/u8-stpcpy.c: New file.
52513         * lib/unistr/u16-stpcpy.c: New file.
52514         * lib/unistr/u32-stpcpy.c: New file.
52515         * lib/unistr/u-stpcpy.h: New file.
52516
52517         * modules/unistr/u8-stpncpy: New file.
52518         * modules/unistr/u16-stpncpy: New file.
52519         * modules/unistr/u32-stpncpy: New file.
52520         * lib/unistr/u8-stpncpy.c: New file.
52521         * lib/unistr/u16-stpncpy.c: New file.
52522         * lib/unistr/u32-stpncpy.c: New file.
52523         * lib/unistr/u-stpncpy.h: New file.
52524
52525         * modules/unistr/u8-strcat: New file.
52526         * modules/unistr/u16-strcat: New file.
52527         * modules/unistr/u32-strcat: New file.
52528         * lib/unistr/u8-strcat.c: New file.
52529         * lib/unistr/u16-strcat.c: New file.
52530         * lib/unistr/u32-strcat.c: New file.
52531         * lib/unistr/u-strcat.h: New file.
52532
52533         * modules/unistr/u8-strchr: New file.
52534         * modules/unistr/u16-strchr: New file.
52535         * modules/unistr/u32-strchr: New file.
52536         * lib/unistr/u8-strchr.c: New file.
52537         * lib/unistr/u16-strchr.c: New file.
52538         * lib/unistr/u32-strchr.c: New file.
52539
52540         * modules/unistr/u8-strcmp: New file.
52541         * modules/unistr/u16-strcmp: New file.
52542         * modules/unistr/u32-strcmp: New file.
52543         * lib/unistr/u8-strcmp.c: New file.
52544         * lib/unistr/u16-strcmp.c: New file.
52545         * lib/unistr/u32-strcmp.c: New file.
52546
52547         * modules/unistr/u8-strcpy: New file.
52548         * modules/unistr/u16-strcpy: New file.
52549         * modules/unistr/u32-strcpy: New file.
52550         * lib/unistr/u8-strcpy.c: New file.
52551         * lib/unistr/u16-strcpy.c: New file.
52552         * lib/unistr/u32-strcpy.c: New file.
52553         * lib/unistr/u-strcpy.h: New file.
52554
52555         * modules/unistr/u8-strcspn: New file.
52556         * modules/unistr/u16-strcspn: New file.
52557         * modules/unistr/u32-strcspn: New file.
52558         * lib/unistr/u8-strcspn.c: New file.
52559         * lib/unistr/u16-strcspn.c: New file.
52560         * lib/unistr/u32-strcspn.c: New file.
52561         * lib/unistr/u-strcspn.h: New file.
52562
52563         * modules/unistr/u8-strdup: New file.
52564         * modules/unistr/u16-strdup: New file.
52565         * modules/unistr/u32-strdup: New file.
52566         * lib/unistr/u8-strdup.c: New file.
52567         * lib/unistr/u16-strdup.c: New file.
52568         * lib/unistr/u32-strdup.c: New file.
52569         * lib/unistr/u-strdup.h: New file.
52570
52571         * modules/unistr/u8-strlen: New file.
52572         * modules/unistr/u16-strlen: New file.
52573         * modules/unistr/u32-strlen: New file.
52574         * lib/unistr/u8-strlen.c: New file.
52575         * lib/unistr/u16-strlen.c: New file.
52576         * lib/unistr/u32-strlen.c: New file.
52577         * lib/unistr/u-strlen.h: New file.
52578
52579         * modules/unistr/u8-strmblen: New file.
52580         * modules/unistr/u16-strmblen: New file.
52581         * modules/unistr/u32-strmblen: New file.
52582         * lib/unistr/u8-strmblen.c: New file.
52583         * lib/unistr/u16-strmblen.c: New file.
52584         * lib/unistr/u32-strmblen.c: New file.
52585
52586         * modules/unistr/u8-strmbtouc: New file.
52587         * modules/unistr/u16-strmbtouc: New file.
52588         * modules/unistr/u32-strmbtouc: New file.
52589         * lib/unistr/u8-strmbtouc.c: New file.
52590         * lib/unistr/u16-strmbtouc.c: New file.
52591         * lib/unistr/u32-strmbtouc.c: New file.
52592
52593         * modules/unistr/u8-strncat: New file.
52594         * modules/unistr/u16-strncat: New file.
52595         * modules/unistr/u32-strncat: New file.
52596         * lib/unistr/u8-strncat.c: New file.
52597         * lib/unistr/u16-strncat.c: New file.
52598         * lib/unistr/u32-strncat.c: New file.
52599         * lib/unistr/u-strncat.h: New file.
52600
52601         * modules/unistr/u8-strncmp: New file.
52602         * modules/unistr/u16-strncmp: New file.
52603         * modules/unistr/u32-strncmp: New file.
52604         * lib/unistr/u8-strncmp.c: New file.
52605         * lib/unistr/u16-strncmp.c: New file.
52606         * lib/unistr/u32-strncmp.c: New file.
52607
52608         * modules/unistr/u8-strncpy: New file.
52609         * modules/unistr/u16-strncpy: New file.
52610         * modules/unistr/u32-strncpy: New file.
52611         * lib/unistr/u8-strncpy.c: New file.
52612         * lib/unistr/u16-strncpy.c: New file.
52613         * lib/unistr/u32-strncpy.c: New file.
52614         * lib/unistr/u-strncpy.h: New file.
52615
52616         * modules/unistr/u8-strnlen: New file.
52617         * modules/unistr/u16-strnlen: New file.
52618         * modules/unistr/u32-strnlen: New file.
52619         * lib/unistr/u8-strnlen.c: New file.
52620         * lib/unistr/u16-strnlen.c: New file.
52621         * lib/unistr/u32-strnlen.c: New file.
52622         * lib/unistr/u-strnlen.h: New file.
52623
52624         * modules/unistr/u8-strpbrk: New file.
52625         * modules/unistr/u16-strpbrk: New file.
52626         * modules/unistr/u32-strpbrk: New file.
52627         * lib/unistr/u8-strpbrk.c: New file.
52628         * lib/unistr/u16-strpbrk.c: New file.
52629         * lib/unistr/u32-strpbrk.c: New file.
52630         * lib/unistr/u-strpbrk.h: New file.
52631
52632         * modules/unistr/u8-strrchr: New file.
52633         * modules/unistr/u16-strrchr: New file.
52634         * modules/unistr/u32-strrchr: New file.
52635         * lib/unistr/u8-strrchr.c: New file.
52636         * lib/unistr/u16-strrchr.c: New file.
52637         * lib/unistr/u32-strrchr.c: New file.
52638
52639         * modules/unistr/u8-strspn: New file.
52640         * modules/unistr/u16-strspn: New file.
52641         * modules/unistr/u32-strspn: New file.
52642         * lib/unistr/u8-strspn.c: New file.
52643         * lib/unistr/u16-strspn.c: New file.
52644         * lib/unistr/u32-strspn.c: New file.
52645         * lib/unistr/u-strspn.h: New file.
52646
52647         * modules/unistr/u8-strstr: New file.
52648         * modules/unistr/u16-strstr: New file.
52649         * modules/unistr/u32-strstr: New file.
52650         * lib/unistr/u8-strstr.c: New file.
52651         * lib/unistr/u16-strstr.c: New file.
52652         * lib/unistr/u32-strstr.c: New file.
52653         * lib/unistr/u-strstr.h: New file.
52654
52655         * modules/unistr/u8-strtok: New file.
52656         * modules/unistr/u16-strtok: New file.
52657         * modules/unistr/u32-strtok: New file.
52658         * lib/unistr/u8-strtok.c: New file.
52659         * lib/unistr/u16-strtok.c: New file.
52660         * lib/unistr/u32-strtok.c: New file.
52661         * lib/unistr/u-strtok.h: New file.
52662
52663         * modules/unistr/u8-uctomb: New file.
52664         * modules/unistr/u16-uctomb: New file.
52665         * modules/unistr/u32-uctomb: New file.
52666         * lib/unistr/u8-uctomb.c: New file.
52667         * lib/unistr/u16-uctomb.c: New file.
52668         * lib/unistr/u32-uctomb.c: New file.
52669
52670         * MODULES.html.sh (Unicode string functions): Add the new modules.
52671
52672 2007-01-08  Bruno Haible  <bruno@clisp.org>
52673
52674         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
52675         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
52676         subdirectories.
52677
52678 2007-01-08  Karl Berry  <karl@gnu.org>
52679
52680         * doc/error.texi: mention that main() fns must set program_name
52681         when progname is used.
52682
52683 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
52684
52685         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
52686         WCTYPE_H is empty, for the benefit of builds from non-distclean
52687         directories.  Problem reported by Eric Blake in
52688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
52689
52690 2007-01-08  Bruno Haible  <bruno@clisp.org>
52691
52692         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
52693         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
52694         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
52695         PROVIDE_CANONICALIZE_FILENAME_MODE.
52696         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
52697
52698 2007-01-08  Bruno Haible  <bruno@clisp.org>
52699
52700         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
52701         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
52702         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
52703         * lib/fts.c: Likewise.
52704         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
52705
52706 2006-12-25  Bruno Haible  <bruno@clisp.org>
52707
52708         * modules/utf8-ucs4-safe: New file.
52709         * lib/utf8-ucs4-safe.h: New file.
52710         * lib/unistr/utf8-ucs4-safe.c: New file.
52711
52712         * modules/utf16-ucs4-safe: New file.
52713         * lib/utf16-ucs4-safe.h: New file.
52714         * lib/unistr/utf16-ucs4-safe.c: New file.
52715
52716         * MODULES.html.sh (Unicode string functions): Add the new modules.
52717
52718 2007-01-08  Bruno Haible  <bruno@clisp.org>
52719
52720         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
52721         (Depends-on): Add unitypes.
52722         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52723         (u8_mbtouc_aux): Move out to separate file.
52724         (u8_mbtouc): Use ucs4_t, uint8_t types.
52725         * lib/unistr/utf8-ucs4.c: New file.
52726
52727         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
52728         (Depends-on): Add unitypes.
52729         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52730         (u16_mbtouc_aux): Move out to separate file.
52731         (u16_mbtouc): Use ucs4_t, uint16_t types.
52732         * lib/unistr/utf16-ucs4.c: New file.
52733
52734         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
52735         (Depends-on): Add unitypes.
52736         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
52737         (u8_uctomb_aux): Move out to separate file.
52738         (u8_uctomb): Use ucs4_t, uint8_t types.
52739         * lib/unistr/ucs4-utf8.c: New file.
52740
52741         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
52742         (Depends-on): Add unitypes.
52743         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
52744         (u16_uctomb_aux): Move out to separate file.
52745         (u16_uctomb): Use ucs4_t, uint16_t types.
52746         * lib/unistr/ucs4-utf16.c: New file.
52747
52748 2006-12-25  Bruno Haible  <bruno@clisp.org>
52749
52750         * modules/unitypes: New file.
52751         * lib/unitypes.h: New file.
52752         * MODULES.html.sh (func_all_modules): New section "Unicode string
52753         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
52754         this section. Add unitypes.
52755
52756 2007-01-08  Bruno Haible  <bruno@clisp.org>
52757
52758         Avoid variable names that conflict with those from libtool.
52759         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
52760         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
52761         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
52762         library_names_spec to acl_library_names_spec, hardcode_* to
52763         acl_hardcode_*.
52764         Reported by Ralf Wildenhues.
52765
52766 2007-01-08  Bruno Haible  <bruno@clisp.org>
52767
52768         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
52769         definition.
52770         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
52771         definition.
52772         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
52773         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
52774         definition.
52775         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
52776         definition.
52777         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52778         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52779         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52780         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52781         definition.
52782         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52783         definition.
52784         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52785         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52786         GC_USE_<algorithm>.
52787         * lib/gc-libgcrypt.c: Likewise.
52788         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52789         * modules/gc-arctwo (configure.ac): Likewise.
52790         * modules/gc-des (configure.ac): Likewise.
52791         * modules/gc-hmac-md5 (configure.ac): Likewise.
52792         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52793         * modules/gc-md2 (configure.ac): Likewise.
52794         * modules/gc-md4 (configure.ac): Likewise.
52795         * modules/gc-md5 (configure.ac): Likewise.
52796         * modules/gc-random (configure.ac): Likewise.
52797         * modules/gc-rijndael (configure.ac): Likewise.
52798         * modules/gc-sha1 (configure.ac): Likewise.
52799
52800 2007-01-08  Bruno Haible  <bruno@clisp.org>
52801
52802         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52803         macro definition.
52804         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52805         definition.
52806         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52807         definition.
52808         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52809         * modules/fcntl-safer (configure.ac): Likewise.
52810         * modules/fopen-safer (configure.ac): Likewise.
52811         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52812         GNULIB_FWRITEERROR macro definition.
52813
52814 2007-01-08  Bruno Haible  <bruno@clisp.org>
52815
52816         * m4/gnulib-common.m4: New file.
52817         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
52818         (func_get_filelist): Add m4/gnulib-common.m4.
52819
52820 2007-01-08  Bruno Haible  <bruno@clisp.org>
52821
52822         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
52823         command.
52824
52825 2007-01-08  Jim Meyering  <jim@meyering.net>
52826
52827         Use a more robust test for a "can't happen" condition.
52828         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
52829         narrowed the st_size value.  Presuming the "can't happen" condition
52830         is true, that narrowing could conceivably convert an invalid st_size
52831         value into a valid one.  Instead, use a change based on Matthew
52832         Woehlke's original patch.
52833
52834         Slight readability improvement: use an assert-like macro
52835         in place of literal "abort ()" uses.
52836         * lib/fts.c (fts_assert): Define.
52837         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
52838         Use this macro instead of a bare 'abort'.
52839
52840 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         Don't worry about using IRIX 5.3's wctype.h broken definitions;
52843         simply work around them.
52844         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
52845         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
52846         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
52847         declaring.
52848         Don't bother to define as macros, since the standard doesn't require it.
52849         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
52850         longer worry about IRIX 5.3.
52851         (HAVE_WCTYPE_CTMP_BUG): Remove.
52852
52853 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
52856         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
52857         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52858         Problems reported by Georg Schwarz for IRIX 5.3.
52859
52860         * gnulib-tool (autoconf_minversion): Take the maximum version number
52861         found, not the minimum.  Problem reported by James Youngman.
52862
52863 2007-01-03  Karl Berry  <karl@gnu.org>
52864
52865         * doc/error.texi: new file, explaining interaction with progname.
52866         * doc/gnulib.texi: include it.  Update copyright.
52867
52868 2007-01-03  Simon Josefsson  <simon@josefsson.org>
52869
52870         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
52871         AC_CANONICAL_HOST, to improve autobuild outputs.
52872
52873 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
52874             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52875
52876         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
52877         sockets, server sockets, and other file descriptors.  Count errors
52878         to compute the return value.  Reorder the code a bit to be easier
52879         to follow.  Don't set event bits that were not requested (except
52880         POLLERR and POLLHUP).
52881
52882 2007-01-01  Bruno Haible  <bruno@clisp.org>
52883
52884         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
52885
52886 2007-01-03  Jim Meyering  <jim@meyering.net>
52887
52888         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
52889
52890 2007-01-02  Bruno Haible  <bruno@clisp.org>
52891
52892         * modules/settime (Include): Require timespec.h.
52893         * modules/nanosleep (Include): Likewise.
52894
52895 2007-01-01  Bruno Haible  <bruno@clisp.org>
52896
52897         * gnulib-tool (func_emit_copyright_notice): Bump year.
52898         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
52899
52900 2007-01-01  Bruno Haible  <bruno@clisp.org>
52901
52902         Improve support for OpenBSD.
52903         * build-aux/config.rpath (libname_spec): Export.
52904         (library_names_spec): New variable. Export.
52905         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
52906         library_names_spec from the config.rpath output. Locate shared library
52907         through the name pattern in library_names_spec.
52908
52909 2007-01-01  Eric Blake  <ebb9@byu.net>
52910
52911         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
52912
52913 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52914
52915         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
52916         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
52917         assume the C locale, and avoid an "eval" that could cause trouble.
52918         Problem with SORT reported by Bob Proulx.
52919
52920         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
52921         Define.  Trivial patch from Henning Nielsen Lund, originally
52922         sent to bug-grep@gnu.org today.
52923
52924 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52925
52926         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
52927         struct stat.  Problem reported by Henning Nielsen Lund.
52928         * lib/acl.c: Include acl.h first, to check interface.  Don't
52929         bother to include sys/types.h and sys/stat.h again.
52930
52931 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52932
52933         Import the following change from libc; problem reported by
52934         Sven Verdoolaege.
52935
52936         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
52937
52938         [BZ #1373]
52939         * lib/argp.h: Remove __NTH for __argp_usage inline function.
52940
52941 2006-12-28  Jim Meyering  <jim@meyering.net>
52942
52943         * build-aux/announce-gen: Do not assume that the package
52944         builds any of tar.gz, tar.bz2, and .xdelta files.
52945         Suggestion from Simon Josefsson.
52946
52947 2006-12-28  Simon Josefsson  <simon@josefsson.org>
52948
52949         * modules/announce-gen: New file.
52950
52951 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * lib/mbchar.h: Just include <wctype.h>; the wctype module
52954         handles its gotchas now.
52955         * lib/mbswidth.c: Likewise.
52956         * lib/wcwidth.h: Likewise.
52957         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
52958         and iswcntrl; the wctype module does this stuff now.
52959         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52961         * modules/mbchar (Depends-on): Add wctype.
52962         * modules/mbswidth (Depends-on): Likewise.
52963         * modules/wcwidth (Depends-on): Likewise.
52964
52965 2006-12-27  Eric Blake  <ebb9@byu.net>
52966
52967         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
52968         module uses more than what <wctype.h> is required to provide.
52969
52970 2006-12-26  Eric Blake  <ebb9@byu.net>
52971
52972         * gnulib-tool (sed_extract_prog): Avoid space-tab.
52973
52974 2006-12-26  Eric Blake  <ebb9@byu.net>
52975
52976         * modules/absolute-header: New module.
52977         * modules/fcntl (Depends-on): Depend on it.
52978         * modules/inttypes (Depends-on): Likewise.
52979         * modules/stdint (Depends-on): Likewise.
52980         * modules/sys_stat (Depends-on): Likewise.
52981         * modules/wctype (Depends-on): Likewise.
52982         * MODULES.html.sh (Support for building libraries and
52983         executables): Document it.
52984
52985 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52986
52987         * gnulib-tool (SED): Remove, undoing previous change.
52988         The problem was that it broke coreutils on Solaris, because
52989         "sed --posix" leaked into a makefile.
52990         (sed): New alias, if 'alias' and GNU sed.
52991
52992 2006-12-24  Jim Meyering  <jim@meyering.net>
52993
52994         Work around an fchownat bug in glibc-2.4:
52995         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
52996         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
52997         in spite of the -P option.
52998         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
52999         New macros.
53000         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53001         * modules/openat (Files): Add lib/fchownat.c.
53002         * lib/openat.c (fchownat): Don't define here.  Move to...
53003         * lib/fchownat.c: ...this new file.
53004
53005 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53006
53007         Fix bug reported by Bruno Haible in
53008         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53009         where quotearg.c didn't compile on Mac OS X 10.2 because it
53010         lacks <wchar.h> and wint_t.
53011         * lib/wctype_.h (__wctype_wint_t): New type.
53012         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53013         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53014         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53015         Arg is now of type __wctype_wint_t, not wint_t.
53016         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53017         substitute HAVE_WINT_T.
53018         * modules/wctype (Files): Add m4/wint_t.m4.
53019         (wctype.h): Substitute HAVE_WINT_T.
53020
53021 2006-12-23  Bruno Haible  <bruno@clisp.org>
53022
53023         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53024
53025 2006-12-23  Bruno Haible  <bruno@clisp.org>
53026
53027         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53028         S_ISLNK.
53029         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53030         mingw.
53031
53032 2006-12-22  Bruno Haible  <bruno@clisp.org>
53033
53034         * lib/copy-file.c: Include acl.h.
53035         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53036         Close the file descriptors only after being done with copy_acl.
53037         * modules/copy-file (Depends-on): Add acl.
53038
53039 2006-12-22  Bruno Haible  <bruno@clisp.org>
53040
53041         * gnulib-tool (SED): New variable.
53042         Use $SED instead of sed everywhere.
53043
53044 2006-12-22  Bruno Haible  <bruno@clisp.org>
53045
53046         * modules/no-c++: New file.
53047         * m4/no-c++.m4: New file.
53048         * MODULES.html.sh (Support for building libraries and executables):
53049         Add no-c++.
53050
53051 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53052
53053         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53054         Include <limits.h>, and use its INT_MAX to rewrite the
53055         j loop so that it does not overflow 'int'.  Problem reported by
53056         Ralf Wildenhues in
53057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53058         Play it safe by shifting left by 1 rather than multiplying by 2,
53059         as GCC is less likely to optimize this away when the value
53060         is signed (when it assumes overflow leads to undefined behavior).
53061         Also, don't assume time_t uses two's complement.
53062
53063 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53064
53065         * MODULES.html.sh: New module wctype.
53066         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53067         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53068         <wctype.h>, since the new wctype module should fix this.
53069         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53070         the wctype module should arrange for it.
53071         * lib/regex_internal.h: Likewise.
53072         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53073         since the wctype module should handle this now.
53074         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53075         * modules/fnmatch (Depends-on): Add wctype.
53076         * modules/quotearg (Depends-on): Likewise.
53077         * modules/regex (Depends-on): Likewise.
53078
53079 2006-12-19  Bruno Haible  <bruno@clisp.org>
53080
53081         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53082         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53083
53084 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53085
53086         * modules/savewd (Depends-on): Fix dependency on fcntl.
53087
53088 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53089
53090         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53091         conforms to C99, rather than relying on the user's environment
53092         setting of STDINT_H.
53093
53094 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53095         and Eric Blake  <ebb9@byu.net>
53096
53097         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53098         This is more consistent with the other defines here.
53099         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53100         Port to z/OS.  Problem reported by Paul Gilmartin.
53101         Change local vars to use gl_ prefix rather than ac_.
53102         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53103         with other defines.
53104         * modules/double-slash-root: New module.
53105         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53106         (Depends-on): Add double-slash-root.
53107         * MODULES.html.sh (File system functions): Mention new module.
53108
53109 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53110
53111         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53112         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53113         This is for the benefit of gzip, which doesn't do i18n.
53114
53115 2006-12-12  Jim Meyering  <jim@meyering.net>
53116
53117         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53118         Reported by Andreas Schwab <schwab@suse.de>.
53119
53120 2006-12-12  Bruno Haible  <bruno@clisp.org>
53121
53122         Merge these changes.
53123         2006-09-05  Bruno Haible  <bruno@clisp.org>
53124         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53125         iconv_alloc succeeded.
53126         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53127         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53128         test for " && dest " at the end - dest is always != NULL there. Call
53129         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53130         with 2xNULL arguments, also to flush the state storage. Handle the
53131         IRIX iconv behaviour. Realloc the final result, to throw away unused
53132         memory.
53133
53134 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53137         and fchmodat unconditionally, since glibc 2.4 has them.
53138         Problem reported by Arkadiusz Miskiewicz.
53139
53140 2006-12-10  Bruno Haible  <bruno@clisp.org>
53141
53142         * gnulib-tool (func_import): Show the include files only for those
53143         modules that are copied and specified.
53144         Reported by Karl Berry.
53145
53146 2006-12-08  Jim Meyering  <jim@meyering.net>
53147
53148         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53149         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53150
53151         * build-aux/announce-gen: Add two new options, both optional:
53152         --bootstrap-tools=TOOL_LIST
53153               a comma-separated list of tools, e.g.,
53154               autoconf,automake,bison,gnulib
53155         --gnulib-snapshot-date=DATE
53156               if gnulib is in the bootstrap tool list,
53157               then report this as the snapshot date.
53158               If not specified, use the current date/time.
53159               If you specify a date here, be sure it's UTC.
53160
53161 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53162
53163         * tests/test-argp-2.sh: Fix test to match actual output.
53164         (func_compare): Fix sed script to be portable.
53165
53166 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53167
53168         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53169         workaround for this case.  It is not autoconfigured now; offhand
53170         it's hard to see how to autoconfigure it.
53171
53172 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53173
53174         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53175         a directory that is about to be chowned.  Such a directory's
53176         initial file permissions should permit the owner only and this
53177         should not be changed until after the chown, since the group and
53178         other bits would be incorrect if they granted permission before
53179         the chown.
53180
53181         Fix porting problem for iswctype reported by Georg Schwarz in:
53182         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
53183         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
53184         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
53185         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
53186         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53187
53188 2006-12-03  Jim Meyering  <jim@meyering.net>
53189
53190         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
53191         p->fts_statp may not yet be defined.
53192         (fts_read): Instead, set it in the caller, once p->fts_statp is
53193         sure to be defined, and corresponds to a top-level directory.
53194         This bug made du -x fail.  Here's the coreutils test case:
53195         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
53196         Reported by Mike Frysinger.
53197
53198 2006-12-01  Jim Meyering  <jim@meyering.net>
53199
53200         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
53201         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
53202         Reported by Simon Josefsson.
53203
53204 2006-11-30  Jim Meyering  <jim@meyering.net>
53205
53206         * m4/warning.m4: Use the all-permissive copyright notice
53207         recommended by RMS (rather than LGPL).
53208         * m4/vararrays.m4: Likewise.
53209         * m4/flexmember.m4: Likewise.
53210
53211 2006-11-29  Bruno Haible  <bruno@clisp.org>
53212
53213         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53214         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
53215         using +=.
53216         Reported by Simon Josefsson <simon@josefsson.org>.
53217
53218 2006-11-28  James Youngman <jay@gnu.org>
53219
53220         * README: Advise users that they might find the bug-gnulib@gnu.org
53221         and autotools-announce@gnu.org mailing lists useful.
53222
53223 2006-11-28  Bruno Haible  <bruno@clisp.org>
53224
53225         * m4/ptrdiff_max.m4: Remove file.
53226
53227 2006-11-21  Bruno Haible  <bruno@clisp.org>
53228
53229         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
53230         _AC_COMPUTE_INT.
53231         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53232         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
53233         _AC_COMPUTE_INT.
53234         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53235         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
53236         _AC_COMPUTE_INT.
53237         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53238
53239 2006-11-28  Jim Meyering  <jim@meyering.net>
53240
53241         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
53242         warning from "gcc -Wshadow" about shadowing the builtin.
53243
53244 2006-11-27  Bruno Haible  <bruno@clisp.org>
53245
53246         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
53247         _AC_COMPUTE_INT.
53248         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53249
53250 2006-11-27  Bruno Haible  <bruno@clisp.org>
53251             Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
53254
53255 2006-11-26  Bruno Haible  <bruno@clisp.org>
53256
53257         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53258         noinst_LTLIBRARIES.
53259
53260 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53261             Bruno Haible  <bruno@clisp.org>
53262
53263         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
53264         if compiling with "gcc -ansi".
53265
53266 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         Fix some incompatibilities with gcc -ansi -pedantic.
53269         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
53270         if compiling pedantically with GCC, unless it's C99 or later.
53271         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
53272         it mishandles gcc -ansi -pedantic as well.
53273         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
53274         if gcc -pedantic.
53275         * lib/regexec.c (check_node_accept_bytes): Don't use auto
53276         initializers for struct if -pedantic, unless it's C99 or later.
53277
53278 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
53279
53280         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
53281         Don't close an fd more than once. Identical atimes indicate
53282         success, not failure.
53283
53284 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
53285
53286         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
53287
53288 2006-11-23  Jim Meyering  <jim@meyering.net>
53289
53290         * build-aux/announce-gen: New file.  From coreutils.
53291
53292 2006-11-22  Jim Meyering  <jim@meyering.net>
53293
53294         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
53295         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
53296         (fts_read): Use a temporary to narrow the overused st_size member
53297         before using it in a switch statement.  Reported by Matthew Woehlke.
53298
53299         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
53300         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53301
53302 2006-11-20  Bruno Haible  <bruno@clisp.org>
53303
53304         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
53305         changequote instead of pairs of brackets.
53306         Reported by Andreas Schwab <schwab@suse.de>.
53307
53308 2006-11-21  Jim Meyering  <jim@meyering.net>
53309
53310         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
53311         so as to remain compatible with older compilers.
53312         Patch from Michael Deutschmann.
53313
53314 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53315
53316         * MODULES.html.sh (File system functions): Add openat.
53317
53318         * lib/openat.h (rpl_fstatat): New macro, if
53319         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
53320         (fstatat): Define to rpl_fstatat under the same conditions,
53321         unless COMPILING_FSTATAT.
53322         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
53323         seems to have the bug.
53324         * lib/fstatat.c: New file.
53325         * modules/openat (Files): Add it.
53326
53327 2006-11-20  Bruno Haible  <bruno@clisp.org>
53328
53329         * Makefile: New file.
53330
53331 2006-11-20  Jim Meyering  <jim@meyering.net>
53332
53333         The beginnings of syntax-related checks for gnulib.
53334         * lib/Makefile: New file.
53335         * lib/t-idcache: New script.  Ensure that the two halves of
53336         idcache.c stay in sync.
53337
53338         * lib/idcache.c: Adjust comments in user- and group- portions to
53339         be more accurate, and to be consistent with one another.
53340
53341 2006-11-20  Jim Meyering  <jim@meyering.net>
53342
53343         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
53344         continue using the flexible array member (thus, this module performs
53345         half as many malloc calls), with the addition that...
53346         (getgroup, getuser): Consistently record a non-match via an empty
53347         "name" string, and map an empty string match to a NULL return value.
53348         * modules/idcache (Depends-on): Re-add flexmember.
53349
53350         * lib/idcache.c (getuser): Remove all uses of the register keyword.
53351         (getuidbyname, getgroup, getgidbyname): Likewise.
53352
53353         Use cleaner syntax: NULL rather than 0.
53354         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
53355
53356 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53357
53358         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
53359         It mishandled the case where the group was missing.
53360         Problem reported by Greg Schafer.
53361         * modules/idcache: Likewise.
53362
53363 2006-11-18  Jim Meyering  <jim@meyering.net>
53364
53365         * check-module (%exempt_header): Add exception for some
53366         conditionally-included headers.
53367
53368         * modules/i-ring (Depends-on): Add verify.
53369         (License): Change to LGPL.
53370
53371 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53372
53373         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
53374         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
53375         and inttostr.h.  Use snprintf rather than uinttostr, so that
53376         LGPLed code doesn't depend on GPLed.
53377
53378 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53379
53380         * modules/inline (License): Change from GPL to LGPL.
53381
53382 2006-11-17  Jim Meyering  <jim@meyering.net>
53383
53384         * modules/d-type (License): Switch to LGPL.
53385
53386 2006-11-15  Bruno Haible  <bruno@clisp.org>
53387
53388         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
53389
53390 2006-11-15  Eric Blake  <ebb9@byu.net>
53391
53392         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
53393         the module dependency.
53394
53395 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53396             Bruno Haible  <bruno@clisp.org>
53397
53398         * gnulib-tool (func_create_testdir): Add license consistency check.
53399
53400 2006-11-15  Eric Blake  <ebb9@byu.net>
53401
53402         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
53403         random "(cached)" in configure output.
53404
53405 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53406
53407         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
53408         test for conforming inttypes.h is both announced and cached.
53409
53410         * MODULES.html.sh (seen_modules, seen_files): New variables.
53411         (func_module): Rewrite to use a few less gnulib-tool and sed
53412         invocations.  Avoid a couple of quadratic algorithms for ...
53413         (missed_modules, missed_files): ... these, with ...
53414         (func_append, func_tmpdir): ... these new functions, from
53415         gnulib-tool.  Analogously, install traps for cleanup.
53416
53417         * tests/test-gc.c (main): Remove unused variables.
53418         * tests/test-read-file.c: Include stdlib.h, for 'free'.
53419
53420 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
53421
53422         * modules/inttostr (License): Change to LGPL.
53423
53424 2006-11-14  Eric Blake  <ebb9@byu.net>
53425
53426         * modules/tempname (License): Change to LGPL.
53427
53428 2006-11-14  Eric Blake  <ebb9@byu.net>
53429
53430         * doc/functions.texi (Function Portability): *printf functions on
53431         Cygwin now understand all POSIX size specifiers.
53432
53433 2006-11-14  Bruno Haible  <bruno@clisp.org>
53434
53435         * modules/c-ctype (License): Change to LGPL.
53436
53437 2006-11-12  Bruno Haible  <bruno@clisp.org>
53438
53439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53440         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53441         for GNOME libraries, for which the include files are installed in
53442         subdirectories of $prefix/include.
53443
53444 2006-11-12  Bruno Haible  <bruno@clisp.org>
53445
53446         * m4/lib-link.m4: Require at least autoconf-2.54.
53447         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
53448         name to underscores for the --with option.
53449
53450 2006-11-13  Bruno Haible  <bruno@clisp.org>
53451
53452         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
53453         the tests directory.
53454         Reported by Ralf Wildenhues.
53455
53456 2006-11-13  Bruno Haible  <bruno@clisp.org>
53457
53458         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
53459         (func_emit_initmacro_end): Undo the override here.
53460         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
53461         Works around the famous automake error in coreutils.
53462
53463 2006-11-13  Eric Blake  <ebb9@byu.net>
53464
53465         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
53466         element, not its node.
53467
53468 2006-11-12  Bruno Haible  <bruno@clisp.org>
53469
53470         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
53471         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
53472
53473 2006-11-12  Bruno Haible  <bruno@clisp.org>
53474
53475         * gnulib-tool: New option --local-symlink.
53476         (func_usage): Document it.
53477         (lsymbolic): New variable.
53478         (func_import, func_create_testdir): If --symlink was not specified,
53479         test whether --local-symlink was specified and the file comes from
53480         the local_gnulib_dir.
53481
53482 2006-11-12  Bruno Haible  <bruno@clisp.org>
53483
53484         * gnulib-tool (func_ln): New function.
53485         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
53486
53487 2006-11-12  Bruno Haible  <bruno@clisp.org>
53488
53489         Finish support for source files in subdirectories.
53490         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
53491         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
53492         AUTOMAKE_OPTIONS.
53493         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
53494
53495 2006-11-12  Bruno Haible  <bruno@clisp.org>
53496
53497         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53498         EXTRA_lib_SOURCES augmentation.
53499         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
53500
53501 2006-11-12  Jim Meyering  <jim@meyering.net>
53502
53503         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
53504         file descriptors.  This also averts a failure on systems with
53505         native openat support when a traversed directory lacks "x" access.
53506         * lib/fts_.h: Include "i-ring.h"
53507         (struct FTS) [fts_fd_ring]: New member.
53508         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
53509         (FCHDIR): Add parentheses.
53510         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
53511         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
53512         When descending, rather than simply closing the previous
53513         fts_cwd_fd value, push that file descriptor onto the ring.
53514         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
53515         (fts_open): Initialize the new fd_ring member.
53516         (fts_close): Clear the ring.
53517         (fts_safe_changedir): When possible, use our new fd_ring to skip
53518         the diropen and fstat and dev/ino comparison that would normally
53519         accompany a virtual `chdir ("..")'.
53520
53521         * modules/fts (Depends-on): Add i-ring.
53522         * modules/i-ring: New module.
53523         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
53524         * m4/i-ring.m4: New file.
53525
53526 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53527
53528         * gnulib-tool (func_create_testdir): Fix replacement of
53529         `build-aux' in configure.ac.  Run autotools in gltests
53530         subdirectory.
53531         (func_create_testdir, func_create_megatestdir, test): There is
53532         no need for '--force' in most autotool invocations in a new
53533         tree.  Actually fail the whole test if any of the tools, or the
53534         configure or make stages fail.
53535
53536         Sync from Automake.
53537         * build-aux/gnupload: Revert last change.  Add pointer to upload
53538         instructions of the GNU Maintenance Instructions.
53539         Suggestion by Karl Berry.
53540
53541 2006-11-10  Jim Meyering  <jim@meyering.net>
53542
53543         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
53544
53545 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53546
53547         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
53548         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
53549         (bind_textdomain_codeset) [! ENABLE_NLS]:
53550         Evaluate all the arguments.  That way, callers get compatible behavior
53551         if the arguments have side effects.  Also, it avoids some GCC
53552         diagnostics in some cases; Joel E. Denny reported problems when Bison
53553         was configured with --enable-gcc-warnigs.
53554
53555 2006-11-10  Jim Meyering  <jim@meyering.net>
53556
53557         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
53558         relevant options in CFLAGS (like -O, -fno-inline) are taken into
53559         account.
53560
53561 2006-11-10  Jim Meyering  <jim@meyering.net>
53562
53563         * modules/inline: New file/module.
53564         * modules/xalloc (Files): Remove m4/inline.m4.
53565         (Depends-on): Add inline, instead.
53566         * modules/oset: Likewise.
53567         * modules/list: Likewise.
53568
53569 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53570
53571         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
53572         Problem reported by Matthew Woehlke.
53573
53574 2006-11-09  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/tempname.c (gen_tempname): Remove variant that invokes
53577         __gen_tempname.
53578         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
53579         __gen_tempname.
53580
53581 2006-11-08  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
53584         to 'yes' instead of 'cross-compiling'.
53585
53586 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
53587
53588         * lib/quotearg.h (quotearg_free): New decl.
53589         * lib/quotearg.c (quotearg_free): New function.
53590         (slot0, nslots, slotvec0, slotvec):
53591         Now file-scope so that quotearg_free can get at them.
53592
53593 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53594
53595         Sync from Automake.
53596         * build-aux/gnupload: Add missing 'gnu' to example URL.
53597         Report by Karl Berry.
53598
53599 2006-11-08  Bruno Haible  <bruno@clisp.org>
53600
53601         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
53602         Suggested by Paul Eggert.
53603
53604 2006-11-08  Jim Meyering  <jim@meyering.net>
53605
53606         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
53607         It's already included if !_LIBC.
53608         (fts_safe_changedir): Add a comment.
53609
53610 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53611
53612         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
53613         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
53614         Matthew Woehlke.
53615
53616         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
53617         definitions up, to avoid colliding with change below.
53618         (static_inline) [HAVE_INLINE]: New macro.
53619         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
53620         Provide extern decls when !HAVE_INLINE.  Do not define unless
53621         static_inline is defined, either by us or by xmalloc.c.  Use
53622         static_inline rather than static inline.
53623         (XCALLOC): Optimize sizeof(T) = 1 case.
53624         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
53625
53626 2006-11-07  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
53629         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
53630         AC_C_INLINE.
53631         * modules/xalloc (Files): Add m4/inline.m4.
53632
53633 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53634
53635         * README: Fix typo.
53636         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
53637         (Miscellanous Notes): ...from this.
53638
53639 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53640
53641         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53642         Mention that offsetof should be used instead of sizeof.
53643         From Bruno Haible.
53644
53645 2006-11-07  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53648
53649 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53652         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53653         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53654         (gl_tree_add_before, gl_tree_add_after):
53655         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53656         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53657         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53658         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53659         (gl_linked_add_after, gl_linked_add_at): Likewise.
53660         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53661         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53662         (gl_tree_add_before, gl_tree_add_after): Likewise.
53663         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53664         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53665         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53666
53667 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53668
53669         * lib/gl_oset.h: Use C comment style, not C++ comment style.
53670
53671 2006-11-06  Bruno Haible  <bruno@clisp.org>
53672
53673         * m4/inline.m4: New file.
53674         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
53675         * modules/list (Files): Add m4/inline.m4.
53676         * modules/oset (Files): Likewise.
53677
53678 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * lib/idcache.c: Include <stddef.h>, for offsetof.
53681         (struct userid.name): Change from char * to a flexible array member.
53682         All uses changed.
53683         * modules/idcache (Depends-on): Add flexmember.
53684
53685         * MODULES.html.sh (Core language properties): New module flexmember.
53686         * modules/flexmember, m4/flexmember.m4: New files.
53687
53688         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
53689         inline functions that are identical with the old xnmalloc_inline,
53690         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
53691         that we can avoid some unnecessary integer multiplications and
53692         divisions in the common case where the element size is known at
53693         compile time.
53694         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
53695         needed.
53696         (xnboundedmalloc): Remove.
53697         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
53698         arguments, for consistency with rest of this header.
53699         (xcharalloc): Rewrite using XNMALLOC.
53700         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
53701         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
53702         versions have been moved to lib/xalloc.h and renamed to be the
53703         non-*_inline versions.
53704         (xmalloc, xrealloc): Implement without reference to the xnmalloc
53705         and xnrealloc functions, since those functions are now inline and
53706         now call us.
53707         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
53708         renaming described above.
53709         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
53710         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
53711         captures the dependency in AC_C_INLINE.
53712
53713         New module canonicalize-lgpl, proposed by Charles Wilson in
53714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
53715         with a few small changes afterwards.
53716         * MODULES.html.sh (File system functions): New module
53717         canonicalize-lgpl.
53718         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
53719         and canonicalize_file_name.
53720         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
53721         * modules/canonicalize-lgpl: New files.
53722
53723 2006-11-05  Bruno Haible  <bruno@clisp.org>
53724
53725         * gnulib-tool (func_import, func_create_testdir): Create directories
53726         also for files in subdirectories of lib/.
53727
53728 2006-11-05  Bruno Haible  <bruno@clisp.org>
53729
53730         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
53731         ANSI C compliant.
53732
53733 2006-11-03  Bruno Haible  <bruno@clisp.org>
53734
53735         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53736         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
53737         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
53738         (xnboundedmalloc): New inline function.
53739         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
53740         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
53741         xmalloc.
53742         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
53743         xmalloc.
53744         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
53745         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
53746         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
53747         xmalloc.
53748         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53749         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
53750         xmalloc.
53751         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
53752         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53753         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
53754         xmalloc.
53755         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53756         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
53757         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53758         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
53759         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
53760         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
53761         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
53762
53763 2006-11-03  Bruno Haible  <bruno@clisp.org>
53764
53765         * lib/c-ctype.h [C++]: Define functions without name mangling.
53766         * lib/fwriteerror.h [C++]: Likewise.
53767         * lib/gcd.h [C++]: Likewise.
53768         * lib/linebreak.h [C++]: Likewise.
53769
53770 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53771
53772         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
53773         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
53774         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
53775         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53776         Check for functions and headers just once.
53777         Check for declaration of canonicalize_file_name.
53778         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53779
53780 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53781
53782         * gnulib-tool (func_import): Fix typo in actioncmd.
53783
53784 2006-11-02  Bruno Haible  <bruno@clisp.org>
53785
53786         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53787         newline sequence in the Makefile.am snippet as a space, like "make"
53788         does.
53789         Reported by Roger Persson <perrog@gmail.com>.
53790
53791 2006-11-01  Bruno Haible  <bruno@clisp.org>
53792
53793         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53794         already declared in <string.h>.
53795         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53796
53797 2006-11-01  Bruno Haible  <bruno@clisp.org>
53798
53799         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53800         * lib/strcase.h: Include <string.h>.
53801         (strcasecmp): Define to rpl_strcasecmp here.
53802
53803 2006-11-01  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53806
53807 2006-11-01  Eric Blake  <ebb9@byu.net>
53808
53809         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53810
53811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53812
53813 2006-10-29  Bruno Haible  <bruno@clisp.org>
53814
53815         Make it compile in C++ mode.
53816         * lib/full-write.c (full_rw): Add a cast.
53817
53818 2006-11-01  Bruno Haible  <bruno@clisp.org>
53819
53820         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
53821         be POSIX compliant.
53822         Reported by Roger Persson <perrog@gmail.com>.
53823
53824 2006-11-01  Eric Blake  <ebb9@byu.net>
53825
53826         * lib/getopt_.h: Fix comments.
53827
53828 2006-10-31  Eric Blake  <ebb9@byu.net>
53829
53830         * modules/tmpdir (Depends-on): Add sys_stat.
53831         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
53832         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
53833         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
53834         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
53835         tempname.
53836
53837 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         Avoid some C++ diagnostics reported by Bruno Haible.
53840         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
53841         xmalloc.
53842         (quotearg_alloc): Use xcharalloc rather than xmalloc.
53843         (struct slotvec): Move to top level.
53844         (quotearg_n_options): Rewrite to avoid xmalloc.
53845         * lib/xalloc.h (xcharalloc): New function.
53846         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
53847         [defined __cplusplus]: Add function template that provides result
53848         type propagation.  This part of the change is from Bruno Haible.
53849
53850 2006-10-29  Bruno Haible  <bruno@clisp.org>
53851
53852         Make it compile in C++ mode.
53853         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
53854         * lib/strnlen1.c (strnlen1): Cast memchr result.
53855         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
53856         * lib/clean-temp.c (string_equals, string_hash): Add casts.
53857         (create_temp_dir): Rename local variable 'template'.
53858         (compile_csharp_using_sscli): Add cast.
53859         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
53860         * lib/findprog.c (find_in_path): Likewise.
53861         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
53862         * lib/wait-process.c (register_slave_subprocess): Likewise.
53863
53864 2006-10-22  Bruno Haible  <bruno@clisp.org>
53865
53866         * modules/tsearch: New file.
53867         * lib/tsearch.h: New file.
53868         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
53869         * m4/tsearch.m4: New file.
53870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
53871
53872 2006-10-29  Eric Blake  <ebb9@byu.net>
53873
53874         * lib/arcfour.c: Assume config.h.
53875         * lib/arctwo.c: Likewise.
53876         * lib/base64.c: Likewise.
53877         * lib/check-version.c: Likewise.
53878         * lib/crc.c: Likewise.
53879         * lib/des.c: Likewise.
53880         * lib/gc-gnulib.c: Likewise.
53881         * lib/gc-libgcrypt.c: Likewise.
53882         * lib/gc-pbkdf2-sha1.c: Likewise.
53883         * lib/getaddrinfo.c: Likewise.
53884         * lib/getdelim.c: Likewise.
53885         * lib/getline.c: Likewise.
53886         * lib/hmac-md5.c: Likewise.
53887         * lib/hmac-sha1.c: Likewise.
53888         * lib/iconvme.c: Likewise.
53889         * lib/md2.c: Likewise.
53890         * lib/md4.c: Likewise.
53891         * lib/memxor.c: Likewise.
53892         * lib/read-file.c: Likewise.
53893         * lib/readline.c: Likewise.
53894         * lib/rijndael-alg-fst.c: Likewise.
53895         * lib/rijndael-api-fst.c: Likewise.
53896         * lib/xgetdomainname.c: Likewise.
53897
53898 2006-10-28  Eric Blake  <ebb9@byu.net>
53899
53900         * lib/xstrndup.c: Assume config.h.
53901
53902 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
53905         stat-macros.h is now for our own macros, whereas stat_h is for
53906         macros in the <sys/stat.h> name space.
53907         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
53908         (STAT_MACROS_H): Remove.
53909         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
53910         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
53911         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
53912         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
53913         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
53914         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
53915         Move these macros to ...
53916         * lib/stat_.h: here.  Don't include stat-macros.h.
53917         * lib/canonicalize.c: Don't include stat-macros.h.
53918         * lib/chown.c: Likewise.
53919         * lib/euidaccess.c: Likewise.
53920         * lib/file-type.c: Likewise.
53921         * lib/filemode.c: Likewise.
53922         * lib/glob.c: Likewise.
53923         * lib/isapipe.c: Likewise.
53924         * lib/lchown.c: Likewise.
53925         * lib/lstat.c: Likewise.
53926         * lib/mkdir-p.c: Likewise.
53927         * lib/rmdir.c: Likewise.
53928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
53929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
53930         unless mkdir isn't declared, to speed up 'configure'.
53931         Always create sys/stat.h, since it's unlikely any real sys/stat.h
53932         would define all the S_* symbols.
53933         * modules/canonicalize (Depends-on):
53934         Depend on sys_stat, not stat-macros.
53935         * modules/chown: Likewise.
53936         * modules/euidaccess: Likewise.
53937         * modules/filemode: Likewise.
53938         * modules/file-type: Likewise.
53939         * modules/glob: Likewise.
53940         * modules/isapipe: Likewise.
53941         * modules/lchown: Likewise.
53942         * modules/lstat: Likewise.
53943         * modules/mkancesdirs: Likewise.
53944         * modules/rmdir: Likewise.
53945         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
53946         * modules/modechange: Likewise.
53947         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
53948         (configure.ac): Remove gl_STAT_MACROS.
53949         * modules/sys_stat (Depends-on): Remove stat-macros.
53950
53951 2006-10-27  Bruno Haible  <bruno@clisp.org>
53952
53953         * m4/signed.m4: Remove file.
53954         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
53955         invocation.
53956         * modules/vasnprintf (Files): Remove m4/signed.m4.
53957
53958 2006-10-27  Bruno Haible  <bruno@clisp.org>
53959
53960         Update to GNU gettext 0.16.
53961         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
53962         m4/inttypes-h.m4, m4/signed.m4.
53963         * m4/gettext.m4: Update to GNU gettext 0.16.
53964         * m4/intl.m4: New file, from GNU gettext.
53965         * m4/intldir.m4: New file, from GNU gettext.
53966         * config/srclist.txt: Update
53967
53968 2006-10-27  Eric Blake  <ebb9@byu.net>
53969
53970         * MODULES.html.sh: Document tempname.
53971         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
53972         dependencies.
53973         (Files): Move lib/tempname.c...
53974         * modules/tempname: ...to this new module.
53975         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
53976         (gl_PREREQ_TEMPNAME): Move...
53977         * m4/tempname.m4: ...to this new file.
53978         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
53979         * modules/sys_stat (Depends-on): Add stat-macros.
53980         * lib/stat_.h (includes): Pick up stat macros.
53981         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
53982         if stat macros are broken.
53983         * lib/tempname.c (includes): No need to include "stat-macros.h".
53984         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
53985         (direxists, __path_search) [!_LIBC]: Don't compile these in
53986         gnulib; the tmpdir module covers that.
53987         * lib/tempname.h: New file.
53988
53989 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53990
53991         * COPYING: Explain how gnulib-tool converts licence headers.
53992         Almost all wording by Eric Blake.
53993
53994 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * lib/mbchar.h (is_basic_table): Make read-only.
53997         * lib/mbchar.c (is_basic_table): Likewise.
53998         Reported by John Darrington.
53999
54000 2006-10-25  Bruno Haible  <bruno@clisp.org>
54001
54002         * lib/progname.h (set_program_name): Undefine before defining.
54003
54004 2006-10-25  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54007         false for non-gcc C++ compilers.
54008         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54009
54010 2006-10-24  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54013         iconv implementations like Irix iconv.
54014
54015 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54016
54017         * modules/vararrays: New file.
54018         * m4/vararrays.m4: New file, taken from diffutils.
54019         * MODULES.html.sh: New module vararrays.
54020
54021 2006-10-24  Karl Berry  <karl@gnu.org>
54022
54023         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54024         Don't call GNU Unix.
54025
54026 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54027
54028         * users.txt: Add Libtool.
54029
54030         Sync from Libtool:
54031
54032         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54033
54034         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54035         to gnulib's policy of including config.h unconditionally.
54036
54037 2006-10-24  Bruno Haible  <bruno@clisp.org>
54038
54039         * modules/wcwidth (Files): Add m4/wint_t.m4.
54040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54041         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54042
54043 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54046         to pacify GCC with some -W flags enabled.  Problem reported by
54047         Bruno Haible.
54048
54049 2006-10-24  Jim Meyering  <jim@meyering.net>
54050
54051         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54052         Reported by Karl Berry.
54053
54054 2006-10-23  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54057
54058 2006-10-24  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/gl_list.h: Use C comment style, not C++ comment style.
54061
54062 2006-10-23  Eric Blake  <ebb9@byu.net>
54063
54064         * lib/getaddrinfo.c (includes): Add missing include.
54065
54066 2006-10-23  Bruno Haible  <bruno@clisp.org>
54067             Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         Ability to rename obstack_free.
54070         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54071         obstack_free.
54072         (obstack_free): Invoke the __obstack_free macro.
54073         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54074
54075 2006-10-23  Bruno Haible  <bruno@clisp.org>
54076             Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54079         __argc, __argv from the declaration. (They are defined as macros on
54080         mingw.)
54081
54082 2006-10-22  Bruno Haible  <bruno@clisp.org>
54083
54084         * doc/gnulib-intro.texi: New file.
54085         * doc/gnulib.texi: Include it.
54086
54087 2006-10-21  Bruno Haible  <bruno@clisp.org>
54088
54089         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54090         "Introduction", "Miscellanous Notes", "Particular Modules".
54091
54092 2006-10-21  Bruno Haible  <bruno@clisp.org>
54093
54094         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54095         Change mostlyclean-local rule to avoid sh syntax error from bash
54096         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54097
54098 2006-10-23  Jim Meyering  <jim@meyering.net>
54099
54100         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54101         in place of snprintf.
54102
54103         * modules/inttostr (Files): Add lib/uinttostr.c.
54104         * lib/uinttostr.c (inttostr): New file/function.
54105         * lib/inttostr.h (uinttostr): Declare.
54106         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54107         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54108         Add uinttostr.
54109         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54110
54111 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * lib/canonicalize.c (ELOOP): Define if not already defined.
54114         Problem reported by Bruno Haible in
54115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54116
54117 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54118
54119         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54120         Problem reported by Perry Smith and Ville Laurikari.
54121
54122         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54123         uses.
54124
54125 2006-10-19  Bruno Haible  <bruno@clisp.org>
54126
54127         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54128         for mingw.
54129
54130 2006-10-19  Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54133         Needed for mingw.
54134
54135 2006-10-19  Bruno Haible  <bruno@clisp.org>
54136
54137         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54138
54139 2006-10-19  Bruno Haible  <bruno@clisp.org>
54140
54141         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54142         it.
54143
54144 2006-10-19  Bruno Haible  <bruno@clisp.org>
54145
54146         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54147         invocation.
54148
54149 2006-10-19  Bruno Haible  <bruno@clisp.org>
54150
54151         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54152         mountlist by default.
54153
54154 2006-10-16  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/c-strstr.c: Include c-strstr.h.
54157
54158 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54159
54160         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54161         in a slash.
54162
54163 2006-10-18  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/lock.h [C++]: Wrap definitions in extern "C".
54166
54167 2006-10-18  Bruno Haible  <bruno@clisp.org>
54168
54169         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54170         gl_LIBOBJS list.
54171
54172 2006-10-18  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54175
54176 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
54177
54178         * lib/xstrtol.h: Include gettext.h.
54179         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
54180         Problem reported by Eric Blake.
54181         * modules/xstrtol (Depends-on): Add gettext-h.
54182
54183 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
54184
54185         * lib/strftime.c (advance): New macro.
54186         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
54187         incomplete type, so you can't add 0 to it.  Problem and patch
54188         reported by Eelco Dolstra for dietlibc.
54189
54190 2006-10-18  Jim Meyering  <jim@meyering.net>
54191
54192         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
54193         type for a local, and rename it: s/up/user_proc/.
54194
54195 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54196
54197         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
54198         READ_UTMP_USER_PROCESS.
54199         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
54200
54201 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54202
54203         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
54204         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
54205
54206 2006-10-17  Eric Blake  <ebb9@byu.net>
54207
54208         * lib/sigprocmask.c (sigprocmask): Fix typo.
54209
54210         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
54211
54212         * modules/clean-temp (Makefile.am): Don't add to make output...
54213         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
54214         config.h.
54215
54216 2006-10-17  Bruno Haible  <bruno@clisp.org>
54217
54218         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
54219         differently if DEFAULT_TEXT_DOMAIN is set.
54220
54221 2006-10-16  Bruno Haible  <bruno@clisp.org>
54222
54223         * lib/clean-temp.c: Include fwriteerror.h.
54224
54225 2006-10-16  Bruno Haible  <bruno@clisp.org>
54226
54227         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
54228
54229 2006-10-16  Bruno Haible  <bruno@clisp.org>
54230
54231         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
54232         * lib/sigprocmask.h: Include <sys/types.h>.
54233         (sigset_t): Use the system's definition if present.
54234
54235 2006-10-17  Eric Blake  <ebb9@byu.net>
54236
54237         * lib/xvasprintf.c (includes): Assume config.h.
54238         * lib/xasprintf.c (includes): Likewise.
54239
54240 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54241
54242         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
54243         at least as wide as intmax_t.
54244
54245 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
54246
54247         (Imported from Automake.)
54248         * build-aux/gnupload: Update to version 1.1 of directive file.
54249
54250 2006-10-16  Eric Blake  <ebb9@byu.net>
54251
54252         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
54253         match Automake 1.10a.
54254
54255 2006-10-14  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/sigprocmask: New file.
54258         * lib/sigprocmask.h: New file.
54259         * lib/sigprocmask.c: New file.
54260         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
54261         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
54262         request sigprocmask.o.
54263         (gl_PREREQ_SIGPROCMASK): New macro.
54264         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
54265         (Depends-on): Add sigprocmask.
54266         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
54267         gt_SIGNALBLOCKING. Test for 'raise' only once.
54268         * lib/fatal-signal.c: Include sigprocmask.h.
54269         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
54270         unblock_fatal_signals): Define always.
54271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54272         sigprocmask.
54273
54274 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54275
54276         Sync from Automake.
54277         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
54278         which incorrectly sets the mode of an existing destination
54279         directory.  In some cases the unpatched install-sh could do the
54280         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
54281         system.  We hope this is rare in practice, but it's clearly worth
54282         fixing.  Problem reported by Alex Unleashed in
54283         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
54284         Also, don't bother to check for -m bugs unless we're using -m;
54285         suggested by Stepan Kasal.
54286
54287 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54288
54289         Sync from Automake.
54290         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
54291         `-c' flag, so they appear at the same position as in %FASTDEP%
54292         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
54293         which ignores unknown options only after the first non-option.
54294         Bug report against M4 by Nelson H. F. Beebe.
54295
54296 2006-10-13  Jim Meyering  <jim@meyering.net>
54297
54298         Fix a bug in yesterday's change.
54299         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
54300         p->fts_statp->st_dev would be used uninitialized.
54301         Ensures that we always call fts_stat on the very first entry.
54302         Miklos Szeredi reported that find -xdev stopped working.
54303
54304 2006-10-12  Bruno Haible  <bruno@clisp.org>
54305
54306         * gnulib-tool (func_get_automake_snippet): Append an automatically
54307         computed EXTRA_DIST augmentation.
54308         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
54309         * modules/alloca-opt (Makefile.am): Likewise.
54310         * modules/allocsa (Makefile.am): Likewise.
54311         * modules/arcfour (Makefile.am): Likewise.
54312         * modules/arctwo (Makefile.am): Likewise.
54313         * modules/argmatch (Makefile.am): Likewise.
54314         * modules/argz (Makefile.am): Likewise.
54315         * modules/atexit (Makefile.am): Likewise.
54316         * modules/backupfile (Makefile.am): Likewise.
54317         * modules/byteswap (Makefile.am): Likewise.
54318         * modules/c-strtod (Makefile.am): Likewise.
54319         * modules/c-strtold (Makefile.am): Likewise.
54320         * modules/calloc (Makefile.am): Likewise.
54321         * modules/canon-host (Makefile.am): Likewise.
54322         * modules/canonicalize (Makefile.am): Likewise.
54323         * modules/chdir-long (Makefile.am): Likewise.
54324         * modules/chdir-safer (Makefile.am): Likewise.
54325         * modules/check-version (Makefile.am): Likewise.
54326         * modules/chown (Makefile.am): Likewise.
54327         * modules/cloexec (Makefile.am): Likewise.
54328         * modules/close-stream (Makefile.am): Likewise.
54329         * modules/closeout (Makefile.am): Likewise.
54330         * modules/crc (Makefile.am): Likewise.
54331         * modules/csharpexec (Makefile.am): Likewise.
54332         * modules/cycle-check (Makefile.am): Likewise.
54333         * modules/des (Makefile.am): Likewise.
54334         * modules/dev-ino (Makefile.am): Likewise.
54335         * modules/dirfd (Makefile.am): Likewise.
54336         * modules/dirname (Makefile.am): Likewise.
54337         * modules/dup2 (Makefile.am): Likewise.
54338         * modules/eealloc (Makefile.am): Likewise.
54339         * modules/error (Makefile.am): Likewise.
54340         * modules/euidaccess (Makefile.am): Likewise.
54341         * modules/exclude (Makefile.am): Likewise.
54342         * modules/exitfail (Makefile.am): Likewise.
54343         * modules/fcntl-safer (Makefile.am): Likewise.
54344         * modules/fcntl (Makefile.am): Likewise.
54345         * modules/file-type (Makefile.am): Likewise.
54346         * modules/fileblocks (Makefile.am): Likewise.
54347         * modules/filemode (Makefile.am): Likewise.
54348         * modules/filenamecat (Makefile.am): Likewise.
54349         * modules/fnmatch (Makefile.am): Likewise.
54350         * modules/fopen-safer (Makefile.am): Likewise.
54351         * modules/fpending (Makefile.am): Likewise.
54352         * modules/fprintftime (Makefile.am): Likewise.
54353         * modules/free (Makefile.am): Likewise.
54354         * modules/fsusage (Makefile.am): Likewise.
54355         * modules/ftruncate (Makefile.am): Likewise.
54356         * modules/fts (Makefile.am): Likewise.
54357         * modules/gc-arcfour (Makefile.am): Likewise.
54358         * modules/gc-des (Makefile.am): Likewise.
54359         * modules/gc-hmac-md5 (Makefile.am): Likewise.
54360         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
54361         * modules/gc-md4 (Makefile.am): Likewise.
54362         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54363         * modules/gc-sha1 (Makefile.am): Likewise.
54364         * modules/gc (Makefile.am): Likewise.
54365         * modules/getaddrinfo (Makefile.am): Likewise.
54366         * modules/getcwd (Makefile.am): Likewise.
54367         * modules/getdelim (Makefile.am): Likewise.
54368         * modules/getdomainname (Makefile.am): Likewise.
54369         * modules/getgroups (Makefile.am): Likewise.
54370         * modules/gethostname (Makefile.am): Likewise.
54371         * modules/gethrxtime (Makefile.am): Likewise.
54372         * modules/getline (Makefile.am): Likewise.
54373         * modules/getloadavg (Makefile.am): Likewise.
54374         * modules/getlogin_r (Makefile.am): Likewise.
54375         * modules/getndelim2 (Makefile.am): Likewise.
54376         * modules/getopt (Makefile.am): Likewise.
54377         * modules/getpagesize (Makefile.am): Likewise.
54378         * modules/getpass-gnu (Makefile.am): Likewise.
54379         * modules/getpass (Makefile.am): Likewise.
54380         * modules/getsubopt (Makefile.am): Likewise.
54381         * modules/gettime (Makefile.am): Likewise.
54382         * modules/gettimeofday (Makefile.am): Likewise.
54383         * modules/getugroups (Makefile.am): Likewise.
54384         * modules/getusershell (Makefile.am): Likewise.
54385         * modules/glob (Makefile.am): Likewise.
54386         * modules/group-member (Makefile.am): Likewise.
54387         * modules/hard-locale (Makefile.am): Likewise.
54388         * modules/hash (Makefile.am): Likewise.
54389         * modules/hmac-md5 (Makefile.am): Likewise.
54390         * modules/hmac-sha1 (Makefile.am): Likewise.
54391         * modules/human (Makefile.am): Likewise.
54392         * modules/idcache (Makefile.am): Likewise.
54393         * modules/imaxabs (Makefile.am): Likewise.
54394         * modules/imaxdiv (Makefile.am): Likewise.
54395         * modules/inet_ntop (Makefile.am): Likewise.
54396         * modules/inet_pton (Makefile.am): Likewise.
54397         * modules/intprops (Makefile.am): Likewise.
54398         * modules/inttostr (Makefile.am): Likewise.
54399         * modules/inttypes (Makefile.am): Likewise.
54400         * modules/isapipe (Makefile.am): Likewise.
54401         * modules/javaversion (Makefile.am): Likewise.
54402         * modules/lchmod (Makefile.am): Likewise.
54403         * modules/lchown (Makefile.am): Likewise.
54404         * modules/localcharset (Makefile.am): Likewise.
54405         * modules/long-options (Makefile.am): Likewise.
54406         * modules/lstat (Makefile.am): Likewise.
54407         * modules/malloc (Makefile.am): Likewise.
54408         * modules/mathl (Makefile.am): Likewise.
54409         * modules/mbchar (Makefile.am): Likewise.
54410         * modules/md2 (Makefile.am): Likewise.
54411         * modules/md4 (Makefile.am): Likewise.
54412         * modules/md5 (Makefile.am): Likewise.
54413         * modules/memcasecmp (Makefile.am): Likewise.
54414         * modules/memchr (Makefile.am): Likewise.
54415         * modules/memcmp (Makefile.am): Likewise.
54416         * modules/memcoll (Makefile.am): Likewise.
54417         * modules/memcpy (Makefile.am): Likewise.
54418         * modules/memmem (Makefile.am): Likewise.
54419         * modules/memmove (Makefile.am): Likewise.
54420         * modules/mempcpy (Makefile.am): Likewise.
54421         * modules/memrchr (Makefile.am): Likewise.
54422         * modules/memset (Makefile.am): Likewise.
54423         * modules/memxor (Makefile.am): Likewise.
54424         * modules/mkancesdirs (Makefile.am): Likewise.
54425         * modules/mkdir-p (Makefile.am): Likewise.
54426         * modules/mkdir (Makefile.am): Likewise.
54427         * modules/mkdtemp (Makefile.am): Likewise.
54428         * modules/mkstemp (Makefile.am): Likewise.
54429         * modules/mktime (Makefile.am): Likewise.
54430         * modules/modechange (Makefile.am): Likewise.
54431         * modules/mountlist (Makefile.am): Likewise.
54432         * modules/nanosleep (Makefile.am): Likewise.
54433         * modules/obstack (Makefile.am): Likewise.
54434         * modules/openat (Makefile.am): Likewise.
54435         * modules/pagealign_alloc (Makefile.am): Likewise.
54436         * modules/pathmax (Makefile.am): Likewise.
54437         * modules/physmem (Makefile.am): Likewise.
54438         * modules/poll (Makefile.am): Likewise.
54439         * modules/posixtm (Makefile.am): Likewise.
54440         * modules/posixver (Makefile.am): Likewise.
54441         * modules/putenv (Makefile.am): Likewise.
54442         * modules/quote (Makefile.am): Likewise.
54443         * modules/quotearg (Makefile.am): Likewise.
54444         * modules/raise (Makefile.am): Likewise.
54445         * modules/read-file (Makefile.am): Likewise.
54446         * modules/readline (Makefile.am): Likewise.
54447         * modules/readlink (Makefile.am): Likewise.
54448         * modules/readtokens (Makefile.am): Likewise.
54449         * modules/readutmp (Makefile.am): Likewise.
54450         * modules/realloc (Makefile.am): Likewise.
54451         * modules/regex (Makefile.am): Likewise.
54452         * modules/rename-dest-slash (Makefile.am): Likewise.
54453         * modules/rename (Makefile.am): Likewise.
54454         * modules/rijndael (Makefile.am): Likewise.
54455         * modules/rmdir (Makefile.am): Likewise.
54456         * modules/rpmatch (Makefile.am): Likewise.
54457         * modules/safe-read (Makefile.am): Likewise.
54458         * modules/safe-write (Makefile.am): Likewise.
54459         * modules/same-inode (Makefile.am): Likewise.
54460         * modules/same (Makefile.am): Likewise.
54461         * modules/save-cwd (Makefile.am): Likewise.
54462         * modules/savedir (Makefile.am): Likewise.
54463         * modules/setenv (Makefile.am): Likewise.
54464         * modules/settime (Makefile.am): Likewise.
54465         * modules/sha1 (Makefile.am): Likewise.
54466         * modules/sig2str (Makefile.am): Likewise.
54467         * modules/snprintf (Makefile.am): Likewise.
54468         * modules/stat-macros (Makefile.am): Likewise.
54469         * modules/stat-time (Makefile.am): Likewise.
54470         * modules/stdbool (Makefile.am): Likewise.
54471         * modules/stdint (Makefile.am): Likewise.
54472         * modules/stdlib-safer (Makefile.am): Likewise.
54473         * modules/stpcpy (Makefile.am): Likewise.
54474         * modules/stpncpy (Makefile.am): Likewise.
54475         * modules/strcase (Makefile.am): Likewise.
54476         * modules/strcasestr (Makefile.am): Likewise.
54477         * modules/strchrnul (Makefile.am): Likewise.
54478         * modules/strcspn (Makefile.am): Likewise.
54479         * modules/strdup (Makefile.am): Likewise.
54480         * modules/strerror (Makefile.am): Likewise.
54481         * modules/strftime (Makefile.am): Likewise.
54482         * modules/strndup (Makefile.am): Likewise.
54483         * modules/strnlen (Makefile.am): Likewise.
54484         * modules/strpbrk (Makefile.am): Likewise.
54485         * modules/strsep (Makefile.am): Likewise.
54486         * modules/strstr (Makefile.am): Likewise.
54487         * modules/strtod (Makefile.am): Likewise.
54488         * modules/strtoimax (Makefile.am): Likewise.
54489         * modules/strtok_r (Makefile.am): Likewise.
54490         * modules/strtol (Makefile.am): Likewise.
54491         * modules/strtoll (Makefile.am): Likewise.
54492         * modules/strtoul (Makefile.am): Likewise.
54493         * modules/strtoull (Makefile.am): Likewise.
54494         * modules/strtoumax (Makefile.am): Likewise.
54495         * modules/strverscmp (Makefile.am): Likewise.
54496         * modules/sys_socket (Makefile.am): Likewise.
54497         * modules/sys_stat (Makefile.am): Likewise.
54498         * modules/sysexits (Makefile.am): Likewise.
54499         * modules/time_r (Makefile.am): Likewise.
54500         * modules/timegm (Makefile.am): Likewise.
54501         * modules/timespec (Makefile.am): Likewise.
54502         * modules/tmpfile-safer (Makefile.am): Likewise.
54503         * modules/trim (Makefile.am): Likewise.
54504         * modules/unistd-safer (Makefile.am): Likewise.
54505         * modules/unlinkdir (Makefile.am): Likewise.
54506         * modules/unlocked-io (Makefile.am): Likewise.
54507         * modules/userspec (Makefile.am): Likewise.
54508         * modules/utime (Makefile.am): Likewise.
54509         * modules/utimecmp (Makefile.am): Likewise.
54510         * modules/utimens (Makefile.am): Likewise.
54511         * modules/vasnprintf (Makefile.am): Likewise.
54512         * modules/vasprintf (Makefile.am): Likewise.
54513         * modules/vsnprintf (Makefile.am): Likewise.
54514         * modules/xalloc (Makefile.am): Likewise.
54515         * modules/xgetcwd (Makefile.am): Likewise.
54516         * modules/xnanosleep (Makefile.am): Likewise.
54517         * modules/xreadlink (Makefile.am): Likewise.
54518         * modules/xstrtod (Makefile.am): Likewise.
54519         * modules/xstrtol (Makefile.am): Likewise.
54520         * modules/xstrtold (Makefile.am): Likewise.
54521         * modules/yesno (Makefile.am): Likewise.
54522         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
54523
54524 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         * modules/error (Makefile.am): Distribute files through
54527         EXTRA_DIST, not lib_SOURCES.
54528
54529 2006-10-12  Eric Blake  <ebb9@byu.net>
54530
54531         * modules/error (Makefile.am): Distribute files in /lib.
54532         * modules/obstack (Makefile.am): Likewise.
54533
54534 2006-10-12  Bruno Haible  <bruno@clisp.org>
54535
54536         * modules/acl (Makefile.am): Distribute all files in lib/ through
54537         EXTRA_DIST.
54538         * modules/arcfour (Makefile.am): Likewise.
54539         * modules/arctwo (Makefile.am): Likewise.
54540         * modules/argmatch (Makefile.am): Likewise.
54541         * modules/argz (Makefile.am): Likewise.
54542         * modules/atexit (Makefile.am): Likewise.
54543         * modules/backupfile (Makefile.am): Likewise.
54544         * modules/c-strtod (Makefile.am): Likewise.
54545         * modules/c-strtold (Makefile.am): Likewise.
54546         * modules/calloc (Makefile.am): Likewise.
54547         * modules/canon-host (Makefile.am): Likewise.
54548         * modules/canonicalize (Makefile.am): Likewise.
54549         * modules/chdir-long (Makefile.am): Likewise.
54550         * modules/chdir-safer (Makefile.am): Likewise.
54551         * modules/check-version (Makefile.am): Likewise.
54552         * modules/chown (Makefile.am): Likewise.
54553         * modules/cloexec (Makefile.am): Likewise.
54554         * modules/close-stream (Makefile.am): Likewise.
54555         * modules/closeout (Makefile.am): Likewise.
54556         * modules/crc (Makefile.am): Likewise.
54557         * modules/cycle-check (Makefile.am): Likewise.
54558         * modules/des (Makefile.am): Likewise.
54559         * modules/dirfd (Makefile.am): Likewise.
54560         * modules/dirname (Makefile.am): Likewise.
54561         * modules/dup2 (Makefile.am): Likewise.
54562         * modules/euidaccess (Makefile.am): Likewise.
54563         * modules/exclude (Makefile.am): Likewise.
54564         * modules/exitfail (Makefile.am): Likewise.
54565         * modules/fcntl-safer (Makefile.am): Likewise.
54566         * modules/file-type (Makefile.am): Likewise.
54567         * modules/fileblocks (Makefile.am): Likewise.
54568         * modules/filemode (Makefile.am): Likewise.
54569         * modules/filenamecat (Makefile.am): Likewise.
54570         * modules/fnmatch (Makefile.am): Likewise.
54571         * modules/fopen-safer (Makefile.am): Likewise.
54572         * modules/fpending (Makefile.am): Likewise.
54573         * modules/fprintftime (Makefile.am): Likewise.
54574         * modules/free (Makefile.am): Likewise.
54575         * modules/fsusage (Makefile.am): Likewise.
54576         * modules/ftruncate (Makefile.am): Likewise.
54577         * modules/fts (Makefile.am): Likewise.
54578         * modules/gc (Makefile.am): Likewise.
54579         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54580         * modules/getaddrinfo (Makefile.am): Likewise.
54581         * modules/getcwd (Makefile.am): Likewise.
54582         * modules/getdelim (Makefile.am): Likewise.
54583         * modules/getdomainname (Makefile.am): Likewise.
54584         * modules/getgroups (Makefile.am): Likewise.
54585         * modules/gethostname (Makefile.am): Likewise.
54586         * modules/gethrxtime (Makefile.am): Likewise.
54587         * modules/getline (Makefile.am): Likewise.
54588         * modules/getloadavg (Makefile.am): Likewise.
54589         * modules/getlogin_r (Makefile.am): Likewise.
54590         * modules/getopt (Makefile.am): Likewise.
54591         * modules/getpass (Makefile.am): Likewise.
54592         * modules/getpass-gnu (Makefile.am): Likewise.
54593         * modules/getsubopt (Makefile.am): Likewise.
54594         * modules/gettime (Makefile.am): Likewise.
54595         * modules/gettimeofday (Makefile.am): Likewise.
54596         * modules/getugroups (Makefile.am): Likewise.
54597         * modules/getusershell (Makefile.am): Likewise.
54598         * modules/glob (Makefile.am): Likewise.
54599         * modules/group-member (Makefile.am): Likewise.
54600         * modules/hard-locale (Makefile.am): Likewise.
54601         * modules/hash (Makefile.am): Likewise.
54602         * modules/hmac-md5 (Makefile.am): Likewise.
54603         * modules/hmac-sha1 (Makefile.am): Likewise.
54604         * modules/human (Makefile.am): Likewise.
54605         * modules/idcache (Makefile.am): Likewise.
54606         * modules/imaxabs (Makefile.am): Likewise.
54607         * modules/imaxdiv (Makefile.am): Likewise.
54608         * modules/inet_ntop (Makefile.am): Likewise.
54609         * modules/inet_pton (Makefile.am): Likewise.
54610         * modules/inttostr (Makefile.am): Likewise.
54611         * modules/isapipe (Makefile.am): Likewise.
54612         * modules/lchown (Makefile.am): Likewise.
54613         * modules/long-options (Makefile.am): Likewise.
54614         * modules/lstat (Makefile.am): Likewise.
54615         * modules/malloc (Makefile.am): Likewise.
54616         * modules/mathl (Makefile.am): Likewise.
54617         * modules/mbchar (Makefile.am): Likewise.
54618         * modules/md2 (Makefile.am): Likewise.
54619         * modules/md4 (Makefile.am): Likewise.
54620         * modules/md5 (Makefile.am): Likewise.
54621         * modules/memcasecmp (Makefile.am): Likewise.
54622         * modules/memchr (Makefile.am): Likewise.
54623         * modules/memcmp (Makefile.am): Likewise.
54624         * modules/memcoll (Makefile.am): Likewise.
54625         * modules/memcpy (Makefile.am): Likewise.
54626         * modules/memmem (Makefile.am): Likewise.
54627         * modules/memmove (Makefile.am): Likewise.
54628         * modules/mempcpy (Makefile.am): Likewise.
54629         * modules/memrchr (Makefile.am): Likewise.
54630         * modules/memset (Makefile.am): Likewise.
54631         * modules/memxor (Makefile.am): Likewise.
54632         * modules/mkancesdirs (Makefile.am): Likewise.
54633         * modules/mkdir (Makefile.am): Likewise.
54634         * modules/mkdir-p (Makefile.am): Likewise.
54635         * modules/mkdtemp (Makefile.am): Likewise.
54636         * modules/mkstemp (Makefile.am): Likewise.
54637         * modules/mktime (Makefile.am): Likewise.
54638         * modules/modechange (Makefile.am): Likewise.
54639         * modules/mountlist (Makefile.am): Likewise.
54640         * modules/nanosleep (Makefile.am): Likewise.
54641         * modules/openat (Makefile.am): Likewise.
54642         * modules/pagealign_alloc (Makefile.am): Likewise.
54643         * modules/physmem (Makefile.am): Likewise.
54644         * modules/poll (Makefile.am): Likewise.
54645         * modules/posixtm (Makefile.am): Likewise.
54646         * modules/posixver (Makefile.am): Likewise.
54647         * modules/putenv (Makefile.am): Likewise.
54648         * modules/quote (Makefile.am): Likewise.
54649         * modules/quotearg (Makefile.am): Likewise.
54650         * modules/raise (Makefile.am): Likewise.
54651         * modules/read-file (Makefile.am): Likewise.
54652         * modules/readline (Makefile.am): Likewise.
54653         * modules/readlink (Makefile.am): Likewise.
54654         * modules/readtokens (Makefile.am): Likewise.
54655         * modules/readutmp (Makefile.am): Likewise.
54656         * modules/realloc (Makefile.am): Likewise.
54657         * modules/regex (Makefile.am): Likewise.
54658         * modules/rename (Makefile.am): Likewise.
54659         * modules/rename-dest-slash (Makefile.am): Likewise.
54660         * modules/rijndael (Makefile.am): Likewise.
54661         * modules/rmdir (Makefile.am): Likewise.
54662         * modules/rpmatch (Makefile.am): Likewise.
54663         * modules/safe-read (Makefile.am): Likewise.
54664         * modules/safe-write (Makefile.am): Likewise.
54665         * modules/same (Makefile.am): Likewise.
54666         * modules/save-cwd (Makefile.am): Likewise.
54667         * modules/savedir (Makefile.am): Likewise.
54668         * modules/setenv (Makefile.am): Likewise.
54669         * modules/settime (Makefile.am): Likewise.
54670         * modules/sha1 (Makefile.am): Likewise.
54671         * modules/sig2str (Makefile.am): Likewise.
54672         * modules/snprintf (Makefile.am): Likewise.
54673         * modules/stdlib-safer (Makefile.am): Likewise.
54674         * modules/stpcpy (Makefile.am): Likewise.
54675         * modules/stpncpy (Makefile.am): Likewise.
54676         * modules/strcase (Makefile.am): Likewise.
54677         * modules/strcasestr (Makefile.am): Likewise.
54678         * modules/strchrnul (Makefile.am): Likewise.
54679         * modules/strcspn (Makefile.am): Likewise.
54680         * modules/strdup (Makefile.am): Likewise.
54681         * modules/strerror (Makefile.am): Likewise.
54682         * modules/strftime (Makefile.am): Likewise.
54683         * modules/strndup (Makefile.am): Likewise.
54684         * modules/strnlen (Makefile.am): Likewise.
54685         * modules/strpbrk (Makefile.am): Likewise.
54686         * modules/strsep (Makefile.am): Likewise.
54687         * modules/strstr (Makefile.am): Likewise.
54688         * modules/strtod (Makefile.am): Likewise.
54689         * modules/strtoimax (Makefile.am): Likewise.
54690         * modules/strtok_r (Makefile.am): Likewise.
54691         * modules/strtol (Makefile.am): Likewise.
54692         * modules/strtoll (Makefile.am): Likewise.
54693         * modules/strtoul (Makefile.am): Likewise.
54694         * modules/strtoull (Makefile.am): Likewise.
54695         * modules/strtoumax (Makefile.am): Likewise.
54696         * modules/strverscmp (Makefile.am): Likewise.
54697         * modules/time_r (Makefile.am): Likewise.
54698         * modules/timegm (Makefile.am): Likewise.
54699         * modules/tmpfile-safer (Makefile.am): Likewise.
54700         * modules/unistd-safer (Makefile.am): Likewise.
54701         * modules/unlinkdir (Makefile.am): Likewise.
54702         * modules/userspec (Makefile.am): Likewise.
54703         * modules/utime (Makefile.am): Likewise.
54704         * modules/utimecmp (Makefile.am): Likewise.
54705         * modules/utimens (Makefile.am): Likewise.
54706         * modules/vasnprintf (Makefile.am): Likewise.
54707         * modules/vasprintf (Makefile.am): Likewise.
54708         * modules/vsnprintf (Makefile.am): Likewise.
54709         * modules/xalloc (Makefile.am): Likewise.
54710         * modules/xgetcwd (Makefile.am): Likewise.
54711         * modules/xnanosleep (Makefile.am): Likewise.
54712         * modules/xreadlink (Makefile.am): Likewise.
54713         * modules/xstrtod (Makefile.am): Likewise.
54714         * modules/xstrtol (Makefile.am): Likewise.
54715         * modules/xstrtold (Makefile.am): Likewise.
54716         * modules/yesno (Makefile.am): Likewise.
54717
54718 2006-10-12  Jim Meyering  <jim@meyering.net>
54719
54720         * m4/getloadavg.m4: Revert the change below.
54721
54722         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
54723         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
54724         fail with a symlink, which is what coreutils' ./bootstrap now
54725         creates by default.
54726
54727 2006-10-12  Bruno Haible  <bruno@clisp.org>
54728
54729         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
54730         mingw.
54731         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
54732         MSVC and mingw explicitly.
54733
54734 2006-10-11  Simon Josefsson  <jas@extundo.com>
54735             Bruno Haible  <bruno@clisp.org>
54736
54737         Add support for multiple gnulib-tool invocations in the scope of a
54738         single configure.ac file.
54739         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
54740         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
54741         with the same contents as the _LIBADD variable.
54742         (func_emit_initmacro_start, func_emit_initmacro_end,
54743         func_emit_initmacro_done): New functions.
54744         (func_import, func_create_testdir): Invoke them. Allow the identifiers
54745         gl_LIBOBJS and gl_LTLIBOBJS.
54746
54747 2006-10-11  Bruno Haible  <bruno@clisp.org>
54748
54749         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
54750         (func_create_testdir): Don't create po/Makefile.am, don't invoke
54751         autoreconf. Instead, invoke autopoint explicitly but move back the
54752         *.m4 files from gnulib.
54753
54754 2006-10-11  Bruno Haible  <bruno@clisp.org>
54755
54756         * gnulib-tool (func_usage): Make module names after --create-testdir
54757         optional.
54758         (func_create_testdir): If no module was specified, use nearly all
54759         modules.
54760
54761 2006-10-12  Jim Meyering  <jim@meyering.net>
54762
54763         Big performance improvement for fts-based tools that use FTS_NOSTAT.
54764         Avoid spurious inode-mismatch problems on non-POSIX file systems.
54765         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
54766         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
54767         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
54768         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
54769         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
54770         (fts_set_stat_required): New function.
54771         (fts_open): Defer the calls to fts_stat, if possible or requested.
54772         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
54773         into fts_stat itself.
54774         (fts_read): Perform any required (deferred) fts_stat call.
54775         (fts_build): Likewise, for the directory we're about to open and read.
54776         In the readdir loop, carefully decide whether each entry will require
54777         an eventual call to fts_stat, using dirent.d_type info if available.
54778         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54779         a command line argument into this function.  Update all callers.
54780         Map a return value of FTS_DOT to FTS_D for a command line argument.
54781         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54782         Thanks to Miklos Szeredi for his tenacity and for the initial
54783         bug report about "find" failing on a FUSE-based file system.
54784
54785         * lib/fts.c (fts_open): Use consistent indentation.
54786
54787 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54788
54789         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54790         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54791         reported by Jim Meyering.  All uses of cache variables renamed
54792         to match Autoconf's.
54793         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54794         the other one.
54795
54796         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54797         Fix misspelling in diagnostic.
54798
54799 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54800
54801         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54802         defined.  Problem reported by Matthew Woehlke.
54803
54804         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54805         Add support for Tandem NonStop R series.
54806         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54807         Use new macro.
54808
54809         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54810         (has_trailing_slash): Omit size arg; all callers changed.
54811         Omit 'inline', since it doesn't help performance and we'd
54812         need to configure it.
54813         Don't count //, ///, etc. as having a trailing slash.
54814         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54815         (rpl_rename_dest_slash): On failure, use rename's errno rather
54816         than (in some cases) an incorrect or junk errno.
54817         Simplify code by removing need to compute length; this does
54818         cause it to make two passes instead of one over the file name,
54819         but it's worth it.
54820
54821         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
54822         change, since Autoconf's version may no longer be appropriate now
54823         that we are using CVS Autoconf's version.  Add support for Tandem.
54824
54825 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54826             Bruno Haible  <bruno@clisp.org>
54827
54828         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
54829         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
54830         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
54831         gl_AC_TYPE_LONG_LONG.
54832
54833         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
54834         instead of HAVE_LONG_LONG.
54835         * lib/printf-args.c (printf_fetchargs): Likewise.
54836         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54837         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54838         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
54839         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
54840         gl_AC_TYPE_LONG_LONG.
54841
54842 2006-10-11  Bruno Haible  <bruno@clisp.org>
54843
54844         * m4/longlong.m4: Add comments.
54845         * m4/ulonglong.m4: Likewise.
54846
54847 2006-10-10  Bruno Haible  <bruno@clisp.org>
54848
54849         Make it possible to #define stpcpy, strdup to aliases.
54850         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
54851         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
54852
54853 2006-10-10  Bruno Haible  <bruno@clisp.org>
54854
54855         Make it possible to #define gcd to an alias.
54856         * lib/gcd.c: Include config.h.
54857
54858 2006-10-10  Bruno Haible  <bruno@clisp.org>
54859
54860         Make it possible to #define c_isascii to an alias.
54861         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
54862         defined. Undefine the macros before defining them, to avoid gcc
54863         warnings.
54864         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
54865         define NO_C_CTYPE_MACROS early.
54866
54867 2006-10-10  Bruno Haible  <bruno@clisp.org>
54868
54869         Make it possible to #define set_program_name to an alias.
54870         * lib/progname.c: Don't undefine set_program_name; instead, undefine
54871         ENABLE_RELOCATABLE early.
54872
54873 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54874
54875         Port to Tandem NSK OSS, which has 64-bit signed int but at most
54876         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
54877         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
54878         More generally, don't assume that 64-bit signed int is available
54879         if unsigned int is, and vice versa.
54880         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
54881         unsigned symbols, not on their signed counterparts.
54882         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
54883         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
54884         (UINT64_C, UINTMAX_C):
54885         Likewise.
54886         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
54887         unsigned counterparts.
54888         (Have_long_long, Unsigned): New macros.
54889         (Int): Renamed from INT.
54890         (strtoimax): Use the new macros.
54891         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
54892         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
54893         * modules/inttypes (inttypes.h): Substitute
54894         HAVE_UNSIGNED_LONG_LONG_INT.
54895         * modules/stdint (stdint.h): Likewise.
54896         (Files): Add m4/ulonglong.m4.
54897
54898 2006-10-10  Bruno Haible  <bruno@clisp.org>
54899
54900         Fix a gcc -Wshadow warning.
54901         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
54902         to 'bucket'.
54903         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
54904         gl_linked_indexof_from_to): Likewise.
54905         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
54906         Likewise.
54907         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
54908         Likewise.
54909         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
54910         Reported by Eric Blake.
54911
54912 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
54913
54914         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
54915         for NetBSD.  Problem reported by Bruno Haible.
54916
54917 2006-10-09  Jim Meyering  <jim@meyering.net>
54918
54919         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
54920         Patch from Bruno Haible.
54921
54922 2006-10-09  Jim Meyering  <jim@meyering.net>
54923
54924         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
54925         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
54926         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
54927
54928 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         Don't include <config.h> twice; this doesn't work in some cases,
54931         e.g., when config.h has "#define intmax_t long long int" and
54932         we include <config.h>, <inttypes.h>, <config.h> in that order.
54933         Problem reported by Matthew Woehlke in:
54934         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
54935         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
54936         * lib/fts-cycle.c: Don't include config.h.
54937         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
54938         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
54939         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
54940         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
54941         inttypes.h.
54942         * lib/xstrtoumax.c: Likewise.
54943         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
54944         __strtol and the like, so that this module is more like its siblings.
54945         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
54946         Remove; no longer needed now that we assume gnulib inttypes.h.
54947
54948 2006-10-08  Bruno Haible  <bruno@clisp.org>
54949
54950         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
54951         option.
54952
54953 2006-10-07  Jim Meyering  <jim@meyering.net>
54954
54955         * modules/inttypes (inttypes.h): Revert what seems to have been
54956         an inadvertent part of today's change: use "|", not "/" in the
54957         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
54958
54959 2006-10-07  Bruno Haible  <bruno@clisp.org>
54960
54961         * modules/sublist: New file.
54962
54963 2006-10-07  Bruno Haible  <bruno@clisp.org>
54964
54965         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54966         * modules/argz (argz.h): Likewise.
54967         * modules/arpa_inet (arpa/inet.h): Likewise.
54968         * modules/byteswap (byteswap.h): Likewise.
54969         * modules/configmake (configmake.h): Likewise.
54970         * modules/fcntl (fcntl.h): Likewise.
54971         * modules/fnmatch (fnmatch.h): Likewise.
54972         * modules/getopt (getopt.h): Likewise.
54973         * modules/glob (glob.h): Likewise.
54974         * modules/inttypes (inttypes.h): Likewise.
54975         * modules/netinet_in (netinet/in.h): Likewise.
54976         * modules/poll (poll.h): Likewise.
54977         * modules/stdbool (stdbool.h): Likewise.
54978         * modules/stdint (stdint.h): Likewise.
54979         * modules/sys_select (sys/select.h): Likewise.
54980         * modules/sys_socket (sys/socket.h): Likewise.
54981         * modules/sys_stat (sys/stat.h): Likewise.
54982         * modules/sysexits (sysexits.h): Likewise.
54983         * modules/unistd (unistd.h): Likewise.
54984         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54985         Add a "DO NOT EDIT" comment to the generated file.
54986         (func_import): Likewise for gnulib-comp.m4.
54987
54988 2006-10-07  Bruno Haible  <bruno@clisp.org>
54989
54990         * lib/gl_sublist.h: New file.
54991         * lib/gl_sublist.c: New file.
54992
54993 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54994
54995         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
54996         name (relative to the original working directory) and the file
54997         name component (relative to the temporary working directory).  All
54998         callers changed.
54999         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55000         * lib/mkdir-p.c (make_dir_parents): Likewise.
55001         * lib/mkdir-p.h (make_dir_parents): Likewise.
55002
55003 2006-10-06  Eric Blake  <ebb9@byu.net>
55004
55005         Define several macros for use by the clean-temp module.
55006         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55007         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55008         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55009
55010         * lib/clean-temp.h (close_stream_temp): New declaration.
55011         * lib/clean-temp.c (includes): Pull in headers according to what
55012         other modules are in use.
55013         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55014
55015 2006-10-06  Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55018         instead of fopen, fwriteerror.
55019
55020 2006-10-06  Bruno Haible  <bruno@clisp.org>
55021
55022         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55023         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55024         int.
55025         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55026         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55027         Return an error indicator.
55028         Suggested by Eric Blake.
55029
55030 2006-10-06  Bruno Haible  <bruno@clisp.org>
55031
55032         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55033         Reported by Eric Blake.
55034
55035 2006-10-06  Bruno Haible  <bruno@clisp.org>
55036
55037         * modules/closeout (Description): Mention stderr too.
55038
55039 2006-10-06  Bruno Haible  <bruno@clisp.org>
55040         and Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * lib/closeout.c (close_stdout): Also close stderr.
55043         * lib/closeout.h: Update comment.
55044
55045 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55046
55047         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55048         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55049         * lib/dirchownmod.c: Include lchown.h.
55050         * lib/lchown.c: Don't include files that lchown.h now includes.
55051         Don't declare chown, since lchown.h now does that.
55052         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55053         (lchown): Define to rpl_chown if lchown is declared but
55054         does not exist.  Declare using a prototype if lchown is not
55055         declared.  Add a copyright notice.
55056         * lib/mkstemp.h: Include <unistd.h>.
55057         * lib/openat.c: Include lchown.h.
55058
55059         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55060         we now test for that separately.
55061         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55062         rather than O_NOFOLLOW, when testing whether it's possible to
55063         avoid a race condition reliably.
55064         * lib/savewd.c (savewd_chdir): Likewise.
55065
55066         Remove macros that are no longer needed now that stdint.h is
55067         reliable.
55068         * lib/fsusage.c (UINTMAX_MAX): Remove.
55069         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55070         * lib/utimecmp.c (SIZE_MAX): Remove.
55071
55072         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55073
55074         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55075         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55076         O_NOATIME works.
55077
55078 2006-10-05  Bruno Haible  <bruno@clisp.org>
55079
55080         * lib/gl_list.h (gl_sortedlist_search_from_to,
55081         gl_sortedlist_indexof_from_to): New declarations.
55082         (gl_list_implementation): New fields sortedlist_search_from_to,
55083         sortedlist_indexof_from_to.
55084         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55085         inline functions.
55086         * lib/gl_list.c (gl_sortedlist_search_from_to,
55087         gl_sortedlist_indexof_from_to): New functions.
55088         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55089         function.
55090         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55091         (gl_array_sortedlist_search_from_to): New function.
55092         (gl_array_list_implementation): Update.
55093         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55094         function.
55095         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55096         (gl_carray_sortedlist_search_from_to): New function.
55097         (gl_carray_list_implementation): Update.
55098         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55099         gl_linked_sortedlist_indexof_from_to): New functions.
55100         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55101         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55102         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55103         gl_tree_sortedlist_indexof_from_to): New functions.
55104         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55105         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55106         Update.
55107         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55108         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55109         Update.
55110
55111 2006-10-05  Bruno Haible  <bruno@clisp.org>
55112
55113         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55114         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55115         (struct gl_list_implementation): Add fields search_from_to,
55116         indexof_from_to. Remove fields search, indexof.
55117         (gl_list_search): Use the search_from_to method.
55118         (gl_list_search_from, gl_list_search_from_to): New functions.
55119         (gl_list_indexof): Use the indexof_from_to method.
55120         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55121         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55122         (gl_list_search_from, gl_list_search_from_to): New functions.
55123         (gl_list_indexof): Use the indexof_from_to method.
55124         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55125         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55126         gl_array_indexof. Add start_index, end_index arguments.
55127         (gl_array_search_from_to): Renamed from gl_array_search. Add
55128         start_index, end_index arguments.
55129         (gl_array_remove, gl_array_list_implementation): Update.
55130         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55131         gl_carray_indexof. Add start_index, end_index arguments.
55132         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55133         start_index, end_index arguments.
55134         (gl_carray_remove, gl_carray_list_implementation): Update.
55135         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55136         gl_linked_search. Add start_index, end_index arguments.
55137         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55138         start_index, end_index arguments.
55139         (gl_linked_remove): Update.
55140         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55141         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55142         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55143         field to 'size_t'.
55144         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55145         gl_tree_search. Add start_index, end_index arguments.
55146         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55147         start_index, end_index arguments.
55148         (gl_tree_remove): Update.
55149         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55150         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55151         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55152         function.
55153         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55154         gl_tree_search. Add start_index, end_index arguments.
55155         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55156         start_index, end_index arguments.
55157         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55158         Update.
55159         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55160
55161 2006-10-05  Bruno Haible  <bruno@clisp.org>
55162
55163         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55164
55165         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55166         fwriteerror_temp): New declarations.
55167         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55168         (descriptors): New variable.
55169         (cleanup): First, close the descriptors.
55170         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55171         fclose_temp, fwriteerror_temp): New functions.
55172
55173 2006-10-04  Jim Meyering  <jim@meyering.net>
55174
55175         * lib/fts.c (fts_open): Tiny comment change.
55176
55177 2006-10-04  Bruno Haible  <bruno@clisp.org>
55178
55179         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
55180         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
55181         gl_LOCK_BODY.
55182         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
55183         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
55184         gl_LOCK_EARLY_BODY.
55185         (gl_LOCK): Require gl_LOCK_BODY.
55186
55187 2006-10-04  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
55190         (gl_oset_search_atleast): New declaration.
55191         (struct gl_oset_implementation): Add field 'search_atleast'.
55192         (gl_oset_search_atleast): New inline function.
55193         * lib/gl_oset.c (gl_oset_search_atleast): New function.
55194         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
55195         (gl_array_oset_implementation): Update.
55196         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
55197         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
55198         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
55199
55200 2006-10-04  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
55203
55204 2006-10-03  Bruno Haible  <bruno@clisp.org>
55205
55206         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
55207         from gl_avltreehash_list_implementation.
55208
55209 2006-10-03  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/gl_oset.c (gl_oset_add): Fix return type.
55212
55213 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
55214
55215         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
55216
55217 2006-10-02  Eric Blake  <ebb9@byu.net>
55218
55219         * modules/strnlen (Depends-on): Add extensions.
55220
55221 2006-10-02  Eric Blake  <ebb9@byu.net>
55222
55223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
55224         definition in 2.60+.
55225
55226 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55227
55228         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
55229         checks.
55230
55231 2006-10-02  Bruno Haible  <bruno@clisp.org>
55232
55233         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
55234         to the AUTOMAKE_OPTIONS.
55235         Reported by Jim Meyering.
55236
55237 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55238
55239         Work around bug in Solaris 10 /proc file system:
55240         /proc/self/fd/NNN/.. isn't the parent directory of
55241         the directory whose file descriptor is NNN.  This needs to
55242         be worked around at run time, not compile time, since a
55243         program might be built on Solaris 8, where things work, and
55244         run on Solaris 10.
55245         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
55246         to use the following interface instead:
55247         (OPENAT_BUFFER_SIZE): New macro.
55248         (openat_proc_name): New function.
55249         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
55250         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
55251         Likewise.
55252         * lib/openat-proc.c: New file.
55253         * modules/openat (Files): Add lib/openat-proc.c.
55254         (Depends-on): Add same-inode, stdbool.
55255         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
55256
55257 2006-09-29  Bruno Haible  <bruno@clisp.org>
55258
55259         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
55260         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
55261         argument. Set stdout_closed before testing for ferror, not after.
55262         (fwriteerror, fwriteerror_no_ebadf): New functions.
55263
55264 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55265
55266         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
55267
55268 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
55269
55270         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
55271         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
55272
55273 2006-09-28  Jim Meyering  <jim@meyering.net>
55274
55275         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
55276         Include <unistd.h>.
55277
55278 2006-09-28  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
55281         * modules/linkedhash-list (Depends-on): Likewise.
55282         * modules/rbtreehash-list (Depends-on): Likewise.
55283
55284 2006-09-28  Bruno Haible  <bruno@clisp.org>
55285
55286         * lib/strndup.h: Simplify the redefinition of strndup.
55287         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
55288         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
55289
55290 2006-09-28  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
55293         * lib/gl_linkedhash_list.c: Likewise.
55294         * lib/gl_rbtreehash_list.c: Likewise.
55295
55296 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55297
55298         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
55299         getaddrinfo.
55300
55301         * lib/__fpending.h: Don't include <stdio_ext.h> unless
55302         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
55303         it causes <stdio_ext.h> to cause a compile-time error.
55304         Problem reported by Nelson H. F. Beebe.
55305         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
55306         of HAVE_DECL___PENDING.
55307
55308         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
55309         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
55310         declaration.
55311
55312 2006-09-27  Jim Meyering  <jim@meyering.net>
55313
55314         This file could end up with a definition for a function
55315         named __strndup, rather than rpl_strndup on a system with
55316         incomplete weak_alias support.
55317         * lib/strndup.c (strndup): Rename from __strndup.
55318         Remove #defines that used to map __strndup to strndup.
55319         Don't use K&R prototypes.
55320         Remove LIBC-related code, since this file is not sync'd with glibc.
55321         * lib/strndup.h: Revamp, accordingly.
55322         * m4/strndup.m4: Modernize.
55323
55324 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         * modules/savewd (Depends-on): Add 'raise'.
55327         * lib/savewd.c: Include <signal.h>, for 'raise'.
55328
55329 2006-09-26  Jim Meyering  <jim@meyering.net>
55330
55331         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
55332         when we detect Darwin 8.7.0's acl_get_file bug.
55333         Rearrange to perform the new (below) run-test while $LIBS
55334         contains any acl-related library.  Set USE_ACL at the end.
55335         (gl_ACL_GET_FILE): New function.
55336
55337 2006-09-26  Eric Blake  <ebb9@byu.net>
55338
55339         * lib/verror.c: Include <config.h> unconditionally.
55340
55341 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
55342
55343         * modules/clock-time (Maintainer): Add self.
55344         * modules/getlogin_r (Depends-on): Add extensions.
55345
55346 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55347
55348         * modules/clock-time: New module.
55349         * modules/nanosleep (Depends-on): Add clock-time.
55350         * modules/gethrxtime (Depends-on): Likewise.
55351         * modules/gettime (Depends-on): Likewise.
55352         * modules/settime (Depends-on): Likewise.
55353
55354         * modules/fts-lgpl: Depend on openat.
55355         * modules/mkancesdirs: Depend on savewd.
55356         * modules/mkdir-p: Likewise.
55357
55358 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55359
55360         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
55361
55362         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
55363         `gl_have_arbitrary_file_name_length_limit' to
55364         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
55365         actually works between configure runs.
55366
55367 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55368             Bruno Haible  <bruno@clisp.org>
55369
55370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
55371
55372 2006-09-25  Jim Meyering  <jim@meyering.net>
55373
55374         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
55375         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
55376
55377 2006-09-25  Eric Blake  <ebb9@byu.net>
55378
55379         * gnulib-tool (func_import, func_create_testdir): Fix typos in
55380         exec's in 2006-09-18 patch when shuffling fds.
55381
55382 2006-09-25  Bruno Haible  <bruno@clisp.org>
55383
55384         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
55385         Reported by Jim Meyering.
55386
55387 2006-09-24  Jim Meyering  <jim@meyering.net>
55388
55389         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
55390         compare a pointer against a literal "0".  That caused failures with
55391         at least HP-UX's hpcc.
55392
55393 2006-09-22  Simon Josefsson  <jas@extundo.com>
55394
55395         * modules/gc-sha1:
55396         * modules/gc-md4:
55397         * modules/gc-hmac-sha1:
55398         * modules/gc-hmac-md5:
55399         * modules/gc-des:
55400         * modules/gc-arcfour: Distribute more files.
55401
55402 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55403
55404         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
55405         (gl_linked_iterator_from_to): Initialize struct completely.
55406         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
55407         (gl_tree_iterator_from_to): Likewise
55408         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
55409         * lib/gl_array_list.c [lint] (gl_array_iterator)
55410         (gl_array_iterator_from_to): Likewise.
55411         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
55412         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
55413         (gl_carray_iterator_from_to): Likewise.
55414
55415         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
55416         * lib/md4.c (md4_process_block): Remove unused variable.
55417         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
55418         parentheses for clarity.
55419
55420 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55421
55422         * modules/bison-i18n (Depends-on): Add gettext.
55423
55424 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55425
55426         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
55427         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55428         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
55429         also add missing comma that caused broken test.
55430         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55431         stdlib.h, for `abort'.
55432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55433         variables.
55434         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55435         include unistd.h if present, for `rmdir'.
55436         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55437         variables.
55438         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55439         in the process include standard headers for prototypes.
55440         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55441         gets declared on GNU/Linux.
55442         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
55443         unistd.h, for `rmdir'.
55444         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
55445
55446         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
55447         always true.
55448         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
55449
55450         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
55451
55452 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55453
55454         * gnulib-tool (func_version): Create output all at once.  This
55455         may help avoid triggering unnecessary SIGPIPEs, and at any
55456         rate it doesn't hurt.
55457
55458 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55459             Bruno Haible  <bruno@clisp.org>
55460
55461         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
55462         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55463         * m4/signed.m4 (bh_C_SIGNED): Likewise.
55464
55465         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
55466         (gl_FUNC_VASPRINTF): Invoke it.
55467
55468 2006-09-22  Bruno Haible  <bruno@clisp.org>
55469
55470         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
55471         getloadavg.c as first argument.
55472
55473 2006-09-22  Bruno Haible  <bruno@clisp.org>
55474
55475         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
55476         at the beginning of the gl_INIT macro.
55477         * modules/getloadavg (configure.ac): Pass $gl_source_base to
55478         gl_GETLOADAVG.
55479
55480 2006-09-22  Bruno Haible  <bruno@clisp.org>
55481
55482         * gnulib-tool (func_create_megatestdir): Don't include the config-h
55483         module.
55484         Suggested by Ralf Wildenhues.
55485
55486 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55487
55488         Import this patch from libc:
55489
55490         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
55491
55492         * lib/regex_internal.c (re_string_reconstruct): Handle
55493         offset < pstr->valid_raw_len && pstr->offsets_needed case.
55494         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
55495         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
55496         re_string_context_at.
55497
55498         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
55499         now requires it.
55500         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
55501         gl_REGEX now does it for us.
55502         (gl_REGEX): Add test taken from
55503         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
55504
55505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
55506         Check that large offsets work.  Modernize Autoconf usages.
55507         Prefer "yes" to mean a good thing rather than a bad.
55508         Don't put "#define mkstemp" in config.h, as this might interfere
55509         with standard system headers that "#define mkstemp mkstemp64".
55510
55511         * modules/mkstemp (Depends-on): Add extensions, so that
55512         mkstemp is visible on some platforms.
55513         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
55514         (Include): Change to "mkstemp.h" from <stdlib.h>.
55515         (Files): Add mkstemp.h.
55516
55517         * lib/mkstemp.h: New file, since some standard headers
55518         #define mkstemp.
55519         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
55520         Include "mkstemp.h".
55521         Make the _LIBC code resemble glibc original more,
55522         e.g., use K&R style.
55523         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
55524         (mkstemp): Remove, since mkstemp.h does this for us.
55525         * lib/stdlib--.h: Include mkstemp.h.
55526
55527         Import this patch from libc:
55528
55529         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55530
55531         * lib/tempname.c (__gen_tempname): Change attempts_min
55532         into a macro.  Use preprocessor to decide how to initialize
55533         attempts [Coverity CID 67].
55534
55535 2006-09-20  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/mkdtemp.c: Import from libc.
55538         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55539                 * sysdeps/posix/tempname.c (__gen_tempname): Change
55540                 attempts_min into a macro.  Use preprocessor to decide how to
55541                 initialize attempts [Coverity CID 67].
55542         2001-11-27  Paul Eggert  <eggert@twinsun.com>
55543                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
55544                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
55545
55546 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55547
55548         * gnulib-tool (func_exit): New function, to allow to pass the
55549         exit status portably through the trap.  Use everywhere.
55550         (--help, --version): Signal a write error.
55551         (trap): catch SIGPIPE, for write errors.
55552         Exit at the end of the trap, with the correct exit status.
55553
55554 2006-09-19  Karl Berry  <karl@gnu.org>
55555
55556         * doc/gnulib.texi: note about the license texinfo files.
55557
55558 2006-09-19  Eric Blake  <ebb9@byu.net>
55559
55560         * gnulib-tool: Avoid space-tab.
55561
55562 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55563
55564         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
55565         that prevented coreutils 6.1 from building.  Problem reported
55566         by Petter Reinholdtsen.
55567
55568 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55569
55570         * gnulib-tool (avoidlist): Fix typo that broke options like
55571         --avoid=lock that are used by coreutils bootstrap.
55572
55573 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
55574
55575         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
55576         more systematically.
55577
55578 2006-09-18  Jim Meyering  <jim@meyering.net>
55579
55580         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
55581
55582 2006-09-18  Bruno Haible  <bruno@clisp.org>
55583
55584         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
55585
55586 2006-09-18  Bruno Haible  <bruno@clisp.org>
55587
55588         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
55589         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
55590         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
55591         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
55592         * m4/gettext.m4: Require autoconf >= 2.52.
55593         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
55594         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
55595         of gl_cv_header_inttypes_h.
55596
55597 2006-09-18  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/javaversion.c: Include configmake.h.
55600
55601 2006-09-18  Bruno Haible  <bruno@clisp.org>
55602
55603         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
55604         avoid that the while loops be executed in a subshell.
55605
55606 2006-09-18  Bruno Haible  <bruno@clisp.org>
55607
55608         * MODULES.html.sh (func_module): Break long lines.
55609         Suggested by Bruce Korb <bkorb@gnu.org>.
55610
55611 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55612
55613         Speed up by a factor of 1.12.
55614         * gnulib-tool (nl): New variable.
55615         (func_import): Rewrite include directive extraction to only read each
55616         directive once.
55617
55618 2006-09-17  Bruno Haible  <bruno@clisp.org>
55619
55620         * modules/javaversion (Makefile.am): Remove DEFS setting.
55621         (Depends-on): Add configmake, for PKGDATADIR definition.
55622
55623 2006-09-17  Bruno Haible  <bruno@clisp.org>
55624
55625         * gnulib-tool (func_create_testdir): Rewrite all files at once.
55626
55627 2006-09-17  Bruno Haible  <bruno@clisp.org>
55628
55629         * gnulib-tool (func_append): New function, stolen from libtool.m4.
55630         (func_modules_transitive_closure, func_modules_add_dummy,
55631         func_modules_to_filelist, func_import, func_create_testdir,
55632         func_create_megatestdir, ...): Use it wherever possible.
55633         Suggested by Ralf Wildenhues.
55634
55635 2006-09-16  Karl Berry  <karl@gnu.org>
55636
55637         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
55638         to avoid sectioning errors.
55639         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
55640         [ifinfo]: blank line after @center-ed titles.
55641         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55642         Spell FSF address consistently with others.
55643         (These changes approved by rms.)
55644
55645 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55646
55647         Speed up by a factor of 1.61.
55648         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55649         already checked module names again.
55650
55651 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55652
55653         Speed up by a factor of 1.13.
55654         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55655         for new_files, and the input to func_add_or_update.
55656
55657 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55658
55659         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55660         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55661
55662 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55663
55664         * modules/mkancesdirs (Depends-on): Add fcntl.
55665         * modules/savewd: New file.
55666         * MODULES.html.sh (File system functions): Add savewd.
55667
55668         * modules/configmake (Makefile.am): Add support for the
55669         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
55670
55671 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55672
55673         * m4/savewd.m4: New file.
55674
55675 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55676
55677         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
55678         (dirchownmod): New arg FD.  All callers changed.
55679         Use FD rather than opening the directory ourself, as opening is
55680         now the caller's responsibility.
55681         * lib/dirchownmod.h: Likewise.
55682         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
55683         hosts that require <sys/types.h> before <sys/stat.h>.  Include
55684         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
55685         (test_dir): Remove.
55686         (mkancesdirs): Return length of prefix of FILE that has already
55687         been made, or -2 if there is a child doing the work.  Redo
55688         algorithm so that it is O(N) rather than O(N**2).  Optimize away
55689         ".", and treat ".." specially since it might stray back into
55690         already-created areas.  Use a subprocess if necessary.  New arg
55691         WD; all users changed.  MAKE_DIR function should now return 1
55692         if it creates a directory that is not readable.  Return -2 if
55693         a child process is spun off.
55694         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
55695         Adjust signature to match code.
55696         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
55697         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
55698         all users changed.
55699         * lib/savewd.c, lib/savewd.h: New files.
55700
55701 2006-09-15  Jim Meyering  <jim@meyering.net>
55702
55703         * modules/rename-dest-slash: New module.
55704         * MODULES.html.sh (posix_compat): Add it here.
55705
55706         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
55707
55708 2006-09-15  Jim Meyering  <jim@meyering.net>
55709
55710         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
55711         file.
55712
55713         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
55714
55715 2006-09-15  Jim Meyering  <jim@meyering.net>
55716
55717         * lib/rename-dest-slash.c (has_trailing_slash): Use
55718         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
55719         (rpl_rename_dest_slash): Perform the cheaper trailing slash
55720         test before testing whether SRC is a directory.
55721         Suggestions from Bruno Haible.
55722
55723         Avoid a warning about an unused variable.
55724         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
55725         into the #ifdef block where it's used.
55726
55727         * lib/rename-dest-slash.c: New file.
55728
55729 2006-09-14  Bruno Haible  <bruno@clisp.org>
55730
55731         * lib/allocsa.c: Include <config.h> unconditionally.
55732         * lib/asnprintf.c: Likewise.
55733         * lib/asprintf.c: Likewise.
55734         * lib/c-strcasecmp.c: Likewise.
55735         * lib/c-strcasestr.c: Likewise.
55736         * lib/c-strncasecmp.c: Likewise.
55737         * lib/c-strstr.c: Likewise.
55738         * lib/classpath.c: Likewise.
55739         * lib/clean-temp.c: Likewise.
55740         * lib/concatpath.c: Likewise.
55741         * lib/copy-file.c: Likewise.
55742         * lib/csharpcomp.c: Likewise.
55743         * lib/csharpexec.c: Likewise.
55744         * lib/execute.c: Likewise.
55745         * lib/fatal-signal.c: Likewise.
55746         * lib/findprog.c: Likewise.
55747         * lib/fwriteerror.c: Likewise.
55748         * lib/gl_array_list.c: Likewise.
55749         * lib/gl_array_oset.c: Likewise.
55750         * lib/gl_avltree_list.c: Likewise.
55751         * lib/gl_avltree_oset.c: Likewise.
55752         * lib/gl_avltreehash_list.c: Likewise.
55753         * lib/gl_carray_list.c: Likewise.
55754         * lib/gl_linked_list.c: Likewise.
55755         * lib/gl_linkedhash_list.c: Likewise.
55756         * lib/gl_list.c: Likewise.
55757         * lib/gl_oset.c: Likewise.
55758         * lib/gl_rbtree_list.c: Likewise.
55759         * lib/gl_rbtree_oset.c: Likewise.
55760         * lib/gl_rbtreehash_list.c: Likewise.
55761         * lib/imaxabs.c: Likewise.
55762         * lib/imaxdiv.c: Likewise.
55763         * lib/javacomp.c: Likewise.
55764         * lib/javaexec.c: Likewise.
55765         * lib/javaversion.c: Likewise.
55766         * lib/linebreak.c: Likewise.
55767         * lib/localcharset.c: Likewise.
55768         * lib/lock.c: Likewise.
55769         * lib/mbchar.c: Likewise.
55770         * lib/mbswidth.c: Likewise.
55771         * lib/mkdtemp.c: Likewise.
55772         * lib/pipe.c: Likewise.
55773         * lib/printf-args.c: Likewise.
55774         * lib/printf-parse.c: Likewise.
55775         * lib/progname.c: Likewise.
55776         * lib/progreloc.c: Likewise.
55777         * lib/readlink.c: Likewise.
55778         * lib/sh-quote.c: Likewise.
55779         * lib/stpcpy.c: Likewise.
55780         * lib/stpncpy.c: Likewise.
55781         * lib/strcasecmp.c: Likewise.
55782         * lib/strcasestr.c: Likewise.
55783         * lib/strcspn.c: Likewise.
55784         * lib/striconv.c: Likewise.
55785         * lib/strncasecmp.c: Likewise.
55786         * lib/strnlen1.c: Likewise.
55787         * lib/strstr.c: Likewise.
55788         * lib/strtok_r.c: Likewise.
55789         * lib/tls.c: Likewise.
55790         * lib/tmpdir.c: Likewise.
55791         * lib/unicodeio.c: Likewise.
55792         * lib/unsetenv.c: Likewise.
55793         * lib/vasnprintf.c: Likewise.
55794         * lib/vasprintf.c: Likewise.
55795         * lib/wait-process.c: Likewise.
55796         * lib/xallocsa.c: Likewise.
55797         * lib/xsetenv.c: Likewise.
55798         * lib/xstriconv.c: Likewise.
55799
55800 2006-09-13  Simon Josefsson  <jas@extundo.com>
55801
55802         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55803         that internally, suggested by Ralf Wildenhues
55804         <Ralf.Wildenhues@gmx.de>.
55805
55806 2006-09-13  Simon Josefsson  <jas@extundo.com>
55807
55808         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55809         @LIBOBJS@.
55810         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55811
55812 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55815         longer worry about uses that don't define HAVE_CONFIG_H.
55816         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
55817         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
55818         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
55819         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
55820         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
55821         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
55822         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
55823         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
55824         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
55825         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
55826         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
55827         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
55828         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
55829         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
55830         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
55831         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
55832         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
55833         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
55834         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
55835         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
55836         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
55837         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
55838         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
55839         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
55840         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
55841         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
55842         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
55843         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
55844         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
55845         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
55846         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
55847         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
55848         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
55849         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
55850         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
55851         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
55852         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
55853         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
55854         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
55855         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
55856         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
55857         Likewise.
55858
55859 2006-09-13  Eric Blake  <ebb9@byu.net>
55860
55861         * lib/getopt.c: Fix typo in last commit.
55862
55863 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55864
55865         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
55866         dgettext.
55867
55868 2006-09-12  Jim Meyering  <jim@meyering.net>
55869
55870         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
55871         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
55872         Reported by Nelson H. F. Beebe.
55873
55874 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55875
55876         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
55877         program_invocation_name and program_invocation_short_name are
55878         initialized.
55879         * lib/argp-namefrob.h: Move declarations of program_invocation_name
55880         and program_invocation_short_name to argp.h, so they are visible
55881         to user programs.
55882         * lib/argp.h: Likewise
55883
55884 2006-09-10  Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55887         m4/inttypes_h.m4, m4/uintmax_t.m4.
55888
55889 2006-09-10  Bruno Haible  <bruno@clisp.org>
55890
55891         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
55892         gl_AC_TYPE_UINTMAX_T.
55893
55894 2006-09-10  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
55897
55898 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55899
55900         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
55901         convention.  Text proposed by Bruno Haible.
55902         (struct argp_option): Document the use of N_() wrappers.
55903
55904         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
55905         '\v', and translate the two parts separately, instead of feeding
55906         the whole string to gettext.  This allows to exclude
55907         '\v' from the strings visible to the translator by writing doc
55908         strings as N_("..") "\v" N_("..").
55909
55910 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
55911
55912         * config/srclist.txt: Undo latest change; the bug was fixed.
55913
55914 2006-09-09  Bruno Haible  <bruno@clisp.org>
55915
55916         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
55917         assignments if building a library without libtool.
55918         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
55919         in func_emit_lib_Makefile_am.
55920         (func_import): When building a static library libfoo.a, arrange to
55921         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
55922         (func_create_testdir): Likewise.
55923         * modules/gc (configure.ac, Makefile.am): If building statically,
55924         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
55925         * modules/iconvme (configure.ac, Makefile.am): Likewise.
55926         * modules/striconv (configure.ac, Makefile.am): Likewise.
55927         Based on a suggestion by Ralf Wildenhues.
55928
55929 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55930
55931         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55932         Check for unistd.h too, since Autoconf doesn't assume POSIX.
55933         Also:
55934
55935         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55936         Add year_2050_test to catch glibc bug 2821
55937         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55938
55939         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55940         Prefer #ifdef to #if.
55941
55942         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
55943         Return from 'main' instead of calling 'exit'.
55944
55945 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55946
55947         * lib/mktime.c (guess_time_tm): Fix bug where mktime
55948         returned the maximum time_t value rather than (time_t) -1.
55949         Problem originally reported by William Bardwell
55950         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55951
55952         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55953         Moved to here ...
55954         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55955         ... from here.
55956
55957 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55958
55959         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
55960         2821 is fixed.
55961
55962 2006-09-08  Jim Meyering  <jim@meyering.net>
55963
55964         Don't make generated files read-only.  That would bother too many
55965         people.  However, do retain the ability to work when targets are
55966         read-only: remove the destination and temporary files before writing
55967         them (when generated via sed or echo), or by using the -f option for
55968         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
55969         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55970         * modules/byteswap, modules/configmake, modules/fcntl:
55971         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55972         * modules/localcharset, modules/netinet_in, modules/poll:
55973         * modules/stdbool, modules/stdint, modules/sys_select:
55974         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55975
55976 2006-09-08  Jim Meyering  <jim@meyering.net>
55977
55978         Avoid new build failure on FreeBSD 6.0.
55979         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
55980         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
55981         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
55982
55983 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55984
55985         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
55986
55987 2006-09-07  Jim Meyering  <jim@meyering.net>
55988
55989         Fix global typo in last change: use chmod u-w, not chmod u-x.
55990         Spotted by Paul Eggert and Bruce Korb.
55991         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55992         * modules/byteswap, modules/configmake, modules/fcntl:
55993         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55994         * modules/localcharset, modules/netinet_in, modules/poll:
55995         * modules/stdbool, modules/stdint, modules/sys_select:
55996         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55997
55998 2006-09-06  Jim Meyering  <jim@meyering.net>
55999
56000         Make generated files be read-only.
56001         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56002         Ensure that each generated file is now read-only.
56003         * modules/argz: Likewise.
56004         * modules/arpa_inet: Likewise.
56005         * modules/byteswap: Likewise.
56006         * modules/configmake: Likewise.
56007         * modules/fcntl: Likewise.
56008         * modules/fnmatch: Likewise.
56009         * modules/getopt: Likewise.
56010         * modules/glob: Likewise.
56011         * modules/inttypes: Likewise.
56012         * modules/netinet_in: Likewise.
56013         * modules/poll: Likewise.
56014         * modules/stdbool: Likewise.
56015         * modules/stdint: Likewise.
56016         * modules/sys_select: Likewise.
56017         * modules/sys_socket: Likewise.
56018         * modules/sys_stat: Likewise.
56019         * modules/sysexits: Likewise.
56020         * modules/localcharset: Same as above, but continue using temporary
56021         file named "t-$@" (why different?) rather than the "$@-t" used
56022         everywhere else.
56023
56024         * modules/sysexits (Makefile.am): Replace literal occurrences
56025         of "sysexit.h" more readable, and more consistent, "$@".
56026
56027 2006-09-06  Bruno Haible  <bruno@clisp.org>
56028
56029         * modules/striconv: New file.
56030         * modules/xstriconv: New file.
56031         * MODULES.html.sh (Internationalization functions): Add striconv,
56032         xstriconv.
56033
56034 2006-09-06  Bruno Haible  <bruno@clisp.org>
56035
56036         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56037         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56038         not using libtool correctly.
56039
56040 2006-09-06  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/striconv.h: New file.
56043         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56044         iconvstring.c.
56045         * lib/xstriconv.h: New file.
56046         * lib/xstriconv.c: New file.
56047
56048 2006-09-06  Bruno Haible  <bruno@clisp.org>
56049
56050         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56051         lib_..._LDFLAGS.
56052
56053 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56054
56055         * lib/argz_.h: Sync from Libtool.
56056
56057         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56058                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56059
56060         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56061
56062 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56063
56064         * modules/trim: New file.
56065
56066 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56067
56068         * lib/trim.h: New file.
56069         * lib/trim.c: New file.
56070
56071 2006-09-05  Bruno Haible  <bruno@clisp.org>
56072
56073         * MODULES.html.sh (String handling): Add trim.
56074
56075 2006-09-04  Karl Berry  <karl@gnu.org>
56076
56077         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56078         until next release.
56079
56080 2006-09-03  Bruno Haible  <bruno@clisp.org>
56081
56082         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56083         correctly.
56084
56085 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56086
56087         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56088         not gl_GETLOADAVG.  Omit unneeded semicolons.
56089         Problems reported by Ralf Wildenhues in
56090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56091         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56092         at the end, which is the usual gnulib style.
56093
56094         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56095         of doing all the work ourselves.
56096         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56097         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56098
56099 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56100
56101         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56102         Problem reported by Ralf Wildenhues in
56103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56104
56105         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56106         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56107
56108 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56109
56110         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56111         yesterday's patch by changing test -n to test -z.
56112
56113 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56116         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56117         the former is now obsolescent.
56118
56119         * modules/chdir-long (Depends-on): Add fcntl.
56120
56121 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56124         obsolescent, and programs should use gnulib instead.
56125         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56126         but with prefixes changed.
56127
56128 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56129
56130         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56131         or stdbool.h, because they might not exist while configuring.
56132
56133         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56134         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56135         does that for us.
56136         (O_DIRECTORY): Remove.
56137
56138 2006-08-31  Eric Blake  <ebb9@byu.net>
56139
56140         * gnulib-tool: Don't let emacs change spaces to TAB.
56141
56142 2006-08-31  Bruno Haible  <bruno@clisp.org>
56143
56144         * gnulib-tool: When calling func_import more than once, do it in a
56145         subshell.
56146         Reported by Eric Blake <ebb9@byu.net>.
56147
56148 2006-08-31  Bruno Haible  <bruno@clisp.org>
56149
56150         * gnulib-tool (nl): Remove variable.
56151         (sed_transform_lib_file): Use more robust test for config-h module.
56152         (func_import): Fix typo in 2006-08-25 patch.
56153
56154 2006-08-31  Bruno Haible  <bruno@clisp.org>
56155
56156         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56157         specified, augment Makefile.am variables instead of assigning them.
56158
56159 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56160
56161         Work around a bug in both the Linux and SunOS 64-bit kernels:
56162         nanosleep mishandles sleeps for longer than 2**31 seconds.
56163         Problem reported by Frank v Waveren in
56164         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56166         Check for nanosleep bug.
56167         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56168
56169 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56170
56171         Work around a bug in both the Linux and SunOS 64-bit kernels:
56172         nanosleep mishandles sleeps for longer than 2**31 seconds.
56173         Problem reported by Frank v Waveren in
56174         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56175         * lib/nanosleep.c (BILLION): New constant.
56176         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
56177         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
56178         implementation.
56179
56180 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56181
56182         * modules/nanosleep (Depends-on): Add gettime.
56183
56184 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56185         and Simon Josefsson  <jas@extundo.com>
56186         and Oskar Liljeblad  <oskar@osk.mine.nu>
56187
56188         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
56189         * gnulib-tool (func_import): New license type 'unmodifiable license
56190         text'.
56191         * modules/fdl: Use it.  Longer description.
56192         * module/gpl, module/lgpl: New files.
56193
56194 2006-08-30  Jim Meyering  <jim@meyering.net>
56195
56196         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
56197         shadowing the parameter.
56198
56199 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56200
56201         Sync from Libtool:
56202
56203         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56204
56205         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
56206         sharing with gnulib.  Report by Eric Blake.
56207
56208 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56209
56210         * modules/isapipe: New file.
56211         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
56212
56213 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56214
56215         * modules/configmake (Makefile.am): Add a comment, and omit
56216         the CONFIGMAKE_ prefix from generated macro names.  Suggested
56217         by Bruno Haible.
56218
56219 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56220
56221         * m4/isapipe.m4: New file.
56222
56223 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56224
56225         * lib/isapipe.c, lib/isapipe.h: New files.
56226
56227 2006-08-29  Jim Meyering  <jim@meyering.net>
56228
56229         * modules/configmake (Makefile.am): Make configmake.h depend on
56230         Makefile.  Otherwise, a stale configmake.h could hang around.
56231
56232 2006-08-29  Eric Blake  <ebb9@byu.net>
56233
56234         * lib/error.c (error_at_line, print_errno_message): Match libc, after
56235         resolution of upstream bug 3044.
56236
56237 2006-08-29  Bruno Haible  <bruno@clisp.org>
56238
56239         * modules/localcharset (Depends-on): Add configmake.
56240         (Makefile.am): Remove setting of LIBDIR through DEFS.
56241
56242 2006-08-29  Bruno Haible  <bruno@clisp.org>
56243
56244         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
56245         defined.
56246
56247 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56248
56249         * modules/fcntl: New file.
56250         * modules/chdir-safer (Depends-on): Add fcntl.
56251         * modules/fts: Likewise.
56252         * modules/mkdir-p: Likewise.
56253
56254         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
56255         This undoes the most recent change, since we're now addressing the
56256         problem in a different way.
56257
56258         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
56259         into output, since the output might be called Makefile.am even
56260         if $makefile_name is something different.
56261         (func_import): Use $makefile_am rather than
56262         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
56263         empty.
56264
56265         * modules/inttypes (Files): Add m4/inttypes-h.m4.
56266
56267 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56268
56269         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
56270         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
56271         recent change to stdint.m4, since we're now addressing the problem in a
56272         different way.
56273
56274 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56275
56276         * m4/fcntl_h.m4: New file.
56277
56278 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56279
56280         * lib/fcntl_.h: New file.
56281         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
56282         the fcntl module.
56283         * lib/dirchownmod.c: Likewise.
56284         * lib/fts.c: Likewise.
56285
56286         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
56287         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
56288         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
56289         just before including <inttypes.h>, to avoid circular inclusion.
56290
56291 2006-08-28  Jim Meyering  <jim@meyering.net>
56292
56293         * doc/visibility.texi: Actually read and correct the grammar of the
56294         sentence affected by yesterday's change.
56295
56296 2006-08-28  Eric Blake  <ebb9@byu.net>
56297
56298         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
56299         needs wrapper.
56300
56301 2006-08-28  Eric Blake  <ebb9@byu.net>
56302
56303         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
56304
56305 2006-08-28  Eric Blake  <ebb9@byu.net>
56306
56307         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
56308
56309 2006-08-28  Bruno Haible  <bruno@clisp.org>
56310
56311         * modules/c-strstr: New file, from GNU gettext.
56312         * MODULES.html.sh (String handling): Add c-strstr.
56313
56314 2006-08-28  Bruno Haible  <bruno@clisp.org>
56315
56316         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
56317         macros.
56318         Reported by Eric Blake.
56319
56320 2006-08-28  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
56323         (VASNPRINTF): Return a string of length > INT_MAX without failing.
56324         * lib/vasprintf.c: Include errno.h, limits.h.
56325         (EOVERFLOW): New fallback definition.
56326         (vasprintf): Test here whether the string length is > INT_MAX.
56327         * lib/vsnprintf.c: Include errno.h, limits.h.
56328         (EOVERFLOW): New fallback definition.
56329         (vsnprintf): Fix bug when generated string was too long for the buffer.
56330         Test here whether the string length is > INT_MAX.
56331
56332 2006-08-28  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/inttypes_.h (SCNX*): Remove definitions.
56335         Reported by Eric Blake.
56336
56337 2006-08-28  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/c-strstr.h: New file, from GNU gettext.
56340         * lib/c-strstr.c: New file, from GNU gettext.
56341
56342 2006-08-28  Bruno Haible  <bruno@clisp.org>
56343
56344         * gnulib-tool: Reorder some statements.
56345
56346 2006-08-28  Bruno Haible  <bruno@clisp.org>
56347
56348         * gnulib-tool: New option --makefile-name.
56349         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
56350         $makefile_name.
56351         (func_import): Write $makefile_name to the cache file, and read it from
56352         there unless explicitly specified. Use $makefile_name as file name
56353         instead of Makefile.am. Adjust the recommendations accordingly.
56354
56355 2006-08-28  Bruno Haible  <bruno@clisp.org>
56356
56357         * gnulib-tool (func_verify_module): Check against misapplying patch.
56358
56359 2006-08-28  Bruno Haible  <bruno@clisp.org>
56360
56361         * gnulib-tool (func_relativize, func_relconcat): New functions.
56362         Give an error if --local-dir is given with --update.
56363         Remove trailing slashes from $local_gnulib_dir.
56364         (func_import): Store the relativized $local_gnulib_dir in
56365         gnulib-cache.m4, and read it from there if not specified explicitly.
56366
56367 2006-08-28  Bruno Haible  <bruno@clisp.org>
56368
56369         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
56370         is the current directory. Respect also $local_gnulib_dir.
56371
56372 2006-08-28  Bruno Haible  <bruno@clisp.org>
56373             Simon Josefsson  <jas@extundo.com>
56374
56375         BeOS portability.
56376         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
56377
56378 2006-08-27  Jim Meyering  <jim@meyering.net>
56379
56380         * doc/visibility.texi: Remove duplicate word: "pointer".
56381
56382 2006-08-26  Bruno Haible  <bruno@clisp.org>
56383
56384         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
56385         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
56386         (Makefile.am): Create inttypes.h from inttypes_.h.
56387         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
56388
56389         * modules/imaxabs: New file.
56390
56391         * modules/imaxdiv: New file.
56392
56393 2006-08-26  Bruno Haible  <bruno@clisp.org>
56394
56395         * m4/inttypes.m4: New file.
56396         * m4/_inttypes_h.m4: Remove file.
56397         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
56398         PRI_MACROS_BROKEN.
56399         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
56400
56401         * m4/imaxabs.m4: New file.
56402
56403         * m4/imaxdiv.m4: New file.
56404
56405 2006-08-26  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/inttypes_.h: New file.
56408         * lib/inttypes.h: Remove file.
56409         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
56410
56411         * lib/imaxabs.c: New file.
56412
56413         * lib/imaxdiv.c: New file.
56414
56415 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56416
56417         New config-h module, so that "make" output needn't be cluttered
56418         by -DHAVE_CONFIG_H.
56419         * MODULES.html.sh (Support for building libraries and executables):
56420         Add config-h.
56421         * modules/config-h: New file.
56422         * gnulib-tool (nl, sed_transform_lib_file): New vars.
56423         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
56424         the config-h module is used.
56425
56426         New configmake module, so that "make" output needn't be cluttered
56427         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
56428         * MODULES.html.sh (Support for building libraries and executables):
56429         Add configmake.
56430         * modules/configmake: New file.
56431
56432 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         * m4/config-h.m4: New file.
56435
56436 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * config/srclist.txt: Add elisp-comp.
56439
56440 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56441
56442         * MODULES.html.sh (Support for building libraries and executables):
56443         Add elisp-comp.
56444         * build-aux/elisp-comp: New file.
56445         * modules/elisp-comp: New file.
56446
56447 2006-08-24  Bruno Haible  <bruno@clisp.org>
56448
56449         * gnulib-tool (func_create_testdir): Use non-default values of
56450         sourcebase and m4base.
56451
56452 2006-08-24  Bruno Haible  <bruno@clisp.org>
56453
56454         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
56455         HTML structure.
56456
56457 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56458
56459         * modules/openat (Depends-on): Add lchown.
56460
56461 2006-08-23  Bruno Haible  <bruno@clisp.org>
56462
56463         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
56464         of gl_LOCK_EARLY instead of gl_LOCK.
56465
56466 2006-08-23  Bruno Haible  <bruno@clisp.org>
56467
56468         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
56469         on OSF/1 to no.
56470         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
56471
56472 2006-08-23  Bruno Haible  <bruno@clisp.org>
56473
56474         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
56475         as unusable.
56476
56477         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
56478         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
56479         (gl_LOCK): New macro.
56480
56481 2006-08-22  Simon Josefsson  <jas@extundo.com>
56482
56483         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
56484         to md5 module.
56485
56486 2006-08-22  Simon Josefsson  <jas@extundo.com>
56487
56488         * MODULES.html.sh: Add "Support for maintaining and release
56489         projects".
56490
56491         * build-aux/gnupload: New file, from coreutils.
56492
56493 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56494
56495         Avoid the need for AC_LIBSOURCES in m4 macros.
56496         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
56497         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
56498         * modules/check-version (EXTRA_DIST): Add check-version.h.
56499         * modules/crc (EXTRA_DIST): Add crc.h.
56500         * modules/des (EXTRA_DIST): Add des.h.
56501         * modules/gc (EXTRA_DIST): Add gc.h.
56502         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
56503         * modules/getline (EXTRA_DIST): Add getline.h.
56504         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
56505         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
56506         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
56507         * modules/md2 (EXTRA_DIST): Add md2.h.
56508         * modules/md4 (EXTRA_DIST): Add md4.h.
56509         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
56510         * modules/read-file (EXTRA_DIST): Add read-file.h.
56511         * modules/readline (EXTRA_DIST): Add readline.h.
56512         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
56513         rijndael-api-fst.h.
56514
56515 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * m4/rijndael.m4 (gl_ARCFOUR):
56518         * m4/arctwo.m4 (gl_ARCTWO):
56519         * m4/check-version.m4 (gl_CHECK_VERSION):
56520         * m4/crc.m4 (gl_CRC):
56521         * m4/des.m4 (gl_DES):
56522         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
56523         * m4/gc.m4 (gl_GC):
56524         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
56525         * m4/getline.m4 (gl_FUNC_GETLINE):
56526         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
56527         * m4/hmac-md5.m4 (gl_HMAC_MD5):
56528         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
56529         * m4/md2.m4 (gl_MD2):
56530         * m4/md4.m4 (gl_MD4):
56531         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
56532         * m4/read-file.m4 (gl_FUNC_READ_FILE):
56533         * m4/readline.m4 (gl_FUNC_READLINE):
56534         * m4/rijndael.m4 (gl_RIJNDAEL):
56535         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56536         to get the necessary .h files and whatnot.
56537
56538 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56539
56540         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
56541         gnulib rather than the other way around.
56542         * config/srclistvars.sh (COREUTILS): Remove.
56543
56544 2006-08-22  Jim Meyering  <jim@meyering.net>
56545
56546         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
56547
56548         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
56549
56550 2006-08-22  Eric Blake  <ebb9@byu.net>
56551
56552         * modules/regexprops-generic: New file.
56553         * MODULES.html.sh (Support for building documentation): List it.
56554
56555 2006-08-22  Eric Blake  <ebb9@byu.net>
56556
56557         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
56558         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
56559         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
56560         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
56561
56562 2006-08-22  Bruno Haible  <bruno@clisp.org>
56563
56564         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
56565         and lib_LTLIBRARIES like the other lib_* variables.
56566
56567 2006-08-22  Bruno Haible  <bruno@clisp.org>
56568
56569         * build-aux/x-to-1.in: New file, from GNU gettext.
56570
56571 2006-08-22  Bruno Haible  <bruno@clisp.org>
56572
56573         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
56574         <utmpx.h> exists.
56575
56576 2006-08-22  Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
56579         <utmpx.h> exists.
56580
56581 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56582
56583         BeOS portability.
56584         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
56585         exist.
56586         Problem reported by Bruno Haible.
56587
56588 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56589
56590         Avoid the need for AC_LIBSOURCES in m4 macros.
56591         * modules/acl (EXTRA_DIST): Add acl.h.
56592         * modules/argmatch (Files): Add m4/argmatch.m4.
56593         (configure.ac): Add gl_ARGMATCH.
56594         (EXTRA_DIST): Renamed from lib_SOURCES, for
56595         consistency with the other modules.  Remove argmatch.c.
56596         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
56597         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
56598         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
56599         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
56600         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
56601         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
56602         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
56603         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
56604         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
56605         * modules/closeout (EXTRA_DIST): Add closeout.h.
56606         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
56607         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
56608         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
56609         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
56610         dirname.h; remove basename.c and stripslash.c.
56611         * modules/exclude (EXTRA_DIST): Add exclude.h.
56612         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
56613         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
56614         * modules/file-type (EXTRA_DIST): Add file-type.h.
56615         * modules/filemode (EXTRA_DIST): Add filemode.h.
56616         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
56617         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56618         * modules/fpending (EXTRA_DIST): Add __fpending.h.
56619         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
56620         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
56621         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
56622         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
56623         * modules/getdate (EXTRA_DIST): Add getdate.c.
56624         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
56625         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
56626         * modules/getpass (EXTRA_DIST): Add getpass.h.
56627         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
56628         * modules/group-member (EXTRA_DIST): Add group-member.h.
56629         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
56630         * modules/hash (EXTRA_DIST): Add hash.h.
56631         * modules/human (EXTRA_DIST): Add human.h.
56632         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
56633         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
56634         * modules/lchown (EXTRA_DIST): Add lchown.h.
56635         * modules/long-options (EXTRA_DIST): Add long-options.h.
56636         * modules/lstat (EXTRA_DIST): Add lstat.h.
56637         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
56638         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
56639         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
56640         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
56641         * modules/memxor (EXTRA_DIST): Add memxor.h.
56642         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56643         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56644         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56645         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56646         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56647         * modules/physmem (EXTRA_DIST): Add physmem.h.
56648         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56649         * modules/posixver (EXTRA_DIST): Add posixver.h.
56650         * modules/quote (EXTRA_DIST): Add quote.h.
56651         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56652         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56653         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56654         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56655         regex_internal.h regexec.c.
56656         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56657         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56658         * modules/same (EXTRA_DIST): Add same.h.
56659         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56660         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56661         * modules/savedir (EXTRA_DIST): Add savedir.h.
56662         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56663         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56664         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56665         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56666         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56667         * modules/strdup (EXTRA_DIST): Add strdup.h.
56668         * modules/strftime (EXTRA_DIST): Add strftime.h.
56669         * modules/strndup (EXTRA_DIST): Add strndup.h.
56670         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
56671         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
56672         * modules/time_r (EXTRA_DIST): Add time_r.h.
56673         * modules/timespec (EXTRA_DIST): Add timespec.h.
56674         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56675         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
56676         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
56677         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
56678         * modules/userspec (EXTRA_DIST): Add userspec.h.
56679         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
56680         * modules/utimens (EXTRA_DIST): Add utimens.h.
56681         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
56682         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
56683         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
56684         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
56685         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
56686         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
56687         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
56688         * modules/yesno (EXTRA_DIST): Add yesno.h.
56689
56690 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
56693
56694         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
56695         * m4/dev-ino.m4, same-inode.m4: Remove.
56696
56697         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
56698         * m4/acl.m4 (AC_FUNC_ACL):
56699         * m4/backupfile.m4 (gl_BACKUPFILE):
56700         * m4/c-strtod.m4 (gl_C99_STRTOLD):
56701         * m4/canon-host.m4 (gl_CANON_HOST):
56702         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
56704         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
56705         * m4/cloexec.m4 (gl_CLOEXEC):
56706         * m4/close-stream.m4 (gl_CLOSE_STREAM):
56707         * m4/closeout.m4 (gl_CLOSEOUT):
56708         * m4/dirfd.m4 (gl_FUNC_DIRFD):
56709         * m4/dirname.m4 (gl_DIRNAME):
56710         * m4/exclude.m4 (gl_EXCLUDE):
56711         * m4/exitfail.m4 (gl_EXITFAIL):
56712         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
56713         * m4/file-type.m4 (gl_FILE_TYPE):
56714         * m4/filemode.m4 (gl_FILEMODE):
56715         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
56716         * m4/fpending.m4 (gl_FUNC_FPENDING):
56717         * m4/fprintftime.m4 (gl_FPRINTFTIME):
56718         * m4/fts.m4 (gl_FUNC_FTS):
56719         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
56720         * m4/getdate.m4 (gl_GETDATE):
56721         * m4/gethrxtime.m4 (gl_GETHRXTIME):
56722         * m4/getpagesize.m4 (gl_GETPAGESIZE):
56723         * m4/getpass.m4 (gl_FUNC_GETPASS):
56724         * m4/gettime.m4 (gl_GETTIME):
56725         * m4/getugroups.m4 (gl_GETUGROUPS):
56726         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
56727         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
56728         * m4/hard-locale.m4 (gl_HARD_LOCALE):
56729         * m4/hash.m4 (gl_HASH):
56730         * m4/idcache.m4 (gl_IDCACHE):
56731         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
56732         * m4/lchown.m4 (gl_FUNC_LCHOWN):
56733         * m4/long-options.m4 (gl_LONG_OPTIONS):
56734         * m4/lstat.m4 (gl_FUNC_LSTAT):
56735         * m4/md5.m4 (gl_MD5):
56736         * m4/memcasecmp.m4 (gl_MEMCASECMP):
56737         * m4/memcoll.m4 (gl_MEMCOLL):
56738         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
56739         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
56740         * m4/memxor.m4 (gl_MEMXOR):
56741         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
56742         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
56743         * m4/modechange.m4 (gl_MODECHANGE):
56744         * m4/mountlist.m4 (gl_MOUNTLIST):
56745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56746         * m4/openat.m4 (gl_FUNC_OPENAT):
56747         * m4/pathmax.m4 (gl_PATHMAX):
56748         * m4/physmem.m4 (gl_PHYSMEM):
56749         * m4/posixtm.m4 (gl_POSIXTM):
56750         * m4/posixver.m4 (gl_POSIXVER):
56751         * m4/quote.m4 (gl_QUOTE):
56752         * m4/quotearg.m4 (gl_QUOTEARG):
56753         * m4/readtokens.m4 (gl_READTOKENS):
56754         * m4/readutmp.m4 (gl_READUTMP):
56755         * m4/regex.m4 (gl_REGEX):
56756         * m4/safe-read.m4 (gl_SAFE_READ):
56757         * m4/safe-write.m4 (gl_SAFE_WRITE):
56758         * m4/same.m4 (gl_SAME):
56759         * m4/save-cwd.m4 (gl_SAVE_CWD):
56760         * m4/savedir.m4 (gl_SAVEDIR):
56761         * m4/settime.m4 (gl_SETTIME):
56762         * m4/sha1.m4 (gl_SHA1):
56763         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
56764         * m4/stat-macros.m4 (gl_STAT_MACROS):
56765         * m4/stat-time.m4 (gl_STAT_TIME):
56766         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
56767         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
56768         * m4/strdup.m4 (gl_FUNC_STRDUP):
56769         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
56770         * m4/strndup.m4 (gl_FUNC_STRNDUP):
56771         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
56772         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
56773         * m4/time_r.m4 (gl_TIME_R):
56774         * m4/timespec.m4 (gl_TIMESPEC):
56775         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
56776         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56777         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56778         * m4/userspec.m4 (gl_USERSPEC):
56779         * m4/utimecmp.m4 (gl_UTIMECMP):
56780         * m4/utimens.m4 (gl_UTIMENS):
56781         * m4/xalloc.m4 (gl_XALLOC):
56782         * m4/xgetcwd.m4 (gl_XGETCWD):
56783         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56784         * m4/xreadlink.m4 (gl_XREADLINK):
56785         * m4/xstrtod.m4 (gl_XSTRTOD):
56786         * m4/yesno.m4 (gl_YESNO):
56787         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56788         to get the necessary .h files and whatnot.
56789
56790 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56791             Bruno Haible  <bruno@clisp.org>
56792
56793         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56794         /bin/sh understanding of '!' conditional negation.
56795
56796 2006-08-21  Jim Meyering  <jim@meyering.net>
56797
56798         * modules/openat (Depends-on): Really alphabetize.
56799
56800         * modules/acl (Depends-on): Add error and quote.
56801
56802         * check-module (find_included_lib_files): Add at-func.c to the
56803         ok-to-include-more-than-once white list.
56804
56805         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56806
56807 2006-08-21  Bruno Haible  <bruno@clisp.org>
56808
56809         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56810         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56811         Reported by Martin Lambers <marlam@marlam.de>.
56812
56813 2006-08-21  Bruno Haible  <bruno@clisp.org>
56814
56815         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
56816         specify an installation location, don't emit a noinst_LIBRARIES or
56817         noinst_LTLIBRARIES assignment.
56818
56819 2006-08-21  Bruno Haible  <bruno@clisp.org>
56820
56821         BeOS portability.
56822         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
56823         BeOS has mbrtowc() but no <wctype.h>.
56824
56825 2006-08-21  Bruno Haible  <bruno@clisp.org>
56826
56827         BeOS portability.
56828         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
56829         exist.
56830
56831 2006-08-21  Bruno Haible  <bruno@clisp.org>
56832
56833         BeOS portability.
56834         * lib/mbchar.h: Include <wctype.h> only if it exists.
56835
56836 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56837
56838         Remove files that are no longer needed by their respective modules.
56839         * m4/obstack.m4: Remove.
56840         * m4/strerror_r.m4: Remove.
56841         * m4/uint32_t.m4: Remove.
56842         * m4/uintptr_t.m4: Remove.
56843         * m4/ullong_max.m4: Remove.
56844         * m4/xstrtoimax.m4: Remove.
56845         * m4/xstrtoumax.m4: Remove.
56846
56847         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
56848         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
56849         dependencies now capture this.
56850
56851         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
56852         Do not use AC_LIBSOURCES, since gnulib modules now do this.
56853         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
56854         * m4/human.m4 (gl_HUMAN): Likewise.
56855         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
56856         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
56857
56858         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
56859
56860         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
56861         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
56862         stdint.
56863         * m4/human.m4 (gl_HUMAN): Likewise.
56864         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
56865         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
56866         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56867         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56868         * m4/xstrtol (gl_XSTRTOL): Likewise.
56869
56870         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
56871         AC_TYPE_LONG_LONG_INT.
56872         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56873         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
56874         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
56875         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56876
56877         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
56878         on stdbool.
56879
56880         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
56881         (gl_PREREQ_XSTRTOUL): Remove.
56882
56883         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
56884
56885         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
56886         mode.
56887
56888 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         Add and change modules to make it easier for coreutils to use
56891         gnulib-tool.
56892         * modules/backupfile (Files): Remove m4/d-ino.m4.
56893         (Depends-on): Add d-ino.
56894         * modules/cycle-check (Depends-on): Add stdint.
56895         (lib_SOURCES): Add cycle-check.h.
56896         * modules/d-ino: New module.
56897         * modules/d-type: New module.
56898         * modules/error (Files): Remove m4/strerror_r.m4.
56899         * modules/filemode (Files): Add m4/st_dm_mode.m4.
56900         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56901         m4/inttypes_h.m4, m4/uintmax_t.m4.
56902         (Depends-on): Add stdint.
56903         (lib_SOURCES): Add fsusage.h.
56904         * modules/getcwd (Files): Remove d-ino.m4.
56905         (Depends-on): Add d-ino.
56906         * modules/getndelim2 (Depends-on): Add stdint.
56907         * modules/glob (Files): Remove m4/d-type.m4.
56908         (Depends-on): Add d-type.
56909         * modules/host-os: New module.
56910         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
56911         m4/inttypes_h.m4, m4/uintmax_t.m4.
56912         * Depends-on: Add stdint.
56913         (lib_SOURCES): Add human.h.
56914         * modules/inttostr (Files): Remove m4/intmax_t.m4,
56915         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
56916         m4/uintmax_t.m4, m4/ulonglong.m4.
56917         (Depends-on): Add stdint.
56918         (EXTRA_DIST): Add inttostr.h.
56919         * modules/lchmod: New module.
56920         * modules/link-follow: New module.
56921         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
56922         (Depends-on): Add lchmod.
56923         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
56924         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
56925         (Depends-on): Add stdint.
56926         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
56927         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
56928         (Depends-on): Add stdint.
56929         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
56930         * modules/perl: New module.
56931         * modules/regex (Depends-on): Add stdint.
56932         * modules/rmdir-errno: New module.
56933         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56934         m4/intmax_t.m4.
56935         (Depends-on): Add stdint.
56936         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56937         m4/uintmax_t.m4.
56938         (Depends-on): Add stdint.
56939         * modules/unlink-busy: New module.
56940         * modules/utimecmp (Depends-on): Add stdint.
56941         * modules/uptime: New module.
56942         * modules/winsz-ioctl: New module.
56943         * modules/winsz-termios: New module.
56944         * modules/xnanosleep (Depends-on): Add nanosleep.
56945         * modules/ullong_max: Remove.
56946         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
56947         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
56948         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
56949         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
56950         (Depends-on): Add inttypes.
56951         (lib_SOURCES): Add xstrtol.h.
56952         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
56953         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
56954         * MODULES.html.sh: Move 'assert' into the assert section.
56955         Move 'dummy' into the linking section.
56956         Remove ullong_max.
56957         Add section for compatibility checks for POSIX:2001 functions,
56958         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
56959         winsz-ioctl, and winsz-termios into it.
56960         Add lchmod.
56961         Add top-level Misc section and put host-os, perl, and uptime
56962         into it.
56963
56964 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56965
56966         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
56967         now assume the stdint module.  Do not include inttypes.h.
56968         * lib/fsusage.h: Likewise.
56969         * lib/getndelim2.c: Likewise.
56970         * lib/human.h: Likewise.
56971         * lib/inttostr.h: Likewise.
56972         * lib/obstack.c: Likewise.
56973         * lib/regex_internal.h: Likewise.
56974         * lib/tempname.c: Likewise.
56975         * lib/utimecmp.c: Likewise.
56976         * lib/xstrtol.h: Likewise.
56977
56978         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
56979
56980         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
56981         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
56982         * lib/xtime.h: Likewise.
56983
56984 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * modules/openat (Files): Add lib/fchmodat.c.
56987         Fixes problem reported by Jay Youngman.
56988
56989 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
56992         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
56993
56994 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
56995             Bruno Haible  <bruno@clisp.org>
56996
56997         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
56998         and is a script that invokes bison. Tighten the code. Add comments.
56999
57000 2006-08-18  Jim Meyering  <jim@meyering.net>
57001
57002         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57003         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57004         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57005         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57006
57007 2006-08-18  Bruno Haible  <bruno@clisp.org>
57008
57009         * modules/bison-i18n: New file.
57010         * MODULES.html.sh (Internationalization functions): Add it.
57011
57012 2006-08-18  Bruno Haible  <bruno@clisp.org>
57013
57014         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57015         sys/statvfs.h. When getmntinfo was found, check its declaration and
57016         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57017
57018 2006-08-18  Bruno Haible  <bruno@clisp.org>
57019
57020         * m4/bison-i18n.m4: New file, from bison.
57021
57022 2006-08-18  Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57025         (ME_DUMMY): Treat "kernfs" as a dummy.
57026         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57027
57028 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57029
57030         Update from coreutils.
57031
57032         2006-08-15  Jim Meyering  <jim@meyering.net>
57033
57034         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57035
57036         2006-01-17  Jim Meyering  <jim@meyering.net>
57037
57038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57039
57040         2006-01-11  Jim Meyering  <jim@meyering.net>
57041
57042         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57043         Check for the lchmod function.
57044
57045 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57046
57047         Update from coreutils.
57048
57049         * lib/__fpending.h: Add copyright notice.
57050         * lib/fprintftime.h: Likewise.
57051         * lib/savedir.c: Use (C) in copyright notice.
57052         * lib/savedir.h: Likewise.
57053
57054         2006-08-15  Jim Meyering  <jim@meyering.net>
57055
57056         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57057         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57058         in support of the EXPECTED_ERRNO macro.
57059         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57060         definitions.  Instead, define the appropriate symbols and include
57061         "at-func.c".
57062         * lib/mkdirat.c (mkdirat): Likewise.
57063         * lib/fchmodat.c (fchmodat): Likewise.
57064         (ENOSYS): Remove definition.
57065         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57066         it.  Don't include "unistd--.h" -- it wasn't ever used.
57067
57068         2006-01-17  Jim Meyering  <jim@meyering.net>
57069
57070         Rewrite fts.c not to change the current working directory,
57071         by using openat, fstatat, fdopendir, etc..
57072
57073         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57074         (HAVE_OPENAT_SUPPORT): Define.
57075         [_LIBC] (fchdir): Don't undef or define; no longer used.
57076         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57077         Now, this `function' always succeeds, and consumes its file descriptor
57078         parameter -- so callers must not close such FDs.  Update callers.
57079         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57080         (diropen): Add parameter, SP.  Adjust all callers.
57081         Implement using diropen_fd, rather than open.
57082         (fts_open): Initialize new member, fts_cwd_fd.
57083         Remove fts_rft-setting code.
57084         (fts_close): Close fts_cwd_fd, if necessary.
57085         (__opendir2): Define in terms of opendir or opendirat,
57086         depending on whether the FST_NOCHDIR flag is set.
57087         (fts_build): Since fts_safe_changedir consumes its FD, and since
57088         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57089         and close the dup'd file descriptor upon failure.
57090         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57091         (fts_safe_changedir): Tweak semantics to reflect that this function
57092         now calls cwd_advance_fd and hence consumes its FD argument.
57093         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57094         [struct FTS] (fts_rft): Remove now-unused member.
57095         [struct FTS] (fts_cycle.state): Improve comment.
57096
57097         * lib/openat.c (openat_needs_fchdir): New function.
57098         * lib/openat.h (openat_needs_fchdir): Declare it.
57099
57100 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57101
57102         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57103         Problem and fix reported by Pádraig Brady in
57104         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57105
57106 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57107
57108         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57109
57110 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57111
57112         * lib/memcoll.c (memcoll): Optimize for the common case where the
57113         arguments are bytewise equal.
57114
57115 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         * doc/regexprops-generic.texi: Add a copyright notice.
57118
57119 2006-08-15  Bruno Haible  <bruno@clisp.org>
57120
57121         * modules/tmpdir (License): Change to LGPL.
57122
57123 2006-08-15  Bruno Haible  <bruno@clisp.org>
57124
57125         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57126         module.
57127
57128 2006-08-14  Simon Josefsson  <jas@extundo.com>
57129
57130         * config/srclist.txt: Add gnupload.
57131
57132 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         Change copyright notice from LGPL 2 to GPL 2, since that's the
57135         standard form used in the gnulib repository.
57136         * tests/test-lock.c: Likewise.
57137         * tests/test-stdint.c: Likewise.
57138         * tests/test-tls.c: Likewise.
57139
57140         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57141         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57142         Add copyright notice.
57143
57144         * check-module: Add copyright notice.  Output a copyright
57145         notice if "--version" is specified.
57146         * modules/COPYING: New file.
57147         * tests/test-getaddrinfo.c: Add copyright notice.
57148         * tests/test-verify.c: Likewise.
57149
57150 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57151
57152         Change copyright notice from LGPL 2 to GPL 2, since that's the
57153         standard form used in the gnulib repository.
57154         * lib/lock.c: LGPL -> GPL.
57155         * lib/lock.h: Likewise.
57156         * lib/strnlen1.c: Likewise.
57157         * lib/strnlen1.h: Likewise.
57158         * lib/tls.c: Likewise.
57159         * lib/tls.h: Likewise.
57160         * lib/tmpdir.c: Likewise.
57161
57162         * lib/TODO: Remove; this belongs only in coreutils.
57163
57164 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57165
57166         Add copyright notices to long-enough files that lack them, since
57167         otherwise the files aren't clearly free.  Use the same notice that
57168         getdate.texi already uses.
57169         * doc/alloca-opt.texi: Add copyright notice.
57170         * doc/alloca.texi: Likewise.
57171         * doc/ctime.texi: Likewise.
57172         * doc/functions.texi: Likewise.
57173         * doc/gcd.texi: Likewise.
57174         * doc/gnulib-tool.texi: Likewise.
57175         * doc/inet_ntoa.texi: Likewise.
57176         * doc/visibility.texi: Likewise.
57177
57178         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
57179         * doc/quote.texi: Add copyright notice.
57180
57181         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
57182         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
57183         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
57184         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
57185         is now obsolete, and give a pointer to the Sun list.
57186         Add copyright notice.
57187
57188 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57189
57190         * config/srclistvars.sh: Add copyright notice.
57191
57192 2006-08-14  Eric Blake  <ebb9@byu.net>
57193
57194         Import the following change from libc:
57195
57196         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
57197
57198         Upstream bug 2997.
57199         * lib/misc/error.c: Add space between program name and message if file
57200         name is missing.
57201
57202 2006-08-12  Karl Berry  <karl@gnu.org>
57203
57204         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
57205         remove, these originate in gnulib now.
57206
57207 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57208
57209         * doc/Makefile (standards.info standards.html standards.dvi):
57210         Also depend on make-stds.texi.
57211
57212 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57213
57214         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
57215         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
57216
57217         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
57218         in wchar_t.  Problem reported by Eric Blake.
57219
57220         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
57221         LEN is smaller than SIZE.  Suggested by Bruno Haible.
57222         Also, help the compiler to keep LEN in a register.
57223
57224 2006-08-11  Eric Blake  <ebb9@byu.net>
57225
57226         * users.txt: Sort.  Add tar.
57227
57228 2006-08-11  Bruno Haible  <bruno@clisp.org>
57229
57230         * users.txt: New file.
57231
57232 2006-08-11  Bruno Haible  <bruno@clisp.org>
57233
57234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
57235         before <wchar.h>. Needed for OSF/1 and BSD/OS.
57236
57237 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57238
57239         * modules/snprintf (Depends-on): Remove minmax.
57240         (Maintainer): Add self and Bruno.
57241
57242 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57243
57244         * lib/.cppi-disable: Add snprintf.h, socket_.h.
57245         * lib/snprintf.c: Include <errno.h> and <limits.h>.
57246         (EOVERFLOW): Define if the system does not.
57247         Do not include "minmax.h"; it wasn't used.
57248         (snprintf): Don't assume size_t promotes to an unsigned type.
57249         Fix bug when generated string was too long for the buffer: the
57250         buffer's contents are supposed to be the initial prefix of the
57251         output.  Don't assume vasnprintf returns EOVERFLOW if the size
57252         exceeds INT_MAX; do the check ourselves.
57253
57254         Import the following changes from libc:
57255
57256         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
57257
57258         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
57259         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
57260         set wc to the byte which couldn't be converted.
57261         (re_string_reconstruct): Don't clear valid_raw_len before calling
57262         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
57263         tip_context using re_string_context_at.
57264
57265         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
57266
57267         * lib/posix/regex.h: g++ still cannot handled [restrict].
57268
57269         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
57270
57271         * lib/posix/regex.h: Remove special handling for VMS.
57272
57273 2006-08-10  Jim Meyering  <jim@meyering.net>
57274
57275         * modules/same-inode: New module.
57276         * modules/dev-ino: New module.
57277         * modules/cycle-check: Depend on these modules, rather than simply
57278         including their .h files.
57279         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
57280         required via m4/cycle-check.m4.
57281         * modules/same: Depend on new same-inode module, rather than
57282         including same-inode.h.
57283         * modules/chdir-safer: New file.
57284
57285         * modules/chown (Depends-on): Add stat-macros.
57286
57287 2006-08-10  Jim Meyering  <jim@meyering.net>
57288
57289         * m4/cycle-check.m4: New file.
57290         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
57291         * m4/dev-ino.m4, m4/same-inode.m4: New files.
57292
57293 2006-08-10  Eric Blake  <ebb9@byu.net>
57294
57295         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
57296         in from original proposal.
57297
57298 2006-08-10  Eric Blake  <ebb9@byu.net>
57299         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57300
57301         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
57302         namespace.
57303
57304 2006-08-10  Bruno Haible  <bruno@clisp.org>
57305
57306         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
57307         as well.
57308
57309 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57310
57311         Sync from coreutils.
57312
57313         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
57314
57315         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
57316         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
57317
57318 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57319
57320         * modules/restrict: Remove; no longer needed now that we assume
57321         Autoconf 2.59 or later.
57322         * MODULES.html.sh: Remove 'restrict'.
57323         * modules/argp (Depends-on): Remove 'restrict'.
57324         * modules/base64 (Depends-on): Likewise.
57325         * modules/gc (Depends-on): Likewise.
57326         * modules/getaddrinfo (Depends-on): Likewise.
57327         * modules/glob (Depends-on): Likewise.
57328         * modules/inet_ntop (Depends-on): Likewise.
57329         * modules/inet_pton (Depends-on): Likewise.
57330         * modules/memxor (Depends-on): Likewise.
57331         * modules/regex (Depends-on): Likewise.
57332         * modules/strtok_r (Depends-on): Likewise.
57333         * modules/time_r (Depends-on): Likewise.
57334
57335 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57336
57337         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
57338         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
57339         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57340         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
57341         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57342         * m4/memxor.m4 (gl_MEMXOR): Likewise.
57343         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
57344         gl_C_RESTRICT replaced by AC_C_RESTRICT.
57345
57346         Merge from coreutils.
57347         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
57348         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
57349         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57350         * m4/time_r.m4 (gl_TIME_R): Likewise.
57351
57352 2006-08-09  Karl Berry  <karl@gnu.org>
57353
57354         * config/srclist.txt: no more gettext-tools, per Bruno.
57355
57356 2006-08-08  Eric Blake  <ebb9@byu.net>
57357
57358         * modules/verror: New module.
57359         * MODULES.html.sh: Document it.
57360
57361 2006-08-08  Eric Blake  <ebb9@byu.net>
57362
57363         * lib/verror.h, lib/verror.c: New files.
57364
57365 2006-08-08  Eric Blake  <ebb9@byu.net>
57366
57367         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
57368         verror_at_line output complies with GNU Coding Standards even when
57369         file is NULL.
57370
57371 2006-08-07  Bruno Haible  <bruno@clisp.org>
57372
57373         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
57374         versions of AIX.
57375         Reported by Ralf Wildenhues.
57376
57377 2006-08-07  Bruno Haible  <bruno@clisp.org>
57378
57379         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
57380         in an AC_DEFUN. Needed so that the autoconf snippets can use
57381         AC_REQUIRE.
57382
57383 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57384
57385         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57386         Initialize pkgdata_DATA.
57387         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
57388         overriding it.
57389
57390 2006-08-06  Eric Blake  <ebb9@byu.net>
57391
57392         * lib/error.h: Fold in some upstream changes from glibc.
57393         * lib/error.c: Likewise.
57394
57395 2006-08-04  Bruno Haible  <bruno@clisp.org>
57396
57397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57398         Make the mostlyclean-local rule depend on mostlyclean-generic.
57399         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
57400
57401 2006-07-31  Bruno Haible  <bruno@clisp.org>
57402
57403         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
57404         <stdlib.h>, <string.h>.
57405
57406 2006-07-30  Bruno Haible  <bruno@clisp.org>
57407
57408         * modules/readlink (License): Change to LGPL.
57409
57410 2006-07-30  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/javaversion (Makefile.am): Distribute javaversion.java and
57413         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
57414         set PKGDATADIR to point to it.
57415
57416 2006-07-30  Bruno Haible  <bruno@clisp.org>
57417
57418         * modules/csharpexec (configure.ac): Comment out macro invocation.
57419         * modules/javaexec (configure.ac): Likewise.
57420         * modules/javacomp-script (configure.ac): Likewise.
57421
57422         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
57423
57424 2006-07-30  Bruno Haible  <bruno@clisp.org>
57425
57426         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
57427         linked-list.
57428
57429 2006-07-30  Bruno Haible  <bruno@clisp.org>
57430
57431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57432
57433 2006-07-30  Bruno Haible  <bruno@clisp.org>
57434
57435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57436         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57437         get removed.
57438
57439 2006-07-29  Bruno Haible  <bruno@clisp.org>
57440
57441         Make it possible for gnulib-tool to work with locally modified or
57442         augmented gnulib repositories.
57443         * gnulib-tool (func_usage): Document --local-dir option.
57444         (local_gnulib_dir): New variable.
57445         Handle --local-dir option.
57446         (func_lookup_file): New function.
57447         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
57448         (func_get_description, func_get_filelist, func_get_description,
57449         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
57450         func_get_automake_snippet, func_get_include_directive,
57451         func_get_license, func_get_maintainer): Use func_lookup_file.
57452         (func_import, func_create_testdir): Use func_lookup_file.
57453
57454 2006-07-29  Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/setenv (Depends-on): Add unistd.
57457
57458 2006-07-29  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
57461
57462 2006-07-29  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
57465
57466 2006-07-29  Bruno Haible  <bruno@clisp.org>
57467
57468         * gnulib-tool (import, update): If there is no Makefile.am, look at
57469         aclocal.m4, instead of bailing out.
57470
57471 2006-07-29  Bruno Haible  <bruno@clisp.org>
57472
57473         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
57474         Categorize the options by when they are useful.
57475
57476 2006-07-29  Bruno Haible  <bruno@clisp.org>
57477
57478         * gnulib-tool (func_usage): Document option --no-libtool.
57479         Handle option --no-libtool.
57480         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
57481         for changed semantics of $libtool variable.
57482         (func_import): Likewise. If libtool is not used, show this through
57483         an option --no-libtool.
57484         (func_create_testdir): Update.
57485
57486 2006-07-29  Bruno Haible  <bruno@clisp.org>
57487
57488         * gnulib-tool (func_import): Extend error message about missing
57489         --doc-base.
57490
57491 2006-07-29  Bruno Haible  <bruno@clisp.org>
57492
57493         * gnulib-tool (func_import): Don't create the $docbase directory if
57494         there is no file to store there.
57495
57496 2006-07-29  Bruno Haible  <bruno@clisp.org>
57497
57498         * gnulib-tool (autoconf_minversion): If a --dir option is given and
57499         relevant, look for configure.ac there, not in the current directory.
57500         Also use a simple search for AC_PREREQ, not "autoconf --trace".
57501
57502 2006-07-29  Bruno Haible  <bruno@clisp.org>
57503
57504         * gnulib-tool (SORT): New variable.
57505         (func_usage): Undocument --assume-autoconf option.
57506         Remove --assume-autoconf option handling.
57507         (autoconf_minversion): Determine from the contents of configure.ac.
57508         (func_import): Remove autoconf_minversion handling.
57509         Suggested by Eric Blake.
57510
57511 2006-07-29  Bruno Haible  <bruno@clisp.org>
57512
57513         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
57514
57515 2006-07-29  Bruno Haible  <bruno@clisp.org>
57516
57517         * config/srclist.txt (*setenv.[ch]): Remove rules.
57518
57519 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57520
57521         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
57522
57523 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57524
57525         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
57526         arpa/inet.h.
57527
57528 2006-07-28  Simon Josefsson  <jas@extundo.com>
57529
57530         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
57531         * modules/inet_pton (Depends-on): Likewise.
57532
57533 2006-07-28  Simon Josefsson  <jas@extundo.com>
57534
57535         * m4/netinet_in_h.m4: New file.
57536
57537 2006-07-28  Simon Josefsson  <jas@extundo.com>
57538
57539         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
57540         #include's.
57541
57542 2006-07-28  Simon Josefsson  <jas@extundo.com>
57543
57544         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
57545         #include's.
57546
57547 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
57550         setgid on directories only if they set these bits.
57551         * lib/modechange.h: Remove obsolete comment about masks.
57552
57553 2006-07-28  Eric Blake  <ebb9@byu.net>
57554
57555         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
57556         macro expansion.
57557
57558 2006-07-28  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
57561
57562 2006-07-28  Bruno Haible  <bruno@clisp.org>
57563
57564         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
57565
57566 2006-07-28  Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57569         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57570         Define fallbacks.
57571         Avoids link error on FreeBSD 4.x.
57572         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57573
57574         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
57575         encoding.
57576         * lib/mbswidth.c (iswcntrl): Likewise.
57577
57578 2006-07-27  Bruno Haible  <bruno@clisp.org>
57579
57580         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
57581         test.
57582
57583 2006-07-27  Bruno Haible  <bruno@clisp.org>
57584
57585         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
57586         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
57587         defined.
57588
57589 2006-07-26  Eric Blake  <ebb9@byu.net>
57590
57591         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
57592
57593 2006-07-26  Eric Blake  <ebb9@byu.net>
57594
57595         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
57596         like mingw that lack mkstemp.
57597         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
57598         avoid compilation warning on mingw.
57599
57600 2006-07-26  Bruno Haible  <bruno@clisp.org>
57601
57602         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
57603         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
57604         INT_FAST*_MIN, INTPTR_MIN.
57605
57606 2006-07-25  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/version-etc (Depends-on): Add stdarg.
57609
57610 2006-07-25  Bruno Haible  <bruno@clisp.org>
57611
57612         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
57613         complex commands.
57614
57615 2006-07-25  Bruno Haible  <bruno@clisp.org>
57616
57617         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
57618         defined in <stdarg.h> or config.h.
57619
57620 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57621
57622         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
57623         (gl_STDIO_SAFER): Remove.
57624
57625 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57626
57627         * MODULES.html.sh (File stream based Input/Output):
57628         Add fopen-safer, tmpfile-safer; remove stdio-safer.
57629         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
57630         * modules/fopen-safer, modules/tmpfile-safer: New files.
57631         * modules/stdio-safer: Remove.
57632
57633 2006-07-24  Bruno Haible  <bruno@clisp.org>
57634
57635         * modules/tmpdir: New file.
57636         * MODULES.html.sh (File system functions): Add it.
57637
57638 2006-07-24  Bruno Haible  <bruno@clisp.org>
57639
57640         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
57641         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57642
57643 2006-07-24  Bruno Haible  <bruno@clisp.org>
57644
57645         * modules/clean-temp: New file.
57646
57647 2006-07-24  Bruno Haible  <bruno@clisp.org>
57648
57649         * m4/tmpdir.m4: New file, from GNU gettext.
57650
57651 2006-07-24  Bruno Haible  <bruno@clisp.org>
57652
57653         * lib/tmpdir.h: New file, from GNU gettext.
57654         * lib/tmpdir.c: New file, from GNU gettext.
57655
57656 2006-07-24  Bruno Haible  <bruno@clisp.org>
57657
57658         * lib/clean-temp.h: New file, from GNU gettext.
57659         * lib/clean-temp.c: New file, from GNU gettext.
57660
57661 2006-07-23  Eric Blake  <ebb9@byu.net>
57662
57663         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57664         (Depends-on): Add binary-io.
57665
57666 2006-07-23  Eric Blake  <ebb9@byu.net>
57667
57668         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
57669
57670 2006-07-23  Eric Blake  <ebb9@byu.net>
57671
57672         * lib/tmpfile-safer.c: New file.
57673         * lib/stdio-safer.h (fopen_safer): Add prototype.
57674         * lib/stdio--.h (tmpfile): Make safer.
57675
57676 2006-07-23  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
57679         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
57680         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
57681         gl_linked_remove_at): Use it.
57682
57683 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57684         and Simon Josefsson <jas@extundo.com>
57685
57686         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
57687
57688         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
57689
57690 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57691
57692         * modules/close-stream: New file.
57693         * modules/closeout (Description): Make it clear that it exits
57694         with a diagnostic on error.
57695         (Depends-on): Add close-stream.  Remove fpending, stdbool.
57696         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
57697
57698 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57699
57700         * m4/close-stream.m4: New file.
57701
57702 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57703
57704         * lib/close-stream.c, lib/close-stream.h: New files.
57705
57706 2006-07-22  Bruno Haible  <bruno@clisp.org>
57707
57708         Merge from GNU gettext 0.15.
57709
57710         2006-05-01  Bruno Haible  <bruno@clisp.org>
57711
57712                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
57713
57714         2006-07-22  Bruno Haible  <bruno@clisp.org>
57715
57716                 * modules/javaversion: New file.
57717                 * MODULES.html.sh (Java): Add javaversion.
57718
57719         2006-03-12  Bruno Haible  <bruno@clisp.org>
57720
57721                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
57722
57723         2005-12-04  Bruno Haible  <bruno@clisp.org>
57724
57725                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
57726                 (untested).
57727
57728         2006-06-21  Bruno Haible  <bruno@clisp.org>
57729
57730                 Avoid warnings from recent versions of mcs.
57731                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
57732                 -o, -L, -r any more. Use options documented since mcs-1.0
57733                 instead. Similarly for -g.
57734
57735         2005-12-04  Bruno Haible  <bruno@clisp.org>
57736
57737                 * build-aux/csharpcomp.sh.in: Suffix for resources is
57738                 .resources, not .resource.
57739
57740         2005-07-09  Bruno Haible  <bruno@clisp.org>
57741
57742                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
57743                 add a .dll suffix.
57744                 Reported by Mark Junker <mjscod@gmx.de>.
57745
57746         2006-07-22  Bruno Haible  <bruno@clisp.org>
57747
57748                 * modules/gettext: Upgrade to gettext-0.15.
57749                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
57750                 m4/visibility.m4.
57751                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
57752
57753 2006-07-22  Bruno Haible  <bruno@clisp.org>
57754
57755         Merge from GNU gettext 0.15.
57756
57757         2006-03-25  Bruno Haible  <bruno@clisp.org>
57758
57759                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
57760
57761         2006-07-21  Bruno Haible  <bruno@clisp.org>
57762
57763                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
57764                 "1.1".
57765
57766         2006-05-09  Bruno Haible  <bruno@clisp.org>
57767
57768                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
57769                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
57770                 for the conftestver execution.
57771
57772         2006-05-01  Bruno Haible  <bruno@clisp.org>
57773
57774                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
57775                 optional target-version argument. Verify that the compiler
57776                 groks source of the specified source-version, or add -source
57777                 option as necessary. Verify that the compiler produces
57778                 bytecode in the specified target-version, or add -target and
57779                 -source options as necessary. Make the result of the test
57780                 available as variable CONF_JAVAC. Also log error output in
57781                 config.log.
57782
57783         2006-03-11  Bruno Haible  <bruno@clisp.org>
57784
57785                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57786
57787         2006-05-09  Bruno Haible  <bruno@clisp.org>
57788
57789                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57790                 CLASSPATH_SEPARATOR to a semicolon.
57791
57792         2006-03-12  Bruno Haible  <bruno@clisp.org>
57793
57794                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57795                 available as variable CONF_JAVA, for subsequent autoconf
57796                 tests. Also log error output in config.log.
57797
57798         2006-07-19  Bruno Haible  <bruno@clisp.org>
57799
57800                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57801                 that getline works on glibc2 systems. Needed to avoid trouble
57802                 in relocatable.c.
57803                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57804
57805         2005-12-04  Bruno Haible  <bruno@clisp.org>
57806
57807                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57808                 launcher (untested).
57809
57810         2005-12-04  Bruno Haible  <bruno@clisp.org>
57811
57812                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57813
57814         2006-07-22  Bruno Haible  <bruno@clisp.org>
57815
57816                 * gettext.m4: Update from GNU gettext-0.15.
57817                 * nls.m4: Likewise.
57818                 * po.m4: Likewise.
57819                 * inttypes-pri.m4: Likewise.
57820                 * inttypes-h.m4: Renamed from inttypes.m4.
57821                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
57822
57823 2006-07-22  Bruno Haible  <bruno@clisp.org>
57824
57825         Merge from GNU gettext 0.15.
57826
57827         2005-07-05  Bruno Haible  <bruno@clisp.org>
57828
57829                 * printf-args.c (printf_fetchargs): Work around broken
57830                 definition of wint_t on mingw.
57831
57832         2005-02-12  Bruno Haible  <bruno@clisp.org>
57833
57834                 * xallocsa.h: Add extern "C" for C++.
57835
57836         2006-05-17  Bruno Haible  <bruno@clisp.org>
57837
57838                 Cygwin portability.
57839                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
57840
57841         2006-04-30  Bruno Haible  <bruno@clisp.org>
57842
57843                 * progreloc.c: Include <mach-o/dyld.h> if available.
57844                 (find_executable): Use _NSGetExecutablePath when possible.
57845
57846         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57847
57848                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
57849                 function.
57850
57851         2005-12-29  Bruno Haible  <bruno@clisp.org>
57852
57853                 * progreloc.c (set_program_name_and_installdir): Fix
57854                 compilation error.
57855
57856         2005-12-04  Bruno Haible  <bruno@clisp.org>
57857
57858                 Cygwin portability.
57859                 * progreloc.c: Include <windows.h> also on Cygwin.
57860                 (find_executable): Add support for Cygwin.
57861                 (set_program_name_and_installdir): Handle also platforms with
57862                 nonempty EXEEXT.
57863
57864         2006-07-11  Bruno Haible  <bruno@clisp.org>
57865
57866                 * javacomp.c: Fix a comment.
57867                 Reported by Jim Meyering.
57868
57869         2006-04-30  Bruno Haible  <bruno@clisp.org>
57870
57871                 * javacomp.h (compile_java_class): Add source_version,
57872                 target_version arguments.
57873                 * javacomp.c: Rewritten to choose only a compiler that
57874                 respects the specified source_version and target_version.
57875
57876         2006-06-27  Bruno Haible  <bruno@clisp.org>
57877
57878                 Assume correct S_ISDIR macro.
57879                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
57880
57881         2006-07-22  Bruno Haible  <bruno@clisp.org>
57882
57883                 * javaversion.h: New file, from GNU gettext.
57884                 * javaversion.c: New file, from GNU gettext.
57885                 * javaversion.java: New file, from GNU gettext.
57886                 * javaversion.class: New file, from GNU gettext.
57887
57888         2006-05-17  Bruno Haible  <bruno@clisp.org>
57889
57890                 Cygwin portability.
57891                 * javaexec.c (execute_java_class): Test for jview program
57892                 also on Cygwin.
57893
57894         2006-04-09  Bruno Haible  <bruno@clisp.org>
57895
57896                 * fatal-signal.c: Don't include string.h.
57897                 (at_fatal_signal): Use a copying loop instead of memcpy.
57898
57899         2005-12-04  Bruno Haible  <bruno@clisp.org>
57900
57901                 * csharpexec.c: Add support for 'clix' launcher (untested).
57902                 (execute_csharp_using_sscli): New function.
57903                 (execute_csharp_program): Call it.
57904
57905         2006-06-21  Bruno Haible  <bruno@clisp.org>
57906
57907                 Avoid warnings from recent versions of mcs.
57908                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
57909                 -o, -L, -r any more. Use options documented since mcs-1.0
57910                 instead. Similarly for -g.
57911
57912         2005-07-09  Bruno Haible  <bruno@clisp.org>
57913
57914                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
57915                 add a .dll suffix.
57916                 Reported by Mark Junker <mjscod@gmx.de>.
57917
57918         2006-06-17  Bruno Haible  <bruno@clisp.org>
57919
57920                 * config.charset: Update for NetBSD 3.0.
57921
57922         2006-05-17  Bruno Haible  <bruno@clisp.org>
57923
57924                 Cygwin portability.
57925                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
57926
57927         2006-05-16  Bruno Haible  <bruno@clisp.org>
57928
57929                 * localcharset.c [CYGWIN]: Include <windows.h>.
57930                 (get_charset_aliases): For Cygwin, return the same CPxxx
57931                 aliases list as under WIN32.
57932                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
57933                 the environment variables. Fall back to GetACP().
57934
57935         2006-04-05  Bruno Haible  <bruno@clisp.org>
57936
57937                 * config.charset: Update Juan Manuel Guerrero's address.
57938
57939         2005-02-12  Bruno Haible  <bruno@clisp.org>
57940
57941                 * allocsa.h: Add extern "C" for C++.
57942
57943         2005-02-10  Bruno Haible  <bruno@clisp.org>
57944
57945                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
57946                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
57947
57948         2006-07-22  Bruno Haible  <bruno@clisp.org>
57949
57950                 * gettext.h: Update to GNU gettext-0.15.
57951
57952 2006-07-22  Bruno Haible  <bruno@clisp.org>
57953
57954         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
57955         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
57956         lib-prefix.m4, longdouble.m4, ssize_t.m4.
57957
57958 2006-07-21  Eric Blake  <ebb9@byu.net>
57959
57960         * modules/stdlib-safer: New file.
57961         * MODULES.html.sh (File stream based Input/Output): Add
57962         stdlib-safer.
57963
57964 2006-07-21  Eric Blake  <ebb9@byu.net>
57965
57966         * lib/stdlib-safer.h: New file from coreutils, required by
57967         stdlib--.h.
57968
57969 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
57970
57971         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
57972
57973 2006-07-20  Bruno Haible  <bruno@clisp.org>
57974
57975         * gnulib-tool: Recognize new option --assume-autoconf.
57976         (autoconf_minversion): New variable.
57977         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
57978
57979 2006-07-20  Bruno Haible  <bruno@clisp.org>
57980
57981         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
57982
57983 2006-07-19  Derek R. Price  <derek@ximbiot.com>
57984
57985         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
57986         Reindent and repaginate.
57987
57988 2006-07-19  Derek Price  <derek@ximbiot.com>
57989
57990         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
57991         Correct grammar.
57992
57993 2006-07-17  Bruno Haible  <bruno@clisp.org>
57994
57995         * modules/list: New file.
57996         * modules/array-list: New file.
57997         * modules/carray-list, modules/carray-list-tests: New files.
57998         * modules/linked-list, modules/linked-list-tests: New files.
57999         * modules/avltree-list, modules/avltree-list-tests: New files.
58000         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58001         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58002         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58003         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58004         * modules/oset: New file.
58005         * modules/array-oset: New file.
58006         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58007         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58008         * tests/test-carray_list.c: New file.
58009         * tests/test-linked_list.c: New file.
58010         * tests/test-avltree_list.c: New file.
58011         * tests/test-rbtree_list.c: New file.
58012         * tests/test-linkedhash_list.c: New file.
58013         * tests/test-avltreehash_list.c: New file.
58014         * tests/test-rbtreehash_list.c: New file.
58015         * tests/test-avltree_oset.c: New file.
58016         * tests/test-rbtree_oset.c: New file.
58017         * MODULES.html.sh (Container data structures): New section.
58018
58019 2006-07-17  Bruno Haible  <bruno@clisp.org>
58020
58021         * m4/gl_list.m4: New file.
58022
58023 2006-07-17  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/gl_list.h: New file.
58026         * lib/gl_list.c: New file.
58027         * lib/gl_array_list.h: New file.
58028         * lib/gl_array_list.c: New file.
58029         * lib/gl_carray_list.h: New file.
58030         * lib/gl_carray_list.c: New file.
58031         * lib/gl_linked_list.h: New file.
58032         * lib/gl_linked_list.c: New file.
58033         * lib/gl_anylinked_list1.h: New file.
58034         * lib/gl_anylinked_list2.h: New file.
58035         * lib/gl_avltree_list.h: New file.
58036         * lib/gl_avltree_list.c: New file.
58037         * lib/gl_anyavltree_list1.h: New file.
58038         * lib/gl_anyavltree_list2.h: New file.
58039         * lib/gl_rbtree_list.h: New file.
58040         * lib/gl_rbtree_list.c: New file.
58041         * lib/gl_anyrbtree_list1.h: New file.
58042         * lib/gl_anyrbtree_list2.h: New file.
58043         * lib/gl_anytree_list1.h: New file.
58044         * lib/gl_anytree_list2.h: New file.
58045         * lib/gl_linkedhash_list.h: New file.
58046         * lib/gl_linkedhash_list.c: New file.
58047         * lib/gl_anyhash_list1.h: New file.
58048         * lib/gl_anyhash_list2.h: New file.
58049         * lib/gl_avltreehash_list.h: New file.
58050         * lib/gl_avltreehash_list.c: New file.
58051         * lib/gl_rbtreehash_list.h: New file.
58052         * lib/gl_rbtreehash_list.c: New file.
58053         * lib/gl_anytreehash_list1.h: New file.
58054         * lib/gl_anytreehash_list2.h: New file.
58055
58056         * lib/gl_oset.h: New file.
58057         * lib/gl_oset.c: New file.
58058         * lib/gl_array_oset.h: New file.
58059         * lib/gl_array_oset.c: New file.
58060         * lib/gl_avltree_oset.h: New file.
58061         * lib/gl_avltree_oset.c: New file.
58062         * lib/gl_rbtree_oset.h: New file.
58063         * lib/gl_rbtree_oset.c: New file.
58064         * lib/gl_anytree_oset.h: New file.
58065
58066 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58067
58068         * m4/mkancesdirs.m4: New file.
58069         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58070         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58071         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58072         it.
58073
58074 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58075
58076         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58077         * lib/mkancesdirs.h: New files.
58078         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58079         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58080         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58081         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58082         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58083         callers changed.  Revamp internals significantly, by not
58084         attempting to create directories that are temporarily more
58085         permissive than the final results.  Do not attempt to use
58086         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58087         This removes some race conditions, fixes some bugs, and simplifies
58088         things.  Use new dirchownmod function to do owner and mode changes.
58089         * lib/mkdir-p.h: Likewise.
58090         * lib/modechange.c (octal_to_mode): New function.
58091         (struct mode_change): New member mentioned.
58092         (make_node_op_equals): New arg mentioned.  All callers changed.
58093         (mode_compile): Keep track of which mode bits the user has explicitly
58094         mentioned.
58095         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58096         New arg PMODE_BITS, to keep track of which mode bits the user
58097         mentioned; it treats S_ISUID and S_ISGID speciall.
58098         All callers changed.
58099         * lib/modechange.h: Likewise.
58100
58101 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         * MODULES.html.sh: Add mkancestors.
58104         * modules/mkancesdirs: New module.
58105         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58106         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58107         The chdir-safer and afs files are now orphans; I'll remove them
58108         unless someone speaks up.
58109         Add lib/dirchownmod.c, lib/dirchownmod.h.
58110         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58111         Add lchown, mkancesdirs.
58112         (Maintainer): Add self.
58113
58114 2006-07-15  Karl Berry  <karl@gnu.org>
58115
58116         * gnulib-tool: help message wording/arrangement.
58117
58118 2006-07-14  Simon Josefsson  <jas@extundo.com>
58119
58120         * doc/gnulib.texi (Libtool and Windows): New section.
58121
58122 2006-07-12  Simon Josefsson  <jas@extundo.com>
58123
58124         * modules/gendocs (License): Fix license, approved by Karl.
58125
58126 2006-07-12  Eric Blake  <ebb9@byu.net>
58127
58128         * MODULES.html.sh: Add gendocs.
58129
58130 2006-07-11  Eric Blake  <ebb9@byu.net>
58131
58132         * modules/fdl: New module, to install doc/fdl.texi.
58133         * MODULES.html.sh: Add new section for documentation modules.
58134         * gnulib-tool: Avoid space-tab.
58135         (--doc-base): New option, to manage files from doc.
58136
58137 2006-07-11  Eric Blake  <ebb9@byu.net>
58138
58139         * m4/absolute-header.m4: Fix comments to match recent change.
58140
58141 2006-07-11  Eric Blake  <ebb9@byu.net>
58142
58143         * gnulib-tool: List --doc-base before --tests-base.
58144
58145 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58146
58147         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58148
58149 2006-07-11  Bruno Haible  <bruno@clisp.org>
58150
58151         * README: Mention where to put documentation.
58152
58153 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58154
58155         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58156
58157 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58158
58159         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58160         to stdint.m4.
58161
58162 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58163
58164         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58165         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58166         "no/such/file/stdint.h" when there is no such file, so that
58167         the resulting C code can be parsed by dodgy compilers.
58168         Problems reported by Bob Proulx.
58169
58170 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58171
58172         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58173         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58174         macros into the GNU _D_EXACT_NAMLEN.
58175         * lib/savedir.c:  Likewise.
58176         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
58177
58178 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58179         and Paul Eggert  <eggert@cs.ucla.edu>
58180
58181         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
58182         * m4/savedir.m4:
58183         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58184         macros into the GNU _D_EXACT_NAMLEN.
58185
58186 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58187
58188         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
58189         around the absolute name, to work around a problem with the HP-UX
58190         11.23 native C compiler, reported by Bob Proulx.
58191
58192 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58193
58194         * doc/maintain.texi, make-stds.texi: Sync from
58195         <http://savannah.gnu.org/projects/gnustandards>.
58196
58197 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
58200
58201 2006-07-09  Jim Meyering  <jim@meyering.net>
58202
58203         * m4/glob.m4: Remove a doubled word in a comment.
58204
58205 2006-07-09  Jim Meyering  <jim@meyering.net>
58206
58207         * lib/argp-pv.c: Remove a doubled word in a comment.
58208         * lib/check-version.c (check_version): Likewise.
58209         * lib/javacomp.c (compile_java_class): Likewise.
58210
58211 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58212
58213         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
58214         for the benefit of people using Autoconf 2.60.  If you want to
58215         support older Autoconf versions you can copy m4/onceonly_2_57.m4
58216         (or m4/onceonly.m4, if pre-2.57) manually.
58217
58218 2006-07-08  Jim Meyering  <jim@meyering.net>
58219
58220         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
58221         comment.
58222         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
58223         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
58224         comment.
58225
58226 2006-07-08  Jim Meyering  <jim@meyering.net>
58227
58228         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
58229
58230 2006-07-07  Simon Josefsson  <jas@extundo.com>
58231
58232         * tests/test-crc.c: Change expected crc value, the test vector
58233         were probably computed using the old broken crc.c?
58234
58235 2006-07-06  Simon Josefsson  <jas@extundo.com>
58236
58237         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
58238         now the canonical place for the M4 file).
58239
58240         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
58241         from the sys_socket dependency now.
58242
58243         * modules/inet_pton (Files): Ditto.
58244
58245         * modules/inet_ntop (Files): Ditto.
58246
58247 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58248
58249         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
58250         not gl_PREREQ_GETUSERSHELL.
58251
58252 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58253
58254         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
58255         with only one argument, for Autoconf 2.60.
58256         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
58257         expand to nothing, so add a shell command to avoid syntax error.
58258         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58259
58260 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58261
58262         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
58263
58264 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58265
58266         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
58267         no longer needed.  Check for isblank decl.
58268         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
58269         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
58270         of existence.
58271
58272 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58273
58274         * lib/getloadavg.c: Use __VMS, not VMS.
58275         * lib/getopt.c: Likewise.
58276         * lib/getpagesize.h: Likewise.
58277         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
58278         and probably does not work.
58279
58280 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         * lib/.cppi-disable: Add wcwidth.
58283         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
58284         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
58285         (ISGRAPH): Remove.  All uses changed to isgraph.
58286         (FOLD) [!defined _LIBC]: Remove special case.
58287         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
58288         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
58289         HAVE_ISBLANK.
58290         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
58291         case.
58292
58293 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58294
58295         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
58296         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
58297         brackets.  Other minor changes to suppress some compiler
58298         warnings.
58299
58300 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58301         and Paul Eggert  <eggert@cs.ucla.edu>
58302
58303         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
58304         of invoking obsolescent AC_HEADER_DIRENT macro.
58305         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58306         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
58307         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58308         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58309         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
58310         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58311         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
58312         * m4/readdir.m4: Remove; no longer needed.
58313
58314 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58315         and Paul Eggert  <eggert@cs.ucla.edu>
58316
58317         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
58318         Don't worry about this obsolete case any more.
58319         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
58320         directories.
58321         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
58322         worry about this obsolete case any more.
58323         * lib/fts.c: Likewise.
58324         * lib/getcwd.c: Likewise.
58325         * lib/glob.h: Likewise.
58326         * lib/savedir.c: Likewise.
58327
58328 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
58331         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
58332         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
58333         needed.
58334         All uses removed.
58335         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58336         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58337         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
58338         needed.
58339         * m4/getdate.m4 (gl_GETDATE): Likewise.
58340         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58341         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58342         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58343         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58344         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58345         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58346         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
58347         needed.
58348
58349 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58350
58351         * lib/memcasecmp.c: Include <limits.h>.
58352         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
58353         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
58354         Don't assume isdigit succeeds only on '0' through '9'.
58355
58356 2006-07-05  Eric Blake  <ebb9@byu.net>
58357
58358         * modules/getaddrinfo (Depends-on): Add snprintf.
58359
58360 2006-07-05  Eric Blake  <ebb9@byu.net>
58361
58362         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
58363         to avoid 'header present but could not be compiled' on cygwin.
58364
58365 2006-07-05  Eric Blake  <ebb9@byu.net>
58366
58367         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
58368         missing from netdb.h.
58369         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
58370
58371 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58372
58373         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
58374         no longer needed.
58375         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
58376         * m4/getdate.m4 (gl_GETDATE): Likewise.
58377         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58378         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58379         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58380         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58381         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58382
58383 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58384
58385         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
58386         All uses of is_space replaced by isspace.
58387         * lib/exit.h: Don't talk about STDC_HEADERS.
58388         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
58389         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
58390         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
58391         replaced by isprint etc.
58392         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
58393         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58394         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
58395         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
58396         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
58397         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58398
58399 2006-07-05  Bruno Haible  <bruno@clisp.org>
58400
58401         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
58402         the function exists, before testing against AIX.
58403         Reported by Martin Lambers <marlam@marlam.de>.
58404
58405 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58406
58407         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
58408         From Mark D. Baushke.
58409
58410 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
58413         to the absolute name, not just one, to bypass Sun C 5.8's
58414         "warning: #include of /usr/include/... may be non-portable".
58415
58416 2006-07-04  Eric Blake  <ebb9@byu.net>
58417
58418         * modules/dirname-tests: New test module.
58419         * tests/test-dirname.c: New file, replacing dirname.c
58420         TEST_DIRNAME section that was recently deleted.
58421
58422 2006-07-04  Bruno Haible  <bruno@clisp.org>
58423
58424         Assume ANSI C header files and <ctype.h> functions.
58425         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
58426         (mbsnwidth): Use isprint, iscntrl instead.
58427
58428 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         Merge from coreutils.
58431         * MODULES.html.sh: Add xstrtold.
58432         * modules/xstrtold: New file.
58433         * modules/cycle-check (Files): Add lib/same-inode.h.
58434         * modules/dirname (Files): Add m4/double-slash-root.m4.
58435         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58436         * modules/mkdir-p (Files): Add lib/same-inode.h.
58437         * modules/same (Files): Add lib/same-inode.h.
58438
58439 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         * m4/absolute-header.m4: Renamed from full-header-path.m4.
58442         This is to keep the terminology clean; POSIX talks about
58443         "absolute pathnames", not "full pathnames", but the GNU
58444         Coding Standards say to use "path" for something else;
58445         so use "absolute" to keep both sides happy.
58446         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
58447         Set gl_absolute_header, not gl_full_header_path.
58448         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
58449         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
58450         All uses changed.
58451
58452         Merge from coreutils.
58453
58454         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
58457         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
58458         want to require the building of c-strtod.o.
58459         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
58460         needs -lm directly.
58461         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
58462
58463         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
58466         --as-needed option if available.  Problem reported by Albert Chin in
58467         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
58468         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
58469         cc merely issues a bunch of annoying warnings for --as-needed
58470         (this problem was reported by Bob Proulx).  Also, try linking with
58471         -lm to detect a bug in binutils 2.16 (this problem was reported
58472         by Ralf Wildenhues).
58473
58474         2006-06-18  Jim Meyering  <jim@meyering.net>
58475
58476         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
58477         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
58478         macro.
58479         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
58480         also check for glibc-2.4's abort-inducing bug.
58481
58482         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
58483         Low-probability clean-up should be to use rmdir to get rid of
58484         the just-created directory, not unlink.
58485
58486         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
58487         configure fail, and request a bug report to inform us about it.
58488         Add a comment that, barring reports to the contrary, in 2007 we'll
58489         assume ftruncate is universally available.
58490
58491         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58492
58493         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
58494
58495         2006-03-12  Jim Meyering  <jim@meyering.net>
58496
58497         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
58498         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
58499         * m4/same.m4 (gl_SAME): Likewise.
58500         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
58501
58502         2006-03-11  Eric Blake  <ebb9@byu.net>
58503
58504         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
58505         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
58506         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
58507         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
58508
58509 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58510
58511         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
58512         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
58513         reported by Mark D. Baushke, one in
58514         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
58515
58516         Merge from coreutils.
58517
58518         * lib/.cppi-disable: Add stdint_.h.
58519         * lib/.cvsignore: Add stdint.h.
58520
58521         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
58524         both double and long double versions.
58525         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
58526         * lib/xstrtold.c: New file.
58527         * lib/xstrtod.h (xstrtold): New decl.
58528
58529         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * lib/filemode.c (setst): Remove.
58532         (strmode): Rewrite to avoid setst.  This makes the code shorter,
58533         (arguably) clearer, and the generated code is a bit smaller on my
58534         Debian GNU/Linux stable x86 host.
58535
58536         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         * lib/filemode.c: Include "filemode.h" first, to test the interface.
58539         Assume that filemode.h includes sys/types.h and sys/stat.h.
58540         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
58541         (ftypelet): Reorder to put common cases first, for efficiency.
58542         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
58543         to do 'M'.
58544         (strmode): Renamed from mode_string, and now stores 12 bytes instead
58545         of 10, for compatibility with FreeBSD.  All callers changed.
58546         (filemodestring): Now stores 12 bytes instead of 10, and sets file
58547         types that can't be deduced solely from st_mode.  First arg is now a
58548         const pointer.
58549         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
58550         (strmode): Renamed from mode_string.
58551         (filemodestring): New decl.
58552         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
58553         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
58554         needed.
58555         (S_ISPORT, S_ISWHT): New macros, if not already defined.
58556
58557         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
58560         fsusage.h now does that.  Include fsusage.h first, to test interface.
58561         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
58562         at most one method (the old code could have generated decls that
58563         didn't conform to C89, not that this was ever exercised).
58564         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
58565
58566         2006-03-19  Jim Meyering  <jim@meyering.net>
58567
58568         Work even in a chroot where d_ino values for entries in "/"
58569         don't match the stat.st_ino values for the same names.
58570         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
58571         number, iterate through all entries again, using lstat instead.
58572         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
58573         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
58574
58575         * lib/getcwd.c (__getcwd): Clarify a comment.
58576         Use memcpy in place of a call to strcpy.
58577
58578         2006-03-12  Jim Meyering  <jim@meyering.net>
58579
58580         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
58581         matches that of the current directory (which we're about to chdir ".."
58582         out of), then save the dev-ino of the parent, instead.
58583
58584         * lib/same-inode.h (SAME_INODE): New file/macro.
58585         * lib/chdir-safer.c (SAME_INODE): Remove definition.
58586         Include "same-inode.h", instead.
58587         * lib/same.c: Likewise.
58588         * lib/cycle-check.h: Include "same-inode.h".
58589         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
58590         * lib/cycle-check.c (SAME_INODE): Remove definition.
58591         * lib/root-dev-ino.h: Include "same-inode.h".
58592
58593         2006-03-11  Eric Blake  <ebb9@byu.net>
58594
58595         * lib/same.c (same_name): s/base_name/last_component/
58596         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
58597         * lib/filenamecat.c (file_name_concat): Likewise.
58598
58599         2006-03-11  Eric Blake  <ebb9@byu.net>,
58600                     Paul Eggert  <eggert@cs.ucla.edu>
58601
58602         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
58603         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
58604         drive prefix.
58605         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
58606         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
58607         (last_component): New method.
58608         * lib/dirname.c (dir_len): Determine when drive letters need a
58609         subsequent slash.  Preserve // when it is special.
58610         (dir_name): Don't append dot when drive letter is absolute.
58611         [TEST_DIRNAME]: Move into a full-blown gnulib test.
58612         * lib/basename.c (base_name): New semantics - malloc the result.
58613         Preserve // when it is special.  Preserve relative files that look
58614         like drive letters.
58615         (base_len): Preserve // when it is special.
58616         (last_component): New method, similar to old base_name semantics.
58617         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
58618         base_name.  Strip redundant slashes from ///.
58619
58620 2006-07-03  Jim Meyering  <jim@meyering.net>
58621
58622         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
58623         macro is used before the first cycle_check call.
58624
58625 2006-07-03  Eric Blake  <ebb9@byu.net>
58626
58627         * modules/dirname (Depends-on): Add xstrndup.
58628
58629 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58630
58631         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
58632         test cases, so that config.log is a bit easier to follow.
58633
58634 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
58637         both are 64 bits, since this seems to be the tradition, and this
58638         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
58639         we ever run into a host that prefers long long to long in this
58640         case, we'll need another configure-time test.  Problem reported by
58641         Jim Meyering.
58642
58643 2006-07-02  Eric Blake  <ebb9@byu.net>
58644
58645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58646
58647 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         * modules/inttypes (Depends-on): No longer depends on stdint.
58650         * modules/stdint (Description): Say more about assumptions.
58651         Say that the fast types might differ.  Say macros are used.
58652         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58653         (Makefile.am): Revise list of substituted symbols to match
58654         new stdint.m4.
58655         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58656         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58657         * tests/test-stdint.c (verify_same_types)
58658         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58659         the code conforms to C99/C89.
58660         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58661         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58662
58663 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58664
58665         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58666         but fix a bug, by requiring at least 64 bits.
58667         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58668         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
58669         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
58670         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
58671
58672         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
58673         changes.  Make 2.59 a prerequisite.  Check and substitute for
58674         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
58675         inttypes.h.  Do not use special include files; just use the
58676         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
58677         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
58678         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
58679         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
58680         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
58681         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
58682         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
58683         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
58684         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
58685         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
58686         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
58687         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
58688         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
58689         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
58690         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
58691         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
58692         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
58693         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
58694         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
58695         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
58696         WINT_MAX.  Check for C99 conformance more strictly, by detecting
58697         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
58698         not check for things that C99 does not require, e.g., int8_t.  If
58699         a test isn't needed unless <stdint.h> isn't working, and is
58700         unlikely to be needed for any other reason, then don't do it
58701         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
58702         size_t, since we assume C89 freestanding at least.  Do not check
58703         for sig_atomic_t, wchar_t, or wint_t, since the code now does
58704         the right thing even if the types are not defined.  Instead use:
58705         (gl_STDINT_TYPE_PROPERTIES): New macro.
58706         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
58707         testing whether <sys/types.h> clashes, as Autoconf does this for
58708         us now.  All uses removed.
58709         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
58710         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
58711         (gl_CHECK_TYPE_SAME):
58712         Remove; no longer needed.
58713         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
58714         exists, since we'll return 0 anyway in that case.
58715         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
58716
58717 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58718
58719         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
58720         possible collision with system files.
58721         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
58722         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
58723         WCHAR_MIN and WCHAR_MAX in this case.
58724         (<stddef.h>): Do not include; no longer needed.
58725         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
58726         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
58727         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
58728         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
58729         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
58730         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
58731         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
58732         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
58733         !defined(__c99))]: Include in this case too, since it's harmless
58734         now.
58735         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
58736         dangerous to do so.
58737         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
58738         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
58739         (_STDINT_MIN, _STDINT_MAX): New macros.
58740         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
58741         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
58742         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
58743         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
58744         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
58745         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
58746         macros, not typedefs; this simplifies things quite a bit.
58747         Use long int for all types narrower than int64_t.
58748         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
58749         Define in terms of long long int or int64_t or long int,
58750         not int64_t or int32_t.  This saves some compile-time testing.
58751         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
58752         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
58753         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
58754         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
58755         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
58756         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
58757         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
58758         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
58759         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
58760         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
58761         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58762         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58763         undef any previous version and define our own version, for
58764         simplicity and consistency with the new macros for types.
58765         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58766         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58767         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
58768         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
58769         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
58770         @WINT_T_SUFFIX@ to keep things simple here.
58771         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
58772         Simplify by assuming typical 8/16/32/64 host, since we're
58773         already doing that elsewhere anyway.
58774         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
58775         and assume long long int is 64 bits if available.  This
58776         speeds up 'configure'.
58777
58778 2006-07-01  Eric Blake  <ebb9@byu.net>
58779
58780         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58781         Reported by Andreas Buening.
58782
58783 2006-07-01  Eric Blake  <ebb9@byu.net>
58784
58785         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58786
58787 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58788
58789         * lib/getaddrinfo.c: fixed typo
58790
58791 2006-06-29  Jim Meyering  <jim@meyering.net>
58792
58793         * modules/strftime (Maintainer): Add my name, since with the
58794         FPRINTFTIME changes strftime.c has forked from glibc.
58795
58796 2006-06-29  Eric Blake  <ebb9@byu.net>
58797
58798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58799
58800 2006-06-29  Eric Blake  <ebb9@byu.net>
58801
58802         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58803
58804 2006-06-29  Eric Blake  <ebb9@byu.net>
58805
58806         * lib/stat_.h: New file.
58807
58808 2006-06-29  Eric Blake  <ebb9@byu.net>
58809
58810         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58811         unused static function.
58812
58813 2006-06-29  Eric Blake  <ebb9@byu.net>
58814
58815         * doc/functions.texi (Function Portability): Document missing lstat
58816         on mingw.
58817
58818 2006-06-29  Eric Blake  <ebb9@byu.net>
58819
58820         * MODULES.html.sh: Add sys_stat.
58821         * modules/sys_stat: New module.
58822         * modules/mkstemp (Depends-on): Add sys_stat.
58823
58824 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58825
58826         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
58827
58828 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58829
58830         * m4/c-bs-a.m4: Removed.
58831
58832 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58833
58834         * lib/strftime.c: Assume strftime() exists.
58835
58836 2006-06-29  Derek Price  <derek@ximbiot.com>
58837
58838         * modules/c-bs-a: Removed - \a is C89.
58839         * MODULES.html.sh: Remove c-bs-a.
58840
58841 2006-06-29  Bruno Haible  <bruno@clisp.org>
58842
58843         * modules/wcwidth (License): Change to LGPL.
58844
58845 2006-06-28  Simon Josefsson  <jas@extundo.com>
58846
58847         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
58848         on _WIN32.
58849
58850         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
58851         getnameinfo.
58852
58853 2006-06-28  Simon Josefsson  <jas@extundo.com>
58854
58855         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
58856
58857 2006-06-28  Simon Josefsson  <jas@extundo.com>
58858
58859         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
58860         functions there.  It will succeed on Windows XP, but on Windows
58861         2000 and (presumably) earlier, it will fail, and use the internal
58862         re-implementation.
58863         (use_win32_p): New function.
58864         (getaddrinfo): Use strtoul on servname, to support numeric ports.
58865         Support AI_NUMERICSERV to disable getservbyname.
58866         (getnameinfo): New function, only supports
58867         NI_NUMERICHOST|NI_NUMERICSERV for now.
58868
58869         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
58870         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
58871         getnameinfo.
58872
58873 2006-06-28  Eric Blake  <ebb9@byu.net>
58874
58875         * modules/wcwidth: New file.
58876         * modules/mbchar (Depends-on): Add wcwidth.
58877         * modules/mbswidth (Depends-on): Add wcwidth.
58878         * MODULES.html.sh: Add wcwidth.
58879
58880 2006-06-28  Eric Blake  <ebb9@byu.net>
58881
58882         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
58883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
58884
58885 2006-06-28  Eric Blake  <ebb9@byu.net>
58886
58887         * lib/xvasprintf.h: Fix comments.
58888
58889 2006-06-28  Eric Blake  <ebb9@byu.net>
58890
58891         * lib/mbchar.h (wcwidth): Include wcwidth.h.
58892         * lib/mbswidth.c (wcwidth): Move from here...
58893         * lib/wcwidth.h: ...to this new file.
58894
58895 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58896
58897         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
58898
58899         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
58900         it's obsolete.
58901         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
58902
58903 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58904
58905         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
58906         Autoconf 2.60 says this stuff was obsolete.
58907
58908 2006-06-28  Bruno Haible  <bruno@clisp.org>
58909
58910         * modules/wcwidth (Files): Add m4/wchar_t.m4.
58911
58912 2006-06-28  Bruno Haible  <bruno@clisp.org>
58913
58914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
58915         gt_TYPE_WCHAR_T.
58916
58917 2006-06-28  Bruno Haible  <bruno@clisp.org>
58918
58919         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
58920         declaration for wcwidth.
58921         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
58922
58923 2006-06-28  Bruno Haible  <bruno@clisp.org>
58924
58925         * lib/mkdtemp.c [MINGW]: Include <io.h>.
58926         (mkdir): Define using _mkdir.
58927
58928 2006-06-28  Bruno Haible  <bruno@clisp.org>
58929
58930         * lib/getaddrinfo.h: Fix POSIX URL.
58931         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
58932         _WIN32.
58933         (use_win32_p): Make static.
58934         (getaddrinfo): Reject service name if it is empty or does not consist
58935         solely of decimal digits, or if its value is > 65535.
58936         (getnameinfo): Remove useless casts.
58937
58938 2006-06-27  Simon Josefsson  <jas@extundo.com>
58939
58940         * modules/sys_select: New file, suggested by Bruno Haible, Paul
58941         Eggert and Martin Lambers.
58942
58943 2006-06-27  Simon Josefsson  <jas@extundo.com>
58944
58945         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
58946         Eggert and Martin Lambers.
58947
58948 2006-06-27  Bruno Haible  <bruno@clisp.org>
58949
58950         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
58951         result to 0, not to empty.
58952         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
58953
58954 2006-06-27  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
58957
58958 2006-06-26  Simon Josefsson  <jas@extundo.com>
58959
58960         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
58961         present.
58962
58963 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
58966         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
58967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
58968
58969 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
58970
58971         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
58972
58973 2006-06-26  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
58976
58977 2006-06-26  Bruno Haible  <bruno@clisp.org>
58978
58979         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
58980
58981 2006-06-26  Bruno Haible  <bruno@clisp.org>
58982
58983         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
58984         SGI C compiler in pre-C99 mode.
58985         Suggested by Mark D. Baushke and Larry Jones.
58986
58987 2006-06-26  Bruno Haible  <bruno@clisp.org>
58988
58989         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
58990         WCHAR_MAX.
58991         Reported by Mark D. Baushke and Larry Jones.
58992
58993 2006-06-26  Bruno Haible  <bruno@clisp.org>
58994
58995         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
58996         in pre-C99 mode.
58997         Suggested by Mark D. Baushke and Larry Jones.
58998
58999 2006-06-23  Simon Josefsson  <jas@extundo.com>
59000             Bruno Haible  <bruno@clisp.org>
59001
59002         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59003         Emit mostlyclean-local rule.
59004         (func_emit_tests_Makefile_am): Likewise.
59005         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59006
59007 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59008
59009         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59010
59011 2006-06-23  Bruno Haible  <bruno@clisp.org>
59012
59013         * tests/test-stdint.c: Update to match ISO C 99 Technical
59014         Corrigendum 1.
59015
59016 2006-06-23  Bruno Haible  <bruno@clisp.org>
59017
59018         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59019
59020 2006-06-23  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/stdint_.h: Treat IRIX like OpenBSD.
59023
59024 2006-06-23  Bruno Haible  <bruno@clisp.org>
59025
59026         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59027         ISO C 99 Technical Corrigendum 1.
59028
59029 2006-06-22  Simon Josefsson  <jas@extundo.com>
59030
59031         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59032         MinGW.
59033
59034 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59037         needed.  Some compiler complained about some of them.  Problem reported
59038         by Larry Jones in
59039         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59040
59041 2006-06-21  Simon Josefsson  <jas@extundo.com>
59042
59043         * tests/test-getaddrinfo.c: New file.
59044
59045         * modules/getaddrinfo-tests: New file.
59046
59047         * MODULES.html.sh: Add inet_pton.
59048
59049         * modules/inet_pton: New file.
59050
59051 2006-06-21  Simon Josefsson  <jas@extundo.com>
59052
59053         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59054         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59055         of using the (limited) gnulib implementation on Windows XP.
59056
59057         * m4/inet_pton.m4: New file.
59058
59059 2006-06-21  Simon Josefsson  <jas@extundo.com>
59060
59061         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59062         variable.
59063
59064         * lib/socket_.h: Don't define WINVER.
59065
59066         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59067         slightly modified to work in gnulib.
59068
59069 2006-06-21  Simon Josefsson  <jas@extundo.com>
59070
59071         * doc/gnulib.texi (Windows sockets): Add.
59072
59073 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59074
59075         * lib/read-file.c (fread_file): Start with buffer allocation of
59076         0 bytes rather than 1 byte; this simplifies the code.
59077         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59078         code to free buffer and save/restore errno.
59079         (internal_read_file): Remove unused local.
59080
59081 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59082
59083         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59084         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59085         Problem reported by Denis Excoffier in
59086         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59087
59088 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59089
59090         * modules/sys_socket, modules/socklen: Include sys/types since
59091         FreeBSD 4.x's sys/socket.h needs it.
59092
59093 2006-06-19  Simon Josefsson  <jas@extundo.com>
59094
59095         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59096
59097 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59098
59099         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59100
59101 2006-06-19  Bruno Haible  <bruno@clisp.org>
59102
59103         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59104         and FULL_PATH_INTTYPES_H in angle brackets.
59105         Reported by Mark D. Baushke <mdb@gnu.org>.
59106
59107 2006-06-17  Eric Blake  <ebb9@byu.net>
59108
59109         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59110         errno.
59111
59112 2006-06-17  Bruno Haible  <bruno@clisp.org>
59113
59114         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59115         <sys/inttypes.h>.
59116
59117 2006-06-17  Bruno Haible  <bruno@clisp.org>
59118
59119         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59120         whether errno is declared. Assume <errno.h> declares errno.
59121
59122 2006-06-17  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59125
59126 2006-06-17  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59129         problem on Solaris 2.5.1.
59130
59131 2006-06-16  Eric Blake  <ebb9@byu.net>
59132
59133         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59134         * lib/unicodeio.c [!defined errno]: Likewise.
59135         * lib/strtol.c [!defined errno]: Likewise.
59136         * lib/strtod.c [!defined errno]: Likewise.
59137
59138 2006-06-15  Eric Blake  <ebb9@byu.net>
59139
59140         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59141
59142 2006-06-15  Eric Blake  <ebb9@byu.net>
59143
59144         * config/srclist.txt (ssize_t.m4): Lose sync.
59145
59146 2006-06-15  Bruno Haible  <bruno@clisp.org>
59147
59148         * modules/stdint (Files): Include m4/full-header-path.m4,
59149         m4/size_max.m4, m4/wchar_t.m4.
59150         (Makefile.am): Many more substitutions.
59151         * modules/stdint-tests: New file.
59152         * tests/test-stdint.c: New file.
59153
59154 2006-06-15  Bruno Haible  <bruno@clisp.org>
59155
59156         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59157         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59158         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59159         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59160         gl_CHECK_TYPE_SAME): New macros.
59161
59162 2006-06-15  Bruno Haible  <bruno@clisp.org>
59163
59164         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59165
59166 2006-06-15  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/stdint_.h: Rewritten to be fully auto-configured.
59169         Fixes bug on HP-UX/IA64.
59170
59171 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59172
59173         * lib/getdate.y (__attribute__): Don't define if already defined.
59174         Problem reported by Larry Jones.
59175         * lib/utimens.c (__attribute__): Likewise.
59176
59177 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
59178
59179         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
59180         reported by Andreas Schwab.
59181
59182 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59183             Bruno Haible  <bruno@clisp.org>
59184
59185         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
59186         check for the declaration of strnlen and a run test that exposes the
59187         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
59188         rpl_strndup.
59189
59190 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59191             Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
59194
59195 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59196
59197         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
59198         compile test, for Tru64 4.0D.
59199
59200 2006-05-28  Karl Berry  <karl@gnu.org>
59201
59202         * config/srclist.txt (printf-args.c): lose sync.
59203
59204 2006-05-26  Martin Lambers  <marlam@marlam.de>
59205
59206         * lib/getpass.c: Updates the test for the native W32 API, and adds
59207         missing includes, thus fixing compilation warnings.
59208
59209 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59210
59211         * lib/exclude.c (exclude_fnmatch): New function.
59212         (excluded_file_name): Call exclude_fnmatch.
59213         * lib/exclude.h (excluded_file_name): New prototype
59214
59215 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         * lib/tempname.c (small_open, large_open): New macros.
59218         (__open, __open64) [!_LIBC]: Remove.
59219         (__gen_tempname): Use small_open and large_open instead of __open
59220         and __open64.  This fixes a portability bug on HP-UX 11.11i
59221         reported by Simon Wing-Tang in
59222         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
59223
59224 2006-05-24  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
59227         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
59228         Reported by Thorsten Maerz <torte@netztorte.de> via
59229         Aaron Stone <aaron@serendipity.cx>.
59230
59231 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59232
59233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
59234         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
59235         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
59236         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
59237         not really conditional on the cache.
59238         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
59239
59240 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59241
59242         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
59243         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
59244         (my_usleep): Don't mishandle maximum value.
59245
59246 2006-05-19  Jim Meyering  <jim@meyering.net>
59247
59248         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
59249
59250 2006-05-17  Bruno Haible  <bruno@clisp.org>
59251
59252         Cygwin portability.
59253         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
59254
59255 2006-05-17  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/stdint_.h: Fix recognition of Cygwin.
59258
59259 2006-05-15  Bruno Haible  <bruno@clisp.org>
59260
59261         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
59262         on libtool patch by Ralf Wildenhues.
59263
59264 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59265
59266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
59267         test for C99 conformance; (bool) 0.5 is an integer constant
59268         expression, but (bool) -0.5 is not.  Problem reported by Fedor
59269         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
59270
59271 2006-05-11  Simon Josefsson  <jas@extundo.com>
59272
59273         * m4/xvasprintf.m4: Fix obvious typo.
59274
59275 2006-05-11  Jim Meyering  <jim@meyering.net>
59276
59277         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
59278         James Lemley.
59279
59280 2006-05-10  Simon Josefsson  <jas@extundo.com>
59281
59282         * lib/md4.c: Typo fix, update copyright years.
59283         (K1, K2): Don't use L because it turn computations into 64-bit on
59284         64-bit platforms.
59285
59286 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
59287
59288         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
59289         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
59290         unwanted sign propagation, e.g., on hosts with 64-bit int.
59291         There still are some problems with reeelly weird theoretical hosts
59292         (e.g., 33-bit int) but it's not worth worrying about now.
59293         * lib/sha1.c (rol): Likewise.
59294         (K1, K2, K3, K4): Remove unnecessary L suffix.
59295
59296 2006-05-10  Bruno Haible  <bruno@clisp.org>
59297
59298         * lib/des.c: Cast to avoid warnings.
59299
59300 2006-05-09  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
59303         (Depends-on): Depend also on xsize, stdarg.
59304         (configure.ac): Add gl_XVASPRINTF.
59305
59306 2006-05-09  Bruno Haible  <bruno@clisp.org>
59307
59308         * m4/xvasprintf.m4: New file.
59309
59310 2006-05-09  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
59313         (EOVERFLOW): Define fallback value.
59314         (xstrcat): New function.
59315         (xvasprintf): Recognize the special case of a string concatenation.
59316
59317 2006-05-08  Eric Blake  <ebb9@byu.net>
59318
59319         * gnulib-tool (func_version): Base copyright year on CVS date.
59320         (func_emit_copyright_notice): New function.
59321         (func_emit_lib_Makefile_am): Use it.
59322         (func_emit_tests_Makefile_am): Likewise.
59323         (func_import): Likewise.
59324
59325 2006-05-08  Bruno Haible  <bruno@clisp.org>
59326
59327         * modules/stdarg: New file.
59328         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
59329
59330 2006-05-08  Bruno Haible  <bruno@clisp.org>
59331
59332         * m4/stdarg.m4: New file, from GNU gettext.
59333
59334 2006-05-08  Bruno Haible  <bruno@clisp.org>
59335
59336         * config/srclist.txt (build-aux/config.rpath): different from latest
59337         release.
59338
59339 2006-05-08  Bruno Haible  <bruno@clisp.org>
59340
59341         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
59342
59343 2006-05-05  Jim Meyering  <jim@meyering.net>
59344
59345         * m4/warning.m4: New file, derived from bison's file by the same name.
59346
59347 2006-05-03  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/stdint_.h: Shorter URL.
59350         * lib/inttypes.h: Likewise.
59351
59352 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
59355
59356 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59357
59358         * lib/verify.h: Document the internals better.  Most of this change
59359         was written by Bruno Haible.
59360
59361 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         * doc/verify.texi: New file, partly based on a proposal by
59364         Bruno Haible.
59365
59366 2006-05-02  Bruno Haible  <bruno@clisp.org>
59367
59368         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
59369         test from here...
59370         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
59371
59372 2006-04-29  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
59375         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
59376
59377 2006-04-29  Bruno Haible  <bruno@clisp.org>
59378
59379         * gnulib-tool: Make --update option actually work.
59380
59381 2006-04-29  Bruno Haible  <bruno@clisp.org>
59382
59383         * doc/gcd.texi: New file.
59384         * doc/gnulib.texi: Include it.
59385
59386 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * lib/getdate.y (get_date): When adding relative date, start with the
59389         initial time, not with the result of the first mktime call.
59390
59391 2006-04-25  Bruno Haible  <bruno@clisp.org>
59392
59393         * gnulib-tool (func_import): Output the include directives in three
59394         blocks, sorted separately.
59395         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59396
59397 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
59400         to define main with arguments, for C++.  Reported by Eric Blake.
59401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
59402         Prefer 'int main ()' to 'int main (void)', for C++.
59403         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
59405         for 'main', for C99 and C++.
59406
59407 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59408
59409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
59410         Don't assume that exit status -1 is valid.
59411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59412         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59413         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59414         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
59415         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
59416         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
59417         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
59418         functions can be used without declaring them, or that you can
59419         exit with status -1.
59420         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59421
59422 2006-04-24  Karl Berry  <karl@gnu.org>
59423
59424         * config/srclist.txt (longdouble.m4): sync lost.
59425
59426 2006-04-24  Eric Blake  <ebb9@byu.net>
59427
59428         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
59429
59430 2006-04-24  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59433         poll() implementation in AIX.
59434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59435
59436 2006-04-24  Bruno Haible  <bruno@clisp.org>
59437
59438         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59439         assigned exactly once.
59440
59441 2006-04-23  Claudio Fontana  <claudio@gnu.org>
59442             Bruno Haible  <bruno@clisp.org>
59443
59444         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
59445         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
59446         for AM_CPPFLAGS.
59447
59448 2006-04-23  Bruno Haible  <bruno@clisp.org>
59449
59450         * modules/copy-file: Depend on unistd.
59451         * modules/execute: Likewise.
59452         * modules/fatal-signal: Likewise.
59453         * modules/findprog: Likewise.
59454         * modules/mkdtemp : Likewise.
59455         * modules/pipe: Likewise.
59456         * modules/wait-process: Likewise.
59457
59458 2006-04-23  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
59461         condition was already detected.
59462         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59463
59464 2006-04-23  Bruno Haible  <bruno@clisp.org>
59465
59466         * lib/copy-file.c: Include <unistd.h> unconditionally.
59467         * lib/execute.c: Likewise.
59468         * lib/fatal-signal.c: Likewise.
59469         * lib/findprog.c: Likewise.
59470         * lib/mkdtemp.c: Likewise.
59471         * lib/pipe.h: Likewise.
59472         * lib/pipe.c: Likewise.
59473         * lib/wait-process.h: Likewise.
59474
59475 2006-04-23  Bruno Haible  <bruno@clisp.org>
59476
59477         * gnulib-tool (func_usage): Fix --import description. Document
59478         --update.
59479         (func_import): Create temporary file in a temporary directory, if
59480         --dry-run is specified. Silence errors from 'grep' when there are no
59481         m4 files in $m4dir.
59482         (func_create_testdir): Silence errors from 'grep' when there are no
59483         m4 files in $m4dir.
59484         Reported by Karl Berry <karl@freefriends.org>.
59485
59486 2006-04-20  Bruno Haible  <bruno@clisp.org>
59487
59488         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
59489         one argument, so that the code will be portable to Autoconf 2.60.
59490         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
59491         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59492         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
59493
59494 2006-04-19  Derek Price  <derek@ximbiot.com>
59495             Eric Blake  <ebb9@byu.net>
59496
59497         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
59498         rather than "/full/path.h".  Update comment to match.  Shorten &
59499         generalize m4_translit call via AS_TR_CPP.
59500
59501 2006-04-19  Derek Price  <derek@ximbiot.com>
59502             Eric Blake  <ebb9@byu.net>
59503
59504         * lib/inttypes.h: Correct grammar in comment.
59505
59506 2006-04-18  Derek Price  <derek@ximbiot.com>
59507             Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * modules/inttypes: New file.
59510         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
59511
59512 2006-04-18  Derek Price  <derek@ximbiot.com>
59513             Paul Eggert  <eggert@cs.ucla.edu>
59514
59515         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
59516         New files.
59517
59518 2006-04-18  Derek Price  <derek@ximbiot.com>
59519             Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         * lib/inttypes.h: New file.
59522         * lib/strtoimax.c: Assume <inttypes.h>.
59523
59524 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
59525
59526         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
59527         isn't mounted.  Problem reported by Kir Kolyshkin.
59528
59529 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
59532         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
59533         Derek R. Price.
59534         * lib/regex.h (RE_DUP_MAX): Update comment to match current
59535         implementation.
59536
59537 2006-04-12  Eric Blake  <ebb9@byu.net>
59538
59539         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
59540         is now done automatically by the corresponding Autoconf macro.
59541
59542 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
59543
59544         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
59545         time_r.h.
59546
59547 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59548
59549         Merge regex changes from libc, removing some of our
59550         POSIX-conformance changes that were rejected and redoing them in a
59551         less-intrusive way.
59552
59553         * lib/regcomp.c (re_compile_internal, init_dfa):
59554         Length arg is now size_t, not Idx.  All uses changed.
59555         (peek_token): Forward decl now says internal_function.
59556         (__re_error_msgid, __re_error_msgid_idx):
59557         Now static rather than extern with attribute_hidden.
59558         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
59559         For some reason libc prefers K&R style defns for external functions.
59560         (regerror) [!defined _LIBC]: Likewise.
59561         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
59562         (seek_collating_symbol_entry, lookup_collation_sequence_value):
59563         (build_range_exp, build_collating_symbol):
59564         Use K&R-style defn.
59565         (re_compile_fastmap): Use '\0' to memset, not 0.
59566         (utf8_sb_map): Make the calculations more obvious.
59567         (init_dfa, parse_bracket_exp, build_charclass_op):
59568         Call calloc and cast result, as glibc does.
59569         (init_word_char, fetch_token, peek_token, peek_token_bracket):
59570         (build_range_exp, build_collating_symbol):
59571         Now internal functions.
59572
59573         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
59574
59575         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
59576         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
59577         Don't depend on VMS; depend on __VMS instead, for POSIX
59578         namespace cleanness.
59579         (regoff_t): Define to ssize_t, not long int.
59580
59581         Remove the REG_ macros named below.  Instead, make the old names
59582         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
59583         __USE_GNU_REGEX.
59584         (REG_BACKSLASH_ESCAPE_IN_LISTS):
59585         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
59586         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
59587         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
59588         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
59589         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
59590         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
59591         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
59592         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
59593         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
59594         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
59595         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
59596         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
59597         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
59598         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
59599         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
59600         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
59601         (REG_NREGS):
59602         Remove.  All uses replaced by the old RE_* names.
59603         (RE_BACKSLASH_ESCAPE_IN_LISTS):
59604         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
59605         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
59606         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
59607         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
59608         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
59609         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
59610         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
59611         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
59612         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
59613         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
59614         Don't bother having these macros be independent of each others'
59615         values, since they no longer exist in the POSIX name space.
59616
59617         Rename the following member names back to their old names,
59618         unless !__USE_GNU_REGEX.  All uses changed back.
59619         (buffer): Renamed from re_buffer.
59620         (allocated): Renamed from re_allocated.
59621         (used): Renamed from re_used.
59622         (syntax): Renamed from re_syntax.
59623         (fastmap): Renamed from re_fastmap.
59624         (translate): Renamed from re_translate.
59625         (can_be_null): Renamed from re_can_be_null.
59626         (regs_allocated): Renamed from re_regs_allocated.
59627         (fastmap_accurate): Renamed from re_fastmap_accurate.
59628         (no_sub): Renamed from re_no_sub.
59629         (not_bol): Renamed from re_not_bol.
59630         (not_eol): Renamed from re_not_eol.
59631         (newline_anchor): Renamed from re_newline_anchor.
59632         (num_regs): Renamed from rm_num_regs.
59633         (start): Renamed from rm_start.
59634         (end): Renamed from rm_end.
59635
59636         (free_state): Move up a bit.
59637
59638         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
59639         #define to be empty.
59640         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
59641         when that is what is intended.
59642         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59643         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59644         (MAX): New macro.
59645         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59646         All uses changed back to re_malloc, etc.  It's now the caller's
59647         responsibility to check for overflow; all callers changed.
59648         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59649         (re_x2nrealloc): Remove.
59650         (free_state): Remove decl.
59651
59652         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59653         (re_set_registers, re_exec):
59654         Use K&R-style defn.
59655
59656         2006-01-31  Roland McGrath  <roland@redhat.com>
59657
59658         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59659         Reported by Mike Frysinger <vapier@gentoo.org>.
59660
59661         2006-01-15  Andreas Jaeger  <aj@suse.de>
59662
59663         [BZ #1950]
59664         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59665         build_wcs_upper_buffer change.
59666         (build_wcs_upper_buffer): Change return type.
59667
59668         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
59669
59670         * lib/regex_internal.h: Include <stdint.h> if available.
59671
59672         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
59673
59674         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
59675
59676         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59677
59678         * lib/regcomp.c: Adjust for changed secondary hash function.
59679
59680         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
59681
59682         * lib/regex.h: Pretty printing.
59683         Clean up namespace a bit.
59684
59685         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
59686
59687         * lib/regexec.c (update_cur_sifted_state, check_arrival,
59688         check_arrival_add_next_nodes): Avoid using uninitialized variable.
59689
59690         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59691                     Ulrich Drepper  <drepper@redhat.com>
59692
59693         [BZ #1302]
59694         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
59695         changed.
59696         (bitset_word_t): Renamed from bitset_word.  All uses changed.
59697
59698         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
59699
59700         [BZ #281]
59701         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
59702         * lib/regcomp.c: Remove unnecessary uses of
59703         unsigned RE_TRANSLATE_TYPE.
59704         * lib/regex_internal.h: Likewise.
59705         * lib/regex_internal.c: Likewise.
59706         * lib/regexec.c: Likewise.
59707         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
59708
59709         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
59710
59711         * lib/regexec.c (find_recover_state): Remove unnecessary
59712         initialization.
59713         (transit_state_bkref): Make DFA a const pointer.
59714         (get_subexp): Likewise.
59715         (check_arrival): Likewise.
59716         (update_cur_sifted_state): Likewise.
59717         (re_search_internal): Likewise.
59718         (prune_impossible_nodes): Likewise.
59719         (acquire_init_state_context): Likewise.
59720         (proceed_next_node): Likewise.
59721         (set_regs): Likewise.
59722         (free_fail_stack_return): Likewise.
59723         (check_arrival_expand_ecl): Mark DFA parameter as const.
59724         (check_arrival_expand_ecl_sub): Likewise.
59725         (check_subexp_limits): Likewise.
59726         (sub_epsilon_src_nodes):  Likewise.
59727         (add_epsilon_src_nodes):  Likewise.
59728         (merge_state_array): Likewise.
59729         (update_regs): Likewise.
59730         (build_trtable): Likewise.
59731         (sift_states_backward): Mark MCTX parameter as const.
59732         (build_sifted_states): Likewise.
59733         (update_cur_sifted_state): Likewise.
59734         (sift_states_mkref): Likewise.
59735         (check_arrival_expand_ecl): Mark eclosure as const.
59736         (check_dst_limits_calc_pos_1): Likewise.
59737         * lib/regex_internal.h (re_match_context_t): Make dfa a const
59738         pointer.
59739
59740         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
59741
59742         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
59743         (transit_state_sb): Likewise.
59744         (transit_state_mb): Likewise.
59745         (sift_states_iter_mb): Likewise.
59746         (check_arrival_add_next_nodes): Likewise.
59747         (check_node_accept_bytes): Change first parameter to pointer-to-const.
59748         [_LIBC] (re_search_2_stub): Use mempcpy.
59749
59750         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
59751         mbrtowc for very simple UTF-8 case.
59752
59753         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
59754         a pointer-to-const.
59755         (re_acquire_state_context): Likewise.
59756         * lib/regex_internal.h: Adjust prototypes.
59757
59758         * lib/regex.c: Prevent using C++ compilers.
59759
59760         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
59761         (re_acquire_state_context): Likewise.
59762
59763 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59764
59765         * modules/regex (Depends-on): Add ssize_t.
59766
59767 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
59770         translation table.
59771
59772 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59773
59774         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
59775
59776 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59777             Bruno Haible  <bruno@clisp.org>
59778
59779         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59780         <sys/types.h> and <inttypes.h>.
59781
59782 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59783
59784         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59785         `__error_t_defined', so argp.h will not typedef the former.
59786
59787 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59790         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59791         glibc names.  Even if glibc is changed to conform to POSIX, the
59792         traditional names will be available anyway, since regex depends on
59793         the extensions module.  Also, fix a longstanding typo in the
59794         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59795         reported by Emanuele Giaquinta.  Also, change sense of cached
59796         variable, so that the message makes sense.
59797
59798 2006-03-24  Simon Josefsson  <jas@extundo.com>
59799
59800         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59801         including some doc fixes.
59802         (base64_encode_alloc): Fix +1 bug on allocation failures.
59803
59804 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59805
59806         * lib/base64.c (base64_encode): Do not read past end of array with
59807         unsanitized input on systems with CHAR_BIT > 8.
59808
59809 2006-03-24  Eric Blake  <ebb9@byu.net>
59810
59811         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59812
59813 2006-03-22  Karl Berry  <karl@gnu.org>
59814
59815         * config/srclist.txt (*setenv.[ch]): get from coreutils.
59816         * config/srclistvars.sh (COREUTILS): new var.
59817
59818 2006-03-17  Jim Meyering  <jim@meyering.net>
59819
59820         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
59821         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
59822
59823 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
59826         no longer needs it.  Instead, check that regoff_t is as least
59827         as wide as ptrdiff_t.
59828
59829         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
59830         so that our regex.h stays compatible with the installed regex.
59831         This is helpful for installers who configure --without-included-regex.
59832         Problem reported by Emanuele Giaquinta.
59833
59834 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
59837         Typedef to long int, not to off_, as POSIX will likely change
59838         in that direction.
59839
59840 2006-03-15  Eric Blake  <ebb9@byu.net>
59841
59842         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
59843
59844 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59845
59846         * lib/argp-help.c (validate_uparams): Fix typo
59847         * lib/argp-parse.c (argp_default_options): Consistently begin help
59848         messages with a lowercase letter.
59849
59850 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
59853         overrun buffers and shouldn't be used (much as gets shouldn't be
59854         used).
59855         * lib/time_r.c (asctime_r, ctime_r): Likewise.
59856
59857 2006-03-08  Simon Josefsson  <jas@extundo.com>
59858
59859         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
59860         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59861
59862 2006-03-08  Simon Josefsson  <jas@extundo.com>
59863
59864         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
59865         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59866
59867 2006-03-08  Simon Josefsson  <jas@extundo.com>
59868
59869         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
59870         signal that configure disabled the device.
59871
59872 2006-03-08  Simon Josefsson  <jas@extundo.com>
59873
59874         * build-aux/maint.mk: Fix refresh-po, to handle no translated
59875         languages.
59876
59877 2006-03-07  Simon Josefsson  <jas@extundo.com>
59878
59879         * modules/getopt (Depends-on): Add unistd.
59880
59881         * modules/unistd: New file.
59882
59883 2006-03-07  Simon Josefsson  <jas@extundo.com>
59884
59885         * modules/gc-random: New file.
59886
59887 2006-03-07  Simon Josefsson  <jas@extundo.com>
59888
59889         * m4/unistd_h.m4: New file.
59890
59891 2006-03-07  Simon Josefsson  <jas@extundo.com>
59892
59893         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
59894         test to be side-effect free by storing the result in the cache
59895         variable gl_cv_lib_readline, and moving the assignment of
59896         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
59897         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59898
59899 2006-03-07  Simon Josefsson  <jas@extundo.com>
59900
59901         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
59902         error on missing devices (the functions will return an error).
59903
59904         * m4/gc.m4: Move random stuff to gc-random.m4
59905
59906 2006-03-07  Simon Josefsson  <jas@extundo.com>
59907
59908         * lib/unistd_.h: New file.
59909
59910 2006-03-07  Simon Josefsson  <jas@extundo.com>
59911
59912         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
59913
59914 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
59917         Problem reported by Juan Manuel Guerrero.
59918
59919 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
59922         the unistd module.
59923         * lib/getlogin_r.c: Likewise.
59924         * lib/getlogin_r.h: Likewise.
59925         * lib/glob.c: Likewise.
59926         * lib/pagealign_alloc.c: Likewise.
59927         * lib/unistd_.h: Remove; no longer needed.
59928
59929 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59930
59931         * MODULES.html.sh (Support for systems lacking POSIX:2001):
59932         Add unistd.
59933         * modules/c-stack (Depends-on): Add unistd.
59934         * modules/getlogin_r: Likewise.
59935         * modules/glob: Likewise.
59936         * modules/pagealign_alloc: Likewise.
59937         * modules/unistd (Files): Remove lib/unistd_.h.
59938         (EXTRA_DIST): Remove.
59939         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
59940         need unistd_.h.
59941         (MOSTLYCLEANFILES): Remove unistd.h-t.
59942
59943 2006-03-03  Simon Josefsson  <jas@extundo.com>
59944
59945         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
59946
59947 2006-03-03  Simon Josefsson  <jas@extundo.com>
59948
59949         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
59950         libidn and bison.
59951
59952 2006-03-03  Simon Josefsson  <jas@extundo.com>
59953
59954         * build-aux/maint.mk: Add indent target.
59955
59956 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
59957
59958         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
59959         our replacement poll.h in any case, to avoid a differing
59960         declaration from a system header.  Seen on AIX.
59961
59962 2006-03-01  Simon Josefsson  <jas@extundo.com>
59963
59964         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
59965         <kasal@ucw.cz>.
59966
59967 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * modules/gettime (Depends-on): Add extensions module.
59970         * modules/nanosleep (Depends-on): Likewise.
59971         * modules/settime (Depends-on): Likewise.
59972
59973 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59974
59975         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
59976         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
59977         pedantically.
59978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59979         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
59980
59981         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
59982         not "==".  Reported by Ralf Wildenhues.
59983
59984 2006-03-01  Karl Berry  <karl@gnu.org>
59985
59986         * doc/Copyright/request-*: new files, synced from gnuorg.
59987
59988 2006-03-01  Karl Berry  <karl@gnu.org>
59989
59990         * config/srclist.txt (Copyright/*): new entries.
59991
59992 2006-02-28  Simon Josefsson  <jas@extundo.com>
59993
59994         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
59995
59996 2006-02-27  Simon Josefsson  <jas@extundo.com>
59997
59998         * lib/base64.h: Indent #define's.  From Jim Meyering
59999         <jim@meyering.net>.
60000
60001 2006-02-27  Jim Meyering  <jim@meyering.net>
60002
60003         Revert the change of 2006-02-24, so these files can continue
60004         to be sync'd from gettext.
60005         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60006         of `config.h'.
60007
60008 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         * modules/intprops: New file.
60011         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60012         Add intprops.
60013         * modules/getloadavg (Files): Remove lib/intprops.h.
60014         (Depends-on): Add intprops.
60015         * modules/human: Likewise.
60016         * modules/inttostr: Likewise.
60017         * modules/openat: Likewise.
60018         * modules/sig2str: Likewise.
60019         * modules/userspec: Likewise.
60020         * modules/utimecmp: Likewise.
60021         * modules/xnanosleep: Likewise.
60022         * modules/xstrtol: Likewise.
60023
60024 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60025
60026         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60027         * modules/lock-tests (TESTS): Use $(EXEEXT).
60028         * modules/tls-tests: Likewise.
60029         * modules/argp-tests: Likewise.
60030         (check_PROGRAMS): New var, replacing...
60031         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60032
60033 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60034
60035         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60036         `config.h'.
60037
60038 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60039
60040         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60041
60042 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60043
60044         Sync from coreutils.
60045         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60046         gl_CHDIR_SAFER.
60047
60048 2006-02-22  Jim Meyering  <jim@meyering.net>
60049
60050         Sync from coreutils.
60051         * m4/chdir-safer.m4: New file.
60052
60053 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60054
60055         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60056         AT_FDCWD exceeds INT_MAX.
60057         * lib/openat.h (AT_FDCWD): Likewise.
60058
60059 2006-02-17  Eric Blake  <address@hidden>
60060
60061         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60062
60063 2006-02-16  Simon Josefsson  <jas@extundo.com>
60064
60065         * modules/getaddrinfo (Depends-on): Add sys_socket.
60066
60067 2006-02-15  Simon Josefsson  <jas@extundo.com>
60068
60069         * build-aux/maint.mk: Add dsyntax-check rule.
60070
60071 2006-02-15  Eric Blake  <ebb9@byu.net>
60072
60073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60074         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60075         'present but cannot compile' warnings on cygwin.
60076         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60077         use ws2tcpip.h if sys/socket.h works.
60078         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60079         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60080
60081 2006-02-14  Simon Josefsson  <jas@extundo.com>
60082
60083         * modules/maintainer-makefile (Files): Rename.
60084
60085         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60086         and (the local) Makefile.cfg to maint-cfg.mk.
60087
60088         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60089         to the latter.
60090
60091         * modules/maintainer-makefile: New module.
60092
60093         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60094         severaly stripped to make it possible to build it up from scratch
60095         with reliable tests.
60096
60097         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60098         fixes to permit overriding the default actions when configure and
60099         makefile are not available.
60100
60101 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         Sync from coreutils.
60104         * modules/lstat (Depends-on): Don't depend on xalloc.
60105         (License): Change from GPL to LGPL, since this is now simply a
60106         replacement for a libc function.
60107
60108 2006-02-14  Jim Meyering  <jim@meyering.net>
60109
60110         Sync from coreutils.
60111
60112         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60113         failure on deficient systems, and simplify gnulib lgpl dependencies.
60114         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60115         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60116
60117         * lib/xalloc-die.c: Remove unused definition of N_.
60118
60119 2006-02-14  Jim Meyering  <jim@meyering.net>
60120
60121         Sync from coreutils.
60122         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60123         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60124         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60125         double-quote uses of that variable, to accommodate the rare case in
60126         which getmntent is available in none of the libraries checked.  This
60127         happens at least on FreeBSD 5.0.
60128
60129 2006-02-13  Simon Josefsson  <jas@extundo.com>
60130
60131         * gnulib-tool (Usage): Fix --import, from
60132         karl@freefriends.org (Karl Berry).
60133
60134 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60135
60136         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60137
60138 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60139
60140         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60141         "autoupdate" on 2005-12-12.
60142
60143 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * modules/closeout (Depends-on): Remove atexit.
60146
60147 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60148
60149         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60150         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60151
60152 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60153
60154         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60155         __EXTENSIONS__ if this causes compilation to fail.  Problem
60156         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60157         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60158
60159 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60160
60161         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60162         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60163         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60164         All uses changed.
60165
60166 2006-01-26  Simon Josefsson  <jas@extundo.com>
60167
60168         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60169         prototype is visible on mingw32.
60170
60171         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60172         for mingw32.
60173
60174         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60175         mingw32).
60176
60177 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
60180         attempt to open for write; this always fails, at least on POSIX
60181         hosts.  This reinstates the 2006-01-09 change, which was
60182         inadvertently removed.
60183
60184 2006-01-26  Bruno Haible  <bruno@clisp.org>
60185
60186         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
60187         Reported by Paul Eggert.
60188
60189 2006-01-26  Bruno Haible  <bruno@clisp.org>
60190             Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * lib/stdbool_.h (_Bool)
60193         [(! (defined __cplusplus || defined __BEOS__)
60194           && !defined __GNUC__
60195           && !(defined __HP_cc || defined __xlc__
60196                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
60197                || defined __sgi))]:
60198         #define to signed char in these cases too; this simplifies
60199         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
60200         etc., separately) and makes it more conservative.
60201
60202 2006-01-25  Simon Josefsson  <jas@extundo.com>
60203
60204         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
60205         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
60206         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
60207
60208 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60209
60210         * lib/argp-namefrob.h: Bugfix. Remove stray #
60211
60212 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
60215         so that we test the test.
60216         Check for yet another HP-UX cc bug involving *bool |= bool.
60217
60218 2006-01-25  Karl Berry  <karl@gnu.org>
60219
60220         * config/srclist.txt (vasnprintf.c): sync lost.
60221
60222 2006-01-25  Jim Meyering  <jim@meyering.net>
60223
60224         Sync from the stable (b5) branch of coreutils:
60225
60226         * lib/fts.c (fts_children): Don't let close() clobber errno from
60227         failed fchdir().
60228
60229         * lib/fts.c (fts_stat): When following a symlink-to-directory,
60230         don't necessarily interpret stat-fails+lstat-succeeds as indicating
60231         a dangling symlink.  That can also happen at least for ELOOP.
60232         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
60233         FYI, this bug predates the inclusion of fts.c in coreutils.
60234
60235         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
60236         in their own block, so pre-c99 compilers don't object.
60237
60238         Avoid the double-free (first in fts_read, second in fts_close) that
60239         would occur when an `active' directory is made inaccessible (e.g.,
60240         via chmod a-x) during a traversal.
60241         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60242         before returning.  Reproduce this failure by
60243         mkdir -p a/b; cd a; chmod a-x . b
60244         Reported by Stavros Passas.
60245
60246 2006-01-25  Jim Meyering  <jim@meyering.net>
60247
60248         * lib/fileblocks.c: Remove more useless parentheses.
60249         * lib/readutmp.h: Likewise.
60250
60251 2006-01-25  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
60254         warnings.
60255         Reported by Paul Eggert.
60256
60257 2006-01-25  Bruno Haible  <bruno@clisp.org>
60258
60259         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
60260         rid of a trap command. For Solaris sh.
60261         Reported by Mark D. Baushke <mdb@gnu.org>.
60262
60263 2006-01-24  Simon Josefsson  <jas@extundo.com>
60264
60265         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
60266         Bruno.
60267
60268 2006-01-24  Karl Berry  <karl@gnu.org>
60269
60270         * config/srclist.txt (argp-namefrob.h): sync lost.
60271
60272 2006-01-24  Jim Meyering  <jim@meyering.net>
60273
60274         * modules/openat (Files): Add lib/intprops.h.
60275         From Mark D. Baushke.
60276
60277 2006-01-24  Jim Meyering  <jim@meyering.net>
60278
60279         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
60280         Reported by Mark D. Baushke.
60281
60282 2006-01-24  Jim Meyering  <jim@meyering.net>
60283
60284         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
60285
60286 2006-01-24  Bruno Haible  <bruno@clisp.org>
60287
60288         * modules/strnlen (Maintainer): Change from glibc to all.
60289
60290 2006-01-24  Bruno Haible  <bruno@clisp.org>
60291
60292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
60293         Patch by Paul Eggert.
60294
60295 2006-01-24  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
60298         already has it.
60299         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
60300         2005-11-26.
60301
60302         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
60303         'signed char' to avoid problems with the built-in _Bool type.
60304         Reported by Paul Eggert on 2005-11-26.
60305
60306 2006-01-24  Bruno Haible  <bruno@clisp.org>
60307
60308         * gnulib-tool (func_import): Avoid constructing complicated sed
60309         expressions inside backquote.
60310         Report and solution by Mark D. Baushke <mdb@gnu.org>.
60311
60312 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
60313
60314         These changes imported from libc.
60315         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
60316         test and two separate function calls.
60317         * lib/strndup.c (__strndup): Add libc_hidden_def.
60318
60319 2006-01-23  Simon Josefsson  <jas@extundo.com>
60320
60321         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
60322         Remove the test_*_SOURCES variable: automake infers it by default.
60323         * modules/tls-tests: Likewise.
60324
60325 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         Work around porting bugs reported by Dieter in
60328         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
60329         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
60330         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
60331         Include "getopt.h" first, to check interface.
60332         (getenv): Declare only if defined HAVE_DECL_GETENV &&
60333         !HAVE_DECL_GETENV.
60334         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
60335         (__strndup): Revert to K&R-style function dfns, the glibc style.
60336         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
60337         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
60338         Include strnlen.h first, to get prototype properly.
60339         (strnlen): Renamed from __strnlen.
60340         Remove weak alias.
60341
60342 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60343
60344         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
60345
60346 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60347
60348         * config/srclist.txt: Adjust to reflect glibc reorganization.
60349         This affects only comments.
60350
60351 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60352
60353          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
60354          Reported by Bruce Korb <bkorb@gnu.org>.
60355
60356 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60357
60358         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
60359         to pacify gcc -Wswitch-default.
60360
60361 2006-01-22  Bruno Haible  <bruno@clisp.org>
60362
60363         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
60364         temporary buffer for sprintf, take into account the precision also
60365         for 'd', 'i', 'u', 'o', 'x', 'X'.
60366
60367 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60368
60369         * modules/argp-tests: New module
60370         * tests/test-argp.c: New file
60371         * tests/test-argp-2.sh: New file
60372
60373 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60374
60375         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
60376         (__argp_base_name): Removed
60377         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
60378         typo.
60379         (__argp_base_name): Provide macro definition or extern declaration
60380         depending on the configuration
60381
60382 2006-01-20  Simon Josefsson  <jas@extundo.com>
60383
60384         * modules/inet_ntop (Depends-on): Depend on sys_socket.
60385
60386 2006-01-20  Simon Josefsson  <jas@extundo.com>
60387
60388         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
60389
60390 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
60393         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
60394         Suggested by Bruno Haible.
60395
60396 2006-01-20  Karl Berry  <karl@gnu.org>
60397
60398         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
60399         until changes propagate, I guess.
60400
60401 2006-01-19  Simon Josefsson  <jas@extundo.com>
60402
60403         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
60404
60405 2006-01-19  Simon Josefsson  <jas@extundo.com>
60406
60407         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
60408
60409 2006-01-19  Simon Josefsson  <jas@extundo.com>
60410
60411         * gnulib-tool: Set check_PROGRAMS.
60412
60413         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60414         modules/des-tests, modules/gc-arcfour-tests,
60415         modules/gc-arctwo-tests, modules/gc-des-tests,
60416         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60417         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60418         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60419         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60420         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60421         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
60422         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
60423         test_*_SOURCES.
60424
60425 2006-01-18  Simon Josefsson  <jas@extundo.com>
60426
60427         * modules/socklen (Depends-on): Depend on sys_socket.
60428
60429 2006-01-18  Simon Josefsson  <jas@extundo.com>
60430
60431         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60432         modules/des-tests, modules/gc-arcfour-tests,
60433         modules/gc-arctwo-tests, modules/gc-des-tests,
60434         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60435         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60436         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60437         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60438         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60439         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60440         $(EXEEXT) to automake TESTS variable, for mingw32.
60441
60442 2006-01-17  Simon Josefsson  <jas@extundo.com>
60443
60444         * modules/socklen (Include): Need sys/socket.h.
60445
60446 2006-01-17  Bruno Haible  <bruno@clisp.org>
60447
60448         * modules/ssize_t (Include): Add <sys/types.h>.
60449
60450 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
60451
60452         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
60453         it's not portable and it doesn't work with cross-compiles.
60454         Problem reported by Bruno Haible.  Fix missing-$ typo in
60455         'test "gl_cv_ignore_unused_libraries" ...' that prevented
60456         -zignore from being used with Sun's C compiler.
60457
60458 2006-01-12  Simon Josefsson  <jas@extundo.com>
60459
60460         * lib/base64.c: Fix warning, reported by Bruno Haible
60461         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
60462
60463 2006-01-12  Bruno Haible  <bruno@clisp.org>
60464
60465         * modules/ldd: New file.
60466         * build-aux/ldd.sh.in: New file.
60467         * MODULES.html.sh (Support for building libraries and executables): Add
60468         ldd.
60469
60470 2006-01-12  Bruno Haible  <bruno@clisp.org>
60471
60472         * m4/ldd.m4: New file.
60473
60474 2006-01-12  Bruno Haible  <bruno@clisp.org>
60475
60476         * gnulib-tool (func_import, func_create_testdir): Don't go into an
60477         endless loop while replacing $auxdir with build-aux.
60478
60479 2006-01-11  Simon Josefsson  <jas@extundo.com>
60480
60481         * lib/stdint_.h (SIZE_MAX): Add missing (.
60482
60483 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60484
60485         Sync from coreutils.
60486         * lib/md5.c: Fix commentary typos.
60487         (alignof, UNALIGNED_P): No need for a GCC-specific version.
60488         * lib/md5.h (__attribute__): Remove; unused.
60489         * lib/sha1.c: Fix commentary to match md5 better.
60490         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
60491         so that we don't need to worry about alignment.  All uses changed.
60492         This merges the 2005-10-28 md5 change into sha1.
60493
60494 2006-01-11  Jim Meyering  <jim@meyering.net>
60495
60496         Sync from coreutils.
60497         * lib/md5.c (OP): Fix spacing.
60498
60499 2006-01-11  Bruno Haible  <bruno@clisp.org>
60500
60501         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60502         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
60503         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
60504
60505 2006-01-11  Bruno Haible  <bruno@clisp.org>
60506
60507         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60508         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
60509         the "early" section as well.
60510
60511 2006-01-11  Bruno Haible  <bruno@clisp.org>
60512
60513         Avoid "ar: no archive members specified" error on MacOS X.
60514         * gnulib-tool (func_modules_add_dummy): New function.
60515         (func_import, func_create_testdir): Invoke it.
60516
60517 2006-01-11  Bruno Haible  <bruno@clisp.org>
60518
60519         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
60520         with $auxdir in AC_CONFIG_FILES statements.
60521
60522 2006-01-11  Bruno Haible  <bruno@clisp.org>
60523
60524         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60525         Initialize also noinst_HEADERS to empty.
60526
60527 2006-01-11  Bruno Haible  <bruno@clisp.org>
60528
60529         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
60530         variables.
60531         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
60532         autoreconf.
60533
60534 2006-01-11  Bruno Haible  <bruno@clisp.org>
60535
60536         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
60537         overridable by the user.
60538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60539
60540 2006-01-10  Simon Josefsson  <jas@extundo.com>
60541
60542         * modules/sys_socket: New file.
60543
60544 2006-01-10  Simon Josefsson  <jas@extundo.com>
60545
60546         * m4/sys_socket_h.m4: New file.
60547
60548 2006-01-10  Simon Josefsson  <jas@extundo.com>
60549
60550         * lib/socket_.h: New file.
60551
60552 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60553
60554         * modules/readutmp (Maintainer): Add myself.
60555
60556 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60557
60558         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
60559         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
60560         People who are still concerned with buggy memcmp implementations
60561         can invoke gl_FUNC_MEMCMP themselves.
60562
60563 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60564
60565         * lib/regex_internal.h (BITSET_WORD_BITS):
60566         Work around a bug in 64-bit PGC (before version 6.1-2), where the
60567         preprocessor mishandles large unsigned values as if they were signed.
60568         Problem reported by Claudio Fontana in
60569         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
60570
60571 2006-01-10  Jim Meyering  <jim@meyering.net>
60572
60573         Avoid the double-free (first in fts_read, second in fts_close) that
60574         would occur when an `active' directory is made inaccessible (e.g.,
60575         via chmod a-x) during a traversal.
60576         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60577         before returning.  Reproduce this failure by
60578         mkdir -p a/b; cd a; chmod a-x . b
60579         Reported by Stavros Passas.
60580
60581         Sync from coreutils.
60582         * lib/sha1.c: Tweak grammar in a comment.
60583
60584 2006-01-10  Jim Meyering  <jim@meyering.net>
60585
60586         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
60587         Patch by Joerg Sonnenberger.
60588
60589 2006-01-10  Bruno Haible  <bruno@clisp.org>
60590
60591         * modules/readutmp: Depend on module free.
60592         * modules/strtok_r: Depend on module restrict.
60593
60594 2006-01-10  Bruno Haible  <bruno@clisp.org>
60595
60596         * modules/gettext (configure.ac): Add an invocation of
60597         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
60598
60599 2006-01-10  Bruno Haible  <bruno@clisp.org>
60600
60601         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
60602         Reported by Werner Lemberg <wl@gnu.org>.
60603
60604 2006-01-10  Bruno Haible  <bruno@clisp.org>
60605
60606         * lib/localcharset.c: Update from GNU gettext.
60607
60608 2006-01-10  Bruno Haible  <bruno@clisp.org>
60609
60610         * lib/argp.h (__const): Remove macro. Use const instead.
60611         * lib/argp-fmtstream.h (__const): Likewise.
60612         * lib/glob_.h (__const): Remove macro.
60613         * lib/glob-libc.h: Use const instead of __const.
60614
60615 2006-01-10  Bruno Haible  <bruno@clisp.org>
60616
60617         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
60618         variable.
60619         Needed to avoid an automake error regarding the 'gettext' module.
60620
60621 2006-01-09  Simon Josefsson  <jas@extundo.com>
60622
60623         * modules/inet_ntop (Depends-on): Add restrict.
60624
60625 2006-01-09  Simon Josefsson  <jas@extundo.com>
60626
60627         * modules/gc-rijndael-tests (License): Put under LGPL.
60628
60629         * modules/gc-des-tests (License): Likewise.
60630
60631         * modules/gc-arcfour-tests (License): Likewise.
60632
60633         * modules/gc-arctwo-tests (License): Likewise.
60634
60635         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
60636
60637         * modules/gc-hmac-sha1-tests (Files): Likewise.
60638
60639         * modules/gc-hmac-md5-tests (License): Likewise.
60640
60641         * modules/gc-sha1-tests (License): Likewise.
60642
60643         * modules/gc-md5-tests (License): Likewise.
60644
60645         * modules/gc-md4-tests (License): Likewise.
60646
60647         * modules/gc-md2-tests (License): Likewise.
60648
60649         * modules/gc-tests (License): Likewise.
60650
60651         * modules/des-tests (License): Likewise.
60652
60653         * modules/md4-tests (License): Likewise.
60654
60655         * modules/md2-tests (License): Likewise.
60656
60657 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         Sync from coreutils:
60660
60661         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60662         * modules/lib-ignore: New file.
60663         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60664         chdir-safer.m4, lchmod.m4.
60665         * modules/openat: Add mkdirat.c, openat-priv.h.
60666
60667 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         Sync from coreutils.
60670         * m4/lib-ignore.m4: New file.
60671         * m4/lchmod.m4: New file.
60672
60673 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         Sync from coreutils.
60676         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
60677         for write access: POSIX says that must fail.
60678         * lib/fts.c (diropen): Likewise.
60679         * lib/save-cwd.c (save_cwd): Likewise.
60680         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
60681         well, for minor improvements on hosts that lack O_DIRECTORY.
60682         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
60683         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
60684         Fall back on chown if open failed with EACCES.
60685
60686         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
60687         Report an error at compile-time if only a 1-second nominal clock
60688         resolution is found.
60689
60690         * lib/lchmod.h: New file.
60691         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
60692         (make_dir_parents): Use lchown rather than chown, and
60693         lchmod rather than chmod.
60694
60695         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
60696         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
60697         "proc" reported by n0dalus.
60698
60699         * lib/mountlist.c: Include <limits.h>.
60700         (dev_from_mount_options)
60701         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
60702         New function.  It no longer assumes "dev=" has the System V meaning
60703         on Linux (since it doesn't).  It also parses "dev=" more carefully.
60704         (read_file_system_list)
60705         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
60706         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
60707         dev= in that case.
60708
60709         * lib/posixtm.h (PDS_PRE_2000): New macro.
60710         * lib/posixtm.c (year): Arg is now syntax_bits rather than
60711         allow_century.  All usages changed.  Reject dates outside the range
60712         1969-1999 if PDS_PRE_2000 is used.
60713
60714 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         Sync from coreutils.
60717         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
60718         (Time of day items): Mention the possibility of leap seconds.
60719         Problem reported by Dr. David Alan Gilbert.
60720
60721 2006-01-09  Jim Meyering  <jim@meyering.net>
60722
60723         Sync from coreutils.
60724
60725         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
60726
60727         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
60728
60729         * lib/modechange.c (mode_compile): Reject an invalid mode string
60730         that starts with an octal digit.  From Andreas Gruenbacher.
60731
60732         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
60733         and dup to open_safer and dup_safer, respectively.
60734         (openat_permissive): Fix typo in comment.
60735
60736         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
60737         "gettext.h"; either no longer needed or are guaranteed by openat.h.
60738         (_): Remove; no longer needed.
60739         (openat): Renamed from rpl_openat; no need for rpl_openat
60740         since openat.h renames openat for us.
60741         Replace most of the body with a call to openat_permissive,
60742         to avoid duplicate code.
60743         Port to (probably hypothetical) environments were mode_t is
60744         wider than int.
60745         (openat_permissive): Require mode arg, so that we can check
60746         types better.  Put it just after flags.  Change cwd failure
60747         indicator from pointer-to-bool to pointer-to-errno-value.
60748         All callers changed.
60749         Invoke openat_save_fail and/or openat_restore_fail if
60750         cwd_errno is null, so that openat can call us.
60751         (openat_permissive, fdopendir, fstatat, unlinkat):
60752         Simplify errno handling to avoid some duplicate code,
60753         as it's OK to set errno on success.
60754         * lib/openat.h: Revamp code so that function macros depend on
60755         __OPENAT_PREFIX only, not also on AT_FDCWD.
60756         (openat_ro): Remove.  Caller changed to use openat_permissive.
60757         (openat_permissive): Now a macro, if not a function.
60758         (openat_restore_fail, openat_save_fail): Now always functions,
60759         since mkdirat needs them even if __OPENAT_PREFIX is defined.
60760
60761         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
60762         and openat.c.
60763         * lib/mkdirat.c: Include openat-priv.h.
60764         Remove definitions of macros defined therein.
60765         * lib/openat.c: Likewise.
60766
60767         * lib/mkdirat.c (mkdirat): New file and function.
60768         * lib/openat.h (mkdirat): Declare.
60769
60770         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
60771
60772         * lib/openat.h (openat_permissive): Declare.
60773         (openat_ro): Define.
60774
60775         * lib/openat.c (EXPECTED_ERRNO): New macro.
60776         (openat_permissive): New function -- used in remove.c rewrite.
60777         (all functions): Set errno just before returning, only if there
60778         was an actual failure.
60779         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60780
60781         Emulate openat-family functions using Linux's procfs, if possible.
60782         Idea and some code based on Ulrich Drepper's glibc changes.
60783
60784         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60785         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60786         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60787         before falling back on save_cwd and restore_cwd.
60788         (fdopendir, fstatat, unlinkat): Likewise.
60789
60790         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60791         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60792
60793         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60794         as second argument to va_arg.  Otherwise, some versions of gcc
60795         warn that `if this code is reached, the program will abort'.
60796
60797 2006-01-09  Jim Meyering  <jim@meyering.net>
60798
60799         Sync from coreutils.
60800         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60801         Require openat-priv.h.
60802
60803 2006-01-09  Bruno Haible  <bruno@clisp.org>
60804
60805         * modules/strnlen (Include): Use strnlen.h.
60806
60807 2006-01-09  Bruno Haible  <bruno@clisp.org>
60808
60809         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60810
60811 2006-01-09  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/sysexit_.h (EX_OK): New macro.
60814         Suggested by Martin Lambers <marlam@marlam.de>.
60815
60816 2006-01-09  Bruno Haible  <bruno@clisp.org>
60817
60818         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
60819         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
60820
60821 2006-01-09  Bruno Haible  <bruno@clisp.org>
60822
60823         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
60824         numbers.
60825
60826 2006-01-09  Bruno Haible  <bruno@clisp.org>
60827
60828         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
60829         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
60830         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
60831         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
60832
60833 2006-01-09  Bruno Haible  <bruno@clisp.org>
60834
60835         * build-aux/javacomp.sh.in: New file, moved from lib/.
60836         * modules/javacomp-script (Files): Update.
60837         (configure.ac): Add AC_CONFIG_FILES invocation.
60838         (EXTRA_DIST): Remove variable.
60839
60840         * build-aux/javaexec.sh.in: New file, moved from lib/.
60841         * modules/javaexec (Files): Update.
60842         (configure.ac): Add AC_CONFIG_FILES invocation.
60843         (EXTRA_DIST): Remove javaexec.sh.in.
60844
60845         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
60846         * modules/csharpcomp-script (Files): Update.
60847         (configure.ac): Add AC_CONFIG_FILES invocation.
60848         (EXTRA_DIST): Remove variable.
60849
60850         * build-aux/csharpexec.sh.in: New file, moved from lib/.
60851         * modules/csharpexec (Files): Update.
60852         (configure.ac): Add AC_CONFIG_FILES invocation.
60853         (EXTRA_DIST): Remove csharpexec.sh.in.
60854
60855 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60856
60857         Sync from coreutils.
60858
60859         Add POSIX ACL support
60860         * lib/acl.h (copy_acl, set_acl): Add declarations.
60861         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
60862         systems other than Linux.
60863         (chmod_or_fchmod): New function: use fchmod when possible,
60864         and chmod otherwise.
60865         (file_has_acl): Add a POSIX ACL implementation, with a
60866         Linux-specific subcase.
60867         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
60868         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
60869         acls are unsupported.
60870         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
60871         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
60872         are unsupported.
60873
60874 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60875
60876         Sync from coreutils.
60877         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
60878
60879 2006-01-07  Bruno Haible  <bruno@clisp.org>
60880
60881         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
60882         gl_EARLY.
60883
60884 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60885
60886         * lib/strftime.c (tzname): Don't declare if it is already #defined.
60887         Problem reported for Mingw by Mark Junker.
60888
60889 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60890
60891         * README: Gnulib normally doesn't generate a tarball.
60892
60893 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
60894
60895         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
60896         long int, not int, for nanosecond counts, so that people who are
60897         used to POSIX struct timespec won't be surprised.  Reported by Jim
60898         Meyering.
60899
60900 2005-12-28  Bruno Haible  <bruno@clisp.org>
60901
60902         * build-aux/config.rpath: Update from GNU gettext.
60903
60904 2005-12-16  Jim Meyering  <jim@meyering.net>
60905
60906         * modules/fprintftime: New module.
60907         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
60908
60909 2005-12-16  Jim Meyering  <jim@meyering.net>
60910
60911         * m4/fprintftime.m4: New file.
60912
60913 2005-12-16  Jim Meyering  <jim@meyering.net>
60914
60915         * lib/fprintftime.c, lib/fprintftime.h: New files.
60916
60917 2005-12-15  Simon Josefsson  <jas@extundo.com>
60918
60919         * modules/socklen (configure.ac): Fix M4 macro name, to align with
60920         new m4/socklen.m4.
60921
60922 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60923
60924         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
60925         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
60926
60927 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60928
60929         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
60930         * lib/argp-help.c (fill_in_uparams): Check if the constructed
60931         struct uparams is valid. Fall back to the default values if it is
60932         not.
60933
60934 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60935
60936         * modules/argp (Files): Add argp-pin.c
60937         (Depends-on): dirname
60938         (lib_SOURCES): Add argp-pin.c
60939
60940 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60941
60942         * m4/argp.m4:  Check if program_invocation_name and
60943         program_invocation_short_name are declared and define appropriate
60944         macros if they are not.
60945
60946 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60947
60948         * lib/argp-help.c (__argp_base_name): New function
60949         (__argp_short_program_name): Rewrite using __argp_base_name
60950         * lib/argp-namefrob.h: Define program_invocation_name and
60951         program_invocation_short_name if requested
60952         (__argp_base_name): Add prototype
60953         * lib/argp-parse.c (argp_def): Use gettext wrappers
60954         (argp_default_parser): Use __argp_base_name
60955         * lib/argp-pin.c: New file. Defines program_invocation_name and
60956         program_invocation_short_name on systems that lack them.
60957
60958 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60959
60960         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
60961         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60962         porting problem reported by Georg Schwarz in
60963         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60964
60965 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
60968         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60969         porting problem reported by Georg Schwarz in
60970         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60971
60972 2005-12-05  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
60975         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
60976         Reported by Mark Junker <mjscod@gmx.de>.
60977
60978 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
60979
60980         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
60981         Use implementation from Albert Chin, with some
60982         comments/corrections by Stepan Kasal and myself.
60983
60984 2005-12-02  Bruno Haible  <bruno@clisp.org>
60985
60986         * gnulib-tool (func_import): Accept GPLed build tool modules when
60987         --lgpl is given.
60988         * modules/csharpcomp-script: New file.
60989         * modules/csharpcomp: Depend on it.
60990         * modules/javacomp-script: New file.
60991         * modules/javacomp: Depend on it.
60992         Suggested by Simon Josefsson.
60993
60994 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60995
60996         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
60997         statement, to work around an HP-UX 10.20 compiler bug reported by
60998         Peter O'Gorman.
60999
61000 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61001
61002         * modules/savedir (Depends-on): Add openat.
61003
61004 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61007         (uintmax_t) [defined uintmax_t]: Do not declare.
61008         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61009         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61010         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61011         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61012         sake of portability to weird hosts that C allows (though we don't
61013         know of any practical examples).
61014
61015         * lib/savedir.h (fdsavedir): New decl.
61016         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61017         contains most of the former guts of savedir.
61018         (savedir): Use savedirstream.
61019         Include "openat.h".
61020
61021 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61022
61023         * modules/obstack (Files): Add m4/ulonglong.m4.
61024         Problem reported by Davide Angelocola.
61025
61026 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61027
61028         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61029         coreutils no longer futzes with rounding modes.
61030
61031 2005-11-14  Jim Meyering  <jim@meyering.net>
61032
61033         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61034         replacement of mkstemp.
61035
61036 2005-11-10  Simon Josefsson  <jas@extundo.com>
61037
61038         * lib/readline.c: Remove EOL.
61039
61040 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * modules/gethrxtime (Depends-on): Add gettime.
61043
61044 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61045
61046         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61047         or gettimeofday; no longer needed.
61048
61049 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61050
61051         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61052         time business.
61053         (gethrxtime) [! (HAVE_NANOUPTIME
61054         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61055         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61056         our own approximation.
61057
61058 2005-11-08  Eric Blake  <ebb9@byu.net>
61059
61060         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61061
61062 2005-11-08  Eric Blake  <ebb9@byu.net>
61063
61064         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61065
61066 2005-11-04  Bruno Haible  <bruno@clisp.org>
61067
61068         * gnulib-tool: Implement --update mode.
61069
61070 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         Fix porting problem reported by Theodoros V. Kalamatianos.
61073         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61074         Don't assume that futimes failing means we must fail.
61075
61076 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61079         variables to suggest the intended function of the PATH_MAX check.
61080
61081 2005-10-30  Kean Johnston  <jkj@sco.com>
61082
61083         Trivial changes to support SCO systems.
61084         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61085         as PATH_MAX.
61086         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61087         where __ptr is null when no I/O is pending.
61088
61089 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61092         leave errno alone.  Problem reported by Dmitry V. Levin.
61093
61094 2005-10-28  Simon Josefsson  <jas@extundo.com>
61095
61096         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61097         Test more.
61098
61099         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61100
61101         * modules/md2, modules/md2-tests: New files.
61102
61103 2005-10-28  Simon Josefsson  <jas@extundo.com>
61104
61105         * m4/inet_ntop.m4: More tests.
61106
61107         * m4/gc-md2.m4, md2.m4: New file.
61108
61109 2005-10-28  Simon Josefsson  <jas@extundo.com>
61110
61111         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61112         "restrict" keywords, as per POSIX.  Protect the function
61113         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61114         Don't use K&R prototypes.  Check the sprintf return values.
61115         Re-define EAFNOSUPPORT if not present.  Indent.
61116
61117         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61118         suggested by Bruno Haible <bruno@clisp.org>.
61119
61120         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61121
61122         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61123
61124         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61125         libgcrypt).
61126
61127         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61128
61129         * lib/md2.h, lib/md2.c: New files.
61130
61131 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61134         errno alone.  Problem reported by Frederic Jolliton.
61135
61136 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * modules/verify (License): Change from GPL to LGPL.  This is a
61139         tiny module and there are apparently near-equivalents that are
61140         under the BSD license.
61141
61142 2005-10-24  Simon Josefsson  <jas@extundo.com>
61143
61144         * modules/sha1: Relicense to LGPL.
61145
61146 2005-10-24  Simon Josefsson  <jas@extundo.com>
61147
61148         * lib/md4.h: Shrink buffer size, now that we changed the type.
61149
61150 2005-10-23  Simon Josefsson  <jas@extundo.com>
61151
61152         * gnulib-tool (func_import): Fix --tests-base.
61153
61154 2005-10-22  Simon Josefsson  <jas@extundo.com>
61155
61156         * modules/arcfour (Depends-on): Need stdint.
61157
61158 2005-10-22  Simon Josefsson  <jas@extundo.com>
61159
61160         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61161         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61162
61163 2005-10-22  Simon Josefsson  <jas@extundo.com>
61164
61165         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61166         suggested by Bruno Haible <bruno@clisp.org>.
61167
61168 2005-10-22  Simon Josefsson  <jas@extundo.com>
61169
61170         * lib/crc.h: Include stddef.h, for size_t.
61171
61172 2005-10-22  Simon Josefsson  <jas@extundo.com>
61173
61174         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61175         arcfour_context struct (simplify test vector testing in GNU
61176         Shishi).
61177
61178 2005-10-21  Simon Josefsson  <jas@extundo.com>
61179
61180         * modules/des, modules/des-tests: New files.
61181
61182         * modules/gc-des, modules/gc-des-tests: New files.
61183
61184         * tests/test-des.c, tests/test-gc-des.c: New file.
61185
61186 2005-10-21  Simon Josefsson  <jas@extundo.com>
61187
61188         * modules/arctwo, modules/arctwo-tests: New files.
61189
61190         * tests/test-arctwo.c: New file.
61191
61192         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
61193
61194         * tests/test-gc-arctwo.c: New file.
61195
61196 2005-10-21  Simon Josefsson  <jas@extundo.com>
61197
61198         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
61199         Bruno Haible <bruno@clisp.org>.
61200
61201         * m4/gc-des.m4: New file.
61202
61203 2005-10-21  Simon Josefsson  <jas@extundo.com>
61204
61205         * m4/arctwo.m4: New file.
61206
61207         * m4/gc-arctwo.m4: New file.
61208
61209 2005-10-21  Simon Josefsson  <jas@extundo.com>
61210
61211         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
61212         block.
61213
61214 2005-10-21  Simon Josefsson  <jas@extundo.com>
61215
61216         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
61217         <bruno@clisp.org>.
61218
61219         * lib/hmac-sha1.c (hmac_sha1): Likewise.
61220
61221         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
61222         Bruno Haible <bruno@clisp.org>.
61223
61224         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
61225         <bruno@clisp.org>.
61226
61227 2005-10-21  Simon Josefsson  <jas@extundo.com>
61228
61229         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
61230
61231 2005-10-21  Simon Josefsson  <jas@extundo.com>
61232
61233         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
61234
61235 2005-10-21  Simon Josefsson  <jas@extundo.com>
61236
61237         * lib/des.h, lib/des.c: New files.
61238
61239         * lib/gc-gnulib.c: Support DES.c
61240
61241 2005-10-21  Simon Josefsson  <jas@extundo.com>
61242
61243         * lib/arctwo.h, lib/arctwo.c: New files.
61244
61245         * lib/gc-gnulib.c: Support ARCTWO.
61246
61247 2005-10-21  Simon Josefsson  <jas@extundo.com>
61248
61249         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
61250         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61251
61252 2005-10-21  Simon Josefsson  <jas@extundo.com>
61253
61254         * gnulib-tool (func_import, func_create_testdir): Define automake
61255         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
61256         Makefile.am snippet),
61257         suggested by Bruno Haible <bruno@clisp.org>.
61258
61259         * modules/gc (Makefile.am): Use it.
61260
61261 2005-10-21  Bruno Haible  <bruno@clisp.org>
61262
61263         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
61264         patch.
61265
61266 2005-10-19  Simon Josefsson  <jas@extundo.com>
61267
61268         * tests/test-gc-rijndael.c: New file.
61269
61270         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
61271
61272 2005-10-19  Simon Josefsson  <jas@extundo.com>
61273
61274         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
61275         interface too.
61276
61277 2005-10-19  Simon Josefsson  <jas@extundo.com>
61278
61279         * tests/test-gc-arcfour.c: New file.
61280
61281         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
61282
61283 2005-10-19  Simon Josefsson  <jas@extundo.com>
61284
61285         * modules/gc-md4, modules/gc-md4-tests: New file.
61286
61287         * tests/test-gc-md4.c: New file.
61288
61289 2005-10-19  Simon Josefsson  <jas@extundo.com>
61290
61291         * m4/gc-md4.m4: New file.
61292
61293 2005-10-19  Simon Josefsson  <jas@extundo.com>
61294
61295         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
61296         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
61297         <kasal@ucw.cz>.
61298
61299 2005-10-19  Simon Josefsson  <jas@extundo.com>
61300
61301         * m4/gc-arcfour.m4: New file.
61302
61303         * m4/gc-rijndael.m4: New file.
61304
61305 2005-10-19  Simon Josefsson  <jas@extundo.com>
61306
61307         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
61308
61309 2005-10-19  Simon Josefsson  <jas@extundo.com>
61310
61311         * lib/gc-gnulib.c: Support ARCFOUR.
61312
61313 2005-10-19  Simon Josefsson  <jas@extundo.com>
61314
61315         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
61316         support.
61317
61318         * lib/gc.h: Add ECB enum type.
61319
61320         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
61321
61322 2005-10-18  Simon Josefsson  <jas@extundo.com>
61323
61324         * tests/test-md5.c: New file.
61325
61326         * modules/md5-tests: New file.
61327
61328 2005-10-18  Simon Josefsson  <jas@extundo.com>
61329
61330         * tests/test-md4.c: New file.
61331
61332         * modules/md4, modules/md4-tests: New files.
61333
61334 2005-10-18  Simon Josefsson  <jas@extundo.com>
61335
61336         * m4/md4.m4: New file.
61337
61338 2005-10-18  Simon Josefsson  <jas@extundo.com>
61339
61340         * lib/md4.h, lib/md4.c: New files, based on md5.?.
61341
61342 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
61343
61344         * gnulib-tool (func_create_testdir): Omit the second check whether
61345         BUILT_SOURCES in nonempty.
61346
61347 2005-10-17  Simon Josefsson  <jas@extundo.com>
61348
61349         * tests/test-rijndael.c: New file.
61350
61351 2005-10-17  Simon Josefsson  <jas@extundo.com>
61352
61353         * modules/sha1: Depend on stdint instead of md5.
61354
61355         * modules/md5: Depend on stdint, remove uint32_t.
61356
61357 2005-10-17  Simon Josefsson  <jas@extundo.com>
61358
61359         * modules/gc-sha1-tests: New file.
61360
61361         * tests/test-gc-sha1.c: New file.
61362
61363 2005-10-17  Simon Josefsson  <jas@extundo.com>
61364
61365         * m4/md5.m4: Remove call to uint32_t.m4.
61366
61367 2005-10-17  Simon Josefsson  <jas@extundo.com>
61368
61369         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
61370
61371         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
61372         md5.h.
61373
61374         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
61375
61376         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
61377
61378 2005-10-17  Simon Josefsson  <jas@extundo.com>
61379
61380         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
61381
61382 2005-10-17  Simon Josefsson  <jas@extundo.com>
61383
61384         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
61385
61386 2005-10-17  Simon Josefsson  <jas@extundo.com>
61387
61388         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
61389
61390         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
61391
61392 2005-10-17  Bruno Haible  <bruno@clisp.org>
61393
61394         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
61395         that it can also be used in a test.
61396
61397 2005-10-16  Bruno Haible  <bruno@clisp.org>
61398
61399         * gnulib-tool (func_emit_tests_Makefile_am): Also define
61400         TESTS_ENVIRONMENT, so that individual tests can augment it.
61401
61402         * gnulib-tool (func_create_testdir): Use an intermediate target for
61403         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
61404         macros, like $(ALLOCA_H), which cannot be passed through the command
61405         line.
61406
61407 2005-10-15  Simon Josefsson  <jas@extundo.com>
61408
61409         * modules/rijndael-tests: New file.
61410
61411         * modules/rijndael: New file.
61412
61413 2005-10-15  Simon Josefsson  <jas@extundo.com>
61414
61415         * m4/rijndael.m4: New file.
61416
61417 2005-10-15  Simon Josefsson  <jas@extundo.com>
61418
61419         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
61420
61421         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
61422
61423 2005-10-14  Simon Josefsson  <jas@extundo.com>
61424
61425         * tests/test-arcfour.c: New file.
61426
61427         * modules/arcfour, modules/arcfour-tests: New files.
61428
61429 2005-10-14  Simon Josefsson  <jas@extundo.com>
61430
61431         * m4/arcfour.m4: New file.
61432
61433 2005-10-14  Simon Josefsson  <jas@extundo.com>
61434
61435         * lib/arcfour.h, lib/arcfour.c: New files.
61436
61437 2005-10-14  Roland McGrath  <roland@redhat.com>
61438
61439         Import from libc.  [BZ #1331]
61440         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61441         macro argument.
61442         Reported by Matej Vela <vela@debian.org>.
61443
61444 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61445
61446         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
61447         include <wchar.h>; no longer needed.
61448
61449 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61450
61451         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
61452
61453 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
61454         and  Ulrich Drepper  <drepper@redhat.com>
61455
61456         Import from libc.
61457         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
61458         instead of inline stream orientation test and two separate
61459         function calls.  Pay no attention to USE_IN_LIBIO.
61460
61461 2005-10-13  Simon Josefsson  <jas@extundo.com>
61462
61463         * modules/gc-hmac-md5-tests: New file.
61464
61465         * tests/test-gc-hmac-sha1.c: New file.
61466
61467         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
61468
61469         * modules/gc-hmac-md5-tests: New file.
61470
61471         * tests/test-gc-md5.c: New file.
61472
61473         * modules/gc-md5-tests: New file.
61474
61475 2005-10-13  Simon Josefsson  <jas@extundo.com>
61476
61477         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
61478         Move memory allocation outside of loop.
61479
61480 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61481
61482         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
61483         intermediate directory is in a read-only file system.  Problem
61484         reported by Eric Blake.
61485
61486 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
61487
61488         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
61489
61490 2005-10-12  Simon Josefsson  <jas@extundo.com>
61491
61492         * tests/test-hmac-sha1.c: New file.
61493
61494         * modules/hmac-sha1-tests: New file.
61495
61496         * modules/hmac-sha1: New file.
61497
61498 2005-10-12  Simon Josefsson  <jas@extundo.com>
61499
61500         * modules/gc-sha1: New file.
61501
61502 2005-10-12  Simon Josefsson  <jas@extundo.com>
61503
61504         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
61505
61506         * tests/test-gc-pbkdf2-sha1.c: New file.
61507
61508 2005-10-12  Simon Josefsson  <jas@extundo.com>
61509
61510         * modules/gc-md5, modules/gc-hmac-md5: New files.
61511
61512         * modules/gc (Files): Remove md5, memxor and hmac files.
61513
61514 2005-10-12  Simon Josefsson  <jas@extundo.com>
61515
61516         * m4/gc-pbkdf2-sha1.m4: New file.
61517
61518         * m4/gc-hmac-sha1.m4: New file.
61519
61520         * m4/gc-sha1: New file.
61521
61522         * m4/hmac-sha1.m4: New file.
61523
61524 2005-10-12  Simon Josefsson  <jas@extundo.com>
61525
61526         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
61527
61528         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
61529
61530 2005-10-12  Simon Josefsson  <jas@extundo.com>
61531
61532         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
61533         suggested by Bruno Haible <bruno@clisp.org>.
61534
61535 2005-10-12  Simon Josefsson  <jas@extundo.com>
61536
61537         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
61538
61539 2005-10-12  Simon Josefsson  <jas@extundo.com>
61540
61541         * lib/gc-pbkdf2-sha1.c: New file.
61542
61543         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
61544
61545 2005-10-12  Simon Josefsson  <jas@extundo.com>
61546
61547         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
61548
61549         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
61550
61551 2005-10-12  Simon Josefsson  <jas@extundo.com>
61552
61553         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
61554         GC_USE_HMAC_MD5, respectively.
61555
61556         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
61557         (gc_md5): Fix typo.
61558
61559         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
61560
61561         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
61562
61563         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
61564
61565 2005-10-12  Bruno Haible  <bruno@clisp.org>
61566
61567         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
61568         Reported by Stepan Kasal <kasal@ucw.cz>.
61569
61570 2005-10-11  Simon Josefsson  <jas@extundo.com>
61571
61572         * tests/test-crc.c: New file.
61573
61574         * modules/crc, modules/crc-tests: New files.
61575
61576 2005-10-11  Simon Josefsson  <jas@extundo.com>
61577
61578         * m4/crc.m4: New file.
61579
61580 2005-10-11  Simon Josefsson  <jas@extundo.com>
61581
61582         * lib/gc.h: Add gc_hash and gc_hash_buffer.
61583
61584         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
61585
61586         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
61587
61588 2005-10-11  Simon Josefsson  <jas@extundo.com>
61589
61590         * lib/crc.h, lib/crc.c: New files.
61591
61592         * lib/gc.h (gc_hash_buffer): Add doc.
61593
61594 2005-10-11  Bruno Haible  <bruno@clisp.org>
61595
61596         * modules/c-strcasestr: New file.
61597         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
61598
61599 2005-10-11  Bruno Haible  <bruno@clisp.org>
61600
61601         * modules/c-strcase: New file.
61602         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
61603
61604 2005-10-11  Bruno Haible  <bruno@clisp.org>
61605
61606         * lib/strcasecmp.c: Include limits.h.
61607         (strcasecmp): Avoid integer overflow on exotic platforms.
61608         * lib/strncasecmp.c: Include limits.h.
61609         (strncasecmp): Avoid integer overflow on exotic platforms.
61610         Reported by Paul Eggert.
61611
61612 2005-10-11  Bruno Haible  <bruno@clisp.org>
61613
61614         * lib/c-strcasestr.h: New file, from GNU gettext.
61615         * lib/c-strcasestr.c: New file, from GNU gettext.
61616
61617 2005-10-11  Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/c-strcase.h: New file, from GNU gettext.
61620         * lib/c-strcasecmp.c: New file, from GNU gettext.
61621         * lib/c-strncasecmp.c: New file, from GNU gettext.
61622
61623 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * modules/mempcpy (License): GPL -> LGPL.
61626         * modules/strchrnul (License): Likewise.
61627         * modules/sysexits (License): Likewise.
61628
61629 2005-10-08  Simon Josefsson  <jas@extundo.com>
61630
61631         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
61632
61633 2005-10-07  Simon Josefsson  <jas@extundo.com>
61634
61635         * m4/memxor.m4: Remove gl_C_RESTRICT call.
61636
61637 2005-10-06  Simon Josefsson  <jas@extundo.com>
61638
61639         * tests/test-hmac-md5.c: New file.
61640
61641         * modules/hmac-md5-tests: New file.
61642
61643         * modules/hmac-md5: New file.
61644
61645 2005-10-06  Simon Josefsson  <jas@extundo.com>
61646
61647         * m4/hmac-md5.m4: New file.
61648
61649         * m4/memxor.m4: Require gl_C_RESTRICT.
61650
61651 2005-10-06  Simon Josefsson  <jas@extundo.com>
61652
61653         * lib/memxor.c (memxor): Avoid casts and warnings.
61654
61655 2005-10-06  Simon Josefsson  <jas@extundo.com>
61656
61657         * lib/hmac-md5.c: New file.
61658
61659         * lib/hmac.h: New file.
61660
61661 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61662
61663         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61664         promotes to int, not unsigned int, to catch the AIX 5.3
61665         compiler bug.
61666
61667 2005-10-05  Simon Josefsson  <jas@extundo.com>
61668
61669         * modules/memxor: New file.
61670
61671         * modules/iconv (Files): Move config.rpath to havelib, it is used
61672         there.
61673
61674         * modules/havelib (Files): Add config.rpath.
61675
61676 2005-10-05  Simon Josefsson  <jas@extundo.com>
61677
61678         * m4/memxor.m4: New file.
61679
61680 2005-10-05  Simon Josefsson  <jas@extundo.com>
61681
61682         * lib/memxor.c (memxor): Fix compiler error.
61683
61684         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
61685         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
61686
61687         * lib/memxor.h, lib/memxor.c: New files.
61688
61689         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
61690         we assume all systems have it, suggested by Jim Meyering
61691         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
61692         any systems lack sys/socket.h; mingw32 is known to lack it, but we
61693         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
61694         same reasons.
61695
61696 2005-10-05  Simon Josefsson  <jas@extundo.com>
61697
61698         * config/srclist.txt: Add glibc bug 1423 for md5.h.
61699
61700 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61701
61702         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
61703         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
61704         needed, since the source code now assumes these .h files.
61705
61706 2005-10-05  Derek Price  <derek@ximbiot.com>
61707
61708         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
61709
61710 2005-10-05  Bruno Haible  <bruno@clisp.org>
61711
61712         * modules/stdint (License): Change to LGPL.
61713
61714 2005-10-04  Simon Josefsson  <jas@extundo.com>
61715
61716         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
61717         D. Baushke" <mdb@gnu.org>.
61718
61719 2005-10-04  Bruno Haible  <bruno@clisp.org>
61720
61721         * lib/verify.h (verify_true): Provide alternative definition for C++.
61722
61723 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
61726         (SSIZE_MAX): New macro, if not already defined.
61727         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
61728         than 2 GiB.
61729
61730 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61731
61732         Sync from coreutils.
61733         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
61734         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
61735         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
61736         ULLONG_MAX doesn't work with 2.7.2.1.
61737
61738 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
61741         From Ben Pfaff.
61742
61743         * modules/exclude (Depends-on): Depend on verify.
61744         * modules/strtoimax (Depends-on): Likewise.
61745         * modules/utimecmp (Depends-on): Likewise.
61746
61747 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61748
61749         * lib/exclude.c: Include verify.h.
61750         (verify): Remove.  All callers changed to use verify.h's version.
61751         * lib/strtoimax.c: Likewise.
61752         * lib/utimecmp.c: Likewis.e
61753
61754         Sync from coreutils.
61755         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
61756         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
61757         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
61758         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
61759         bother returning ENOSYS if settimeofday or stime fails; just let
61760         them return whatever errno they want to return.
61761         * lib/utimens.c: Include unistd.h, for dup2.
61762         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
61763         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
61764
61765 2005-10-02  Jim Meyering  <jim@meyering.net>
61766
61767         Sync from coreutils.
61768         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
61769         from glibc-2.2.5 that fails for read-only files.
61770
61771 2005-10-02  Jim Meyering  <jim@meyering.net>
61772
61773         Sync from coreutils.
61774         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
61775         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
61776         `#if HAVE_CONFIG_H'.
61777         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61778         Remove AT_FDCWD test.
61779         Do not consume the fd unless successful.
61780         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61781         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61782         block, so that we don't even try to compile it if settimeofday is
61783         available.  This works around a compilation failure on OSF1 V5.1,
61784         due to stime requiring a `long int*' while tv_sec is `int'.
61785
61786 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61787
61788         Sync from coreutils.
61789         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61790         against `yes', rather than just testing for nonempty.
61791
61792 2005-10-01  Simon Josefsson  <jas@extundo.com>
61793
61794         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61795         and Darwin.
61796
61797         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61798         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61799         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61800         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61801         Check if struct addrinfo is declared.
61802
61803 2005-10-01  Simon Josefsson  <jas@extundo.com>
61804
61805         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61806         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61807         AI_* and EAI_* definitions.  Protect function declarations.
61808
61809 2005-10-01  Jim Meyering  <jim@meyering.net>
61810
61811         Sync from coreutils.
61812
61813         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61814         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61815         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
61816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61817         in the inet and nsl libraries.  Required on Solaris 5.7.
61818
61819 2005-10-01  Jim Meyering  <jim@meyering.net>
61820
61821         Sync from coreutils.
61822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61823         in the inet and nsl libraries.  Required on Solaris 5.7.
61824
61825 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
61826
61827         * lib/getdelim.c (getdelim): Remove unused variables.
61828
61829 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
61832         so that the code works even with ancient cpp.  Portability problem
61833         with GCC 2.7.2.1 reported by Thomas M.Ott.
61834
61835 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * modules/regex (Depends-on): Add strcase.
61838
61839         * modules/gethostname (Licence): Change from GPL to LGPL, since
61840         gethostname.c is a trivial implementation of a standard library
61841         function.
61842         * modules/poll (License): Change from GPL to LGPL, since it's
61843         derived from LGPL code.
61844
61845 2005-09-27  Jim Meyering  <jim@meyering.net>
61846
61847         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
61848         HAVE_CONFIG_H.
61849
61850         * lib/intprops.h (signed_type_or_expr__): Define.
61851         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
61852         for unsigned types.
61853
61854 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61855
61856         * lib/verify.h (verify_expr): Remove, replacing with:
61857         (verify_true): New macro that returns true instead of void.
61858         (verify_type__): Remove.
61859         (verify): Use verify_true rather than verify_type__.
61860
61861 2005-09-26  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
61864         is necessary.
61865         (lib_SOURCES): Remove mbchar.c.
61866         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
61867         (Files): Add m4/mbrtowc.m4.
61868         * modules/mbiter: Likewise.
61869         * modules/mbuiter: Likewise.
61870
61871 2005-09-26  Bruno Haible  <bruno@clisp.org>
61872
61873         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
61874         compile mbchar.c if they are not both present.
61875         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
61876         * m4/mbiter.m4 (gl_MBITER): Likewise.
61877         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
61878         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
61879         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
61880
61881 2005-09-25  Jim Meyering  <jim@meyering.net>
61882
61883         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
61884         also uses socklen_t.
61885
61886 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
61887
61888         * lib/utimens.c (ENOSYS): Define if not already defined.
61889         (futimens): Support having a null PATH if the file descriptor
61890         is nonnegative.
61891
61892         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
61893         Remove.
61894         (__attribute): Define to empty unless GCC 3.1 or later.
61895         This works around a core dump on OpenBSD 3.4, which has GCC
61896         2.95.3, which dumps core when given __attribute__(()).  It also
61897         simplifies other tests, since we really don't want to bother with
61898         worrying about which ancient version of GCC supported what.
61899         Original problem reported by Yoann Vandoorselaere, with part of
61900         the fix suggested by Derek Price.
61901
61902 2005-09-24  Jim Meyering  <jim@meyering.net>
61903
61904         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
61905         so we can once again use a positive bitfield width of 1 -- now we
61906         don't have to explain why we were using a bitfield width of 2.
61907
61908 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61909
61910         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
61911         and similarly for the other external symbols.  Problem reported
61912         by James Gallager.
61913
61914         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
61915         bug reported by Jim Meyering.
61916
61917         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
61918         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
61919         not needed, since socklen is a prerequisite module.
61920
61921 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
61924         Problem reported by Eric Blake.
61925         (getaddrinfo): Initialize se so that it's not garbage.
61926         Redo internal storage allocation so that it doesn't make unportable
61927         assumptions about alignment.
61928         Fix a memory leak.
61929
61930         * lib/utimens.c (futimens): Use futimesat if available.
61931         Prefer it to futimes since it doesn't have the futimes bug.
61932
61933         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
61934         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
61935         Instead, declare a function that returns a pointer to an array,
61936         and use verify_type__ to declare the size of the array.
61937         Problem and germ of a solution reported by Bruno Haible.
61938         (verify_type__): Use 2, not 1, for bitfield size, to avoid
61939         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
61940
61941 2005-09-23  Jim Meyering  <jim@meyering.net>
61942
61943         Sync from coreutils.
61944         Correct build failure (socklen_t not defined) on at least
61945         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
61946         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
61947
61948 2005-09-23  Jim Meyering  <jim@meyering.net>
61949
61950         * modules/getaddrinfo (Depends-on): Add socklen.
61951
61952 2005-09-23  Bruno Haible  <bruno@clisp.org>
61953
61954         * tests/test-verify.c: New file.
61955
61956 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         Sync from coreutils.
61959
61960         * modules/argmatch (Depends-on): Add verify.
61961         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
61962         unistd-safer.
61963         * modules/save-cwd (Depends-on): Likewise.
61964
61965         * modules/openat (Files): Add lib/openat-die.c.
61966         (Depends-on): Remove error, exitfail.
61967         Add dirname.
61968
61969         * modules/verify: New file.
61970         * MODULES.html.sh (Diagnostics <assert.h>): New section,
61971         with "verify" module.
61972
61973 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         Sync from coreutils.
61976
61977         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
61978         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
61979         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
61980         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
61981         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
61982         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
61983         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
61984         Don't bother checking for string.h, stdlib.h, unistd.h.
61985         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
61986         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
61987         module's job.
61988         * m4/jm-macros.m4 (gl_MACROS): Likewise.
61989         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
61990
61991         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
61992         (gl_GETDATE): Use it.
61993
61994         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
61995
61996 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         Sync from coreutils.
61999
62000         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62001         stat-time.h.
62002         * lib/argmatch.h: Include verify.h
62003         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62004         (ARGMATCH_ASSERT): Remove; unused.
62005         * lib/canonicalize.c: Assume STDC_HEADERS.
62006         * lib/exclude.c: Include "strcase.h".
62007         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62008         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62009         and stdio-safer.h.
62010         (getusershell): Call fopen, not fopen_safer.
62011         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62012         Do not include unistd-safer.h.
62013         (save_cwd): Don't call fd_safer; no longer needed
62014         now that we include fcntl--.h.
62015
62016         * lib/getdate.y (relative_time): New type.
62017         (RELATIVE_TIME_0): New constant.
62018         (parser_control): Use relative_time instead of doing it ourselves.
62019         (%union): Add new relative_time rel member.
62020         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62021         Now typeless.
62022         (relunit, relunit_snumber): Now of type rel.
62023         (zone, rel, relunit, get_date): Adjust to above changes.
62024
62025         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62026         Do not include unistd-safer.h.
62027         (getloadavg): Don't call fd_safer; no longer needed
62028         now that we include fcntl--.h.
62029
62030         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62031         (make_dir_parents): Treat ENOSYS like EEXIST.
62032
62033         Improve quality of diagnostics on restore_cwd failure.
62034         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62035         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62036         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62037         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62038         each time through the loop.  Do not diagnose restore_cwd failure;
62039         that is the caller's job (and perhaps the caller does not care).
62040
62041         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62042         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62043         If the file already exists but is not a directory, don't bother
62044         to try to make its parents.
62045         Close potential file descriptor leak if we can't chdir("/") (!).
62046         Don't always return true if chdir($PWD) fails; return true only
62047         if the requested action was done successfully (except for the
62048         chdir($PWD)).
62049         Don't log final directory unless we actually made it.
62050         Refactor to avoid duplicate code to fix up permissions.
62051         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62052
62053         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62054         to make it a bit faster and (I hope) clearer.
62055         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62056         Fix bug in formats like %2N.
62057
62058         * lib/verify.h: New file.
62059
62060 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         Sync from coreutils.
62063         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62064
62065 2005-09-22  Jim Meyering  <jim@meyering.net>
62066
62067         Sync from coreutils.
62068
62069         * m4/lstat.m4 (gl_FUNC_LSTAT):
62070         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62071         Remove obsolete comment.
62072         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62073         * m4/xstrtod.m4: Likewise.
62074
62075         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62076
62077 2005-09-22  Jim Meyering  <jim@meyering.net>
62078
62079         Sync from coreutils.
62080
62081         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62082
62083         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62084         the .tm_year member, since otherwise gcc-4.0 would now warn about
62085         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62086
62087         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62088         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62089
62090         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62091         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62092         when run in a time zone for which daylight savings time is in effect
62093         for the starting date.
62094
62095         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62096         stop us from restricting permissions of just-created absolute-named
62097         directories.
62098         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62099         to restore initial working directory.
62100         * lib/mkdir-p.c (make_dir_parents): New parameter:
62101         different_working_dir, to tell caller if/when we change the working
62102         directory and are unable to return to the initial one.
62103         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62104         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62105         `return false'.  This fixes a bug introduced on 2004-07-30.
62106
62107         * lib/openat.c (fdopendir): Be sure to close the supplied
62108         file descriptor before returning.  This makes our replacement
62109         implementation a little closer to Solaris's, where fdopendir
62110         ties the file descriptor to the returned DIR* pointer.
62111         * lib/openat.c (unlinkat): New function.
62112         * lib/openat.h (unlinkat): Add prototype.
62113         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62114         (openat_restore_fail): Rename from openat_restore_die.
62115         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62116
62117         Provide an alternative to exiting immediately upon save_cwd or
62118         restore_cwd failure.  Now, an application can arrange e.g.,
62119         to perform a longjump in that case.
62120         * lib/openat.c: Include dirname.h.
62121         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62122         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62123         and openat_restore_die rather than calling error directly.
62124         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62125
62126         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62127         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62128         define.
62129
62130         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62131         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62132                             int utc, int nanoseconds);
62133         Background:
62134         date should not have to allocate a megabyte of virtual memory to
62135         handle a format argument like +%1048575T.  When implemented with
62136         strftime, it must allocate such a buffer, use strftime to fill it
62137         in, print it, then free it.
62138         With fprintftime, it simply prints everything and exits.
62139         With no need for memory allocation, that's one fewer way to fail.
62140         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62141         optional field width, not before, so we accept %9:z, not %:9z.
62142         (my_strftime): Be sure to use L_('x') for literals.
62143
62144         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62145         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62146         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62147         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62148         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62149         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62150         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62151         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62152         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62153         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62154         * lib/xgethostname.c, lib/xreadlink.c:
62155         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62156
62157         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62158         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62159         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62160         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62161         and don't include <sys/file.h>).
62162
62163 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62164
62165         Sync from coreutils.
62166
62167         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62168         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62169         [!LDAV_DONE]: Avoid unused variable warning.
62170
62171 2005-09-21  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/unicodeio.h (unicode_to_mb): New declaration.
62174
62175 2005-09-20  Derek Price  <derek@ximbiot.com>
62176
62177         * lib/getaddrinfo.c: Don't include <netdb.h> included from
62178         getaddrinfo.h.
62179
62180 2005-09-20  Bruno Haible  <bruno@clisp.org>
62181
62182         * gnulib-tool: Remove trailing slashes from the values specified for
62183         --source-base, --m4-base, --tests-base, --aux-dir.
62184         Suggested by Simon Josefsson <jas@extundo.com>.
62185
62186 2005-09-20  Bruno Haible  <bruno@clisp.org>
62187
62188         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
62189         func_modules_to_filelist, func_import, func_create_testdir): Make all
62190         sorting results locale-independent, so that gnulib-cache.m4 doesn't
62191         change when gnulib-tool is invoked in a different locale.
62192
62193 2005-09-19  Simon Josefsson  <jas@extundo.com>
62194
62195         * m4/socklen.m4: Fix typo.
62196
62197 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62198
62199         Use a consistent style for including <config.h>.
62200         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
62201         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
62202         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
62203         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
62204         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
62205         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
62206         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
62207         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
62208         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
62209         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
62210         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
62211         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
62212         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
62213         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
62214         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
62215         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
62216         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
62217         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
62218         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
62219         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
62220         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
62221         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
62222         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
62223         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
62224         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
62225         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
62226         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
62227         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
62228         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
62229         lib/xstrtoumax.c, lib/yesno.c:
62230         Standardize inclusion of config.h.
62231         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
62232         lib/inttostr.h:  Removed inclusion of config.h from header files.
62233         * lib/inttostr.c:  Adjusted in-tree users.
62234         * lib/timespec.h: Remove superfluous warning to include config.h.
62235         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
62236         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
62237         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
62238         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
62239         config.h with HAVE_CONFIG_H.
62240
62241 2005-09-19  Jim Meyering  <jim@meyering.net>
62242
62243         * modules/pathmax (License): Change to LGPL.
62244
62245 2005-09-19  Derek Price  <derek@ximbiot.com>
62246
62247         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
62248
62249 2005-09-19  Bruno Haible  <bruno@clisp.org>
62250
62251         * gnulib-tool (import): Provide default for --tests-base.
62252
62253 2005-09-19  Bruno Haible  <bruno@clisp.org>
62254
62255         * doc/quote.texi: New file, extracted from gnulib.texi.
62256         * doc/ctime.texi: New file, extracted from gnulib.texi.
62257         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
62258         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
62259         * doc/gnulib.texi: Include them.
62260
62261 2005-09-18  Bruno Haible  <bruno@clisp.org>
62262
62263         Portability fix.
62264         * gnulib-tool (func_readlink): New function.
62265         (func_ln_if_changed): Use it.
62266
62267 2005-09-18  Bruno Haible  <bruno@clisp.org>
62268
62269         * gnulib-tool: Support --with-tests also with --import.
62270         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
62271         (func_import): Use variables $testsbase and $inctests. Emit a
62272         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
62273         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
62274         SUBDIRS += $testsdir.
62275         (func_create_testdir): Update.
62276
62277 2005-09-18  Bruno Haible  <bruno@clisp.org>
62278
62279         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
62280         instead of $dry_run.
62281         (func_cp_if_changed, func_mv_if_changed): Remove functions.
62282         (func_ln_if_changed): Don't handle dry-run here.
62283         (func_import): In dry-run mode, detect more precisely which actions
62284         would be performed, and don't use "...ing" verbs.
62285
62286 2005-09-18  Bruno Haible  <bruno@clisp.org>
62287
62288         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
62289         (func_import): Use join on two temporary files instead of three nested
62290         loops, in order to determine which files are new or old.
62291
62292 2005-09-18  Bruno Haible  <bruno@clisp.org>
62293
62294         * gnulib-tool (func_import): Comment out code that spits out the
62295         new files with --dry-run.
62296
62297 2005-09-18  Bruno Haible  <bruno@clisp.org>
62298
62299         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
62300
62301 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62302
62303         * lib/stat-time.h: New file.
62304         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
62305         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
62306         in a different way.
62307         (timespec_cmp): New function.
62308         * lib/utimecmp.c: Include stat-time.h.
62309         (SYSCALL_RESOLUTION): Depend on whether various struct stat
62310         members exist, not on the obsolescent ST_MTIM_NSEC.
62311         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
62312
62313 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62314
62315         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
62316
62317 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         * MODULES.html.sh (File system functions): Add stat-time.
62320         * modules/stat-time: New file.
62321         * modules/timespec (Files): Remove m4/st_mtim.m4; this
62322         is now done in a different way, by the stat-time module.
62323         * modules/utimecmp (Depends-on): Add stat-time.
62324
62325 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62326
62327         * m4/st_mtim.m4: Remove.  Superseded by...
62328         * m4/stat-time.m4: New file.
62329         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
62330         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
62331
62332 2005-09-15  Derek Price  <derek@ximbiot.com>
62333
62334         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
62335
62336 2005-09-15  Derek Price  <derek@ximbiot.com>
62337
62338         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
62339         * lib/regex_internal.c: Ditto, using this...
62340         (__GNUC_PREREQ): ...new macro.
62341         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
62342         using...
62343         (__GNUC_PREREQ): ...this new macro.
62344
62345         * lib/strstr.h: Include string.h. Define strstr as a macro here.
62346
62347 2005-09-15  Derek Price  <derek@ximbiot.com>
62348             Paul Eggert  <eggert@cs.ucla.edu>
62349
62350         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
62351         changes, consolidating in...
62352         * lib/regex_internal.h: ...this file.
62353
62354 2005-09-13  Jim Meyering  <jim@meyering.net>
62355
62356         * lib/canon-host.c: Filter through gnu indent and reword comments
62357         slightly.
62358         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
62359
62360 2005-09-13  Derek Price  <derek@ximbiot.com>
62361
62362         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
62363         failure.
62364         Reported by Jim Meyering  <jim@meyering.net>.
62365
62366 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62367
62368         * lib/base64.c: Typo.
62369         (base64_encode): Put b64str in initialized data section.
62370
62371 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62372
62373         Merge glibc and coreutils changes into gnulib, plus a few
62374         extra fixes.
62375         * lib/md5.c: Use #error rather than a string.
62376         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
62377         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
62378         (__attribute__): Define to empty for non recent-GCC.
62379         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
62380         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
62381         Renamed from their non-__ counterparts, with new macros replacing
62382         them if not _LIBC.  Add __THROW attribute.
62383         (rol): Remove.
62384         (struct md5_ctx): Align buffer if using GCC.
62385         * lib/sha1.h (struct sha1_ctx): Likewise.
62386         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
62387         The old name was backwards.
62388         (NOTSWAP): Remove; not used.
62389         (rol): New macro, moved here from md5.h.
62390         (sha1_process_block): Remove a FIXME that doesn't make sense.
62391
62392 2005-09-12  Derek Price  <derek@ximbiot.com>
62393
62394         Return usable errors from canon-host.
62395         * lib/canon-host.h: New file.
62396         * lib/canon-host.c (canon_host): Wrap...
62397         (canon_host_r): ...this new function, which now relies exclusively on
62398         getaddrinfo.
62399         (ch_strerror): New function.
62400         (last_cherror): New global.
62401         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
62402         interface.
62403         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
62404         void *.
62405         (freeaddrinfo): Free ai->ai_canonname when set.
62406
62407 2005-09-12  Derek Price  <derek@ximbiot.com>
62408
62409         Make canon-host require getaddrinfo.
62410         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
62411         AC_LIBSOURCE canon-host.h.  Call...
62412         (gl_PREREQ_CANON_HOST): ...this new function, which requires
62413         gl_GETADDRINFO.
62414         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
62415
62416 2005-09-12  Derek Price  <derek@ximbiot.com>
62417
62418         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
62419         LGPL.
62420         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
62421
62422 2005-09-12  Derek Price  <derek@ximbiot.com>
62423
62424         * lib/gai_strerror.c: Include config.h when available.  Include
62425         getaddrinfo.h before other headers to test interface.
62426         Reported by Larry Jones <lawrence.jones@ugs.com>.
62427
62428 2005-09-12  Derek Price  <derek@ximbiot.com>
62429             Paul Eggert  <eggert@cs.ucla.edu>
62430
62431         * modules/glob (Files): Add glob-libc.h.
62432
62433 2005-09-12  Derek Price  <derek@ximbiot.com>
62434             Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62437         glob_.h, glob-libc.h.
62438         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62439
62440 2005-09-12  Derek Price  <derek@ximbiot.com>
62441             Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
62444         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
62445         protecting things that should be done only in gnulib contexts.
62446         * lib/glob_.h: New file, containing only the glob things needed for
62447         gnulib.
62448         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
62449         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
62450         (glob, globfree, glob_pattern_p): Now defined simply in terms of
62451         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
62452         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
62453         and to respect the namespace rules better.
62454
62455 2005-09-08  Simon Josefsson  <jas@extundo.com>
62456
62457         * modules/socklen: New file.
62458
62459 2005-09-08  Simon Josefsson  <jas@extundo.com>
62460
62461         * m4/socklen.m4: New file.
62462
62463 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * modules/utimens (Files): Add m4/utimbuf.m4, since
62466         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
62467         Reported by Sergey Poznyakoff.
62468
62469 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62470
62471         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
62472         definitions, since that's the preferred style in glibc.
62473         Fix a minor spacing issue, and update copyright notice to match
62474         glibc's.
62475
62476 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62477
62478         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
62479
62480 2005-09-06  Simon Josefsson  <jas@extundo.com>
62481
62482         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
62483         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
62484
62485 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
62488         warning.
62489
62490 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62491
62492         * config/srclist.txt: Add glibc bug 1302.
62493
62494 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
62495
62496         Change bitset word type from unsigned int to unsigned long int,
62497         as this has better performance on typical 64-bit hosts.
62498         Port bitset code to hosts with unusual word sizes.
62499         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
62500         (build_collating_symbol):
62501         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
62502         argument is a bitset.  This is merely a style issue, but it makes
62503         it clearer that an entire array is expected.
62504         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
62505         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
62506         Port to the case where bitset_word is not the same as unsigned int.
62507         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62508         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
62509         Likewise.
62510         * lib/regexec.c (check_dst_limits_calc_pos_1,
62511         check_subexp_matching_top):
62512         (build_trtable, group_nodes_into_DFAstates):
62513         Likewise.
62514         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
62515         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
62516         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
62517         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
62518         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
62519         * lib/regcomp.c (optimize_subexps, lower_subexp):
62520         Work even if bitset_word has holes in its bitwise representation.
62521         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
62522         * lib/regexec.c (check_dst_limits_calc_pos_1,
62523         check_subexp_matching_top):
62524         Likewise.
62525         * lib/regex_internal.c (re_string_reconstruct):
62526         Don't assume UCHAR_MAX == 255.
62527         * lib/regex_internal.h (bitset_set_all): Likewise.
62528         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
62529         All uses changed.
62530         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
62531         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
62532         All uses changed.
62533         (BITSET_WORD_MAX): New macro.
62534         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
62535         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
62536         (bitset_empty, bitset_copy):
62537         Prefer sizeof (bitset) to multiplying it out ourselves.
62538         (bitset_not_merge): Remove; unused.
62539         (bitset_contain): Return bool, not unsigned int with one bit on.
62540         All callers changed.
62541         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
62542         alignment than re_node_set; do this by defining a new internal
62543         type struct dests_alloc and using it to allocate memory.
62544
62545 2005-09-05  Bruno Haible  <bruno@clisp.org>
62546
62547         * gnulib-tool (func_import): Fix comparison in handling of symbolic
62548         links.
62549
62550 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
62551
62552         * modules/size_max (Makefile.am): Add size_max.h
62553
62554 2005-09-04  Derek Price  <derek@ximbiot.com>
62555
62556         * gnulib-tool (func_import): Fix reversed $symbolic logic.
62557
62558 2005-09-03  Simon Josefsson  <jas@extundo.com>
62559
62560         * gnulib-tool: Fix typo.
62561
62562 2005-09-03  Simon Josefsson  <jas@extundo.com>
62563
62564         * config/srclist.txt: Add glibc bug 1293.
62565
62566 2005-09-03  Derek Price  <derek@ximbiot.com>
62567
62568         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
62569         From Larry Jones <lawrence.jones@ugs.com>.
62570
62571 2005-09-02  Simon Josefsson  <jas@extundo.com>
62572
62573         * modules/socklen: New file.
62574
62575 2005-09-02  Simon Josefsson  <jas@extundo.com>
62576
62577         * modules/havelib: New module.
62578
62579         * modules/gettext, modules/iconv, modules/lock, modules/readline:
62580         Use havelib.
62581
62582 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         Check for arithmetic overflow when calculating sizes, to prevent
62585         some buffer-overflow issues.  These patches are conservative, in the
62586         sense that when I couldn't determine whether an overflow was possible,
62587         I inserted a run-time check.
62588         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
62589         macros.
62590         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
62591         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
62592         (re_xnrealloc, re_x2nrealloc): New inline functions.
62593         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
62594         parse_bracket_exp):
62595         (build_equiv_class, build_charclass): Check for arithmetic overflow
62596         in size expression calculations.
62597         * lib/regex_internal.c (re_string_realloc_buffers):
62598         (build_wcs_upper_buffer, re_node_set_add_intersect):
62599         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
62600         (re_dfa_add_node, register_state): Likewise.
62601         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
62602         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
62603         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
62604         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
62605
62606 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62607
62608         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62609         m4/ulonglong.m4.  Problem reported by Martin Lambers.
62610
62611 2005-09-02  Bruno Haible  <bruno@clisp.org>
62612
62613         Support for lib vs. lib64 distinction on biarch platforms.
62614         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
62615         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
62616         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
62617
62618 2005-09-02  Bruno Haible  <bruno@clisp.org>
62619
62620         * gnulib-tool (import): In the other first-use case, provide defaults
62621         as well.
62622
62623 2005-09-02  Bruno Haible  <bruno@clisp.org>
62624
62625         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
62626         patches not yet found in the latest gettext release.
62627
62628 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62629
62630         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
62631         to avoid a collision with bits/local_lim.h in glibc.
62632         All uses changed.  Problem reported by Dmitry V. Levin in
62633         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
62634
62635         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
62636         bugs in int versus size_t comparisons.
62637         (re_string_context_at): Fix bug where the code assumed that
62638         Idx is signed.
62639
62640         Use bool where appropriate.
62641         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62642         All callers changed.
62643         (calc_eclosure_iter): Likewise, for ROOT arg.
62644         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62645         (build_charclass_op): Likewise, for NON_MATCH arg.
62646         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62647         (re_string_construct_common): Likewise, for ICASE arg.
62648         * lib/regexec.c (re_search_2_stub, re_search_stub):
62649         Likewise, for RET_LEN arg.
62650         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62651         (set_regs): Likewise, for FL_BACKTRACK arg.
62652         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62653         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62654         (calc_eclosure_iter, parse_bracket_exp):
62655         Use bool for internal variables that are booleans.
62656         * lib/regexec.c (re_search_internal, check_matching,
62657         proceed_next_node):
62658         (set_regs, build_sifted_states, sift_states_bkref):
62659         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62660         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62661         (find_collation_sequence_value):
62662         Likewise.
62663         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62664         (re_node_set_compare):
62665         Return bool, not int. All callers changed.
62666         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62667         (build_trtable, check_node_accept): Likewise.
62668         * lib/regex_internal.h: Include stdbool.h.
62669
62670         Fix bugs uncovered when converting to bool.
62671         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
62672         failure instead of charging ahead blindly.
62673         * lib/regex_internal.c (register_state): Likewise.
62674         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
62675         for freeing internal storage.
62676         (group_nodes_into_DFA_states): Use unsigned int, not int, for
62677         bitset pieces used as boolean, to avoid undefined behavior
62678         on hosts that do int overflow checking.
62679
62680 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62681
62682         * config/srclist.txt: Add glibc bugs 1285-1287.
62683
62684 2005-09-01  Jim Meyering  <jim@meyering.net>
62685
62686         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
62687         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
62688         Require gl_STAT_MACROS, too.
62689
62690 2005-09-01  Bruno Haible  <bruno@clisp.org>
62691
62692         * gnulib-tool (import): In the first-use case, provide defaults.
62693
62694 2005-09-01  Bruno Haible  <bruno@clisp.org>
62695
62696         * gnulib-tool (func_import): Remove the .tmp files.
62697
62698 2005-09-01  Bruno Haible  <bruno@clisp.org>
62699
62700         * gnulib-tool (func_import): Fix handling of symbolic links.
62701
62702 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62703
62704         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
62705         old glibc regex code mishandles strings longer than 2**31 bytes.
62706         This patch fixes this when the regex code is used in gnulib
62707         (i.e., outside glibc).
62708
62709         This patch should not affect the use of the regex code inside
62710         glibc.  No doubt this problem also needs to be handled for glibc
62711         as well, but the result will be an incompatible change to the
62712         glibc ABI, and the old ABI will have to be supported too.  That
62713         can be the the subject for another patch.
62714
62715         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
62716         governing whether the rest of this patch is active.  By default,
62717         the macro is disabled and the patch has no effect.
62718         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
62719         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
62720         (struct re_pattern_buffer, re_search, re_search_2, re_match):
62721         (re_match_2, re_set_registers): Use the new types.
62722         * lib/regex_internal.h (Idx, re_hashval_t): New types.
62723         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
62724         New macros.
62725         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
62726         (re_string_context_at, bin_tree_t, re_dfastate_t):
62727         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
62728         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
62729         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
62730         (re_string_char_size_at, re_string_wchar_at):
62731         (re_string_elem_size_at):
62732         Use the new types and macros to port to 64-bit hosts.
62733         Use unsigned types for internal values, so that the code
62734         mostly works even for arrays larger than SSIZE_MAX.
62735         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
62736         (search_duplicated_node, calc_eclosure_iter, fetch_number):
62737         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
62738         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
62739         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
62740         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
62741         (calc_inveclosure, parse_dup_op, build_range_exp):
62742         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
62743         (fetch_number, create_token_tree, mark_opt_subexp):
62744         Likewise.
62745         * lib/regex_internal.c (re_string_construct_common,
62746         create_ci_newstate):
62747         (create_cd_newstate, re_string_allocate, re_string_construct):
62748         (re_string_realloc_buffers, build_wcs_upper_buffer):
62749         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62750         (re_string_reconstruct, re_string_peek_byte_case):
62751         (re_string_fetch_byte_case, re_string_context_at):
62752         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62753         (re_node_set_init_copy, re_node_set_add_intersect):
62754         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62755         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62756         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62757         (re_acquire_state, re_acquire_state_context, register_state):
62758         Likewise.
62759         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
62760         search_cur_bkref_entry):
62761         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
62762         (re_search_internal, re_search_2_stub, re_search_stub)
62763         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
62764         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
62765         (update_cur_sifted_state, check_dst_limits):
62766         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62767         (check_subexp_limits, sift_states_bkref, merge_state_array):
62768         (check_subexp_matching_top, get_subexp, get_subexp_sub):
62769         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
62770         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62771         (expand_bkref_cache, check_node_accept_bytes):
62772         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
62773         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
62774         (acquire_init_state_context, check_halt_node_context):
62775         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
62776         (sift_states_backward, clean_state_log_if_needed):
62777         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62778         (find_recover_state, transit_state_sb, transit_state_mb):
62779         (transit_state_bkref, build_trtable, match_ctx_clean):
62780         Likewise.
62781         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62782         to work around an assumption that REG_MISSING is negative.
62783
62784         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62785         (seek_collating_symbol_entry) [defined _LIBC]:
62786         (lookup_collation_sequence_value) [defined _LIBC]:
62787         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62788         Use prototypes rather than old-style function definitions.
62789         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62790         (transit_state_sb) [0]:
62791         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62792
62793         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62794         rm_eo.
62795
62796         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62797         (optimize_subexps, lower_subexp):
62798         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62799         since the signed shift might overflow.  Use 1u<<31 instead.
62800         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62801         Likewise.
62802         * lib/regexec.c (check_dst_limits_calc_pos_1,
62803         check_subexp_matching_top): Likewise.
62804
62805         * lib/regcomp.c (optimize_subexps, lower_subexp):
62806         Use CHAR_BIT rather than 8, for clarity.
62807         * lib/regexec.c (check_dst_limits_calc_pos_1):
62808         (check_subexp_matching_top): Likewise.
62809         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62810         have to worry about portability issues when shifting it left.
62811         Remove no-longer-needed test for table_size > 0.
62812         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62813         in a word, as the resulting behavior is undefined.
62814         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62815         in one case, a <= should have been an <, and in another case the
62816         whole test was missing.
62817         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
62818         the standard name CHAR_BIT.
62819         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
62820         this is not true on one's complement and signed-magnitude hosts.
62821
62822         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
62823         next_last_offset.
62824         (struct re_dfa_t): Remove unused member states_alloc.
62825         * lib/regcomp.c (init_dfa): Don't initialize unused members.
62826
62827 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62828
62829         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
62830         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
62831         and large-file glibc and in 32-bit large-file Solaris.
62832
62833 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
62836         lengths fit in regoff_t; this isn't true if regoff_t is the same
62837         width as size_t.
62838         * lib/regex.c (re_search_internal): 5th arg is LAST_START
62839         (= START + RANGE) instead of RANGE.  This avoids overflow
62840         problems when regoff_t is the same width as size_t.
62841         All callers changed.
62842         (re_search_2_stub): Check for overflow when adding the
62843         sizes of the two strings.
62844         (re_search_stub): Check for overflow when adding START
62845         to RANGE; if it occurs, substitute the extreme value.
62846
62847 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
62850
62851 2005-08-31  Jim Meyering  <jim@meyering.net>
62852
62853         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
62854         a pointer-to-const.
62855         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
62856         (register_state): Likewise.
62857         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
62858         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62859         (group_nodes_into_DFAstates): Likewise.
62860
62861 2005-08-31  Jim Meyering  <jim@meyering.net>
62862
62863         * check-module: Add a FIXME comment.
62864
62865 2005-08-31  Eric Blake  <ebb9@byu.net>
62866
62867         * modules/unistd-safer (Files): Add unistd--.h.
62868         * modules/stdio-safer (Files): Add stdio--.h.
62869
62870 2005-08-31  Derek Price  <derek@ximbiot.com>
62871
62872         * lib/getdelim.c (getdelim): Return EOF on EOF.
62873         Reported by Larry Jones <lawrence.jones@ugs.com>.
62874
62875 2005-08-31  Bruno Haible  <bruno@clisp.org>
62876
62877         Avoid unnecessary diffs in the generated lib/Makefile.am.
62878         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
62879         the generated files.
62880         (func_import): Don't set cmd.
62881
62882 2005-08-31  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/strstr.c: Include <stddef.h>, for NULL.
62885         * lib/strcasestr.c: Likewise.
62886         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62887
62888 2005-08-31  Bruno Haible  <bruno@clisp.org>
62889
62890         * gnulib-tool: New option --macro-prefix.
62891         (func_import): Use macro_prefix.
62892         (import): Handle option --macro-prefix.
62893
62894 2005-08-31  Bruno Haible  <bruno@clisp.org>
62895
62896         * gnulib-tool (import): Rename most ac_* variables to cached_*.
62897         Also use new variables cached_lgpl, cached_libtool.
62898
62899 2005-08-31  Bruno Haible  <bruno@clisp.org>
62900
62901         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
62902         always instantiating them.
62903
62904 2005-08-31  Bruno Haible  <bruno@clisp.org>
62905
62906         * gnulib-tool (func_import): Read the previous cached settings
62907         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
62908         earlier added by gnulib but are now dropped. Warn when a gnulib file
62909         overwrites a non-gnulib file.
62910
62911 2005-08-31  Bruno Haible  <bruno@clisp.org>
62912
62913         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
62914         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
62915         projects that don't keep autogenerated files in CVS. Put into
62916         actioncmd only the specified modules, not the transitive closure.
62917
62918 2005-08-31  Bruno Haible  <bruno@clisp.org>
62919
62920         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
62921         Create directories that shall be filled.
62922         (import): Don't look for gl_* macros in configure.ac. Recurse across
62923         all directories containing a gnulib-cache.m4 files, if meaningful.
62924
62925 2005-08-31  Bruno Haible  <bruno@clisp.org>
62926
62927         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
62928         (import): Set seen_libtool when we see gl_LIBTOOL.
62929
62930 2005-08-31  Bruno Haible  <bruno@clisp.org>
62931
62932         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
62933         declaration macro definitions from generated gnulib.m4.
62934
62935 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
62936
62937         * lib/iconvme.h: Add prototype for iconv_alloc.
62938
62939 2005-08-29  Simon Josefsson  <jas@extundo.com>
62940
62941         * lib/iconvme.c: Fix errno.
62942
62943 2005-08-29  Bruno Haible  <bruno@clisp.org>
62944
62945         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
62946         that it works when the directory contains spaces.
62947
62948 2005-08-29  Bruno Haible  <bruno@clisp.org>
62949
62950         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
62951
62952 2005-08-29  Bruno Haible  <bruno@clisp.org>
62953
62954         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
62955         Emit more advice.
62956
62957 2005-08-29  Bruno Haible  <bruno@clisp.org>
62958         and Stepan Kasal  <kasal@ucw.cz>
62959
62960         * check-module: If more parameters are given, check each of them
62961         separately; add more exceptions, as noted by Jim Meyering.
62962         (check_module): New procedure.
62963         (%exempt_header): Now contains all exceptions.
62964
62965 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
62966
62967         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
62968
62969 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62970
62971         * lib/iconvme.c: Split iconv_string into iconv_alloc.
62972
62973 2005-08-28  Bruno Haible  <bruno@clisp.org>
62974
62975         * m4/gnulib-tool.m4: New file.
62976
62977 2005-08-27  Jim Meyering  <jim@meyering.net>
62978
62979         * modules/unistd-safer (Files): Add pipe-safer.c.
62980         * modules/fcntl-safer (Files): Add creat-safer.c.
62981
62982 2005-08-27  Jim Meyering  <jim@meyering.net>
62983
62984         * m4/stdlib-safer.m4: New file.  From coreutils.
62985         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
62986         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
62987         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
62988         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
62989         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
62990
62991 2005-08-27  Jim Meyering  <jim@meyering.net>
62992
62993         * lib/fopen-safer.c: Merge minor changes from coreutils.
62994         * lib/dup-safer.c: Likewise.
62995         * lib/fd-safer.c: Likewise.
62996
62997         Merge from coreutils.
62998         * lib/stdio--.h: New file.
62999         * lib/stdlib--.h: New file.
63000         * lib/mkstemp-safer.c: New file.
63001
63002         GNU tar needs these.
63003         * lib/pipe-safer.c: New file.
63004         * lib/creat-safer.c: New file.
63005         * lib/fcntl--.h (creat): Define to creat_safer.
63006         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63007         * lib/unistd--.h (pipe): Define to pipe_safer.
63008         * lib/unistd-safer.h: Declare pipe_safer.
63009
63010 2005-08-26  Simon Josefsson  <jas@extundo.com>
63011
63012         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63013         Haible <bruno@clisp.org>.
63014
63015 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63016
63017         * lib/regex_internal.h: Remove all references to
63018         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63019         or better.
63020         (bitset_not, bitset_merge, bitset_not_merge):
63021         (bitset_mask, re_string_allocate, re_string_construct):
63022         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63023         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63024         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63025         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63026         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63027         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63028         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63029         (re_acquire_state_context):
63030         Remove unnecessary forward decls.
63031         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63032         Put __attribute at function definition,
63033         now that the function decl has been removed.
63034         * lib/regex_internal.c (re_string_peek_byte_case):
63035         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63036         Likewise.
63037
63038 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63039
63040         * m4/regex.m4: Add AC_PREREQ(2.50).
63041         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63042
63043 2005-08-25  Simon Josefsson  <jas@extundo.com>
63044
63045         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63046         __fsetlocking.
63047
63048 2005-08-25  Simon Josefsson  <jas@extundo.com>
63049
63050         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63051         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63052         GLIBC specific code.
63053
63054 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         Make regex safe for g++.  This fixes one real bug (an "err"
63057         that should have been "*err").  g++ problem reported by
63058         Sam Steingold.
63059         * lib/regex_internal.h (re_calloc): New macro, consistent with
63060         re_malloc etc.  All callers of calloc changed to use re_calloc.
63061         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63062         not int.  All callers changed.
63063         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63064         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63065         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63066         (find_recover_state): Change "err" to "*err"; this fixes what
63067         appears to be a real bug.
63068         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63069         versus int.
63070
63071 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63072
63073         * modules/regex (Depends-on): Add malloc, since the code
63074         assumes that !malloc(0) means failure.
63075
63076 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63077
63078         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63079
63080         alloca modernization/simplification for regex.
63081         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63082         needs to be at the start of the file, and can be moved into
63083         regex_internal.h and simplified.
63084         * lib/regex_internal.h: Include <alloca.h>.
63085         (__libc_use_alloca) [!defined _LIBC]: New macro.
63086         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63087         now works outside glibc.
63088
63089 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         * config/srclist.txt: Add glibc bugs 1241, 1245.
63092
63093 2005-08-25  Jim Meyering  <jim@meyering.net>
63094
63095         * lib/open-safer.c: Include <config.h>.
63096         Otherwise, we'd lose LARGEFILE support in any file using
63097         e.g. "fcntl--.h"
63098
63099 2005-08-25  Bruno Haible  <bruno@clisp.org>
63100
63101         * m4/minmax.m4: Require autoconf 2.52.
63102         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63103         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63104         alternatives of translit over the alphabet.
63105         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63106
63107 2005-08-24  Simon Josefsson  <jas@extundo.com>
63108
63109         * tests/test-getpass.c: New file.
63110
63111 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63112
63113         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63114         for GNU regex features.
63115
63116 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63117
63118         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63119         * lib/regex.h (regerror): Likewise.
63120
63121         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63122         requires this.  (The code never needed it.)
63123
63124         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63125         All uses of recently-renamed identifiers changed to use the new,
63126         POSIX-compliant names.  The code will build and run just fine
63127         without these changes, but it's better to eat our own dog food
63128         and use the standard-conforming names.
63129
63130         * lib/regex.h: Fix a multitude of POSIX name space violations.
63131         These changes have an effect only for programs that define
63132         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63133         do not change anything for programs compiled in the normal way.
63134         Also, there is no effect on the ABI.
63135
63136         (_REGEX_SOURCE): New macro.
63137         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63138         defined and _GNU_SOURCE is not; this fixes a name space violation.
63139
63140         Rename the following macros to obey POSIX requirements.
63141         The old names are still visible as macros if _REGEX_SOURCE is defined.
63142         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63143         RE_BACKSLASH_ESCAPE_IN_LISTS.
63144         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63145         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63146         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63147         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63148         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63149         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63150         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63151         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63152         (REG_INTERVALS): renamed from RE_INTERVALS.
63153         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63154         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63155         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63156         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63157         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63158         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63159         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63160         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63161         RE_UNMATCHED_RIGHT_PAREN_ORD.
63162         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63163         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63164         (REG_DEBUG): renamed from RE_DEBUG.
63165         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63166         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63167         unusual, since we can't clash with the POSIX REG_ICASE.
63168         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63169         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63170         (REG_NO_SUB): renamed from RE_NO_SUB.
63171         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63172         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63173         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63174         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63175         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63176         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
63177         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
63178         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
63179         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
63180         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
63181         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
63182         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
63183         RE_SYNTAX_POSIX_MINIMAL_BASIC.
63184         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
63185         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
63186         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
63187         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
63188         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
63189         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
63190         (REG_FIXED): Renamed from REGS_FIXED.
63191         (REG_NREGS): Renamed from RE_NREGS.
63192
63193         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
63194         of other REG_* macros, since POSIX says the user is allowed to
63195         #undef these macros selectively.
63196
63197         (reg_errcode_t): Update comment stating what other tables need
63198         to be consistent.
63199
63200         Rename the following enum values to obey POSIX requirements.
63201         The old names are still visible as macros.
63202         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
63203         is not defined, since GNU is supposed to be a superset of POSIX as
63204         much as possible, and since we want reg_errcode_t to be a signed
63205         type for implementation consistency.
63206         (_REG_NOERROR): Renamed from REG_NOERROR.
63207         (_REG_NOMATCH): Renamed from REG_NOMATCH.
63208         (_REG_BADPAT): Renamed from REG_BADPAT.
63209         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
63210         (_REG_ECTYPE): Renamed from REG_ECTYPE.
63211         (_REG_EESCAPE): Renamed from REG_EESCAPE.
63212         (_REG_ESUBREG): Renamed from REG_ESUBREG.
63213         (_REG_EBRACK): Renamed from REG_EBRACK.
63214         (_REG_EPAREN): Renamed from REG_EPAREN.
63215         (_REG_EBRACE): Renamed from REG_EBRACE.
63216         (_REG_BADBR): Renamed from REG_BADBR.
63217         (_REG_ERANGE): Renamed from REG_ERANGE.
63218         (_REG_ESPACE): Renamed from REG_ESPACE.
63219         (_REG_BADRPT): Renamed from REG_BADRPT.
63220         (_REG_EEND): Renamed from REG_EEND.
63221         (_REG_ESIZE): Renamed from REG_ESIZE.
63222         (_REG_ERPAREN): Renamed from REG_ERPAREN.
63223         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
63224         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
63225         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
63226         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
63227
63228         (_REG_RE_NAME, _REG_RM_NAME): New macros.
63229         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
63230         changed.  But support the old name if the new one is not defined
63231         and if _REGEX_SOURCE.
63232
63233         Change the following member names in struct re_pattern_buffer.
63234         The old names are still supported if !_REGEX_SOURCE.
63235         The new names are always supported, regardless of _REGEX_SOURCE.
63236         (re_buffer): Renamed from buffer.
63237         (re_allocated): Renamed from allocated.
63238         (re_used): Renamed from used.
63239         (re_syntax): Renamed from syntax.
63240         (re_fastmap): Renamed from fastmap.
63241         (re_translate): Renamed from translate.
63242         (re_can_be_null): Renamed from can_be_null.
63243         (re_regs_allocated): Renamed from regs_allocated.
63244         (re_fastmap_accurate): Renamed from fastmap_accurate.
63245         (re_no_sub): Renamed from no_sub.
63246         (re_not_bol): Renamed from not_bol.
63247         (re_not_eol): Renamed from not_eol.
63248         (re_newline_anchor): Renamed from newline_anchor.
63249
63250         Change the following member names in struct re_registers.
63251         The old names are still supported if !_REGEX_SOURCE.
63252         The new names are always supported, regardless of _REGEX_SOURCE.
63253         (rm_num_regs): Renamed from num_regs.
63254         (rm_start): Renamed from start.
63255         (rm_end): Renamed from end.
63256
63257         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
63258         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
63259         Prepend __ to parameter names.
63260
63261         Undo yesterday's changes.
63262
63263 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
63266         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
63267         lib/regex.c.
63268
63269 2005-08-24  Jim Meyering  <jim@meyering.net>
63270
63271         Sync from coreutils.
63272         * m4/fcntl-safer.m4: New file.
63273
63274         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
63275         and object files for this module.
63276
63277 2005-08-24  Jim Meyering  <jim@meyering.net>
63278
63279         Sync from coreutils.
63280         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
63281
63282 2005-08-24  Jim Meyering  <jim@meyering.net>
63283
63284         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
63285         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
63286
63287 2005-08-24  Jim Meyering  <jim@meyering.net>
63288
63289         * modules/fcntl-safer: New module.
63290         * modules/fts (Depends-on): Add fcntl-safer.
63291         * MODULES.html.sh (File descriptor based Input/Output):
63292         Add fcntl-safer.
63293
63294 2005-08-24  Bruno Haible  <bruno@clisp.org>
63295
63296         Support for unit test modules.
63297         * modules/README: Mention tests modules.
63298         * modules/TEMPLATE-TESTS: New file.
63299         * gnulib-tool: New options --extract-tests-module, --with-tests and
63300         --tests-base (unused for the moment).
63301         (testsbase, inctests): New variables.
63302         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
63303         (func_verify_module): Exclude TEMPLATE-TESTS.
63304         (func_verify_nontests_module, func_verify_tests_module): New functions.
63305         (func_get_dependencies): Add implicit dependency for tests modules.
63306         (func_get_tests_module): New function.
63307         (func_modules_transitive_closure): When --with-tests was specified,
63308         include the unit tests as well, unless explicitly avoided.
63309         (func_emit_lib_Makefile_am): Ignore the tests modules here.
63310         (func_emit_tests_Makefile_am): New function.
63311         (func_create_testdir): When --with-tests was specified, emit a
63312         tests/ directory.
63313         * MODULES.html.sh (Future developments): Update.
63314
63315 2005-08-24  Bruno Haible  <bruno@clisp.org>
63316
63317         * modules/tls-tests: New file.
63318         * tests/test-tls.c: New file, from GNU gettext.
63319
63320 2005-08-24  Bruno Haible  <bruno@clisp.org>
63321
63322         * modules/lock-tests: New file.
63323         * tests/test-lock.c: New file, from GNU gettext.
63324
63325 2005-08-24  Bruno Haible  <bruno@clisp.org>
63326
63327         * lib/lock.h: Add multiple inclusion guard.
63328         * lib/tls.h: Add multiple inclusion guard.
63329
63330 2005-08-24  Bruno Haible  <bruno@clisp.org>
63331
63332         * gnulib-tool: Add support for the --aux-dir option to
63333         --create-testdir, --create-megatestdir, --test, --megatest.
63334         (func_create_testdir, func_create_megatestdir): Optionally emit a
63335         AC_CONFIG_AUX_DIR directive.
63336         (create-testdir, create-megatestdir, test, megatest): Provide a
63337         default value for $auxdir.
63338
63339 2005-08-24  Bruno Haible  <bruno@clisp.org>
63340
63341         * gnulib-tool (import): Use compound statement instead of subshell
63342         where possible.
63343
63344 2005-08-24  Bruno Haible  <bruno@clisp.org>
63345
63346         * gnulib-tool (import): Change --aux-dir default to "build-aux".
63347
63348 2005-08-24  Bruno Haible  <bruno@clisp.org>
63349
63350         * gnulib-tool (func_version): Update.
63351
63352 2005-08-24  Bruno Haible  <bruno@clisp.org>
63353
63354         * gnulib-tool (func_import, func_create_testdir,
63355         func_create_megatestdir): Quote all autoconf macro arguments.
63356
63357 2005-08-24  Bruno Haible  <bruno@clisp.org>
63358
63359         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
63360         option --force, because --force causes the aclocal.m4 of each
63361         subdirectory to be newer than the corresponding config.h.in.
63362
63363 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
63366         All contents moved to gl_REGEX.
63367         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
63368         assume that it does.
63369
63370 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * lib/regex.h (REG_NOSYS)
63373         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
63374         Define, since POSIX requires it as of 2001.
63375         (_REG_ENOSYS)
63376         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
63377         New private symbol, used to keep the enum signed in all cases.
63378         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
63379         Youngman in
63380         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
63381
63382         * lib/regex_internal.c (re_string_skip_chars, register_state):
63383         (calc_state_hash):
63384         Remove forward decls; no longer needed now that we use prototypes.
63385         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
63386         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
63387         (clean_state_log_if_needed): Likewise.
63388
63389 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * config/srclist.txt: Add glibc bugs 1231-1233.
63392
63393 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         Fix problems reported by Sam Steingold in
63396         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
63397         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
63398         assumed that reg_errcode_t is a signed type, which is not
63399         necessarily true if _XOPEN_SOURCE is not defined.
63400         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
63401         since some compilers warn about it otherwise.
63402
63403 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63404
63405         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
63406         (init_word_char, create_initial_state, duplicate_node_closure):
63407         (fetch_token, peek_token_bracket, build_range_exp):
63408         (build_collating_symbol): Remove forward decls; no longer needed
63409         now that we use prototypes.
63410
63411         * lib/regcomp.c:
63412         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
63413         (re_compile_fastmap_iter, regcomp, regerror, regfree):
63414         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
63415         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
63416         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
63417         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
63418         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
63419         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
63420         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
63421         (build_range_exp, build_collating_symbol, parse_bracket_exp):
63422         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
63423         (build_charclass, build_charclass_op, fetch_number, create_tree):
63424         (create_token_tree, mark_opt_subexp, duplicate_tree):
63425         Use prototypes rather than old-style definitions.
63426
63427         * lib/regex_internal.c:
63428         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
63429         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63430         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63431         (re_string_reconstruct, re_string_peek_byte_case):
63432         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63433         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63434         (re_node_set_init_copy, re_node_set_add_intersect):
63435         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63436         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63437         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63438         (re_acquire_state, re_acquire_state_context, register_state):
63439         (create_ci_newstate, create_cd_newstate, free_state):
63440         Likewise.
63441         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
63442         re_search_2):
63443         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
63444         (re_search_internal, prune_impossible_nodes):
63445         (acquire_init_state_context, check_matching, static):
63446         (check_halt_node_context, check_halt_state_context, proceed_next_node):
63447         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
63448         (update_regs, sift_states_backward, build_sifted_states):
63449         (clean_state_log_if_needed, merge_state_array):
63450         (update_cur_sifted_state, add_epsilon_src_nodes):
63451         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
63452         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
63453         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
63454         (find_recover_state, check_subexp_matching_top, transit_state_mb):
63455         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
63456         (check_arrival, check_arrival_add_next_nodes):
63457         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63458         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63459         (check_node_accept_bytes, check_node_accept, extend_buffers):
63460         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
63461         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
63462         (sift_ctx_init):
63463         Likewise.
63464
63465         * lib/regex_internal.h:
63466         (re_string_allocate, re_string_construct, re_string_reconstruct):
63467         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
63468         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
63469         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
63470         (re_string_context_at, re_string_peek_byte_case):
63471         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
63472         is defined, since we now use prototypes always.
63473
63474         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
63475         C89 or better.  All uses removed.
63476
63477 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * config/srclist.txt: Add glibc bugs 1220-1227.
63480
63481 2005-08-20  Jim Meyering  <jim@meyering.net>
63482
63483         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
63484         of unused local, dfa.
63485
63486 2005-08-20  Bruno Haible  <bruno@clisp.org>
63487
63488         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
63489
63490 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
63493         (re_node_set_insert_last, re_dfa_add_node):
63494         Rename local variables to avoid GCC shadowing warnings.
63495
63496 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63497
63498         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
63499         [defined lint]: Suppress bogus uninitialized-variable warnings.
63500
63501         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
63502         and let the caller return REG_ESPACE if out of space.  This
63503         removes an uninitialied-variable warning with GCC 4.0.1, and also
63504         avoids taking the address of a local variable.  All callers
63505         changed.
63506
63507 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
63510         $LIBCSRC/posix/regexec.c.
63511         Add glibc bug 1217 for regcomp.c.
63512
63513 2005-08-19  Jim Meyering  <jim@meyering.net>
63514
63515         * lib/regexec.c (proceed_next_node): Redo local variables to
63516         avoid GCC shadowing warnings.
63517
63518 2005-08-18  Bruno Haible  <bruno@clisp.org>
63519
63520         * lib/strstr.c (strstr): Fix return value in multibyte case.
63521         * lib/strcasestr.c (strcasestr): Likewise.
63522
63523 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63524
63525         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
63526
63527 2005-08-17  Jim Meyering  <jim@meyering.net>
63528
63529         Make the %s format (seconds since the epoch) work for a negative
63530         number and when used with a zero-padded field width, e.g. %015s.
63531
63532         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
63533         label so that it precedes the code to set `digits'.  Otherwise,
63534         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
63535         print `00-22'.  Now, it prints `-0022', as it should.
63536
63537 2005-08-17  Bruno Haible  <bruno@clisp.org>
63538
63539         * modules/strstr (Files): Add m4/mbrtowc.m4.
63540         (Depends-on): Add mbuiter.
63541
63542 2005-08-17  Bruno Haible  <bruno@clisp.org>
63543
63544         * modules/strcasestr: New file.
63545         * MODULES.html.sh (String handling, based on ANSI C 89): Add
63546         strcasestr.
63547
63548 2005-08-17  Bruno Haible  <bruno@clisp.org>
63549
63550         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
63551
63552 2005-08-17  Bruno Haible  <bruno@clisp.org>
63553
63554         * modules/mbuiter: New file.
63555         * MODULES.html.sh (Extended multibyte and wide character utilities):
63556         Add mbuiter.
63557
63558 2005-08-17  Bruno Haible  <bruno@clisp.org>
63559
63560         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
63561         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
63562
63563 2005-08-17  Bruno Haible  <bruno@clisp.org>
63564
63565         * m4/strcasestr.m4: New file.
63566
63567 2005-08-17  Bruno Haible  <bruno@clisp.org>
63568
63569         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
63570         * lib/strstr.c: Completely rewritten, with multibyte locale support.
63571
63572 2005-08-17  Bruno Haible  <bruno@clisp.org>
63573
63574         * lib/strcasestr.h: New file.
63575         * lib/strcasestr.c: New file.
63576
63577 2005-08-17  Bruno Haible  <bruno@clisp.org>
63578
63579         * lib/strcasecmp.c: Use mbuiter.h.
63580
63581 2005-08-17  Bruno Haible  <bruno@clisp.org>
63582
63583         * lib/mbuiter.h: New file.
63584
63585 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
63588         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
63589         and gl_GETOPT are both invoked via different paths (as happens
63590         with GNU tar CVS because it uses both argp and getopt), the former
63591         wins.
63592
63593 2005-08-16  Bruno Haible  <bruno@clisp.org>
63594
63595         * modules/tls: New file.
63596         * MODULES.html.sh (Multithreading): Add tls.
63597
63598 2005-08-16  Bruno Haible  <bruno@clisp.org>
63599
63600         * modules/strnlen1: New file.
63601         * MODULES.html.sh (String handling): Add strnlen1.
63602
63603 2005-08-16  Bruno Haible  <bruno@clisp.org>
63604
63605         * modules/strcase (Files): Add m4/mbrtowc.m4.
63606         (Depends-on): Add strnlen1, mbchar.
63607
63608 2005-08-16  Bruno Haible  <bruno@clisp.org>
63609
63610         * modules/mbiter: New file.
63611         * MODULES.html.sh (Extended multibyte and wide character utilities):
63612         Add mbiter.
63613
63614 2005-08-16  Bruno Haible  <bruno@clisp.org>
63615
63616         * modules/mbfile: New file.
63617         * MODULES.html.sh (Extended multibyte and wide character utilities):
63618         Add mbfile.
63619
63620 2005-08-16  Bruno Haible  <bruno@clisp.org>
63621
63622         * modules/mbchar: New file.
63623         * MODULES.html.sh (Extended multibyte and wide character utilities):
63624         New section.
63625
63626 2005-08-16  Bruno Haible  <bruno@clisp.org>
63627
63628         * m4/tls.m4: New file, from GNU gettext.
63629
63630 2005-08-16  Bruno Haible  <bruno@clisp.org>
63631
63632         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
63633         always.
63634         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
63635
63636 2005-08-16  Bruno Haible  <bruno@clisp.org>
63637
63638         * m4/mbiter.m4: New file.
63639
63640 2005-08-16  Bruno Haible  <bruno@clisp.org>
63641
63642         * m4/mbfile.m4: New file.
63643
63644 2005-08-16  Bruno Haible  <bruno@clisp.org>
63645
63646         * m4/mbchar.m4: New file.
63647
63648 2005-08-16  Bruno Haible  <bruno@clisp.org>
63649
63650         * lib/tls.h: New file, from GNU gettext.
63651         * lib/tls.c: New file, from GNU gettext.
63652
63653 2005-08-16  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/strnlen1.h: New file.
63656         * lib/strnlen1.c: New file.
63657
63658 2005-08-16  Bruno Haible  <bruno@clisp.org>
63659
63660         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63661         (mbi_init): Update.
63662         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63663         NUL byte, not after it.
63664
63665 2005-08-16  Bruno Haible  <bruno@clisp.org>
63666
63667         * lib/strcase.h (strcasecmp): Add note in comments.
63668         * lib/strncasecmp.c: Use code from strcasecmp.c.
63669         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
63670         (strcasecmp): Work correctly in multibyte locales.
63671
63672 2005-08-16  Bruno Haible  <bruno@clisp.org>
63673
63674         * lib/mbiter.h: New file.
63675
63676 2005-08-16  Bruno Haible  <bruno@clisp.org>
63677
63678         * lib/mbfile.h: New file.
63679
63680 2005-08-16  Bruno Haible  <bruno@clisp.org>
63681
63682         * lib/mbchar.h: New file.
63683         * lib/mbchar.c: New file.
63684
63685 2005-08-16  Bruno Haible  <bruno@clisp.org>
63686
63687         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
63688         the valid ones. Makes the comparison operations transitive:
63689         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
63690         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
63691
63692 2005-08-15  Simon Josefsson  <jas@extundo.com>
63693
63694         * modules/ssize_t (License): Change to 'unlimited'.
63695
63696         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
63697
63698 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63699
63700         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
63701         Add comments for each pending glibc patch.
63702
63703 2005-08-15  Bruno Haible  <bruno@clisp.org>
63704
63705         * lib/regex.h (__restrict_arr): Don't define to __restrict if
63706         __cplusplus is defined.
63707
63708 2005-08-14  Jim Meyering  <jim@meyering.net>
63709
63710         Sync from coreutils.
63711
63712         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
63713         Use the hash-table-based cycle-detection code not just when
63714         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
63715         Reported by James Youngman in
63716         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
63717         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
63718         FTS_TIGHT_CYCLE_CHECK.
63719         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
63720         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
63721         once again.
63722         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
63723         * lib/fts.c (fd_safer): Remove decl.
63724         Include fcntl--.h rather than unistd-safer.h
63725         (fts_safe_changedir): Don't call fd_safer; no longer needed
63726         now that we include fcntl--.h.
63727
63728 2005-08-12  Simon Josefsson  <jas@extundo.com>
63729
63730         * modules/getndelim2: Use ssize_t module.
63731         * modules/getnline: Likewise.
63732         * modules/safe-read: Likewise.
63733         * modules/xreadlink: Likewise.
63734
63735         * modules/ssize_t: New file.
63736
63737 2005-08-12  Simon Josefsson  <jas@extundo.com>
63738
63739         * m4/readline.m4: Look for termcap, curses or ncurses if required.
63740
63741 2005-08-12  Simon Josefsson  <jas@extundo.com>
63742
63743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63744         ssize_t.
63745
63746 2005-08-12  Simon Josefsson  <jas@extundo.com>
63747
63748         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
63749         readline, getdelim and check_version.
63750         (Support for systems lacking ISO C 99: Sizes of integer types):
63751         Add size_max.
63752
63753 2005-08-12  Bruno Haible  <bruno@clisp.org>
63754
63755         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
63756
63757 2005-08-11  Simon Josefsson  <jas@extundo.com>
63758
63759         * modules/readline: New file.
63760
63761         * modules/strnlen (Files): Add strnlen.h.
63762
63763 2005-08-11  Simon Josefsson  <jas@extundo.com>
63764
63765         * m4/readline.m4: New file.
63766
63767 2005-08-11  Simon Josefsson  <jas@extundo.com>
63768
63769         * lib/readline.h, readline.c: New file.
63770
63771 2005-08-11  Simon Josefsson  <jas@extundo.com>
63772
63773         * doc/gnulib.texi (Initial import, Finishing touches): Mention
63774         gl_AVOID.
63775
63776 2005-08-11  Bruno Haible  <bruno@clisp.org>
63777
63778         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63779
63780 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63781
63782         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63783
63784 2005-08-10  Simon Josefsson  <jas@extundo.com>
63785
63786         * tests/test-iconvme.c: New file.
63787
63788 2005-08-10  Simon Josefsson  <jas@extundo.com>
63789
63790         * m4/strnlen.m4: New file.
63791
63792         * m4/strndup.m4: Don't check for strnlen declaration, done in
63793         strnlen.m4.
63794
63795 2005-08-10  Simon Josefsson  <jas@extundo.com>
63796
63797         * lib/strndup.c: Use strnlen.h.
63798
63799         * lib/strnlen.h: New file.
63800
63801 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63802
63803         * README: Typos.
63804
63805 2005-08-02  Simon Josefsson  <jas@extundo.com>
63806
63807         * modules/readline: New file.
63808
63809 2005-08-02  Simon Josefsson  <jas@extundo.com>
63810
63811         * modules/getdelim: New file.
63812
63813         * modules/getline: Rewrite, don't use getndelim2.
63814
63815 2005-08-02  Simon Josefsson  <jas@extundo.com>
63816
63817         * m4/getline.m4: Separate out getdelim stuff into separate module.
63818
63819         * m4/getdelim.m4: New file.
63820
63821 2005-08-02  Simon Josefsson  <jas@extundo.com>
63822
63823         * lib/getline.h, getline.c: Rewrite.
63824
63825         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
63826
63827 2005-07-31  Bruno Haible  <bruno@clisp.org>
63828
63829         * lib/lock.h (gl_lock_initializer): New macro.
63830         (gl_lock_define_initialized): Use it.
63831         (gl_rwlock_initializer): New macro.
63832         (gl_rwlock_define_initialized): Use it.
63833         (gl_recursive_lock_initializer): New macro.
63834         (gl_recursive_lock_define_initialized): Use it.
63835
63836 2005-07-30  Karl Berry  <karl@gnu.org>
63837
63838         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
63839         Report from Ben Pfaff, regarding getopt.
63840
63841 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
63842
63843         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
63844         normal way.
63845         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
63846         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
63847         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
63848         (gl_GETOPT): Use the new macros.  Most of the implementation
63849         is moved to the new macros.  This is for programs like Emacs
63850         that don't want all the functionality of gl_GETOPT.
63851
63852 2005-07-26  Bruno Haible  <bruno@clisp.org>
63853
63854         * m4/lock.m4: Update from GNU gettext.
63855
63856 2005-07-26  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/lock.h: Update from GNU gettext.
63859         * lib/lock.c: Update from GNU gettext.
63860
63861 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
63864         obsolescent AC_TRY_RUN.  Include the default includes files, for
63865         'exit'.
63866
63867 2005-07-24  Bruno Haible  <bruno@clisp.org>
63868
63869         * modules/visibility: New file.
63870         * MODULES.html.sh (Misc): Add visibility.
63871
63872 2005-07-24  Bruno Haible  <bruno@clisp.org>
63873
63874         * m4/visibility.m4: New file.
63875
63876 2005-07-24  Bruno Haible  <bruno@clisp.org>
63877
63878         * doc/visibility.texi: New file.
63879
63880 2005-07-22  Bruno Haible  <bruno@clisp.org>
63881
63882         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
63883         $(ALLOCA_H), redundant through BUILT_SOURCES.
63884         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
63885         redundant through BUILT_SOURCES.
63886         * modules/byteswap (Makefile.am): Remove explicit dependency on
63887         $(BYTESWAP_H), redundant through BUILT_SOURCES.
63888         * modules/fnmatch (Makefile.am): Remove explicit dependency on
63889         $(FNMATCH_H), redundant through BUILT_SOURCES.
63890         * modules/getopt (Makefile.am): Remove explicit dependency on
63891         $(GETOPT_H), redundant through BUILT_SOURCES.
63892         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
63893         redundant through BUILT_SOURCES.
63894         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
63895         redundant through BUILT_SOURCES.
63896         * modules/stdbool (Makefile.am): Remove explicit dependency on
63897         $(STDBOOL_H), redundant through BUILT_SOURCES.
63898         * modules/stdint (Makefile.am): Remove explicit dependency on
63899         $(STDINT_H), redundant through BUILT_SOURCES.
63900         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
63901         Remove explicit dependency on $(SYSEXITS_H).
63902         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
63903
63904 2005-07-18  Simon Josefsson  <jas@extundo.com>
63905
63906         * lib/check-version.c (check_version): Accept identical versions too.
63907
63908 2005-07-18  Bruno Haible  <bruno@clisp.org>
63909
63910         * modules/lock: New file.
63911         * MODULES.html.sh (Multithreading): New section.
63912
63913 2005-07-18  Bruno Haible  <bruno@clisp.org>
63914
63915         * m4/lock.m4: New file, from GNU gettext.
63916
63917 2005-07-18  Bruno Haible  <bruno@clisp.org>
63918
63919         * lib/lock.h: New file, from GNU gettext.
63920         * lib/lock.c: New file, from GNU gettext.
63921
63922 2005-07-18  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/lock.h (gl_once_t): New type.
63925         (gl_once_define, gl_once): New macros.
63926         * lib/lock.c (fresh_once): New variable.
63927         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
63928         functions.
63929
63930 2005-07-16  Simon Josefsson  <jas@extundo.com>
63931
63932         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
63933         workaround, suggested by Bruno.
63934
63935 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * modules/xalloc (Depends-on): Add xalloc-die.
63938         * modules/xvasprintf (Depends-on): Add xalloc-die.
63939
63940 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
63943         with a minor change.
63944
63945 2005-07-15  Bruno Haible  <bruno@clisp.org>
63946
63947         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
63948         When using lib/poll.c, define poll as rpl_poll.
63949
63950 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
63951
63952         * modules/argp (Depends-on): Remove unlocked-io.
63953
63954 2005-07-14  Derek Price  <derek@ximbiot.com>
63955
63956         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
63957         for glob symlink bug.
63958
63959 2005-07-14  Bruno Haible  <bruno@clisp.org>
63960
63961         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
63962         Instead, test for *_unlocked function declarations directly.
63963
63964 2005-07-11  Simon Josefsson  <jas@extundo.com>
63965
63966         * modules/size_max: New file.
63967
63968         * modules/xsize: Depend on size_max module for size_max.m4.
63969
63970 2005-07-11  Simon Josefsson  <jas@extundo.com>
63971
63972         * lib/size_max.h: New file.
63973
63974 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
63977         copyright symbol and the year.
63978         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
63979         (version_etc_va): Use parameterized copyright notice.
63980         Reword to conform to the current GNU coding standards.
63981
63982 2005-07-11  Karl Berry  <karl@gnu.org>
63983
63984         * doc/gnulib.texi (Quoting): new node.
63985         (Initial import): more info, from Patrice.
63986
63987 2005-07-11  Bruno Haible  <bruno@clisp.org>
63988
63989         * gnulib-tool (func_usage): Document option --avoid.
63990         (Command line options): Handle --avoid.
63991         (func_acceptable): New function.
63992         (func_modules_transitive_closure): Use it.
63993
63994 2005-07-11  Bruno Haible  <bruno@clisp.org>
63995
63996         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
63997         Reported by Jim Meyering.
63998
63999 2005-07-10  Bruno Haible  <bruno@clisp.org>
64000
64001         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64002         Needed when size_t is smaller than 'unsigned int'.
64003         Reported by Paul Eggert.
64004
64005 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64006
64007         * modules/argp (Depends-on): Add unlocked-io
64008
64009 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64010
64011         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64012         block of defines.
64013
64014 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64017         fix now.
64018
64019 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64020         and Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64023         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64024
64025 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         * modules/regex (Files): Add lib/regex_internal.c,
64028         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64029         (Depends-on): Add extensions.
64030         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64031
64032 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64035         pathconf.
64036         * m4/same.m4 (gl_SAME): Likewise.
64037         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64038
64039         * m4/regex.m4: Adjust to new libc regex implementation.
64040         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64041         all the .c and .h parts of (the new) regex.
64042         Quote the m4 stuff better.
64043         Check for RE_ICASE bug of old gnulib.
64044         Check for REG_STARTEND of recent libc.
64045         Rename local variables from jm_* to gl_*.
64046         Quote operand of "test -f".
64047         Say "recent enough" version of libc, not "version 2".
64048         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64049         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64050         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64051         Remove check for btowc, isascii.
64052         Require AM_LANGINFO_CODESET.
64053
64054 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/regex.c, regex.h: Sync from libc.
64057         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64058         * lib/regexec.c:
64059         New files, synced from libc, except that regex_internal.h
64060         currently has a small porting fix.
64061
64062 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64063
64064         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64065         regex_internal.c, regexec.c.
64066         Add regex_internal.h too, but as a comment, since the libc version
64067         is currently broken in gnulib mode.
64068
64069 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64070
64071         Support programs like Emacs that use gnulib but not gettext.
64072         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64073         * modules/gettext-h: New file.
64074         * modules/gettext (Files): Remove lib/gettext.h.
64075         (Depends-on): Add gettext-h.
64076         (Makefile.am): Remove lib_SOURCES.
64077         * modules/argmatch, modules/c-stack, modules/closeout:
64078         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64079         * modules/execute, modules/file-type, modules/getaddrinfo:
64080         * modules/getopt, modules/human, modules/javacomp:
64081         * modules/javaexec, modules/mkdir-p, modules/obstack:
64082         * modules/openat, modules/pagealign_alloc, modules/pipe:
64083         * modules/quotearg, modules/regex, modules/rpmatch:
64084         * modules/unicodeio, modules/userspec, modules/version-etc:
64085         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64086         * modules/xsetenv:
64087         Depend on gettext-h, not gettext.
64088
64089 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64090
64091         * gnulib-tool (func_import): Add support for 'public domain' license.
64092         * modules/alloca, modules/atexit, modules/memmove:
64093         Now public domain, not GPL.
64094         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64095         * modules/realloc, modules/strerror, modules/strtod:
64096         Now LGPL, not GPL.
64097
64098 2005-07-05  Bruno Haible  <bruno@clisp.org>
64099
64100         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64101         autoconf CVS. Needed for mingw.
64102
64103 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64104
64105         Remove the dependency of the strftime module on the tzset module.
64106         * modules/strftime (Depends-on): Remove dependency on tzset.
64107
64108 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         Remove the dependency of the strftime module on the tzset module.
64111         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64112         gl_FUNC_TZSET_CLOBBER.
64113
64114 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64115
64116         Remove the dependency of the strftime module on the tzset module.
64117         * lib/strftime.c (my_strftime)
64118         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64119         Copy the input structure, to work around some of the bug with
64120         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64121         Solaris releases, you should also use the tzset module, but we won't
64122         require it as a dependency any more since we don't want LGPLed code
64123         to depend on GPLed code.
64124
64125 2005-07-02  Jim Meyering  <jim@meyering.net>
64126
64127         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64128         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64129         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64130         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64131
64132 2005-07-02  Jim Meyering  <jim@meyering.net>
64133
64134         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64135
64136 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64137
64138         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64139         declares only 'struct timespec;' (!).
64140
64141 2005-07-01  Jim Meyering  <jim@meyering.net>
64142
64143         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64144         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64145         * lib/save-cwd.c, tempname.c:
64146         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64147         and don't include <sys/file.h>).
64148
64149 2005-06-29  Jim Meyering  <jim@meyering.net>
64150
64151         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64152         type name.  Use the variable name instead.
64153         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64154         Likewise.
64155
64156 2005-06-28  Simon Josefsson  <jas@extundo.com>
64157
64158         * modules/check-version (Files): Add check-version.m4.
64159
64160 2005-06-28  Simon Josefsson  <jas@extundo.com>
64161
64162         * m4/check-version.m4: New file, suggested by Jim Meyering
64163         <jim@meyering.net>.
64164
64165 2005-06-28  Simon Josefsson  <jas@extundo.com>
64166
64167         * lib/check-version.h, lib/check-version.c: New files.
64168
64169 2005-06-28  Simon Josefsson  <jas@extundo.com>
64170
64171         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64172         collision with global variable.  Better indentation.  Don't
64173         increment buffer pointer beyond buffer end.  Based on comments
64174         from Paul Eggert <eggert@cs.ucla.edu>.
64175
64176         * lib/base64.h: Indent.
64177
64178 2005-06-28  Simon Josefsson  <jas@extundo.com>
64179
64180         * doc/gnulib.texi (Library version handling): New section.
64181
64182 2005-06-28  Jim Meyering  <jim@meyering.net>
64183
64184         * check-module (find_included_lib_files): Hard-code another
64185         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
64186         but modules/fts-lgpl (correctly) does not list those files.
64187
64188         * modules/canonicalize (Files): Add lib/pathmax.h.
64189
64190 2005-06-25  Simon Josefsson  <jas@extundo.com>
64191
64192         * modules/check-version: New file.
64193
64194 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
64195
64196         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
64197         initializer of struct addrinfo, as an indication that we don't
64198         care how many members the structure has.
64199
64200 2005-06-24  Derek Price  <derek@ximbiot.com>
64201         and Bruno Haible  <bruno@clisp.org>
64202
64203         Remove stat module & update lstat.
64204         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
64205         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64206         * m4/stat.m4: Remove this file.
64207
64208 2005-06-24  Derek Price  <derek@ximbiot.com>
64209         and Bruno Haible  <bruno@clisp.org>
64210
64211         Remove stat module & update lstat.
64212         * lib/stat.c: Remove this file...
64213         (slash_aware_lstat): ...moving this content and its support...
64214         * lib/lstat.c (rpl_lstat): ...into here.
64215         * lib/lstat.h: New file.
64216
64217 2005-06-24  Derek Price  <derek@ximbiot.com>
64218         and Bruno Haible  <bruno@clisp.org>
64219
64220         Remove stat module & update lstat.
64221         * config/srclist.txt (libc sources): Remove stat.
64222
64223 2005-06-24  Derek Price  <derek@ximbiot.com>
64224         and Bruno Haible  <bruno@clisp.org>
64225
64226         Remove stat module & update lstat.
64227         * MODULES.html.sh (stat): Remove.
64228         * MODULES.html: Regenerated.
64229         * modules/lstat (Description): Correct function name.
64230         (Files): Add "lstat.h".
64231         (Depends-on): Remove stat, add xalloc, stat-macros.
64232         * modules/stat: Remove this file.
64233         (Include): Add "lstat.h", remove <sys/stat.h>.
64234
64235 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64236
64237         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
64238         (ranged_convert): Don't save conversion in a temporary struct.
64239         This causes a warning with GCC 4.0.0, and anyway in the typical
64240         case it's not worth the extra 100 bytes or so of code.
64241         (ranged_convert, __mktime_internal): When calling a function via a
64242         pointer P, use P () rather than (*P) (), as we now assume C89 or
64243         better.
64244
64245 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64246
64247         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
64248         "who -r" failed to give output.  Problem reported by Tim Waugh.
64249
64250         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
64251         (xcalloc): Use it to avoid needless tests.
64252         Problem reported by Jim Meyering.
64253
64254 2005-06-20  Derek Price  <derek@ximbiot.com>
64255
64256         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
64257         unnecessary for Autoconfs > 2.59c.
64258
64259 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64260
64261         * lib/argp.h (__option_is_short): Check upper limit of
64262         __key. Isprint() requires its argument to have the value
64263         of an unsigned char or EOF.
64264
64265 2005-06-16  Jim Meyering  <jim@meyering.net>
64266
64267         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
64268         when either N or S is zero.
64269
64270 2005-06-16  Derek Price  <derek@ximbiot.com>
64271
64272         * m4/bison.m4: Declare YACC & YFLAGS precious.
64273
64274 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
64277         multibyte string or pattern, fall back on unibyte matching.
64278         Problem reported by James Youngman.
64279
64280 2005-06-08  Bruno Haible  <bruno@clisp.org>
64281
64282         * modules/csharpcomp: New file.
64283         * MODULES.html.sh (C#): Add csharpcomp.
64284
64285 2005-06-08  Bruno Haible  <bruno@clisp.org>
64286
64287         * m4/csharpcomp.m4: New file, from GNU gettext.
64288
64289 2005-06-08  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/csharpcomp.h: New file, from GNU gettext.
64292         * lib/csharpcomp.c: New file, from GNU gettext.
64293         * lib/csharpcomp.sh.in: New file, from GNU gettext.
64294
64295 2005-06-08  Bruno Haible  <bruno@clisp.org>
64296
64297         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
64298         warning on mingw.
64299
64300 2005-06-07  Derek Price  <derek@ximbiot.com>
64301
64302         Sync from CVS.
64303         * lib/glob_.h: Indent nested #ifdef.
64304
64305 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         Sync from coreutils.
64308         Use "file name" when talking about file names, instead of "filename"
64309         or "path", as per the GNU coding standards.
64310         * lib/mkdir-p.c: Renamed from makepath.c.
64311         (make_dir_parents): Renamed from make_path.  All callers changed.
64312         * lib/mkdir-p.h: Likewise.  All includers changed.
64313         * lib/filenamecat.c: Renamed from path-concat.c.
64314         (file_name_concat): Renamed from path_concat.  All callers changed.
64315         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
64316         * lib/filenamecat.h: Likewise.  All includers changed.
64317         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
64318         in comments or local variable names.
64319         * lib/basename.c: Likewise.
64320         * lib/canonicalize.c, canonicalize.h: Likewise.
64321         * lib/dirname.c, dirname.h: Likewise.
64322         * lib/euidaccess.c: Likewise.
64323         * lib/exclude.c: Likewise
64324         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
64325         * lib/fsusage.c, fsuage.h: Likewise.
64326         * lib/fts.c, fts_.h: Likewise.
64327         * lib/getcwd.c: Likewise.
64328         * lib/getloadavg.c: Likewise.
64329         * lib/mkstemp.c: Likewise.
64330         * lib/mountlist.c, mountlist.h: Likewise.
64331         * lib/openat.c, openat.h: Likewise.
64332         * lib/readlink-stub.c: Likewise.
64333         * lib/readutmp.c, readutmp.h: Likewise.
64334         * lib/rename.c: Likewise.
64335         * lib/rmdir.c: Likewise.
64336         * lib/same.c: Likewise.
64337         * lib/savedir.c: Likewise.
64338         * lib/stripslash.c: Likewise.
64339         * lib/tempname.c: Likewise.
64340         * lib/xreadlink.c: Likewise.
64341         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
64342         All uses changed.
64343         * lib/exclude.h: Likewise.
64344
64345         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
64346         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64347         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
64348         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64349         * lib/pathmax.h: Include <limits.h> unconditionally, since other
64350         files have been getting away with it for years (MORE/BSD 4.3
64351         is extinct now).
64352         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
64353         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64354
64355         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
64356         Define to 256, not 255, as per modern POSIX.
64357
64358 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64359
64360         Sync from coreutils.
64361         Use "file name" when talking about file names, instead of "filename"
64362         or "path", as per the GNU coding standards.
64363         * MODULES.html.sh: mkdir-p renamed from makepath.
64364         filenamecat renamed from path-concat.
64365         * modules/filenamecat: Renamed from modules/path-concat.
64366         (Files): filenamecat.h and filenamecat.c renamed from
64367         path-concat.h and path-concat.c.
64368         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
64369         (Include): filenamecat.h, not path-concat.h.
64370         * modules/mkdir-p: Renamed from modules/makepath.
64371         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
64372         makepath.c.
64373         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
64374         (Include): mkdir-p.h, not makepath.h.
64375
64376 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64377
64378         Sync from coreutils.
64379         * m4/mkdir-p.m4: Renamed from makepath.m4.
64380         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
64381         Rename files from makepath.c to mkdir-p.c, and from
64382         makepath.h to mkdir-p.h.
64383         * m4/filenamecat.m4: Renamed from path-concat.m4.
64384         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
64385         Rename files from path-concat.c to filenamecat.c,
64386         and from path-concat.h to filenamecat.h.
64387         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
64388         "file name" in local variables or comments.
64389         * m4/rename.m4: Likewise.
64390
64391 2005-06-01  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/csharpexec: New file.
64394         * MODULES.html.sh (C#): New section.
64395
64396 2005-06-01  Bruno Haible  <bruno@clisp.org>
64397
64398         * m4/csharp.m4: New file, from GNU gettext.
64399         * m4/csharpexec.m4: New file, from GNU gettext.
64400
64401 2005-06-01  Bruno Haible  <bruno@clisp.org>
64402
64403         * lib/csharpexec.h: New file, from GNU gettext.
64404         * lib/csharpexec.c: New file, from GNU gettext.
64405         * lib/csharpexec.sh.in: New file, from GNU gettext.
64406
64407 2005-05-31  Derek Price  <derek@ximbiot.com>
64408             Paul Eggert  <eggert@cs.ucla.edu>
64409
64410         Sync from cvs.
64411         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64412
64413 2005-05-31  Derek Price  <derek@ximbiot.com>
64414             Paul Eggert  <eggert@cs.ucla.edu>
64415
64416         Sync from cvs.
64417         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64418
64419 2005-05-29  Derek Price  <derek@ximbiot.com>
64420
64421         * config/srclist.txt (glob_.h, glob.c): Add these files.
64422
64423 2005-05-29  Derek Price  <derek@ximbiot.com>
64424
64425         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
64426         * modules/glob: New file.
64427         * modules/getlogin_r: Add link to POSIX spec in description.
64428
64429 2005-05-29  Derek Price  <derek@ximbiot.com>
64430             Paul Eggert  <eggert@cs.ucla.edu>
64431
64432         * m4/glob.m4: New file.
64433
64434 2005-05-29  Derek Price  <derek@ximbiot.com>
64435             Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * lib/glob_.h, lib/glob.c: New files.
64438
64439 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64440
64441         * modules/fts (Files): Remove m4/inttypes-pri.m4.
64442         * modules/fts-lgpl (Depends-on): Remove gettext.
64443
64444 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64445
64446         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
64447         and don't require gt_INTTYPES_PRI.
64448
64449 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64450
64451         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
64452
64453         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
64454         the configuration hassle isn't worth it.
64455         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
64456         (LONGEST_MODIFIER, PRIuMAX): Remove.
64457
64458 2005-05-27  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/getlogin_r.h: Remove second include of <stddef.h>.
64461
64462 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
64465         _POSIX_PTHREAD_SEMANTICS for Solaris.
64466
64467 2005-05-25  Derek Price  <derek@ximbiot.com>
64468
64469         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
64470
64471 2005-05-25  Derek Price  <derek@ximbiot.com>
64472             Paul Eggert  <eggert@cs.ucla.edu>
64473
64474         * modules/getlogin_r, m4/getlogin_r.m4: New files.
64475         * lib/getlogin_r.c, getlogin_r.h: New files.
64476
64477 2005-05-25  Bruno Haible  <bruno@clisp.org>
64478             Derek Price  <derek@ximbiot.com>
64479
64480         * lib/getlogin_r.h: Simplify API documentation.
64481
64482 2005-05-23  Derek Price  <derek@ximbiot.com>
64483
64484         * modules/minmax (Files): Add m4/minmax.m4.
64485         (configure.ac): Add gl_MINMAX.
64486
64487 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
64490         so that unistd-safer.h (GPL'ed code) need not be included.
64491
64492 2005-05-22  Bruno Haible  <bruno@clisp.org>
64493
64494         * m4/minmax.m4: New file.
64495         Based on a patch by Derek Price <derek@ximbiot.com>.
64496
64497 2005-05-22  Bruno Haible  <bruno@clisp.org>
64498
64499         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
64500         (INT64_MIN): Fix definition.
64501         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
64502
64503         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
64504         NEED_SIGNED_INT_TYPES.
64505
64506         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
64507         HAVE_SYSTEM_INTTYPES.
64508
64509 2005-05-22  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
64512         Also include <sys/param.h> if it defines MIN, MAX.
64513         Based on a patch by Derek Price <derek@ximbiot.com>.
64514
64515 2005-05-21  Jim Meyering  <jim@meyering.net>
64516
64517         * modules/fts (Files): Add m4/inttypes-pri.m4.
64518         (Depends-on): Add lstat and remove gettext.  Alphabetize.
64519
64520 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         New fts module.
64523         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
64524         (setup_dir, free_dir): New functions.
64525         (enter_dir, leave_dir): Define trivial
64526         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
64527         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
64528         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
64529         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
64530         Move to fts-cycle.c.
64531         (fts_open): Use setup_dir.
64532         (fts_close): Use free_dir.
64533         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
64534         This adds a label and some gotos, but the alternatives were messier.
64535         Check for memory allocation failure when entering a dir.
64536         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
64537         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
64538         (FTS): New member fts_cycle, that is a union that contains the
64539         old active_dir_ht and cycle_state.  All uses changed to mention
64540         fts_cycle.ht and fts_cycle.state.
64541         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
64542         fts.c, with the following changes:
64543         (setup_dir, free_dir): New functions.
64544         (enter_dir): Now returns bool.  Return true if successful, false
64545         if memory exhausted.  All callers changed.
64546         Do not bother partly cleaning up on
64547         memory allocation failure; that is free_dir's job.
64548         However, free ad if hash_insert fails, to avoid memory leak.
64549         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
64550         fts->fts_options to see which union member to use.
64551
64552 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
64555         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
64556
64557 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
64560
64561 2005-05-20  Jim Meyering  <jim@meyering.net>
64562
64563         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
64564         Now a macro, to pacify GCC.
64565
64566 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64567
64568         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
64569         of -1.
64570
64571 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64572
64573         * lib/chown.c (rpl_chown): Return -1 on failure.
64574
64575 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
64578         Don't check for stddef.h.
64579         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
64580         don't use its results.
64581         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
64582         since we include them unconditionally.  Don't require
64583         AM_STDBOOL_H, since stdbool is a prerequisite.
64584         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
64585         since we assume C89 or better.
64586         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
64587         as we don't use their results.
64588         Don't check for fchdir, memmove, memset, strrchr, as we use
64589         them unconditionally.
64590         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
64591         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
64592
64593 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
64596         Include <stddef.h> unconditionally, since we assume C89 now.
64597         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
64598         * lib/fts.c: Include fts_.h first, to check interface.
64599         Do not include intprops.h; no longer needed.
64600         Include cycle-check.h and hash.h, since fts_.h no longer does.
64601         Remove unnecessary casts of closedir to void.
64602         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
64603         decide whether to decrement nlinks.
64604         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
64605         (FTS): Use struct hash_table * instead of Hash_table, so that
64606         we no longer need to include hash.h here.
64607
64608 2005-05-18  Jim Meyering  <jim@meyering.net>
64609
64610         * modules/dirfd (License): Change to LGPL.  Most of the code
64611         is already in the public domain.
64612
64613 2005-05-18  Jim Meyering  <jim@meyering.net>
64614
64615         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
64616         Reported by Yoann Vandoorselaere.
64617
64618 2005-05-17  Jim Meyering  <jim@meyering.net>
64619
64620         * m4/fts.m4: New file, from coreutils.
64621
64622 2005-05-17  Jim Meyering  <jim@meyering.net>
64623
64624         * lib/fts.c, lib/fts_.h: New files, from coreutils.
64625
64626 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         Sync from coreutils.
64629         * m4/unlinkdir.m4: New file.
64630
64631 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64632
64633         Sync from coreutils.
64634         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
64635         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
64636         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
64637         White space changes only.
64638         * lib/makepath.c (make_path): Port to hosts where leading "//" is
64639         special.
64640         * lib/yesno.c: Include getline.h, not ctype.h.
64641         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64642         Use getline to remove arbitrary restriction on response length.
64643
64644 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         * config/srclist-update: Spell out "Street" in FSF postal
64647         mail address; this is the style the FSF seems to prefer.
64648
64649         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64650         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64651         this updates FSF postal mail address.
64652
64653         Sync from coreutils.
64654         * modules/unlinkdir: New file.
64655         * modules/yesno (Depends-on): Add getline.
64656         * MODULES.html.sh (File system functions): Add unlinkdir.
64657
64658 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64659
64660         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64661         lib/strsep.h:
64662         Change the initial comment to refer to GPL, not LGPL.
64663         gnulib-tool will change it to LGPL as needed.
64664
64665         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64666         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64667         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
64668         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
64669         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
64670         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
64671         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
64672         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
64673         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
64674         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
64675         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
64676         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
64677         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
64678         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
64679         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
64680         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
64681         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
64682         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
64683         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
64684         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
64685         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
64686         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
64687         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
64688         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
64689         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
64690         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
64691         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
64692         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
64693         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
64694         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
64695         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
64696         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
64697         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
64698         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
64699         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
64700         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
64701         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
64702         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
64703         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
64704         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
64705         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
64706         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
64707         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
64708         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
64709         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
64710         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
64711         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
64712         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
64713         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
64714         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
64715         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64716         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
64717         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
64718         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
64719         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
64720         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
64721         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
64722         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
64723         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
64724         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
64725         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
64726         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
64727         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
64728         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
64729         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
64730         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
64731         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
64732         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
64733         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
64734         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
64735         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
64736         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
64737         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
64738         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
64739         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
64740         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
64741         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
64742         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
64743         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
64744         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
64745         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
64746         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
64747         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
64748         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
64749         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
64750         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
64751         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
64752         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
64753         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
64754         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
64755         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
64756         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
64757         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
64758         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
64759         lib/yesno.c, lib/yesno.h:
64760         Update FSF postal mail address.
64761
64762 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
64765         tests/test-memmem.c, tests/test-stpncpy.c:
64766         Update FSF postal mail address.
64767
64768 2005-05-13  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
64771         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
64772         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
64773         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
64774         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
64775         Add support for 64-bit integers in the MSVC compiler.
64776
64777 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64778
64779         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64780
64781 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64782
64783         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64784
64785 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64786
64787         * doc/getdate.texi (General date syntax): Don't say that date
64788         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64789         Problem reported by Nic Ferrier.
64790
64791 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64792
64793         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64794         specified in ai_socktype. Fix invalid ai_protocol
64795         check. ai_protocol is usually set to 0 or depending on
64796         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64797         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64798         ai_socktype / ai_protocol in the returned addrinfo structure.
64799
64800 2005-05-10  Simon Josefsson  <jas@extundo.com>
64801
64802         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64803         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64804
64805 2005-05-10  Karl Berry  <karl@gnu.org>
64806
64807         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64808         (from http://www.gnu.org/licenses).
64809         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64810         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64811         fdl.texi suffices.
64812
64813 2005-05-10  Karl Berry  <karl@gnu.org>
64814
64815         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
64816         (COPYING.DOC): remove.
64817
64818         * config/srclist-update: new FSF address.
64819
64820 2005-05-10  Derek Price  <derek@ximbiot.com>
64821
64822         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
64823         possible.
64824
64825 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64826             Bruno Haible  <bruno@clisp.org>
64827
64828         * modules/inet_ntop: New file.
64829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64830         inet_ntop.
64831
64832 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64833             Bruno Haible  <bruno@clisp.org>
64834
64835         * m4/inet_ntop.m4: New file.
64836
64837 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64838             Bruno Haible  <bruno@clisp.org>
64839
64840         * lib/inet_ntop.h: New file.
64841         * lib/inet_ntop.c: New file, from glibc with modifications.
64842
64843 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
64844
64845         * modules/time_r (License): Change to LGPL.
64846         * modules/extensions (License): Change to LGPL.  Actually,
64847         the license is more permissive than that, but currently gnulib-tool
64848         doesn't know how to handle more-permissive licenses.
64849
64850         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
64851         Problem reported by Dave Love.
64852
64853 2005-05-08  Jim Meyering  <jim@meyering.net>
64854
64855         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
64856         blank.
64857
64858 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * modules/argmatch (Depends-on): Add stdbool.
64861         * modules/backupfile (Depends-on): Likewise.
64862         * modules/chdir-long (Depends-on): Likewise.
64863         * modules/closeout (Depends-on): Likewise.
64864         * modules/cycle-check (Depends-on): Likewise.
64865         * modules/dirname (Depends-on): Likewise.
64866         * modules/fnmatch (Depends-on): Likewise.
64867         * modules/fsusage (Depends-on): Likewise.
64868         * modules/fwriteerror (Depends-on): Likewise.
64869         * modules/getcwd (Depends-on): Likewise.
64870         * modules/getloadavg (Depends-on): Likewise.
64871         * modules/hard-locale (Depends-on): Likewise.
64872         * modules/makepath (Depends-on): Likewise.
64873         * modules/mountlist (Depends-on): Likewise.
64874         * modules/nanosleep (Depends-on): Likewise.
64875         * modules/posixtm (Depends-on): Likewise.
64876         * modules/quotearg (Depends-on): Likewise.
64877         * modules/readtokens (Depends-on): Likewise.
64878         * modules/readtokens0 (Depends-on): Likewise.
64879         * modules/readutmp (Depends-on): Likewise.
64880         * modules/save-cwd (Depends-on): Likewise.
64881         * modules/strftime (Depends-on): Likewise.
64882         * modules/userspec (Depends-on): Likewise.
64883         * modules/utimecmp (Depends-on): Likewise.
64884         * modules/xgetcwd (Depends-on): Likewise.
64885         * modules/xnanosleep (Depends-on): Likewise.
64886         * modules/xstrtod (Depends-on): Likewise.
64887         * modules/yesno (Depends-on): Likewise.
64888
64889 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64890
64891         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
64892         needless checks.
64893
64894 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64895
64896         Merge from coreutils.  Among other things,
64897         add bulletproofing for cases where stdin, stdout, or stderr are closed.
64898         * lib/fd-safer.c: New file.
64899         * lib/fcntl-safer.h, open-safer.c: Remove.
64900         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
64901         * lib/dup-safer.c: Include unistd-safer.h first.
64902         Don't include errno.h.
64903         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
64904         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
64905         * lib/file-type.c: Rely on file-type.h change.
64906         * lib/getloadavg.c: Include unistd-safer.h.
64907         (getloadavg): Use safer open.
64908         * lib/getusershell.c: Include "stdio-safer.h".
64909         (getusershell): Use safer fopen.
64910         * lib/long-options.c (long_options): Use NULL rather than 0.
64911         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
64912         'free'.
64913         * lib/modechange.c: Likewise.
64914         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
64915         (MODE_DONE): New constant.
64916         (struct mode_change): Remove 'next' member.
64917         (make_node_op_equals): New function; like the old one of the
64918         same name, except it allocates an array.
64919         (mode_compile, mode_create_from_ref): Use it.
64920         (mode_compile): Allocate result as an array, not a linked list.
64921         Parse octal string ourself, so that we catch mistakes like "+0".
64922         (mode_adjust): Arg is an array, not a linked list.
64923         * lib/modechange.c: Include stat-macros.h, xalloc.h.
64924         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
64925         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
64926         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
64927         Remove.  This is now stat-macros.h's job.
64928         (talloc): Remove.  All callers replaced by xalloc, so that
64929         our invokers don't have to worry about reporting memory failures.
64930         (make_node_op_equals): Remove.
64931         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64932         New constants.
64933         (struct mode_change): Moved here from modechange.h.
64934         (mode_append_entry): Remove.
64935         (mode_compile): Remove MASKED_OPS arg, since it encouraged
64936         apps to have incorrect behavior.  Use simpler algorithm for head
64937         and tail.  Don't futz with umask; that's now the job of mode_adjust.
64938         Detect more invalid usages rather than having somewhat-random behavior.
64939         Don't insert an "a=" action, as that leads to incorrect behavior.
64940         (mode_compile, mode_create_from_ref): Return NULL on error instead
64941         of an enum, since now there's only one way to have an error.  All
64942         callers changed.
64943         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
64944         at the correct time.  Simplify calculation of "+u" and its ilk.
64945         Don't mishandle "+X".
64946         (mode_free): Remove "register" and localize decls.
64947         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64948         (struct mode_change): Move to modechange.c; callers don't
64949         need to see this stuff.
64950         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
64951         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
64952         (mode_change, mode_adjust): Reflect the new signatures noted above.
64953         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
64954         that might redefine system include files.
64955         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
64956         (my_usleep): Use NULL rather than (void *) 0.
64957         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
64958         Use siginterrupt to specify that system calls should be interrupted.
64959         (rpl_nanosleep): Move initialization of suspended closer to call of
64960         my_usleep.
64961         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
64962         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
64963         (desirable_utmp_entry): New function.
64964         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
64965         using x2nrealloc, to simplify logic.
64966         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
64967         size calculation.  Do not assume utmp file is a regular file.
64968         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
64969         (READ_UTMP_CHECK_PIDS): New constant.
64970         * lib/save-cwd.c: Include unistd-safer.h.
64971         (save_cwd): Use fd_safer.
64972         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
64973         [!_LIBC] Include "stat-macros.h" instead.
64974         * lib/unistd-safer.h (fd_safer): New decl.
64975
64976 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64977
64978         * modules/getloadavg (Depends-on): Add unistd-safer.
64979         * modules/getusershell (Depends-on): Add stdio-safer.
64980         * modules/lstat (Depends-on): Remove xalloc.
64981         * modules/mkstemp (Depends-on): Add stat-macros.
64982         * modules/modechange (Depends-on): Remove xstrtol.
64983         Add stat-macros, xalloc.
64984         * modules/save-cwd (Depends-on): Add unistd-safer.
64985         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
64986         * modules/unistd-safer (Files): Add lib/fd-safer.c
64987         (Makefile.am): Remove lib_SOURCES.
64988
64989         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
64990         Remove fcntl-safer; unistd-safer supersedes it.
64991
64992 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64993
64994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
64995         AC_HEADER_STAT.
64996         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
64997         (gl_PREREQ_CHOWN): Remove.
64998         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
64999         it.  Don't require AC_HEADER_STAT.
65000         (gl_PREREQ_LSTAT): Remove.
65001         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65002         Don't require AC_HEADER_STAT.
65003         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65004         (gl_PREREQ_RMDIR): Remove.
65005         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65006         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65007         the stat-macros module a prerequisite.
65008         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65009         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65010         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65011         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65012         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65013         variable names.
65014         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65015         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65016         variable prefixes.
65017         * m4/fcntl-safer.m4: Remove.
65018         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65019         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65020         Invoke gl_PREREQ_FD_SAFER.
65021         (gl_PREREQ_FD_SAFER): New macro.
65022         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65023         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65024         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65025         Remove duplicate call to AC_LIBOBJ(readutmp).
65026         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65027
65028         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65029         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65030
65031 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * MODULES.html.sh (Misc): Add byteswap.
65034
65035 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65036
65037         * modules/getcwd (Depends-on): Add extensions.
65038         * modules/openat (Depends-on): Likewise.
65039
65040 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65041
65042         * modules/byteswap: New file.
65043
65044 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65045
65046         * m4/byteswap.m4: New file.
65047
65048 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65049
65050         * lib/byteswap_.h: New file.
65051
65052 2005-04-25  Karl Berry  <karl@gnu.org>
65053
65054         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65055
65056 2005-04-25  Albert Chin  <china@thewrittenword.com>
65057
65058         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65059         Toolkit C bug.
65060
65061 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65062
65063         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65064         (func_ln_if_changed) Remove forcibly for no error message
65065         in case file does not exist.
65066
65067 2005-04-19  Simon Josefsson  <jas@extundo.com>
65068
65069         * gnulib-tool (Options): Make --symlink mean --symbolic.
65070
65071 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65072
65073         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65074
65075 2005-04-16  Simon Josefsson  <jas@extundo.com>
65076
65077         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65078
65079 2005-04-15  Simon Josefsson  <jas@extundo.com>
65080
65081         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65082
65083 2005-04-15  Simon Josefsson  <jas@extundo.com>
65084
65085         * gnulib-tool: Rename --symlink to --symbolic.
65086
65087 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65088
65089         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65090         symbolic links to files instead of copying/moving.  Add --aux-dir,
65091         specifying directory relative --dir where auxiliary build tools
65092         are placed.
65093
65094 2005-04-14  Bruno Haible  <bruno@clisp.org>
65095
65096         * modules/allocsa (License): Change to LGPL.
65097         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65098
65099 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65100
65101         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65102         that "UTC +1 second" continues to work.  Problem reported
65103         by Dmitry V. Levin.
65104         (relunit_snumber): New rule.
65105         (relunit): Use it.
65106
65107 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * lib/getdate.y (universal_time_zone_table): New constant.
65110         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65111         universal_time_zone_table.
65112         (lookup_zone): Prefer universal_time_zone_table to
65113         local_time_zone_table, so that "GMT" time stamps are allowed in
65114         London during the summer.  Problem reported by Ian Abbott.
65115
65116 2005-04-12  Jim Meyering  <jim@meyering.net>
65117
65118         * lib/human.c (humblock): Set *options even when returning due to
65119         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65120         warning from gcc-4.
65121
65122 2005-04-09  Jim Meyering  <jim@meyering.net>
65123
65124         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65125         -Wuninitialized: initialize tm0.tm_year.
65126
65127 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65128
65129         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65130         count, since there's no maximum.  All uses changed.
65131         Add member dsts_seen.
65132         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65133         not being INT_MAX.
65134         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65135         Use pc_rels_seen to decide whther a date is absolute.
65136
65137         * lib/getdate.y (number): Don't overwrite year.
65138         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65139         check.
65140
65141 2005-04-02  Simon Josefsson  <jas@extundo.com>
65142
65143         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65144         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65145
65146 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65147
65148         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65149         where no absolute path name can be longer than PATH_MAX.
65150
65151 2005-03-27  Jim Meyering  <jim@meyering.net>
65152
65153         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65154
65155 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65158         "one's complement" -> "ones' complement" in comment, as per Knuth.
65159         "value of type" -> "type or expression" in comment.
65160         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65161
65162 2005-03-26  Jim Meyering  <jim@meyering.net>
65163
65164         Comment nits.
65165         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65166         Correct typos: s/or/of/.
65167
65168 2005-03-26  Jim Meyering  <jim@meyering.net>
65169
65170         * modules/check-include-files: Move to ../ and rename to...
65171         * check-module: ...this.
65172
65173 2005-03-25  Jim Meyering  <jim@meyering.net>
65174
65175         * modules/xvasprintf (Files): Add xalloc.h.
65176
65177 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65178
65179         * modules/gettext (Files): config/config.rpath ->
65180         build-aux/config.rpath
65181         * modules/iconv (Files): Likewise.
65182         Problem reported by Oskar Liljeblad.
65183
65184 2005-03-23  Jim Meyering  <jim@meyering.net>
65185
65186         * modules/check-include-files: New script to check for
65187         missing dependencies, multiple includes, etc.
65188
65189         * modules/c-strtold (Depends-on): Add xalloc.
65190         * modules/c-strtod (Depends-on): Add xalloc.
65191         * modules/hash (Depends-on): Add xalloc.
65192         (Files): Remove lib/xalloc.h.
65193
65194         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
65195         * modules/userspec (Files): Add lib/inttostr.h.
65196
65197 2005-03-23  Jim Meyering  <jim@meyering.net>
65198
65199         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
65200
65201 2005-03-22  Jim Meyering  <jim@meyering.net>
65202
65203         * modules/stat-macros: New module.
65204         * modules/canonicalize, modules/euidaccess, modules/file-type,
65205         * modules/filemode, modules/lchown, modules/makepath,
65206         * modules/rmdir, modules/stat: Depend on new stat-macros module
65207         rather than listing lib/stat-macros.h manually.
65208         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
65209
65210 2005-03-22  Jim Meyering  <jim@meyering.net>
65211
65212         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
65213
65214 2005-03-22  Bruno Haible  <bruno@clisp.org>
65215
65216         * config/srclist.txt: Replace target directory 'config' with
65217         'build-aux'.
65218         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
65219         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
65220         ../build-aux/.
65221
65222 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         * modules/chdir-long (Depends-on): Add mempcpy.
65225
65226         * modules/acl, modules/backupfile, modules/c-strtod,
65227         modules/c-strtold, modules/canon-host, modules/canonicalize,
65228         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
65229         modules/exclude, modules/exitfail, modules/file-type,
65230         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
65231         modules/getdate, modules/getline, modules/getpagesize,
65232         modules/getpass, modules/getugroups, modules/group-member,
65233         modules/hard-locale, modules/hash, modules/human, modules/idcache,
65234         modules/inttostr, modules/long-options, modules/makepath,
65235         modules/md5, modules/memcasecmp, modules/memcoll,
65236         modules/modechange, modules/mountlist, modules/path-concat,
65237         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
65238         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
65239         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
65240         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
65241         modules/strftime, modules/strndup, modules/strverscmp,
65242         modules/timespec, modules/unlocked-io, modules/userspec,
65243         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
65244         modules/yesno:
65245         Remove lib_SOURCES line from Makefile.am section, as this is now
65246         done automatically by the corresponding Autoconf macro.
65247
65248 2005-03-21  Jim Meyering  <jim@meyering.net>
65249
65250         Changes imported from coreutils.
65251
65252         * lib/cycle-check.c: Don't include xalloc.h.
65253
65254         * lib/path-concat.c: Don't include assert.h.
65255         (path_concat): Remove assertion that would have triggered
65256         for ABASE starting with more than one slash.
65257         Reported by Andreas Schwab.
65258
65259         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
65260         properly when ABASE is an absolute file name.
65261         Correct the description of this function.
65262         Include <assert.h>.
65263         Add an assertion and a test driver.
65264         This fixes a bug introduced on 2004-07-02.
65265         Andreas Schwab reported the resulting failure of cp --parents:
65266         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
65267
65268 2005-03-21  Jim Meyering  <jim@meyering.net>
65269
65270         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
65271         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
65272
65273 2005-03-21  Jim Meyering  <jim@meyering.net>
65274         and  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
65277         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
65278         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
65279         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
65280         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
65281         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
65282         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
65283         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
65284         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
65285         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
65286         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
65287         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
65288         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
65289         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
65290         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
65291         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
65292         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
65293         for these modules.
65294
65295 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
65298         (which shouldn't happen), generate nothing instead of returning 0
65299         immediately, so that nstrftime (NULL, ...) doesn't return 0.
65300
65301 2005-03-16  Bruno Haible  <bruno@clisp.org>
65302
65303         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
65304         HAVE_LONGLONG_64BIT.
65305
65306 2005-03-16  Bruno Haible  <bruno@clisp.org>
65307
65308         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
65309         HAVE_LONGLONG_64BIT.
65310
65311 2005-03-16  Bruno Haible  <bruno@clisp.org>
65312
65313         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
65314         HAVE_LONGLONG_64BIT.
65315
65316 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * lib/strftime.c (my_strftime): Prepend space to format so that we can
65319         reliably distinguish strftime failure from empty output on POSIX
65320         hosts.
65321
65322 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65323
65324         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
65325         (iconv_string): Don't guess a size-zero buffer, as that might cause
65326         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
65327         result would be 'too large', where 'too large' is (heuristically)
65328         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
65329         overflow concerns.  This will prevent some unwanted malloc failures
65330         when the inputs are very large.
65331
65332 2005-03-15  Karl Berry  <karl@gnu.org>
65333
65334         * config/srclist.txt (config.rpath): from gettext.
65335         * config/config.rpath: update.
65336
65337 2005-03-15  Bruno Haible  <bruno@clisp.org>
65338
65339         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
65340         to 'negate'.
65341
65342         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
65343         variable.
65344
65345         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
65346         results.
65347
65348 2005-03-14  Simon Josefsson  <jas@extundo.com>
65349
65350         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
65351         <fx@gnu.org>.
65352
65353 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
65356         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
65357         intprops.h.
65358         * lib/strtol.c: Likewise.
65359
65360 2005-03-14  Jim Meyering  <jim@meyering.net>
65361
65362         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
65363         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
65364         to be nonzero so that we (and caller) can detect the difference
65365         between a valid zero-length expansion and an error return, even
65366         when the underlying strftime fails before writing anything into
65367         that location.
65368
65369 2005-03-14  Bruno Haible  <bruno@clisp.org>
65370
65371         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
65372         Update from GNU gettext 0.14.3.
65373
65374 2005-03-10  Jim Meyering  <jim@meyering.net>
65375
65376         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
65377
65378 2005-03-10  Jim Meyering  <jim@meyering.net>
65379
65380         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
65381         so that this module works on systems without fchdir.
65382
65383 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         Factor int-properties macros into a single file, except for
65386         glibc-related files.
65387         * lib/intprops.h: New file.
65388         * lib/getloadavg.c: Include it instead of limits.h.
65389         (INT_STRLEN_BOUND): Remove.
65390         * lib/human.c: Include intprops.h.
65391         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
65392         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
65393         302/1000.
65394         * lib/inttostr.h: Include intprops.h instead of limits.h.
65395         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
65396         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
65397         for consistency with intprops.h.
65398         (time_t_is_integer, twos_complement_arithmetic): Use them.
65399         * lib/sig2str.h: Include <signal.h>, intprops.h.
65400         (INT_STRLEN_BOUND): Remove.
65401         * lib/strftime.c (TYPE_SIGNED): Remove.
65402         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
65403         * lib/strtol.c: Adjust comments to match intprops.h.
65404         * lib/userspec.c: Include intprops.h.
65405         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
65406         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
65407         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
65408         instead of rolling our own expressions.
65409         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
65410
65411         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
65412         instead of int.
65413         (my_strftime): Do not mishandle years close to INT_MAX, by doing
65414         the right thing even if adding 1900 would overflow.  Similarly
65415         for tm_mon + 1 and tm_yday + 1.
65416         Make %Y always equivalent to %C%y, and similarly for %G and %g.
65417         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
65418         (DO_SIGNED_NUMBER): New macro.
65419         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
65420
65421 2005-03-07  Bruno Haible  <bruno@clisp.org>
65422
65423         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
65424
65425 2005-03-07  Bruno Haible  <bruno@clisp.org>
65426
65427         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
65428
65429 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65430
65431         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65432         (func_import): Only replace files via --import when they have actually
65433         changed.
65434
65435 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65436
65437         * m4/mmap-anon.m4: New file.
65438         * m4/pagealign_alloc.m4: New file.
65439
65440 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65441             Bruno Haible  <bruno@clisp.org>
65442
65443         * modules/pagealign_alloc: New file.
65444         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
65445
65446 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65447             Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/pagealign_alloc.h: New file.
65450         * lib/pagealign_alloc.c: New file.
65451
65452 2005-03-03  Bruno Haible  <bruno@clisp.org>
65453
65454         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
65455         Use an all-permissive copyright notice, recommended by RMS.
65456
65457 2005-03-02  Bruno Haible  <bruno@clisp.org>
65458
65459         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
65460         of AIX, the replacement has to be done only after <string.h> is
65461         included, therefore not in config.h. stpncpy.h does the replacement,
65462         and stpncpy.c uses it.
65463
65464 2005-03-02  Bruno Haible  <bruno@clisp.org>
65465
65466         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
65467         stpncpy.c uses it.
65468
65469 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
65472         The workaround isn't strictly needed for POSIX conformance, and
65473         it's too much of a pain to configure and maintain.  We'll ask
65474         people to fix their kernels instead.
65475         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
65476         (NANOSLEEP_BUG_WORKAROUND): Remove.
65477         (xnanosleep): Remove the workaround.
65478
65479 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65480
65481         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
65482         Reported by Derek Price.
65483         (Include): Add "timespec.h".
65484
65485         * modules/xnanosleep (Depends-on): Remove gethrxtime.
65486
65487 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
65490         to detect nanosleep bug.
65491
65492 2005-03-01  Bruno Haible  <bruno@clisp.org>
65493
65494         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
65495
65496 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * modules/gethrxtime: New file.
65499         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
65500         (Depends-on): Add gethrxtime.
65501         (configure.ac): Add gl_XNANOSLEEP.
65502         (Makefile.am): Remove lib_SOURCES line.
65503
65504 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
65507         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
65508
65509 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
65512         * lib/timespec.h (gettime): Return void, since it always
65513         succeeds now.  All uses changed.
65514         * lib/gettime.c (gettime) Likewise.
65515         [HAVE_NANOTIME]: Prefer nanotime.
65516         Assume gettimeofday succeeds, as POSIX requires.
65517         Assime time () succeeds, since other code already does.
65518         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
65519         (timespec_subtract): Remove.
65520         (NANOSLEEP_BUG_WORKAROUND): New constant.
65521         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
65522         things considerably.  Use it only on GNU/Linux hosts, since the
65523         workaround shouldn't be needed elsewhere.
65524
65525 2005-02-24  Bruno Haible  <bruno@clisp.org>
65526
65527         * modules/gettext (Files): Add m4/glibc2.m4.
65528
65529 2005-02-24  Bruno Haible  <bruno@clisp.org>
65530
65531         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
65532         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
65533         * m4/progtest.m4:
65534         Update from GNU gettext 0.14.2.
65535         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
65536
65537 2005-02-24  Bruno Haible  <bruno@clisp.org>
65538
65539         * lib/localcharset.c: Update from GNU gettext 0.14.2.
65540         * lib/config.charset: Update from GNU gettext 0.14.2.
65541
65542 2005-02-24  Bruno Haible  <bruno@clisp.org>
65543
65544         * lib/gettext.h: Update from GNU gettext 0.14.2.
65545
65546 2005-02-23  Simon Josefsson  <jas@extundo.com>
65547
65548         * m4/iconvme.m4: New file.
65549
65550 2005-02-23  Jim Meyering  <jim@meyering.net>
65551
65552         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
65553         change.
65554         Thanks to Bruno Haible for catching it.
65555
65556 2005-02-22  Simon Josefsson  <jas@extundo.com>
65557
65558         * modules/iconvme: New file.
65559
65560         * MODULES.html.sh: Add iconvme.
65561
65562 2005-02-22  Simon Josefsson  <jas@extundo.com>
65563
65564         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
65565
65566 2005-02-22  Simon Josefsson  <jas@extundo.com>
65567
65568         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
65569
65570 2005-02-22  Jim Meyering  <jim@meyering.net>
65571
65572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
65573         s/ifndef/ifdef/.
65574
65575 2005-02-20  Neil Conway  <neilc@samurai.com>
65576
65577         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
65578         returned by OSX/Darwin if the specified buffer is not large
65579         enough for the hostname.
65580
65581 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65582
65583         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
65584         pass it to _help, otherwise the latter coredumps trying to
65585         dereference state.root_argp.
65586
65587 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         * modules/chdir-long (Depends-on): Add memrchr.
65590         * modules/memrchr (Files): Add lib/memrchr.h.
65591         (Include): "memrchr.h".
65592
65593 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
65596
65597 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         * lib/memrchr.h: New file.
65600         * lib/chdir-long.c: Include it.
65601         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
65602         Don't bother including stddef.h.
65603
65604 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65605
65606         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
65607         inclusion.
65608         Include <sys/types.h>, for dev_t.
65609         (ME_DUMMY, ME_REMOTE): Move from here....
65610         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
65611         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
65612         Dmitry V. Levin.
65613         Include mountlist.h first, to test the interface.
65614
65615 2005-01-29  Bruno Haible  <bruno@clisp.org>
65616
65617         * lib/progname.c (program_name): Initialize.
65618         Needed when linking statically on MacOS X.
65619
65620 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65621
65622         Sync from coreutils.
65623         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
65624         (Depends-on): Add c-strtod.
65625         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
65626
65627 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         Sync from coreutils.
65630         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
65631
65632         Remove files that are specific to coreutils.
65633         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
65634
65635 2005-01-28  Bruno Haible  <bruno@clisp.org>
65636
65637         * modules/javacomp: New file.
65638         * MODULES.html.sh (Java): Add javacomp.
65639
65640 2005-01-28  Bruno Haible  <bruno@clisp.org>
65641
65642         * m4/javacomp.m4: New file, from GNU gettext.
65643
65644 2005-01-28  Bruno Haible  <bruno@clisp.org>
65645
65646         * lib/javacomp.sh.in: New file, from GNU gettext.
65647         * lib/javacomp.h: New file, from GNU gettext.
65648         * lib/javacomp.c: New file, from GNU gettext.
65649
65650 2005-01-26  Simon Josefsson  <jas@extundo.com>
65651
65652         * lib/gai_strerror.c: Use GPL in header.
65653
65654 2005-01-26  Bruno Haible  <bruno@clisp.org>
65655
65656         * modules/javaexec: New file.
65657         * MODULES.html.sh (Java): Add javaexec.
65658
65659 2005-01-26  Bruno Haible  <bruno@clisp.org>
65660
65661         * m4/javaexec.m4: New file, from GNU gettext.
65662
65663 2005-01-26  Bruno Haible  <bruno@clisp.org>
65664
65665         * lib/javaexec.sh.in: New file, from GNU gettext.
65666         * lib/javaexec.h: New file, from GNU gettext.
65667         * lib/javaexec.c: New file, from GNU gettext.
65668
65669 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65670
65671         * modules/lchown (Depends-on): Remove lchown.h
65672
65673 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65674
65675         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
65676         must be defined if the header file was not found, in order
65677         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
65678
65679 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65680
65681         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
65682         initializers for struct pentry_state.
65683         (__argp_error): Check return value of __asprintf
65684         (__argp_failure): Translate error message
65685
65686         * lib/argp-parse.c: Removed braces around the expansion of N_()
65687
65688 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65689
65690         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
65691         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
65692         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
65693         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
65694         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
65695         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
65696         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
65697         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
65698         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
65699         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
65700         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
65701         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
65702         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
65703         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
65704         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
65705         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
65706         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
65707         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
65708         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
65709         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
65710         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
65711         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
65712         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
65713         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
65714         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
65715         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
65716         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
65717         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
65718         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
65719         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
65720         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
65721         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
65722         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
65723         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
65724         xstrtol.m4, xstrtoumax.m4, yesno.m4:
65725         Use an all-permissive copyright notice, recommended by RMS.
65726
65727 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         * modules/chdir-long (Depends-on): Remove mempcpy.
65730
65731 2005-01-21  Jim Meyering  <jim@meyering.net>
65732
65733         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
65734         same value as for Solaris 9.
65735
65736         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
65737         component length.  This included changing the parameter to be
65738         of type `char *' rather than `char const *'.
65739         * lib/chdir-long.h (chdir_long): Update prototype.
65740
65741         * lib/openat.c (fdopendir, fstatat): New functions.
65742         * lib/openat.h: Include headers required for use of DIR and struct
65743         stat.
65744         [AT_SYMLINK_NOFOLLOW]: Define.
65745         (fdopendir, fstatat): Add prototypes.
65746
65747 2005-01-21  Bruno Haible  <bruno@clisp.org>
65748
65749         * modules/classpath: New file.
65750         * MODULES.html.sh (Java): Add classpath.
65751
65752 2005-01-21  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/classpath.h: New file, from GNU gettext.
65755         * lib/classpath.c: New file, from GNU gettext.
65756
65757 2005-01-20  Simon Josefsson  <jas@extundo.com>
65758
65759         * modules/version-etc-fsf: New file.
65760
65761 2005-01-20  Simon Josefsson  <jas@extundo.com>
65762
65763         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
65764         * lib/version-etc.c: Remove version_etc_copyright.
65765         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
65766         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
65767
65768 2005-01-20  Simon Josefsson  <jas@extundo.com>
65769
65770         * lib/base64.h (isbase64): Add.
65771
65772         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
65773         using a unsigned prototype, don't inline.
65774         (base64_decode): Use it.
65775
65776 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65779         it.
65780
65781 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         * lib/save-cwd.c (save_cwd): Remove code to support the case
65784         where fchdir is missing or flaky.
65785
65786 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65789
65790 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65793         AC_LIBSOURCES now does this.
65794         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65795         with new ullong_max module.
65796
65797 2005-01-19  Bruno Haible  <bruno@clisp.org>
65798
65799         * modules/sh-quote: New file.
65800         * MODULES.html.sh (Executing programs): Add sh-quote.
65801
65802 2005-01-19  Bruno Haible  <bruno@clisp.org>
65803
65804         * lib/sh-quote.h: New file, from GNU gettext.
65805         * lib/sh-quote.c: New file, from GNU gettext.
65806
65807 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         Merge from coreutils.
65810         * m4/ullong_max.m4: New file.
65811         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65812         (gl_MACROS): Assume localeconv exists.
65813
65814 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         Merge changes from coreutils, as described below in several
65817         changelogs dated today.
65818
65819         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
65820         (O_DIRECTORY): Remove; not needed here, since "." must be
65821         a directory.  All uses removed.
65822         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
65823         universal on Suns, and we also need to test for IRIX.
65824         Revamp code to use 'if' rather than '#if'.
65825         Avoid unnecessary comparison of cwd->desc to 0.
65826
65827         * lib/utimens.c (futimens): Robustify the previous patch, by checking
65828         for known valid error numbers rather than observed invalid ones.
65829
65830 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65831
65832         * modules/ullong_max: New file.
65833
65834         * modules/chdir-long, modules/openat: New files.
65835         * modules/save-cwd (Depends-on): Depend on chdir-long.
65836         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
65837
65838 2005-01-18  Jim Meyering  <jim@meyering.net>
65839
65840         Merge from coreutils.
65841         * m4/chdir-long.m4, m4/openat.m4: New files.
65842         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
65843         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
65844         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
65845         is sane and DOES follow symlinks.  Besides, testing 20 different
65846         systems found no broken chown implementations.
65847         Prompted by a change in rsync's copy of this macro.
65848         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
65849
65850         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
65851
65852         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
65853         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
65854         NULL-means-set-to-current-time semantics.
65855         Remove temporary file immediately, rather than waiting
65856         for configure's at-exit trap code to do it.
65857
65858 2005-01-18  Jim Meyering  <jim@meyering.net>
65859
65860         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65861
65862         * lib/utimens.c (futimens): Account for the fact that futimes
65863         can also fail with errno == ENOSYS or errno == ENOENT.
65864         Patch from Dmitry V. Levin.
65865
65866         Change the name of the robust chdir function from chdir to chdir_long.
65867         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
65868         (restore_cwd): Use chdir_long, not chdir.
65869         * lib/chdir-long.c: Renamed from chdir.c.
65870         * lib/chdir-long.h: Renamed from chdir.h.
65871         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
65872         Hurd.
65873
65874 2005-01-18  Bruno Haible  <bruno@clisp.org>
65875
65876         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
65877         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
65878         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
65879         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
65880         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
65881         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
65882         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
65883         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
65884         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
65885         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
65886         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
65887         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
65888         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
65889         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
65890         Use an all-permissive copyright notice, recommended by RMS.
65891
65892 2005-01-18  Bob Proulx  <bob@proulx.com>
65893
65894         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
65895         simplify offsetof() macro construct to avoid compile failure with
65896         native HP-UX 11.0 ANSI C compiler.
65897
65898 2005-01-17  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
65901         redundant because stpncpy.m4 takes care of it.
65902
65903 2005-01-17  Bruno Haible  <bruno@clisp.org>
65904
65905         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
65906
65907 2005-01-17  Bruno Haible  <bruno@clisp.org>
65908
65909         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
65910         used.
65911
65912 2005-01-17  Bruno Haible  <bruno@clisp.org>
65913
65914         * lib/fwriteerror.h (fwriteerror): Change specification to include
65915         fclose.
65916         * lib/fwriteerror.c: Include <stdbool.h>.
65917         (fwriteerror): At the end, close the file stream. Record whether
65918         stdout was already closed.
65919
65920 2005-01-17  Bruno Haible  <bruno@clisp.org>
65921
65922         * lib/execute.c (environ): Declare if needed.
65923         * lib/pipe.c (environ): Likewise.
65924         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
65925
65926 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65927
65928         * modules/argp: Depend on vsnprintf
65929
65930 2005-01-10  Jim Meyering  <jim@meyering.net>
65931
65932         * modules/closeout (Depends-on): Add atexit.
65933
65934 2005-01-06  Bruno Haible  <bruno@clisp.org>
65935
65936         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
65937
65938 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
65941         definitions to be after all include files, to avoid collisions.
65942         Problem reported by Bob Proulx.
65943
65944 2005-01-04  Jim Meyering  <jim@meyering.net>
65945
65946         Changes imported from coreutils.
65947         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
65948         as the mkstemp template, use a temporary directory and an
65949         8.3-friendly template to avoid trouble on systems like DJGPP.
65950         Reported by Juan M. Guerrero via Stepan Kasal.
65951         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
65952         close. Remove the temporary directory right away, rather than waiting
65953         for configure's at-exit trap code to do it.
65954         Suggestion from Stepan Kasal.
65955
65956 2005-01-01  Simon Josefsson  <jas@extundo.com>
65957
65958         * gnulib-tool: Print #include directives when --import'ing.
65959
65960 2004-12-28  Simon Josefsson  <jas@extundo.com>
65961
65962         * tests/test-base64.c: Include required header files.  Remove
65963         unused variables.
65964
65965 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65966
65967         * modules/error (Depends-on): Remove gettext.
65968
65969 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
65972         not needed.  This removes a dependency on the gettext module.
65973         [defined _LIBC]: Do not include <libintl.h>; not needed.
65974
65975 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
65978         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
65979
65980 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
65983         HAVE_DECL_STRTOLD.
65984
65985 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65986
65987         * modules/getdate (Depends-on): Remove alloca-opt.
65988
65989 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65990
65991         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
65992
65993 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65994
65995         * lib/argp-parse.c: Include <stddef.h>.
65996         (alignof, alignto): New macros.
65997         (parser_init): Don't assume that void * is aligned sufficiently
65998         for struct option.
65999
66000         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66001         need to extend the stack.
66002         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66003         large.
66004
66005 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66006
66007         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66008
66009 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66010
66011         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66012         (2004-10-24) change.  Apparently this was a false alarm.
66013
66014         * modules/getdate: Depend on alloca-opt, not alloca.
66015
66016 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66017
66018         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66019         Remove now-obsolete comment about AIX.
66020         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66021         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66022         (YYMAXDEPTH): New macro.
66023
66024 2004-12-18  Simon Josefsson  <jas@extundo.com>
66025
66026         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66027
66028 2004-12-18  Bruno Haible  <bruno@clisp.org>
66029
66030         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66031
66032 2004-12-18  Bruno Haible  <bruno@clisp.org>
66033
66034         * lib/fatal-signal.c (fatal_signals): Make non-const.
66035         (init_fatal_signals): New function.
66036         (uninstall_handlers, install_handlers): Ignore signals that were set to
66037         SIG_IGN.
66038         (at_fatal_signal): Call init_fatal_signals.
66039         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66040         SIG_IGN.
66041         Reported by Paul Eggert.
66042
66043 2004-12-18  Bruno Haible  <bruno@clisp.org>
66044
66045         * doc/alloca.texi: New file.
66046         * doc/alloca-opt.texi: New file.
66047
66048 2004-12-17  Jim Meyering  <jim@meyering.net>
66049
66050         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66051         Otherwise, install-sh could exit with improper exit status when
66052         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66053
66054 2004-12-16  Simon Josefsson  <jas@extundo.com>
66055
66056         * tests/test-base64.c: Add license.
66057
66058 2004-12-15  Stepan Kasal  <address@hidden>
66059
66060         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66061
66062 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66063
66064         * modules/getcwd (Files): Add m4/d-ino.m4.
66065         Suggested by Mark D. Baushke.
66066
66067 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * lib/getdate.y (textint): New member "negative".
66070         (time_zone_hhmm): New function.
66071         Expect 14 shift-reduce conflicts, not 13.
66072         (o_colon_minutes): New rule.
66073         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66074         (yylex): Set the "negative" member of signed numbers.
66075
66076 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * doc/getdate.texi (Time of day items, Time zone items):
66079         Describe new formats +00:00, UTC+00:00.
66080
66081 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66082
66083         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66084         spurious "-l"s.  Problem reported by Stepan Kasal.
66085
66086 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66087
66088         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66089         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66090
66091 2004-12-04  Simon Josefsson  <jas@extundo.com>
66092
66093         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66094         Vandoorselaere <yoann@prelude-ids.org>.
66095
66096 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66097
66098         Changes imported from coreutils.
66099         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66100         exist.
66101         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66102
66103 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66104
66105         Changes imported from coreutils.
66106         * lib/hard-locale.c: Assume <locale.h> exists.
66107         Include "strdup.h".
66108         (GLIBC_VERSION): New macro.
66109         (hard_locale): Assume setlocale exists.
66110         Rewrite to avoid #ifdef.
66111         Use strdup rather than malloc + strcpy.
66112         * lib/human.c: Assume <locale.h> exists.
66113         (human_readable): Assume localeconv exists.
66114
66115 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         * modules/hard-locale (Depends-on): Add strdup.
66118
66119 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66120
66121         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66122         convert T2, not T.  (Imported from libc.)
66123
66124 2004-11-30  Simon Josefsson  <jas@extundo.com>
66125
66126         * modules/restrict (License): Change to LGPL.
66127
66128 2004-11-30  Simon Josefsson  <jas@extundo.com>
66129
66130         * m4/restrict.m4: Add copyright and copying conditions.
66131
66132 2004-11-30  Simon Josefsson  <jas@extundo.com>
66133
66134         * m4/base64.m4: New file.
66135
66136 2004-11-30  Simon Josefsson  <jas@extundo.com>
66137
66138         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66139         base64.
66140
66141         * tests/test-base64.c: New file.
66142
66143         * modules/base64: New file.
66144
66145 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66146
66147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66148         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66149
66150         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66151
66152 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66153
66154         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66155         (__getcwd.c): Don't restore errno; glibc doesn't.
66156         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66157         first, falling back to our code only if its results look suspicious.
66158         Ensure that the resulting buffer is only as large as necessary.
66159
66160         * lib/readutmp.c: Include readutmp.h first.
66161         Include <errno.h>, since readutmp.h no longer does that.
66162         * lib/readutmp.h: Don't include <errno.h>,
66163         <sys/param.h>, <time.h>; not needed to establish interface.
66164         (errno): Remove decl.
66165         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66166         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66167         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66168
66169 2004-11-28  Simon Josefsson  <jas@extundo.com>
66170
66171         * lib/base64.h, base64.c: New file.
66172
66173 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66174
66175         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66176
66177 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66178
66179         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
66180         (Depends-on): Remove pathmax, same.  Add mempcpy.
66181         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
66182         (Makefile.am): Append getcwd.h to lib_SOURCES.
66183         (Include): Add getcwd.h.
66184         (Maintainer): Change from Jim Meyering to "all, glibc",
66185         since getdate now uses intended-for-glibc code.
66186         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
66187         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
66188
66189 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
66192         HP's ANSI C compiler.
66193         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
66194         Declaring int functions causes warnings on some modern systems and
66195         shouldn't be needed to compile on ancient ones.
66196         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
66197         defined.
66198
66199         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
66200         with the following changes.
66201         (__set_errno): Parenthesize properly.
66202         Include <stdbool.h>.
66203         (MIN, MAX, MATCHING_INO): New macros.
66204         (__getcwd): Define with prototype, not K&R form.
66205         Use heuristics to allocate default buffer on stack if possible.
66206         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
66207         behavior, and to avoid the PATH_MAX limit when computing
66208         ../../../../...
66209         Use MATCHING_INO to compare inode number to file.
66210         Check for arithmetic overflow in size calculations.
66211         Fix bug in reallocation of dot array that caused getcwd to fail
66212         on directories nested deeper than 75.
66213         Be more careful about saving errno on error.
66214         Do not use realloc; use only free+malloc, as this is a bit
66215         more flexible and avoids a needless copy operation.
66216         Do not inspect st_dev and st_ino for symbolic links; POSIX
66217         doesn't specify the latter.
66218         Check for closedir errors.
66219         Avoid needless casts.
66220         Use "#ifdef weak_alias" around weak_alias, to be like other
66221         glibc code.
66222         The following changes to getcwd.c have effect only when used in
66223         gnulib; they have no effect inside glibc proper.
66224         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
66225         as alloca isn't used.
66226         (alloca, __alloca): Likewise.
66227         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
66228         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66229         unconditionally, as gnulib assumes C89 or better.
66230         Do not include <sys/param.h>.
66231         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
66232         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
66233         better.
66234         (NULL) [!defined NULL]: Remove; we assume C89 or better.
66235         Include <dirent.h> in a way that is compatible with modern Autoconf.
66236         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
66237         New macros, if not already defined.
66238         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
66239         Use "_LIBC", not "defined _LIBC", for consistency.
66240         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
66241         a mempcpy module.
66242         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
66243         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
66244         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
66245         credit only to Jim Meyering and adjust the copyright dates.
66246         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
66247         <stdlib.h>, <unistd.h>, "pathmax.h".
66248         Instead, include "xgetcwd.h" (first) and "getcwd.h".
66249         (INITIAL_BUFFER_SIZE): Remove.
66250         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
66251
66252 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
66255         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
66256         Use the _ONCE methods, for efficiency.
66257         Check for fcntl.h.  In test program, include <errno.h>
66258         and <fcntl.h> if available.  Remove old K&R cruft from
66259         test program.  Check for common errors in GNU/Linux,
66260         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
66261         don't do AC_LIBOBJ, as that's getcwd.m4's job.
66262         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
66263         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
66264         name accordingly.
66265         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
66266         accommodate new getcwd.c.
66267         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
66268         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
66269         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
66270         that's all we need now.
66271
66272 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66273
66274         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
66275         argp-parse.c depends on getopt internals, that means we should
66276         always use our getopt, to be on the safe side.
66277         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
66278         order not to spoil the result of an eventual previous invocation
66279         of gl_GETOPT_SUBSTITUTE.
66280
66281 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66282
66283         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
66284         redefinition warnings. To avoid them, include the defines
66285         in `#if !defined __need_getopt ... #endif'. The only place
66286         where __getopt_argv_const is used is in definitions
66287         of getopt_long and getopt_long_only below, which are as well
66288         protected by `#ifndef __need_getopt'.
66289         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
66290         __need_getopt after including <stdio.h> and <unistd.h> These
66291         headers might have defined it.
66292
66293 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66294
66295         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
66296
66297 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
66300         (futimens): New function, which uses futimes if available.
66301         (futimens, utimens): Support timespec==NULL, with same semantics
66302         as utime and utimens.
66303         * lib/utimens.h (futimens): New decl.
66304
66305 2004-11-23  Jim Meyering  <jim@meyering.net>
66306
66307         * lib/getopt_.h: Remove trailing blanks.
66308
66309 2004-11-23  Jim Meyering  <jim@meyering.net>
66310
66311         * lib/__fpending.c: Add comment.
66312
66313 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         * modules/canonicalize (Depends-on): Add xreadlink.
66316         Problem reported by James Youngman.
66317
66318 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
66321         New macros.
66322         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
66323         optopt): Use them instead of invoking ## directly; otherwise, the
66324         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
66325
66326 2004-11-19  Bruno Haible  <bruno@clisp.org>
66327
66328         * lib/strtok_r.c: Move comments from here...
66329         * lib/strtok_r.h: ... to here.
66330
66331 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66332
66333         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
66334         implementations that mishandle size_t overflow.
66335
66336 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
66339         might fail.  Problem reported by Yoann Vandoorselaere.
66340         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
66341         implementations that mishandle size_t overflow.
66342
66343 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66344
66345         * modules/canon-host (Depends-on): Add strdup.
66346
66347 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
66350
66351 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66352
66353         * lib/canon-host.c: Include "strdup.h".
66354         (canon_host): Use getaddrinfo if available, so that IPv6 works.
66355         Use strdup instead of malloc/strcpy to duplicate strings.
66356
66357         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
66358         (human_space_before_unit): New constant.
66359         * lib/human.c (human_readable): Support it.
66360
66361         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
66362         (xgetcwd): Set errno correctly when failing.
66363         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
66364         the failure is actually due to a PATH_MAX problem.
66365
66366         Further getopt changes to make it more likely that glibc will
66367         buy the changes back.
66368         * lib/getopt.c (POSIXLY_CORRECT): New constant.
66369         (getopt): Use it, so to preserve glibc semantic
66370         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
66371         when compiling for libc.
66372         * lib/getopt_.h (__getopt_argv_const): Bring it back.
66373         (getopt_long, getopt_long_only): Use it.
66374
66375         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66376         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
66377         (getopt): Argv is now char * const *, as per standard.
66378         (_getopt_internal_r, _getopt_internal): Argv is now char **,
66379         not char *__getopt_argv_const *.
66380         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66381         _getopt_long_only_r): Likewise.
66382         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
66383         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66384         _getopt_long_r, _getopt_long_only_r): Likewise.
66385         * lib/getopt_.h (__getopt_argv_const): Remove.
66386         (getopt): Argv is now char * const *, as per standard.
66387
66388         * lib/getdate.y (tORDINAL): New token.
66389         (day, relunit): Allow it for relative times.
66390         (relative_time_table): Use tORDINAL for ordinals.
66391
66392 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
66395         Document that "second" isn't allowed as an ordinal number.
66396
66397 2004-11-16  Jim Meyering  <jim@meyering.net>
66398
66399         * modules/closeout (Depends-on): Add fpending.
66400
66401 2004-11-15  Jim Meyering  <jim@meyering.net>
66402
66403         * lib/closeout.c: Include "__fpending.h" once again.
66404         Include <stdbool.h>.
66405         (close_stdout): Don't fail just because stdout was closed initially,
66406         since some programs don't write to stdout in the normal course of
66407         operation (other than --version and --help), and we don't want this
66408         function to make e.g. `touch file >&-' fail.
66409         But do fail if it was closed and someone has tried to write to it.
66410         E.g., `printf foo >&-' must fail.
66411
66412 2004-11-13  Jim Meyering  <jim@meyering.net>
66413
66414         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
66415
66416 2004-11-12  Simon Josefsson  <jas@extundo.com>
66417
66418         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
66419         small doc fix is still pending.
66420
66421 2004-11-11  Simon Josefsson  <jas@extundo.com>
66422
66423         * modules/strtok_r: New file.
66424
66425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66426         strtok_r.
66427
66428 2004-11-11  Simon Josefsson  <jas@extundo.com>
66429
66430         * m4/strtok_r.m4: New file.
66431
66432         * m4/getopt.m4: Replace opterr.
66433
66434 2004-11-11  Simon Josefsson  <jas@extundo.com>
66435
66436         * lib/strtok_r.h, strtok_r.c: New file.
66437
66438 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66439
66440         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66441         of replacing opterr, getopt, etc.  This should handle the
66442         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
66443
66444 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66445
66446         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
66447         we can stop lying to compilers about the constness of argv when we
66448         are compiled outside glibc.
66449         (getopt, getopt_long, getopt_long_only): Use it.
66450         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66451         _getopt_internal, getopt): Likewise.
66452         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66453         _getopt_long_only_r): Likewise.
66454         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66455         _getopt_long_r, _getopt_long_only_r): Likewise.
66456
66457         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
66458         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
66459         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
66460         the other external symbols.
66461         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
66462         declaration, since the above renaming now works around collisions.
66463
66464 2004-11-11  Jim Meyering  <jim@meyering.net>
66465
66466         * lib/linebreak.c: Remove trailing blanks.
66467         * lib/alloca_.h: Likewise.
66468         * lib/acosl.c: Likewise.
66469         * lib/euidaccess.c: Likewise.
66470         * lib/allocsa.h: Likewise.
66471
66472 2004-11-10  Simon Josefsson  <jas@extundo.com>
66473
66474         * m4/getaddrinfo.m4: New file.
66475
66476 2004-11-10  Simon Josefsson  <jas@extundo.com>
66477
66478         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
66479
66480 2004-11-10  Simon Josefsson  <jas@extundo.com>
66481
66482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66483         getaddrinfo.
66484
66485         * modules/getaddrinfo: New file.
66486
66487 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66488
66489         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66490
66491 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66492
66493         * lib/mktime.c (SHR): New macro, which is a portable
66494         substitute for >> that should work even on Crays.
66495         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
66496         Problem reported by Mark D. Baushke in
66497         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
66498         * lib/getdate.y (SHR): Likewise.
66499         (tm_diff): Use it.
66500         * lib/strftime.c (SHR): Likewise.
66501         (tm_diff): Use it.
66502         * lib/quotearg.c (struct quoting_options): Use unsigned int for
66503         quote_these_too, so that right shifts are well defined.  All uses
66504         changed.
66505
66506 2004-11-10  Jim Meyering  <jim@meyering.net>
66507
66508         Ensure that no close failure goes unreported.
66509         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
66510         return early when it seems there's nothing to flush.
66511         Don't include __fpending.h.
66512
66513 2004-11-10  Jim Meyering  <jim@meyering.net>
66514
66515         * modules/closeout (Depends-on): Remove fpending.
66516
66517 2004-11-10  Jim Meyering  <jim@meyering.net>
66518
66519         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
66520
66521 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
66524         gl_FUNC_STRFTIME.
66525         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
66526         and AC_REQUIRE when possible, to avoid duplicate checks.
66527         Check for <wchar.h>.
66528
66529 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
66532
66533 2004-11-09  Bruno Haible  <bruno@clisp.org>
66534
66535         * m4/sockpfaf.m4: New file.
66536
66537 2004-11-05  Bruno Haible  <bruno@clisp.org>
66538
66539         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
66540         Reported by Mark D. Baushke <mdb@cvshome.org>.
66541
66542 2004-11-04  Bruno Haible  <bruno@clisp.org>
66543
66544         2004-09-11  Bruno Haible  <bruno@clisp.org>
66545                 * allocsa.valgrind: New file.
66546         2004-02-06  Bruno Haible  <bruno@clisp.org>
66547                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
66548                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
66549                 Reported by Christopher Seip <chris.seip@hp.com>.
66550
66551 2004-11-04  Bruno Haible  <bruno@clisp.org>
66552
66553         * modules/allocsa (Files): Add lib/allocsa.valgrind.
66554         (Makefile.am): Distribute it.
66555
66556 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66557
66558         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
66559         with errno == ERANGE if the buffer is too small.
66560         Problem reported by Mark D. Baushke.
66561
66562 2004-11-03  Albert Chin  <china@thewrittenword.com>
66563             Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
66566         equivalent, substitute $ac_type for equivalent type rather than
66567         blindly using uint32_t *always* which won't work if uint32_t is not
66568         available.  Define _UINT32_T to work around typedef of uint32_t if
66569         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
66570         2.5.1.
66571
66572 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * m4/jm-macros.m4: Sync from coreutils.
66575         (gl_MACROS): Check for mbrlen, for pathchk.
66576         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
66577
66578 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * lib/xreadlink.c (MAXSIZE): New macro.
66581         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
66582         size does not exceed MAXSIZE.  Avoid cast.
66583         As suggested by Mark D. Baushke in
66584         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
66585         if readlink fails with buffer size just under MAXSIZE, try again
66586         with MAXSIZE.
66587
66588 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
66591
66592 2004-11-02  Derek R. Price  <derek@ximbiot.com>
66593         and  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
66596         (get_date): Overparenthesize to avoid GCC warning.
66597
66598 2004-11-02  Bruno Haible  <bruno@clisp.org>
66599
66600         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
66601         returns void.
66602
66603 2004-11-02  Bruno Haible  <bruno@clisp.org>
66604
66605         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
66606         function returns void.
66607
66608 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66609
66610         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
66611         fflush_unlocked, flockfile, funlockfile, funlockfile,
66612         fputs_unlocked, putc_unlocked.
66613
66614 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66615
66616         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66617         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
66618         already declared.
66619
66620 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         * modules/getdate (Files): Add doc/getdate.texi.
66623         (Depends-on): Add setenv, xalloc.
66624
66625 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * lib/getdate.y: Add support for TZ="foo" within a date string.
66628         Fix some bugs near time_t boundaries.  Reject dates with
66629         out-of-range components, e.g., "Sept 31".
66630         Include <stdlib.h>, "setenv.h", "xalloc.h".
66631         (ISDIGIT_LOCALE): Remove; unused.
66632         Note that the TZ and time functions used here are not reentrant.
66633         (mktime_ok, get_tz): New functions.
66634         (TZBUFSIZE): New constant.
66635         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
66636         This requires that we sometimes generate our own TZ="XXX..." setting.
66637
66638 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66639
66640         * doc/getdate.texi: New file, from coreutils with modifications for
66641         the new TZ parsing.
66642
66643 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66644
66645         * lib/mktime.c (not_equal_tm): Remove redundant check.
66646
66647 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * modules/regex (lib_SOURCES): Add regex.c.
66650         Reported by James Youngman in
66651         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66652
66653 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * lib/getdate.y: Use Bison 1.875 features, and some minor
66656         code cleanups.  This change does not affect semantics.
66657         Don't include <stdlib.h>; no longer needed.
66658         Don't include unlocked-io.h; only the "#if TEST" code uses
66659         stdio, and performance isn't crucial there.
66660         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66661         Bison 1.875 features as described below.
66662         All uses of "PC." replaced by "pc->".
66663         (YYSTYPE): Add a forward declaration.
66664         (yylex, yyerror): Use full prototypes in forward decls.
66665         Use "%pure-parser" rather than obsolescent "%pure_parser".
66666         Use %parse-param and %lex-param instead of obsolescent
66667         YYPARSE_PARAM and YYLEX_PARAM.
66668         (meridian_table, month_and_day_table, time_units_table,
66669         relative_time_table, time_zone_table, military_table,
66670         lookup_zone, lookup_word, get_date):
66671         Use NULL instead of 0 where appropriate.
66672         (to_hour): Avoid abort (), to avoid a dependency on
66673         stdlib.h.
66674         (yyerror, yylex): Now accepts parser_control * arg.
66675         (main) [TEST]: Use '\0' rather than 0 for char.
66676
66677 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66678
66679         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
66680
66681 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66682
66683         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
66684         It's now the caller's responsibility to handle the case where
66685         !HAVE_GETPAGESIZE && !defined getpagesize.
66686
66687         * lib/mktime.c (leapyear): Arg is long int, not int.
66688
66689 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
66690
66691         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
66692
66693 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
66696         missing.  Problem reported by James Youngman.
66697
66698 2004-10-16  Simon Josefsson  <jas@extundo.com>
66699
66700         * gnulib-tool: Fix comments.  Fix parse problem.
66701         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
66702
66703 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
66706         implementation of getopt_long.  Problem reported by Alexander Taler in:
66707         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
66708
66709 2004-10-15  Bruno Haible  <bruno@clisp.org>
66710
66711         * gnulib-tool: Untabify. Initialize supplied_libname.
66712         (func_usage): More homogenous output.
66713         (func_modules_transitive_closure, func_modules_to_filelist,
66714         func_emit_lib_Makefile_am): New functions.
66715         (func_import): New function, extracted from big case statement. Use
66716         func_get_license, func_modules_transitive_closure,
66717         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
66718         opt_lgpl. Don't use test -a, as it's not portable.
66719         (func_create_testdir): Use func_modules_transitive_closure,
66720         func_modules_to_filelist, func_emit_lib_Makefile_am.
66721
66722 2004-10-15  Bruno Haible  <bruno@clisp.org>
66723
66724         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
66725
66726 2004-10-15  Bruno Haible  <bruno@clisp.org>
66727
66728         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
66729         the portions belonging to each module.
66730         Suggested by Derek Robert Price <derek@ximbiot.com>.
66731
66732 2004-10-12  Simon Josefsson  <jas@extundo.com>
66733
66734         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66735         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
66736         to real functions.
66737
66738 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66739
66740         * modules/vsnprintf: New file.
66741
66742 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66743
66744         * m4/vsnprintf.m4: New file.
66745
66746 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66747
66748         * lib/vsnprintf.h: New file.
66749         * lib/vsnprintf.c: New file.
66750
66751 2004-10-11  Bruno Haible  <bruno@clisp.org>
66752
66753         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
66754         vsnprintf.
66755
66756 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
66759
66760 2004-10-07  Bruno Haible  <bruno@clisp.org>
66761
66762         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
66763         fits into the provided buffer.
66764
66765 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66766
66767         * lib/diacrit.c, diacrit.h: Add GPL notice.
66768
66769         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
66770         notice.
66771         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
66772         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
66773         This avoids a potential constant-folding bug.
66774
66775 2004-10-05  Bruno Haible  <bruno@clisp.org>
66776
66777         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66778         for the declaration of strsep.
66779
66780 2004-10-05  Bruno Haible  <bruno@clisp.org>
66781
66782         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66783
66784 2004-10-04  Simon Josefsson  <jas@extundo.com>
66785
66786         * modules/memmem: New file.
66787         * tests/test-memmem.c: New file.
66788         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66789
66790 2004-10-04  Simon Josefsson  <jas@extundo.com>
66791
66792         * m4/memmem.m4: New file.
66793
66794 2004-10-04  Simon Josefsson  <jas@extundo.com>
66795
66796         * lib/memmem.h: New file.
66797         * lib/memmem.c: New file, taken from glibc.
66798
66799 2004-10-04  Simon Josefsson  <jas@extundo.com>
66800
66801         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66802         '#ifdef USE_UNLOCKED_IO'.
66803
66804 2004-10-04  Simon Josefsson  <jas@extundo.com>
66805
66806         * config/srclist.txt: Add memmem from glibc.
66807
66808 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66809
66810         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66811
66812         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66813         modules/exclude, modules/getdate, modules/getline,
66814         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66815         modules/getusershell, modules/linebuffer, modules/md5,
66816         modules/mountlist, modules/posixtm, modules/readtokens,
66817         modules/readutmp, modules/regex, modules/sha1,
66818         modules/version-etc, modules/yesno:
66819         Remove dependency on unlocked-io.
66820
66821 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
66824
66825         * m4/unlocked-io.m4: Add copyright notice.
66826         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
66827
66828 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
66831         * lib/xmalloc.c (xmemdup): Likewise.
66832         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
66833         XFREE): Remove these long-obsolescent macros.
66834         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
66835         * lib/xstrdup.c: Remove.
66836
66837         * lib/regex.c (re_comp): Cast gettext return value to char *,
66838         Problem reported by Martin Neitzel via Mark D. Baushke.
66839
66840 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66841
66842         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
66843         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
66844         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
66845         regex.c, sha1.c, version-etc.c, yesno.c:
66846         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
66847         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
66848         the includer's responsibility.
66849
66850         Sync from coreutils.
66851
66852         * lib/modechange.c (mode_compile): Don't decrement a pointer that
66853         points to the start of a string, as the C Standard says the
66854         resulting behavior is undefined.
66855
66856         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
66857         simple -> simple_backups, numbered_existing ->
66858         numbered_existing_backups, numbered -> numbered_backups
66859         to avoid shadowing problems.  All uses changed.
66860         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
66861         * lib/backupfile.c (check_extension, numbered_backup):
66862         Rename locals to avoid shadowing 'basename'.
66863         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
66864         once.
66865
66866         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
66867         * lib/.cvsignore: Add getopt.h.
66868
66869 2004-10-04  Bruno Haible  <bruno@clisp.org>
66870
66871         * modules/README: New file.
66872         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
66873         not a module.
66874
66875 2004-10-02  Jim Meyering  <jim@meyering.net>
66876
66877         * lib/dirfd.h, getpagesize.h: Add copyright notice.
66878
66879 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66880
66881         * modules/strsep: New file.
66882
66883 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66884
66885         * m4/strsep.m4: New file.
66886
66887 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66888
66889         * lib/strsep.h: New file.
66890         * lib/strsep.c: New file.
66891
66892 2004-10-01  Simon Josefsson  <jas@extundo.com>
66893
66894         * lib/snprintf.c (snprintf): Handle size==0.
66895
66896 2004-10-01  Simon Josefsson  <jas@extundo.com>
66897             Bruno Haible  <bruno@clisp.org>
66898
66899         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
66900         (snprintf): Declare 'args'.
66901
66902 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * lib/snprintf.c: Remove comments as to why each header is needed.
66905
66906 2004-10-01  Bruno Haible  <bruno@clisp.org>
66907
66908         * MODULES.html.sh: Add strsep.
66909
66910 2004-09-30  Simon Josefsson  <jas@extundo.com>
66911
66912         * modules/snprintf: New file.
66913
66914 2004-09-30  Simon Josefsson  <jas@extundo.com>
66915
66916         * m4/snprintf.m4: New file.
66917
66918 2004-09-30  Simon Josefsson  <jas@extundo.com>
66919
66920         * lib/snprintf.h, lib/snprintf.c: New files.
66921
66922 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66923
66924         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
66925         (hol_entry_help): Never translate an empty string.
66926         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
66927         * lib/argp.h (OPTION_NO_TRANS): New option.
66928
66929 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * modules/argp (Maintainer): Replace Simon Josefsson
66932         by Sergey Poznyakoff.
66933
66934 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
66937         changes merged back into glibc.
66938
66939 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
66942
66943 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66944
66945         * lib/xvasprintf.c: Include xalloc.h.
66946         (xvasprintf): Use xalloc_die, not xmalloc_die.
66947
66948 2004-09-29  Bruno Haible  <bruno@clisp.org>
66949
66950         * modules/alloca-opt: New file, derived from modules/alloca.
66951         * modules/allocsa: Depend on alloca-opt instead of alloca.
66952         * modules/setenv: Likewise.
66953         * modules/vasnprintf: Likewise.
66954         * MODULES.html.sh: Add alloca-opt.
66955
66956 2004-09-28  Simon Josefsson  <jas@extundo.com>
66957
66958         * gnulib-tool: New parameter --lgpl, to asseert that modules are
66959         LGPL, and to replace license template from GPL to LGPL.
66960
66961 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66962
66963         * modules/dummy: Change license to LGPL.
66964
66965 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
66968
66969 2004-09-24  Simon Josefsson  <jas@extundo.com>
66970
66971         * modules/minmax (License): Change from GPL to LGPL.
66972
66973 2004-09-23  Simon Josefsson  <jas@extundo.com>
66974
66975         * gnulib-tool (--import): Typo.
66976
66977 2004-09-23  Simon Josefsson  <jas@extundo.com>
66978
66979         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
66980
66981 2004-09-22  Bruno Haible  <bruno@clisp.org>
66982
66983         * modules/*: Add 'License' field.
66984         * gnulib-tool: Accept --extract-license option.
66985         (func_get_license): New function.
66986
66987 2004-09-21  Bruno Haible  <bruno@clisp.org>
66988
66989         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
66990         Reported by Simon Josefsson.
66991
66992 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66993
66994         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
66995         gl_AC_TYPE_LONG_LONG.
66996
66997 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67000
67001 2004-09-18  Simon Josefsson  <jas@extundo.com>
67002         and  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67005         calls with autoreconf.  Define GL_LIB.
67006
67007 2004-09-14  Karl Berry  <karl@gnu.org>
67008
67009         * config/srclist.txt: unsync setenv.c, sigh.
67010
67011 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67014         Problem reported by Bruno Haible in:
67015         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67016
67017 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * config/srclist.txt: Comment out argp-pvh.c.
67020
67021 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67024         in case some system header has #define'd it.  Problem reported by
67025         Soeren D. Schulze in
67026         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67027
67028 2004-09-09  Karl Berry  <karl@gnu.org>
67029
67030         * regex.[ch]: delete from the root.  These were supposed to be
67031                 synced with emacs cvs, but this has not happened for about
67032                 a year, and anyway nothing else uses emacs regex.[ch].
67033                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67034                 lib/regex[.ch] is untouched.
67035
67036 2004-09-09  Bruno Haible  <bruno@clisp.org>
67037
67038         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67039
67040 2004-09-09  Bruno Haible  <bruno@clisp.org>
67041
67042         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67043         modifications.
67044         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67045
67046 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67047
67048         * modules/xvasprintf: New file.
67049         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67050
67051 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67052
67053         * lib/xvasprintf.h: New file.
67054         * lib/xvasprintf.c: New file.
67055         * lib/xasprintf.c: New file.
67056
67057 2004-09-08  Bruno Haible  <bruno@clisp.org>
67058
67059         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67060
67061 2004-09-08  Bruno Haible  <bruno@clisp.org>
67062
67063         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67064         length is > INT_MAX.
67065         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67066         more.
67067
67068 2004-09-08  Bruno Haible  <bruno@clisp.org>
67069
67070         * lib/stdint_.h: New file, taken from GNU clisp.
67071
67072 2004-09-08  Bruno Haible  <bruno@clisp.org>
67073             Oskar Liljeblad  <oskar@osk.mine.nu>
67074
67075         * modules/stdint: New file.
67076         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67077
67078 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         Import from coreutils.
67081         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67082         strings on unbounded length.  alloca's performance benefits aren't
67083         that important here.
67084         (V_STRDUP): Remove.
67085         (parse_with_separator): New function, with most of the internals
67086         of the old parse_user_spec.  Allow user to omit both user and group,
67087         for compatibility with FreeBSD.
67088         Clone only the user name, not the entire spec.
67089         Do not set *uid, *gid unless entirely successful.
67090         Avoid memory leak in some failing cases.
67091         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67092         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67093         (parse_user_spec): Rewrite to use parse_with_separator.
67094
67095 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         * modules/userspec: Don't depend on alloca.
67098
67099 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67100
67101         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67102
67103 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67106         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67107         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67108
67109 2004-08-16  Simon Josefsson  <jas@extundo.com>
67110
67111         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67112         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67113         Add --dry-run for --import.
67114         Let user provided command line parameters override configure.ac
67115         settings.
67116
67117 2004-08-12  Simon Josefsson  <jas@extundo.com>
67118
67119         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67120         as discussed with Paul Eggert in threads rooted at
67121         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67122         and
67123         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67124         Before, the test was empty, and relied on ELIDE_CODE in source
67125         code.)
67126         (gl_PREREQ_GETOPT): New macro.
67127         (gl_GETOPT): Use them.
67128
67129 2004-08-12  Simon Josefsson  <jas@extundo.com>
67130
67131         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67132         * lib/getopt_.h: Renamed from getopt.h.
67133
67134 2004-08-12  Simon Josefsson  <jas@extundo.com>
67135
67136         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67137         Change default library name from libfoo to libgnu.
67138         Now, if you have a configure.ac that says:
67139                 gl_SOURCE_BASE(gl)
67140                 gl_M4_BASE(gl/m4)
67141                 gl_MODULES(error getopt etcetera)
67142                 gl_INIT
67143         you can import all you need by running:
67144                 ../gnulib/gnulib-tool --import
67145
67146         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67147         (Makefile.am): Rewrite, use logic from argz.
67148         (Include): Use <getopt.h> instead of "getopt.h".
67149
67150 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * modules/argp (Files): Add m4/unlocked-io.m4.
67153         (Depends-on): Add extensions.
67154
67155 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67158         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67159         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67160         Check for program_invocation_name, program_invocation_short_name,
67161         flockfile, funlockfile, features.h, _getopt_long_only_r.
67162
67163 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67164
67165         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67166         its complicated substitute.
67167         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67168         and program_invocation_name.
67169         (__argp_basename) [!_LIBC]: Remove; the only use was
67170         replaced by its body.
67171         (__argp_short_program_name): Change condition from
67172         !defined __argp_short_program_name to
67173         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67174         to match argp-namefrob.h.
67175         (__argp_failure): Don't assume strerror_r returns char *.
67176         * lib/argp-parse.c (N_): Define unconditionally.
67177         (argp_default_options): Fill out initializers with 0 to avoid
67178         gcc warnings.
67179
67180 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
67183         getopt1.c.
67184
67185 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67186
67187         Merge from coreutils.
67188
67189         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
67190
67191         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
67192         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
67193
67194 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         Merge from coreutils.
67197
67198         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
67199         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
67200         for Reliant Unix 5.43.
67201
67202         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
67203         (union fooround): Use uintmax_t, not long int.
67204         The rest is a merge from libc:
67205         [defined _LIBC]: Include <shlib-compat.h>.
67206         (_obstack) [defined _LIBC]: Remove after 2.3.4.
67207
67208         * lib/settime.c (settime): Recode to avoid warning with
67209         Sun Forte C 6U2.
67210
67211         * lib/strverscmp.c: Convert to UTF-8.
67212
67213 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67214
67215         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67216         m4/uintmax_t.m4.
67217
67218 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * modules/xalloc-die: New file.
67221         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
67222
67223         * modules/md5 (Files): Add m4/uint32_t.m4.
67224         * modules/sha1: Renamed from modules/sha.
67225         (Files):
67226         Rename lib/sha.h to lib/sha1.h.
67227         Rename lib/sha.c to lib/sha1.c.
67228         Rename m4/sha.m4 to m4/sha1.m4.
67229         (lib_SOURCES): Likewise.
67230         (configure.ac): Rename gl_SHA to gl_SHA1.
67231         (Include): sha.h -> sha1.h.
67232
67233 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67234
67235         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
67236         * m4/sha1.m4: Renamed from sha.m4.
67237         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
67238
67239 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67240
67241         * lib/obstack.h (obstack_empty_p):
67242         Don't assume that chunk->contents is suitably aligned.
67243         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
67244         Likewise. Problem reported by Benno in
67245         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
67246
67247         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
67248         readable.  This could be improved further but it'd take some work.
67249
67250 2004-08-08  Simon Josefsson  <jas@extundo.com>
67251
67252         * modules/xgethostname (Depends-on): Remove exit and error (not
67253         used).
67254
67255         * modules/getpass-gnu: Add getpass.h.
67256         (Depends-on): Add stdbool.
67257         * modules/getpass: Add getpass.h.
67258
67259 2004-08-08  Simon Josefsson  <jas@extundo.com>
67260
67261         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
67262         Check getpass declaration.
67263
67264 2004-08-08  Simon Josefsson  <jas@extundo.com>
67265
67266         * lib/xgethostname.c: Don't include error.h (not used).
67267
67268         * lib/getpass.h: Add.
67269         * lib/getpass.c: Include getpass.h first.
67270
67271 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * lib/xalloc-die.c: New file.
67274         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
67275         All uses removed.
67276         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
67277         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
67278         xalloc-die.c.
67279         (_, N_, xalloc_die): Move to xalloc-die.c.
67280         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
67281         so that we needn't mess with xalloc_msg_memory_exhausted.
67282
67283         * lib/sha1.h: Renamed from sha.h.
67284         (SHA1_H): Renamed from _SHA_H.
67285         (sha1_ctx): Renamed from sha_ctx.
67286         (sha1_init_ctx): Renamed from sha_init_ctx.
67287         (sha1_process_block): Renamed from sha_process_block.
67288         (sha1_process_bytes): Renamed from sha_process_bytes.
67289         (sha1_finish_ctx): Renamed from sha_finish_ctx.
67290         (sha1_read_ctx): Renamed from sha_read_ctx.
67291         (sha1_stream): Renamed from sha_stream.
67292         (sha1_buffer): Renamed from sha_buffer.
67293         * lib/sha1.c: Likewise; renamed from sha.c.
67294         Do not include <sys/types.h>.
67295         Include <stddef.h> rather than <stdlib.h>.
67296
67297 2004-08-08  Bruno Haible  <bruno@clisp.org>
67298
67299         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
67300         FILESYSTEM_PREFIX_LEN.
67301         * lib/progreloc.c: Likewise.
67302         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
67303
67304 2004-08-06  Simon Josefsson  <jas@extundo.com>
67305
67306         * modules/progname (Depends-on): Don't depend on stdbool.
67307
67308 2004-08-06  Simon Josefsson  <jas@extundo.com>
67309
67310         * modules/getsubopt: New file.
67311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67312         getsubopt.
67313
67314 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         More merge from coreutils.
67317
67318         * m4/utimens.m4, m4/utimecmp.m4: New files.
67319         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
67320         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
67321         prereq.m4, sha.m4: Import changes from coreutils.
67322
67323 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         More merge from coreutils.
67326         * modules/raise, modules/readtokens0, modules/utimens:
67327         * modules/utimecmp, module/xnanosleep: New files.
67328         * modules/strftime: Add lib/strftime.h.
67329         Change include from <time.h> to "strftime.h".
67330         * modules/yesno: Add lib/yesno.h.
67331         * modules/backupfile: Remove lib/addext.c.
67332         * modules/euidaccess: Add stat-macros.h.
67333         * modules/canonicalize, modules/euidaccess,
67334         modules/filemode, modules/lchown, modules/makepath,
67335         modules/rmdir, modules/stat: Likewise.
67336
67337 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         Merge from tar.
67340         * lib/argp-help.c (make_hol, hol_append): Don't assume that
67341         SIZE_MAX is a valid preprocessor constant.
67342         (__argp_basename): Change from "#ifndef _LIBC"
67343         to "#ifndef __argp_short_program_name", so that
67344         we don't compile these functions for tar.
67345
67346         More merges from coreutils.
67347         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
67348         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
67349         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
67350         * lib/addext.c: Remove; no longer needed.
67351         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
67352         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
67353         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
67354         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
67355         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
67356         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
67357         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
67358         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
67359         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
67360         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67361         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
67362         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
67363         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
67364         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
67365         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
67366         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
67367         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
67368         Import changes from coreutils.
67369
67370 2004-08-05  Simon Josefsson  <jas@extundo.com>
67371
67372         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
67373
67374 2004-08-05  Simon Josefsson  <jas@extundo.com>
67375
67376         * m4/getsubopt.m4: New file.
67377
67378 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67379
67380         Merge from coreutils.
67381
67382         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
67383         * m4/getcwd-path-max.m4: New files.
67384
67385         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
67386         FILESYSTEM_PREFIX_LEN ->
67387         FILE_SYSTEM_PREFIX_LEN.
67388         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
67389         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
67390         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
67391         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
67392
67393         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
67394         prerequisite modules now handle the DOS stuff.
67395         Don't check for unistd.h.
67396
67397 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         Merge from coreutils.
67400
67401         * lib/.gdb-history: Remove; this doesn't belong here.
67402
67403         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
67404         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
67405         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
67406         * lib/getcwd.c: New files.
67407
67408         * lib/dirname.h: Include <stdbool.h>.
67409         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
67410         for consistency with POSIX terminology.  All uses changed.
67411         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
67412         (strip_trailing_slashes): Use bool for booleans.
67413         * lib/stripslash.c (strip_trailing_slashes): Likewise.
67414
67415         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
67416         sometimes returns a positive errno value even when it succeeds.
67417         (print_errno_message) [!LIBC]: Fall back on strerror if
67418         __strerror_r fails.
67419
67420         * lib/path-concat.c (mempcpy): Don't define if a system header defines
67421         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
67422         (longest_relative_suffix): New function.
67423         (path_concat): Use it.  Assume first argument is not NULL.
67424         Port to DOS.  Omit redundant separators.
67425         Report an error instead of returning NULL.
67426         Use mempcpy instead of memcpy.
67427         (xpath_concat): Remove: not declared or used.
67428
67429         * lib/same.h: Include <stdbool.h>
67430         (same_name): Return bool, not int.
67431         * lib/same.c (same_name): Likewise.
67432         (errno): Don't declare; we assume C89 or better now.
67433
67434         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67435         if not already defined.
67436
67437         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67438         * lib/dup-safer.c (errno): Likewise.
67439
67440 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         Merge from coreutils.
67443         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
67444         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
67445         * modules/path-concat: Don't depend on strdup.
67446
67447 2004-08-03  Simon Josefsson  <jas@extundo.com>
67448
67449         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
67450         * lib/progname.h: Don't include stdbool.h.
67451
67452 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
67455         * MODULES.html.sh (func_all_modules): Remove fatal.
67456
67457 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
67460
67461 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
67464         working.
67465
67466 2004-08-02  Simon Josefsson  <jas@extundo.com>
67467
67468         * lib/getsubopt.h: New file, with comments from Bruno Haible.
67469         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
67470         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
67471
67472 2004-08-01  Simon Josefsson  <jas@extundo.com>
67473
67474         * lib/xgetdomainname.c: Include stdlib.h, for free().
67475
67476 2004-07-19  Bruno Haible  <bruno@clisp.org>
67477
67478         * MODULES.html.sh (func_all_modules): Add dummy.
67479
67480 2004-07-16  Simon Josefsson  <jas@extundo.com>
67481
67482         * modules/dummy: New file.
67483
67484 2004-07-16  Simon Josefsson  <jas@extundo.com>
67485
67486         * lib/dummy.c: New file.
67487
67488 2004-07-16  Bruno Haible  <bruno@clisp.org>
67489
67490         * lib/backupfile.h: Add extern "C" for C++.
67491         * lib/closeout.h: Likewise.
67492         * lib/copy-file.h: Likewise.
67493         * lib/findprog.h: Likewise.
67494         * lib/full-write.h: Likewise.
67495         * lib/pathname.h: Likewise.
67496         * lib/progname.h: Likewise.
67497         * lib/stpcpy.h: Likewise.
67498         * lib/stpncpy.h: Likewise.
67499         * lib/strcase.h: Likewise.
67500         * lib/strstr.h: Likewise.
67501         * lib/xalloc.h: Likewise.
67502
67503         * lib/mbswidth.h: Add extern "C" for C++.
67504         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
67505
67506 2004-07-13  Robert Millan  <robertmh@gnu.org>
67507
67508         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
67509
67510 2004-07-09  Simon Josefsson  <jas@extundo.com>
67511
67512         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
67513         failed without this.)
67514
67515 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * modules/chown (Files): Add lib/fchown-stub.c, since
67518         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
67519
67520 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         * lib/fchown-stub.c: New file.
67523
67524 2004-06-24  Jim Meyering  <jim@meyering.net>
67525
67526         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
67527
67528 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * modules/argz: Omit "#include".
67531
67532         * MODULES.html.sh (func_all_modules): Add calloc, to match
67533         2004-06-01 addition of calloc module.
67534
67535 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         * m4/argz.m4: New file, which is autoupdated from libtool.
67538
67539 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
67542         libtool.
67543
67544 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * config/srclist-update: Don't insist on "USA." before the
67547         close-comment, as libtool omits the period and puts the */ on a
67548         separate line.
67549         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
67550         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
67551
67552 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
67553
67554         * modules/argz: New file.
67555         * MODULES.html.sh (func_all_modules): Add argz.
67556
67557 2004-06-12  Jim Meyering  <jim@meyering.net>
67558         and  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * modules/hash (Files): Add lib/xalloc.h.
67561         * modules/pipe (Depends-on): Add wait-process.
67562         * modules/stat (Depends-on): Add xalloc.
67563         * modules/userspec (Files): Add lib/userspec.h.
67564         * modules/xstrto
67565
67566         Upgrade from gettext-0.13.
67567         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
67568         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
67569         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
67570
67571 2004-06-10  Jim Meyering  <jim@meyering.net>
67572
67573         * lib/calloc.c: New file.
67574
67575 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67576
67577         * lib/getdate.y (yylex): Allow space between sign and number.
67578         Problem reported by Dan Jacobson.
67579
67580 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67581
67582         Merge from coreutils CVS.
67583
67584         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
67585         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
67586         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
67587         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
67588         xstrtol.m4: Fix copyright date and/or serial number.
67589
67590         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
67591         See if we need an fchown replacement.
67592         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
67593         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
67594         and use the replacement function if we detect either defect.
67595
67596         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
67597         gl_UTIMECMP.
67598
67599 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67600         and  Jim Meyering  <jim@meyering.net>
67601
67602         Merge from coreutils CVS.
67603
67604         * lib/stat-macros.h: New file, with contents from file-type.h
67605         and coreutils' system.h.
67606         * lib/file-type.c: Include "stat-macros.h".
67607         * lib/file-type.h (file_type): Move all macro definitions to new file,
67608         stat-macros.h.
67609
67610         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
67611         Wrap old code with this conditional.
67612         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
67613         function that does not dereference symlinks.
67614         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
67615
67616         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
67617         dependency problems.
67618         (xreadlink): Accept new arg SIZE, for efficiency.
67619         All decls and uses changed.
67620         * lib/xreadlink.h: Include <stddef.h>, for size_t.
67621
67622         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
67623         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
67624
67625         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
67626         sysexits.h.
67627
67628 2004-06-01  Jim Meyering  <jim@meyering.net>
67629
67630         * m4/calloc.m4: New file.
67631
67632 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
67635         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
67636         Also, fix a typo in a diagnostic.
67637
67638 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
67641         or AC_FUNC_REALLOC.
67642
67643 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67646         macros to be defined.
67647         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67648         the allocator returns NULL because the requested size is zero.
67649
67650 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67653         var.  Add comment explaining why libc still defines it.  This
67654         merges the following patch from glibc:
67655         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67656
67657 2004-05-20  Andreas Schwab  <schwab@suse.de>
67658
67659         * m4/free.m4: Replace free if it not known to work, not the other
67660         way round.
67661
67662 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67663
67664         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67665         present in glibc since revision 1.1 of this file.
67666         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67667         obstack_alignment_mask, obstack_alloc, obstack_base,
67668         obstack_blank, obstack_blank_fast, obstack_chunk_size,
67669         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
67670         obstack_grow0, obstack_init, obstack_int_grow,
67671         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
67672         obstack_next_free, obstack_object_size, obstack_ptr_grow,
67673         obstack_ptr_grow_fast, obstack_room): Remove declarations of
67674         nonexistent functions.
67675
67676 2004-05-18  Karl Berry  <karl@gnu.org>
67677
67678         * config/srclist.txt: break link for vasnprintf.c.
67679
67680 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67681
67682         Port obstack to the AS/400, where pointers are 16 bytes wide and
67683         you cannot cast an integer to a valid pointer.  This patch is
67684         currently waiting to be integrated into glibc; see
67685         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
67686
67687         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
67688         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
67689         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
67690         (struct obstack): temp member is now a union of a pointer and
67691         an integer, instead of an integer.  All integer uses changed.
67692         This does not affect the physical layout of struct obstack,
67693         except on hosts (like the AS/400) where the size or alignment of
67694         void * is greater than that of ptrdiff_t.
67695         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
67696         __STDC__)]: Store temporary in pointer member of union, not
67697         integer member.
67698         * lib/obstack.c: Include <stddef.h>, for offsetof.
67699         (struct fooalign): Remove; it doesn't need a name.
67700         (union fooround): Change double to long double, and add void *.
67701         (DEFAULT_ALIGNMENT): Use offsetof to compute.
67702         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
67703         not a macro.  Hence the values are always int; so remove all
67704         casts-to-int in uses.
67705
67706 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67707
67708         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
67709         we can get this patch merged into glibc.
67710
67711 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67712             Paul Eggert  <eggert@cs.ucla.edu>
67713
67714         * m4/argp: Depend on alloca.
67715
67716 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67717             Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
67720         freecoding.
67721
67722 2004-05-17  Bruno Haible  <bruno@clisp.org>
67723
67724         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
67725         precision that consists of a '.' followed by an empty digit string.
67726         Patch by Tor Lillqvist <tml@iki.fi>.
67727
67728 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
67731         for backward compatibility with older code.  We need our own
67732         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
67733         it under some other name, and our alloca.h will define it.
67734
67735 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67736             Derek Price  <derek@ximbiot.com>
67737
67738         * lib/alloca.c: Include <alloca.h>, to get our interface.
67739         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
67740         include <alloca.h> first.  Use C89 prototype for alloca; this
67741         requires including <stddef.h> for size_t.  Use extern "C" if C++.
67742         Use #elif for simplicity, since we can assume C89 now.
67743         Don't try to source the system alloca.h since it will not be found
67744         and to prevent recursively including its replacement.
67745         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
67746         * lib/regex.c: Likewise.
67747
67748 2004-05-16  Derek Price  <derek@ximbiot.com>
67749             Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         getline cleanup.  This changes the getndelim2 API: both order of
67752         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
67753         no delimiter).
67754
67755         * lib/getline.c: Don't include stddef.h or stdio.h, since our
67756         interface does that.
67757         (getline): Always use getdelim, so that we don't have two
67758         copies of this code.
67759         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
67760         if available.
67761         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
67762         (GETNDELIM2_MAXIMUM): New macro.
67763         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
67764         instead of the old practice of delim2==0.  All callers changed.
67765         Return -1 on overflow, instead of returning junk.
67766         Do not set *linesize unless allocation succeeds.
67767         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
67768         that we include sys/types.h.
67769         * lib/getnline.h: Likewise.
67770         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
67771         (getndelim2): Reorder arguments.
67772         * lib/getnline.c (getnline, getndelim):
67773         Don't discard the NMAX argument.
67774         (getnline): Invoke getndelim, to avoid code duplication.
67775         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
67776         of (size_t) -1 by callers of the getnline family.
67777
67778 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67781         Check for gettimeofday.
67782         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67783         Check for settimeofday, stime.
67784
67785 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * lib/nanosleep.c (suspended): Change its type from int to
67788         sig_atomic_t volatile.
67789         (first_call): Make it private to rpl_nanosleep, and have it
67790         be zero initially as that's a bit faster.
67791         (my_usleep): Round up fractional times instead of truncating them,
67792         as this is the usual meaning for 'sleep'.
67793
67794         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67795         doesn't work.
67796         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67797         (ENOSYS): Define if not defined.
67798         (settime): Fall back on stime if it exists and settimeofday fails.
67799         But don't bother with fallbacks if a method fails with errno == EPERM.
67800
67801 2004-05-11  Jim Meyering  <jim@meyering.net>
67802
67803         Prior to this change, the save_cwd caller required read access to the
67804         current directory on most systems (ones with the fchdir function).
67805
67806         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67807         fails, try write-only, and finally, resort to using xgetcwd.
67808
67809 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * lib/obstack.c, obstack.h: Import changes from libc.
67812
67813 2004-04-28  Bruno Haible  <bruno@clisp.org>
67814
67815         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
67816         also implicitly appends .exe to executables.
67817         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
67818         accepts Windows pathnames.
67819         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67820         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67821         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67822         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67823         Reported by Derek Robert Price <derek@ximbiot.com>.
67824
67825 2004-04-21  Karl Berry  <karl@gnu.org>
67826
67827         * config/srclist.txt (localcharset.c): break sync.
67828
67829 2004-04-20  Paul Eggert  <eggert@twinsun.com>
67830
67831         * m4/host-os.m4: Add a copyright notice.
67832
67833 2004-04-20  Jim Meyering  <jim@meyering.net>
67834
67835         Change UTILS_ to gl_ in AC_DEFINE'd names.
67836         Change utils_- and jm_-prefixed variables, too.
67837         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
67838         UTILS_FUNC_MKDIR_TRAILING_SLASH.
67839         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
67840
67841         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
67842         Don't emit trailing blanks.
67843         Also rename jm_-prefixed variables to have gl_ prefix.
67844
67845         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
67846         Also rename jm_-prefixed variables to have gl_ prefix.
67847
67848         * m4/jm-macros.m4: Reflect the renamings.
67849         * m4/prereq.m4: Likewise.
67850
67851 2004-04-20  Jim Meyering  <jim@meyering.net>
67852
67853         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
67854         memory.
67855
67856 2004-04-20  Jim Meyering  <jim@meyering.net>
67857             Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
67860         memory when realloc fails.
67861
67862 2004-04-19  Jim Meyering  <jim@meyering.net>
67863
67864         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
67865         now that readutmp.c may call `free (0)'.
67866
67867 2004-04-19  Bruno Haible  <bruno@clisp.org>
67868
67869         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
67870         * m4/inttypes_h.m4: Likewise.
67871         * m4/stdint_h.m4: Likewise.
67872         * m4/intmax_t.m4: Likewise.
67873         * m4/uintmax_t.m4: Likewise.
67874
67875 2004-04-18  Jim Meyering  <jim@meyering.net>
67876
67877         * m4/prereq.m4: Don't forbid jm_ prefix.
67878
67879         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
67880         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
67881         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
67882         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
67883         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
67884         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
67885         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
67886         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
67887         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
67888         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
67889         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
67890         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
67891         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
67892         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
67893         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
67894         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
67895         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
67896         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
67897         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
67898
67899 2004-04-18  Jim Meyering  <jim@meyering.net>
67900
67901         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
67902         failure, don't leak memory and do call END_UTMP_ENT.
67903
67904 2004-04-16  Jim Meyering  <jim@meyering.net>
67905
67906         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
67907         coreutils' stat program.
67908         (gl_PREREQ): Don't require jm_PREREQ_STAT.
67909
67910 2004-04-11  Paul Eggert  <eggert@twinsun.com>
67911
67912         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
67913         C89.
67914         (CHAR_BIT): Remove, since we assume C89.
67915         Include <stdint.h> if available, as per current Autoconf CVS advice.
67916
67917 2004-03-31  Jim Meyering  <jim@meyering.net>
67918
67919         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
67920         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
67921         * m4/xalloc.m4: Likewise.
67922
67923 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67924
67925         Merge from coreutils.
67926
67927         * m4/inttostr.m4: New file.
67928         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
67929         Require AM_STDBOOL_H and gl_TIMESPEC instead.
67930         Require gl_CLOCK_TIME.
67931         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
67932
67933 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67934
67935         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
67936         not bool, to be more consistent with Unix conventions.
67937         Suggested by Bruno Haible.
67938
67939         Merge from coreutils.
67940
67941         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
67942         * lib/umaxtostr.c: New files.
67943
67944         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
67945         the usual <time.h> dance.
67946         (get_date): Change signature to support fractional time stamps.
67947         All callers changed.
67948         * lib/getdate.y: Include "getdate.h" first, as we can now
67949         assume C89 and don't need to worry about 'const'.
67950         Similarly, include "unlocked-io.h" near start, not in middle.
67951         Include <limits.h>.
67952         (textint.value): Use long int rather than int.
67953         (textint.digits): Use size_t rather than int.
67954         (BILLION, LOG10_BILLION): New constants.
67955         (parser_control): New member rel_ns.  Members day_ordinal,
67956         time_zone, month, day, hour, minutes, rel_year, rel_month,
67957         rel_day, rel_hour, rel_minutes, rel_seconds
67958         are now long int, not int.  Member seconds is now struct timespec,
67959         not int.  New member timespec_seen.  Members dates_seen, days_seen,
67960         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
67961         not int.
67962         (%union.intval): Now long int, not int.
67963         New member timespec.
67964         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
67965         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
67966         (spec): Now is a timespec or an item list.
67967         (timespec, items): New nonterminals.
67968         (time, rel, relunit, number, get_date):
67969         Add support for fractional seconds.
67970         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
67971         (gmtime, localtime, mktime): Remove decls; not needed with C89.
67972         (to_hour): First arg is now long int, not int.
67973         (to_year): Returns long int, not int.
67974         Don't treat year -70 like 70.
67975         (tm_diff): Returns long int, not int.
67976         (lookup_word): Use bool instead of int when appropriate.
67977         (yylex): Use size_t for count, not int.
67978         Detect overflow when parsing large integer constants.
67979         Add support for fractions.
67980         (get_date): Make pointers 'const' if possible.
67981         Use more-portable code to detect integer overflow.
67982         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
67983         Don't use ctime; it's not reliable if the year has >4 digits.
67984
67985         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
67986         This is for compatibility with BSD.
67987
67988         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
67989         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
67990         From coreutils' system.h.
67991
67992         * lib/userspec.c: Don't include "posixver.h".
67993         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
67994         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
67995         compatible extension.  Simplify code by removing a boolean int
67996         that was always nonzero if a string was nonnull.
67997
67998 2004-03-30  Jim Meyering  <jim@meyering.net>
67999
68000         Merge from coreutils.
68001
68002         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68003         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68004         on some systems one must include <grp.h> before it.
68005         Reported by Christian Krackowizer.
68006
68007 2004-03-30  Jim Meyering  <jim@meyering.net>
68008
68009         Merge from coreutils.
68010
68011         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68012
68013         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68014         an empty input stream.
68015
68016         * lib/readtokens.c: Include <stdbool.h>.
68017         (readtoken): Use `size_t' rather than int/long.
68018         All callers adjusted.
68019         Use `bool' rather than `int' where appropriate.
68020         Use memset rather than an explicit loop.
68021         Use x2nrealloc rather than xrealloc.
68022         Allow the use of `\0' as a delimiter.
68023         (readtokens): Likewise.
68024         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68025
68026 2004-03-30  Jim Meyering  <jim@meyering.net>
68027
68028         * m4/realloc.m4: Remove file, since now it does no more than
68029         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68030         the `configure.ac' section of module/realloc.
68031         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68032
68033 2004-03-30  Bruno Haible  <bruno@clisp.org>
68034
68035         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68036         nonnull.
68037
68038 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68039
68040         Merge changes to getloadavg.c from coreutils and Emacs.
68041
68042         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68043         Define to an expression, not to the empty string.
68044         Include cloexec.h and xalloc.h.
68045         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68046         Use set_cloexec_flag rather than rolling our own.
68047         * lib/cloexec.c, lib/cloexec.h: New files.
68048
68049 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68050
68051         * m4/cloexec.m4: New file.
68052
68053 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68054
68055         * lib/getopt.h: Sync with libc CVS.
68056
68057 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68058             Bruno Haible  <bruno@clisp.org>
68059
68060         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68061         mbswidth.
68062
68063 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68064             Bruno Haible  <bruno@clisp.org>
68065
68066         * lib/mbswidth.h: Include <wchar.h> only if
68067         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68068         <wchar.h>.
68069         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68070
68071 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68072
68073         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68074         Sync with libc CVS.
68075         * lib/getopt_int.h: New file, also synced from libc.
68076
68077 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68078
68079         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68080         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68081         Bring back getopt.c, getopt.h, getopt1.c.
68082
68083 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68084
68085         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68086         All uses changed.  Check for sa_sigaction member; this fixes
68087         a bug first reported by Jason Andrade in
68088         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68089
68090 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68091
68092         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68093         '#if' expressions.  Unlike the code it replaces, it does not
68094         depend on (defined _SC_PAGESIZE).  However, it does depend on
68095         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68096         first reported by Jason Andrade in
68097         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68098
68099 2004-02-25  Simon Josefsson  <jas@extundo.com>
68100
68101         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68102
68103 2004-02-25  Simon Josefsson  <jas@extundo.com>
68104
68105         * lib/strdup.h: New file.
68106         * lib/strdup.c: Include it.
68107         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68108         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68109
68110 2004-02-23  Karl Berry  <karl@gnu.org>
68111
68112         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68113         (from fencepost.gnu.org:/gd/gnuorg).
68114
68115 2004-02-23  Karl Berry  <karl@gnu.org>
68116
68117         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68118         * config/srclist.txt: add maintain/standards documents.
68119
68120 2004-02-18  Bruno Haible  <bruno@clisp.org>
68121
68122         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68123         Reported by Derek Robert Price <derek@ximbiot.com>.
68124
68125 2004-02-16  Karl Berry  <karl@gnu.org>
68126
68127         * config/mkinstalldirs, install-sh: update from automake.
68128
68129 2004-02-06  Karl Berry  <karl@gnu.org>
68130
68131         * m4/po.m4: update from gettext 0.14.1.
68132
68133 2004-02-06  Karl Berry  <karl@gnu.org>
68134
68135         * lib/config.charset: update from gettext 0.14.1.
68136
68137 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68138
68139         Add comments and code, prompted by suggestions from Bruno Haible
68140         for sh-quote.
68141         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68142         describing the enum quoting_style values.
68143         * lib/quotearg.c (quotearg_alloc): New function.
68144         (quotearg_buffer_restyled): Treat lone { and } as special.
68145         Treat = as special.  Work around bug with older shells
68146         that "see" a '\' that is really the 2nd byte of a multibyte char.
68147         Quote empty string with shell_quoting_style.
68148
68149 2004-02-03  Bruno Haible  <bruno@clisp.org>
68150
68151         * m4/pipe.m4: New file, from GNU gettext.
68152
68153 2004-02-03  Bruno Haible  <bruno@clisp.org>
68154
68155         * lib/pipe.h: New file, from GNU gettext.
68156         * lib/pipe.c: New file, from GNU gettext.
68157
68158 2004-01-27  Bruno Haible  <bruno@clisp.org>
68159
68160         * m4/execute.m4: New file, from GNU gettext.
68161
68162 2004-01-27  Bruno Haible  <bruno@clisp.org>
68163
68164         * lib/execute.h: New file, from GNU gettext.
68165         * lib/execute.c: New file, from GNU gettext.
68166         * lib/w32spawn.h: New file, from GNU gettext.
68167
68168 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68169
68170         Merge from diffutils.
68171
68172         * lib/file-type.c (file_type): Add typed memory objects.
68173         * lib/file-type.h (S_TYPEISTMO): New macro.
68174
68175         * lib/c-stack.h (c_stack_action): Remove argv argument.
68176         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
68177         (die): Don't calculate message unless segv_action returns.
68178         (get_stack_location, min_address_from_argv, max_address_from_argv,
68179         volatile stack_base, volatile_stack_size): Remove.
68180         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
68181         that every segmentation violation is a stack overflow.  (Ouch!)
68182         See Debian bug 136249 (still outstanding) for more info about why
68183         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
68184
68185 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68186
68187         Exit-status fix from coreutils.
68188
68189         Use exit_failure consistently in place of EXIT_FAILURE,
68190         so that program exit statuses are consistent on failure.
68191
68192         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
68193         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
68194         * lib/argmatch.h: Comment fix to match the above.
68195         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
68196         Now a macro referring to exit_failure, instead of a separate
68197         variable.  Include "exitfail.h" to get it.
68198         * lib/xstrtol.h: Include "exitfail.h".
68199         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
68200
68201         * lib/long-options.c (parse_long_options): Use prototype
68202         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
68203         for clarity.
68204
68205 2004-01-21  Jim Meyering  <jim@meyering.net>
68206
68207         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
68208         so as not to conflict with a different-sized __mktime_internal
68209         function in GNU libc.
68210         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
68211         Problem building statically-linked `ls' reported by Michael Brunnbauer.
68212
68213 2004-01-20  Karl Berry  <karl@gnu.org>
68214
68215         * config/config.guess: update from config.
68216
68217         * config/srclistvars.sh: GNUWWWLICENSES for karl.
68218
68219 2004-01-20  Bruno Haible  <bruno@clisp.org>
68220
68221         Safer stack allocation.
68222         * lib/setenv.c: Include allocsa.h.
68223         (alloca): Remove fallback definition.
68224         (freea): Remove macro.
68225         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
68226         instead of freea.
68227
68228 2004-01-20  Bruno Haible  <bruno@clisp.org>
68229
68230         * m4/eealloc.m4: New file, from GNU gettext.
68231
68232 2004-01-20  Bruno Haible  <bruno@clisp.org>
68233
68234         * m4/allocsa.m4: New file, from GNU gettext.
68235
68236 2004-01-20  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/xallocsa.h: New file, from GNU gettext.
68239         * lib/xallocsa.c: New file, from GNU gettext.
68240
68241 2004-01-20  Bruno Haible  <bruno@clisp.org>
68242
68243         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
68244
68245 2004-01-20  Bruno Haible  <bruno@clisp.org>
68246
68247         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
68248         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
68249         specially.
68250
68251 2004-01-20  Bruno Haible  <bruno@clisp.org>
68252
68253         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
68254         patch.
68255
68256 2004-01-20  Bruno Haible  <bruno@clisp.org>
68257
68258         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
68259
68260 2004-01-20  Bruno Haible  <bruno@clisp.org>
68261
68262         * lib/eealloc.h: New file.
68263
68264 2004-01-20  Bruno Haible  <bruno@clisp.org>
68265
68266         * lib/binary-io.h: Avoid warnings on Cygwin.
68267
68268 2004-01-20  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/allocsa.h: New file, from GNU gettext.
68271         * lib/allocsa.c: New file, from GNU gettext.
68272
68273 2004-01-18  Karl Berry  <karl@gnu.org>
68274
68275         * doc/gpl.texi, doc/lgpl.texi: new files.
68276
68277 2004-01-18  Karl Berry  <karl@gnu.org>
68278
68279         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
68280         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
68281
68282 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68283
68284         Merge from coreutils.
68285
68286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
68287         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
68288         (gl_DEFAULT_POSIX2_VERSION): Move
68289         the documentation from 'configure' into 'config.hin',
68290         so that 'configure --help' isn't burdened by it and
68291         we don't have to worry about its formatting there.
68292         Reword the documentation so that it's more succinct
68293         and can be run together into a single paragraph.
68294         * m4/same.m4 (gl_SAME): Check for pathconf.
68295
68296 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68297
68298         Merge from coreutils.
68299
68300         * lib/posixver.c: Include posixver.h.
68301
68302         * lib/same.c: Include <stdbool.h>, <limits.h>.
68303         (_POSIX_NAME_MAX): Define if not defined.
68304         (MIN): New macro.
68305         (same_name): If file names are silently truncated, report
68306         that the file names are the same if they are the same after
68307         the silent truncation.
68308
68309         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
68310         conversion function.
68311         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
68312         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
68313         longer needed.
68314
68315 2004-01-15  Jim Meyering  <jim@meyering.net>
68316
68317         Merge from coreutils.
68318
68319         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
68320         if no library is required.
68321         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
68322         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
68323         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
68324         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
68325         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
68326         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
68327         value, $ac_cv_search_crypt, if it's "none required".
68328         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
68329         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
68330         not gl_FUNC_GETLOADAVG.
68331         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
68332         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
68333
68334 2004-01-15  Jim Meyering  <jim@meyering.net>
68335
68336         Merge from coreutils.
68337
68338         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
68339         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
68340         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
68341
68342         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
68343         optional configure-time default.
68344
68345         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68346
68347         * lib/xreadlink.c (xreadlink): Correct outdated comment.
68348
68349 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
68350
68351         Merge from coreutils.
68352
68353         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
68354         value, $ac_cv_search_nanosleep, if it's "none required".
68355
68356 2004-01-14  Paul Eggert  <eggert@twinsun.com>
68357
68358         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
68359         with like-named macro in fnmatch.c.
68360         (EXT): Use an internal constant instead.
68361
68362         Merge fnmatch patches from glibc.
68363         * lib/fnmatch.c (mbsinit): Remove define.
68364         Add libc_hidden_ver (__fnmatch, fnmatch).
68365         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
68366         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
68367
68368 2004-01-14  Karl Berry  <karl@gnu.org>
68369
68370         * config/install-sh: update from automake.
68371
68372 2004-01-13  Karl Berry  <karl@gnu.org>
68373
68374         * config/install-sh: update from automake.
68375
68376 2004-01-09  Karl Berry  <karl@gnu.org>
68377
68378         * config/install-sh: update from automake.
68379
68380 2004-01-05  Karl Berry  <karl@gnu.org>
68381
68382         * config/config.{sub,guess}: update from config.
68383
68384 2003-12-31  Karl Berry  <karl@gnu.org>
68385
68386         * config/depcomp: update from automake.
68387
68388 2003-12-14  Karl Berry  <karl@gnu.org>
68389
68390         * lib/config.charset: update from gettext-runtime.
68391
68392 2003-12-03  Paul Eggert  <eggert@twinsun.com>
68393
68394         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
68395         Bug reported by Alfred M. Szmidt.
68396
68397 2003-12-03  Bruno Haible  <bruno@clisp.org>
68398
68399         * m4/gettext.m4: Upgrade from gettext-0.13.
68400         * m4/po.m4: Upgrade from gettext-0.13.
68401         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
68402         * m4/intmax.m4: New file, from gettext-0.13.
68403         * m4/printf-posix.m4: New file, from gettext-0.13.
68404
68405 2003-11-29  Karl Berry  <karl@gnu.org>
68406
68407         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
68408
68409 2003-11-25  Paul Eggert  <eggert@twinsun.com>
68410             Bruno Haible  <bruno@clisp.org>
68411
68412         * lib/printf-parse.h: Don't include sys/types.h.
68413         (ARG_NONE): New macro.
68414         (char_directive): Change type of *arg_index fields to size_t.
68415         * lib/printf-parse.c: Don't include sys/types.h.
68416         (SSIZE_MAX): Remove macro.
68417         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
68418         Remove unnecessary overflow check.
68419         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
68420         fields.
68421
68422 2003-11-25  Bruno Haible  <bruno@clisp.org>
68423
68424         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
68425
68426 2003-11-25  Bruno Haible  <bruno@clisp.org>
68427
68428         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
68429         gt_TYPE_SSIZE_T.
68430
68431 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68432
68433         * modules/alloca: Remove dependency on xalloc.
68434
68435 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68436
68437         * lib/alloca.c: Remove dependency on xalloc module.
68438         (xalloc_die): Remove.
68439         (memory_full) [!defined emacs]: New macro.
68440         [!defined emacs]: Don't include xalloc.h.
68441         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
68442         address arithmetic overflows.  Change datatypes a bit to avoid
68443         unnecessary casts.
68444
68445 2003-11-22  Jim Meyering  <jim@meyering.net>
68446
68447         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
68448         s/size/size_t/.
68449
68450 2003-11-21  Karl Berry  <karl@gnu.org>
68451
68452         * config/config.{sub,guess}: update from config.
68453
68454 2003-11-18  Karl Berry  <karl@gnu.org>
68455
68456         * config/config.{sub,guess}: update from config.
68457
68458         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
68459
68460 2003-11-17  Paul Eggert  <eggert@twinsun.com>
68461
68462         * README: Mention that S+T cannot overflow if S is the size of
68463         an existing object and T is sufficiently small.
68464
68465 2003-11-17  Jim Meyering  <jim@meyering.net>
68466
68467         On systems without utime and without a utimes function capable of
68468         dealing with a NULL struct utimbuf* argument, this utime replacement
68469         could -- in unusual circumstances -- leak a file descriptor.
68470         * lib/utime.c: Include <unistd.h> and <errno.h>.
68471         (utime_null): Be sure to close `fd' and to preserve errno.
68472         Reported by Geoff Collyer via Arnold Robbins.
68473
68474 2003-11-17  Bruno Haible  <bruno@clisp.org>
68475
68476         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
68477         (Depends-on): Add xsize.
68478
68479 2003-11-17  Bruno Haible  <bruno@clisp.org>
68480
68481         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
68482
68483 2003-11-17  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/vasnprintf.c (alloca): Remove fallback definition.
68486         (freea): Remove definition.
68487         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
68488         Reported by Paul Eggert.
68489
68490 2003-11-16  Paul Eggert  <eggert@twinsun.com>
68491             Bruno Haible  <bruno@clisp.org>
68492
68493         Protect against address arithmetic overflow.
68494         * lib/printf-args.h: Include stddef.h.
68495         (arguments): Change type of field 'count' to size_t.
68496         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
68497         'unsigned int' where appropriate.
68498         * lib/printf-parse.h: Include sys/types.h.
68499         (char_directive): Change type of *arg_index fields to ssize_t.
68500         (char_directives): Change type of fields 'count', max_*_length to
68501         size_t.
68502         * lib/printf-parse.c: Include sys/types.h and xsize.h.
68503         (SSIZE_MAX): Define fallback value.
68504         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
68505         instead of 'int' where appropriate. Check a_allocated, d_allocated
68506         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
68507         * lib/vasnprintf.c: Include xsize.h.
68508         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
68509         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
68510         overflow. Avoid wraparound when converting a width or precision from
68511         decimal to binary.
68512
68513 2003-11-16  Bruno Haible  <bruno@clisp.org>
68514
68515         Update from GNU gettext.
68516         * lib/printf-parse.c: Generalize to it can be compiled for wide
68517         strings.
68518         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
68519         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
68520         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
68521         SNPRINTF): New macros.
68522         Don't include <alloca.h> if the file is used inside libintl.
68523         (local_wcslen): New function, for Solaris 2.5.1.
68524         (VASNPRINTF): Use it instead of wcslen.
68525
68526 2003-11-16  Bruno Haible  <bruno@clisp.org>
68527
68528         * lib/xsize.h (xmax): New function.
68529         (xsum, xsum3, xsum4): Declare as "pure" functions.
68530
68531 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68532
68533         * modules/xalloc (Files): Undo latest change, since xalloc.h
68534         no longer needs SIZE_MAX or PTRDIFF_MAX.
68535
68536 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68537
68538         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
68539         gl_PTRDIFF_MAX.
68540
68541 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68542
68543         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
68544         "return", to pacify some unknown compiler.  Problem reported
68545         by Joerg Schilling.
68546
68547 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68548
68549         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
68550         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
68551         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
68552         heuristic is just as accurate as far as we know, and it removes a
68553         dependency on size_max.m4 and ptrdiff_max.m4.
68554
68555 2003-11-11  Bruno Haible  <bruno@clisp.org>
68556
68557         * modules/xsize (Files): Add m4/size_max.m4.
68558         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
68559
68560 2003-11-11  Bruno Haible  <bruno@clisp.org>
68561
68562         * m4/size_max.m4: New file.
68563         * m4/ptrdiff_max.m4: New file.
68564         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
68565         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
68566         (gl_XALLOC): Invoke it.
68567
68568 2003-11-11  Bruno Haible  <bruno@clisp.org>
68569
68570         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
68571         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
68572         defined.
68573
68574 2003-11-10  Paul Eggert  <eggert@twinsun.com>
68575
68576         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
68577         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
68578         rejected some allocations of exactly SIZE_MAX - 2 bytes.
68579         From Bruno Haible.
68580         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
68581         not (size_t) -1, since it's defined here.
68582
68583 2003-11-09  Karl Berry  <karl@gnu.org>
68584
68585         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
68586
68587 2003-11-06  Paul Eggert  <eggert@twinsun.com>
68588
68589         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
68590         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
68591         Reject sizes of exactly SIZE_MAX bytes.
68592         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
68593         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
68594
68595 2003-11-05  Bruno Haible  <bruno@clisp.org>
68596
68597         * lib/xsize.h: Include limits.h, to avoid a possible collision with
68598         SIZE_MAX defined in <limits.h> on Solaris.
68599
68600 2003-11-04  Jim Meyering  <jim@meyering.net>
68601
68602         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
68603         variable names, rather than @VAR@.
68604         * modules/poll: Likewise.
68605
68606 2003-11-04  Bruno Haible  <bruno@clisp.org>
68607
68608         * modules/xsize: New file.
68609         * modules/linebreak: Depend on xsize.
68610         * MODULES.html.sh (func_all_modules): Add xsize.
68611
68612 2003-11-04  Bruno Haible  <bruno@clisp.org>
68613
68614         * m4/xsize.m4: New file.
68615
68616 2003-11-04  Bruno Haible  <bruno@clisp.org>
68617
68618         * lib/xsize.h: New file.
68619         * lib/linebreak.c: Include xsize.h.
68620         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
68621         argument for overflow.
68622         Suggested by Paul Eggert.
68623
68624 2003-11-03  Karl Berry  <karl@gnu.org>
68625
68626         * config/config.{guess,sub}: update from config.
68627
68628 2003-11-03  Jim Meyering  <jim@meyering.net>
68629
68630         * modules/userspec (lib_SOURCES): Add userspec.h.
68631         (Include): Add "userspec.h".
68632         Improve description.
68633
68634 2003-11-03  Jim Meyering  <jim@meyering.net>
68635
68636         * lib/userspec.c: Include "userspec.h".
68637         * lib/userspec.h: New file.
68638
68639 2003-11-03  Bruno Haible  <bruno@clisp.org>
68640
68641         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68642
68643 2003-11-03  Bruno Haible  <bruno@clisp.org>
68644
68645         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68646         available, to avoid (extremely rare) race condition.
68647         Suggested by Paul Eggert.
68648
68649 2003-11-02  Karl Berry  <karl@gnu.org>
68650
68651         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68652
68653 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68654
68655         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68656         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68657         (read_filesystem_list): Set and use me_type_malloced.
68658         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68659         whatever the type happens to be), for brevity and consistency.
68660         Check for size calculation overflow on Alphas running OSF/1.
68661
68662 2003-10-31  Jim Meyering  <jim@meyering.net>
68663
68664         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68665
68666         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68667
68668 2003-10-30  Paul Eggert  <eggert@twinsun.com>
68669             Bruno Haible  <bruno@clisp.org>
68670
68671         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
68672         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
68673
68674 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
68677         netbsd*-gnu*.  Suggested by Robert Millan.
68678
68679 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68680
68681         * modules/group-member: Depend on stdbool.
68682
68683 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68684
68685         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
68686
68687 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68688
68689         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
68690         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
68691         after the 'gnu' in these cases.  This fixes some bugs in the
68692         previous change, and is based on suggestions by Robert Millan.
68693
68694 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68695
68696         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
68697         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
68698         no longer needed.
68699         * lib/quotearg.c (quotearg_n_options): Use it.
68700         * lib/group-member.c: Include <stdbool.h>.
68701         (free_group_info): Arg is now const *; don't free arg.
68702         (get_group_info): Now returns bool and accepts struct group_info *,
68703         rather than returning a malloc'ed struct group_info *.
68704         All uses changed.  Check for overflow in internal size calculation.
68705
68706         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
68707         rather than xmalloc/xrealloc.
68708         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
68709         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
68710         conformance bug: the old code used a pointer after freeing the
68711         storage that it addressed.
68712         * lib/hash.c (hash_initialize): Simplify the code by using
68713         xalloc_oversized rather than doing it by hand.
68714         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
68715         the buffer preserved.  Use free and xmalloc instead.
68716         * lib/quotearg.c (quotearg_n_options): Likewise.
68717         Use a simpler test for size overflow.  Don't use xalloc_oversized
68718         because unsigned int might be wider than size_t (!); this suggests
68719         that we should switch from unsigned int to size_t for slot numbers.
68720
68721 2003-10-28  Paul Eggert  <eggert@twinsun.com>
68722
68723         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
68724         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
68725         NetBSD kernels.  Requested by Richard Stallman.
68726
68727 2003-10-27  Paul Eggert  <eggert@twinsun.com>
68728
68729         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
68730         to allocate the returned structure.  Do not allocate a subarray,
68731         as x2nrealloc will do that.
68732         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
68733         instead of xnrealloc.
68734         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
68735
68736 2003-10-27  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/stdbool_.h: Better support for BeOS.
68739
68740 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68741
68742         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
68743         now uses inline.
68744
68745 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68746
68747         * lib/xalloc.h (xalloc_oversized): New static inline function, for
68748         callers that want to do their own size-overflow checking.  Include
68749         <stdbool.h>, since xalloc_oversized returns bool.
68750         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
68751         to use xalloc_oversized.
68752
68753         Add two functions x2realloc, x2nrealloc, for programs that grow
68754         arrays dynamically by doubling their sizes.
68755         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
68756         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
68757         New functions.
68758
68759         Port to C99 semantics for 'inline' of external functions.
68760         Bug reported by Bruno Haible.
68761         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
68762         with the old contents of xnmalloc.
68763         (xnmalloc, xmalloc): Use it.
68764         (xnrealloc_inline): New static inline function,
68765         with the old contents of xnrealloc.
68766         (xnrealloc, xrealloc): Use it.
68767
68768         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
68769         that.
68770
68771 2003-10-26  Karl Berry  <karl@gnu.org>
68772
68773         * config/srclist.txt (COPYING.DOC): no longer available from
68774         /gd/gnuorg; don't know where the ultimate source is.
68775
68776 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68777
68778         Fix several address-calculation bugs in the hash modules,
68779         plus some minor code cleanup.
68780
68781         * lib/hash.h: Include <stdbool.h>, for bool.
68782         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68783         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68784         hash_get_n_entries, hash_get_max_bucket_length,
68785         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68786         hash_rehash): Use size_t rather than unsigned.
68787         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68788         hash_get_n_buckets_used, hash_get_n_entries,
68789         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68790         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68791         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68792         Likewise.
68793         (SIZE_MAX): Define if not defined.
68794         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68795         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68796         hash_print):
68797         Use const * when possible.
68798         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68799         (check_tuning): Fix bug: if tuning parameters were very close to
68800         0 or 1, rounding errors could have caused subscript violations.
68801         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68802         (hash_initialize): Add 'fail:' label
68803         to free table and return NULL, and use it to simplify code.
68804         Use calloc rather than clearing the storage ourself.
68805         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68806         buffer size calculations.
68807         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68808         Include <stddef.h>, for size_t.
68809         * lib/hash-pjw.c (hash_pjw): Likewise.
68810         Switch to method described by Bruno Haible.
68811         Include <limits.h>, for CHAR_BIT.
68812         (SIZE_BITS): New macro.
68813
68814 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68815
68816         * m4/getline.m4 (AM_FUNC_GETLINE):
68817         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
68818         hosts.  Problem reported by Derek Robert Price in
68819         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
68820         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
68821         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
68822
68823 2003-10-21  Paul Eggert  <eggert@twinsun.com>
68824
68825         * lib/getndelim2.c (getndelim2): When size calculation overflows,
68826         ceiling the allocation at NMAX bytes rather than silently
68827         discarding input bytes before NMAX is reached.  This makes
68828         a difference only if NMAX exceeds SIZE_MAX / 2.
68829
68830         * lib/obstack.c: Merge from glibc.
68831         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
68832         Add libc_hidden_def (_obstack_newchunk).
68833         (_obstack_free) [! defined _LIBC]: Remove.
68834         [defined _LIBC]: Make a strong alias from obstack_free, rather than
68835         a clone of the function body.
68836         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
68837         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
68838
68839         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
68840         glibc.
68841         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
68842         arg to memcpy.
68843
68844         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
68845         (obstack_ptr_grow_fast, obstack_int_grow_fast):
68846         Don't use lvalue casts, as GCC plans to remove support for them
68847         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
68848         was also present in the non-GCC version, indicating that this
68849         code had always been buggy and had never been widely used.
68850         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
68851         Use the fast variant of each macro, rather than copying the
68852         definiens of the fast variant; that way, we'll be more likely to
68853         catch future bugs in the fast variants.
68854
68855 2003-10-20  Bruno Haible  <bruno@clisp.org>
68856
68857         * modules/wait-process: New file.
68858         * MODULES.html.sh (func_all_modules): Add wait-process.
68859
68860 2003-10-20  Bruno Haible  <bruno@clisp.org>
68861
68862         * m4/wait-process.m4: New file.
68863
68864 2003-10-20  Bruno Haible  <bruno@clisp.org>
68865
68866         * lib/wait-process.h: New file, from GNU gettext.
68867         * lib/wait-process.c: New file, from GNU gettext.
68868
68869 2003-10-19  Jim Meyering  <jim@meyering.net>
68870
68871         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
68872         HPUX 10.20.
68873
68874 2003-10-18  Karl Berry  <karl@gnu.org>
68875
68876         * config/config.guess: update from config.
68877
68878 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68879
68880         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
68881         (getgroups): First arg is int, not size_t.
68882         Don't let 'free' mangle errno.
68883
68884 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68885
68886         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
68887
68888 2003-10-16  Karl Berry  <karl@gnu.org>
68889
68890         * config/config.{guess,sub}: update from config.
68891
68892 2003-10-16  Jim Meyering  <jim@meyering.net>
68893
68894         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
68895         memcpy.
68896
68897 2003-10-15  Paul Eggert  <eggert@twinsun.com>
68898
68899         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
68900         (SIZE_MAX): Remove.
68901         (new_exclude, add_exclude_file): Initial size no longer needs to
68902         be a power of 2.
68903         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
68904         our own address arithmetic overflow checking.
68905
68906         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
68907         (fnmatch): Do not alloca more than 2000 wide characters;
68908         instead, use malloc for large buffers.
68909         Check for address arithmetic overflow, and return -1
68910         with errno set to ENOMEM in that case.
68911         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
68912         (NEW_PATTERN): Do not alloca more than 8000 bytes;
68913         instead, return -1.  Check for address arithmetic overflow.
68914
68915 2003-10-14  Paul Eggert  <eggert@twinsun.com>
68916
68917         Handle invalid suffixes and overflow independently, so that
68918         callers can treat them independently as needed.  Fix some bugs in
68919         suffix handling, e.g., "100k@" was not diagnosed as an invalid
68920         suffix for a human-readable blocksize.  The major caller-visible
68921         change is the addition of a new
68922         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
68923         that both overflow and suffix chars were found.
68924
68925         * lib/human.c (humblock): Don't check separately for invalid suffix
68926         char; that is xstrtoumax's job (now that its bug is fixed).
68927         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
68928         INTMAX_MAX]: New macros.
68929         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
68930         TYPE_MAXIMUM): New macros.
68931         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
68932         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
68933         if overflow occurs, as it's what __strtol does and it's more useful
68934         in practice.
68935         (__xstrtol): If __strtol reports some error other than ERANGE,
68936         reflect it to the caller as LONGINT_INVALID.  If it reports
68937         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
68938         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
68939         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
68940         value.
68941         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
68942         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
68943         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
68944         [defined UINTMAX_MAX]: New macros.
68945
68946 2003-10-14  Bruno Haible  <bruno@clisp.org>
68947
68948         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
68949
68950 2003-10-14  Bruno Haible  <bruno@clisp.org>
68951
68952         * m4/sig_atomic_t: New file, from GNU gettext.
68953         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
68954
68955 2003-10-14  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
68958         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
68959         Also use volatile where needed.
68960
68961 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68962
68963         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
68964         Change maintainer from Bruno Haible to 'all'.
68965
68966 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68967
68968         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
68969
68970 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68971
68972         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
68973         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
68974         and define in terms of the other primitives.
68975         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
68976         (SIZE_MAX): Define if not already defined.
68977         (array_size_overflow): New function.
68978         (xalloc_die): Abort instead of exiting if 'error' returns.
68979         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
68980         (xmalloc, xrealloc): Use them.
68981         (xcalloc): Check for address arithmetic overflow.
68982         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
68983         a bit faster than strcpy.
68984
68985 2003-10-10  Simon Josefsson  <jas@extundo.com>
68986
68987         * modules/argp (Depends-on): Add restrict and strcase.
68988
68989 2003-10-10  Simon Josefsson  <jas@extundo.com>
68990
68991         * m4/argp.m4: Add AC_C_INLINE.
68992
68993 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68994
68995         Merge getpass from libc, plus a few fixes.
68996
68997         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
68998         Include <stdbool.h>.
68999         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69000         __fsetlocking to empty.
69001         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69002         do include <bits/libc-lock.h>.
69003         Do not include <fcntl.h>; not needed.
69004         [_LIBC]: Include <wchar.h>.
69005         (NOTCANCEL_MODE): New macro.
69006         (flockfile, funlockfile) [_LIBC]: New macros.
69007         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69008         [!_LIBC]: New macros.
69009         (call_fclose): New function.
69010         (getpass): Use it.  Save tty stream separately; this simplifies the
69011         code and makes it more reliable if stdin happens to equal stdout.
69012         Invoke __fsetlocking on tty.
69013         Handle thread cancellation if needed.
69014         Namespace cleanup (use __tcgetattr, __getline).
69015         Use bool for Booleans.
69016         [USE_IN_LIBIO]: Handle wide streams.
69017         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69018         stream might go where.
69019
69020         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69021         doesn't have to include <stdio.h> before us.
69022         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69023         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69024         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69025         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69026         if not declared, so that we can use getpass.c code from libc without
69027         rewriting it.
69028         (flockfile, ftrylockfile, funlockfile): New macros.
69029
69030 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69031
69032         * modules/getpass: Depend on stdbool.
69033
69034 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69035
69036         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69037
69038 2003-10-07  Karl Berry  <karl@gnu.org>
69039
69040         * config/config.{guess,sub}: update from config.
69041
69042 2003-10-06  Jim Meyering  <jim@meyering.net>
69043             Bruno Haible  <bruno@clisp.org>
69044
69045         This lets translators provide better translations for the
69046         "Written by ..." part of --version output.
69047         * lib/version-etc.h: Include stdarg.h.
69048         (version_etc_copyright): Declare as readonly.
69049         (version_etc): Make this function variadic with a NULL-terminated list
69050         of author name strings.
69051         (version_etc_va): New declaration.
69052         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69053         (version_etc_copyright): Declare as readonly.
69054         (version_etc_va): New function. Provide a different translatable string
69055         for each possible number of authors < 10. Abbreviate when there are 10
69056         authors or more.
69057         (version_etc): Make this function variadic. Call version_etc_va.
69058         Suggestion from Gary V. Vaughan.
69059
69060         * lib/long-options.h (parse_long_options): Change prototype: the
69061         authors string is moved to the end and becomes variadic.
69062         * lib/long-options.c: Include stdarg.h.
69063         (parse_long_options): Make this function variadic, too.
69064         Call version_etc_va, not version_etc.
69065
69066 2003-10-06  Bruno Haible  <bruno@clisp.org>
69067
69068         * modules/version-etc-2: Remove file.
69069         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69070
69071 2003-10-06  Bruno Haible  <bruno@clisp.org>
69072
69073         * modules/fatal-signal: New file.
69074         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69075
69076 2003-10-06  Bruno Haible  <bruno@clisp.org>
69077
69078         * m4/fatal-signal.m4: New file.
69079         * m4/signalblocking.m4: New file, from GNU gettext.
69080
69081 2003-10-06  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/version-etc-2.h: Remove file.
69084         * lib/version-etc-2.c: Remove file.
69085
69086 2003-10-06  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/fatal-signal.h: New file, from GNU gettext.
69089         * lib/fatal-signal.c: New file, from GNU gettext.
69090
69091 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69092
69093         * README: Rework advice for preventing empty .o files.
69094         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69095         not <sys/types.h>.
69096
69097 2003-10-04  Karl Berry  <karl@gnu.org>
69098
69099         * lib/argp*: update from libc.
69100
69101 2003-10-04  Karl Berry  <karl@gnu.org>
69102
69103         * config/config.{guess,sub}: update from config.
69104
69105 2003-10-02  Bruno Haible  <bruno@clisp.org>
69106
69107         * modules/lchown (Include): Add lchown.h.
69108         * modules/time_r (Include): Use "..." syntax.
69109         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69110
69111 2003-10-01  Simon Josefsson  <jas@extundo.com>
69112
69113         * MODULES.html.sh (func_all_modules): Move gethostname from section
69114         'based on' to section 'lacking' POSIX:2001.
69115
69116 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69117
69118         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69119         to output mode on the same stream.
69120
69121 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69122
69123         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69124         Fix arg typo in previous patch.
69125
69126 2003-09-28  Jim Meyering  <jim@meyering.net>
69127
69128         * lib/error.c: Correct cpp indentation.
69129
69130 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69131
69132         * modules/free: New file.
69133
69134 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69135
69136         * m4/free.m4: New file.
69137
69138 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69139
69140         * lib/minmax.h (MIN, MAX)
69141         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69142         Omit the special code that used __typeof__, since we worry that
69143         it could be more trouble than it's worth.  See:
69144         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69145         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69146
69147         * lib/free.c: New file.
69148
69149 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69150
69151         Trivial fixes to Makefile.am parts of module listings.
69152         * modules/strstr: Append strstr.h to lib_SOURCES.
69153         * modules/strcase: Likewise, for strcase.h.
69154
69155 2003-09-27  Karl Berry  <karl@gnu.org>
69156
69157         * config/mkinstalldirs: update from automake.
69158
69159 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69160
69161         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69162         (error_tail): Do not loop, reallocating temporary buffer, since
69163         the output cannot contain more wide characters than the input
69164         contains bytes, the size must be big enough already.  This avoids
69165         one potential size overflow calculation.  Check for size overflow
69166         when calculating temporary buffer size.  Free temporary buffer
69167         when done, if it was allocated with malloc; this plugs a memory
69168         leak.  Remove casts from void * to pointers, that are no longer
69169         needed now that we're assuming C89 or better.
69170
69171         Merge error changes from glibc.
69172
69173         * lib/error.c, error.h: Update copyright notice header to match glibc.
69174         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69175         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69176         Disable cancellation while printing error.
69177         * lib/error.h: Prepend __ to parameter names.
69178
69179 2003-09-26  Jim Meyering  <jim@meyering.net>
69180
69181         * lib/error.c (error_tail): Move some declarations
69182         into inner scope where the local variables are used.
69183
69184 2003-09-26  Bruno Haible  <bruno@clisp.org>
69185
69186         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
69187         stpncpy().
69188         Don't define stpncpy through config.h; it's now done through stpncpy.h.
69189
69190 2003-09-26  Bruno Haible  <bruno@clisp.org>
69191
69192         * lib/stpncpy.h (gnu_stpncpy): New declaration.
69193         (stpncpy): Define as alias for gnu_stpncpy.
69194         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
69195
69196 2003-09-25  Simon Josefsson  <jas@extundo.com>
69197
69198         * lib/xgetdomainname.h: New file.
69199         * lib/xgetdomainname.c: New file.
69200
69201 2003-09-25  Simon Josefsson  <jas@extundo.com>
69202             Bruno Haible  <bruno@clisp.org>
69203
69204         * modules/getdomainname: New file.
69205         * modules/xgetdomainname: New file.
69206         * MODULES.html.sh (func_all_modules): Add getdomainname,
69207         xgetdomainname.
69208
69209 2003-09-25  Simon Josefsson  <jas@extundo.com>
69210             Bruno Haible  <bruno@clisp.org>
69211
69212         * m4/getdomainname.m4: New file.
69213
69214 2003-09-25  Simon Josefsson  <jas@extundo.com>
69215             Bruno Haible  <bruno@clisp.org>
69216
69217         * lib/getdomainname.h: New file.
69218         * lib/getdomainname.c: New file.
69219
69220 2003-09-25  Karl Berry  <karl@gnu.org>
69221
69222         * lib/argp-fmtstream.c, argp-help.c: update from libc.
69223
69224 2003-09-25  Karl Berry  <karl@gnu.org>
69225
69226         * config/install-sh: update from automake.
69227
69228 2003-09-25  Bruno Haible  <bruno@clisp.org>
69229
69230         * modules/version-etc-2: New file, from modules/version-etc with
69231         modifications.
69232         * MODULES.html.sh (func_all_modules): Add version-etc-2.
69233
69234 2003-09-25  Bruno Haible  <bruno@clisp.org>
69235
69236         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
69237         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
69238
69239 2003-09-24  Simon Josefsson  <jas@extundo.com>
69240
69241         * modules/xgethostname: Add xgethostname.h.
69242
69243 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69244
69245         * lib/linebuffer.c (freebuffer): Don't free the argument, just
69246         the buffer associated with the argument.  Bug reported by
69247         Simon Josefsson.
69248
69249 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69250
69251         * README: Document assumptions that 'int' is at least 32 bits
69252         wide, that integer arithmetic is 2's complement without overflow,
69253         that there are no holes in integer values, that adding sizes of
69254         two nonoverlapping objects can't overflow, and that all-bits-zero
69255         yields scalar zero.  Fix spelling and capitalization typos.
69256
69257 2003-09-19  Karl Berry  <karl@gnu.org>
69258
69259         * lib/argp.h: update from libc.
69260
69261 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69262
69263         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
69264         to avoid spurious warnings like "AC_RUN_IFELSE was called before
69265         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
69266
69267 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69268
69269         * gnulib-tool: Use "test -h", not "test -L", for portability
69270         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
69271         (tags_regexp): Remove, since \| doesn't conform to POSIX.
69272         (sed_extract_prog): Issue s commands one-by-one, rather than
69273         using \| in one s command.
69274
69275 2003-09-16  Paul Eggert  <eggert@twinsun.com>
69276
69277         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
69278         input error, instead of returning NULL the next time we are called
69279         (and therefore losing track of errno).
69280
69281 2003-09-16  Bruno Haible  <bruno@clisp.org>
69282
69283         * gnulib-tool (func_create_testdir): Warn about duplicated
69284         dependencies.
69285
69286 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69287
69288         * modules/argmatch, modules/fatal, modules/obstack,
69289         modules/xalloc, modules/xgethostname: Sort dependencies by
69290         importance, not alphabetically.
69291
69292 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69293
69294         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
69295         fails, so that the caller gets the proper errno.
69296
69297         * lib/readutmp.c (read_utmp): Likewise.
69298         Check for fstat error.  Close stream and free storage
69299         when failing.
69300
69301 2003-09-14  Karl Berry  <karl@gnu.org>
69302
69303         * config/srclist.txt (strdup.c): disable for c89 changes.
69304
69305 2003-09-14  Jim Meyering  <jim@meyering.net>
69306
69307         * lib/getloadavg.c: Correct cpp indentation.
69308         * lib/strdup.c: Likewise.
69309         * lib/vasnprintf.c: Likewise.
69310
69311 2003-09-14  Bruno Haible  <bruno@clisp.org>
69312
69313         * modules/fwriteerror: New file.
69314         * MODULES.html.sh (func_all_modules): Add fwriteerror.
69315
69316 2003-09-14  Bruno Haible  <bruno@clisp.org>
69317
69318         * lib/fwriteerror.h: New file.
69319         * lib/fwriteerror.c: New file.
69320
69321 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69322
69323         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
69324         modules/xgethostname, modules/xalloc: Depend on exit.
69325
69326 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69327
69328         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
69329
69330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
69331         and AC_MINIX, too, so that their extensions are available.
69332
69333         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
69334         This macro has been superseded by gl_BACKUPFILE.
69335
69336         More patches to assume C89 or better.
69337
69338         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
69339
69340         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
69341         unconditionally.
69342         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
69343         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
69344         Include <string.h>, <stdlib.h> unconditionally.
69345         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
69346         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
69347         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
69348         headers or for string.h.
69349         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
69350         or strtoul.
69351
69352         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
69353         headers.
69354         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
69355         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69356         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
69357         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
69358         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69359         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
69360         memcpy, memset.
69361         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
69362         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
69363         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
69364         strtol.
69365         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
69366         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
69367         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
69368         strtoul.
69369
69370 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69371
69372         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
69373         * lib/obstack.c [!defined _LIBC]: Likewise.
69374         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
69375         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
69376         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
69377
69378         More changes to assume C89 or better.
69379
69380         * lib/error.c (error_tail): Assume vprintf.
69381
69382         * lib/argmatch.c (getenv): Remove decl.
69383         * lib/progreloc.c (get_full_program_name): Define via prototype.
69384         * lib/setenv.c (clearenv): Likewise.
69385         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
69386         needed.
69387         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
69388         (malloc, memcpy): Remove decls.
69389         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
69390         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
69391         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69392         (memcpy): Remove macro.
69393         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
69394         (__P): Remove.  All uses removed.
69395         (PTR): Remove.  All uses changed to void *.
69396         (CHAR_BIT, NULL): Remove.
69397         (spaces, zeros, memset_space, memset_zero)
69398         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
69399         Remove.
69400         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
69401         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
69402         Define with prototype.
69403         Remove now-unnecessary prototype decl.
69404         (extra_args_spec): Assume ANSI C.  All uses changed.
69405         (extra_args_spec_iso): Remove.
69406         (my_strftime, emacs_strftimeu): Define via prototype.
69407         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
69408         unconditionally.
69409         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
69410         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
69411         (strtoul, strtol): Remove decls.
69412         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
69413         LONG_MAX): Remove.
69414         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69415         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
69416         (LOCALE_PARAM_PROTO): New macro.
69417         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
69418         (INTERNAL (strtol), strtol): Define with a prototype.
69419         (PARAMS): Remove.  All uses removed.
69420         * lib/tempname.c: Include <string.h> unconditionally.
69421         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
69422         * lib/xgethostname.c (main): Define with a prototype.
69423         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
69424         Include <stdlib.h> unconditionally.
69425         (calloc, malloc, realloc, free): Remove decls.
69426         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
69427         Include <stdlib.h> unconditionally.  Sort include file names.
69428         (strtod): Remove.
69429         (xstrtod): Define with a prototype.
69430         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69431         (strtol, strtoul): Remove decls.
69432
69433 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69434
69435         More patches to assume C89 or better.
69436         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69437         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69438         string.h, memchr, STDC_HEADERS.
69439
69440 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69441
69442         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
69443         Include <stdlib.h>, <string.h> unconditionally.
69444         Remove now-unnecessary cast to char *.
69445         * lib/strnlen.c: Include <string.h> unconditionally.
69446         * lib/yesno.c (yesno): Define with a prototype.
69447
69448 2003-09-11  Bruno Haible  <bruno@clisp.org>
69449
69450         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
69451
69452 2003-09-10  Jim Meyering  <jim@meyering.net>
69453
69454         * lib/error.c: Correct indentation of cpp directives.
69455
69456 2003-09-10  Bruno Haible  <bruno@clisp.org>
69457
69458         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
69459         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
69460         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
69461         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
69462         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
69463         <stdlib.h> and <string.h> checks.
69464         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
69465         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
69466
69467 2003-09-10  Bruno Haible  <bruno@clisp.org>
69468
69469         * lib/strcspn.c: Include <string.h> unconditionally.
69470         * lib/strpbrk.c: Include <string.h> unconditionally.
69471         * lib/strstr.c: Include <string.h> unconditionally.
69472         * lib/unicodeio.c: Include <string.h> unconditionally.
69473         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
69474         * lib/unsetenv.c: Likewise.
69475         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
69476         * lib/yesno.c: Include <stdlib.h> unconditionally.
69477         (rpmatch): Add prototype.
69478
69479 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69480
69481         More patches to assume C89 or better.
69482         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
69483         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
69484         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
69485         or for string.h.
69486         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
69487         stdlib.h.
69488         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
69489         C headers.
69490         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
69491         string.h.
69492         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
69493         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
69494         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
69495         or for string.h.
69496         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
69497         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
69498         C headers.
69499         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
69500         memcpy.
69501         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
69502         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
69503         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
69504         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
69505         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
69506         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
69507         string.h, free.
69508         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
69509         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
69510         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
69511         C headers, or for string.h.
69512         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
69513         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
69514         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
69515         headers, memory.h, stdlib.h, string.h, strings.h.
69516         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
69517         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
69518         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
69519         strchr.
69520         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
69521         headers, memory.h, string.h.
69522         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
69523         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
69524         free.
69525         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
69526         headers.
69527         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
69528         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
69529         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
69530         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
69531         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
69532
69533 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69534
69535         More K&R removal.
69536
69537         * lib/acosl.c (main): Use a prototype.
69538         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
69539         tanl.c: Likewise.
69540
69541         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
69542
69543         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
69544         (getopt, etopt_long, getopt_long_only, _getopt_internal)
69545         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
69546         with a prototype.
69547         * lib/getopt.c (const): Remove macro.
69548         Include <string.h> unconditionally.
69549         (my_index): Remove; all uses changed to strchr.
69550         (strlen): Remove decl.
69551         (exchange): Remove forward decl; no longer needed.
69552         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
69553         Define with prototype.
69554         * lib/getopt1.c (const): Remove macro.
69555         (getopt_long, getopt_long_only, main): Define with prototype.
69556
69557         * lib/getugroups.c: Include <string.h> unconditionally.
69558
69559         * lib/getusershell.c: Include <stdlib.h> unconditionally.
69560         (getusershell, setusershell, endusershell, readname, main):
69561         Define with prototypes.
69562
69563         * lib/group-member.c: Include group-member.h first.
69564         Include <stdlib.h> unconditionally.
69565
69566         * lib/hard-locale.c: Include hard-locale.h first.
69567         Include <stdlib.h>, <string.h> unconditionally.
69568
69569         * lib/hash.c (free, malloc): Remove decls.
69570         Include <stdlib.h> unconditionally.
69571
69572         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
69573         (getenv): Do not declare.
69574
69575         * lib/idcache.c: Include <string.h> unconditionally.
69576
69577         * lib/long-options.c: Include long-options.h first, to test interface.
69578         Include <stdlib.h> unconditionally.
69579
69580         * lib/makepath.c: Include makepath.h first, to test interface.
69581         Include <stdlib.h> and <string.h> unconditionally.
69582
69583         * lib/linebuffer.c: Include <stdlib.h>.
69584         (free): Remove decl.
69585
69586         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
69587         stddef.h. rpl_malloc returns void *, not char *.
69588         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
69589         prototype.
69590
69591         * lib/md5.h: Include <limits.h> unconditionally.
69592         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
69593         (__P): Remove; all uses removed.
69594         * lib/md5.c: Include "md5.h" first.
69595         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
69596         md5_buffer, md5_process_bytes, md5_process_block):
69597         Define with prototypes.
69598         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
69599         * lib/sha.c: Include "sha.h" first.
69600         Include <stdlib.h>, <string.h> unconditionally.
69601
69602         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
69603         * lib/memcmp.c (__ptr_t): Likewise.
69604         * lib/memrchr.c (__ptr_t): Likewise.
69605         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
69606         Include <string.h> unconditionally.
69607         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
69608         * lib/memchr.c: Include <stdlib.h> unconditionally.
69609         * lib/memchr.c (LONG_MAX): Remove.
69610         * lib/memrchr.c (LONG_MAX): Likewise.
69611         * lib/memchr.c (__memchr): Define via a prototype.
69612         * lib/memrchr.c (__memrchr): Likewise.
69613         * lib/memcmp.c (__P): Remove, and remove all uses.
69614         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
69615         Remove forward decls; no longer needed.
69616         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
69617         Use types required by C89 in prototype.
69618
69619         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
69620         * lib/savedir.c: Likewise.
69621         * lib/mkdir.c (free): Remove decl.
69622         * lib/rmdir.c (rmdir): Define with a prototype.
69623         * lib/savedir.c: Include savedir.h first, to test interface.
69624
69625         * lib/mktime.c (STDC_HEADERS): Remove.
69626         Include <stdlib.h>, <string.h> unconditionally.
69627
69628         * lib/modechange.c: Include <stdlib.h> unconditionally.
69629         (malloc): Remove decl.
69630
69631         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
69632         (free): Remove decl.
69633
69634         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
69635         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
69636         (This type really should be intptr_t, but that's a C99ism.)
69637         (_obstack_memcpy): Remove: all uses changed to memcpy.
69638         Include <string.h> unconditionally.
69639         (struct obstack): Assume __STDC__ for types of members
69640         chunkfun, freefun, extra_arg.
69641         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69642         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69643         obstack_begin, obstack_specify_allocation,
69644         obstack_specify_allocation_with_arg, obstack_chunkfun,
69645         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69646         Remove unprototyped decls and the macros that use them.
69647         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69648         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69649         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69650         (defined __STDC__ && __STDC__)]:
69651         Remove nonprototyped code.
69652         Include <stdlib.h> unconditionally.
69653         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69654         _obstack_allocated_p, _obstack_free, obstack_free,
69655         _obstack_memory_used, print_and_abort):
69656         Define using prototypes.
69657         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69658         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69659         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69660         obstack_next_free, obstack_object_size, obstack_room) [0]:
69661         Remove unused, unprototyped code.
69662
69663         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69664
69665         * lib/physmem.c (physmem_total, physmem_available, main): Define
69666         with prototypes.
69667
69668         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
69669         (main): Define with a prototype.
69670
69671         * lib/posixver.c (getenv): Remove decl.
69672
69673         * lib/putenv.c (malloc): Returns void *, not char *.
69674         Include <string.h> unconditionally.
69675         (strchr, memcpy, NULL): Do not define.
69676
69677         * lib/readtokens.c: Include readtokens.h first, to test interface.
69678         Include <stdlib.h>, <string.h> unconditionally.
69679         (init_tokenbuffer): Define with a prototype.
69680
69681         * lib/regex.c (PARAMS): Remove.  All uses removed.
69682         All uses of _RE_ARGS removed, too.
69683         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69684         unconditionally.
69685         (bzero): Assume memset exists.
69686         (memcmp, memcpy, NULL): Remove.
69687         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
69688         char, or assignments to local vars of type signed char.
69689         (init_syntax_once, PREFIX(extract_number_and_incr),
69690         PREFIX(print_partial_compiled_pattern),
69691         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
69692         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
69693         PREFIX(regex_grow_registers), PREFIX(regex_compile),
69694         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
69695         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
69696         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
69697         wcs_compile_range, byte_compile_range, truncate_wchar,
69698         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
69699         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
69700         count_mbs_length, wcs_re_match_2_internal,
69701         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
69702         PREFIX(alt_match_null_string_p),
69703         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
69704         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
69705         regfree, PREFIX(extract_number)): Define with prototype.  Remove
69706         now-unnecessary declaration, if any.
69707         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
69708         regcomp, regexec):
69709         Remove now-unnecessary casts among pointer types.
69710         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
69711
69712         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
69713         (free): Remove decl.
69714
69715         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
69716
69717         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
69718         (free): Remove decl.
69719
69720         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
69721         * lib/xgetcwd.c: Likewise.
69722
69723         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
69724         (free): Remove decl.
69725
69726         * lib/strchrnul.c (strchrnul): Define with a prototype.
69727         Fix bug: c_in was not converted to char before searching.
69728
69729         The following changes are not K&R related:
69730
69731         * lib/group-member.h: Include <sys/types.h>, so that this file is
69732         self-contained.
69733         * lib/makepath.h: Likewise.
69734
69735         * lib/getusershell.c (readname, default_index, line_size, readname):
69736         Use size_t, not int, for sizes.
69737         (readname): If the size overflows, report an error instead of
69738         looping forever.
69739
69740 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69741
69742         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
69743         libc.
69744
69745 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69746
69747         * README: New section: portability guidelines.
69748
69749 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69750
69751         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
69752         C89 spec.
69753
69754 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69755
69756         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
69757
69758 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69759
69760         Assume C89 or better; remove K&R cruft.
69761         A few of these changes were first proposed by Derek Robert Price
69762         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
69763
69764         * lib/addext.c: Include <string.h> unconditionally.
69765         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
69766         Don't declare getenv or malloc.
69767
69768         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
69769         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
69770         (NULL): Remove.
69771         (find_stack_direction, alloca): Use prototypes.
69772
69773         * lib/atexit.c (atexit): Define using a prototype.
69774
69775         * lib/basename.c, dirname.c, stripslash.c:
69776         Include <string.h> unconditionally.
69777
69778         * lib/bcopy.c: Include <stddef.h>.
69779         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69780
69781         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69782
69783         * lib/error.h (error, error_at_line, error_print_progname)
69784         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69785         * lib/error.c: Include error.h first, to check interface.
69786         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69787         (VA_START): Remove; all uses changeed to va_start.
69788         (exit, strerror): Remove decls.
69789         (error_print_progname): Prototype uncondionally.
69790         Don't include <errno.h>; no longer needed.
69791         (private_strerror): Remove.
69792         (error_tail): Always define.
69793         (error, error_at_line): Assume C89 or better; always use prototypes.
69794         * lib/fatal.c: Include "fatal.h" first, to test interface.
69795         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69796         (VA_START): Remove; all uses changed to va_start.
69797         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69798         this case.
69799         (exit): Remove decl.
69800         (fatal): Prototype unconditionally.  Assume va_start works.
69801         Abort at end, to pacify gcc.
69802
69803         * lib/euidaccess.c (main): Define with a prototype.
69804
69805         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69806
69807         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69808
69809         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69810         prototypes.
69811         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69812         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69813         (getenv): Remove decl.
69814         (fnmatch): Define using a prototype.
69815         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
69816         (FCT): Define using a prototype.
69817
69818         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
69819
69820         * lib/gethostname.c: Include <stddef.h>.
69821         (gethostname): Define with prototype.  Length is size_t, not int.
69822
69823 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69824
69825         Assume C89 or better; remove K&R cruft.
69826         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
69827         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
69828         string.h, getenv, malloc.
69829         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
69830         headers.
69831         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
69832         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
69833         do not check for strerror.
69834         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
69835         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
69836         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
69837         do not check for doprnt or vprintf.
69838         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
69839         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
69840
69841 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69842
69843         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
69844         getversion.c should have been removed then, but was accidentally
69845         preserved.
69846
69847         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
69848         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
69849
69850 2003-09-08  Karl Berry  <karl@gnu.org>
69851
69852         * config/config.sub, config.guess, srclistvars.sh: update from savannah
69853                 config, forget about prep.
69854
69855         * config/depcomp, missing: update from automake.
69856
69857 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69858
69859         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
69860         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69861
69862 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69863
69864         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
69865         copy_tm_result.  Bug reported by Simon Josefsson in
69866         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69867
69868 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69869
69870         * m4/time_r.m4: New file.
69871         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
69872         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
69873         is. Check for timegm declaration.
69874         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
69875         Do not check for gmtime_r.
69876         Replace mktime if __mktime_internal does not exist and if mktime
69877         hasn't been replaced already.
69878
69879 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69880
69881         * lib/time_r.c, lib/time_r.h: New files.
69882
69883         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
69884         __localtime_r.
69885         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
69886         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
69887
69888         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
69889         __gmtime_r.
69890         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
69891         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
69892         Include <time_r.h>.
69893
69894         * lib/timegm.c: Switch to glibc implementation, with the following
69895         changes:
69896         [defined HAVE_CONFIG_H]: Include <config.h>.
69897         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
69898         (__mktime_internal) [!defined _LIBC]: New decl.
69899         (__gmtime_r) [!defined _LIBC]: New macro and function.
69900         (timegm): Use a prototype, since gnulib assumes C89.
69901         Do not bother declaring tmp to be const, as it's not really usefu.
69902         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
69903         (timegm): Declare only if HAVE_DECL_TIMEGM.
69904
69905 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69906
69907         * MODULES.html.sh (func_all_modules): Add time_r.
69908         * modules/time_r: New file.
69909         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
69910         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
69911
69912 2003-09-03  Paul Eggert  <eggert@twinsun.com>
69913
69914         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
69915         Bug reported by Lute Kamstra in
69916         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
69917
69918         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
69919         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
69920         course with correspondingly smaller numbers for tomorrow and
69921         yesterday.  From Tadayoshi Funaba.  Originally installed into
69922         sh-utils on 1999-08-07, but the patch got lost (I guess during the
69923         coreutils merge?).
69924
69925 2003-08-31  Simon Josefsson  <jas@extundo.com>
69926
69927         * modules/timegm: New file.
69928         * MODULES.html.sh (func_all_modules): Add timegm.
69929
69930 2003-08-31  Simon Josefsson  <jas@extundo.com>
69931
69932         * m4/timegm.m4: New file.
69933
69934 2003-08-31  Simon Josefsson  <jas@extundo.com>
69935
69936         * lib/timegm.h: New file.
69937         * lib/timegm.c: New file.  Based on
69938         wget-1.8.2/src/http.c:mktime_from_utc.
69939
69940 2003-08-31  Karl Berry  <karl@gnu.org>
69941
69942         * lib/argp.h: update from libc.
69943
69944 2003-08-28  Bruno Haible  <bruno@clisp.org>
69945
69946         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
69947         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
69948         followed by '#define fnmatch fnmatch_posix' gives an error.
69949
69950 2003-08-28  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
69953         warning on QNX, which defines O_BINARY to 000000.
69954
69955 2003-08-27  Jim Meyering  <jim@meyering.net>
69956
69957         * m4/mkstemp.m4: Require that the system mkstemp be able to create
69958         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
69959         would fail after 32.  Reported by Danny Levinson.  Details here:
69960         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
69961
69962 2003-08-24  Bruno Haible  <bruno@clisp.org>
69963
69964         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
69965         MSVC7 <stdio.h> is included later.
69966
69967 2003-08-22  Simon Josefsson  <jas@extundo.com>
69968
69969         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
69970
69971 2003-08-20  Karl Berry  <karl@gnu.org>
69972
69973         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
69974
69975 2003-08-20  Bruno Haible  <bruno@clisp.org>
69976
69977         * modules/progname: New file.
69978         * MODULES.html.sh (func_all_modules): Add progname.
69979
69980 2003-08-20  Bruno Haible  <bruno@clisp.org>
69981
69982         * lib/progname.h: New file, from GNU gettext.
69983         * lib/progname.c: New file, from GNU gettext.
69984         * lib/progreloc.c: New file, from GNU gettext.
69985
69986 2003-08-19  Jim Meyering  <jim@meyering.net>
69987
69988         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
69989         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
69990
69991 2003-08-19  Bruno Haible  <bruno@clisp.org>
69992
69993         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
69994         more.
69995
69996 2003-08-19  Bruno Haible  <bruno@clisp.org>
69997
69998         * lib/xstrdup.c: Assume <string.h> exists.
69999
70000 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70001
70002         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70003         in makefile rules.
70004
70005 2003-08-18  Jim Meyering  <jim@meyering.net>
70006
70007         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70008         * m4/lib-ld.m4: Likewise.
70009
70010 2003-08-18  Jim Meyering  <jim@meyering.net>
70011
70012         * lib/setenv.h: Indent nested cpp directive.
70013         * lib/vasnprintf.c: Remove trailing blanks.
70014
70015 2003-08-17  Simon Josefsson  <jas@extundo.com>
70016
70017         * modules/xstrndup: New file.
70018         * MODULES.html.sh (func_all_modules): Add xstrndup.
70019
70020 2003-08-17  Simon Josefsson  <jas@extundo.com>
70021
70022         * modules/argp: Fix autoconf macro name. Add more dependencies.
70023
70024 2003-08-17  Simon Josefsson  <jas@extundo.com>
70025
70026         * m4/xstrndup.m4: New file.
70027
70028 2003-08-17  Simon Josefsson  <jas@extundo.com>
70029
70030         * m4/argp.m4: New file.
70031
70032 2003-08-17  Simon Josefsson  <jas@extundo.com>
70033             Bruno Haible  <bruno@clisp.org>
70034
70035         * lib/xstrndup.h: New file.
70036         * lib/xstrndup.c: New file.
70037
70038 2003-08-17  Bruno Haible  <bruno@clisp.org>
70039
70040         * modules/strndup (Files, Include): Add lib/strndup.h.
70041
70042 2003-08-17  Bruno Haible  <bruno@clisp.org>
70043
70044         * modules/euidaccess (Files): Add lib/euidaccess.h.
70045
70046 2003-08-17  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/strndup.h: New file.
70049
70050 2003-08-17  Bruno Haible  <bruno@clisp.org>
70051
70052         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70053         like AC_GNU_SOURCE.
70054         * modules/extensions (configure.ac): Comment out the invocation of
70055         gl_USE_SYSTEM_EXTENSIONS.
70056
70057 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70058
70059         Merges from coreutils, etc.
70060         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70061         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70062         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70063         fixing a typo.
70064         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70065         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70066
70067 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70068
70069         Document merge from coreutils.
70070         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70071         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70072         * modules/utime: Add m4/utimes-null.m4.
70073
70074 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70075
70076         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70077         space, undoing this 2003-08-12 change:
70078         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70079
70080 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70081
70082         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70083         strtoul.c from libc, undoing this 2003-08-12 change:
70084         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70085
70086 2003-08-16  Jim Meyering  <jim@meyering.net>
70087
70088         Merges from coreutils.
70089         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70090         prefix.  Adjust cache variables similarly.  Create 500 rather than
70091         just 300 files, to exercise bug on Darwin6.5, too.
70092         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70093         $missing_dir.
70094         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70095         AM_SYS_POSIX_TERMIOS.
70096         Reported by mkc@mathdogs.com.
70097         Also change use of $am_cv_sys_posix_termios
70098         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70099         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70100         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70101         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70102         in /proc/mounts until it finds one with matching device number.  This
70103         is unnecessary when the FILE argument *is* a mount point.  No stat call
70104         is necessary in that case.  So, disable the statvfs-testing code on
70105         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70106         as RedHat bug# 84846.
70107         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70108         to 1MB, so as not to render systems with no stack size limit (e.g.,
70109         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70110         Include <unistd.h>.  On some systems,
70111         it is required for the definition of _SC_PAGESIZE.
70112
70113 2003-08-16  Jim Meyering  <jim@meyering.net>
70114
70115         Merge from coreutils.
70116         * lib/xstrtoimax.c: #else #if -> #elif.
70117         * lib/xstrtoumax.c: Likewise.
70118
70119 2003-08-16  Jim Meyering  <jim@meyering.net>
70120
70121         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70122         * m4/utimes.m4: Removed.
70123         * m4/utimes-null.m4: Renamed from utimes.m4.
70124
70125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70126         to 1MB, so as not to render systems with no stack size limit (e.g.,
70127         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70128         Include <unistd.h>.  On some systems,
70129         it is required for the definition of _SC_PAGESIZE.
70130
70131 2003-08-16  Jim Meyering  <jim@meyering.net>
70132         and Paul Eggert  <eggert@cs.ucla.edu>
70133
70134         Merges from coreutils, etc.
70135
70136         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70137         using the latest version from cvs.  This avoids problems with #line
70138         directives using a vendor (Sun) compiler.
70139         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70140         Don't set GETGROUPS_LIB here; now it's
70141         done via getgroups.m4's wrapper function.
70142         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70143         rather than just in sh-util/configure.in, so that the
70144         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70145         same.
70146         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70147         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70148         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70149         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70150         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70151         Remove code that is now done by the newly-required macros.
70152         Append $(EXEEXT) to DF_PROG.
70153         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70154         Do not invoke or require the following here,
70155         since prereq.m4 or some gnulib .m4 now does this for us:
70156         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70157         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70158         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70159         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70160         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70161         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70162         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70163         AC_FUNC_OBSTACK.
70164         Do not replace the following functions, as this is now the job
70165         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70166         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70167         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70168         atexit getpass, strdup, getpagesize.
70169         Replace 'raise'.
70170         Do not check for the following functions, as this is now the job
70171         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70172         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70173         setregid.
70174         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70175         Check for sys/sysctl.h.
70176         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
70177         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
70178         of checking for ssize_t ourselves.
70179
70180         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
70181         Require every macro that gnulib/modules/* suggests for us.
70182         (jm_PREREQ_ADDEXT): New macro.
70183         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
70184         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
70185
70186         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
70187         (gl_PHYSMEM): Use it.
70188         Also check for `table' function.
70189         Check for new headers and functions.
70190         Add check for sys/sysmp.h.
70191         With suggestions from Kaveh Ghazi.
70192         Ignore headers that are present but cannot be compiled.  This
70193         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
70194         C 5.4.
70195
70196 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70197
70198         Document merge from coreutils.
70199         * modules/userspec: Depend on posixver.
70200         * modules/strftime: Depend on tzset.
70201
70202 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70203
70204         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
70205         rather than tab, after '#' in shell-script copyright notices.
70206         Suggested by Bruno Haible.
70207
70208 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70209
70210         * config/srclist-update: Use three spaces, rather than tab, after '#'
70211         in shell-script copyright notices.  Suggested by Bruno Haible.
70212         Remove unnecessary parenthesization in regular expression.
70213
70214 2003-08-15  Jim Meyering  <jim@meyering.net>
70215
70216         Merge from coreutils.
70217         * lib/xgethostname.c: Include <stdlib.h>.
70218         (xghostname): Don't exit for anything other than memory-related
70219         failure; just return NULL.
70220         * lib/userspec.c: Include "posixver.h".
70221         (parse_user_spec): Accept `.' as a separator only
70222         in pre-POSIX-200112 mode.
70223         * lib/strtoimax.c: Use #elif rather than #else #if.
70224         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
70225         Remove function, now that we can rely on a working tzset function.
70226         [!_LIBC]: Ensure that the required autoconf test has been run.
70227         [!defined _NL_CURRENT && HAVE_STRFTIME]:
70228         Use underlying_strftime for %r.
70229         * lib/sha.c: Merge in some clean-up and optimization changes from
70230         glibc.
70231         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
70232         Ensure that it is a multiple of 64.
70233         Rearrange loop exit tests so as to avoid performing an
70234         additional fread after encountering an error or EOF.
70235         * lib/realloc.c: Update copyright date.
70236
70237 2003-08-15  Jim Meyering  <jim@meyering.net>
70238         and Paul Eggert  <eggert@twinsun.com>
70239
70240         Merge from coreutils.
70241         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
70242         member but strut utmpx does not.  Needed for AIX 4.3.3.
70243         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
70244
70245 2003-08-15  Jim Meyering  <jim@meyering.net>
70246         and Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         Merges from coreutils, etc.
70249         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
70250         Require gl_FUNC_TZSET_CLOBBER.
70251         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
70252         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
70253         members.
70254
70255 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70256
70257         Help the merge from coreutils.
70258         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
70259         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
70260         * m4/tzset.m4: Use it too.
70261
70262 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70263
70264         * modules/tzset: New file.
70265
70266 2003-08-14  Jim Meyering  <jim@meyering.net>
70267
70268         Merges from coreutils.
70269         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
70270         variable names, rather than @FNMATCH_H@.
70271         * modules/alloca: Likewise for $(ALLOCA_H).
70272
70273         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
70274         the three copies of the literal target, `fnmatch.h'.
70275         * modules/alloca (alloca.h): Likewise.
70276
70277 2003-08-14  Jim Meyering  <jim@meyering.net>
70278
70279         Merge from coreutils.
70280         * m4/tzset.m4: New file.
70281         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
70282         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
70283         otherwise, AIX 5.1 systems would end up using the latter.
70284         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
70285         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
70286         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
70287         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
70288
70289 2003-08-14  Jim Meyering  <jim@meyering.net>
70290
70291         Merge from coreutils.
70292         * lib/obstack.h: Whitespace changes.
70293         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
70294         and xcalloc return values.
70295         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
70296         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
70297         hang on OSF/1 5.1 for DIR on both local and remote file systems.
70298         Reported by (and fix confirmed by) Nelson H. F. Beebe.
70299         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70300         error from mntctl.
70301         Use mntctl's return value to drive the entry-processing loop, since
70302         we can't rely on the value of the vmt_length member in the last
70303         entry.  On some systems doing so could result in exhausting
70304         virtual memory.  Based in part on a patch from Mike Jetzer.
70305
70306 2003-08-14  Jim Meyering  <jim@meyering.net>
70307         and Paul Eggert  <eggert@twinsun.com>
70308
70309         Merges from coreutils, plus other fixes.
70310         * lib/physmem.c: Merge in portability changes from gcc/libiberty
70311         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
70312         for credits and details.  Thanks to Kaveh Ghazi for helping
70313         to keep these files in sync.
70314         (ARRAY_SIZE): Define it.
70315         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
70316         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
70317         (memcasecmp): Don't assume size_t fits in unsigned int.
70318         Remove casts and duplicate code.
70319         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
70320         (memcpy): Remove definition.
70321         Merge in some clean-up and optimization changes from glibc.
70322         [BLOCKSIZE]: Move definition to top of file.
70323         Ensure that it is a multiple of 64.
70324         Rearrange loop exit tests so as to avoid performing an
70325         additional fread after encountering an error or EOF.
70326         * lib/md5.h (md5_uintptr): Define.
70327         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
70328         return to the initial working directory.  Preserve errno
70329         for caller.
70330         * lib/idcache.c: Include "xalloc.h".
70331         (xmalloc, xrealloc): Remove decls.
70332         (getuser): Remove casts no longer required in C89.
70333         * lib/human.c: Include stdio.h, for sprintf.
70334         * lib/group-member.c: Include "xalloc.h".
70335         (xmalloc, xrealloc): Remove decls.
70336         (get_group_info): Remove casts no longer required in C89.
70337         * lib/getusershell.c (readname): Remove casts no longer required in
70338         C89.
70339         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
70340         * lib/getline.c: Whitespace fix, from coreutils.
70341
70342 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70343
70344         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
70345         Check for isascii.
70346
70347         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70348         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70349         Undo previous (whitespace-only) change.
70350
70351 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70352
70353         * lib/exclude.c: Include <ctype.h>
70354         (IN_CTYPE_DOMAIN): New macro.
70355         (is_space): New fn.
70356         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
70357         and empty lines.
70358
70359         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70360         Undo previous (whitespace-only) change.
70361
70362 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70363
70364         * config/srclist-update: Change update back to the old behavior,
70365         leaving whitespace alone.  Use one 'sed' command rather than a
70366         pipeline.
70367         (fixlicense): Now a variable, not a function.
70368         (remove_trailing_blanks): Remove.
70369         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
70370         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70371         Undo previous (whitespace-only) change.
70372
70373 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70374
70375         Merge from coreutils.
70376         * modules/euidaccess: Add lib_SOURCES, include for new
70377         file euidaccess.h
70378
70379 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70380
70381         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70382         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70383         Normalize leading white space and remove trailing white space.
70384
70385         Merge from coreutils
70386         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
70387
70388         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
70389         0.12.1.  These files are now being upgraded automatically by
70390         ../config/srclist-update.
70391
70392 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70393
70394         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70395         Normalize leading white space and remove trailing white space.
70396         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
70397         notice, as per ../config/srclist-update.
70398
70399         Merge from coreutils.
70400         * lib/euidaccess.h: New file.
70401         * lib/euidaccess.c: Include it.
70402         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
70403         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
70404         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
70405
70406 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70407
70408         * config/srclist-update: Add copyright notice.
70409         (remove_id_lines, remove_trailing_blanks): New constants.
70410         (fixfile): Use them to normalize spacing a bit in copied files.
70411         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70412         Normalize leading white space and remove trailing white space.
70413
70414         * config/texinfo.tex: Sync with texinfo.
70415
70416         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
70417         strtoul.c from libc, to merge coreutils whitespace changes.
70418
70419         * config/srclist.txt: Get the following m4 files from gettext:
70420         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
70421         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
70422         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
70423         wint_t.m4.
70424
70425 2003-08-12  Karl Berry  <karl@gnu.org>
70426
70427         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
70428         been made.
70429
70430 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70431
70432         * modules/gnu-source, m4/gnu-source.m4:
70433         Remove; we're assuming Autoconf 2.54 or later now.
70434         Suggested by Bruno Haible.
70435         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70436
70437 2003-08-11  Bruno Haible  <bruno@clisp.org>
70438
70439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70440
70441 2003-08-11  Bruno Haible  <bruno@clisp.org>
70442
70443         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
70444         (vasnprintf): Use it instead of wcslen.
70445
70446 2003-08-11  Bruno Haible  <bruno@clisp.org>
70447
70448         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
70449         value to ensure that _Bool promotes to int. Use #define for _Bool when
70450         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
70451
70452 2003-08-10  Karl Berry  <karl@gnu.org>
70453
70454         * lib/regex.h: update from libc (whitespace fix).
70455
70456 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70457
70458         Merge some files from coreutils.  These changes were
70459         originally made by Jim Meyering.
70460         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
70461         many older Unixes require this.
70462         * lib/alloca.c (alloca): Remove cast to argument of free;
70463         no longer needed in C89.
70464         * lib/alloca_.h, regex.h: Fix white space to match
70465         what GNU indent does.
70466
70467 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70468
70469         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
70470         apparently Emacs's Unicode mode got confused before my 2003-08-05
70471         checkin.
70472
70473 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70474
70475         * m4/extensions.m4: New file.
70476         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
70477         Require gl_USE_SYSTEM_EXTENSIONS.
70478         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
70479         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
70480
70481 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70482
70483         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
70484         * modules/extensions, modules/gnu-source: New files.
70485         * modules/timespec, modules/unlocked-io: Depend on extensions.
70486
70487 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70488
70489         * modules/restrict: New file.
70490         * MODULES.html.sh (func_all_modules): Add restrict.
70491         * modules/regex: Depend on restrict.
70492
70493 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70494
70495         * m4/restrict.m4: New file.
70496         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
70497
70498 2003-08-07  Bruno Haible  <bruno@clisp.org>
70499
70500         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
70501         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
70502
70503 2003-08-07  Bruno Haible  <bruno@clisp.org>
70504
70505         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
70506         makes the module 'getndelim2' compatible with the module 'getline'.
70507
70508 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70509
70510         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
70511         byte with "\201" to avoid glitches when editing that source file
70512         with multi-gnome-terminal.
70513
70514 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70515
70516         * lib/bumpalloc.h: Remove.
70517
70518 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70519
70520         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
70521         * modules/bumpalloc: Remove.
70522
70523 2003-08-04  Paul Eggert  <eggert@twinsun.com>
70524
70525         * lib/getloadavg.c: Change copyright notice and spacing to conform to
70526         GNU coding style.
70527
70528         Merge from coreutils.
70529         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
70530         1. From glibc.
70531         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
70532         from Karl Berry, implemented by Jim Meyering.
70533         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
70534         from Dmitry V. Levin.
70535         Remove anachronistic cast of xrealloc.
70536         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
70537         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
70538         type. Otherwise, it wouldn't compile with at least /bin/cc on
70539         ymp-cray-unicos9.0.2.X.
70540         Combine two mostly-identical uses of alloca into one.
70541         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
70542
70543 2003-08-04  Dave Love  <d.love@dl.ac.uk>
70544
70545         [From Emacs.]
70546
70547         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
70548         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
70549         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
70550         obsolete NLIST_NAME_UNION.
70551         [__GNU__]: Undef BSD and FSCALE.
70552         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
70553
70554 2003-08-03  Paul Eggert  <eggert@twinsun.com>
70555
70556         * lib/stdbool_.h (_Bool): Make it signed char, instead of
70557         an enum type, so that it's guaranteed to promote to int.  See:
70558         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
70559
70560 2003-08-03  Karl Berry  <karl@gnu.org>
70561
70562         * config/depcomp: update from automake.
70563
70564 2003-07-31  Paul Eggert  <eggert@twinsun.com>
70565
70566         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
70567         (strerror): Don't assume that a printable int fits in 14 bytes.
70568
70569 2003-07-31  Bruno Haible  <bruno@clisp.org>
70570
70571         * modules/getpass-gnu: New file.
70572         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
70573
70574 2003-07-31  Bruno Haible  <bruno@clisp.org>
70575
70576         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
70577
70578 2003-07-24  Karl Berry  <karl@gnu.org>
70579
70580         * config/missing: update from automake.
70581
70582 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
70583             Bruno Haible  <bruno@clisp.org>
70584
70585         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
70586         * lib/getline.c (getline, getdelim): Likewise.
70587         Remove _GNU_SOURCE define; now it's defined in config.h through
70588         m4/getline.m4.
70589
70590 2003-07-23  Karl Berry  <karl@gnu.org>
70591
70592         * config/config.sub: update from prep.
70593
70594 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70595
70596         * modules/xalloc (Depends-on): Add exitfail.
70597         * modules/xmemcoll: Likewise.
70598
70599 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70600
70601         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
70602         over-parenthesization in macros.
70603
70604         Sync with coreutils.
70605
70606         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
70607         required by C99.
70608
70609         Use `exit_failure' for xalloc and xmemcoll instead of their own
70610         private exit-failure variables.
70611         * lib/xalloc.h (xalloc_exit_failure): Remove.
70612         * lib/xmalloc.c: Likewise.  Include exitfail.h.
70613         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
70614         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
70615         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
70616         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
70617
70618 2003-07-20  Jim Meyering  <jim@meyering.net>
70619
70620         * modules/closeout (Depends-on): Add exitfail.
70621         Suggestion from Bruno Haible.
70622
70623 2003-07-19  Karl Berry  <karl@gnu.org>
70624
70625         * config/config.sub: update from prep.
70626
70627 2003-07-18  Paul Eggert  <eggert@twinsun.com>
70628
70629         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
70630         Remove.
70631         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
70632         to test that it can stand by itself.  Include "exitfail.h".
70633         Clients should set exit_failure instead.
70634         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
70635
70636 2003-07-18  Bruno Haible  <bruno@clisp.org>
70637
70638         * modules/getndelim2: New file.
70639         * modules/getline: Share files with module getndelim2.
70640         * modules/getnline: Depend on getndelim2 instead of sharing files with
70641         it. Add getnline.c to lib_SOURCES.
70642         * MODULES.html.sh (func_all_modules): Add getndelim2.
70643
70644 2003-07-18  Bruno Haible  <bruno@clisp.org>
70645
70646         * m4/getndelim2.m4: New file.
70647         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70648         invoke gl_PREREQ_GETNDELIM2.
70649         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70650         gl_PREREQ_GETNDELIM2.
70651         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70652         gl_GETNDELIM2.
70653
70654 2003-07-18  Bruno Haible  <bruno@clisp.org>
70655
70656         * lib/getndelim2.h: New file.
70657         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70658         getndelim2.h.
70659         (getndelim2): Make non-static. Change return type to ssize_t.
70660         * lib/getline.h: Change argument names.
70661         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70662         * lib/getnline.c: Include getndelim2.h.
70663
70664 2003-07-18  Andreas Schwab  <schwab@suse.de>
70665
70666         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70667
70668 2003-07-17  Karl Berry  <karl@gnu.org>
70669
70670         * config/config.sub: update from prep.
70671
70672 2003-07-17  Bruno Haible  <bruno@clisp.org>
70673
70674         * modules/getnline: New file.
70675         * modules/getline: Add lib/getndelim2.c to source file list.
70676         * MODULES.html.sh (func_all_modules): Add getnline.
70677
70678 2003-07-17  Bruno Haible  <bruno@clisp.org>
70679
70680         * m4/getnline.m4: New file.
70681
70682 2003-07-17  Bruno Haible  <bruno@clisp.org>
70683
70684         * m4/Makefile.am.in: Remove file.
70685         * m4/Makefile.am: Remove file.
70686         * m4/Makefile.in: Remove file.
70687
70688 2003-07-17  Bruno Haible  <bruno@clisp.org>
70689
70690         * lib/getnline.h: New file.
70691         * lib/getnline.c: New file.
70692         * lib/getndelim2.c: New file, extracted from getline.c.
70693         (getndelim2): Renamed from getdelim2, with added nmax argument.
70694         * lib/getline.c: Include getndelim2.c.
70695         (getdelim2): Moved out to getndelim2.c.
70696         (getline, getdelim): Update.
70697
70698 2003-07-17  Bruno Haible  <bruno@clisp.org>
70699
70700         * lib/Makefile.am: Remove file.
70701         * lib/Makefile.in: Remove file.
70702
70703 2003-07-17  Bruno Haible  <bruno@clisp.org>
70704
70705         * configure.in: Remove file.
70706         * Makefile.in: Remove file.
70707
70708 2003-07-17  Bruno Haible  <bruno@clisp.org>
70709
70710         * MODULES.html.sh: Put the </BODY> right before </HTML>.
70711
70712 2003-07-16  Karl Berry  <karl@gnu.org>
70713
70714         * config/srclist-update: was running fixlicense twice, which caused
70715                 texinfo.tex to be nullified for some reason.  Simplify,
70716                 $gplsrc is no longer needed as far as I can see?
70717
70718 2003-07-16  Jim Meyering  <jim@meyering.net>
70719
70720         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
70721
70722 2003-07-15  Paul Eggert  <eggert@twinsun.com>
70723
70724         * config/srclist.txt: Get the following files from gettext-runtime/intl
70725         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
70726         ref-del.sin.  From Bruno Haible.
70727         * config/srclist-update (fixfile): Change grep pattern again, since the
70728         previous fix didn't work (there was another trailing $).  Use
70729         '[$]' to escape the $s.
70730
70731 2003-07-15  Karl Berry  <karl@gnu.org>
70732
70733         * lib/vasnprintf.c: update from gettext.
70734
70735 2003-07-15  Karl Berry  <karl@gnu.org>
70736
70737         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
70738         gets expanded when surrounded by '$'.
70739
70740 2003-07-15  Jim Meyering  <jim@meyering.net>
70741
70742         * modules/save-cwd: Don't depend on error.  From Derek Price.
70743
70744 2003-07-15  Jim Meyering  <jim@meyering.net>
70745
70746         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
70747
70748 2003-07-14  Simon Josefsson  <jas@extundo.com>
70749
70750         * modules/mempcpy: New file.
70751         * MODULES.html.sh (func_all_modules): Add mempcpy.
70752
70753 2003-07-14  Simon Josefsson  <jas@extundo.com>
70754
70755         * m4/mempcpy.m4: New file.
70756
70757 2003-07-14  Simon Josefsson  <jas@extundo.com>
70758
70759         * lib/mempcpy.h: New file.
70760         * lib/mempcpy.c: New file.
70761
70762 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70763
70764         * modules/getdate, modules/posixtm: Depend on mktime.
70765
70766 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70767
70768         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
70769         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
70770         unicodeio.c, unicodeio.h, unlocked-io.h:
70771         Switch from LGPL to GPL.
70772
70773 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70774
70775         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
70776         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70777         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70778         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70779         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70780         updated automatically by ../config/srclist-update.  This changes
70781         their license from LPGL to GPL.
70782
70783 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70784
70785         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70786         assumed to refer to the root of the most recent stable gettext version.
70787         * config/srclistvars.sh: Add defaults for eggert.
70788         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70789         Match "This program" as well as "The program".  This is needed
70790         for gettext.
70791
70792 2003-07-14  Jim Meyering  <jim@meyering.net>
70793
70794         Don't emit diagnostics.  Let callers do that.
70795         * lib/save-cwd.c: Don't include "error.h".
70796         (save_cwd): Don't call error.  Ensure that errno is valid
70797         when returning nonzero.
70798
70799         * lib/save-cwd.h (restore_cwd): Update prototype.
70800         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70801         Simplify.  Don't call error upon failure.  Let callers do that.
70802         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70803         when auditing is enabled.  But don't bother updating the #if.
70804
70805 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70806
70807         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70808         it breaks C++ compilation.
70809         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70810
70811 2003-07-10  Simon Josefsson  <jas@extundo.com>
70812
70813         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70814
70815 2003-07-10  Jim Meyering  <jim@meyering.net>
70816
70817         * m4/clock_time.m4: Remove trailing blank.
70818         * m4/intmax_t.m4: Likewise.
70819
70820 2003-07-10  Jim Meyering  <jim@meyering.net>
70821
70822         * lib/vasnprintf.c: Remove trailing blanks.
70823         Make cpp indentation consistent.
70824
70825 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70826
70827         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
70828         posixver.c, strftime.c, strnlen.c, strverscmp.c:
70829         Switch from LGPL to GPL.
70830
70831 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70832
70833         * config/srclist.txt: Sort sublists.  Add
70834         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
70835         that differ from gnulib for one reason or another; we'd like this list
70836         to be smaller but for now let's document what we have.
70837
70838 2003-07-08  Paul Eggert  <eggert@twinsun.com>
70839
70840         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
70841         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
70842         and sweeter "eval x=$x".
70843         * config/srclist.txt: Get lib/argp* from glibc.
70844
70845 2003-07-07  Paul Eggert  <eggert@twinsun.com>
70846
70847         * lib/mktime.c: Fix some boundary cases and remove need for floating
70848         point.
70849
70850         Issue a compile-time diagnostic if time_t is floating point, or if
70851         two's complement arithmetic is not in effect, or if arithmetic
70852         right shift does not propagate the sign.  These assumptions were
70853         all in the original code but they weren't checked.
70854
70855         (TIME_T_MIDPOINT, verify): New macros.
70856         (__isleap): Remove; it has integer overflow problems.
70857         (leapyear): New function, without those problems.
70858         (ydhms_tm_diff): Remove; splitting into two parts.
70859         (ydhms_diff): New function, containing the arithmetic part of
70860         the old ydhms_tm_diff function.  Issue a compile-time
70861         diagnostic if we are not using C99 integer division.
70862         Avoid casts when possible.
70863         (guess_time_tm): New function, containing the checking part of
70864         the old ydhms_tm_diff function.  Return the new value, rather than
70865         the difference between it and the old.  Accept a new argument T
70866         so that *T specifies the old value.  Check for overflow in the result.
70867
70868         (__mktime_internal): Use a time_t offset, not a long int offset.
70869         This undoes the 2003-06-04 change, which is no longer needed now
70870         that we have better overflow checking.
70871         (localtime_offset): Likewise.
70872
70873         (__mktime_internal): Avoid harmful overflow on hosts where time_t
70874         and long are 64-bit but int is only 32-bit.
70875         (ydhms_diff): Use long int to store year1 and yday1.
70876         Issue a compile-time diagnostic if long int is not wide enough.
70877
70878         (__mktime_internal): Use long int to store adjusted year and yday.
70879         Use plain C rather than preprocessor commands, if that doesn't
70880         affect efficiency.
70881         Check for overflow (and try to repair) after each probe
70882         rather than checking only at the very end.  This avoids some bugs
70883         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
70884         does not equal GMT offset at maximum time).
70885         Use integer to check for overflow rather than floating point; this
70886         is more portable to non-IEEE hosts, and is a tad faster.
70887         When we detect that we are oscillating between two values,
70888         don't check whether tm_isdst has the requested value, since
70889         we already know the answer.  When tm_isdst has the wrong value,
70890         use a different heuristic to find the right one, based on the
70891         extreme values actually observed in practice in tz2003a,
70892         rather than the (overly optimistic) "previous 3 calendar quarters".
70893
70894         (not_equal_tm, print_tm, check_result): Use "const T" rather than
70895         "T const" to accommodate glibc style.
70896         (check_result): Use less-confusing report format.  "long" -> "long int.
70897         (main): Likewise.
70898         Don't loop if the iteration overflows time_t.
70899         Allow a negative step in the iteration.
70900
70901 2003-07-06  Karl Berry  <karl@gnu.org>
70902
70903         * config/depcomp: update from automake.
70904         * config/config.sub: update from prep.
70905
70906 2003-07-03  Karl Berry  <karl@gnu.org>
70907
70908         * config/config.guess: update from prep.
70909
70910 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70911
70912         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
70913         xreadlink.c now includes it unconditionally.
70914
70915 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70916
70917         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
70918         having it depend on HAVE_SYS_TYPES_H.
70919
70920 2003-07-01  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
70923         <sys/types.h> should be sufficient.
70924         Reported by Paul Eggert.
70925
70926 2003-06-26  Karl Berry  <karl@gnu.org>
70927
70928         * config/depcomp: update from automake.
70929
70930 2003-06-26  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/human: Depend on module stdbool.
70933
70934 2003-06-25  Bruno Haible  <bruno@clisp.org>
70935
70936         * modules/readlink: New file.
70937         * modules/xreadlink: Depend on it.
70938         * MODULES.html.sh (func_all_modules): Add readlink.
70939
70940 2003-06-25  Bruno Haible  <bruno@clisp.org>
70941
70942         * m4/readlink.m4: New file.
70943
70944 2003-06-25  Bruno Haible  <bruno@clisp.org>
70945
70946         * lib/readlink.c: New file.
70947
70948 2003-06-22  Karl Berry  <karl@gnu.org>
70949
70950         * config/srclist.txt: update mkinstalldirs from automake.
70951         * config/mkinstalldirs: update.
70952
70953 2003-06-22  Bruno Haible  <bruno@clisp.org>
70954
70955         Portability to mingw32.
70956         * m4/ssize_t.m4: New file, from GNU gettext.
70957         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
70958         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
70959
70960 2003-06-22  Bruno Haible  <bruno@clisp.org>
70961
70962         * modules/safe-read: Add m4/ssize_t.m4.
70963         * modules/xreadlink: Add m4/ssize_t.m4.
70964
70965 2003-06-20  Bruno Haible  <bruno@clisp.org>
70966
70967         Assume C89, so PARAMS isn't needed.
70968         * lib/unicodeio.h (PARAMS): Remove.
70969         * lib/unicodeio.c: Don't use PARAMS.
70970
70971 2003-06-18  Karl Berry  <karl@gnu.org>
70972
70973         * config/config.{guess,sub}: update from prep.
70974
70975 2003-06-18  Jim Meyering  <jim@meyering.net>
70976
70977         Merge changes from coreutils.
70978         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
70979         Remove explicit declarations of xmalloc and realloc.
70980         Include xalloc.h.
70981         (read_utmp): Remove anachronistic cast of xmalloc.
70982
70983 2003-06-17  Paul Eggert  <eggert@twinsun.com>
70984
70985         Assume C89, so PARAMS isn't needed.
70986         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
70987         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
70988         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
70989         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
70990         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
70991         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
70992         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
70993         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
70994         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
70995         lib/xstrtod.h, lib/xstrtol.h: Likewise.
70996         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
70997         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
70998         no longer needed. Anyway, config.h should always be included before any
70999         other file.
71000
71001 2003-06-11  Simon Josefsson  <jas@extundo.com>
71002
71003         * modules/sysexits: New file.
71004         * MODULES.html.sh (func_all_modules): Add sysexits.
71005
71006 2003-06-11  Simon Josefsson  <jas@extundo.com>
71007
71008         * lib/sysexit_.h: New file.
71009
71010 2003-06-11  Derek Price  <derek@ximbiot.com>
71011
71012         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71013         necessary.
71014
71015 2003-06-11  Bruno Haible  <bruno@clisp.org>
71016
71017         * m4/sysexits.m4: New file.
71018
71019 2003-06-10  Simon Josefsson  <jas@extundo.com>
71020
71021         * lib/argp.h: New file, from glibc.
71022         * lib/argp-ba.c: New file, from glibc.
71023         * lib/argp-eexst.c: New file, from glibc.
71024         * lib/argp-fmtstream.c: New file, from glibc.
71025         * lib/argp-fmtstream.h: New file, from glibc.
71026         * lib/argp-fs-xinl.c: New file, from glibc.
71027         * lib/argp-help.c: New file, from glibc.
71028         * lib/argp-namefrob.h: New file, from glibc.
71029         * lib/argp-parse.c: New file, from glibc.
71030         * lib/argp-pv.c: New file, from glibc.
71031         * lib/argp-pvh.c: New file, from glibc.
71032         * lib/argp-xinl.c: New file, from glibc.
71033
71034 2003-06-10  Simon Josefsson  <jas@extundo.com>
71035
71036         * modules/strchrnul: New file.
71037
71038 2003-06-10  Simon Josefsson  <jas@extundo.com>
71039
71040         * modules/argp: New file.
71041
71042 2003-06-10  Simon Josefsson  <jas@extundo.com>
71043
71044         * m4/strchrnul.m4: New file.
71045
71046 2003-06-10  Simon Josefsson  <jas@extundo.com>
71047
71048         * lib/strchrnul.h: New file.
71049         * lib/strchrnul.c: New file.
71050
71051 2003-06-10  Bruno Haible  <bruno@clisp.org>
71052
71053         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71054
71055 2003-06-07  Karl Berry  <karl@gnu.org>
71056
71057         * config/config.{guess,sub}: update from prep.
71058
71059 2003-06-07  Jim Meyering  <jim@meyering.net>
71060
71061         * modules/strtod: Use $(...) notation, not @...@ for
71062         AC_REPLACE'd variables.
71063         * modules/localcharset: Likewise.
71064
71065 2003-06-07  Jim Meyering  <jim@meyering.net>
71066
71067         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71068         in place of my name in the copyright comment.
71069         Remove definition and uses of __P.
71070
71071         From coreutils.
71072         * lib/stat.c: Don't declare xmalloc explicitly.
71073         Instead, include "xalloc.h".
71074         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71075         xrealloc, and xcalloc return values.
71076         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71077         Improve comment.
71078         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71079
71080 2003-06-07  Bruno Haible  <bruno@clisp.org>
71081
71082         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71083         avoid AC_CONFIG_LINKS.
71084         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71085         fnmatch.h, to avoid AC_CONFIG_LINKS.
71086         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71087
71088 2003-06-07  Bruno Haible  <bruno@clisp.org>
71089
71090         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71091         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71092         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71093         directory.
71094         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71095         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71096         directory.
71097
71098 2003-06-06  Jim Meyering  <jim@meyering.net>
71099
71100         Merge from coreutils.
71101         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71102         Consolidate declarations and initializations of *_base* locals.
71103
71104         Merge from coreutils.
71105         This avoids a core dump on systems without GNU putenv,
71106         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71107         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71108         (unsetenv): New static function, from GNU libc.
71109         (rpl_putenv): Use it.
71110
71111         * lib/modechange.c: Remove trailing blanks.
71112
71113         Merge from coreutils.
71114         * lib/fsusage.c: Remove declaration of statfs.
71115         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71116
71117         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71118
71119 2003-06-06  Jim Meyering  <jim@meyering.net>
71120
71121         * lib/stdbool_.h: Renamed from stdbool.h.in.
71122
71123 2003-06-06  Jim Meyering  <jim@meyering.net>
71124             Bruno Haible  <bruno@clisp.org>
71125
71126         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71127         Adjust Makefile.am snippet not to redirect directly to target.
71128         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71129
71130 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71131
71132         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71133         mismatch, look in future quarters as well as past.  This fixes a
71134         bug when processing fall-backwards gaps immediately after a long
71135         period of daylight-saving time.
71136
71137         * lib/mktime.c: Assume freestanding C89 or better.
71138         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71139         (__P): Remove; not used.
71140         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71141         (mktime, not_equal_tm, print_tm, check_result,
71142         main): Use prototypes.  Use const * where appropriate.
71143         (main): Fix typo in testing code that uncovered by above changes.
71144         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71145
71146 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71147
71148         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71149         locale.h, localeconv.  This merges changes from coreutils.
71150
71151         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71152         It can be removed after the next Autoconf is released.
71153         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71154         needed.
71155
71156 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71157
71158         * lib/mktime.c: Fix Debian bug 177940
71159         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71160         (localtime_offset): Now long int, not time_t, because we want it
71161         to be guaranteed to be signed.  All uses changed.
71162         (__mktime_internal): If overflow would occur when adding offset,
71163         don't add it.
71164
71165         Merge 'human' changes from coreutils.  Rewrite to support
71166         locale-specific notations like thousands separators.
71167         * lib/human.c: Simplify authorship notice.
71168         Include human.h immediately after config.h.
71169         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71170         <limits.h>: Do not include, since human.h does.
71171         (SIZE_MAX, UINTMAX_MAX): New macros.
71172         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71173         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71174         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71175         (power_letter): Renamed from suffixes.
71176         (generate_suffix_backwards): Remove.
71177         (adjust_value): Now takes int style (because of human.h changes)
71178         and long double value (for greater precision on some platforms).
71179         (group_number): New function.
71180         (human_readable): Use it.  Use integer options, not enum.
71181         Put the options before the sizes in the arg list.
71182         Support all the new options.
71183         The old human_readable function has been removed;
71184         use inttostr.h instead.
71185         (human_readable, default_block_size, humblock):
71186         Use uintmax_t, not int, for block sizes.
71187         (human_readable_inexact, block_size_types): Remove.
71188         (block_size_opts): New constant.
71189         (human_options): Renamed from human_block_size, with new signature
71190         that allows block sizes up to UINTMAX_MAX.  All callers changed.
71191         * lib/human.h: Add copyright and authorship notice.
71192         Include <limits.h> and <stdbool.h> unconditionally.
71193         (PARAMS): Remove.  All uses removed.
71194         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
71195         (enum human_inexact_style): Remove tag; now a nameless enum.
71196         (human_floor, human_ceiling, human_round_to_even): Now have
71197         values 2, 0, 1 rather than -1, 1, 0.
71198         (human_group_digits, human_suppress_point_zero, human_autoscale,
71199         human_base_1024, human_SI, human_B): New constants.
71200         (human_readable_inexact, human_block_size): Remove.
71201         (human_readable): Size args are now uintmax_t, not int.
71202         (human_options): New decl.
71203
71204         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
71205         unnecessary now that we assume C89 or better.  This change
71206         imported from coreutils.
71207
71208         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71209         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
71210         in the 2003-05-30 sync from glibc.
71211
71212         .h files should stand alone, but we shouldn't include <sys/types.h>
71213         if we can get away with just <stddef.h>.
71214
71215         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
71216         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
71217         rather than <sys/types.h>, as we merely need size_t.
71218         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
71219         to get size_t.
71220         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
71221         Include <stdio.h>, to get FILE.
71222         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
71223         memcasecmp.h has included <stddef.h> and all we need is size_t.
71224         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
71225         our interface, instead of including <sys/types.h>
71226
71227 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71228
71229         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
71230         now, as glibc mktime is buggy on non-glibc systems.
71231
71232 2003-06-03  Karl Berry  <karl@gnu.org>
71233
71234         * config/config.sub: update from prep.
71235
71236 2003-06-02  Paul Eggert  <eggert@twinsun.com>
71237
71238         [from coreutils]
71239         Fix some minor time-related bugs with POSIX time arguments.
71240         Some valid time stamps were being rejected (notably -1, and
71241         time stamps before 1900 on 64-bit hosts).  And some invalid
71242         time stamps were being accepted, e.g. September 31.
71243
71244         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
71245         that we can return (time_t) -1 successfully.
71246         * lib/posixtm.c: Likewise.
71247         [HAVE_STDBOOL_H]: Include <stdbool.h>.
71248         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
71249         (t): Remove static var.
71250         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
71251         of static var.  All uses changed.
71252         (year): Do not reject years before 1900; they can occur with
71253         64-bit time_t.
71254         (posix_time_parse): Do not check for out-of-range components;
71255         that is now the caller's responsibility, since our checks were
71256         only approximations.
71257         (posixtime): Use mktime to check for out-of-range components,
71258         since it knows them exactly.
71259         If mktime returns (time_t) -1, check whether an error actually occurred
71260         by invoking localtime on -1.
71261         (main) [TEST_POSIXTIME]: Check for input data errors, and report
71262         posixtime failures better.
71263         Improve the test data (in comments only).
71264
71265 2003-06-02  Karl Berry  <karl@gnu.org>
71266
71267         * config/mkinstalldirs (version): new variable.
71268         (--version): new option.
71269         (usage): improve message.
71270
71271 2003-05-30  Karl Berry  <karl@gnu.org>
71272
71273         * lib/mktime.c: update from libc.
71274
71275 2003-05-30  Bruno Haible  <bruno@clisp.org>
71276
71277         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
71278         * config/config.rpath: Upgrade to gettext-0.12.1.
71279
71280 2003-05-30  Bruno Haible  <bruno@clisp.org>
71281
71282         * m4/gettext.m4: Upgrade to gettext-0.12.1.
71283         * m4/nls.m4: New file, from gettext-0.12.1.
71284         * m4/po.m4: New file, from gettext-0.12.1.
71285         * m4/progtest.m4: Upgrade to gettext-0.12.1.
71286
71287 2003-05-30  Bruno Haible  <bruno@clisp.org>
71288
71289         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
71290         * lib/localcharset.h: Likewise.
71291         * lib/localcharset.c: Likewise.
71292
71293 2003-05-29  Karl Berry  <karl@gnu.org>
71294
71295         * config/config.rpath: update from gettext.
71296
71297 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71298
71299         Assume the headers required for C89 freestanding compilers.
71300         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
71301         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
71302         * m4/human.m4 (gl_HUMAN): Likewise.
71303         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
71304         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
71305         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71306         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
71307         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71308         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
71309
71310 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71311
71312         Assume the headers required for C89 freestanding compilers.
71313         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
71314         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
71315         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
71316         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
71317         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
71318         define, since <limits.h> is guaranteed to do that.
71319         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
71320         * lib/exclude.c: Include <stdbool.h> unconditionally.
71321         * lib/tempname.c: Include <stddef.h> unconditionally.
71322         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
71323         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
71324         <stddef.h> does that.
71325         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
71326         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
71327         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
71328         needed.
71329         * lib/xstrtol.c: Likewise.
71330         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
71331         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
71332
71333         * lib/addext.c (addext): Use assignment rather than cast, to avoid
71334         warnings on some platforms.
71335
71336         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71337         arbitrarily.
71338
71339 2003-05-26  Jim Meyering  <jim@meyering.net>
71340
71341         Merge in a change from coreutils:
71342         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
71343         that is guaranteed to be `no'.  Use `no_such_member' to indicate
71344         that condition, rather than `-1' which is slightly misleading.
71345         Change the name of the cache variable to have the gl_ prefix.
71346         Prompted by a patch from Richard Dawe for DJGPP.
71347
71348 2003-05-24  Karl Berry  <karl@gnu.org>
71349
71350         * config/config.guess: update from prep.
71351
71352 2003-05-22  Karl Berry  <karl@gnu.org>
71353
71354         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
71355
71356 2003-05-20  Karl Berry  <karl@gnu.org>
71357
71358         * config/config.guess: update from prep.
71359
71360 2003-05-18  Karl Berry  <karl@gnu.org>
71361
71362         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
71363         might actually be set by the user.
71364
71365         * config/depcomp, install-sh, mdate-sh: update from automake.
71366
71367 2003-05-17  Bruno Haible  <bruno@clisp.org>
71368
71369         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
71370         invalid expansion for AC_EGREP_CPP.
71371         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
71372         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
71373         Suggested by Akim Demaille <akim@epita.fr> in
71374         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
71375
71376 2003-05-12  Jim Meyering  <jim@meyering.net>
71377
71378         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
71379         the space-padded-by-default conversion specifiers, %e, %k, %l.
71380
71381 2003-05-12  Bruno Haible  <bruno@clisp.org>
71382
71383         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
71384         the string is longer than 4 KB.
71385
71386 2003-05-11  Karl Berry  <karl@gnu.org>
71387
71388         * config/config.{guess,sub}: update from prep.
71389
71390 2003-05-09  Bruno Haible  <bruno@clisp.org>
71391
71392         * modules/error: Add m4/strerror_r.m4 to file list.
71393
71394 2003-05-03  Bruno Haible  <bruno@clisp.org>
71395
71396         Upgrade to Unicode-4.0.
71397         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
71398         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
71399         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
71400         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
71401         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
71402         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
71403         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
71404         Change width of U+E0100..U+E01EF from 1 to 0.
71405
71406 2003-04-25  Jim Meyering  <jim@meyering.net>
71407
71408         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
71409         of type size_t, not int.
71410
71411 2003-04-25  Bruno Haible  <bruno@clisp.org>
71412
71413         * lib/copy-file.c: Include <stddef.h>, for size_t.
71414
71415 2003-04-21  Paul Eggert  <eggert@twinsun.com>
71416
71417         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
71418         code which expansion is under static control.  Patch imported from
71419         Akim Demaille's patch to Bison; see
71420         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
71421
71422 2003-04-14  Bruno Haible  <bruno@clisp.org>
71423
71424         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
71425
71426 2003-04-11  Jim Meyering  <jim@meyering.net>
71427
71428         Merge changes from Coreutils.
71429
71430         2003-03-22  Jim Meyering  <jim@meyering.net>
71431
71432         * lib/strftime.c (widen): Cast alloca return value to proper type.
71433
71434         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71435
71436         From GNU libc.
71437         * lib/strftime.c (my_strftime): Handle very large width
71438         specifications for numeric values correctly.  Improve checks for
71439         overflow.
71440
71441         2003-01-19  Jim Meyering  <jim@meyering.net>
71442
71443         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
71444         definitions.
71445         (nl_get_alt_digit) [! defined my_strftime]: Define.
71446         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
71447         _nl_get_alt_digit and _nl_get_walt_digit.
71448
71449         * lib/strftime.c (my_strftime): Merge in locale-related changes from
71450         libc. These changes have no effect outside of _LIBC.
71451
71452 2003-04-10  Bruno Haible  <bruno@clisp.org>
71453
71454         * modules/findprog: New file.
71455         * MODULES.html.sh (func_all_modules): Add it.
71456
71457 2003-04-10  Bruno Haible  <bruno@clisp.org>
71458
71459         * m4/findprog.m4: New file.
71460         * m4/eaccess.m4: New file.
71461
71462 2003-04-10  Bruno Haible  <bruno@clisp.org>
71463
71464         * lib/findprog.h: New file, from GNU gettext.
71465         * lib/findprog.c: New file, from GNU gettext.
71466
71467 2003-04-05  Jim Meyering  <jim@meyering.net>
71468
71469         Merge changes from Coreutils.
71470
71471         * lib/exclude.h (PARAMS): Remove definition and uses.
71472         * lib/exclude.c: Remove uses of `PARAMS'.
71473
71474         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
71475         Add test-cases for DOS filenames. Declare program_name.
71476         (main): Set up program_name.  Patch by Rich Dawe.
71477
71478         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71479         error from mntctl.
71480         Use mntctl's return value to drive the entry-processing loop, since
71481         we can't rely on the value of the vmt_length member in the last
71482         entry.  On some systems doing so could result in exhausting
71483         virtual memory.  Based in part on a patch from Mike Jetzer.
71484
71485 2003-04-04  Bruno Haible  <bruno@clisp.org>
71486
71487         * modules/linebreak: New file.
71488         * MODULES.html.sh (func_all_modules): Add it.
71489
71490 2003-04-04  Bruno Haible  <bruno@clisp.org>
71491
71492         * m4/linebreak.m4: New file.
71493
71494 2003-04-04  Bruno Haible  <bruno@clisp.org>
71495
71496         * lib/linebreak.h: New file, from GNU gettext.
71497         * lib/linebreak.c: New file, from GNU gettext with slight
71498         modifications.
71499         * lib/lbrkprop.h: New file, from GNU gettext.
71500
71501 2003-04-03  Bruno Haible  <bruno@clisp.org>
71502
71503         * modules/utf8-ucs4: New file.
71504         * modules/utf16-ucs4: New file.
71505         * modules/ucs4-utf8: New file.
71506         * modules/ucs4-utf16: New file.
71507         * MODULES.html.sh (func_all_modules): Add them.
71508
71509 2003-04-03  Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/utf-ucs4.m4: New file.
71512         * m4/ucs4-utf.m4: New file.
71513
71514 2003-04-03  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/utf8-ucs4.h: New file, from GNU gettext.
71517         * lib/utf16-ucs4.h: New file, from GNU gettext.
71518         * lib/ucs4-utf8.h: New file, from GNU gettext.
71519         * lib/ucs4-utf16.h: New file, from GNU gettext.
71520
71521 2003-04-02  Bruno Haible  <bruno@clisp.org>
71522
71523         * modules/binary-io: New file.
71524         * MODULES.html.sh (func_all_modules): Add it.
71525
71526 2003-04-02  Bruno Haible  <bruno@clisp.org>
71527
71528         * lib/binary-io.h: New file, from GNU gettext.
71529
71530 2003-04-01  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/pathname: New file.
71533         * MODULES.html.sh (func_all_modules): Add it.
71534
71535 2003-04-01  Bruno Haible  <bruno@clisp.org>
71536
71537         * lib/pathname.h: New file, from GNU gettext.
71538         * lib/concatpath.c: New file, from GNU gettext.
71539
71540 2003-03-30  Bruno Haible  <bruno@clisp.org>
71541
71542         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
71543
71544 2003-03-30  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
71547         function chown() doesn't exist.
71548
71549 2003-03-28  Bruno Haible  <bruno@clisp.org>
71550
71551         * modules/copy-file: New file.
71552         * MODULES.html.sh (func_all_modules): Add it.
71553
71554 2003-03-28  Bruno Haible  <bruno@clisp.org>
71555
71556         * m4/copy-file.m4: New file.
71557
71558 2003-03-28  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/copy-file.h: New file, from GNU gettext.
71561         * lib/copy-file.c: New file, from GNU gettext.
71562
71563 2003-03-18  Jim Meyering  <jim@meyering.net>
71564
71565         * lib/quote.c (quote_n): Fix typo in comment.
71566
71567 2003-03-18  Bruno Haible  <bruno@clisp.org>
71568
71569         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
71570         checking.
71571         * m4/onceonly_2_57.m4: Likewise.
71572
71573 2003-03-17  Bruno Haible  <bruno@clisp.org>
71574
71575         * m4/onceonly.m4: Require autoconf 2.54 or newer.
71576         (m4_quote): Remove macro.
71577         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
71578
71579 2003-03-14  Jim Meyering  <jim@meyering.net>
71580
71581         Merge changes from Coreutils.
71582         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
71583         to be const, in order to avoid warnings.
71584         (obstack_room): Likewise.
71585         (obstack_empty_p): Likewise.
71586
71587 2003-03-14  Bruno Haible  <bruno@clisp.org>
71588
71589         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
71590         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
71591
71592 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71593
71594         Merge changes from Bison.
71595         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
71596         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
71597         when compiling Bison 1.875's `bitset bset = obstack_alloc
71598         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
71599         * lib/hash.c: Include <stdbool.h> unconditionally.
71600
71601 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71602
71603         * m4/onceonly.m4 (m4_quote): New macro.
71604         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
71605         Quote AC_FOREACH variable-expansions properly.
71606
71607 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71608
71609         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
71610
71611 2003-03-09  Paul Eggert  <eggert@twinsun.com>
71612
71613         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
71614         Reported by Bruce Becker; see:
71615         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
71616
71617 2003-03-03  Paul Eggert  <eggert@twinsun.com>
71618             Bruno Haible  <bruno@clisp.org>
71619
71620         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
71621         Reported by John Hughes, see
71622         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
71623
71624 2003-02-20  Bruno Haible  <bruno@clisp.org>
71625
71626         * MODULES.html.sh (func_all_modules): Add poll.
71627
71628 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71629
71630         * modules/poll: New file.
71631
71632 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71633
71634         * lib/poll_.h: New file.
71635         * lib/poll.c: New file.
71636
71637 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71638
71639         * m4/poll.m4: New file.
71640
71641 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71642
71643         * modules/mathl: New file.
71644
71645 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71646
71647         * lib/mathl.h: New file.
71648         * lib/acosl.c: New file.
71649         * lib/asinl.c: New file.
71650         * lib/atanl.c: New file.
71651         * lib/ceill.c: New file.
71652         * lib/cosl.c: New file.
71653         * lib/expl.c: New file.
71654         * lib/floorl.c: New file.
71655         * lib/frexpl.c: New file.
71656         * lib/ldexpl.c: New file.
71657         * lib/logl.c: New file.
71658         * lib/sincosl.c: New file.
71659         * lib/sinl.c: New file.
71660         * lib/sqrtl.c: New file.
71661         * lib/tanl.c: New file.
71662         * lib/trigl.c: New file.
71663         * lib/trigl.h: New file.
71664
71665 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71666
71667         * m4/mathl.m4: New file.
71668
71669 2003-02-18  Bruno Haible  <bruno@clisp.org>
71670
71671         * MODULES.html.sh (func_all_modules): Add mathl.
71672
71673 2003-02-17  Bruno Haible  <bruno@clisp.org>
71674
71675         * modules/mkdtemp: New module.
71676         * MODULES.html.sh (func_all_modules): Add it.
71677
71678 2003-02-17  Bruno Haible  <bruno@clisp.org>
71679
71680         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
71681
71682 2003-02-17  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/mkdtemp.h: New file, from GNU gettext.
71685         * lib/mkdtemp.c: New file, from GNU gettext.
71686
71687 2003-02-02  Jim Meyering  <jim@meyering.net>
71688
71689         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
71690         e.g. glibc-2.2.93.
71691
71692 2003-01-31  Bruno Haible  <bruno@clisp.org>
71693
71694         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
71695         'rpl_rename'.
71696         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
71697         'rpl_strnlen'.
71698         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
71699         'rpl_strtod'.
71700         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
71701         'rpl_utime'.
71702
71703 2003-01-31  Bruno Haible  <bruno@clisp.org>
71704
71705         * lib/rename.c: #undef rename before defining rpl_rename.
71706         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
71707
71708 2003-01-30  Bruno Haible  <bruno@clisp.org>
71709
71710         * modules/vasnprintf, modules/vasprintf: New modules.
71711         * MODULES.html.sh (func_all_modules): Add them.
71712
71713 2003-01-30  Bruno Haible  <bruno@clisp.org>
71714
71715         * m4/signed.m4: New file, from GNU gettext.
71716         * m4/longdouble.m4: New file, from GNU gettext.
71717         * m4/wchar_t.m4: New file, from GNU gettext.
71718         * m4/wint_t.m4: New file, from GNU gettext.
71719         * m4/vasnprintf.m4: New file.
71720         * m4/vasprintf.m4: New file.
71721
71722 2003-01-30  Bruno Haible  <bruno@clisp.org>
71723
71724         * lib/printf-args.h: New file, from GNU gettext.
71725         * lib/printf-args.c: New file, from GNU gettext.
71726         * lib/printf-parse.h: New file, from GNU gettext.
71727         * lib/printf-parse.c: New file, from GNU gettext.
71728         * lib/vasnprintf.h: New file, from GNU gettext.
71729         * lib/vasnprintf.c: New file, from GNU gettext.
71730         * lib/asnprintf.c: New file, from GNU gettext.
71731         * lib/vasprintf.h: New file, from GNU gettext with modifications.
71732         * lib/vasprintf.c: New file, from GNU gettext.
71733         * lib/asprintf.c: New file, from GNU gettext.
71734
71735 2003-01-29  Bruno Haible  <bruno@clisp.org>
71736
71737         * modules/stpncpy: New module.
71738         * MODULES.html.sh (func_all_modules): Add it.
71739
71740 2003-01-29  Bruno Haible  <bruno@clisp.org>
71741
71742         * m4/stpncpy.m4: New file.
71743
71744 2003-01-29  Bruno Haible  <bruno@clisp.org>
71745
71746         * lib/stpncpy.h: New file, from GNU gettext with modifications.
71747         * lib/stpncpy.c: New file, from GNU gettext with modifications.
71748
71749 2003-01-28  Bruno Haible  <bruno@clisp.org>
71750
71751         * modules/c-ctype: New module.
71752         * MODULES.html.sh (func_all_modules): Add it.
71753
71754 2003-01-28  Bruno Haible  <bruno@clisp.org>
71755
71756         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
71757         Paul Eggert.
71758         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
71759         Paul Eggert.
71760
71761 2003-01-27  Bruno Haible  <bruno@clisp.org>
71762
71763         * modules/xsetenv: New module.
71764         * MODULES.html.sh (func_all_modules): Add it.
71765
71766 2003-01-27  Bruno Haible  <bruno@clisp.org>
71767
71768         * lib/xsetenv.h: New file, from GNU gettext.
71769         * lib/xsetenv.c: New file, from GNU gettext.
71770
71771 2003-01-23  Jim Meyering  <jim@meyering.net>
71772
71773         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
71774         from working on systems without dirfd (at least Irix and OSF1/Tru64).
71775
71776 2003-01-23  Bruno Haible  <bruno@clisp.org>
71777
71778         * modules/minmax: New module.
71779         * MODULES.html.sh (func_all_modules): Add it.
71780
71781 2003-01-23  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71784         Eggert.
71785
71786 2003-01-22  Bruno Haible  <bruno@clisp.org>
71787
71788         * modules/exit: New module.
71789         * MODULES.html.sh (func_all_modules): Add it.
71790
71791 2003-01-22  Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/exit.h: New file, from GNU gettext.
71794
71795 2003-01-19  Bruno Haible  <bruno@clisp.org>
71796
71797         * gnulib-tool: Recognize option --extract-maintainer.
71798         (func_get_maintainer): New function.
71799         * modules/*: Add Maintainer entry.
71800
71801 2003-01-16  Jim Meyering  <jim@meyering.net>
71802
71803         * m4/regex.m4: The `regex' struct is both input and output.
71804         Initialize it before each use.  Patch by Tim Waugh.
71805
71806 2003-01-16  Bruno Haible  <bruno@clisp.org>
71807
71808         * MODULES.html.sh: Add a table of contents. Add the module name as
71809         leftmost column. Add hyperlinks.
71810
71811 2003-01-15  Bruno Haible  <bruno@clisp.org>
71812
71813         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71814
71815 2003-01-15  Bruno Haible  <bruno@clisp.org>
71816
71817         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
71818         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
71819         suffix.
71820
71821 2003-01-15  Bruno Haible  <bruno@clisp.org>
71822
71823         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
71824
71825 2003-01-15  Bruno Haible  <bruno@clisp.org>
71826
71827         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
71828         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
71829
71830 2003-01-14  Jim Meyering  <jim@meyering.net>
71831
71832         * lib/same.c (same_name): Tweak a comment.
71833
71834 2003-01-14  Bruno Haible  <bruno@clisp.org>
71835
71836         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
71837         when a string comparison is sufficient.
71838
71839 2003-01-14  Bruno Haible  <bruno@clisp.org>
71840
71841         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
71842         'unsigned int'.
71843
71844 2003-01-14  Bruno Haible  <bruno@clisp.org>
71845
71846         * lib/hash-pjw.c: Add comment about low quality of this function.
71847
71848 2003-01-13  Bruno Haible  <bruno@clisp.org>
71849
71850         * modules/stpcpy: Distribute lib/stpcpy.h.
71851         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
71852
71853 2003-01-13  Bruno Haible  <bruno@clisp.org>
71854
71855         * modules/*: Add a description.
71856         * modules/strpbrk: Fix Makefile.am snippet.
71857         * modules/strtoimax: Fix dependencies.
71858         * modules/strtoumax: Likewise.
71859
71860 2003-01-13  Bruno Haible  <bruno@clisp.org>
71861
71862         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
71863         * modules/alloca (Makefile.am): All object files depend on alloca.h.
71864         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
71865
71866 2003-01-13  Bruno Haible  <bruno@clisp.org>
71867
71868         * gnulib-tool (func_create_testdir): Store config/* files in the main
71869         directory.
71870         * config.rpath: Move to ...
71871         * config/config.rpath: ... here.
71872         * modules/gettext: Contains config/config.rpath, not config.rpath.
71873         * modules/iconv: Likewise.
71874
71875 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71876
71877         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71878         to avoid collisions with libcurses and libreadline.
71879
71880         * m4/getstr.m4: Remove.
71881         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
71882
71883 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71884
71885         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71886         to avoid collisions with libcurses and libreadline.
71887
71888         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
71889         * lib/getstr.h, getstr.c: Remove.
71890         * lib/getline.c: Include "getline.h", to check interface.
71891         Move body of old getstr.c here: this defines MIN_CHUNK and
71892         declares getdelim2, which is renamed from getstr.
71893         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
71894
71895         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
71896         All uses changed.
71897         * lib/linebuffer.h: Likewise.
71898         (readline): Remove backward-compatibility macro.
71899
71900 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71901
71902         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71903         to avoid collisions with libcurses and libreadline.
71904         * getstr: Remove.
71905         * MODULES.html.sh: Remove getstr.
71906         * modules/getline: Depend on unlocked-io, not getstr.
71907
71908 2003-01-12  Jim Meyering  <jim@meyering.net>
71909
71910         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
71911
71912 2003-01-10  Bruno Haible  <bruno@clisp.org>
71913
71914         * modules/alloca: Change Makefile.am requirements. Simplify Include
71915         requirements. Add lib/alloca_.h to file list.
71916
71917 2003-01-10  Bruno Haible  <bruno@clisp.org>
71918
71919         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
71920
71921 2003-01-10  Bruno Haible  <bruno@clisp.org>
71922
71923         * lib/alloca_.h: New file.
71924         * lib/getdate.y: Unconditionally include alloca.h.
71925         * lib/makepath.c: Likewise.
71926         * lib/setenv.c: Likewise.
71927         * lib/userspec.c: Likewise.
71928
71929 2003-01-09  Karl Berry  <karl@gnu.org>
71930
71931         * MODULES.html.sh: include `dirname $0` in PATH, to find
71932         gnulib-tool.
71933
71934 2003-01-09  Bruno Haible  <bruno@clisp.org>
71935
71936         * modules/stdbool: Change configure.ac, Makefile.am requirements.
71937         Simplify Include requirements. Add lib/stdbool.h.in to file list.
71938
71939 2003-01-09  Bruno Haible  <bruno@clisp.org>
71940
71941         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
71942
71943 2003-01-09  Bruno Haible  <bruno@clisp.org>
71944
71945         * lib/stdbool.h.in: New file.
71946
71947 2003-01-09  Bruno Haible  <bruno@clisp.org>
71948
71949         * gnulib-tool (func_all_modules): Ignore files ending in ~.
71950         * MODULES.html.sh: Likewise.
71951
71952 2003-01-08  Jim Meyering  <jim@meyering.net>
71953
71954         * lib/full-write.c: Undefine and define-away `const' after inclusion
71955         of errno.h, not before.  Suggestion from Bruno Haible.
71956
71957 2003-01-08  Bruno Haible  <bruno@clisp.org>
71958
71959         * modules/full-read: Depend on full-write.
71960
71961 2003-01-08  Bruno Haible  <bruno@clisp.org>
71962
71963         * lib/safe-read.c: Include specification header first, to ensure its
71964         selfcontainedness.
71965         * lib/full-write.c: Likewise.
71966
71967 2003-01-07  Jim Meyering  <jim@meyering.net>
71968
71969         * lib/full-write.c: Rework so that it may serve to define full_read,
71970         too.
71971         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
71972
71973 2003-01-07  Bruno Haible  <bruno@clisp.org>
71974
71975         * lib/strtoimax.c: Include <stdint.h> as an alternative to
71976         <inttypes.h>.
71977         * lib/xstrtol.h: Likewise.
71978         * lib/xstrtoimax.c: Likewise.
71979         * lib/xstrtoumax.c: Likewise.
71980         * lib/human.h: Likewise.
71981
71982         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
71983         on systems that have <inttypes.h> but not <stdint.h>.
71984
71985 2003-01-07  Bruno Haible  <bruno@clisp.org>
71986
71987         * MODULES.html.sh: Add copyright notice.
71988         (missed_files): Omit CVS directory entries.
71989         (func_module): Make it work with sed-3.02.
71990         * MODULES.txt: Remove file.
71991
71992 2003-01-06  Jim Meyering  <jim@meyering.net>
71993
71994         * lib/version-etc.c: Update year in translatable copyright string.
71995
71996 2003-01-03  Karl Berry  <karl@gnu.org>
71997
71998         * config/config.{guess,sub}: update from prep.
71999
72000 2003-01-02  Karl Berry  <karl@gnu.org>
72001
72002         * doc/COPYING.DOC: belatedly updated to 1.2.
72003
72004 2003-01-01  Karl Berry  <karl@gnu.org>
72005
72006         * gnulib-tool (func_verify_module): report module name $module in
72007         error message, not $1.
72008         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72009         be created, only if it doesn't exist.
72010         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72011
72012 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72013
72014         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72015
72016 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72017
72018         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72019         memcmp if strcoll doesn't work.
72020
72021 2002-12-31  Bruno Haible  <bruno@clisp.org>
72022
72023         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72024         nonempty.
72025
72026 2002-12-31  Bruno Haible  <bruno@clisp.org>
72027
72028         * lib/memcoll.c (STRCOLL): New macro.
72029         (memcoll): Use it.
72030
72031 2002-12-31  Bruno Haible  <bruno@clisp.org>
72032
72033         * lib/localcharset.h: New file.
72034         * lib/localcharset.c: Include it.
72035         * lib/unicodeio.c: Likewise.
72036
72037 2002-12-31  Bruno Haible  <bruno@clisp.org>
72038
72039         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72040         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72041
72042 2002-12-31  Bruno Haible  <bruno@clisp.org>
72043
72044         * lib/getline.h: Include <stddef.h>, for size_t.
72045
72046         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72047         * lib/unicodeio.c: Don't include <stddef.h>.
72048
72049 2002-12-31  Bruno Haible  <bruno@clisp.org>
72050
72051         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72052         HAVE_TM_ZONE.
72053
72054 2002-12-24  Karl Berry  <karl@gnu.org>
72055
72056         * config/config.guess: update from prep.
72057
72058 2002-12-24  Bruno Haible  <bruno@clisp.org>
72059
72060         General infrasructure.
72061         * m4/README: Rewritten.
72062         * m4/onceonly.m4: New file.
72063         * m4/onceonly_2_57.m4: New file.
72064
72065         Module atexit.
72066         * m4/atexit.m4: New file.
72067
72068         Module strtod.
72069         * m4/strtod.m4: New file.
72070
72071         Module strtol.
72072         * m4/strtol.m4: New file.
72073
72074         Module strtoul.
72075         * m4/strtoul.m4: New file.
72076
72077         Module memchr.
72078         * m4/memchr.m4: New file.
72079
72080         Module memcmp.
72081         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72082         (jm_FUNC_MEMCMP): Invoke it.
72083
72084         Module memcpy.
72085         * m4/memcpy.m4: New file.
72086
72087         Module memmove.
72088         * m4/memmove.m4: New file.
72089
72090         Module memset.
72091         * m4/memset.m4: New file.
72092
72093         Module strcspn.
72094         * m4/strcspn.m4: New file.
72095
72096         Module strpbrk.
72097         * m4/strpbrk.m4: New file.
72098
72099         Module strstr.
72100         * m4/strstr.m4: New file.
72101
72102         Module strerror.
72103         * m4/strerror.m4: New file.
72104
72105         Module mktime.
72106         * m4/mktime.m4: Renamed from jm-mktime.m4.
72107         (gl_PREREQ_MKTIME): New macro.
72108         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72109
72110         Module malloc.
72111         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72112         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72113         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72114
72115         Module realloc.
72116         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72117         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72118         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72119
72120         Module strftime.
72121         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72122         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72123         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72124         gl_TM_GMTOFF.
72125         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72126
72127         Module xalloc.
72128         * m4/xalloc.m4: New file.
72129
72130         Module alloca.
72131         * m4/alloca.m4: New file.
72132
72133         Module putenv.
72134         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72135         (jm_FUNC_PUTENV): Invoke it.
72136
72137         Module setenv.
72138         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72139         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72140         when invoked twice.
72141         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72142         gt_FUNC_SETENV.
72143
72144         Module memrchr.
72145         * m4/memrchr.m4: New file.
72146
72147         Module stpcpy.
72148         * m4/stpcpy.m4: New file.
72149
72150         Module strcase.
72151         * m4/strcase.m4: New file.
72152
72153         Module strdup.
72154         * m4/strdup.m4: New file.
72155
72156         Module strnlen.
72157         * m4/strnlen.m4: New file.
72158
72159         Module strndup.
72160         * m4/strndup.m4: New file.
72161
72162         Module xstrtod.
72163         * m4/xstrtod.m4: New file.
72164
72165         Module xstrtol.
72166         * m4/xstrtol.m4: New file.
72167
72168         Module getdate.
72169         * m4/getdate.m4: New file.
72170
72171         Module unlocked-io.
72172         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72173         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72174         * m4/jm-glibc-io.m4n: Remove file.
72175
72176         Module long-options.
72177         * m4/long-options.m4: New file.
72178
72179         Module md5.
72180         * m4/md5.m4: New file.
72181
72182         Module sha.
72183         * m4/sha.m4: New file.
72184
72185         Module getstr.
72186         * m4/getstr.m4: New file.
72187
72188         Module getline.
72189         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
72190         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
72191         <sys/types.h>, for size_t. Use the function name gnu_getline, not
72192         simply getline. Infoke gl_PREREQ_GETLINE.
72193
72194         Module obstack.
72195         * m4/obstack.m4: New file.
72196
72197         Module hash.
72198         * m4/hash.m4: New file.
72199
72200         Module readtokens.
72201         * m4/readtokens.m4: New file.
72202
72203         Module strverscmp.
72204         * m4/strverscmp.m4: New file.
72205
72206         Module stdbool.
72207         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
72208         OSF/1.
72209
72210         Module strtoll.
72211         * m4/strtoll.m4: New file.
72212
72213         Module strtoull.
72214         * m4/strtoull.m4: New file.
72215
72216         Module strtoimax.
72217         * m4/strtoimax.m4: New file.
72218
72219         Module strtoumax.
72220         * m4/strtoumax.m4: New file.
72221
72222         Module xstrtoimax.
72223         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
72224         jm_AC_PREREQ_XSTRTOIMAX.
72225         Moved the strtol prerequisites to strtol.m4.
72226         Moved the strtoll prerequisites to strtoll.m4.
72227         Moved the strtoimax prerequisites to strtoimax.m4.
72228
72229         Module xstrtoumax.
72230         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
72231         jm_AC_PREREQ_XSTRTOUMAX.
72232         Moved the strtoul prerequisites to strtoul.m4.
72233         Moved the strtoull prerequisites to strtoull.m4.
72234         Moved the strtoumax prerequisites to strtoumax.m4.
72235
72236         Module chown.
72237         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
72238         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
72239
72240         Module dup2.
72241         * m4/dup2.m4: New file.
72242
72243         Module ftruncate.
72244         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
72245         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
72246
72247         Module getgroups.
72248         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
72249         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
72250
72251         Module gettimeofday.
72252         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
72253         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
72254         gl_PREREQ_GETTIMEOFDAY.
72255
72256         Module mkdir.
72257         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
72258         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
72259
72260         Module mkstemp.
72261         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
72262         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
72263         jm_AC_TYPE_UINTMAX_T.
72264         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
72265
72266         Module stat.
72267         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
72268         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
72269
72270         Module lstat.
72271         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
72272         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
72273
72274         Module timespec.
72275         * m4/timespec.m4 (gl_TIMESPEC): New macro.
72276         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
72277         * m4/st_mtim.m4: Indentation.
72278
72279         Module nanosleep.
72280         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
72281         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
72282         gl_PREREQ_NANOSLEEP.
72283
72284         Module regex.
72285         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
72286         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
72287         (gl_REGEX): New macro.
72288
72289         Module rename.
72290         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
72291         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
72292
72293         Module rmdir.
72294         * m4/rmdir.m4: New file.
72295
72296         Module utime.
72297         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
72298         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
72299         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
72300
72301         Module dirname.
72302         * m4/dirname.m4: New file.
72303
72304         Module getopt.
72305         * m4/getopt.m4: New file.
72306
72307         Module unistd-safer.
72308         * m4/unistd-safer.m4: New file.
72309
72310         Module fnmatch.
72311         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
72312         declaration.
72313         (gl_PREREQ_FNMATCH_EXTRA): New macro.
72314         (gl_FUNC_FNMATCH_POSIX): New macro.
72315         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
72316         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
72317         simply fnmatch.
72318
72319         Module exclude.
72320         * m4/exclude.m4: New file.
72321
72322         Module human.
72323         * m4/human.m4: New file.
72324
72325         Module acl.
72326         * m4/acl.m4: Nop.
72327
72328         Module backupfile.
72329         * m4/backupfile.m4: New file.
72330         * m4/d-ino.m4: Indentation.
72331
72332         Module fsusage.
72333         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
72334         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
72335         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
72336
72337         Module dirfd.
72338         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
72339         requirements.
72340
72341         Module euidaccess.
72342         * m4/euidaccess.m4: New file.
72343
72344         Module file-type.
72345         * m4/file-type.m4: New file.
72346
72347         Module fileblocks.
72348         * m4/fileblocks.m4: New file.
72349
72350         Module filemode.
72351         * m4/filemode.m4: New file.
72352
72353         Module isdir.
72354         * m4/isdir.m4: New file.
72355
72356         Module lchown.
72357         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
72358         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
72359
72360         Module makepath.
72361         * m4/makepath.m4: New file.
72362
72363         Module modechange.
72364         * m4/modechange.m4: New file.
72365
72366         Module mountlist.
72367         * m4/mountlist.m4: New file.
72368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
72369         Indentation.
72370
72371         Module path-concat.
72372         * m4/path-concat.m4: New file.
72373
72374         Module pathmax.
72375         * m4/pathmax.m4: New file.
72376
72377         Module same.
72378         * m4/same.m4: New file.
72379
72380         Module save-cwd.
72381         * m4/save-cwd.m4: New file.
72382
72383         Module savedir.
72384         * m4/savedir.m4: New file.
72385
72386         Module xgetcwd.
72387         * m4/xgetcwd.m4: New file.
72388         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
72389
72390         Module xreadlink.
72391         * m4/xreadlink.m4: New file.
72392
72393         Module safe-read.
72394         * m4/safe-read.m4: New file.
72395
72396         Module safe-write.
72397         * m4/safe-write.m4: New file.
72398
72399         Module closeout.
72400         * m4/closeout.m4: New file.
72401
72402         Module stdio-safer.
72403         * m4/stdio-safer.m4: New file.
72404
72405         Module getpass.
72406         * m4/getpass.m4: New file.
72407
72408         Module getugroups.
72409         * m4/getugroups.m4: New file.
72410
72411         Module group-member.
72412         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
72413         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
72414
72415         Module idcache.
72416         * m4/idcache.m4: New file.
72417
72418         Module userspec.
72419         * m4/userspec.m4: New file.
72420
72421         Module gettime.
72422         * m4/clock_time.m4: New file.
72423         * m4/gettime.m4: New file.
72424
72425         Module settime.
72426         * m4/settime.m4: New file.
72427
72428         Module posixtm.
72429         * m4/posixtm.m4: New file.
72430
72431         Module gethostname.
72432         * m4/gethostname.m4: New file.
72433
72434         Module canon-host.
72435         * m4/canon-host.m4: New file.
72436
72437         Module gettext.
72438         * m4/codeset.m4: New file, from gettext-0.11.5.
72439         * m4/gettext.m4: New file, from gettext-0.11.5.
72440         * m4/glibc21.m4: New file, from gettext-0.11.5.
72441         * m4/iconv.m4: New file, from gettext-0.11.5.
72442         * m4/intdiv0.m4: New file, from gettext-0.11.5.
72443         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
72444         * m4/inttypes.m4: New file, from gettext-0.11.5.
72445         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
72446         * m4/isc-posix.m4: New file, from gettext-0.11.5.
72447         * m4/lcmessage.m4: New file, from gettext-0.11.5.
72448         * m4/lib-ld.m4: New file, from gettext-0.11.5.
72449         * m4/lib-link.m4: New file, from gettext-0.11.5.
72450         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
72451         * m4/progtest.m4: New file, from gettext-0.11.5.
72452         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
72453         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
72454         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
72455
72456         Module localcharset.
72457         * m4/localcharset.m4: New file.
72458
72459         Module hard-locale.
72460         * m4/hard-locale.m4: New file.
72461
72462         Module mbswidth.
72463         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
72464         onceonly macros.
72465         * m4/mbrtowc.m4: Add comment.
72466
72467         Module memcasecmp.
72468         * m4/memcasecmp.m4: New file.
72469
72470         Module memcoll.
72471         * m4/memcoll.m4: New file.
72472
72473         Module unicodeio.
72474         * m4/unicodeio.m4: New file.
72475
72476         Module rpmatch.
72477         * m4/rpmatch.m4: New file.
72478
72479         Module yesno.
72480         * m4/yesno.m4: New file.
72481
72482         Module exitfail.
72483         * m4/exitfail.m4: New file.
72484
72485         Module c-stack.
72486         * m4/c-stack.m4 (gl_C_STACK): New macro.
72487         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
72488
72489         Module error.
72490         * m4/error.m4 (gl_ERROR): New macro.
72491         (jm_PREREQ_ERROR): Use onceonly macros.
72492
72493         Module fatal.
72494         * m4/fatal.m4: New file.
72495
72496         Module getloadavg.
72497         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
72498         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
72499
72500         Module getpagesize.
72501         * m4/getpagesize.m4: New file.
72502
72503         Module getusershell.
72504         * m4/getusershell.m4: New file.
72505
72506         Module physmem.
72507         * m4/physmem.m4: New file.
72508
72509         Module posixver.
72510         * m4/posixver.m4: New file.
72511
72512         Module quotearg.
72513         * m4/quotearg.m4: New file.
72514
72515         Module quote.
72516         * m4/quote.m4: New file.
72517
72518         Module readutmp.
72519         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
72520
72521         Module sig2str.
72522         * m4/sig2str.m4: New file.
72523
72524         Other.
72525         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
72526         ulonglong.m4.
72527         * m4/intmax_t.m4: New file.
72528         * m4/d-type.m4: Indentation.
72529         * m4/jm-macros.m4: Update.
72530         * m4/prereq.m4 (jm_PREREQ): Update.
72531         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
72532         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
72533         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
72534         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
72535         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
72536         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
72537         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
72538         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
72539         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
72540         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
72541         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
72542         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
72543         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
72544         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
72545         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
72546         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
72547         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
72548         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
72549         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
72550
72551 2002-12-24  Bruno Haible  <bruno@clisp.org>
72552
72553         * MODULES.txt: Update according to m4/ changes.
72554
72555         Module gettext.
72556         * config.rpath: New file, from gettext-0.11.5.
72557
72558         * modules/*: New module descriptions.
72559         * gnulib-tool: New file.
72560         * MODULES.html.sh: New file.
72561
72562 2002-12-21  Karl Berry  <karl@gnu.org>
72563
72564         * doc/fdl.texi: update to version 1.2.
72565
72566 2002-12-19  Karl Berry  <karl@gnu.org>
72567
72568         * config/config.guess: update from prep.
72569
72570 2002-12-18  Bruno Haible  <bruno@clisp.org>
72571
72572         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
72573         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
72574
72575 2002-12-17  Bruno Haible  <bruno@clisp.org>
72576
72577         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
72578         stdlib.h, string.h.
72579
72580 2002-12-17  Bruno Haible  <bruno@clisp.org>
72581
72582         * lib/canon-host.c (strdup): Remove unused declaration.
72583
72584         * lib/fsusage.c: Include full_read.h.
72585         (get_fs_usage): Use full_read instead of safe_read.
72586
72587         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
72588
72589 2002-12-12  Karl Berry  <karl@gnu.org>
72590
72591         * config/config.guess: update from prep.
72592
72593 2002-12-11  Bruno Haible  <bruno@clisp.org>
72594
72595         * m4/setenv.m4: New file, from gettext-0.11.5.
72596
72597 2002-12-11  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
72600         not unsetenv().
72601         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
72602         modifications:
72603
72604         2002-12-11  Bruno Haible  <bruno@clisp.org>
72605
72606                 * setenv.c (alloca): Fall back to malloc.
72607                 (freea): New macro.
72608                 (setenv): Use freea() to free memory allocated with alloca().
72609
72610         2002-11-13  Bruno Haible  <bruno@clisp.org>
72611
72612                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
72613                 function declarations.
72614                 * unsetenv.c (unsetenv): Likewise.
72615
72616         2002-03-04  Bruno Haible  <bruno@clisp.org>
72617
72618                 Portability to AIX 4.3.3.
72619                 * unsetenv.c: New file, extracted from setenv.c.
72620                 * setenv.c: Move the unsetenv() function to unsetenv.c.
72621
72622         2001-12-20  Bruno Haible  <bruno@clisp.org>
72623
72624                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
72625                 use malloc instead. For SunOS 4.
72626
72627         2001-12-11  Bruno Haible  <bruno@clisp.org>
72628
72629                 * setenv.c: Declare alloca.
72630                 (compar_fn_t): New typedef.
72631                 (KNOWN_VALUE, STORE_VALUE): Use it.
72632
72633         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
72634         setenv.h.
72635
72636 2002-12-10  Paul Eggert  <eggert@twinsun.com>
72637
72638         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
72639         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
72640         Choose values that are less likely to collide with system fnmatch
72641         options.
72642         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72643         defined (e.g., a pure POSIX system).
72644         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72645         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72646
72647 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72648
72649         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72650         a pain in practice to deal with generated m4 files.  This change
72651         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72652
72653         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72654         and jm-glibc-io.m4, as they are no longer a special case.
72655         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72656         kludge and the auto-generation stuff.  Check only whether the
72657         functions are declared, not whether they exist, since older hosts
72658         that don't declare the functions can't use the optimization anyway.
72659
72660 2002-12-06  Jim Meyering  <jim@meyering.net>
72661
72662         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72663
72664         Merge in changes from libc's misc/error.c, in preparation
72665         for the merge of gnulib's changes back into libc.
72666
72667         * lib/error.c (_): Define only if not already defined.
72668         Move definition to follow all #include directives.
72669         Include unlocked-io.h only if !_LIBC.
72670         [_LIBC]: Include <libio/libioP.h>.
72671         [USE_IN_LIBIO]: Include <libio/iolibio.h>
72672         (fflush): Tweak definition to use INTUSE.
72673         (putc): Define.
72674
72675 2002-12-05  Paul Eggert  <eggert@twinsun.com>
72676
72677         * lib/alloca.c [defined emacs]: Include "lisp.h".
72678         (xalloc_die) [defined emacs]: New macro.
72679         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
72680         [! defined emacs]: Include <xalloc.h>.
72681         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
72682         (pointer): Typedef to POINTER_TYPE *.
72683         (malloc): Remove decl; we now always use xmalloc.
72684         (alloca): Use old-style definition, since Emacs needs this.
72685         Check for arithmetic overflow when computing combined size.
72686
72687 2002-12-04  Paul Eggert  <eggert@twinsun.com>
72688
72689         Do not generate unlocked-io.h automatically, since it's easier to
72690         maintain it by hand.
72691
72692         * lib/unlocked-io.h: New file, from GNU diffutils,
72693         but with proper copyright notice and attribution.
72694         * lib/gen-uio: Remove.
72695         * lib/Makefile.am: Add copyright notice.
72696         (libfetish_a_SOURCES): Add unlocked-io.h.
72697         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
72698         (DISTCLEANFILES, io_functions): Remove macros.
72699         (EXTRA_DIST): Remove gen_uio.
72700         (unlocked-io.h): Remove rule.
72701
72702 2002-12-04  Jim Meyering  <jim@meyering.net>
72703
72704         Reflect the fact that stat.c and lstat.c are no longer generated.
72705         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
72706         (DISTCLEANFILES): Likewise.
72707         (EXTRA_DIST): Likewise.
72708         (all_local): Don't depend on stat.c or lstat.c.
72709         (stat.c, lstat.c): Remove rules.
72710         (EXTRA_DIST): Remove xstat.in.
72711
72712         * lib/xstat.in: Remove file.  Contents moved into stat.c.
72713         * lib/stat.c: New file.  Contents mostly from xstat.in.
72714         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
72715         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
72716
72717         * lib/safe-read.c: Rework so that it may serve to define safe_write,
72718         too.
72719         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
72720
72721 2002-12-03  Jim Meyering  <jim@meyering.net>
72722
72723         * lib/safe-read.c, safe-write.c: Change variable names and comments,
72724         but not semantics, to minimize the differences between these two files.
72725         (safe_read): Change comment to mention SAFE_READ_ERROR.
72726
72727         * lib/safe-read.c (IS_EINTR): Define.
72728         (safe_read): Use IS_EINTR in place of in-function cpp directives.
72729
72730 2002-12-02  Jim Meyering  <jim@meyering.net>
72731
72732         * lib/safe-read.c (EINTR): Define.
72733         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72734         (INT_MAX): Provide fallback.
72735         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
72736
72737         * lib/safe-read.h (SAFE_READ_ERROR): Define.
72738
72739 2002-12-02  Bruno Haible  <bruno@clisp.org>
72740
72741         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
72742         Define, taken from safe-read.c.
72743         (INT_MAX): Provide fallback.
72744         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
72745         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
72746
72747         * lib/safe-read.c (EINTR): Remove definition.
72748         (safe_read): Don't use EINTR if it is absent.
72749
72750 2002-12-01  Jim Meyering  <jim@meyering.net>
72751
72752         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
72753         zero.
72754         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
72755
72756 2002-11-27  Paul Eggert  <eggert@twinsun.com>
72757
72758         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
72759         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
72760         with `if (! (value < limit)) abort ();', for readability.
72761
72762 2002-11-26  Karl Berry  <karl@gnu.org>
72763
72764         * lib/strdup.c: copy from libc again, with jim's ok.
72765         * lib/.cppi-disable: re-add strdup.c
72766
72767 2002-11-25  Karl Berry  <karl@gnu.org>
72768
72769         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
72770         instead of "strtol.c".
72771
72772 2002-11-25  Karl Berry  <karl@gnu.org>
72773
72774         * config/install-sh: update from automake for variable quoting, $0 in
72775         error msgs, etc.
72776
72777         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72778         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72779         entry.
72780
72781 2002-11-25  Jim Meyering  <jim@meyering.net>
72782
72783         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72784
72785 2002-11-24  Karl Berry  <karl@gnu.org>
72786
72787         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72788         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72789
72790 2002-11-24  Jim Meyering  <jim@meyering.net>
72791
72792         Update from coreutils:
72793
72794         * lib/mktime.c: Merge in changes from libc.
72795
72796         Avoid a link-time failure on some Linux systems.
72797         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72798         (otherwise).
72799         (__mon_yday): Declare with the STATIC attribute.
72800         (__mktime_internal): Likewise.
72801         Based on a report from Greg Schafer.
72802
72803 2002-11-23  Jim Meyering  <jim@meyering.net>
72804
72805         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72806         Use `unsigned', not `int', as type of index.
72807
72808         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72809
72810         * lib/fsusage.c: Remove unneeded parentheses around operands of
72811         `defined'.
72812
72813 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72814
72815         * lib/quotearg.h: Allow multiple inclusion by surrounding with
72816         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
72817         so that we can be included first.
72818         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
72819         * lib/quotearg.c: Include quotearg.h immediately after config.h.
72820         No need to include stddef.h or sys/types.h any more.
72821         Surround local include files with "", not "<>".
72822         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
72823         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
72824         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
72825         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
72826         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
72827         (ISPRINT): Remove; no longer needed now that we assume C89.
72828
72829         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
72830         Preserve errno.
72831
72832         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
72833         quotearg_char): Use SIZE_MAX rather than
72834         (size_t) -1 when we are talking about "infinity".
72835
72836         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
72837
72838 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72839
72840         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
72841         hint that one should use `if (! x) abort ();' rather than `assert
72842         (x);', and anyway it's one less thing to worry about configuring.
72843         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
72844         hash_rehash, hash_insert): Use abort rather than assert.
72845
72846 2002-11-22  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/safe-read.h: Assume C89. Add comments.
72849         (safe_read): Change return type to size_t.
72850         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
72851         byte counts > SSIZE_MAX correctly.
72852         * lib/safe-write.h: New file.
72853         * lib/safe-write.c: New file.
72854         * lib/full-read.h: New file.
72855         * lib/full-read.c: New file.
72856         * lib/full-write.h: Assume C89. Add comments.
72857         * lib/full-write.c: Include safe-write.h.
72858         (full_write): Rewritten to use safe_write.
72859         Suggested by Jim Meyering and Paul Eggert.
72860
72861 2002-11-21  Jim Meyering  <jim@meyering.net>
72862
72863         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
72864
72865         Merge in changes from the coreutils.
72866
72867         2002-09-25  Paul Eggert  <eggert@twinsun.com>
72868         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
72869         <stdint.h>.
72870         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
72871         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
72872         int.  Work more efficiently if X is the same width as uintmax_t.
72873         Do not compare X to -1, to avoid bogus compiler warning.
72874         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
72875         Don't assume that f_frsize and f_bsize are the same type.
72876
72877         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
72878         warning on FreeBSD.
72879
72880         * lib/makepath.c (make_path): Restore umask *before* creating the final
72881         component.
72882         (make_path): Minor reformatting.
72883
72884         * lib/xmalloc.c: Adjust to work with new autoconf macros,
72885         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
72886         HAVE_MALLOC/HAVE_REALLOC.
72887
72888         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
72889         dummy ones.  At least on GNU/Linux systems, `auto' means something
72890         else.
72891         From Michael Stone.
72892
72893 2002-11-21  Bruno Haible  <bruno@clisp.org>
72894
72895         Remove case insensitive option matching.
72896         * lib/argmatch.h (argcasematch): Remove declaration.
72897         (ARGCASEMATCH): Remove macro.
72898         (__xargmatch_internal): Remove case_sensitive argument.
72899         (XARGMATCH): Update.
72900         (XARGCASEMATCH): Remove macro.
72901         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
72902         case_sensitive argument.
72903         (argcasematch): Remove function.
72904         (__xargmatch_internal): Remove case_sensitive argument.
72905         (main): Use XARGMATCH instead of XARGCASEMATCH.
72906
72907         * lib/xmalloc.c: Change compile-time error message. Add comment about
72908         required autoconf version.
72909
72910 2002-11-20  Paul Eggert  <eggert@twinsun.com>
72911
72912         Merge argmatch cleanups from Bison.  Assume C89.
72913
72914         * lib/argmatch.c: Include config.h here, not in argmatch.h.
72915         Include stdlib.h, for EXIT_FAILURE.
72916         Always include <string.h>, since we assume C89.
72917         (EXIT_FAILURE): Remove pre-C89 bug workaround.
72918         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
72919         Include <stddef.h> instead, since it's all we need for size_t.
72920         (PARAMS): Remove.  All uses removed.
72921         (ARRAY_CARDINALITY): Do not bother to #undef.
72922         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
72923         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72924         Remove unnecessary parentheses.
72925         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72926         Insert necessary parentheses.
72927         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
72928         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
72929
72930 2002-11-19  Bruno Haible  <bruno@clisp.org>
72931
72932         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
72933         * lib/mbswidth.h: Include <stddef.h>, for size_t.
72934
72935         * lib/mbswidth.h (PARAMS): Remove macro.
72936         (mbswidth, mbsnwidth): Use ANSI C function declarations.
72937         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
72938
72939         * lib/gcd.h (PARAMS): Remove macro.
72940         (gcd): Use ANSI C function declarations.
72941         * lib/gcd.c (gcd): Likewise.
72942
72943 2002-11-15  Bruno Haible  <bruno@clisp.org>
72944
72945         * lib/strcspn.c: Include <stddef.h>.
72946         (strcspn): Use ANSI C function declaration. Change return type to
72947         size_t. Use NULL.
72948         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
72949         (strpbrk): Use NULL.
72950         * lib/strpbrk.h (PARAMS): Remove macro.
72951         (strpbrk): Use ANSI C function declaration.
72952         * lib/strstr.c: Don't include <sys/types.h>.
72953         * lib/strstr.h (PARAMS): Remove macro.
72954         (strstr): Use ANSI C function declarations.
72955
72956 2002-11-14  Karl Berry  <karl@gnu.org>
72957
72958         * config/mkinstalldirs: `do' on separate line, instead of
72959         `for var; do'.
72960
72961 2002-11-06  Bruno Haible  <bruno@clisp.org>
72962
72963         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
72964         * lib/gcd.c (gcd): Likewise.
72965
72966 2002-11-05  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/gcd.h: New file, from gettext-0.11.5.
72969         * lib/gcd.c: New file, from gettext-0.11.5.
72970
72971 2002-11-05  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72974         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72975         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72976         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72977
72978         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
72979         <libintl.h>.
72980         * lib/makepath.c: Include gettext.h instead of <locale.h> and
72981         <libintl.h>.
72982
72983         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
72984         * lib/human.c: Include gettext.h instead of <libintl.h>.
72985         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
72986         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
72987         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
72988         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
72989         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
72990         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
72991         (textdomain): Remove definition.
72992         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
72993
72994         * lib/long-options.c: Remove include of <libintl.h> and definition of
72995         _.
72996         * lib/same.c: Remove include of <libintl.h> and definition of _.
72997
72998 2002-11-04  Owen Taylor  <otaylor@redhat.com>
72999
73000         * lib/config.charset: A few additions for Solaris.
73001
73002 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73003
73004         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73005         * lib/localcharset.c (locale_charset): Declare as extern "C".
73006
73007 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73008
73009         * lib/config.charset: msdos in uk_UA uses CP1125.
73010
73011 2002-11-04  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73014         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73015         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73016         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73017         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73018
73019 2002-11-04  Bruno Haible  <bruno@clisp.org>
73020
73021         * lib/localcharset.c (locale_charset): Don't return an empty string.
73022
73023 2002-11-04  Bruno Haible  <bruno@clisp.org>
73024
73025         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73026         aliases.
73027
73028 2002-11-04  Bruno Haible  <bruno@clisp.org>
73029
73030         * lib/config.charset: Update for newest glibc. Add canonical names
73031         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73032
73033 2002-11-04  Bruno Haible  <bruno@clisp.org>
73034
73035         * lib/config.charset: Add support for NetBSD.
73036
73037 2002-11-04  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73040
73041 2002-11-01  Bruno Haible  <bruno@clisp.org>
73042
73043         * configure.in: Add AC_CONFIG_AUX_DIR call.
73044         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73045         test/Makefile.
73046         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73047
73048 2002-09-28  Karl Berry  <karl@gnu.org>
73049
73050         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73051         installed automake until the next release, since changes have been
73052         made.
73053
73054 2002-09-25  Karl Berry  <karl@gnu.org>
73055
73056         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73057         * lib/getopt*: copy from libc/posix.
73058         * lib/gettext.h: copy from gettext.
73059         * lib/.cppi-disable: add strdup.c, gettext.h.
73060
73061 2002-09-25  Karl Berry  <karl@gnu.org>
73062
73063         * config/srclist.txt: enable gettext.h check.
73064         * config/config.{guess,sub}: update from prep.
73065         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73066                 from automake 1.6.3.
73067         See srclist*.
73068
73069 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73070
73071         * regex.c (PATFETCH): Remove the translating fetch.
73072         (PATFETCH_RAW): Rename to PATFETCH.
73073         (set_image_of_range): New fun.
73074         (SET_RANGE_TABLE_WORK_AREA): Use it.
73075         (regex_compile): Don't translate the pattern chars so eagerly.
73076         Only do it when inserting an `exactn' bytecode or when handling
73077         a char-range.
73078         (mutually_exclusive_p): Avoid empty statement.
73079
73080 2002-07-06  Jim Meyering  <meyering@lucent.com>
73081
73082         * m4/README: Don't mention Makefile.am.in.
73083         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73084
73085 2002-07-01  Jim Meyering  <meyering@lucent.com>
73086
73087         * lib/c-stack.c: Include sys/time.h.
73088         From Volker Borchert.
73089
73090 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73091
73092         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73093
73094 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73095
73096         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73097         New macro.  Use it uniformly instead of
73098         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73099         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73100         reported by Vin Shelton.
73101
73102 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73103
73104         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73105         Do not assume SA_SIGINFO behavior.
73106         Bug reported by Jim Meyering on NetBSD 1.5.2.
73107
73108 2002-06-22  Jim Meyering  <meyering@lucent.com>
73109
73110         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73112
73113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73114         now that configure.ac uses AC_GNU_SOURCE.
73115         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73116         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73117
73118         Update to latest tools.  Suggestions from Paul Eggert.
73119         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73120         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73121         * m4/fnmatch.m4: Likewise.
73122         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73123         to AC_HEADER_STDBOOL
73124
73125 2002-06-22  Jim Meyering  <meyering@lucent.com>
73126
73127         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73128         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73129
73130 2002-06-22  Jim Meyering  <meyering@lucent.com>
73131
73132         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73133
73134         * lib/exitfail.c, exitfail.h: Likewise.
73135         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73136
73137         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73138         of fnmatch.h.
73139         (EXTRA_DIST): Add fnmatch_loop.c.
73140         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73141
73142         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73143         * lib/fnmatch.c: Update from diffutils-2.8.2.
73144         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73145         * lib/fnmatch.h: Remove file.
73146
73147 2002-06-21  Jim Meyering  <meyering@lucent.com>
73148
73149         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73150         * m4/mbrtowc.m4: Likewise.
73151
73152         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73153         * m4/mbswidth.m4: Reflect name change:
73154         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73155         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73156
73157         * m4/lib-link.m4: Update from gettext-0.11.2.
73158         * m4/gettext.m4: Likewise.
73159
73160         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73161         From Alfred M. Szmidt.
73162
73163 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73164
73165         * lib/file-type.h: Report an error if neither S_ISREG nor
73166         S_IFREG is defined, instead of using a test specific to glibc
73167         2.2.  This should be safe, since POSIX requires S_ISREG and
73168         Unix Version 7 had S_IFREG.  We don't need to check for
73169         <sys/types.h> since we don't use any symbols that it defines.
73170
73171 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73172
73173         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73174         $@-t, so that each temporary file name is unique and valid in the first
73175         8 characters, for operation under DOS.
73176
73177 2002-06-15  Paul Eggert  <eggert@twinsun.com>
73178
73179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
73180
73181 2002-06-15  Jim Meyering  <meyering@lucent.com>
73182
73183         Work even with DJGPP 2.03, which lacks support for symlinks.
73184         From Richard Dawe.
73185         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
73186         is defined.
73187         * lib/lchown.c (S_ISLNK): Likewise.
73188
73189 2002-06-15  Jim Meyering  <meyering@lucent.com>
73190
73191         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
73192         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
73193         have been included before this file.
73194
73195 2002-06-14  Jim Meyering  <meyering@lucent.com>
73196
73197         * lib/file-type.h: Use the version from diffutils-2.8.2.
73198         * lib/file-type.c: Likewise.
73199
73200 2002-06-07  Jim Meyering  <meyering@lucent.com>
73201
73202         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
73203         They're needed at least for NetBSD 1.5.2.
73204         ($statxfs_includes): Include those same headers.
73205         ($statxfs_includes): Include sys/vfs.h if available.
73206         ($statxfs_includes): Likewise for sys/statvfs.h.
73207         Check for the following members in both structs statfs and statvfs:
73208         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
73209
73210 2002-06-01  Jim Meyering  <meyering@lucent.com>
73211
73212         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
73213         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
73214
73215 2002-05-28  Jim Meyering  <meyering@lucent.com>
73216
73217         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
73218         Reported by Volker Borchert.
73219
73220 2002-05-27  Jim Meyering  <meyering@lucent.com>
73221
73222         Fix a problem seen only on nonconforming systems whereby ls.c's
73223         use of localtime, and then of gettimeofday would cause trouble:
73224         the localtime call used to initialize rpl_gettimeofday's save
73225         mechanism would clobber ls's current local time information so
73226         that in any long listing the first file would always be listed
73227         with date 1970-01-01.  Analysis by Volker Borchert.
73228
73229         * lib/gettimeofday.c (localtime): Undefine.
73230         (rpl_localtime): New function.
73231
73232 2002-05-27  Jim Meyering  <meyering@lucent.com>
73233
73234         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
73235         localtime.
73236
73237         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
73238         use the replacement function; it wouldn't resolve at link time.
73239         Reported by Volker Borchert.
73240
73241 2002-05-22  Jim Meyering  <meyering@lucent.com>
73242
73243         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
73244         file-type.h.
73245         * lib/file-type.h: New file.
73246         * lib/file-type.c (file_type): New file/function.  Extracted from
73247         diffutils.
73248
73249 2002-04-30  Jim Meyering  <meyering@lucent.com>
73250
73251         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
73252
73253 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73254
73255         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
73256
73257 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73258
73259         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
73260         Do not check for alloca.h (no longer used) or stdbool.h (was never
73261         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
73262
73263 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73264
73265         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
73266
73267 2002-04-29  Jim Meyering  <meyering@lucent.com>
73268
73269         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
73270         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
73271         Use AC_FUNC_STRNLEN here instead.
73272
73273         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
73274         With autoconf-2.53a, it's part of AC_PROG_CC.
73275
73276 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73277
73278         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
73279         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
73280
73281 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73282
73283         * lib/sig2str.h, lib/sig2str.c: New files.
73284         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
73285
73286 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73287
73288         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73289         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
73290         of 127, since 64 is the largest conceivable number for ancient
73291         nonstandard hosts.
73292         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
73293
73294 2002-04-28  Jim Meyering  <meyering@lucent.com>
73295
73296         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
73297
73298 2002-04-24  Jim Meyering  <meyering@lucent.com>
73299
73300         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
73301         (jm_PREREQ): Use it.
73302
73303         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
73304         mach/mach.h fcntl.h.
73305         Check for this function: setlocale.
73306
73307 2002-04-24  Jim Meyering  <meyering@lucent.com>
73308
73309         * lib/gettext.h: New file, from Gettext.
73310         * lib/Makefile.am (INCLUDES): Remove -I../intl.
73311         (libfetish_a_SOURCES): Add gettext.h.
73312
73313 2002-04-16  Jim Meyering  <meyering@lucent.com>
73314
73315         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
73316         ut_pid, ut_id, ut_exit.
73317
73318 2002-04-16  Jim Meyering  <meyering@lucent.com>
73319
73320         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
73321         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
73322         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
73323
73324 2002-04-12  Jim Meyering  <meyering@lucent.com>
73325
73326         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
73327         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
73328         existence of the getmntinfo function.  Needed for Darwin 5.3.
73329
73330         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
73331         This is necessary at least on Darwin 5.3.
73332
73333         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
73334         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
73335         strnlen.o in the library, and that makes some versions of ranlib
73336         object.
73337
73338 2002-04-12  Jim Meyering  <meyering@lucent.com>
73339
73340         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
73341
73342 2002-04-09  Jim Meyering  <meyering@lucent.com>
73343
73344         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
73345         to be more precise.  Rather than saying we're checking whether the
73346         function `works', say what we're testing.
73347         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
73348         Reported by Bruno Haible.
73349
73350 2002-03-10  Jim Meyering  <meyering@lucent.com>
73351
73352         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
73353         Suggestion from Santiago Vila.
73354
73355 2002-03-08  Jim Meyering  <meyering@lucent.com>
73356
73357         * lib/rename.c: Mention that this wrapper is needed also on
73358         mips-dec-ultrix4.4 systems.
73359
73360 2002-03-02  Jim Meyering  <meyering@lucent.com>
73361
73362         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
73363         not HAVE_CLOCK_SETTIME.
73364
73365 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73366
73367         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
73368         Check for clock_settime.
73369
73370 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73371
73372         * lib/nanosleep.h: Rename to....
73373         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
73374
73375         * lib/gettime.c: New file.
73376         * lib/settime.c: New file.
73377         * lib/stime.c: Remove.
73378
73379         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
73380         timespec.h.  Remove nanosleep.h.
73381
73382 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73383
73384         * m4/acl.m4: New file.
73385         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
73386         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
73387
73388 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73389
73390         * lib/acl.c, lib/acl.h: New files.
73391         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
73392
73393 2002-02-24  Jim Meyering  <meyering@lucent.com>
73394
73395         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
73396         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
73397         cause trouble.  Reported by Nelson Beebe.
73398
73399 2002-02-23  Paul Eggert  <eggert@twinsun.com>
73400
73401         * lib/path-concat.c (xpath_concat): Reorder code to pacify
73402         compilers that don't know that xalloc_die never returns.
73403
73404 2002-02-20  Jim Meyering  <meyering@lucent.com>
73405
73406         * lib/getdate.c: Regenerate using bison-1.33.
73407
73408 2002-02-17  Jim Meyering  <meyering@lucent.com>
73409
73410         * config/config.guess (main): Don't use `head -1'; it's no longer
73411         portable. Use `sed 1q' instead.
73412
73413 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
73414
73415         * m4/codeset.m4: Upgrade to gettext-0.11.
73416         * m4/gettext.m4: Upgrade to gettext-0.11.
73417         * m4/glibc21.m4: Upgrade to gettext-0.11.
73418         * m4/iconv.m4: Upgrade to gettext-0.11.
73419         * m4/isc-posix.m4: Upgrade to gettext-0.11.
73420         * m4/lcmessage.m4: Upgrade to gettext-0.11.
73421         * m4/lib-ld.m4: New file, from gettext-0.11.
73422         * m4/lib-link.m4: New file, from gettext-0.11.
73423         * m4/lib-prefix.m4: New file, from gettext-0.11.
73424         * m4/progtest.m4: Upgrade to gettext-0.11.
73425
73426 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73427
73428         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
73429         (jm_PREREQ): Use it.
73430
73431 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73432
73433         * lib/posixver.c, lib/posixver.h: New files.
73434         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73435
73436 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73437             Bruno Haible  <bruno@clisp.org>
73438
73439         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73440         (fwrite_success_callback): New declaration.
73441         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
73442         print_unicode_char. Call failure callback instead of error.
73443         (fwrite_success_callback): New function.
73444         (exit_failure_callback): New function.
73445         (fallback_failure_callback): New function.
73446         (print_unicode_char): Call unicode_to_mb.
73447
73448 2002-01-26  Jim Meyering  <meyering@lucent.com>
73449
73450         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
73451         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
73452
73453 2002-01-26  Jim Meyering  <meyering@lucent.com>
73454
73455         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
73456
73457 2002-01-22  Paul Eggert  <eggert@twinsun.com>
73458
73459         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
73460
73461 2002-01-22  Jim Meyering  <meyering@lucent.com>
73462
73463         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
73464         Otherwise, some versions of automake would omit the rule that makes
73465         Makefile from Makefile.in.
73466
73467 2002-01-21  Paul Eggert  <eggert@twinsun.com>
73468
73469         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
73470         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73471         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
73472         (memcoll): Set errno to zero if there is no error.
73473
73474         * lib/quotearg.c (quotearg_buffer_restyled):
73475         Fix bug with quoting buffers containing NUL when backslashing escapes.
73476         This bug was exposed by the other changes in this patch.
73477         (quotearg_n_options): New arg ARGSIZE.
73478         All callers changed.
73479         (quoting_options_from_style): New function.
73480         (quotearg_n_style): Use it.
73481         (quotearg_n_style_mem): New function.
73482
73483         * lib/quotearg.h (quotearg_n_style_mem): New function.
73484
73485 2002-01-19  Jim Meyering  <meyering@lucent.com>
73486
73487         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
73488         Remove useless quotes: DF_PROG="df".
73489         * m4/strnlen.m4: New file.
73490
73491 2002-01-16  Paul Eggert  <eggert@twinsun.com>
73492
73493         * lib/backupfile.c (ISDIGIT): Comment fix.
73494         * lib/getdate.y (ISDIGIT): Likewise.
73495         * lib/posixtm.c (ISDIGIT, year): Likewise.
73496         * lib/strverscmp.c (ISDIGIT): Likewise.
73497         * lib/userspec.c (ISDIGIT): Likewise.
73498
73499 2002-01-16  Jim Meyering  <meyering@lucent.com>
73500
73501         * lib/getdate.y: Add three semicolons, each just before a closing
73502         brace. Bison (as of version 1.31) no longer papers over that mistake.
73503
73504 2002-01-05  Jim Meyering  <meyering@lucent.com>
73505
73506         * lib/version-etc.c (version_etc_copyright): Update copyright year.
73507
73508 2001-12-19  Paul Eggert  <eggert@twinsun.com>
73509
73510         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
73511         not silently exit merely because the output buffer happens to
73512         have nothing pending.
73513
73514 2001-12-18  Paul Eggert  <eggert@twinsun.com>
73515
73516         See the big note in ../ChangeLog.
73517         * lib/human.c (suffixes): Prefer K to k for 1024.
73518         (generate_suffix_backwards): New function.
73519         (human_readable_inexact): Use it.
73520         * lib/xstrtol.c (__xstrtol): If there is no number but there
73521         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
73522         Accept 'K' as well as 'k'.
73523
73524 2001-12-15  Jim Meyering  <meyering@lucent.com>
73525
73526         * lib/regex.h (__restrict_arr): Update from libc.
73527
73528         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
73529         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
73530         (STREQ): Define.
73531
73532 2001-12-14  Jim Meyering  <meyering@lucent.com>
73533
73534         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
73535         Suggestion from Bruno Haible.
73536
73537 2001-12-10  Jim Meyering  <meyering@lucent.com>
73538
73539         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
73540         xrealloc, Instead, include "xalloc.h".
73541         (initbuffer): Don't cast xmalloc return value to char*.
73542         (readline): Reword comment.
73543         Don't cast xrealloc return value to char*
73544         Return NULL, not 0.
73545
73546 2001-12-09  Jim Meyering  <meyering@lucent.com>
73547
73548         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
73549         about `signed and unsigned type in conditional expression'.
73550         * lib/posixtm.c (posix_time_parse): Likewise.
73551
73552         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
73553
73554         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
73555         to avoid a pedantic warning.
73556
73557         * lib/getstr.c: Don't include assert.h.
73558         (getstr): Remove warning-evoking assertions.
73559         Return -1 if offset parameter is out of bounds.
73560         Change the type of a local from int to size_t.
73561
73562         * lib/strftime.c (my_strftime_localtime_r): Include this function
73563         definition in the `#if ! HAVE_TM_GMTOFF' block.
73564
73565         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
73566         Include xalloc.h instead.
73567
73568 2001-12-02  Jim Meyering  <meyering@lucent.com>
73569
73570         * lib/tempname.c: Don't declare getenv, thus reverting the change of
73571         2001-11-18.  It's no longer necessary, now that stdlib.h is always
73572         included.
73573
73574         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
73575         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
73576
73577 2001-11-30  Akim Demaille  <akim@epita.fr>
73578
73579         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
73580         before being defined.
73581
73582 2001-11-27  Paul Eggert  <eggert@twinsun.com>
73583
73584         * lib/quotearg.h (quotearg_n, quotearg_n_style):
73585         First arg is int, not unsigned.
73586         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
73587         (SIZE_MAX, UINT_MAX): New macros.
73588         (quotearg_n_options): Abort if N is negative.
73589         Avoid overflow check on hosts where size_t is 64 bits and int
73590         is 32 bits, as overflow is impossible there.
73591         Fix off-by-one typo that caused unnecessary reallocation.
73592
73593 2001-11-27  Jim Meyering  <meyering@lucent.com>
73594
73595         * lib/tempname.c: Merge with version from libc.
73596         * lib/regex.c: Likewise.
73597
73598         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
73599         systems for which STDC_HEADERS is 0, it was not included, resulting in
73600         a warning about an integer-to-pointer conversion problem with getenv.
73601         Reported by Volker Borchert.
73602
73603 2001-11-26  Jim Meyering  <meyering@lucent.com>
73604
73605         * lib/gtod.h: Remove file.
73606         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
73607         * lib/gettimeofday.c: Don't include gtod.h.
73608         (GTOD_init): Remove function.
73609         (rpl_gettimeofday): Do its job here instead, rather than aborting.
73610         Suggestion from Volker Borchert.
73611
73612 2001-11-23  Jim Meyering  <meyering@lucent.com>
73613
73614         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
73615         it.
73616         * lib/hash.c (struct hash_table): Define it here instead.
73617
73618 2001-11-22  Jim Meyering  <meyering@lucent.com>
73619
73620         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
73621
73622 2001-11-20  Jim Meyering  <meyering@lucent.com>
73623
73624         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
73625         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
73626
73627 2001-11-19  Jim Meyering  <meyering@lucent.com>
73628
73629         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
73630         directory.  Use "conftestXXXXXX" as the template.
73631         Suggestion from Paul Eggert.
73632
73633         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
73634         immediately, so the test doesn't mistakenly hit the max-open-files
73635         limit.
73636
73637 2001-11-18  Paul Eggert  <eggert@twinsun.com>
73638
73639         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
73640         (TEMPORARIES): New macro.
73641         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73642         removes an artificial limitation (e.g. HP-UX 10.20, where
73643         TMP_MAX is 17576).
73644
73645 2001-11-18  Jim Meyering  <meyering@lucent.com>
73646
73647         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73648
73649 2001-11-18  Jim Meyering  <meyering@lucent.com>
73650
73651         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73652         on SunOS 4.
73653
73654         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73655         files will be created before anything else.
73656
73657 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73658
73659         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73660         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73661
73662 2001-11-17  Jim Meyering  <meyering@lucent.com>
73663
73664         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73665         Prompted by a report from Bob Proulx.
73666
73667         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
73668         Instead, require UTILS_FUNC_MKSTEMP.
73669
73670 2001-11-17  Jim Meyering  <meyering@lucent.com>
73671
73672         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
73673         Now, that's done as part of AC_FUNC_STRTOD.
73674
73675 2001-11-17  Jim Meyering  <meyering@lucent.com>
73676
73677         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
73678         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
73679         rather than group writable.  Patch by Juan F. Codagnone.
73680
73681         * lib/readtokens.c: Remove explicit declarations of xmalloc and
73682         xrealloc, Instead, include "xalloc.h".
73683
73684         * lib/mountlist.c: Include unlocked-io.h after all system headers.
73685         Remove explicit declarations of xmalloc, xrealloc,
73686         and xstrdup.  Instead, include "xalloc.h".
73687
73688         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
73689         unlocked-io.h.
73690         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
73691         Likewise.
73692         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
73693
73694         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
73695         Reported by Padraig Brady.
73696
73697         * lib/mkstemp.c: #undef mkstemp.
73698         Include config.h.
73699         (rpl_mkstemp): Rename from mkstemp.
73700         Protoize.
73701
73702 2001-11-16  Jim Meyering  <meyering@lucent.com>
73703
73704         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
73705         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
73706         determine the amount of total physical memory, use pstat_getstatic.
73707         HPUX-11 doesn't define _SC_PHYS_PAGES.
73708         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
73709         If sysconf couldn't be used to determine the amount of available
73710         physical memory, use both pstat_getstatic and pstat_getdynamic.
73711         Based on a patch from Bob Proulx.
73712
73713 2001-11-10  Jim Meyering  <meyering@lucent.com>
73714
73715         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
73716         (jm_PREREQ): Use it.
73717
73718 2001-11-09  Jim Meyering  <meyering@lucent.com>
73719
73720         * m4/jm-macros.m4: Require autoconf-2.52f.
73721         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
73722         Use these AC_-prefixed names, not the AM_-prefixed ones.
73723
73724         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
73725
73726 2001-11-05  Jim Meyering  <meyering@lucent.com>
73727
73728         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
73729
73730 2001-11-04  Jim Meyering  <meyering@lucent.com>
73731
73732         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
73733         $DEFS.
73734
73735 2001-11-03  Jim Meyering  <meyering@lucent.com>
73736
73737         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
73738         of AC_DEFUN.
73739
73740         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
73741         know the name of the variable in the macro definition.
73742
73743 2001-11-03  Jim Meyering  <meyering@lucent.com>
73744
73745         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
73746         in argmatch_to_argument call.
73747
73748         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
73749         argument.
73750
73751         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
73752         e.g., a fault due to an attempt to free a NULL pointer.
73753
73754 2001-11-01  Jim Meyering  <meyering@lucent.com>
73755
73756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
73757         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
73758
73759 2001-11-01  Jim Meyering  <meyering@lucent.com>
73760
73761         * lib/dirfd.c, lib/dirfd.h: New files.
73762         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
73763
73764         * lib/hash.c (hash_print) [TESTING]: Clean up.
73765
73766 2001-10-22  Paul Eggert  <eggert@twinsun.com>
73767
73768         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
73769         to avoid a warning if -Wall.
73770
73771 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
73772
73773         * README: New file
73774         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
73775         (per RMS's instructions, this is now the canonical source)
73776         * lgpl/, gpl/: New directories.
73777
73778 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73779
73780         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73781
73782 2001-10-21  Jim Meyering  <meyering@lucent.com>
73783
73784         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73785         this code would end up calling gettext even in packages built
73786         with --disable-nls.
73787         * lib/getopt.c (_): Likewise.
73788         * lib/regex.c (_): Likewise.
73789
73790 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73791
73792         * m4/error.m4 (jm_PREREQ_ERROR):
73793         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73794         AC_FUNC_STRERROR_R does that.
73795         Check for strerror declaration.
73796
73797         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73798         are supposed to have them these days.
73799         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73800         Merge changes from latest Autoconf CVS.
73801         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73802         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73803         POSIX decided to standardize on the int flavor of strerror_r.
73804
73805 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73806
73807         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73808         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73809         Use strerror_r that is only a macro, even if it is not a function.
73810         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73811         (private_strerror): Use prototypes, not old-style function definition.
73812         (print_errno_message): New function.
73813         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73814         char*-flavored one.
73815         (error_tail, error, error_at_line): Use it.
73816
73817 2001-10-11  Jim Meyering  <meyering@lucent.com>
73818
73819         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
73820         and quote_n (1, ... to avoid clobbering a buffer.
73821
73822 2001-10-05  Jim Meyering  <meyering@lucent.com>
73823
73824         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
73825         hash-pjw.h.
73826         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
73827         * lib/hash-pjw.h: New file.
73828
73829 2001-09-30  Jim Meyering  <meyering@lucent.com>
73830
73831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
73832         `struct fsstat' has the `f_fstypename' member.
73833         Use that to define FS_TYPE, which is now used to make
73834         the getfsstat link test tighter.
73835
73836 2001-09-30  Jim Meyering  <meyering@lucent.com>
73837
73838         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
73839         Include <sys/ucred.h>, for Apple Darwin.
73840         Include sys/mount.h and sys/fs_types.h only if available.
73841         (FS_TYPE): Define.
73842         (read_filesystem_list): Use FS_TYPE.
73843
73844 2001-09-29  Paul Eggert  <eggert@twinsun.com>
73845
73846         * lib/exclude.c (excluded_filename): 0 -> false, since it's
73847         a boolean context.
73848
73849 2001-09-29  Jim Meyering  <meyering@lucent.com>
73850
73851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73852         [one-argument getmntent function]): Include stdio.h before mntent.h.
73853         SunOS 4.1.x needs it for the declaration of `FILE'.
73854         Patch by Volker Borchert.
73855
73856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73857         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
73858         sys/fs_types.h, and make the link-test for getfsstat guard #include
73859         directives with appropriate #if HAVE_*_H tests so that we can
73860         detect getfsstat on Apple Darwin1.3.7 systems.
73861         Reported by Nelson Beebe.
73862         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
73863
73864 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73865
73866         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73867         #defines strtoimax.  Also treat the other strto* functions
73868         like strtoimax.
73869
73870         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73871         Check for strtoul and strtoumax,
73872         as those declarations are made even in the signed case.
73873         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
73874         Likewise, for strtol and strtoimax.
73875
73876 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73877
73878         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73879         #defines strtoimax.  Also treat the other strto* functions
73880         like strtoimax.
73881
73882         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
73883         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
73884         (strtoimax, strtoumax): Do not declare if already defined as a macro.
73885
73886 2001-09-26  Jim Meyering  <meyering@lucent.com>
73887
73888         Most macros in unlocked-io.h had the wrong number of arguments.
73889         * lib/gen-uio: New script.
73890         (USE_UNLOCKED_IO): Define to 1 if not already defined.
73891         * lib/unlocked-io.hin: Remove file.
73892         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
73893         rather than trying to embed it here.
73894         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
73895         Reported by Padraig Brady.
73896
73897 2001-09-25  Volker Borchert  <bt@teknon.de>
73898
73899         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
73900         `result'.
73901
73902 2001-09-24  Jim Meyering  <meyering@lucent.com>
73903
73904         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
73905
73906 2001-09-23  Jim Meyering  <meyering@lucent.com>
73907
73908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
73909         instead of the mere test for existence of mntent.h.  The latter
73910         would get a false-positive on AIX 3.4 systems.
73911         In the outer getmntent if-block, don't die if neither of the getmntent
73912         tests succeeds.  Instead, just fall through and continue with the
73913         remaining tests.
73914
73915 2001-09-23  Jim Meyering  <meyering@lucent.com>
73916
73917         * lib/mountlist.c: Remove useless parentheses in #if directives.
73918         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
73919         the deprecated MOUNTED symbol is no longer defined in mntent.h.
73920
73921 2001-09-22  Jim Meyering  <meyering@lucent.com>
73922
73923         * m4/gettext.m4: New file.  From gettext.
73924         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
73925         * m4/progtest.m4: Likewise
73926         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
73927         * m4/glibc21.m4: Likewise.
73928
73929         * m4/libintl.m4: Remove.  No longer used.
73930
73931 2001-09-22  Jim Meyering  <meyering@lucent.com>
73932
73933         * lib/localcharset.c: Update from latest gettext.
73934         * lib/config.charset: Likewise.
73935
73936 2001-09-20  Jim Meyering  <meyering@lucent.com>
73937
73938         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
73939         strtoimax.
73940         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
73941         strtoumax.
73942
73943 2001-09-20  Jim Meyering  <meyering@lucent.com>
73944
73945         * lib/xstrtol.c (strtoimax): Guard declaration with
73946         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
73947         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
73948         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
73949         (strtoumax): Likewise, for completeness (it wasn't necessary).
73950
73951 2001-09-17  Paul Eggert  <eggert@twinsun.com>
73952
73953         * lib/strtoimax.c (HAVE_LONG_LONG):
73954         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
73955         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
73956         to work around bug in IBM C compiler.
73957
73958 2001-09-17  Jim Meyering  <meyering@lucent.com>
73959
73960         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
73961         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
73962         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
73963         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
73964         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
73965         whenever the right hand side need not be expanded by the shell.
73966
73967 2001-09-16  Paul Eggert  <eggert@twinsun.com>
73968
73969         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
73970         library.  It's not correct, as some older glibcs are buggy.
73971         fnmatch wasn't fixed until glibc 2.2.
73972
73973         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
73974         special shell magic here.
73975
73976 2001-09-16  Jim Meyering  <meyering@lucent.com>
73977
73978         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
73979         * m4/jm-macros.m4: Require it.
73980
73981 2001-09-16  Jim Meyering  <meyering@lucent.com>
73982
73983         * lib/mkdir.c: New file.
73984
73985 2001-09-15  Jim Meyering  <meyering@lucent.com>
73986
73987         * m4/jm-macros.m4: Check for help2man.
73988
73989 2001-09-11  Jim Meyering  <meyering@lucent.com>
73990
73991         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
73992         The body, by Paul Eggert, was moved here from configure.in.
73993         * m4/jm-macros.m4: Require UTILS_HOST_OS.
73994
73995 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73996
73997         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
73998         (jm_PREREQ): Use it.
73999
74000 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74001
74002         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74003         Use ssize_t, not int, to store result of readlink.
74004         Check for ssize_t overflow as well as size_t overflow,
74005         as POSIX says the result of readlink is implementation-defined
74006         when ssize_t overflows.
74007         Remove unnecessary cast to char*.
74008         Use free+malloc instead of realloc, as the storage doesn't need
74009         to be preserved and it's clearer and can be more efficient that way.
74010         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74011         * lib/xreadlink.h (xreadlink): Update prototype.
74012
74013 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74014
74015         * lib/xgetcwd.c: Revert some of the previous change; intead,
74016         fix the HAVE_GETCWD_NULL code to behave more like the
74017         !HAVE_GETCWD_NULL code used to.
74018
74019         Include "xalloc.h".
74020         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74021         invoke xalloc_die.
74022
74023 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74024
74025         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74026         sys/param.h, as pathmax.h includes them.
74027
74028 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74029
74030         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74031         (jm_PREREQ_XGETCWD): New macro.
74032
74033         * m4/getcwd.m4: New file.
74034
74035 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74036
74037         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74038         like the HAVE_GETCWD_NULL code.
74039         Include pathmax.h if not HAVE_GETCWD.
74040         Do not include xalloc.h.
74041         (INITIAL_BUFFER_SIZE): New symbol.
74042         Do not use xmalloc / xrealloc, since the caller is responsible for
74043         handling errors.  Preserve errno around `free' during failure.
74044         Do not overrun buffer when using getwd.
74045
74046 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74047
74048         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74049         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74050         getcwd (NULL, 0).
74051
74052 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74053
74054         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74055         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74056         spotted by Jim Meyering.
74057
74058 2001-09-03  Jim Meyering  <meyering@lucent.com>
74059
74060         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74061         failure.
74062
74063 2001-09-02  Jim Meyering  <meyering@lucent.com>
74064
74065         * lib/error.c: Update from GNU libc.
74066
74067 2001-09-01  Jim Meyering  <meyering@lucent.com>
74068
74069         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74070         Used by df.
74071
74072 2001-09-01  Jim Meyering  <meyering@lucent.com>
74073
74074         * lib/xreadlink.c: New file.
74075         * lib/xreadlink.h: New file.
74076         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74077         xreadlink.h.
74078
74079         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74080         doesn't conflict with sparc Solaris 7's definition in
74081         /usr/include/sys/int_types.h.
74082
74083         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74084         files.
74085         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74086         and strncasecmp as r-values.  Unixware didn't have declarations.
74087
74088 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74089
74090         * lib/xstrtol.h: Add copyright notice.
74091         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74092         LONGINT_INVALID_SUFFIX_CHAR.
74093
74094 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74095
74096         * lib/xstrtol.c (strtoimax): New decl.
74097
74098 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74099
74100         * lib/xgetcwd.c: Don't include pathmax.h.
74101         Include stdlib.h and unistd.h if available.
74102         Include xalloc.h.
74103         (xmalloc, xstrdup, free): Remove decls.
74104         (xgetcwd): Don't assume sizes fit in unsigned.
74105         Check for overflow when computing sizes.
74106         Simplify reallocation code.
74107
74108 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74109
74110         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74111         a directory's st_size can have an arbitrary value, so the old
74112         usage could waste an arbitrary amount of memory.  All uses
74113         changed.
74114         * lib/savedir.h: Update prototype.
74115
74116 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74117
74118         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74119
74120         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74121         old strtoimax.c.
74122
74123         Also, make the following further changes to make this file's
74124         configuration more similar to that of strtol.c:
74125         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74126         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74127         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74128         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74129         changed to signed values.
74130
74131         And make the following changes as well:
74132         Fix copyright notice, as 1999 was missing.
74133         (verify): New macro.
74134         (strtoimax): Check sizes at compile-time, not run-time.
74135         Prefer strtol to strtoll if both work.
74136         (main): Remove; it was not that useful and was a pain to maintain.
74137
74138         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74139
74140 2001-08-31  Jim Meyering  <meyering@lucent.com>
74141
74142         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74143         Use an initial, malloc'd, buffer of length 128 rather than
74144         a statically allocated one of length 1024.
74145
74146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74147
74148         Simplify code, partly by assuming autoconf 2.52 semantics.
74149
74150         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74151
74152         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74153         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74154         All uses removed.
74155         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74156         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74157         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74158         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74159         jm_AC_HEADER_INTTYPES_H.
74160         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74161
74162         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74163
74164         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74165         Quote first arg of AC_DEFUN.
74166         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74167         since they are needed to parse the include file even if we need
74168         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74169         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74170         but with opposite signedness.
74171
74172 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74173
74174         Merge 'exclude' changes from tar 1.13.22.
74175         This fixes one or two unlikely storage allocation overflow bugs,
74176         but doesn't change user-visible behavior otherwise.
74177
74178 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74179
74180         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
74181         (jm_PREREQ_EXCLUDE): New macro.
74182
74183 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74184
74185         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
74186         tm to be declared.
74187
74188 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74189
74190         * lib/hash.c: Remove '2001' from copyright notice.
74191
74192 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74193
74194         * lib/full-write.h: New file.
74195         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
74196         * lib/full-write.c: Correct credits, as cccp.c no longer
74197         exists and anyway it was so heavily changed from the old cccp
74198         code as to be unrecognizable.  Include full-write.h.
74199         (full_write) Return size_t, with short writes meaning failure.
74200         All callers changed.  This fixes a bug with large buffers
74201         on 64-bit hosts.
74202         * lib/utime.c: Include full-write.h.
74203
74204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74205
74206         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
74207         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
74208         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
74209         Include if available.
74210         (<xalloc.h>): Include
74211         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
74212         (verify): New macro.  Use it to verify that EXCLUDE macros do not
74213         collide with FNM macros.
74214         (struct patopts): New struct.
74215         (struct exclude): Use it, as exclude patterns now come with options.
74216         (new_exclude): Support above changes.
74217         (new_exclude, add_exclude_file):
74218         Initial size must now be a power of two to simplify overflow checking.
74219         (free_exclude, fnmatch_no_wildcards): New function.
74220         (excluded_filename): No longer requires options arg, as the options
74221         are determined by add_exclude.  Now returns bool, not int.
74222         (excluded_filename, add_exclude):
74223         Add support for the fancy new exclusion options.
74224         (add_exclude, add_exclude_file): Now takes int options arg.
74225         Check for arithmetic overflow when computing sizes.
74226         (add_exclude_file): xrealloc might modify errno, so don't
74227         realloc until after errno might be used.
74228
74229         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
74230         New macros.
74231         (free_exclude): New decl.
74232         (add_exclude, add_exclude_file): Now takes int options arg.
74233         (excluded_filename): No longer requires options arg, as the options
74234         are determined by add_exclude.  Now returns bool, not int.
74235
74236 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74237
74238         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
74239
74240 2001-08-27  Jim Meyering  <meyering@lucent.com>
74241
74242         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
74243
74244         * lib/version-etc.c (N_): Remove definition.
74245         Revert most of last change.
74246         Instead, simply don't mark the `Copyright...' string for translation.
74247         Based on advice from Paul Eggert.
74248
74249         * lib/strtoxmax.c: Tweak comment.
74250
74251 2001-08-26  Jim Meyering  <meyering@lucent.com>
74252
74253         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
74254
74255         * m4/xstrtoimax.m4: New file.
74256         * m4/xstrtoumax.m4: Add comments explaining why we
74257         AC_REPLACE_FUNCS(strtol).
74258
74259 2001-08-26  Jim Meyering  <meyering@lucent.com>
74260
74261         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
74262         of copyright with `%s' so translators don't get an untranslated
74263         message in 2002.
74264         (COPYRIGHT_YEAR): Define.
74265         (version_etc): Use fprintf rather than fputs.
74266         Suggestion from Ulrich Drepper.
74267
74268         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
74269
74270         * lib/strtoll.c: New file, from GNU libc.
74271         * lib/xstrtoimax.c: New file.
74272
74273         * lib/xstrtol.h: Add xstrtoimax.
74274         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
74275         * lib/strtoimax.c: New file.  Likewise, but first define
74276         STRTOUXMAX_SIGNED.
74277
74278         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
74279         ...
74280         * lib/strtoxmax.c: ... then renamed to this.
74281
74282 2001-08-18  Paul Eggert  <eggert@twinsun.com>
74283
74284         * m4/inttypes.m4: Add AC_PREREQ(2.13).
74285         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
74286         (jm_AC_TYPE_INTMAX_T): New macro.
74287         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
74288
74289         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
74290
74291         * m4/longlong.m4: Renamed from ulonglong.m4.
74292         * m4/inttypes.m4: Renamed from inttypes_h.m4.
74293         * m4/uintmax_t.m4: Removed.
74294
74295 2001-08-13  Paul Eggert  <eggert@twinsun.com>
74296
74297         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
74298         Port to Solaris 8, where 'sed' requires a space after the 'r'
74299         command, and where sh dislikes "$/".  Clean up the spacing a bit.
74300         Redirect output to $tmp just once.
74301
74302 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
74303
74304         * lib/addext.c (<errno.h>): Include.
74305         (errno): Declare if not defined.
74306         (addext): Work correctly when pathconf returns -1 and leaves
74307         errno alone because there is no limit.  Also, work even if
74308         pathconf returns a value greater than SIZE_MAX.
74309
74310 2001-08-12  Jim Meyering  <meyering@lucent.com>
74311
74312         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
74313         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
74314         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
74315         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
74316         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
74317         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
74318         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
74319         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
74320         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
74321         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
74322         utime.m4, utimes.m4, xstrtoumax.m4:
74323         Quote the first argument in each use of AC_DEFUN.
74324
74325 2001-08-12  Jim Meyering  <meyering@lucent.com>
74326
74327         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
74328         Simply `return getcwd (NULL, 0);'.
74329         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
74330         Use 1300 as initial value for length, not PATH_MAX.
74331
74332         * lib/pathmax.h: Clean up cpp syntax.
74333
74334 2001-08-12  Jim Meyering  <meyering@lucent.com>
74335
74336         * lib/gettimeofday.c: New file.
74337         * lib/gtod.h: New file.
74338         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
74339
74340 2001-08-05  Jim Meyering  <meyering@lucent.com>
74341
74342         * m4/jm-macros.m4: Require autoconf-2.52.
74343
74344 2001-08-04  Jim Meyering  <meyering@lucent.com>
74345
74346         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
74347         stmt, to get in sync with glibc.
74348
74349 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74350
74351         The following changes are from gettext 0.10.39 as maintained by
74352         Bruno Haible.
74353
74354         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
74355         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
74356         with inverted sense.  All uses changed.
74357
74358         * lib/mbswidth.c: Don't include <limits.h>.
74359         Include <stdlib.h> and <string.h> unconditionally.
74360         (iswcntrl, mbsinit, ISCNTRL): New macros.
74361         (mbsnwidth): Use K&R style function declarations.
74362         Don't bother checking for MB_LEN_MAX == 1, since the compiler
74363         can optimize it when MB_CUR_MAX == 1.
74364         The width of control characters is zero, not 1.
74365
74366 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74367
74368         The following changes are from gettext 0.10.39 as maintained by
74369         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
74370
74371         * m4/codeset.m4: Upgrade to serial AM1.
74372         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
74373         all uses changed.  Quote first arg of AC_DEFUN.
74374         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
74375
74376         * m4/iconv.m4: Upgrade to serial AM2.
74377         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
74378         Add --with-libconv-prefix.
74379         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
74380         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
74381         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
74382         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
74383         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
74384
74385         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
74386         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
74387         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
74388         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
74389         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
74390         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
74391         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
74392         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
74393         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74394
74395         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
74396         string.h any more.
74397
74398         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
74399         not the default value.
74400
74401         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
74402         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
74403         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
74404         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
74405         Also check for iswcntrl, used for wcwidth fallback.
74406         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
74407         to Autoconf 2.13.
74408
74409 2001-08-03  Jim Meyering  <meyering@lucent.com>
74410
74411         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
74412         as it was in the original.  Reported by Paul Eggert.
74413
74414 2001-07-16  Jim Meyering  <meyering@lucent.com>
74415
74416         * m4/gettimeofday.m4: New file.
74417         Prompted by a report from Bernhard Baehr.
74418
74419 2001-07-15  Jim Meyering  <meyering@lucent.com>
74420
74421         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
74422         stuff. Now it's in ../Makefile.cfg.
74423
74424 2001-07-15  Jim Meyering  <meyering@lucent.com>
74425
74426         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
74427         (BUILT_SOURCES): Add unlocked-io.h.
74428         (io_functions): Define.
74429         (unlocked-io.h): New rule.
74430         (DISTCLEANFILES): Add unlocked-io.h.
74431         (all-local): Depend on unlocked-io.h, to ensure it is created.
74432
74433         * lib/unlocked-io.hin: New file
74434
74435         * lib/regex.c: Update from glibc.
74436
74437 2001-07-05  Jim Meyering  <meyering@lucent.com>
74438
74439         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74440         recommendation.
74441         (libfetish_a_SOURCES): Put all .h files here instead.
74442         Remove a thus-exposed (better checks in automake) duplicate and
74443         two unnecessary .h files.
74444
74445 2001-07-04  Jim Meyering  <meyering@lucent.com>
74446
74447         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
74448         that generates jm-glibc-io.m4 so that it doesn't trigger any make
74449         distcheck failure.
74450
74451 2001-07-02  Jim Meyering  <meyering@lucent.com>
74452
74453         The following changes were prompted by suggestions from Bruno Haible.
74454
74455         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
74456         is now generated.
74457         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
74458         definition of EXTRA_DIST.
74459         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
74460         ensure that the generated file is created/updated whenever the list
74461         of $(unlocked_functions) is changed.
74462         (jm-glibc-io.m4): New rule.
74463         (unlocked-io.h): New rule -- currently unused.
74464
74465 2001-06-24  Jim Meyering  <meyering@lucent.com>
74466
74467         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
74468         unmatched right bracket, rather than kludging it with an extra,
74469         falsely-matching quote in a comment.  Patch by Akim Demaille.
74470
74471 2001-06-11  Jim Meyering  <meyering@lucent.com>
74472
74473         * lib/regex.c: Update from GNU libc.
74474
74475 2001-05-27  Jim Meyering  <meyering@lucent.com>
74476
74477         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
74478         Check for ut_type in struct utmp.
74479
74480 2001-05-27  Jim Meyering  <meyering@lucent.com>
74481
74482         * lib/readutmp.h (UT_TYPE): Define.
74483
74484 2001-05-24  Jim Meyering  <meyering@lucent.com>
74485
74486         * lib/argmatch.c: Include "quote.h".
74487         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
74488         quote function.  Reported by Göran Uddeborg.
74489
74490 2001-05-22  Jim Meyering  <meyering@lucent.com>
74491
74492         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
74493         now that we use the package-supplied version unconditionally.
74494         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
74495
74496 2001-05-21  Jim Meyering  <meyering@lucent.com>
74497
74498         * m4/regex.m4: Change a couple backticks to single quotes to avoid
74499         shell syntax errors.
74500
74501 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74502
74503         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
74504
74505 2001-05-20  Paul Eggert  <eggert@twinsun.com>
74506
74507         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
74508         Don't bother to check library strftime, since
74509         we'll be using our own my_strftime function anyway.
74510         Define my_strftime instead of strftime.
74511
74512 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
74513
74514         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
74515         which is not yet declared.
74516
74517 2001-05-15  Jim Meyering  <meyering@lucent.com>
74518
74519         * m4/regex.m4: Use proper quoting so brackets appear in the test
74520         program.
74521         Reported by, and with help from, Bruno Haible.
74522
74523 2001-05-13  Jim Meyering  <meyering@lucent.com>
74524
74525         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
74526         undefined.
74527
74528 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74529
74530         dirname code cleanup.  base_name now behaves more compatibly
74531         with POSIX basename when given file names that have trailing
74532         slashes, and similarly for dir_name.  Add new primitives
74533         base_len and dir_len.  Put the directory-name-related decls
74534         into dirname.h.
74535
74536         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
74537         * lib/backupfile.c (base_name): Likewise.
74538         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
74539         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
74540         * lib/makepath.c (strip_trailing_slashes): Likewise.
74541         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
74542         ISSLASH): Likewise.
74543         * lib/rename.c (strip_trailing_slashes): Likewise.
74544         * lib/same.c (base_name): Likewise.
74545         * lib/stripslash.c (ISSLASH): Likewise.
74546
74547         * lib/addext.c: Include <dirname.h> after size_t is defined.
74548         * lib/backupfile.c: Likewise.
74549
74550         * lib/addext.c (addext): Use base_len to trim redundant
74551         trailing slashes instead of doing it ourselves.
74552         But do not trim the last slash if it is not redundant.
74553
74554         * lib/backupfile.c (find_backup_file_name,
74555         max_backup_version): Use base_len instead of rolling it ourselves.
74556         Handle the case of "" and (on DOS) "C:" correctly.
74557
74558         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
74559         needed. Include <string.h>, <dirname.h>.
74560         (base_name): Allow file names ending in slashes, other than names
74561         that are all slashes.  In this case, return the basename followed
74562         by the slashes.  This is more general, and can be used in places
74563         where the original base_name purposely had an assertion failure.
74564         (base_len): New function.
74565
74566         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
74567         Do not include <assert.h>; no longer needed.
74568         Include xalloc.h.
74569         (memrchr): Remove decl.
74570         (dir_name_r): Remove.
74571         (dir_len): Renamed from dirlen.  All callers changed.
74572         Rewrite in terms of base_name, for simplicity and consistency.
74573         (dir_name): Never return NULL.  All callers changed.
74574         Do not include <stdlib.h> in test program; no longer needed.
74575         return 0; is fine for test program.
74576
74577         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
74578         New macros.
74579         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
74580
74581         * lib/path-concat.c (path_concat): Use base_len to compute
74582         base length, not strlen; this means we cannot rely on memcpy
74583         to null-terminate.
74584
74585         * lib/same.c (STREQ): Remove.
74586         (same_name): Handle the case where the basename ends in trailing '/'.
74587
74588         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
74589         a slash was stripped.  Do not strip the last slash after a
74590         file system prefix.
74591
74592 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74593
74594         * lib/Makefile.am (libfetish_a_SOURCES):
74595         Add strftime.c, since we now compile it on all hosts.
74596
74597         * lib/strftime.c (my_strftime):
74598         Define to nstrftime if emacs, but only if my_strftime is not defined.
74599         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
74600         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
74601         Add one more extra argument: a nanoseconds value.
74602         All uses changed.
74603         (ns): New macro.
74604         (my_strftime function): Add %N format.
74605         (emacs_strftimeu): Renamed from emacs_strftime,
74606         with extra ut argument.
74607
74608 2001-05-09  Paul Eggert  <eggert@twinsun.com>
74609
74610         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
74611
74612 2001-04-21  Jim Meyering  <meyering@lucent.com>
74613
74614         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
74615         doesn't interfere.
74616
74617 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74618
74619         * m4/ftruncate.m4: Check for chsize.
74620         Link with ftruncate.o unconditionally if ftruncate is missing.
74621         This was required when cross-compiling to i586-mingw32msvc.
74622
74623 2001-04-08  Jim Meyering  <meyering@lucent.com>
74624
74625         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
74626         recomputed; that's necessary when the offset spans a DST transition.
74627         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
74628
74629 2001-04-02  Jim Meyering  <meyering@lucent.com>
74630
74631         * lib/regex.h, regex.c: Update from GNU libc.
74632
74633 2001-03-24  Jim Meyering  <meyering@lucent.com>
74634
74635         * m4/jm-macros.m4: Require autoconf-2.49d.
74636
74637 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
74638
74639         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
74640
74641 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74642
74643         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74644
74645 2001-03-17  Jim Meyering  <meyering@lucent.com>
74646
74647         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74648         now that the version in autoconf is equivalent.
74649         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74650
74651         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74652         Suggestion from Akim Demaille.
74653
74654         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74655         (jm_PREREQ_TEMPNAME): New function.
74656
74657 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74658
74659         * lib/tempname.c (uint64_t): Define to uintmax_t if
74660         not defined, and if UINT64_MAX is not defined.
74661         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74662         Reported by John David Anglin.
74663
74664 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74665
74666         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74667         resolve alias if codeset is empty.
74668         * lib/config.charset (BeOS): Use wildcard syntax.
74669
74670 2001-03-13  Jim Meyering  <meyering@lucent.com>
74671
74672         * lib/path-concat.c (path_concat)
74673         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
74674         concatenating e.g., `C:' and `foo'.
74675         From Bruno Haible.
74676
74677 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74678
74679         * lib/localcharset.c (locale_charset): Don't use
74680         setlocale(LC_CTYPE,NULL). Don't return NULL.
74681         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
74682
74683 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74684
74685         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
74686         support for DOS/DJGPP.
74687
74688 2001-03-01  Paul Eggert  <eggert@twinsun.com>
74689
74690         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
74691         lacks mkstemp.  Compile our own tempname.c if we compile our own
74692         mkstemp.c, as mkstemp relies on tempname.
74693
74694 2001-03-01  Jim Meyering  <meyering@lucent.com>
74695
74696         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
74697         AH_VERBATIM really does output its argument verbatim.
74698
74699 2001-02-28  Paul Eggert  <eggert@twinsun.com>
74700
74701         * lib/Makefile.am (libfetish_a_SOURCES):
74702         Add dup-safer.c, fopen-safer.c.
74703         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
74704
74705         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
74706         * lib/unistd-safer.h: New files.
74707
74708 2001-02-25  Paul Eggert  <eggert@twinsun.com>
74709
74710         The mkstemp replacement is taken from glibc 2.2.2, with some
74711         portability fixes for use outside glibc, as follows:
74712
74713         * lib/tempname.c (struct_stat64): New macro.
74714         (direxists, __gen_tempname): Use it.
74715         This avoids a portability problem with Solaris 8.
74716
74717         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
74718         (<stddef.h>, <stdint.h>, <string.h>):
74719         Include only if STDC_HEADERS || _LIBC.
74720         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
74721         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
74722         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
74723         (__set_errno): Define this macro if <errno.h> doesn't.
74724         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
74725         Define these macros if <stdio.h> doesn't.
74726         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
74727         Define these macros if <sys/stat.h>
74728         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
74729         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
74730         __xstat64): Define if not _LIBC.
74731         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
74732         (__gen_tempname): Invoke gettimeofday only if
74733         HAVE_GETTIMEOFDAY || _LIBC;
74734         otherwise, fall back on plain "time".
74735         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
74736
74737         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
74738
74739         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
74740
74741 2001-02-18  Paul Eggert  <eggert@twinsun.com>
74742
74743         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
74744
74745 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74746
74747         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
74748         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
74749         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
74750         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74751
74752 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74753
74754         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
74755         Remove workaround macros for hosts that have mbrtowc but not
74756         mbstate_t, as we now insist on proper declarations for both
74757         before using mbrtowc.
74758
74759 2001-02-17  Jim Meyering  <meyering@lucent.com>
74760
74761         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
74762         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
74763         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
74764         UnixWare 7.1.1.
74765
74766         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
74767         rather than AC_CACHE_VAL.
74768
74769 2001-02-17  Jim Meyering  <meyering@lucent.com>
74770
74771         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
74772         around included file name.
74773
74774         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
74775
74776         * lib/strftime.c: Update from GNU libc (the only changes were to
74777         comments).
74778
74779 2001-02-17  Jim Meyering  <meyering@lucent.com>
74780
74781         * lib/regex.c: Update from libc.
74782
74783 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74784
74785         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74786         clash.
74787
74788 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74789
74790         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74791         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74792         Reported by Mark Hounschell via Paul Eggert.
74793
74794 2001-02-07  Jim Meyering  <meyering@lucent.com>
74795
74796         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74797
74798 2001-02-05  Jim Meyering  <meyering@lucent.com>
74799
74800         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74801         it includes the patch required for `large file' support with at least
74802         HP-UX's 10.20 /bin/cc.
74803
74804 2001-02-03  Jim Meyering  <meyering@lucent.com>
74805
74806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74807         AS_IF, now that it works once again (mysteriously).
74808         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74809
74810 2001-01-30  Jim Meyering  <meyering@lucent.com>
74811
74812         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74813         * m4/chown.m4: Rename conftestchown to conftest.chown.
74814         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74815         s/conftestdir2/conftest.d2/.
74816         * m4/utimes.m4: s/conftestdata/conftest.data/
74817         Inspired by Pavel Roskin's change in autoconf.
74818
74819 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
74820
74821         * lib/config.charset: Update for FreeBSD 4.2.
74822
74823 2001-01-27  Jim Meyering  <meyering@lucent.com>
74824
74825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
74826         a use of AS_IF.
74827         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74828
74829 2001-01-26  Jim Meyering  <meyering@lucent.com>
74830
74831         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
74832         quotearg.c includes it.
74833
74834 2001-01-26  Jim Meyering  <meyering@lucent.com>
74835
74836         * lib/quotearg.c: Include stddef.h.
74837         * lib/quote.c: Include stddef.h.
74838         Reported by Axel Kittenberger.
74839
74840         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
74841         line in double quotes so that it evokes a better diagnostic.
74842         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
74843         Reported by Axel Kittenberger.
74844
74845 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
74846
74847         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
74848         as if it was a `charset'.
74849
74850 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74851
74852         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
74853         has const.
74854
74855 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74856
74857         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
74858         to avoid a warning.  Add back 'const' to inptr.
74859
74860 2001-01-20  Jim Meyering  <meyering@lucent.com>
74861
74862         Be sure that headers are checked before used in code compiled
74863         for the type checks.
74864         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
74865         In place of that, invoke jm_CHECK_ALL_TYPES.
74866         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
74867         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
74868         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
74869         The check for ssize_t was mistakenly run before the test for unistd.h.
74870
74871         The configure-time check for stdbool.h was missing.
74872         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
74873         (jm_PREREQ_HASH): New function.
74874
74875 2001-01-17  Jim Meyering  <meyering@lucent.com>
74876
74877         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
74878         for autoconf-2.49c.
74879         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
74880
74881 2001-01-16  Jim Meyering  <meyering@lucent.com>
74882
74883         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
74884         From Bruno Haible.
74885
74886 2001-01-14  Jim Meyering  <meyering@lucent.com>
74887
74888         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
74889         foo and bar.  Create conftestdir/ in the script, not in the C code.
74890         Remove directories in the script, not in the C code.
74891         Remove conftestdir{,2} before trying to create the directory.
74892         Make the entire configure script fail if the mkdir fails.
74893
74894 2001-01-14  Jim Meyering  <meyering@lucent.com>
74895
74896         * lib/rename.c: New file.  From Volker Borchert.
74897         Include stdlib.h, string.h or strings.h, and xalloc.h.
74898         Use strip_trailing_slashes rather than open-coding it.
74899
74900 2001-01-03  Paul Eggert  <eggert@twinsun.com>
74901
74902         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
74903
74904 2001-01-03  Jim Meyering  <meyering@lucent.com>
74905
74906         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
74907         of local `inptr' to avoid warning with some system declarations of
74908         iconv.
74909
74910 2001-01-02  Volker Borchert  <bt@teknon.de>
74911
74912         * m4/rename.m4: New file.
74913         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
74914
74915 2001-01-01  Jim Meyering  <meyering@lucent.com>
74916
74917         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
74918         even on systems with utmpx.h.  It's necessary for the declaration of
74919         utmp's ut_user member.  Reported by Andreas Jaeger.
74920
74921         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
74922         available. They are required for the declarations of getgrgid and
74923         getpwuid resp.
74924         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
74925         Reported by Andreas Jaeger.
74926
74927 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
74928
74929         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
74930         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
74931         so `make install' also works in VPATH builds.
74932
74933 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
74934
74935         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
74936         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
74937         can be used in subdirectories.
74938
74939 2000-12-29  Paul Eggert  <eggert@twinsun.com>
74940
74941         * lib/modechange.c: Do not assume that mode_t uses the
74942         traditional octal encoding.  E.g. "chmod 1 FOO" should set
74943         the other-execute bit of FOO even if S_IXOTH != 1.
74944
74945         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
74946         WOTH, XOTH, ALLM): New macros.
74947         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
74948          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
74949         Use them.
74950         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
74951         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
74952         (mode_compile):
74953         No need to use uintmax_t; unsigned long is long enough.
74954         Don't bother to get suffix since we don't use it.
74955
74956 2000-12-26  Jim Meyering  <meyering@lucent.com>
74957
74958         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
74959         better with autoheader.
74960
74961 2000-12-24  Jim Meyering  <meyering@lucent.com>
74962
74963         * lib/hash.c (is_prime): Return explicit boolean values.
74964         (hash_get_first): Return NULL to appease Irix5.6's 89.
74965         Reported by Nelson Beebe.
74966
74967 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
74968
74969         * lib/localcharset.c (locale_charset): Add support for Win32.
74970
74971 2000-12-18  Paul Eggert  <eggert@twinsun.com>
74972
74973         * lib/physmem.h, lib/physmem.c: New files.
74974
74975         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
74976         (noinst_HEADERS): Add physmem.h.
74977
74978         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
74979         't' for compatibility with Solaris 8 sort.
74980
74981 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
74982
74983         * lib/config.charset: Add support for BeOS.
74984
74985 2000-12-17  Jim Meyering  <meyering@lucent.com>
74986
74987         * m4/dos.m4 (jm_AC_DOS): New file and macro.
74988         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
74989
74990 2000-12-16  Jim Meyering  <meyering@lucent.com>
74991
74992         This bug had a serious impact on chown: `chown N:M FILE' (for integer
74993         N and M) would have treated it like `chown N:N FILE'.
74994
74995         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
74996
74997 2000-12-16  Jim Meyering  <meyering@lucent.com>
74998
74999         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75000         SHELLS_FILE to a file name that's useful on djgpp systems.
75001         Include stdlib.h.
75002         (ADDITIONAL_DEFAULT_SHELLS): Define.
75003         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75004         Based mostly on a patch from Prashant TR.
75005
75006 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75007
75008         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75009         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75010         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75011
75012 2000-12-08  Andreas Schwab  <schwab@suse.de>
75013
75014         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75015         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75016
75017 2000-12-07  Jim Meyering  <meyering@lucent.com>
75018
75019         * lib/stripslash.c (ISSLASH): Define.
75020         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75021         `/'.
75022         From Prashant TR.
75023
75024         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75025         (dir_name_r): Declare this function as static.
75026         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75027         manifest itself on a name containing a mix of slashes and
75028         backslashes.
75029         Make this function work with names starting with a DOS-style
75030         drive letter and colon prefix.
75031         (dir_name): Append `.' if necessary.
75032         Based mostly on patches from Prashant TR and Eli Zaretskii.
75033
75034         * lib/dirname.h (dir_name_r): Remove prototype.
75035
75036 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75037
75038         * m4/off_t-format.m4: Remove this file.
75039         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75040
75041 2000-12-06  Jim Meyering  <meyering@lucent.com>
75042
75043         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75044         replacement strtoull, we may well need the replacement strtoul, too.
75045         Check for declarations of strtoul and strtoull.
75046         Check for strtol.  Mainly as a cue to cause automake to include
75047         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75048         Check for limits.h -- strtol.c needs it.
75049
75050 2000-12-05  Jim Meyering  <meyering@lucent.com>
75051
75052         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75053
75054 2000-12-04  Jim Meyering  <meyering@lucent.com>
75055
75056         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75057         Also include memory.h, stdlib.h, unistd.h if appropriate.
75058         Reported by Andreas Jaeger (conflicting declaration of malloc).
75059
75060 2000-12-02  Jim Meyering  <meyering@lucent.com>
75061
75062         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75063         * m4/jm-macros.m4 (jm_MACROS): require it.
75064
75065 2000-12-02  Jim Meyering  <meyering@lucent.com>
75066
75067         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75068
75069 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75070
75071         * lib/memrchr.c: Include <config.h> before any system include file.
75072
75073 2000-11-30  Jim Meyering  <meyering@lucent.com>
75074
75075         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75076
75077 2000-11-30  Jim Meyering  <meyering@lucent.com>
75078
75079         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75080
75081 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75082
75083         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75084
75085 2000-11-26  Jim Meyering  <meyering@lucent.com>
75086
75087         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75088
75089 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75090
75091         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75092         size of (size_t) -1; it's not portable.
75093
75094 2000-11-17  Jim Meyering  <meyering@lucent.com>
75095
75096         * lib/strstr.c: Update from GNU libc.
75097
75098 2000-11-17  Akim Demaille  <akim@epita.fr>
75099
75100         * lib/obstack.h: Formatting changes.
75101         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75102         prevent type checking.
75103         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75104         cast the value to (void *): assigning a `foo *' to a `void *'
75105         variable is valid.
75106         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75107
75108 2000-11-16  Jim Meyering  <meyering@lucent.com>
75109
75110         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75111
75112 2000-11-11  Jim Meyering  <meyering@lucent.com>
75113
75114         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75115
75116 2000-11-10  Jim Meyering  <meyering@lucent.com>
75117
75118         * lib/obstack.h: Update from GNU libc.
75119         * lib/obstack.c: Likewise.
75120
75121 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75122
75123         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75124
75125 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75126
75127         * lib/getusershell.c (setusershell): Use rewind rather than
75128         fseek/fseeko, to avoid configuration hassles with fseeko.
75129         Don't bother opening SHELLS_FILE if shellstream is NULL;
75130         it's not necessary.
75131
75132 2000-11-05  Jim Meyering  <meyering@lucent.com>
75133
75134         * lib/makepath.h (make_dir): Declare.
75135         * lib/makepath.c (make_dir): Remove `static' attribute.
75136         Tweak a comment.
75137
75138 2000-11-04  Jim Meyering  <meyering@lucent.com>
75139
75140         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75141
75142 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75143
75144         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75145         last one in a bucket, advance to the next bucket.
75146
75147 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75148
75149         * lib/fnmatch.c: Do not comment out all the code if we are using
75150         the GNU C library, because in some cases we are replacing buggy
75151         code in the GNU C library itself.
75152
75153 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75154
75155         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75156         (regex_compile): Catch bogus \(\1\).
75157
75158 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75159
75160         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75161         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75162         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75163
75164 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75165
75166         * lib/error.h, getline.h, modechange.h:
75167         Remove "2000" from Copyright line, as the file hasn't been
75168         changed this year other than in the copyright notice.
75169
75170         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75171         was changed this year.
75172
75173 2000-10-29  Jim Meyering  <meyering@lucent.com>
75174
75175         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75176         renaming.
75177         * m4/ls-mntd-fs.m4: Likewise
75178
75179 2000-10-29  Jim Meyering  <meyering@lucent.com>
75180
75181         * lib/xstat.in: Fix grammar in comment.
75182
75183 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
75184
75185         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
75186         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
75187         doesn't define __restrict_arr.
75188
75189 2000-10-28  Jim Meyering  <meyering@lucent.com>
75190
75191         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
75192         (jm_PREREQ_MEMCHR): New function.
75193
75194 2000-10-28  Jim Meyering  <meyering@lucent.com>
75195
75196         * lib/memchr.c: Update from libc.
75197         Adjust for portability:
75198         [HAVE_STDLIB_H]: Include stdlib.h.
75199         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
75200         Undef __memchr, too.
75201         [!weak_alias]: Define __memchr to memchr.
75202
75203         * lib/regex.c: Update from libc.
75204         * lib/regex.h: Likewise.
75205         * lib/getopt1.c: Likewise.
75206         * lib/memcmp.c: Likewise.
75207
75208         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
75209         Avoid using fseek, when possible -- it's broken by design.
75210         Patch by Ulrich Drepper.
75211
75212 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
75213
75214         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
75215         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
75216         Giving in to popular pressure to shut up the compiler with casts.
75217
75218 2000-10-26  Jim Meyering  <meyering@lucent.com>
75219
75220         * lib/strftime.c: Update from libc.
75221
75222 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
75223
75224         * regex.c: More `unsigned char' -> `re_char' changes.
75225         Also change several `int' into `re_wchar_t'.
75226         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
75227         (PUSH_FAILURE_POINTER): Don't cast any more.
75228         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
75229         We want GCC to complain, since this piece of code makes
75230         re_match non-reentrant, which *should* be fixed.
75231         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
75232         (EXTEND_BUFFER): Use RETALLOC.
75233         (SET_LIST_BIT): Don't cast.
75234         (re_wchar_t): New type.
75235         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
75236         that those two functions will always properly return.
75237         (IMMEDIATE_QUIT_CHECK): Cast to void.
75238         (analyse_first): Use recursion rather than an explicit stack.
75239         (re_compile_fastmap): Can't fail anymore.
75240         (re_search_2): Don't check re_compile_fastmap for failure.
75241         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
75242         Now also sets the new value (passed in a new argument).
75243         (re_match_2_internal): Use it.
75244         Also, use a new var `reg' of type size_t when looping through regs
75245         rather than reuse the inappropriate `mcnt'.
75246
75247 2000-10-25  Jim Meyering  <meyering@lucent.com>
75248
75249         * lib/obstack.c: Update from libc.
75250
75251 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
75252
75253         * regex.c (regex_compile): Change the way of handling a range from
75254         a char less than 256 to a char not less than 256.
75255
75256 2000-10-24  Andrew Innes  <andrewi@gnu.org>
75257
75258         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
75259         NT-Emacs only.
75260         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
75261         so that re_search functions only quit when callers expect them to.
75262
75263 2000-10-23  Jim Meyering  <meyering@lucent.com>
75264
75265         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
75266         wrong.  That set_locale call must not have any side effects.
75267         From Paul Eggert.
75268
75269 2000-10-22  Jim Meyering  <meyering@lucent.com>
75270
75271         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
75272         [CYCLIC]: Remove now-unused definition.
75273
75274         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
75275         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
75276         Suggestion from Ulrich Drepper.
75277
75278 2000-10-21  Jim Meyering  <meyering@lucent.com>
75279
75280         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
75281         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
75282         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
75283
75284 2000-10-21  Jim Meyering  <meyering@lucent.com>
75285
75286         * lib/dirname.c (memrchr): Declare if necessary.
75287         (dir_name): Remove the restriction that there be no
75288         trailing slashes.  Now, this code skips past them, effectively
75289         ignoring them.
75290         [TEST_DIRNAME] (main): New unit tests.
75291
75292         * lib/memrchr.c: New file from GNU libc.
75293         Undef __memrchr, too.
75294         [!weak_alias]: Define __memrchr to memrchr.
75295         Guard weak_alias use with `#ifdef weak_alias'.
75296
75297 2000-10-21  Jim Meyering  <meyering@lucent.com>
75298
75299         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
75300         (dir_name): Use dir_name_r.
75301         * lib/dirname.h (dir_name_r): Declare it.
75302
75303 2000-10-17  Jim Meyering  <meyering@lucent.com>
75304
75305         * lib/quote.h (PARAMS): Define and use.
75306         Reported by Akim Demaille.
75307
75308         * lib/getopt.c: Update from libc.
75309
75310 2000-10-16  Jim Meyering  <meyering@lucent.com>
75311
75312         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
75313         setlocale.
75314         From Jan Fedak.
75315
75316 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
75317
75318         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
75319
75320 2000-09-25  Jim Meyering  <meyering@lucent.com>
75321
75322         * lib/md5.h (rol): Define (from GnuPG).
75323
75324         * lib/sha.c: Give credit (GnuPG) where due.
75325         (M): Use rol rather than open-coding it.
75326         Add a FIXME comment.
75327
75328 2000-09-21  Jim Meyering  <meyering@lucent.com>
75329
75330         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
75331         Reported by Michael Stone.
75332
75333 2000-09-20  Jim Meyering  <meyering@lucent.com>
75334
75335         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
75336         (noinst_HEADERS): Add sha.h.
75337         Based on code from Scott G. Miller and from GnuPG.
75338
75339 2000-09-18  Jim Meyering  <meyering@lucent.com>
75340
75341         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
75342         LIBS. Otherwise, everyone ends up linking with -lelf for some
75343         configurations.
75344         Reported by Mike Stone.
75345
75346 2000-09-15  Jim Meyering  <meyering@lucent.com>
75347
75348         * lib/regex.c: Update from libc.
75349
75350 2000-09-10  Jim Meyering  <meyering@lucent.com>
75351
75352         * lib/getopt.c (_getopt_internal): Update from glibc.
75353
75354 2000-09-09  Jim Meyering  <meyering@lucent.com>
75355
75356         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
75357         think it should be used as a general replacement for isascii.
75358         * lib/fnmatch.c: Likewise.
75359         * lib/mbswidth.c: Likewise
75360         * lib/regex.c: Likewise.
75361
75362         Don't use atoi.
75363         * lib/userspec.c: Include sys/param.h and limits.h.
75364         Include xstrtol.h.
75365         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75366         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
75367         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
75368         UID, GID.  Check range.
75369
75370 2000-09-06  Jim Meyering  <meyering@lucent.com>
75371
75372         * lib/getopt.c (_getopt_internal): Update from glibc.
75373
75374 2000-08-30  Jim Meyering  <meyering@lucent.com>
75375
75376         * lib/strftime.c: Merge in changes from GNU libc.
75377
75378 2000-08-26  Jim Meyering  <meyering@lucent.com>
75379
75380         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
75381         * m4/fpending.m4: New file.
75382
75383 2000-08-26  Jim Meyering  <meyering@lucent.com>
75384
75385         * lib/closeout.c: Include "__fpending.h".
75386         (close_stdout_status): Return right away if there's nothing to flush.
75387
75388         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
75389         * lib/__fpending.c: New file.
75390         * lib/__fpending.h: New file.
75391
75392 2000-08-20  Jim Meyering  <meyering@lucent.com>
75393
75394         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
75395         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
75396         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
75397
75398 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
75399
75400         Improve fileutils installation on systems where running
75401         programs (like install) can't be unlinked.
75402         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
75403         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
75404
75405 2000-08-07  Paul Eggert  <eggert@twinsun.com>
75406
75407         Standardize on "memory exhausted" instead of "Memory exhausted"
75408         or "virtual memory exhausted".
75409         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
75410         "virtual memory exhausted".
75411         * lib/same.c (same_name): Invoke xalloc_die instead of printing
75412         our own message.
75413         * lib/userspec.c (parse_user_spec): Likewise.
75414         * lib/bumpalloc.h: comment fix
75415         * lib/same.c, userspec.c: Include xalloc.h.
75416
75417         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
75418         not char *const and pointing to a constant array.
75419         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
75420         (xrealloc): Comment fix.
75421
75422         * lib/userspec.c (parse_user_spec):
75423         Don't translate a message until just before returning,
75424         to avoid unnecessary translation.
75425
75426 2000-08-07  Jim Meyering  <meyering@lucent.com>
75427
75428         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
75429         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75430         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75431         getgroups.c, gethostname.c, getopt.h, group-member.c,
75432         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75433         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75434         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75435         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75436         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75437         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75438         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75439         yesno.c: Back out Copyright date changes for each file with no change
75440         this year.  This eases coordination with other programs using the same
75441         source code modules.  From Paul Eggert.
75442
75443 2000-08-06  Paul Eggert  <eggert@twinsun.com>
75444
75445         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
75446         not char, for compatibility with glibc 2.1.3 strftime.c.
75447
75448 2000-08-03  Greg McGary  <greg@mcgary.org>
75449
75450         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
75451         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
75452         (EXTEND_BUFFER): Use them.
75453
75454 2000-08-01  Jim Meyering  <meyering@lucent.com>
75455
75456         * lib/dirname.c (ISSLASH): Define.
75457         (BACKSLASH_IS_PATH_SEPARATOR): Define.
75458         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
75459         both `\' and `/' may be use as path separators.
75460         Based on a patch from Prashant TR.
75461
75462 2000-07-31  Paul Eggert  <eggert@twinsun.com>
75463
75464         * lib/quotearg.c (quotearg_n_options): Don't make the initial
75465         slot vector a constant, since it might get modified.
75466
75467 2000-07-31  Jim Meyering  <meyering@lucent.com>
75468
75469         * lib/xmalloc.c: Use `virtual memory exhausted', not
75470         `Memory exhausted'.
75471         * lib/obstack.c (print_and_abort): Likewise.
75472
75473 2000-07-30  Paul Eggert  <eggert@twinsun.com>
75474
75475         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
75476         buffer, so that the caller can always quote one small
75477         component of a "memory exhausted" message in slot 0.
75478         From a suggestion by Jim Meyering.
75479
75480 2000-07-30  Jim Meyering  <meyering@lucent.com>
75481
75482         * lib/makepath.c (make_path): Quote the other instance, too.
75483
75484         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
75485         (STATIC_BUF_SIZE): Define.
75486         (quotearg_n_options): Use only statically allocated storage when
75487         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
75488         than STATIC_BUF_SIZE.
75489
75490 2000-07-29  Jim Meyering  <meyering@lucent.com>
75491
75492         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
75493         * lib/dirname.c (dir_name): Likewise.
75494
75495         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
75496         `/'.
75497
75498         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
75499         (dir_name): Assert that there are no trailing slashes.
75500
75501 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
75502
75503         * lib/mbswidth.h (mbswidth): Add a flags argument.
75504         (mbswidth): New declaration.
75505         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
75506         * lib/mbswidth.c (mbswidth): Add a flags argument.
75507         (mbsnwidth): New function.
75508
75509 2000-07-24  Jim Meyering  <meyering@lucent.com>
75510
75511         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
75512
75513 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75514
75515         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
75516
75517 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75518
75519         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
75520         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
75521         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
75522         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
75523         invoke multibyte primitives.
75524
75525 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75526
75527         * lib/quotearg.c:
75528         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
75529         so that mbstate_t is always defined.
75530
75531         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
75532         be 1 in at least one GCC installation, and this configuration
75533         error is likely to be common.  Ignoring MB_LEN_MAX hurts
75534         performance on hosts that have mbrtowc but have only unibyte
75535         locales, but I assume these hosts are rare.
75536
75537 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75538
75539         * lib/mbswidth.c (_XOPEN_SOURCE):
75540         Don't define; this causes problems on Solaris 7.
75541         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
75542
75543 2000-07-23  Jim Meyering  <meyering@lucent.com>
75544
75545         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
75546         too: getgrgid, getpwuid, getuid.
75547
75548 2000-07-23  Jim Meyering  <meyering@lucent.com>
75549
75550         * lib/basename.c (base_name): Add an assertion.
75551
75552 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
75553
75554         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
75555         shadow its mbsinit function.
75556
75557 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75558
75559         * lib/mbswidth.h: New file.
75560         * lib/mbswidth.c: New file.
75561         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
75562         (noinst_HEADERS): Add mbswidth.h.
75563
75564 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75565
75566         * lib/config.charset: Add support for FreeBSD. Improve support for
75567         HP-UX and IRIX 6.
75568
75569 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
75570
75571         * m4/mbswidth.m4: New file.
75572         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
75573
75574 2000-07-15  Jim Meyering  <meyering@lucent.com>
75575
75576         * lib/makepath.c: Include quote.h.
75577         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
75578         corresponding argument in a `quote (...)' call.
75579         Give better diagnostics.
75580
75581         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
75582         (noinst_HEADERS): Add quote.h.
75583
75584         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
75585         from tar's src/misc.c.
75586         * lib/quote.h: New file.  Prototypes for same.
75587
75588 2000-07-14  Paul Eggert  <eggert@twinsun.com>
75589
75590         From a suggestion by Bruno Haible.
75591         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
75592         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
75593         to decide whether to define the BeOS workaround macro;
75594         this adjusts to the change to AC_MBSTATE_T.
75595
75596 2000-07-14  Jim Meyering  <meyering@lucent.com>
75597
75598         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
75599         jm_AC_TYPE_UINTMAX_T.
75600
75601 2000-07-13  Paul Eggert  <eggert@twinsun.com>
75602
75603         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
75604
75605         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
75606         quotearg_buffer_restyled): Add support for
75607         clocale_quoting_style.  Undo previous change to
75608         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
75609         and "{RIGHT QUOTATION MARK}" msgids.
75610
75611 2000-07-10  Paul Eggert  <eggert@twinsun.com>
75612
75613         From a suggestion by Bruno Haible.
75614         * m4/mbstate_t.m4 (AC_MBSTATE_T):
75615         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
75616         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
75617         and mbstate_t, to a single-part test that simply defines mbstate_t.
75618         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
75619         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
75620
75621 2000-07-10  Jim Meyering  <meyering@lucent.com>
75622
75623         * m4/strerror_r.m4: Mirror the correction made in autoconf.
75624
75625         * m4/gnu-source.m4: Output to confdefs.h directly.
75626         Suggestion from Akim Demaille.
75627
75628 2000-07-09  Paul Eggert  <eggert@twinsun.com>
75629
75630         The old behavior of quoting `like this' doesn't look good with
75631         newer, ISO-style fonts.  See:
75632         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
75633
75634         Instead, quote "like this" by default.  Let the translator
75635         tailor the locale-specific quoting behavior by providing
75636         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
75637
75638         * lib/quotearg.c (N_): New macro.
75639         (gettext_default): New function.
75640         (quotearg_buffer_restyled): Use
75641         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75642         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75643
75644 2000-07-09  Jim Meyering  <meyering@lucent.com>
75645
75646         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75647         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75648
75649         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75650         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75651
75652 2000-07-09  Jim Meyering  <meyering@lucent.com>
75653
75654         * lib/Most files: Update copyright dates to include 2000.
75655
75656 2000-07-08  Jim Meyering  <meyering@lucent.com>
75657
75658         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75659         if not defined.
75660         (xgethostname): Remove now-unnecessary #ifdef.
75661         Move declaration of `err' into loop where it's used.
75662
75663 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75664         and Bruno Haible  <haible@clisp.cons.org>
75665
75666         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75667         only if the test for an object-type mbstate_t fails.  This
75668         prevents us from mistakenly reporting that mbstate_t is a
75669         system object type after we "#define mbstate_t int" to work
75670         around its lack.
75671
75672 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75673         and Bruno Haible  <haible@clisp.cons.org>
75674
75675         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
75676
75677 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75678
75679         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
75680         to strerror_r.
75681         Include <ctype.h> for use of isalpha.
75682
75683 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75684
75685         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
75686         by allocating a larger buffer. Test the gethostname return value for
75687         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
75688         returns an error and ENAMETOOLONG isn't defined.
75689
75690 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75691
75692         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
75693         dimension.
75694
75695 2000-07-04  Jim Meyering  <meyering@lucent.com>
75696
75697         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
75698         of the deprecated AC_CHECKING.
75699
75700 2000-07-04  Jim Meyering  <meyering@lucent.com>
75701
75702         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
75703         Reported by Bruno Haible.
75704
75705 2000-07-04  Jim Meyering  <meyering@lucent.com>
75706
75707         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
75708         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
75709         lacks mbrtowc.
75710
75711 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75712
75713         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
75714         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
75715
75716 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75717         and Bruno Haible  <haible@clisp.cons.org>
75718
75719         * lib/quotearg.c (mbrtowc):
75720         Assign to *pwc, and return 1 only if result is nonzero.
75721         (iswprint): Use ISPRINT when substituting our own mbrtowc.
75722
75723 2000-07-03  Jim Meyering  <meyering@lucent.com>
75724
75725         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
75726
75727 2000-07-03  Jim Meyering  <meyering@lucent.com>
75728
75729         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
75730         This is necessary to get a definition of e.g., UTMP_FILE on
75731         HP-UX 10.20.
75732         From Bob Proulx.
75733
75734 2000-07-02  Jim Meyering  <meyering@lucent.com>
75735
75736         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
75737
75738         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
75739         AC_LIBOBJ(function_name).
75740         * m4/chown.m4: Likewise.
75741         * m4/fnmatch.m4: Likewise.
75742         * m4/ftruncate.m4: Likewise.
75743         * m4/getgroups.m4: Likewise.
75744         * m4/getline.m4: Likewise.
75745         * m4/group-member.m4: Likewise.
75746         * m4/jm-macros.m4: Likewise.
75747         * m4/lstat.m4: Likewise.
75748         * m4/malloc.m4: Likewise.
75749         * m4/memcmp.m4: Likewise.
75750         * m4/nanosleep.m4: Likewise.
75751         * m4/putenv.m4: Likewise.
75752         * m4/realloc.m4: Likewise.
75753         * m4/regex.m4: Likewise.
75754         * m4/stat.m4: Likewise.
75755         * m4/strftime.m4: Likewise.
75756
75757 2000-07-02  Jim Meyering  <meyering@lucent.com>
75758
75759         * lib/quotearg.c (mbstate_t): Don't define here.
75760
75761 2000-07-02  Jim Meyering  <meyering@lucent.com>
75762
75763         * lib/nanosleep.c (SIGCONT): Define if not already defined.
75764
75765 2000-07-01  Jim Meyering  <meyering@lucent.com>
75766
75767         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
75768
75769 2000-07-01  Jim Meyering  <meyering@lucent.com>
75770
75771         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
75772         problem.
75773
75774 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75775
75776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75777         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75778
75779 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75780
75781         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75782         per change in ../m4/ls-mntd-fs.m4.
75783         (read_filesystem_list): Ignore symbolic links.
75784
75785 2000-06-29  Jim Meyering  <meyering@lucent.com>
75786
75787         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75788         for declaration of strcmp.
75789
75790         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75791
75792         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75793         Avoid warning by casting result to `char *' to remove `const'.
75794
75795 2000-06-28  Jim Meyering  <meyering@lucent.com>
75796
75797         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75798         included by quotearg.c, for which we perform this test.  From
75799         Bruno Haible.
75800
75801 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75802
75803         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75804         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75805         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75806
75807 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75808
75809         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75810
75811 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75812
75813         savedir now sets errno on failure and invokes xmalloc to get memory.
75814         Fix a couple of other minor bugs while we're at it.
75815
75816         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
75817         (NAMLEN): Remove macro.
75818         (malloc, realloc): Remove decls.
75819         (stpcpy): Likewise.
75820         ("xalloc.h"): Include.
75821         (NAME_SIZE_DEFAULT): New macro.
75822         (savedir): Use xmalloc / xrealloc to allocate memory.
75823         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
75824         Skip "" directory entries.
75825         Use strlen to calculate directory entry length, since the old method
75826         is rarely used these days and isn't worth supporting.
75827         Don't use a pointer after freeing it.
75828         Check for integer overflow when calculating allocation size.
75829         Use memcpy to copy entries, instead of stpcpy.
75830         Set errno properly when returning NULL.
75831         Check for readdir error.
75832
75833 2000-06-26  Jim Meyering  <meyering@lucent.com>
75834
75835         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
75836
75837 2000-06-25  Jim Meyering  <meyering@lucent.com>
75838
75839         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
75840         Linux header bug when _XOPEN_SOURCE is defined to 500.
75841
75842 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75843
75844         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
75845         deficiency.
75846
75847 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75848
75849         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
75850         Include xalloc.h.
75851         Don't include <stdlib.h>.  Don't declare malloc, realloc.
75852
75853 2000-06-24  Jim Meyering  <meyering@lucent.com>
75854
75855         * m4/strerror_r.m4: Revive this file -- to try out an experimental
75856         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
75857         for which strerror does return char*, but which lacks a conveniently
75858         accessible declaration of the function.  If the compile-test says
75859         strerror_r doesn't work, then resort to a `run'-test that works on
75860         BeOS and segfaults on DEC Unix.
75861
75862 2000-06-24  Jim Meyering  <meyering@lucent.com>
75863
75864         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
75865
75866 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75867
75868         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
75869         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
75870
75871 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75872
75873         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
75874         (mbrtowc, mbstate_t): Define substitutes if
75875         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
75876         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
75877         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
75878
75879 2000-06-23  Jim Meyering  <meyering@lucent.com>
75880
75881         * m4/afs.m4: Add missing AC_MSG_RESULT.
75882         Reported by Bruno Haible.
75883
75884         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
75885         Suggestion from Bruno Haible.
75886
75887 2000-06-23  Jim Meyering  <meyering@lucent.com>
75888
75889         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
75890
75891 2000-06-21  Jim Meyering  <meyering@lucent.com>
75892
75893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
75894
75895 2000-06-21  Jim Meyering  <meyering@lucent.com>
75896
75897         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
75898         (noinst_HEADERS): Add getstr.h.
75899
75900         * lib/getline.c (getstr): Move into a separate file.
75901         * lib/getstr.c (getstr): New file, extracted from getline.c, with
75902         the following changes: new parameter, delim2; both delim[12]
75903         parameters have type `int', not `char'.  The latter would lose
75904         with 8-bit delimiters.
75905         * lib/getstr.h: New file.
75906
75907 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75908
75909         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
75910         than 1024, return a memory chunk of least possible size, instead
75911         of size PATH_MAX + 2. In the loop, increment the size proportionally.
75912         Use free/xmalloc instead of xrealloc to avoid copying for very long
75913         paths.
75914
75915 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75916
75917         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
75918         the empty string.
75919
75920 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75921
75922         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
75923         address, not strdup.  Include <stdlib.h> and don't declare free().
75924
75925 2000-06-19  Jim Meyering  <meyering@lucent.com>
75926
75927         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
75928
75929 2000-06-18  Jim Meyering  <meyering@lucent.com>
75930
75931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
75932
75933         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
75934         `checking whether...' message to be consistent with that of the
75935         lstat test.
75936
75937 2000-06-18  Jim Meyering  <meyering@lucent.com>
75938
75939         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
75940         Besides, these days every porting target provides a mkdir function.
75941
75942         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
75943         needed. (this snippet comes from src/system.h).
75944
75945 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
75946
75947         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
75948
75949 2000-06-15  Paul Eggert  <eggert@twinsun.com>
75950
75951         * lib/human.c (adjust_value): New function.
75952         (human_readable_inexact): Apply rounding style even when
75953         printing approximate values.
75954
75955 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75956
75957         * lib/human.c (human_readable_inexact): Allow an input block
75958         size that is not a multiple of the output block size, and vice versa.
75959         Reported by Piergiorgio Sartor.
75960
75961 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75962
75963         * lib/getdate.y (get_date): Apply relative times after time
75964         zone indicator, not before.  Reported by Todd A. Jacobs.
75965
75966 2000-06-13  Jim Meyering  <meyering@lucent.com>
75967
75968         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
75969
75970         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
75971
75972 2000-06-12  Paul Eggert  <eggert@twinsun.com>
75973
75974         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
75975
75976 2000-06-12  Jim Meyering  <meyering@lucent.com>
75977
75978         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
75979         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
75980         optional argument.
75981         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
75982         the optional argument, `lib'.
75983
75984 2000-06-08  Jim Meyering  <meyering@lucent.com>
75985
75986         * m4/largefile.m4: Remove file (now that it's part of autoconf).
75987
75988 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75989
75990         Rewrite largefile configuration so that we don't need to run
75991         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
75992         AC_CANONICAL_HOST in configure.in -- jmm]
75993
75994         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
75995         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
75996         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
75997         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
75998         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
75999         All uses changed.
76000         Instead of inspecting the output of getconf, try to compile the
76001         test program without and with the macro definition.
76002         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76003         for getconf.  Instead, check for the needed flags by compiling
76004         test programs.
76005
76006 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76007
76008         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76009
76010 2000-06-04  Jim Meyering  <meyering@lucent.com>
76011
76012         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76013         SunOS 4.1.4 for which gid_t is an unsigned type.
76014
76015 2000-06-03  Jim Meyering  <meyering@lucent.com>
76016
76017         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76018         now that autoconf requires that.
76019
76020         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76021         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76022         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76023
76024 2000-06-03  Jim Meyering  <meyering@lucent.com>
76025
76026         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76027
76028 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76029
76030         * m4/glibc21.m4: New file.
76031         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76032
76033 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76034
76035         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76036         newer, don't install charset.alias.
76037         * lib/config.charset: Change the Linux/glibc rules so they become empty
76038         on glibc-2.1 or newer.
76039
76040 2000-06-02  Jim Meyering  <meyering@lucent.com>
76041
76042         * lib/mountlist.c: Back out last change.  Instead, do this...
76043         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76044         me_dummy member using the same `ignore'-testing code.
76045         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76046         fs_type strings.
76047         From Mark D. Roth.
76048
76049 2000-05-29  Jim Meyering  <meyering@lucent.com>
76050
76051         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76052         mounts with the `ignore' attribute.  Based on a patch from
76053         Mark D. Roth.
76054
76055 2000-05-28  Jim Meyering  <meyering@lucent.com>
76056
76057         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76058         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76059         * m4/stat.m4: Likewise.
76060         * m4/lstat.m4: Likewise.
76061         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76062
76063         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76064         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76065
76066 2000-05-26  Jim Meyering  <meyering@lucent.com>
76067
76068         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76069
76070 2000-05-24  Jim Meyering  <meyering@lucent.com>
76071
76072         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76073         autoconf requires that.
76074         * m4/lib-check.m4: Likewise.
76075         * m4/jm-macros.m4: Likewise.
76076         * m4/strftime.m4: Likewise.
76077
76078         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76079         AC_CHECK_DECLS, now that autoconf requires that.
76080
76081 2000-05-22  Jim Meyering  <meyering@lucent.com>
76082
76083         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76084         * m4/lstat.m4: Likewise.
76085
76086 2000-05-22  Jim Meyering  <meyering@lucent.com>
76087
76088         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76089
76090 2000-05-20  Jim Meyering  <meyering@lucent.com>
76091
76092         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76093         (jm_PREREQ): Use it.
76094
76095 2000-05-18  Jim Meyering  <meyering@lucent.com>
76096
76097         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76098         back, too, since it may have been modified by allocate_entry.
76099         (hash_delete): Rewrite to use neither the assignment operator
76100         nor the comma operator in an if-expression.
76101
76102 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76103
76104         * lib/closeout.c:
76105         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76106         Remove; no longer needed.
76107         "quotearg.h": Add include.
76108         (file_name): Do not bother to explicitly initialize to NULL; it's less
76109         efficient on some hosts.
76110         (close_stdout_status): Remove test as to whether stdout was already
76111         closed; it breaks for the case "echo x | sort >&-".
76112         Quote file name colons.
76113         Do not assume that _("write error") lacks format strings.
76114
76115 2000-05-15  Jim Meyering  <meyering@lucent.com>
76116
76117         * lib/version-etc.c (version_etc_copyright): Update the copyright
76118         string used in all --version output.
76119
76120 2000-05-14  Jim Meyering  <meyering@lucent.com>
76121
76122         * lib/closeout.c (close_stdout_set_file_name): New function.
76123         (close_stdout_status): Use new file-scoped global.
76124         Return right away if fstat says the stdout file descriptor is invalid.
76125         * lib/closeout.h (close_stdout_set_file_name): Declare.
76126
76127 2000-05-10  Jim Meyering  <meyering@lucent.com>
76128
76129         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76130         (close_stdout_set_status): New function.
76131         * lib/closeout.h (close_stdout_set_status): Declare.
76132
76133 2000-05-09  Jim Meyering  <meyering@lucent.com>
76134
76135         * m4/gettext.m4: Rename this...
76136         * m4/libintl.m4: ...to this.
76137
76138 2000-05-08  Jim Meyering  <meyering@lucent.com>
76139
76140         * lib/long-options.c: Don't include closeout.h.
76141         (parse_long_options): Don't call close_stdout for --version.
76142
76143 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76144
76145         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76146         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76147         2.1.3 bug.  This avoids a clash when files like regex.c define
76148         _GNU_SOURCE.
76149
76150 2000-05-06  Jim Meyering  <meyering@lucent.com>
76151
76152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76153         (AC_REPLACE_FUNCS): Add strnlen.
76154
76155         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76156         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76157
76158         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76159         AC_SEARCH_LIBS call for nanosleep.
76160         (LIB_NANOSLEEP): Set and AC_SUBST.
76161
76162 2000-05-06  Jim Meyering  <meyering@lucent.com>
76163
76164         * lib/strnlen.c: Undefine __strnlen and strnlen.
76165         [!weak_alias]: Define __strnlen to strnlen.
76166
76167         * lib/atexit.c: New file, from libiberty.
76168
76169 2000-05-06  Jim Meyering  <meyering@lucent.com>
76170
76171         * lib/closeout.c (close_stdout_status): Also check for errors on the
76172         stderr stream.
76173
76174 2000-05-05  Jim Meyering  <meyering@lucent.com>
76175
76176         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
76177         AC_SEARCH_LIBS call for clock_gettime.
76178         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
76179
76180         * m4/search-libs.m4: Update from autoconf.
76181
76182         su doesn't work on Solaris 2.6.
76183         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
76184         <shadow.h>.  Reported by Dragos Harabor.
76185
76186 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
76187
76188         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
76189         memcpy instead of xmalloc, xrealloc, path_concat.
76190         (locale_charset): Treat empty environment variables as absent.
76191         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
76192
76193 2000-05-04  Jim Meyering  <meyering@lucent.com>
76194
76195         * lib/getopt.c: Update from glibc.
76196         * lib/obstack.c: Likewise.
76197         * lib/obstack.h: Likewise.
76198         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
76199         file
76200
76201         * lib/regex.h: Likewise.
76202         * lib/strndup.c: Likewise.
76203         * lib/strnlen.c: New file, from glibc.
76204
76205 2000-05-03  Jim Meyering  <meyering@lucent.com>
76206
76207         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
76208
76209 2000-05-02  Paul Eggert  <eggert@twinsun.com>
76210
76211         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
76212         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
76213         compile-time test, rather than inspecting host and OS, to
76214         decide whether to define _LARGEFILE_SOURCE.
76215
76216 2000-05-01  Jim Meyering  <meyering@lucent.com>
76217
76218         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
76219
76220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
76221         Based on a patch from Bruno Haible.
76222
76223 2000-05-01  Jim Meyering  <meyering@lucent.com>
76224
76225         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
76226
76227 2000-04-29  Jim Meyering  <meyering@lucent.com>
76228
76229         * lib/path-concat.c: Declare strdup only if it's not defined.
76230         * lib/canon-host.c: Likewise.
76231
76232 2000-04-28  Jim Meyering  <meyering@lucent.com>
76233
76234         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
76235         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
76236         is included first, then limits.h is included by locale.h by libintl.h.
76237         From John David Anglin.
76238
76239 2000-04-25  Jim Meyering  <meyering@lucent.com>
76240
76241         * lib/makepath.c (S_IRWXUGO): Define.
76242         (make_path): Always perform explicit chmod if MODE specifies any
76243         of the `special' permission bits.  Prompted by a bug report against
76244         install from Mate Wierdl and Joost van Baal.
76245
76246 2000-04-18  Jim Meyering  <meyering@lucent.com>
76247
76248         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
76249         (jm_PREREQ): Use it.
76250
76251 2000-04-18  Jim Meyering  <meyering@lucent.com>
76252
76253         * lib/README: New file.
76254
76255         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
76256         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
76257
76258 2000-04-17  Jim Meyering  <meyering@lucent.com>
76259
76260         Get it right :-)
76261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
76262         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
76263         Suggestion from Akim Demaille.
76264
76265 2000-04-17  Jim Meyering  <meyering@lucent.com>
76266
76267         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
76268         the definition of it to rpl_strftime also defined-away the system's
76269         declaration.
76270
76271 2000-04-15  Jim Meyering  <meyering@lucent.com>
76272
76273         Use `C' to denote so-called `contiguous' files, the same way
76274         that tar does.
76275         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
76276         (ftypelet): Use S_ISCTG.
76277         From Michael Deutschmann.
76278
76279 2000-04-14  Jim Meyering  <meyering@lucent.com>
76280
76281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
76282         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
76283         clobbered.
76284
76285 2000-04-14  Jim Meyering  <meyering@lucent.com>
76286
76287         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
76288
76289 2000-04-13  Jim Meyering  <meyering@lucent.com>
76290
76291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
76292         AH_VERBATIM to insert required #ifndef into config.h.in.
76293         Suggestion from Akim Demaille.
76294
76295 2000-04-12  Jim Meyering  <meyering@lucent.com>
76296
76297         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
76298         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
76299         Christian Krackowizer.
76300
76301         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
76302         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
76303         (AC_SYS_LARGEFILE): Require.
76304         (AM_C_PROTOTYPES): Require.
76305
76306 2000-04-08  Jim Meyering  <meyering@lucent.com>
76307
76308         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
76309         names don't conflict.  Reported by Eli Zaretskii.
76310
76311 2000-04-07  Jim Meyering  <meyering@lucent.com>
76312
76313         * lib/putenv.c: Move inclusion of errno.h so it follows that of
76314         sys/types.h, to work around system header problems on AIX 3.2.5.
76315         From Bruno Haible.
76316
76317 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
76318
76319         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
76320         bug.  Deal with the different error behavior of Irix iconv.
76321
76322 2000-04-05  Paul Eggert  <eggert@twinsun.com>
76323
76324         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
76325         IRIX if the installer said otherwise.
76326
76327 2000-04-05  Jim Meyering  <meyering@lucent.com>
76328
76329         Portability tweaks required for ultrix4.3.
76330         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
76331         (jm_CHECK_DECLS): Add getutent to the list of functions.
76332         (_jm_DECL_HEADERS): Add utmpx.h.
76333         From John David Anglin.
76334
76335         * m4/strftime.m4: Back out the 2000-04-02 change.
76336         Instead of that change, simply undefine putenv in the test program.
76337
76338 2000-04-05  Jim Meyering  <meyering@lucent.com>
76339
76340         Portability tweaks required for ultrix4.3.
76341         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
76342         getutent.
76343         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
76344         * lib/canon-host.c: Declare strdup.
76345         * lib/path-concat.c: Likewise.
76346         From John David Anglin.
76347
76348 2000-04-04  Jim Meyering  <meyering@lucent.com>
76349
76350         Be more DOS 8.3-friendly.
76351         * lib/ref-add.sin: Renamed from ref-add.sed.in.
76352         * lib/ref-del.sin: Renamed from ref-del.sed.in.
76353         * lib/Makefile.am: Reflect renaming.
76354         Reported by Eli Zaretskii.
76355
76356         Use a temporary file name that won't clash with `charset.alias'
76357         in the DOS 8.3 name space.
76358         * lib/Makefile.am (charset_tmp): Define.
76359         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
76360         (uninstall-local): Likewise.
76361         Reported by Eli Zaretskii.
76362
76363 2000-04-03  Jim Meyering  <meyering@lucent.com>
76364
76365         * m4/gettext.m4: Fix typo in comment.
76366
76367         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
76368         textutils/configure.in).  Suggestion from Paul Eggert.
76369         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
76370
76371 2000-04-02  Paul Eggert  <eggert@twinsun.com>
76372
76373         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
76374         variable in the shell rather than using putenv, which isn't
76375         portable.  This avoids the configure-time inter-test dependency
76376         on the potentially-renamed putenv function.
76377
76378 2000-03-30  Paul Eggert  <eggert@twinsun.com>
76379
76380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
76381         before checking struct stat.st_blksize, so that
76382         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
76383
76384 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76385
76386         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
76387         since strftime.c uses HAVE_STRFTIME to decide whether to use
76388         the underlying strftime.
76389
76390 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76391
76392         * lib/time/strftime.c (my_strftime): Make sure we call the system
76393         strftime, not ourselves, when invoking the underlying strftime.
76394
76395 2000-03-24  Jim Meyering  <meyering@lucent.com>
76396
76397         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
76398         (charset_alias): Define.
76399         (install-exec-local): Factor out common code.
76400         (uninstall-local): Split lines longer than 80.
76401         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
76402         (SUFFIXES): Define.
76403         (.sed.in.sed): New rule.  Don't redirect directly to $@.
76404         (CLEANFILES): Add ref-add.sed and ref-del.sed.
76405
76406 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
76407
76408         * lib/config.charset: Output a line containing "Packages using this
76409         file".
76410         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
76411         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
76412         ref-del.sed): New rules.
76413
76414 2000-03-17  Jim Meyering  <meyering@lucent.com>
76415
76416         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
76417         Otherwise, include <strings.h>
76418
76419 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
76420
76421         * lib/unicodeio.c (utf8_wctomb): New function.
76422         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
76423         format instead of in UCS-4 with platform dependent endianness.
76424
76425 2000-03-10  Jim Meyering  <meyering@lucent.com>
76426
76427         * m4/lib-check.m4: Look for getspnam in -lgen, too.
76428         From Marco Franzen.
76429
76430 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76431
76432         * lib/savedir.c (savedir): Work even if directory size is
76433         negative; this can happen with some screwy NFS configurations.
76434
76435 2000-03-06  Jim Meyering  <meyering@lucent.com>
76436
76437         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76438         if it's NULL (because we ran out of memory).  From Bruno Haible.
76439
76440 2000-03-05  Jim Meyering  <meyering@lucent.com>
76441
76442         * lib/localcharset.c ("path-concat.h"): Include.
76443         (get_charset_aliases): Use path_concat instead of ANSI string
76444         concatenation.
76445
76446         * lib/unicodeio.h (PARAMS): Define.
76447         Use it to guard prototype.
76448
76449 2000-03-04  Jim Meyering  <meyering@lucent.com>
76450
76451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
76452         for lib/localcharset.c.
76453
76454 2000-03-04  Jim Meyering  <meyering@lucent.com>
76455
76456         * lib/Makefile.am (install-exec-local): Create $(libdir) before
76457         installing into it.
76458         (uninstall-local): Uncomment this rule so `make distcheck' works
76459         once again.
76460
76461         * lib/unicodeio.c (<errno.h>): Include it.
76462         (errno): Declare if not defined.
76463
76464         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
76465
76466         * lib/config.charset: New version, incorporating remarks from a linux
76467         i18n mailing list.  From Bruno Haible.
76468
76469 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
76470
76471         * m4/codeset.m4: New file.
76472         * m4/iconv.m4: New file.
76473         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
76474
76475 2000-03-03  Jim Meyering  <meyering@lucent.com>
76476
76477         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
76478
76479 2000-03-02  Jim Meyering  <meyering@lucent.com>
76480
76481         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
76482         the messages come out on separate lines.
76483
76484         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
76485         rather than jm_CHECK_DECLARATIONS.
76486         * m4/decl.m4: Remove now-unused file.
76487
76488         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
76489         geteuid.
76490
76491 2000-03-02  Jim Meyering  <meyering@lucent.com>
76492
76493         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
76494
76495 2000-03-01  Jim Meyering  <meyering@lucent.com>
76496
76497         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
76498         * lib/unicodeio.c: Likewise.
76499
76500 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
76501
76502         * lib/config.charset: New file.
76503         * lib/localcharset.c: New file.
76504         * lib/unicodeio.h, lib/unicodeio.c: New files.
76505         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
76506         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
76507         (noinst_HEADERS): Add unicodeio.h.
76508         (all-local, install-exec-local, charset.alias): New targets.
76509
76510 2000-02-28  Paul Eggert  <eggert@twinsun.com>
76511
76512         * lib/quotearg.c (ALERT_CHAR): New macro.
76513         (quotearg_buffer_restyled): Use it.
76514
76515 2000-02-27  Jim Meyering  <meyering@lucent.com>
76516
76517         * m4/check-decl.m4: Add getenv to the list.
76518
76519 2000-02-27  Jim Meyering  <meyering@lucent.com>
76520
76521         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
76522         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
76523
76524         * lib/backupfile.c: Guard inclusion of stdlib.h with
76525         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
76526         Declare malloc if needed.
76527
76528         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
76529         `#ifndef HAVE_DECL..'
76530         now that autoconf always defines the HAVE_DECL_ symbols.
76531         * lib/human.c: Likewise.
76532         * lib/same.c: Likewise.
76533         * lib/strtoumax.c: Likewise.
76534
76535         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
76536         declaration check was not run.
76537         * lib/hash.c: Likewise.
76538         * lib/human.c: Likewise.
76539         * lib/same.c: Likewise.
76540         * lib/strtoumax.c: Likewise.
76541
76542         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
76543         `.', then first look up the entire `.'-containing string as a login
76544         name.
76545
76546 2000-02-23  Jim Meyering  <meyering@lucent.com>
76547
76548         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
76549         in place of my hack.
76550
76551 2000-02-18  Paul Eggert  <eggert@twinsun.com>
76552
76553         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
76554         (textint): New typedef.
76555         (parser_control): Member year changed from int to textint.
76556         All uses changed.
76557         (YYSTYPE): Removed; replaced by %union with int and textint members.
76558         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
76559         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
76560         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
76561         (tSNUMBER, tUNUMBER): Now of type <textintval>.
76562         (date, number, to_year): Use width of number in digits, not its value,
76563         to determine whether it's a 2-digit year, or a 2-digit time.
76564         (yylex): Store number of digits of numeric tokens.
76565         Reported by John Kendall.
76566
76567         (parser_control): Changed from struct parser_control to typedef (for
76568         consistency).  All uses changed.
76569
76570         (tID): Removed; not used.
76571         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
76572
76573 2000-02-14  Paul Eggert  <eggert@twinsun.com>
76574
76575         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
76576         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
76577
76578 2000-02-12  Jim Meyering  <meyering@lucent.com>
76579
76580         * lib/userspec.c (ISDIGIT): Define it.
76581         (isdigit): Remove definition.
76582         (is_number): Use ISDIGIT, not isdigit.
76583         <libintl.h>: Include.
76584         (_ and N_): Define.
76585         (parse_user_spec): Mark translatable strings.
76586
76587 2000-02-10  Jim Meyering  <meyering@lucent.com>
76588
76589         With these changes, nanosleep.[ch] are finally enough like the other
76590         lib/* replacement files to compile on a few more losing systems.
76591
76592         * lib/nanosleep.h: Don't include config.h.
76593         Remove prototype from declaration of nanosleep.
76594         (PARAMS): Remove now-unneeded definition.
76595         * lib/nanosleep.c: #undef nanosleep.
76596         (rpl_nanosleep): Rename from nanosleep.
76597
76598 2000-02-10  Jim Meyering  <meyering@lucent.com>
76599
76600         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
76601         gnu_nanosleep to rpl_nanosleep.
76602
76603 2000-02-09  Jim Meyering  <meyering@lucent.com>
76604
76605         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
76606         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
76607
76608 2000-02-08  Akim Demaille  <akim@epita.fr>
76609
76610         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
76611         `[' and `]' and remove uses of `changequote'.
76612         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
76613         (AC_SYS_LARGEFILE): Likewise.
76614         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76615         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
76616         of changequote.
76617         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
76618         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
76619         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
76620         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
76621
76622 2000-02-05  Jim Meyering  <meyering@lucent.com>
76623
76624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
76625         Remove explicit use of AC_HEADER_TIME.  It is required by
76626         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
76627         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
76628         in autoconf whereby the expansion of the latter ended up preceding
76629         the expansion of its prerequisite, AC_HEADER_TIME.
76630         Reported by Volker Borchert.
76631
76632 2000-02-03  Jim Meyering  <meyering@lucent.com>
76633
76634         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
76635
76636 2000-02-03  Jim Meyering  <meyering@lucent.com>
76637
76638         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
76639         rather than with `#if HAVE_UTMPNAME'.
76640
76641 2000-02-02  Jim Meyering  <meyering@lucent.com>
76642
76643         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76644         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76645         Reported by Eli Zaretskii.
76646
76647 2000-02-01  Jim Meyering  <meyering@lucent.com>
76648
76649         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76650
76651 2000-01-31  Jim Meyering  <meyering@lucent.com>
76652
76653         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76654         functions.  Add the time.h and sys/time.h headers along with the
76655         AC_REQUIRE'ment of AC_HEADER_TIME.
76656
76657 2000-01-31  Jim Meyering  <meyering@lucent.com>
76658
76659         * lib/nanosleep.h (nanosleep): Guard declaration with
76660         `#if ! HAVE_DECL_NANOSLEEP'.
76661         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76662         the declaration in that vendor's sys/timers.h.
76663         Reported by Christian Krackowizer.
76664
76665         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76666         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76667         (ISPRINT): Likewise.
76668         Reported by Tom Tromey.
76669
76670 2000-01-30  Jim Meyering  <meyering@lucent.com>
76671
76672         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
76673
76674         * m4/prereq.m4 (utmp_includes): Define.
76675         Check for ut_user and ut_name members in both struct utmpx
76676         and struct utmp.
76677
76678 2000-01-30  Jim Meyering  <meyering@lucent.com>
76679
76680         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
76681         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
76682         header files where only utmpx.ut_user is declared.
76683
76684         * lib/readutmp.h (UT_USER): Define.
76685
76686 2000-01-29  Jim Meyering  <meyering@lucent.com>
76687
76688         * m4/lib-check.m4: New file containing library-related checks from
76689         fileutils and sh-utils (textutils had none).
76690
76691 2000-01-28  Jim Meyering  <meyering@lucent.com>
76692
76693         * m4/perl.m4: Change format of warning message to look more like that
76694         from the missing script.  Suggestion from François Pinard.
76695
76696 2000-01-25  Jim Meyering  <meyering@lucent.com>
76697
76698         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
76699         well as time.h in the compile check.
76700         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
76701         Fix typo in cross-compiling case: s/yes/no/.
76702
76703 2000-01-23  Jim Meyering  <meyering@lucent.com>
76704
76705         * m4/jm-macros.m4: Move df-related tests here from
76706         fileutils/configure.in
76707
76708         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
76709         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
76710
76711         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
76712         s/space/ac_fsusage_space/.
76713         (jm_FILE_SYSTEM_USAGE): Take two parameters.
76714
76715         * m4/ftruncate.m4: New file (derived from part of
76716         fileutils/configure.in).
76717         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
76718         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
76719
76720         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
76721         AC_SUBST these here, rather than just in sh-util/configure.in, so
76722         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
76723         all the same.
76724         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
76725         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
76726         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
76727         (AC_SUBST(POW_LIBM)): Likewise.
76728         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
76729
76730 2000-01-23  Jim Meyering  <meyering@lucent.com>
76731
76732         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
76733         obstack.c.
76734
76735 2000-01-22  Jim Meyering  <meyering@lucent.com>
76736
76737         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
76738
76739         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
76740
76741         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
76742         configure.in
76743         (AC_CHECK_HEADERS): Likewise for sh-utils.
76744         (AC_CHECK_HEADERS): Likewise for textutils.
76745         Merge the three lists of headers.
76746
76747         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
76748         from fileutils' configure.in.
76749
76750         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
76751         code. Moved tests into their own function (_jm_DECL_HEADERS) in
76752         check-decl.m4.
76753
76754         * m4/check-decl.m4: Use #if rather than #ifdef.
76755         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
76756         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
76757         (_jm_DECL_HEADERS): Define new function.
76758         (jm_CHECK_DECLARATIONS): Require it.
76759
76760 2000-01-22  Jim Meyering  <meyering@lucent.com>
76761
76762         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
76763         [! HAVE_DECL_STRTOULL]: Declare strtoull.
76764         Required for some AIX systems.  Reported by Christian Krackowizer.
76765         [TESTING] (main): New function.
76766
76767         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
76768         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
76769         letters.
76770
76771         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
76772         iswprint.
76773
76774         * lib/strverscmp.c (ISDIGIT): Define.
76775         (strverscmp): Use ISDIGIT, not isdigit.
76776
76777 2000-01-19  Jim Meyering  <meyering@lucent.com>
76778
76779         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76780         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76781         defines `struct timespec' in <sys/time.h>
76782
76783         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76784         Thanks to Akim for explaining.
76785
76786 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76787
76788         * lib/nanosleep.c (nanosleep):
76789         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76790         POSIX.1 doesn't require SA_INTERRUPT and some systems
76791         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76792         it's been part of POSIX.1 since day 1 (in 1988).
76793
76794 2000-01-17  Jim Meyering  <meyering@lucent.com>
76795
76796         * lib/interlock: Remove unused file.  Reported by François Pinard.
76797
76798 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76799
76800         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76801         alert, backslash, formfeed, and vertical tab unnecessarily in
76802         shell quoting style.
76803
76804 2000-01-16  Jim Meyering  <meyering@lucent.com>
76805
76806         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76807         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76808         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76809         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76810
76811 2000-01-16  Jim Meyering  <meyering@lucent.com>
76812
76813         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76814         because the latter didn't work.
76815
76816 2000-01-15  Jim Meyering  <meyering@lucent.com>
76817
76818         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
76819         (AC_REPLACE_FUNCS): Add memcpy and memset.
76820         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
76821         Add strpbrk.
76822         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
76823
76824 2000-01-12  Jim Meyering  <meyering@lucent.com>
76825
76826         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
76827         (jm_PREREQ): Use it.
76828         (jm_PREREQ_READUTMP): New macro.
76829         (jm_PREREQ): Use it.
76830
76831 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76832
76833         Quote multibyte characters correctly.
76834         * m4/c-bs-a.m4: New file.
76835         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
76836         (jm_PREREQ): Use it.
76837
76838 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76839
76840         * m4/uintmax_t.m4: Port to autoconf 2.13.
76841
76842 2000-01-08  Jim Meyering  <meyering@ascend.com>
76843
76844         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
76845         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
76846
76847 2000-01-04  Jim Meyering  <meyering@ascend.com>
76848
76849         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
76850         jm_STRUCT_DIRENT_D_TYPE.
76851         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
76852         jm_STRUCT_DIRENT_D_INO.
76853         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
76854         jm_STRUCT_UTIMBUF.
76855         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
76856         renamings.
76857         * m4/utime.m4: Likewise.
76858
76859         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
76860         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
76861
76862 2000-01-03  Paul Eggert  <eggert@twinsun.com>
76863
76864         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
76865         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
76866
76867 2000-01-02  Jim Meyering  <meyering@ascend.com>
76868
76869         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
76870         remember if this is necessary.
76871
76872 1999-12-26  Jim Meyering  <meyering@ascend.com>
76873
76874         * m4/jm-macros.m4: Use it here.
76875         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
76876
76877 1999-12-23  Jim Meyering  <meyering@ascend.com>
76878
76879         * m4/jm-macros.m4: Check for clock_gettime (moved from
76880         fileutils/configure.in)
76881         Check for gettimeofday.
76882
76883 1999-12-20  Jim Meyering  <meyering@ascend.com>
76884
76885         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
76886         autoconf-2.14a-1999-12-20.
76887
76888 1999-12-19  Jim Meyering  <meyering@ascend.com>
76889
76890         * m4/lstat-slash.m4: New file.
76891         * m4/jm-macros.m4: Use the new macro:
76892         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76893
76894 1999-12-07  Jim Meyering  <meyering@ascend.com>
76895
76896         * m4/perl.m4: Require that File::Compare be available, too.
76897         Too many systems seem to lack it.
76898
76899         * m4/strftime.m4: Add checks for most of the cpp macros tested in
76900         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
76901
76902 1999-11-18  Paul Eggert  <eggert@twinsun.com>
76903
76904         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
76905         problem with the QNX 4.25 shell, which doesn't propagate exit
76906         status of failed commands inside shell assignments.
76907
76908 1999-11-17  Jim Meyering  <meyering@ascend.com>
76909
76910         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
76911
76912 1999-11-07  Jim Meyering  <meyering@ascend.com>
76913
76914         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
76915
76916 1999-11-06  Jim Meyering  <meyering@ascend.com>
76917
76918         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
76919         * m4/jm-macros.m4 (jm_MACROS): Use it here.
76920
76921 1999-11-05  Jim Meyering  <meyering@ascend.com>
76922
76923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
76924         configure.in of textutils, fileutils, and sh-utils into this one
76925         (shared between those packages) file.
76926         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
76927         AC_STRUCT_ST_BLKSIZE.
76928
76929 1999-11-03  Jim Meyering  <meyering@ascend.com>
76930
76931         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
76932         of AC_CHECK_TYPE checks includes unistd.h.
76933         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
76934         Suggestion from Akim Demaille.
76935
76936 1999-10-30  Jim Meyering  <meyering@ascend.com>
76937
76938         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
76939         m4-quoted string.
76940         * m4/ls-mntd-fs.m4: Likewise.
76941         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
76942         * m4/jm-winsz1.m4: Likewise.
76943
76944         * m4/const.m4: Remove file, since the fix made it into the experimental
76945         version of autoconf.
76946         * m4/mktime.m4: Likewise.
76947
76948         * m4/check-type.m4: Remove file, now that the latest version of
76949         AC_CHECK_TYPE takes a third arg to specify additional #includes.
76950
76951         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
76952         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
76953         AC_CHECK_TYPE.
76954
76955 1999-10-04  Jim Meyering  <meyering@ascend.com>
76956
76957         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
76958
76959 1999-09-22  Paul Eggert  <eggert@twinsun.com>
76960
76961         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
76962         2.95.1 bug with HP-UX 10.20.
76963
76964 1999-09-17  Jim Meyering  <meyering@ascend.com>
76965
76966         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
76967         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
76968         due to missing strdup (against sh-utils-2.0).
76969
76970 1999-08-29  Jim Meyering  <meyering@ascend.com>
76971
76972         * m4/jm-macros.m4: Require jm_BISON.
76973         * m4/bison.m4: New file.
76974
76975 1999-08-17  Paul Eggert  <eggert@twinsun.com>
76976
76977         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
76978         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
76979
76980 1999-08-05  Jim Meyering  <meyering@ascend.com>
76981
76982         * m4/getline.m4: Rename test file from conftestdata to conftest.data
76983         to avoid conflicts with `conftest' on 8+3 filesystems.
76984         Suggestion from Eli Zaretskii.
76985
76986 1999-08-04  Jim Meyering  <meyering@ascend.com>
76987
76988         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
76989         fileutils and sh-utils (textutils's getline test was inadequate).
76990         (AM_FUNC_GETLINE): Run this test.
76991         (AC_CHECK_FUNCS): Check for getdelim.
76992         Reported by Bob Proulx.
76993
76994 1999-08-02  Jim Meyering  <meyering@ascend.com>
76995
76996         * m4/jm-macros.m4: Add a comment.
76997
76998 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76999
77000         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77001         <inttypes.h> defines strtoumax as a macro (and not as a
77002         function).
77003
77004 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77005
77006         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77007         that we can shift, multiply and divide unsigned long long
77008         values; Ultrix cc can't do it.
77009
77010 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77011
77012         * m4/mktime.m4: New file, which is a preview of what should appear
77013         in the next public autoconf release.
77014
77015 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77016
77017         * m4/lfs.m4: Remove this file.
77018         * m4/largefile.m4: New file.  It contains the old contents of
77019         lfs.m4, except that all names with prefix AC_LFS have been
77020         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77021         compatible with future autoconf versions.  Also, some minor m4
77022         quoting problems have been fixed.
77023
77024 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77025
77026         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77027         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77028         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77029         and simplify the shell code.
77030
77031 1999-08-01  Jim Meyering  <meyering@ascend.com>
77032
77033         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77034         m4.
77035
77036 1999-07-20  Jim Meyering  <meyering@ascend.com>
77037
77038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77039
77040 1999-07-15  Jim Meyering  <meyering@ascend.com>
77041
77042         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77043
77044 1999-05-22  Jim Meyering  <meyering@ascend.com>
77045
77046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77047
77048 1999-05-20  Jim Meyering  <meyering@ascend.com>
77049
77050         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77051         Add a colon after each `then' in case $4 is empty.
77052
77053 1999-05-16  Jim Meyering  <meyering@ascend.com>
77054
77055         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77056
77057 1999-05-10  Jim Meyering  <meyering@ascend.com>
77058
77059         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77060
77061         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77062         AC_FUNC_MKTIME.
77063
77064 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77065
77066         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77067
77068 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77069
77070         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77071         not CPPFLAGS, so that linking works correctly in IRIX.
77072
77073 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77074
77075         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77076
77077 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77078
77079         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77080         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77082         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77083         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77084
77085         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77086
77087 1999-04-20  Jim Meyering  <meyering@ascend.com>
77088
77089         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77090         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77091         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77092
77093 1999-04-18  Jim Meyering  <meyering@ascend.com>
77094
77095         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77096         * m4/jm-macros.m4: Use it.
77097
77098 1999-04-06  Jim Meyering  <meyering@ascend.com>
77099
77100         * m4/strftime.m4: Remove test for %f.
77101
77102 1999-03-29  Jim Meyering  <meyering@ascend.com>
77103
77104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77105         superset of the AC_TYPE_* checks in the textutils, fileutils,
77106         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77107         AC_TYPE_PID_T.
77108
77109 1999-03-28  Jim Meyering  <meyering@ascend.com>
77110
77111         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77112         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77113         replaced e.g., in the *.sh files of the sh-utils.
77114
77115 1999-03-20  Jim Meyering  <meyering@ascend.com>
77116
77117         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77118         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77119         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77120
77121 1999-03-19  Jim Meyering  <meyering@ascend.com>
77122
77123         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77124
77125 1999-03-12  Jim Meyering  <meyering@ascend.com>
77126
77127         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77128
77129 1999-03-07  Jim Meyering  <meyering@ascend.com>
77130
77131         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77132         declared.
77133
77134 1999-02-17  Jim Meyering  <meyering@ascend.com>
77135
77136         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77137         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77138
77139 1999-02-07  Jim Meyering  <meyering@ascend.com>
77140
77141         * m4/group-member.m4: New file -- extracted from sh-utils'
77142         configure.in.
77143
77144         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77145         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77146
77147 1999-02-06  Jim Meyering  <meyering@ascend.com>
77148
77149         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77150         * m4/fnmatch.m4: Likewise.
77151         * m4/getgroups.m4: Likewise.
77152         * m4/lstat.m4: Likewise.
77153         * m4/malloc.m4: Likewise.
77154         * m4/putenv.m4: Likewise.
77155         * m4/realloc.m4: Likewise.
77156         * m4/regex.m4: Likewise.
77157         * m4/stat.m4: Likewise.
77158         * m4/strftime.m4: Likewise.
77159         Suggestion from Alain Magloire.
77160
77161         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77162         * m4/fnmatch.m4: Likewise.
77163         * m4/getgroups.m4: Likewise.
77164         * m4/getline.m4: Likewise.
77165         * m4/lstat.m4: Likewise.
77166         * m4/malloc.m4: Likewise.
77167         * m4/memcmp.m4: Likewise.
77168         * m4/putenv.m4: Likewise.
77169         * m4/realloc.m4: Likewise.
77170         * m4/regex.m4: Likewise.
77171         * m4/stat.m4: Likewise.
77172         * m4/strftime.m4: Likewise.
77173         Suggestion from Alain Magloire.
77174
77175         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77176         an argument.
77177
77178         * m4/regex.m4: Add a run-time Test for proper operation of
77179         re_compile_pattern.
77180
77181 1999-01-31  Jim Meyering  <meyering@ascend.com>
77182
77183         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
77184
77185 1999-01-30  Jim Meyering  <meyering@ascend.com>
77186
77187         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
77188
77189         * m4/jm-mktime.m4: Make this a wrapper around the official
77190         AM_FUNC_MKTIME rather than my private copy, now that the official one
77191         is up to date.
77192         * m4/mktime.m4: Remove file.
77193
77194         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
77195         * m4/uptime.m4: Likewise.
77196         * m4/uintmax_t.m4: Likewise.
77197
77198 1999-01-28  Jim Meyering  <meyering@ascend.com>
77199
77200         * m4/jm-macros.m4: Use jm_AFS.
77201         * m4/afs.m4: New file (from fileutils' configure.in).
77202
77203         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
77204         * m4/chown.m4: Likewise.
77205         * m4/d-ino.m4: Likewise.
77206         * m4/d-type.m4: Likewise.
77207         * m4/fnmatch.m4: Likewise.
77208         * m4/getgroups.m4: Likewise.
77209         * m4/gettext.m4: Likewise.
77210         * m4/jm-mktime.m4: Likewise.
77211         * m4/jm-winsz2.m4: Likewise.
77212         * m4/lcmessage.m4: Likewise.
77213         * m4/ls-mntd-fs.m4: Likewise.
77214         * m4/malloc.m4: Likewise.
77215         * m4/memcmp.m4: Likewise.
77216         * m4/putenv.m4: Likewise.
77217         * m4/realloc.m4: Likewise.
77218         * m4/st_mtim.m4: Likewise.
77219         * m4/strftime.m4: Likewise.
77220
77221 1999-01-16  Jim Meyering  <meyering@ascend.com>
77222
77223         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
77224         (ARGMATCH_DIE_DECL): Define.
77225
77226 1999-01-12  Jim Meyering  <meyering@ascend.com>
77227
77228         * m4/Makefile.am.in: Rewrite to avoid using fmt.
77229         Reported by Lars Hecking.
77230
77231 1999-01-10  Jim Meyering  <meyering@ascend.com>
77232
77233         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
77234         gross kludge.
77235         * m4/inttypes_h.m4: Likewise.
77236         * m4/lstat.m4: Likewise.
77237         * m4/malloc.m4: Likewise.
77238         * m4/readdir.m4: Likewise.
77239         * m4/realloc.m4: Likewise.
77240         * m4/st_dm_mode.m4: Likewise.
77241         * m4/stat.m4: Likewise.
77242         * m4/utimbuf.m4: Likewise.
77243         * m4/utimes.m4: Likewise.
77244
77245         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
77246         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
77247         comments in config.h.in are meaningful.
77248
77249         * m4/jm-macros.m4: Require autoconf-2.13 here.
77250
77251         * m4/regex.m4: By default, don't use the included regex.c on systems
77252         with glibc 2.  Suggestion from Uli Drepper.
77253
77254 1999-01-02  Jim Meyering  <meyering@ascend.com>
77255
77256         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
77257
77258 1998-12-18  Jim Meyering  <meyering@ascend.com>
77259
77260         * m4/Makefile.am.in (Makefile.am): Simplify rule.
77261         Based on a suggestion from Lars Hecking.
77262
77263 1998-11-16  Paul Eggert  <eggert@twinsun.com>
77264
77265         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
77266
77267 1998-11-16  Jim Meyering  <meyering@ascend.com>
77268
77269         * m4/lfs.m4: Double-quote the `uname...` expression.
77270
77271 1998-11-14  Jim Meyering  <meyering@ascend.com>
77272
77273         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
77274         * m4/stat.m4: Likewise.
77275
77276 1998-11-03  Jim Meyering  <meyering@ascend.com>
77277
77278         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
77279         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
77280
77281 1998-10-18  Jim Meyering  <meyering@ascend.com>
77282
77283         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
77284
77285 1998-10-17  Jim Meyering  <meyering@ascend.com>
77286
77287         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
77288         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
77289         calls for those previously hard-coded headers.  Instead, take a new
77290         parameter.
77291         (jm_CHECK_DECLARATIONS): Reflect interface change.
77292         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
77293         (jm_CHECK_DECL_LOCALTIME_R): New macro.
77294
77295         * m4/mktime.m4: Test for spring-forward gap before long-running test.
77296
77297 1998-10-14  Jim Meyering  <meyering@ascend.com>
77298
77299         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
77300         instead of "TZ=America/Vancouver".  From Paul Eggert.
77301
77302 1998-10-11  Jim Meyering  <meyering@ascend.com>
77303
77304         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
77305         This adds a test for a recently added compatibility fix for mktime.c.
77306         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
77307
77308 1998-09-27  Jim Meyering  <meyering@ascend.com>
77309
77310         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
77311
77312         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
77313         ../configure.in, including a change from Gordon Matzigkeit to allow
77314         cross-compiling for the Hurd.
77315
77316         * m4/glibc.m4: New file/macro to test for the GNU C Library
77317         versions 1 and 2.  From Gordon Matzigkeit.
77318         Indent.
77319
77320 1998-09-21  Jim Meyering  <meyering@ascend.com>
77321
77322         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
77323
77324 1998-08-18  Paul Eggert  <eggert@twinsun.com>
77325
77326         Port nanosecond-resolution times to UnixWare 2.1.2 and
77327         pedantic Solaris 2.6.
77328
77329         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
77330         AC_STRUCT_ST_MTIM.
77331         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
77332         Generate name of ns member, instead of just 1 or undef.
77333         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
77334
77335 1998-08-15  Jim Meyering  <meyering@ascend.com>
77336
77337         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
77338         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
77339         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
77340         instead of jm_TYPE_SSIZE_T.
77341
77342 1998-08-12  Jim Meyering  <meyering@ascend.com>
77343
77344         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
77345
77346 1998-08-02  Jim Meyering  <meyering@ascend.com>
77347
77348         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
77349         in acconfig.h manually.
77350
77351 1998-07-31  Paul Eggert  <eggert@twinsun.com>
77352
77353         * m4/st_mtim.m4: New file.
77354
77355 1998-07-28  Jim Meyering  <meyering@ascend.com>
77356
77357         * m4/utimes.m4: Undef stat.
77358
77359 1998-07-25  Jim Meyering  <meyering@ascend.com>
77360
77361         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
77362         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
77363
77364 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
77365
77366         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
77367         uid and gid actually remain unchanged.
77368
77369 1998-07-07  Jim Meyering  <meyering@ascend.com>
77370
77371         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
77372
77373 1998-07-04  Jim Meyering  <meyering@ascend.com>
77374
77375         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
77376         to prove that this macro can be used in packages without regex.c.
77377
77378 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
77379
77380         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
77381         is to be used.
77382
77383 1998-07-03  Jim Meyering  <meyering@ascend.com>
77384
77385         * m4/gettext.m4: Add -lintl if it's found to be necessary.
77386
77387         * m4/gettext.m4: New file -- from gettext-0.10.35.
77388         * m4/lcmessage.m4: Likewise.
77389         * m4/progtest.m4: Likewise.
77390
77391         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
77392         * m4/jm-macros.m4: Require the new macro.
77393
77394 1998-06-29  Jim Meyering  <meyering@ascend.com>
77395
77396         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
77397         for the definition of NGROUPS (used in a system header included
77398         by sys/mount.h).
77399
77400 1998-06-28  Jim Meyering  <meyering@ascend.com>
77401
77402         * m4/ls-mntd-fs.m4: New file.
77403         * m4/fstypename.m4: New file.
77404
77405         * m4/jm-macros.m4: Require the new macro.
77406         * m4/jm-glibc-io.m4: New file.
77407
77408 1998-05-19  Jim Meyering  <meyering@ascend.com>
77409
77410         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
77411         * m4/lchown.m4: New file.
77412
77413         * m4/Makefile.am.in: New file.
77414         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
77415
77416 1998-05-14  Jim Meyering  <meyering@ascend.com>
77417
77418         * m4/Makefile.am (EXTRA_DIST): Add them.
77419         * m4/jm-macros.m4: New file.
77420         * m4/utimbuf.m4: New file.
77421
77422 1998-05-12  Jim Meyering  <meyering@ascend.com>
77423
77424         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
77425
77426 1998-05-11  Jim Meyering  <meyering@ascend.com>
77427
77428         * m4/isc-posix.m4: New file.
77429
77430 1998-05-10  Jim Meyering  <meyering@ascend.com>
77431
77432         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77433
77434 1998-05-09  Jim Meyering  <meyering@ascend.com>
77435
77436         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77437         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77438         with automake.
77439
77440         * m4/ssize_t.m4: New file.
77441         * m4/mktime.m4: Remove file -- the new automake has this now.
77442
77443 1998-04-26  Jim Meyering  <meyering@ascend.com>
77444
77445         * m4/assert.m4: New file.
77446         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
77447
77448 1998-04-05  Jim Meyering  <meyering@ascend.com>
77449
77450         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
77451         (jm_PREREQ): Use it here.
77452
77453 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
77454
77455         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
77456         in acconfig.h.
77457
77458 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
77459
77460         * m4/prereq.m4: New file.
77461         * m4/error.m4: New file.
77462         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
77463
77464 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
77465
77466         * m4/getline.m4: Don't set am_cv_func_working_getline before the
77467         cache-check for the same variable -- that defeated the purpose of
77468         the test; the test program was never run.  This was a problem only
77469         on systems with losing getline functions -- HP-UX 10.20 is one.
77470         Reported by Bjorn Helgaas.
77471
77472 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
77473
77474         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
77475
77476 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
77477
77478         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
77479
77480         * m4/const.m4: New file.  Use an initializer in this declaration
77481         typedef int charset[2]; const charset x;
77482         Reported by Bob Glickstein.
77483
77484 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
77485
77486         * m4/chown.m4: Fix reversed types on -1 args to chown.
77487         From Kaveh Ghazi.
77488
77489 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
77490
77491         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
77492         Add lseek and memchr.
77493
77494         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
77495         T.E.Dickey <dickey@clark.net> said that some older preprocessors
77496         have a 20-character limit on names.
77497
77498 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
77499
77500         * m4/inttypes_h.m4: New file.
77501         * m4/uintmax_t.m4: New file.
77502         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
77503
77504
77505         -----
77506
77507         Local Variables:
77508         coding: utf-8
77509         End:
77510
77511         Copyright (C) 1997-2011 Free Software Foundation, Inc.
77512
77513         Copying and distribution of this file, with or without
77514         modification, are permitted provided the copyright notice
77515         and this notice are preserved.