unictype/bidi*: Rename functions, part 2.
[gnulib.git] / ChangeLog
1 2011-03-26  Bruno Haible  <bruno@clisp.org>
2
3         unictype/bidi*: Rename functions, part 2.
4         * modules/unictype/bidicategory-name (configure.ac): Update required
5         libunistring version.
6         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7
8 2011-03-25  Bruno Haible  <bruno@clisp.org>
9
10         New module 'unictype/combining-class-all'.
11         * modules/unictype/combining-class-all: New file.
12
13         Tests for module 'unictype/combining-class-byname'.
14         * modules/unictype/combining-class-byname-tests: New file.
15         * tests/unictype/test-combiningclass_byname.c: New file.
16
17         New module 'unictype/combining-class-byname'.
18         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19         * lib/unictype/combiningclass_byname.c: New file.
20         * lib/unictype/combiningclass_byname.gperf: New file.
21         * modules/unictype/combining-class-byname: New file.
22
23         Tests for module 'unictype/combining-class-longname'.
24         * modules/unictype/combining-class-longname-tests: New file.
25         * tests/unictype/test-combiningclass_longname.c: New file.
26
27         New module 'unictype/combining-class-longname'.
28         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
29         * lib/unictype/combiningclass_longname.c: New file.
30         * modules/unictype/combining-class-longname: New file.
31
32         Tests for module 'unictype/combining-class-name'.
33         * modules/unictype/combining-class-name-tests: New file.
34         * tests/unictype/test-combiningclass_name.c: New file.
35
36         New module 'unictype/combining-class-name'.
37         * lib/unictype.in.h (uc_combining_class_name): New declaration.
38         * lib/unictype/combiningclass_name.c: New file.
39         * modules/unictype/combining-class-name: New file.
40
41 2011-03-25  Bruno Haible  <bruno@clisp.org>
42
43         unictype/combining-class: Rename source files.
44         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
45         of unictype/combining.h.
46         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
47         Update.
48         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
49         * modules/unictype/combining-class (Description): Fix.
50         (Files, Makefile.am): Update.
51         * tests/unictype/test-combiningclass.c: Renamed from
52         tests/unictype/test-combining.c.
53         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
54
55 2011-03-25  Bruno Haible  <bruno@clisp.org>
56
57         unictype: Update list of canonical combining classes.
58         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
59
60 2011-03-25  Bruno Haible  <bruno@clisp.org>
61
62         unictype/category-byname: Recognize long names as well.
63         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
64         a long name.
65         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
66         unictype/categ_byname.h.
67         (UC_CATEGORY_INDEX_*): New enumeration values.
68         (uc_general_category_byname): Use uc_general_category_lookup and
69         convert from index to value.
70         * lib/unictype/categ_byname.gperf: New file.
71         * modules/unictype/category-byname (Files): Add
72         lib/unictype/categ_byname.gperf.
73         (Depends-on): Add gperf.
74         (Makefile.am): Add rule for generating unictype/categ_byname.h.
75         * tests/unictype/test-categ_byname.c (main): Test the recognition of
76         long names.
77
78         Tests for module 'unictype/category-longname'.
79         * modules/unictype/category-longname-tests: New file.
80         * tests/unictype/test-categ_longname.c: New file.
81
82         New module 'unictype/category-longname'.
83         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
84         * lib/unictype/categ_longname.c: New file.
85         * modules/unictype/category-longname: New file.
86         * modules/unictype/category-all (Depends-on): Add it.
87
88 2011-03-25  Bruno Haible  <bruno@clisp.org>
89
90         Tests for module 'unictype/category-LC'.
91         * modules/unictype/category-LC-tests: New file.
92         * tests/unictype/test-categ_LC.c: New file, automatically generated.
93
94         New module 'unictype/category-LC'.
95         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
96         (UC_CATEGORY_LC): New declaration.
97         (UC_CASED_LETTER): New macro.
98         * lib/gen-uni-tables.c (is_category_LC): New function.
99         (output_categories): Also handle category LC.
100         (UC_CATEGORY_MASK_LC): New enumeration value.
101         (general_category_byname): Also handle category LC.
102         * lib/unictype/categ_LC.c: New file.
103         * lib/unictype/categ_LC.h: New file, automatically generated.
104         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
105         category LC.
106         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
107         * modules/unictype/category-LC: New file.
108         * modules/unictype/category-byname (Depends-on): Add
109         unictype/category-LC.
110         * modules/unictype/category-all (Depends-on): Likewise.
111
112 2011-03-25  Eric Blake  <eblake@redhat.com>
113
114         xmalloc: revert yesterday's regression
115         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
116         realloc's underlying behavior (allowing allocation of zero-size
117         objects, especially if malloc-gnu is also in use).
118
119 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
120
121         maint.mk: add missing version to VC-tag
122         * top/maint.mk: git tag was missing actual tag name; add it.
123
124         valgrind: do leak checking, and exit with code 1 on error (not 0)
125         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
126         to VALGRIND.
127
128 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
129
130         posix-modules: say what it does.
131         * posix-modules: Add a line to the --help output saying what it does.
132
133 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
134
135         xmalloc: Do not leak if underlying realloc is C99 compatible.
136         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
137         This avoids a leak on C99-based systems.  See
138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
139
140 2011-03-24  Eric Blake  <eblake@redhat.com>
141
142         realloc: document portability problem
143         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
144         passing 0 size to realloc.
145
146 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
147
148         doc: update users.txt
149         * users.txt: Add cvsps, tmpwatch
150
151 2011-03-23  Matt Rice  <ratmice@gmail.com>
152
153         doc: update users.txt
154         * users.txt: Add gdb.
155
156 2011-03-23  Jim Meyering  <meyering@redhat.com>
157
158         doc: update users.txt
159         Looking through matches up to the following URL (there are still
160         several more pages), I found several projects that use gnulib:
161         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
162         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
163         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
164
165 2011-03-22  Bruno Haible  <bruno@clisp.org>
166
167         unictype/bidi*: Rename functions.
168         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
169         uc_bidi_class, uc_is_bidi_class): New declarations.
170         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
171         uc_bidi_category_byname.
172         (uc_bidi_category_byname): New function.
173         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
174         u_bidi_category_name.
175         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
176         (uc_bidi_category_name): New function.
177         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
178         uc_bidi_category.
179         (uc_bidi_category): New function.
180         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
181         uc_is_bidi_category. Invoke uc_bidi_class.
182         (uc_is_bidi_category): New function.
183         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
184         instead of uc_bidi_category_byname.
185         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
186         instead of uc_bidi_category_name.
187         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
188         uc_bidi_category.
189         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
190         instead of uc_is_bidi_category.
191
192 2011-03-21  Bruno Haible  <bruno@clisp.org>
193
194         New module 'unictype/joininggroup-all'.
195         * modules/unictype/joininggroup-all: New file.
196
197         Tests for module 'unictype/joininggroup-of'.
198         * modules/unictype/joininggroup-of-tests: New file.
199         * tests/unictype/test-joininggroup_of.c: New file.
200         * tests/unictype/test-joininggroup_of.h: New file, automatically
201         generated by gen-uni-tables.
202
203         New module 'unictype/joininggroup-of'.
204         * modules/unictype/joininggroup-of: New file.
205         * lib/unictype/joininggroup_of.c: New file.
206         * lib/unictype/joininggroup_of.h: New file, automatically generated by
207         gen-uni-tables.
208
209         Tests for module 'unictype/joininggroup-byname'.
210         * modules/unictype/joininggroup-byname-tests: New file.
211         * tests/unictype/test-joininggroup_byname.c: New file.
212
213         New module 'unictype/joininggroup-byname'.
214         * modules/unictype/joininggroup-byname: New file.
215         * lib/unictype/joininggroup_byname.c: New file.
216         * lib/unictype/joininggroup_byname.gperf: New file.
217
218         Tests for module 'unictype/joininggroup-name'.
219         * modules/unictype/joininggroup-name-tests: New file.
220         * tests/unictype/test-joininggroup_name.c: New file.
221
222         New module 'unictype/joininggroup-name'.
223         * modules/unictype/joininggroup-name: New file.
224         * lib/unictype/joininggroup_name.c: New file.
225         * lib/unictype/joininggroup_name.h: New file.
226
227         New module 'unictype/joiningtype-all'.
228         * modules/unictype/joiningtype-all: New file.
229
230         Tests for module 'unictype/joiningtype-of'.
231         * modules/unictype/joiningtype-of-tests: New file.
232         * tests/unictype/test-joiningtype_of.c: New file.
233         * tests/unictype/test-joiningtype_of.h: New file, automatically
234         generated by gen-uni-tables.
235
236         New module 'unictype/joiningtype-of'.
237         * modules/unictype/joiningtype-of: New file.
238         * lib/unictype/joiningtype_of.c: New file.
239         * lib/unictype/joiningtype_of.h: New file, automatically generated by
240         gen-uni-tables.
241
242         Tests for module 'unictype/joiningtype-byname'.
243         * modules/unictype/joiningtype-byname-tests: New file.
244         * tests/unictype/test-joiningtype_byname.c: New file.
245
246         New module 'unictype/joiningtype-byname'.
247         * modules/unictype/joiningtype-byname: New file.
248         * lib/unictype/joiningtype_byname.c: New file.
249
250         Tests for module 'unictype/joiningtype-name'.
251         * modules/unictype/joiningtype-name-tests: New file.
252         * tests/unictype/test-joiningtype_name.c: New file.
253
254         New module 'unictype/joiningtype-name'.
255         * modules/unictype/joiningtype-name: New file.
256         * lib/unictype/joiningtype_name.c: New file.
257
258         unictype: Add support for Arabic shaping properties.
259         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
260         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
261         declarations.
262         (UC_JOINING_GROUP_*): New enumeration values.
263         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
264         declarations.
265         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
266         (unicode_joining_type): New variable.
267         (UC_JOINING_GROUP_*): New enumeration values.
268         (unicode_joining_group): New variable.
269         (fill_arabicshaping, joining_type_as_c_identifier,
270         output_joining_type_test, output_joining_type,
271         joining_group_as_c_identifier, output_joining_group_test,
272         output_joining_group): New functions.
273         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
274         fill_arabicshaping and output_joining_type_test, output_joining_type,
275         output_joining_group_test, output_joining_group.
276         Reported by Simon Josefsson.
277
278 2011-03-21  Jim Meyering  <meyering@redhat.com>
279
280         strftime: fix a bug in yesterday's change
281         * lib/strftime.c (add): Accommodate width's initial value of -1.
282         Otherwise, nstrftime would copy uninitialized data into
283         the result buffer.
284
285 2011-03-21  Jim Meyering  <meyering@redhat.com>
286
287         tests: add strftime-tests module
288         * tests/test-strftime.c: New file.
289         * modules/strftime-tests: New module.
290
291 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
292
293         strftime: don't assume a byte count fits in 'int'
294         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
295         found this problem by static analysis, using gcc -Wstrict-overflow
296         (GCC 4.5.2, x86-64).  This reported an optimization that depended
297         on an integer overflow having undefined behavior, but it turns out
298         that the argument is a size, which might not fit in 'int' anyway,
299
300 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
301
302         stdio: don't require ignore_value around fwrite
303
304         This patch works around libc bug 11959
305         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
306         Without this patch, applications must often write
307         ignore_value (fwrite (...)) even though the ignore_value is
308         not helpful here.  It's common to write many objects, using
309         fwrite/printf/etc., and then use ferror to detect output error.
310
311         I considered making this patch optional, but decided against it,
312         because libc is obviously being inconsistent here: there is no
313         reason libc should insist that user code must inspect fwrite
314         return's value without also insisting that it inspect printf's,
315         putchar's, etc.  If user code wants to have a strict style where
316         all these functions' values are checked (so that ferror need not
317         be checked), we could add support for that style in a new gnulib
318         module, but in the meantime it's better to be consistent and to
319         support common usage.
320
321         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
322         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
323         that we are compiling in checking mode, and if not C++, and
324         if not already wrapping fwrite for some other reason.
325         (fwrite): #define to rpl_fwrite if the latter is defined.
326
327 2011-03-20  Bruno Haible  <bruno@clisp.org>
328
329         verror: Fix compilation error introduced on 2011-02-13.
330         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
331         instead of __attribute__.
332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
333
334 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
335             Bruno Haible  <bruno@clisp.org>
336
337         socklen: do not depend on sys_socket
338         While trying to modify Emacs to use gnulib's socklen module,
339         I discovered a circular dependency: socklen depends on sys_socket
340         and vice versa.  Emacs can use socklen, but it does not need
341         sys_socket because it has its own substitute for sys/socket.h.
342         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
343         gl_TYPE_SOCKLEN_T.
344         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
345         gl_PREREQ_SYS_H_SOCKET.
346         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
347         gl_PREREQ_SYS_H_SOCKET.
348         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
349         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
350         * modules/socklen (Depends-on): Do not depend on sys_socket.
351         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
352
353 2011-03-20  Jim Meyering  <meyering@redhat.com>
354
355         maint.mk: sort file names *after* new transformation
356         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
357         prefix would have led to an unwarranted failure in GNU parted.
358         Sort after that transformation.
359
360 2011-03-19  Jim Meyering  <meyering@redhat.com>
361
362         maint.mk: fix po-file syntax-check rule
363         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
364         Patch by Bruno Haible.
365
366 2011-03-19  Bruno Haible  <bruno@clisp.org>
367
368         socklen: Update comment.
369         * m4/socklen.m4: Update comment about platforms.
370
371 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
372             Bruno Haible  <bruno@clisp.org>
373
374         inet_ntop, inet_pton: Simplify.
375         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
376         documented to provide socklen_t and we already depend on sys_socket.
377         * modules/inet_pton (Depends-on): Likewise.
378         * lib/arpa_inet.in.h: Adjust comment.
379
380 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
381             Bruno Haible  <bruno@clisp.org>
382
383         netdb: Simplify.
384         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
385         documented to provide socklen_t and we already depend on sys_socket.
386         * lib/netdb.in.h: Adjust comment.
387
388 2011-03-19  Bruno Haible  <bruno@clisp.org>
389
390         sys_socket, netdb: Document problem with socklen_t.
391         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
392         platforms.
393         * doc/posix-headers/netdb.texi: Likewise.
394
395 2011-03-18  Eric Blake  <eblake@redhat.com>
396
397         maint.mk: let po check work in VPATH build
398         * top/maint.mk (po_file): Allow cfg.mk override.
399         (sc_po_check): Allow VPATH use.
400         Reported by Jiri Denemark.
401
402 2011-03-16  Jim Meyering  <meyering@redhat.com>
403
404         maint.mk: allow fine-grained syntax-check exclusion via Make variables
405         Before, you would have had to create one .x-sc_ file per rule in order
406         to exempt offending files.  Now, you may instead use a Make variable --
407         usually defined in cfg.mk -- whose name identifies the affected rule.
408         * top/maint.mk (_sc_excl): Define.
409         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
410         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
411
412 2011-03-13  Bruno Haible  <bruno@clisp.org>
413
414         ignore-value tests: Avoid warnings.
415         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
416         empty for gcc < 3.4.
417
418 2011-03-13  Bruno Haible  <bruno@clisp.org>
419
420         passfd: Fix link error on Solaris.
421         * modules/passfd (Description): Correct.
422         (Depends-on): Add socketlib.
423         (Link): New section.
424         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
425
426 2011-03-13  Bruno Haible  <bruno@clisp.org>
427
428         passfd: Fix link error on AIX 5.2.
429         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
430
431 2011-03-13  Bruno Haible  <bruno@clisp.org>
432
433         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
434         * lib/sys_socket.in.h: Include <stddef.h>.
435         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
436         CMSG_FIRSTHDR. Remove unused variable.
437
438 2011-03-13  Bruno Haible  <bruno@clisp.org>
439
440         passfd: Fix compilation error on OpenBSD.
441         * lib/passfd.c: Include <sys/uio.h>.
442
443 2011-03-13  Bruno Haible  <bruno@clisp.org>
444
445         passfd test: Fix warnings.
446         * tests/test-passfd.c: Include <sys/wait.h>.
447         (main): Fix typo.
448
449 2011-03-13  Bruno Haible  <bruno@clisp.org>
450
451         passfd module, part 4, tweaks.
452         * tests/test-passfd.c: Reorder includes.
453         (main): Fix perror and printf calls.
454
455 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
456
457         passfd module, part 4.
458         * modules/passfd-tests: New file.
459         * tests/test-passfd.c: New file.
460
461 2011-03-13  Jim Meyering  <meyering@redhat.com>
462
463         Makefile: rely on GNU make; derive syntax-check rule names
464         Rather than requiring that each sc_ rule be listed as a dependent
465         of "check", use features of GNU make to derive the list.
466         * Makefile (syntax-check-rules): Define.
467         (check): Depend on the new variable, not the hard-coded list.
468
469 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
470             Bruno Haible  <bruno@clisp.org>
471
472         passfd module, part 3.
473         * lib/passfd.h (recvfd): Add a flags argument.
474         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
475         (recvfd): Add a flags argument.
476         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
477         exists.
478         * modules/passfd (Depends-on): Add cloexec.
479         Suggested by Eric Blake.
480
481 2011-03-13  Bruno Haible  <bruno@clisp.org>
482
483         passfd module, part 2, tweaks.
484         * modules/passfd (Files): Reorder.
485         (Depends-on): Remove errno.
486         (Include): Remove <sys/socket.h>, <sys/un.h>.
487         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
488         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
489         specification header. Include <sys/socket.h> always. Don't include
490         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
491         (sendfd): Clarify that it sets errno when it fails.
492         (recvfd): Fix specification.
493
494 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
495
496         passfd module, part 2.
497         * modules/passfd: New file.
498         * lib/passfd.h: New file.
499         * lib/passfd.c: New file.
500
501 2011-03-12  Bruno Haible  <bruno@clisp.org>
502
503         wcswidth, mbswidth: Avoid integer overflow.
504         * lib/wcswidth.c: Include <limits.h>.
505         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
506         * lib/mbswidth.c: Include <limits.h>.
507         (mbsnwidth): Avoid 'int' overflow.
508         Reported by Jim Meyering.
509
510 2011-03-12  Bruno Haible  <bruno@clisp.org>
511
512         futimens, utimensat: Avoid endless recursion on Solaris 10.
513         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
514         Solaris.
515         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
516         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
517
518 2011-03-11  Jim Meyering  <meyering@redhat.com>
519
520         maint.mk: relax a regexp to accommodate other formatting styles
521         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
522         between "ngettext" and the following "(".
523
524 2011-03-11  Pádraig Brady <P@draigBrady.com>
525
526         maint.mk: suppress a false positive warning
527         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
528         diagnostics are marked with ngettext.
529
530 2011-03-10  Eric Blake  <eblake@redhat.com>
531
532         wchar: add explicit dependencies, for Tru64
533         * modules/mbmemcasecoll (Depends-on): Add wchar.
534         * modules/mbtowc (Depends-on): Likewise.
535         * modules/vasnprintf (Depends-on): Likewise.
536         * modules/unistdio/u-printf-args (Depends-on): Likewise.
537         * modules/wctomb (Depends-on): Likewise.
538         Reported by Peter O'Gorman.
539
540 2011-03-08  Bruno Haible  <bruno@clisp.org>
541
542         passfd module, part 1, tweaks.
543         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
544         Improve indentation. Improve AC_MSG_CHECKING messages.
545         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
546         gl_SOCKET_FAMILIES.
547
548 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
549
550         passfd module, part 1.
551         * m4/afunix.m4: New file.
552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
553         sockets.
554
555 2011-03-08  Bruno Haible  <bruno@clisp.org>
556
557         regex-quote: New API.
558         * lib/regex-quote.h: Include <stdbool.h>.
559         (struct regex_quote_spec): New type.
560         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
561         New declarations.
562         (regex_quote_length, regex_quote_copy, regex_quote): Take a
563         'const struct regex_quote_spec *' argument.
564         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
565         (pcre_special): New constant.
566         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
567         New functions.
568         (regex_quote_length, regex_quote_copy, regex_quote): Take a
569         'const struct regex_quote_spec *' argument.
570         * modules/regex-quote (Depends-on): Add stdbool.
571         * tests/test-regex-quote.c (check): Update for new API. Add test for
572         anchored results.
573         * NEWS: Mention the API change.
574         Reported by Reuben Thomas and Eric Blake.
575
576 2011-03-06  Bruno Haible  <bruno@clisp.org>
577
578         regex-quote: Fix creation of POSIX extended regular expressions.
579         * lib/regex-quote.c (ere_special): Add grouping and alternation
580         operators.
581
582 2011-03-05  Bruno Haible  <bruno@clisp.org>
583
584         doc: Improve doc regarding autopoint vs. gnulib.
585         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
586         disable autopoint while running autoreconf.
587         Suggested by Ralf Wildenhues.
588
589 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
590
591         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
592         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
593
594 2011-03-03  Bruce Korb  <bkorb@gnu.org>
595
596         parse-duration: remove xalloc.h dependency
597         * lib/parse-duration.c (parse_period): handle NULL return from
598         strdup instead of calling xstrdup().
599         * modules/parse-duration: remove "xalloc" dependency
600
601 2011-03-03  Matthew Booth  <mbooth@redhat.com>
602
603         bootstrap: honor m4_base when running aclocal
604         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
605
606 2011-03-02  Jim Meyering  <meyering@redhat.com>
607
608         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
609         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
610         on request from Matt Booth.
611
612 2011-03-01  Eric Blake  <eblake@redhat.com>
613
614         test-link: work on Hurd
615         * tests/test-link.h (test_link): Hurd rejects linking directories
616         with EISDIR instead of the POSIX-mandated EPERM.
617
618 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
619
620         stdio: simplify by moving files to printf-posix, sigpipe
621         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
622         since this symbol is needed only if printf is replaced.
623         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
624         Require gl_ASM_SYMBOL_PREFIX.
625         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
626         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
627         (Depends-on): Add 'raise'.
628         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
629         * modules/stdio (Files): Remove lib/stdio-write.c,
630         m4/asm-underscore.m4.
631         (Depends-on): Remove 'raise'.
632
633         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
634         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
635         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
636         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
637
638 2011-02-28  Bruno Haible  <bruno@clisp.org>
639
640         localcharset: Assume ANSI C behaviour of free().
641         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
642         calling free().
643         Suggested by Simon Josefsson <simon@josefsson.org>.
644
645 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
646             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
647             Bruno Haible  <bruno@clisp.org>  (tiny change)
648
649         On Cygwin, use /proc file system instead of win32 API.
650         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
651         Win32 file names.
652         (DllMain): Simplify by removing Cygwin specific code.
653         (find_shared_library_fullname): Use Linux specific implementation also
654         for Cygwin.
655         (get_shared_library_fullname): Update accordingly.
656         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
657         Win32 file names.
658         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
659         Cygwin specific code.
660
661 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
662             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
663
664         Fix OpenMP flag detection for various Fortran compilers.
665         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
666         OpenMP-conditional compilation construct, to force compile
667         failure with missing OpenMP flag.
668         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
669
670 2011-02-25  Eric Blake  <eblake@redhat.com>
671
672         strstr: expand test coverage
673         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
674         compilation.
675         * tests/test-memmem.c (main): Duplicate tests.
676         * tests/test-strcasestr.c (main): Likewise.
677         * tests/test-c-strcasestr.c (main): Likewise.
678
679 2011-02-25  Jim Meyering  <meyering@redhat.com>
680
681         maint.mk: detect missing-NL-at-EOF, too
682         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
683         it also detects when a file lacks a newline at EOF.
684         (require_exactly_one_NL_at_EOF_): Renamed from
685         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
686         since people may well have .x-sc_... file names tied to the
687         existing name.  Suggested by Eric Blake.
688
689 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
690
691         dirname: move m4/dos.m4 functionality into lib/dosname.h
692
693         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
694         extracts symbols from it, puts them into config.h; but it's much
695         easier to use the symbols directly.  filename.h already does this,
696         but it disagrees with dos.m4 in some respects.  This patch
697         introduces a different include file dosname.h that packages up
698         dos.m4, and then later we can work on merging filename.h and
699         dosname.h.  Applications that need only the easy-to-configure
700         symbols should consider including dosname.h rather than dirname.h.
701         * NEWS: Mention incompatible changes.
702         * m4/dos.m4: Remove.
703         * lib/dosname.h, modules/dosname: New files.
704         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
705         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
706         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
707         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
708         Include dosname.h, not dirname.h.
709         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
710         Include dosname.h, for definitions of symbols like ISSLASH
711         that used to be in config.h.
712         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
713         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
714         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
715         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
716         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
717         * modules/rmdir (Files): Likewise.
718         * modules/stat (Files): Likewise.
719         * modules/unlink (Files): Likewise.
720         * modules/dirname-lgpl (Depends-on): Add dosname.
721         * modules/lstat (Depends-on): Likewise.
722         * modules/openat (Depends-on): Likewise.
723         * modules/rmdir (Depends-on): Likewise.
724         * modules/savewd (Depends-on): Likewise.
725         * modules/stat (Depends-on): Likewise.
726         * modules/unlink (Depends-on): Likewise.
727         * modules/openat (Depends-on): Remove dirname-lgpl.
728         * modules/savewd (Depends-on): Likewise.
729         * tests/test-dirname.c: Do not use removed symbols like
730         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
731         the remaining symbols, e.g., ISSLASH ('\\').
732
733 2011-02-25  Eric Blake  <eblake@redhat.com>
734
735         strstr: revert patches that introduced bug and pessimization
736         * lib/str-two-way.h: Add another reference.
737         (two_way_short_needle, two_way_long_needle): Revert changes from
738         2011-02-24; they pessimize search speed.
739         (critical_factorization): Partially revert changes from
740         2010-06-22; they violate the requirement that the left half of the
741         needle be smaller than the period of the needle.
742
743 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
744
745         filenamecat: remove unnecessary dependency on dirname-lgpl
746         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
747         is no direct dependency, just an indirect one via filenamecat-lgpl.
748
749         remove: remove unnecessary use of m4/dos.m4
750         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
751         * modules/remove (FILES): Remove m4/dos.m4.
752
753         * lib/openat-proc.c: Don't include dirname.h; not needed.
754
755         backupfile: remove unnecessary use of m4/dos.m4
756         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
757         of its symbols are used by the backupfile code.  backupfile.c does
758         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
759         for the rare case of programs that want all their backup file
760         names to live within 8+3 limits, and dos.m4 doesn't address that.
761         * modules/backupfile (Files): Remove m4/dos.m4.
762
763 2011-02-24  Jim Meyering  <meyering@redhat.com>
764
765         strstr: fix a bug whereby strstr would mistakenly return NULL
766         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
767         in period calculation.
768         (two_way_long_needle): Likewise.
769         The original problem was reported by Mike Stump in
770         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
771         Ralf Wildenhues provided the short needle and haystack.
772         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
773         Add a more involved test to trigger the bug in two_way_long_needle.
774
775 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
776
777         gnulib-tool: remove use of bold display in help screen
778         * gnulib-tool (func_usage): Do not use bold display anymore in the
779         help screen.  That was just meant to be a temporary emphasis for a
780         backward-incompatible change.
781
782 2011-02-23  Bruno Haible  <bruno@clisp.org>
783
784         Fix misindentation of preprocessor directives.
785         * lib/argp-namefrob.h: Reindent preprocessor directives.
786         * lib/getopt_int.h (struct _getopt_data): Likewise.
787         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
788         * lib/vasnprintf.c (decode_long_double): Likewise.
789         * tests/test-argmatch.c: Insert blank lines, for clarity.
790         * tests/test-exclude.c: Likewise.
791
792 2011-02-22  Bruno Haible  <bruno@clisp.org>
793
794         ioctl: Fix for MacOS X in 64-bit mode.
795         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
796         value.
797         Suggested by Eric Blake.
798         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
799
800 2011-02-22  Jim Meyering  <meyering@redhat.com>
801
802         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
803         * Makefile (sc_cpp_indent_check): Don't limit the check to files
804         in lib/.
805
806 2011-02-22  Eric Blake  <eblake@redhat.com>
807
808         maint: avoid any CDPATH issue
809         * Makefile (sc_cpp_indent_check): Anchor cd argument.
810
811         maint: adjust cpp indentation for my modules, as well
812         * Makefile (sc_cpp_indent_check): Add my name.
813         * lib/fbufmode.c: Filter through cppi.
814         * lib/fpurge.c: Likewise.
815         * lib/freadable.c: Likewise.
816         * lib/freading.c: Likewise.
817         * lib/fwritable.c: Likewise.
818         * lib/fwriting.c: Likewise.
819         * lib/sigaction.c: Likewise.
820
821 2011-02-22  Jim Meyering  <meyering@redhat.com>
822
823         maint: adjust cpp indentation to reflect nesting depth
824         I.e., in a block of code that begins with an unnested "#if",
825         put one space between the "#" in column 1 and following token.
826         For example,
827         -#include <sys/vfs.h>
828         +# include <sys/vfs.h>
829         Do this only in .c files that are part of a module I maintain.
830         * lib/linkat.c: Filter through cppi.
831         * lib/nanosleep.c: Likewise.
832         * lib/openat.c: Likewise.
833         * lib/openat-die.c: Likewise.
834         * lib/dup3.c: Likewise.
835         * lib/fchownat.c: Likewise.
836         * lib/flock.c: Likewise.
837         * lib/fsync.c: Likewise.
838         * lib/fts.c: Likewise.
839         * lib/getpass.c: Likewise.
840         * lib/gettimeofday.c: Likewise.
841         * lib/userspec.c: Likewise.
842         * Makefile (sc_cpp_indent_check): New rule, to check this.
843
844 2011-02-22  Bruno Haible  <bruno@clisp.org>
845
846         New module 'wctomb'.
847         * lib/stdlib.in.h (wctomb): New declaration.
848         * lib/wctomb.c: New file.
849         * lib/wctomb-impl.h: New file.
850         * m4/wctomb.m4: New file.
851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
852         REPLACE_WCTOMB.
853         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
854         REPLACE_WCTOMB.
855         * modules/wctomb: New file.
856         * tests/test-stdlib-c++.cc: Test signature of wctomb.
857         * doc/posix-functions/wctomb.texi: Mention the new module.
858         * modules/wctob (Depends-on): Add wctomb.
859
860 2011-02-22  Bruno Haible  <bruno@clisp.org>
861
862         New module 'mbtowc'.
863         * lib/stdlib.in.h (mbtowc): New declaration.
864         * lib/mbtowc.c: New file.
865         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
866         * m4/mbtowc.m4: New file.
867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
868         REPLACE_MBTOWC.
869         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
870         REPLACE_MBTOWC.
871         * modules/mbtowc: New file.
872         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
873         * doc/posix-functions/mbtowc.texi: Mention the new module.
874         * modules/btowc (Depends-on): Add mbtowc.
875
876 2011-02-22  Bruno Haible  <bruno@clisp.org>
877
878         wcrtomb: Add more tests for native Windows platforms.
879         * tests/test-wcrtomb-w32-1.sh: New file.
880         * tests/test-wcrtomb-w32-2.sh: New file.
881         * tests/test-wcrtomb-w32-3.sh: New file.
882         * tests/test-wcrtomb-w32-4.sh: New file.
883         * tests/test-wcrtomb-w32-5.sh: New file.
884         * tests/test-wcrtomb-w32.c: New file.
885         * modules/wcrtomb-tests (Files): Add them.
886         (Makefile.am): Arrange to run these tests.
887         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
888         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
889
890 2011-02-20  Bruno Haible  <bruno@clisp.org>
891
892         wcrtomb: Enhance test.
893         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
894
895 2011-02-20  Bruno Haible  <bruno@clisp.org>
896
897         mbrtowc: Tiny optimization.
898         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
899
900 2011-02-20  Jim Meyering  <meyering@redhat.com>
901
902         test-exclude.c: remove unmatched #endif
903         * tests/test-exclude.c: Remove stray #endif, left over from
904         the change of a week ago.
905
906 2011-02-19  Jim Meyering  <meyering@redhat.com>
907
908         git-version-gen: skip "-dirty" check when appropriate
909         * build-aux/git-version-gen: Don't run any git commands when the
910         version string comes from .tarball-version.  Prior to this, we
911         would run git update-index --refresh even from a just-unpacked
912         tarball directory, and that could affect a .git/ directory in a
913         parent of the build directory.  Reported by Mike Frysinger.
914
915 2011-02-19  Bruno Haible  <bruno@clisp.org>
916
917         unictype/property-byname: Reduce the size of the 'data' segment.
918         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
919
920 2011-02-19  Bruno Haible  <bruno@clisp.org>
921
922         unictype/scripts: Reduce the size of the 'data' segment.
923         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
924         '%pic'.
925         * lib/unictype/scripts_byname.gperf: Regenerated.
926
927 2011-02-19  Bruno Haible  <bruno@clisp.org>
928
929         stdint: Update documentation.
930         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
931
932 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
933
934         stdint: omit redundant check for wchar.h
935         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
936         always tests whether wchar.h exists, so remove the now-redundant test.
937
938 2011-02-18  Bruno Haible  <bruno@clisp.org>
939
940         stdint: Cut dependency to module 'wchar'.
941         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
942         include the necessary prerequisites.
943         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
944         * modules/stdint (Depends-on): Remove wchar.
945         (Makefile.am): Substitute HAVE_WCHAR_H.
946         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
947
948 2011-02-18  Eric Blake  <eblake@redhat.com>
949
950         longlong: skip, rather than fail, on cross-compilation
951         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
952         when cross-compiling; regression from 2011-02-16.
953
954 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
955
956         * NEWS: Mention 2011-02-08 change to stdlib.
957
958 2011-02-17  Bruno Haible  <bruno@clisp.org>
959
960         getloadavg: Add comments about platforms.
961         * m4/getloadavg.m4: Add comment.
962         * lib/getloadavg.c: Likewise.
963
964 2011-02-17  Bruno Haible  <bruno@clisp.org>
965
966         getloadavg: Fix link error on Solaris 2.6.
967         * modules/getloadavg (Link): New section.
968         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
969         linking test-getloadavg.
970         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
971         getloadavg.
972
973 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
974
975         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
976         It was 'int', but this doesn't match the IRIX 6.5 manual.
977         Suggested by Bruno Haible in
978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
979
980 2011-02-17  Bruno Haible  <bruno@clisp.org>
981
982         havelib: Fix comments.
983         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
984         change.
985
986 2011-02-17  Bruno Haible  <bruno@clisp.org>
987
988         havelib: Update config.rpath.
989         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
990
991 2011-02-17  Bruno Haible  <bruno@clisp.org>
992
993         getloadavg test: Add some plausibility checks.
994         * tests/test-getloadavg.c (check_avg): Print a warning when the value
995         is improbable.
996
997 2011-02-16  Eric Blake  <eblake@redhat.com>
998
999         maintainer-makefile: make syntax-check a no-op from tarballs
1000         * top/maint.mk (no-vc-detected): New rule.
1001         (local-checks-available): Use it to avoid hanging if someone tries
1002         'make syntax-check' from a tarball.  Also append to any non-syntax
1003         checks already defined in cfg.mk.
1004
1005 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1006
1007         longlong: tune, particularly for common case of c99
1008
1009         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
1010         or running anything if c99, or if unsigned long long int does not
1011         work.  In either case, we know the answer without further tests.
1012         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
1013         it at most once, and use its results for both long long int and
1014         unsigned long long int.  This is more likely to be efficient in
1015         the common case where the program wants to check for both long
1016         long int and unsigned long long int.
1017         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
1018         since the answer is already known.
1019
1020 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1021
1022         getloadavg: set errno
1023         * lib/getloadavg.c: Set errno when returning -1.  If no other
1024         error number looks appropriate, set it to ENOSYS if the getloadavg
1025         looks like it can't possibly ever work, ENOTSUP otherwise.
1026         Suggested by Bruno Haible in
1027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
1028
1029         getloadavg: trim unused parts and speed up 'configure'
1030         * NEWS: Document this.
1031         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
1032         always compiled if getloadavg is absent.
1033         Move test code to ...
1034         * tests/test-getloadavg.c: New file, containing previous
1035         contents of test from lib/getloadavg.c.  It also contains
1036         suggestions by Bruno Haible in
1037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
1038         * modules/getloadavg-tests: New file.
1039         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
1040         Do tests in the same order as they're needed for getloadavg.c.
1041         Omit setgid-related tests that generate symbols KMEM_GROUP,
1042         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
1043         Do only the tests that are needed to see whether the system has
1044         getloadavg, moving the other tests into ...
1045         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
1046         NLIST_NAME_UNION; nobody should be using it.  Do not define
1047         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
1048         relevant, as the user of this module shouldn't care how getloadavg
1049         is implemented.
1050
1051         getloadavg: omit unused var
1052         * lib/getloadavg.c (getloadavg): Omit unused local variable.
1053
1054 2011-02-15  Jim Meyering  <meyering@redhat.com>
1055
1056         doc: update users.txt
1057         * users.txt: Update iwhd's URL.
1058
1059 2011-02-13  Bruno Haible  <bruno@clisp.org>
1060
1061         Consistent macro naming for macros that use GCC __attribute__.
1062         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
1063         _ATTRIBUTE_NONNULL_.
1064         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
1065         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
1066         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
1067         ATTRIBUTE_DEPRECATED.
1068         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
1069         ATTRIBUTE_NORETURN.
1070         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1071         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1072         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1073         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1074         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
1075         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
1076         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
1077         ATTRIBUTE_SENTINEL.
1078         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
1079         ATTRIBUTE_RETURN_CHECK.
1080         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
1081         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
1082         ATTRIBUTE_NORETURN.
1083         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
1084         Reported by Paul Eggert.
1085
1086 2011-02-13  Bruno Haible  <bruno@clisp.org>
1087
1088         Don't interfere with a program's definition of __attribute__.
1089         * lib/argp.h (__attribute__): Remove definition.
1090         (_GL_ATTRIBUTE_FORMAT): New macro.
1091         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
1092         * lib/argp-fmtstream.h (__attribute__): Remove definition.
1093         (_GL_ATTRIBUTE_FORMAT): New macro.
1094         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
1095         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
1096         GCC 3 or newer.
1097         * lib/error.h (__attribute__): Remove definition.
1098         (_GL_ATTRIBUTE_FORMAT): New macro.
1099         (error, error_at_line): Use it.
1100         * lib/hash.h (__attribute__): Remove definition.
1101         (ATTRIBUTE_WUR): Update definition. Define always.
1102         * lib/openat.h (__attribute__): Remove definition.
1103         (ATTRIBUTE_NORETURN): Update definition. Define always.
1104         * lib/sigpipe-die.h (__attribute__): Remove definition.
1105         (ATTRIBUTE_NORETURN): Update definition. Define always.
1106         * lib/vasnprintf.h (__attribute__): Remove definition.
1107         (_GL_ATTRIBUTE_FORMAT): New macro.
1108         (asnprintf, vasnprintf): Use it.
1109         * lib/xalloc.h (__attribute__): Remove definition.
1110         (ATTRIBUTE_NORETURN): Update definition. Define always.
1111         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
1112         * lib/xmemdup0.h (__attribute__): Remove definition.
1113         (ATTRIBUTE_NORETURN): Update definition. Define always.
1114         * lib/xprintf.h (__attribute__): Remove definition.
1115         (_GL_ATTRIBUTE_FORMAT): New macro.
1116         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
1117         * lib/xstrtol.h (__attribute__): Remove definition.
1118         (ATTRIBUTE_NORETURN): Update definition. Define always.
1119         * lib/xvasprintf.h (__attribute__): Remove definition.
1120         (_GL_ATTRIBUTE_FORMAT): New macro.
1121         (xasprintf, xvasprintf): Use it.
1122         * tests/test-argmatch.c (__attribute__): Remove definition.
1123         (ATTRIBUTE_NORETURN): Update definition. Define always.
1124         * tests/test-exclude.c (__attribute__): Remove definition.
1125         (ATTRIBUTE_NORETURN): Update definition. Define always.
1126         Reported by Paul Eggert.
1127
1128 2011-02-13  Bruno Haible  <bruno@clisp.org>
1129
1130         mbrtowc: Add more tests for native Windows platforms.
1131         * tests/test-mbrtowc-w32-1.sh: New file.
1132         * tests/test-mbrtowc-w32-2.sh: New file.
1133         * tests/test-mbrtowc-w32-3.sh: New file.
1134         * tests/test-mbrtowc-w32-4.sh: New file.
1135         * tests/test-mbrtowc-w32-5.sh: New file.
1136         * tests/test-mbrtowc-w32.c: New file.
1137         * modules/mbrtowc-tests (Files): Add them.
1138         (Makefile.am): Arrange to run these tests.
1139         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
1140         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
1141
1142 2011-02-13  Bruno Haible  <bruno@clisp.org>
1143
1144         mbrtowc: Work around native Windows bug.
1145         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
1146         guess when no suitable locale for testing was found.
1147         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
1148
1149 2011-02-13  Bruno Haible  <bruno@clisp.org>
1150
1151         mbsinit: Work around mingw bug.
1152         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
1153         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
1154         Windows.
1155         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
1156
1157 2011-02-13  Bruno Haible  <bruno@clisp.org>
1158
1159         mbsinit: Don't crash for a NULL argument.
1160         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
1161         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
1162
1163 2011-02-13  Bruno Haible  <bruno@clisp.org>
1164
1165         Don't interfere with a program's definition of __attribute__.
1166         * lib/stdio.in.h (__attribute__): Remove definition.
1167         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
1168         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
1169         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
1170         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
1171         * lib/string.in.h (__attribute__): Remove definition.
1172         Reported by Paul Eggert.
1173
1174 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1175
1176         stdlib: don't get in the way of non-GCC __attribute__
1177         See thread starting at
1178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
1179         Revert previous stdlib change, installing the following instead:
1180         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
1181         to get in the way of a non-GCC compiler that supports __attribute__.
1182         (_GL_ATTRIBUTE_RETURN): New macro.
1183         (_Exit): Use it instead of __attribute__.
1184
1185 2011-02-12  Bruno Haible  <bruno@clisp.org>
1186
1187         quotearg test: Avoid test failure on mingw.
1188         * tests/test-quotearg.sh: Convert the locale identifier from native
1189         Windows syntax to Unix syntax.
1190
1191 2011-02-12  Bruno Haible  <bruno@clisp.org>
1192
1193         setlocale: Prefer gnulib's override over libintl's override.
1194         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
1195         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
1196         GNULIB_defined_setlocale is set.
1197
1198 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1199
1200         stdlib: support non-GCC __attribute__
1201
1202         Fix a serious and tricky problem encountered when attempting to
1203         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
1204         5.5, but it crashed due to memory corruption on Solaris 10 with
1205         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
1206         bits that are otherwise zero.  This tagging is optional inside
1207         Emacs but is preferred and is used when __attribute__ ((__aligned
1208         (8))) works, as it does with both recent-enough GCC and with Sun C
1209         5.11.  However, Sun C 5.11 is not GCC and does not #define
1210         __GNUC__ and __GNUC_MINOR__.
1211
1212         When I added the getloadavg module to Emacs, it brought in
1213         stdlib.in.h, which contained this fragment:
1214
1215            #ifndef __attribute__
1216            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
1217            #  define __attribute__(Spec)   /* empty */
1218            # endif
1219            #endif
1220
1221         When files that include <stdlib.h> were compiled with Sun C 5.11,
1222         the above code disabled __attribute__ ((__aligned (8))), which
1223         caused variables to not be properly aligned, which eventually led
1224         to the pointer corruption mentioned above.  (This was a bit hard
1225         to diagnose, unfortunately.)
1226
1227         Several "#define __attribute__(X) /* empty */" code snippets need
1228         to be eradicated from Gnulib to work with non-GCC compilers that
1229         support __attribute__.  The Autoconf way to do this is to test for
1230         each kind of attribute that we want support for, and selectively
1231         enable that in source code.
1232
1233         Fix this problem just for stdlib.h, by adding a test for the
1234         __noreturn__ attribute, and change stdlib.in.h to use that test
1235         when needed.  This technique can be easily generalized to the
1236         other *.in.h files and attributes, and a similar technique can be
1237         used for *.h and *.c files.  This patch is enough to solve the
1238         problem for Emacs + getloadavg, and I thought I'd publish it for
1239         feedback before undertaking further, similar fixes in other
1240         modules.
1241
1242         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
1243         because it's not needed for stdlib.h.  It merely substitutes the
1244         value directly into stdlib.h.  We may well need to #define it, or
1245         similar symbols, for other modules, but it's nice to also have an
1246         option to not #define it for applications like Emacs that do not
1247         need it.
1248
1249         * lib/stdlib.in.h (__attribute__): Do not #define.
1250         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
1251         be defined only if the _Exit module is also used.
1252         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
1253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
1254         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
1255         platforms.
1256         * modules/_Exit (Files): Add m4/attribute.m4.
1257         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
1258         * m4/attribute.m4: New file.
1259
1260 2011-02-12  Bruno Haible  <bruno@clisp.org>
1261
1262         wcsrtombs: Work around bug on native Windows.
1263         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
1264         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
1265         instead of len.
1266         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
1267
1268 2011-02-12  Bruno Haible  <bruno@clisp.org>
1269
1270         mbsrtowcs: Work around bug on native Windows.
1271         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
1272         against mingw bug.
1273         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
1274
1275 2011-02-12  Bruno Haible  <bruno@clisp.org>
1276
1277         Avoid setlocale bugs in tests.
1278         * modules/btowc (Dependencies): Add setlocale.
1279         * modules/c-strcase (Dependencies): Likewise.
1280         * modules/mbmemcasecmp (Dependencies): Likewise.
1281         * modules/mbmemcasecoll (Dependencies): Likewise.
1282         * modules/mbrtowc (Dependencies): Likewise.
1283         * modules/mbscasecmp (Dependencies): Likewise.
1284         * modules/mbscasestr (Dependencies): Likewise.
1285         * modules/mbschr (Dependencies): Likewise.
1286         * modules/mbscspn (Dependencies): Likewise.
1287         * modules/mbsinit (Dependencies): Likewise.
1288         * modules/mbsncasecmp (Dependencies): Likewise.
1289         * modules/mbsnrtowcs (Dependencies): Likewise.
1290         * modules/mbspbrk (Dependencies): Likewise.
1291         * modules/mbspcasecmp (Dependencies): Likewise.
1292         * modules/mbsrchr (Dependencies): Likewise.
1293         * modules/mbsrtowcs (Dependencies): Likewise.
1294         * modules/mbsspn (Dependencies): Likewise.
1295         * modules/mbsstr (Dependencies): Likewise.
1296         * modules/nl_langinfo (Dependencies): Likewise.
1297         * modules/quotearg (Dependencies): Likewise.
1298         * modules/unicase/locale-language (Dependencies): Likewise.
1299         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
1300         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
1301         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
1302         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
1303         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
1304         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
1305         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
1306         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
1307         * modules/vasnprintf-posix (Dependencies): Likewise.
1308         * modules/wcrtomb (Dependencies): Likewise.
1309         * modules/wcsnrtombs (Dependencies): Likewise.
1310         * modules/wcsrtombs (Dependencies): Likewise.
1311
1312 2011-02-12  Bruno Haible  <bruno@clisp.org>
1313
1314         setlocale: Workaround native Windows bug.
1315         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
1316         succeeds but sets LC_CTYPE to "C", report a failure.
1317         * tests/test-setlocale2.sh: New file.
1318         * tests/test-setlocale2.c: New file.
1319         * modules/setlocale-tests (Files): Add the new files.
1320         (Makefile.am): Enable test-setlocale2.sh test.
1321         * doc/posix-functions/setlocale.texi: Mention workaround.
1322
1323 2011-02-11  Bruno Haible  <bruno@clisp.org>
1324
1325         Tests for module 'setlocale'.
1326         * modules/setlocale-tests: New file.
1327         * tests/test-setlocale1.sh: New file.
1328         * tests/test-setlocale1.c: New file.
1329
1330         New module 'setlocale'.
1331         * lib/locale.in.h (setlocale): New declaration.
1332         * lib/setlocale.c: New file, based on
1333         gettext/gettext-runtime/intl/setlocale.c.
1334         * m4/setlocale.m4: New file.
1335         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1336         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1337         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1338         REPLACE_SETLOCALE.
1339         * modules/setlocale: New file.
1340         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1341         * doc/posix-functions/setlocale.texi: Mention the new module.
1342
1343 2011-02-11  Bruno Haible  <bruno@clisp.org>
1344
1345         Prepare for locale dependent tests on mingw.
1346         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1347         because it has the wrong locale encoding.
1348         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1349         French_France.1252 instead of "fr".
1350         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1351         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1352         because it has the wrong locale encoding.
1353         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1354         native Windows, try Turkish_Turkey.65001.
1355         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1356         Chinese_China.54936.
1357
1358         Prepare for locale dependent tests on mingw.
1359         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
1360         differently.
1361         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1362         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1363         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1364         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1365
1366 2011-02-11  Eric Blake  <eblake@redhat.com>
1367
1368         strptime: avoid compiler warnings
1369         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
1370         compiler warnings about dead code.
1371         Reported by Daniel P. Berrange.
1372
1373 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
1374
1375         doc: update users.txt
1376         * users.txt: Add rcs.
1377
1378 2011-02-10  John W. Eaton  <jwe@gnu.org>
1379
1380         doc: update users.txt
1381         * users.txt: Add octave.
1382
1383 2011-02-10  Jim Meyering  <meyering@redhat.com>
1384
1385         doc: update users.txt
1386         * users.txt: Add iwhd.
1387
1388 2011-02-09  Bruno Haible  <bruno@clisp.org>
1389
1390         gnulib-tool: Make copyright notice adjustment more robust.
1391         * gnulib-tool (func_import): In sed_transform_main_lib_file,
1392         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
1393         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
1394         License".
1395         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
1396
1397 2011-02-06  Bruno Haible  <bruno@clisp.org>
1398
1399         New module 'towctrans'.
1400         * modules/towctrans: New file.
1401         * lib/wctype.in.h (towctrans): New declaration.
1402         * lib/towctrans.c: New file.
1403         * lib/towctrans-impl.h: New file.
1404         * m4/towctrans.m4: New file.
1405         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
1406         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
1407         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
1408         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
1409         * doc/posix-functions/towctrans.texi: Mention the new module.
1410
1411 2011-02-06  Bruno Haible  <bruno@clisp.org>
1412
1413         New module 'wctrans'.
1414         * modules/wctrans: New file.
1415         * lib/wctype.in.h (wctrans): New declaration.
1416         * lib/wctrans.c: New file.
1417         * lib/wctrans-impl.h: New file.
1418         * m4/wctrans.m4: New file.
1419         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
1420         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
1421         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
1422         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
1423         * doc/posix-functions/wctrans.texi: Mention the new module.
1424
1425 2011-02-06  Bruno Haible  <bruno@clisp.org>
1426
1427         New module 'iswctype'.
1428         * modules/iswctype: New file.
1429         * lib/wctype.in.h (iswctype): New declaration.
1430         * lib/iswctype.c: New file.
1431         * lib/iswctype-impl.h: New file.
1432         * m4/iswctype.m4: New file.
1433         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
1434         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
1435         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
1436         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
1437         * doc/posix-functions/iswctype.texi: Mention the new module and the
1438         HP-UX 11.00 problem.
1439
1440 2011-02-06  Bruno Haible  <bruno@clisp.org>
1441
1442         New module 'wctype'.
1443         * modules/wctype: Change to represent the wctype() substitute.
1444         * lib/wctype.in.h (wctype): New declaration.
1445         * lib/wctype.c: New file.
1446         * lib/wctype-impl.h: New file.
1447         * m4/wctype.m4: New file.
1448         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
1449         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
1450         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
1451         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
1452         * doc/posix-functions/wctype.texi: Mention the new module and the
1453         HP-UX 11.00 problem.
1454
1455 2011-02-06  Bruno Haible  <bruno@clisp.org>
1456
1457         wctype-h: Ensure wctype_t and wctrans_t are defined.
1458         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
1459         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1460         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1461         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
1462         HAVE_WCTRANS_T.
1463         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
1464
1465 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         flock: fix license typo
1468
1469         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1470         omitted.
1471
1472 2011-02-08  Bruno Haible  <bruno@clisp.org>
1473
1474         Split large sed scripts, for HP-UX sed.
1475         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1476         to avoid HP-UX limit of 99 commands, in the near future.
1477         * modules/stdlib (Makefile.am): Likewise.
1478         * modules/unistd (Makefile.am): Likewise.
1479         * modules/wchar (Makefile.am): Likewise.
1480         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1481         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1483
1484 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1485             Bruno Haible  <bruno@clisp.org>
1486
1487         stdlib: improve random_r modularization
1488         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1489         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1490         you also need the random_r module to get this material right.
1491         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1492         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1493         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1494
1495 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1496
1497         stdlib: don't depend on stdint
1498         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1499         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1500         be independent of whether stdint.h is needed.
1501         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1502         here, instead of ...
1503         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1504         struct random_data should be using the random_r module, not just
1505         the stdlib module (which wouldn't make sense: what package needs
1506         just struct random_data without also needing random_r?).
1507         * modules/stdlib (Depends-on): Remove stdint.
1508
1509         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
1510         See the thread rooted at
1511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
1512         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
1513         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
1514         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
1515         __VMS)); previously it was always included (via fcntl--.h).
1516         (getloadavg): Do not use c_strtod.  Instead, approximate it by
1517         hand; this is good enough for load averages.  Also, do not use
1518         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
1519         flags directly if available and don't bother otherwise.  (Packages
1520         that need the extra reliability should use the modules that define
1521         these flags on older platforms that lack them.)
1522         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
1523         fcntl-safer.
1524
1525 2011-02-08  Jim Meyering  <meyering@redhat.com>
1526
1527         di-set.h, ino-map.h: add multiple-inclusion guard
1528         Technically, the guard is required only for ino-map.h, due to its
1529         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
1530         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
1531         * lib/ino-map.h: Likewise.
1532
1533 2011-02-06  Bruno Haible  <bruno@clisp.org>
1534
1535         iswblank: Ensure declaration on glibc systems.
1536         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
1537         * modules/iswblank (Dependencies): Add 'extensions'.
1538         * doc/posix-functions/iswblank.texi: Document the glibc problem.
1539
1540 2011-02-06  Bruno Haible  <bruno@clisp.org>
1541
1542         New module 'iswblank'.
1543         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
1544         * modules/iswblank: New file.
1545         * modules/wctype-h (Files): Remove lib/iswblank.c.
1546         (Makefile.am): Substitute GNULIB_ISWBLANK.
1547         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
1548         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
1549         (gl_WCTYPE_H_DEFAULTS): New macro.
1550         (gl_WCTYPE_H): Require it. Remove iswblank related code.
1551         * modules/iswblank-tests: New file.
1552         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
1553         * tests/test-wctype-h.c (main): Remove iswblank tests.
1554         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
1555         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
1556         of 'wctype-h'.
1557         * NEWS: Mention the change.
1558         * modules/mbchar (Depends-on): Add iswblank.
1559
1560 2011-02-08  Bruno Haible  <bruno@clisp.org>
1561
1562         di-set tests: Refactor.
1563         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
1564         unnecessary includes.
1565         (ASSERT): Remove macro.
1566         (main): Make C90 compliant by avoiding variable declaration after
1567         statement.
1568         * modules/di-set-tests (Files): Add tests/macros.h.
1569
1570 2011-02-08  Bruno Haible  <bruno@clisp.org>
1571
1572         ino-map tests: Refactor.
1573         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
1574         unnecessary includes.
1575         (ASSERT): Remove macro.
1576         (main): Make C90 compliant by avoiding variable declaration after
1577         statement.
1578         * modules/ino-map-tests (Files): Add tests/macros.h.
1579
1580 2011-02-08  Jim Meyering  <meyering@redhat.com>
1581
1582         di-set: add "const" to a cast
1583         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
1584         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
1585
1586 2011-02-06  Bruno Haible  <bruno@clisp.org>
1587
1588         Rename module 'wctype' to 'wctype-h'.
1589         * modules/wctype-h: Renamed from modules/wctype.
1590         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
1591         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
1592         (Files, Depends-on, Makefile.am): Update.
1593         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
1594         (Files, Makefile.am): Update.
1595         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
1596         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
1597         * doc/posix-headers/wctype.texi: Update.
1598         * doc/posix-functions/iswalnum.texi: Update.
1599         * doc/posix-functions/iswalpha.texi: Update.
1600         * doc/posix-functions/iswblank.texi: Update.
1601         * doc/posix-functions/iswcntrl.texi: Update.
1602         * doc/posix-functions/iswdigit.texi: Update.
1603         * doc/posix-functions/iswgraph.texi: Update.
1604         * doc/posix-functions/iswlower.texi: Update.
1605         * doc/posix-functions/iswprint.texi: Update.
1606         * doc/posix-functions/iswpunct.texi: Update.
1607         * doc/posix-functions/iswspace.texi: Update.
1608         * doc/posix-functions/iswupper.texi: Update.
1609         * doc/posix-functions/iswxdigit.texi: Update.
1610         * doc/posix-functions/towlower.texi: Update.
1611         * doc/posix-functions/towupper.texi: Update.
1612         * NEWS: Mention the change.
1613         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
1614         * modules/mbchar (Dependencies): Likewise.
1615         * modules/mbswidth (Dependencies): Likewise.
1616         * modules/quotearg (Dependencies): Likewise.
1617         * modules/regex (Dependencies): Likewise.
1618         * modules/wcscasecmp (Dependencies): Likewise.
1619         * modules/wcsncasecmp (Dependencies): Likewise.
1620         * modules/wcwidth (Dependencies): Likewise.
1621
1622 2011-02-06  Bruno Haible  <bruno@clisp.org>
1623
1624         New module 'wcswidth'.
1625         * modules/wcswidth: New file.
1626         * lib/wchar.in.h (wcswidth): New declaration.
1627         * lib/wcswidth.c: New file.
1628         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
1629         * m4/wcswidth.m4: New file.
1630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
1631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
1632         REPLACE_WCSWIDTH.
1633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
1634         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
1635         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
1636         * doc/posix-functions/wcswidth.texi: Mention the new module.
1637
1638 2011-02-06  Bruno Haible  <bruno@clisp.org>
1639
1640         New module 'wcstok'.
1641         * modules/wcstok: New file.
1642         * lib/wchar.in.h (wcstok): New declaration.
1643         * lib/wcstok.c: New file.
1644         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
1645         * m4/wcstok.m4: New file.
1646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
1647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
1648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
1649         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
1650         * doc/posix-functions/wcstok.texi: Mention the new module.
1651
1652 2011-02-06  Bruno Haible  <bruno@clisp.org>
1653
1654         New module 'wcsstr'.
1655         * modules/wcsstr: New file.
1656         * lib/wchar.in.h (wcsstr): New declaration.
1657         * lib/wcsstr.c: New file.
1658         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
1659         * m4/wcsstr.m4: New file.
1660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
1661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
1662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
1663         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
1664         * doc/posix-functions/wcsstr.texi: Mention the new module.
1665
1666 2011-02-06  Bruno Haible  <bruno@clisp.org>
1667
1668         New module 'wcspbrk'.
1669         * modules/wcspbrk: New file.
1670         * lib/wchar.in.h (wcspbrk): New declaration.
1671         * lib/wcspbrk.c: New file.
1672         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
1673         * m4/wcspbrk.m4: New file.
1674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
1675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
1676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
1677         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
1678         * doc/posix-functions/wcspbrk.texi: Mention the new module.
1679
1680 2011-02-06  Bruno Haible  <bruno@clisp.org>
1681
1682         New module 'wcsspn'.
1683         * modules/wcsspn: New file.
1684         * lib/wchar.in.h (wcsspn): New declaration.
1685         * lib/wcsspn.c: New file.
1686         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
1687         * m4/wcsspn.m4: New file.
1688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
1689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
1690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
1691         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
1692         * doc/posix-functions/wcsspn.texi: Mention the new module.
1693
1694 2011-02-06  Bruno Haible  <bruno@clisp.org>
1695
1696         New module 'wcscspn'.
1697         * modules/wcscspn: New file.
1698         * lib/wchar.in.h (wcscspn): New declaration.
1699         * lib/wcscspn.c: New file.
1700         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
1701         * m4/wcscspn.m4: New file.
1702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
1703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
1704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
1705         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
1706         * doc/posix-functions/wcscspn.texi: Mention the new module.
1707
1708 2011-02-06  Bruno Haible  <bruno@clisp.org>
1709
1710         New module 'wcsrchr'.
1711         * modules/wcsrchr: New file.
1712         * lib/wchar.in.h (wcsrchr): New declaration.
1713         * lib/wcsrchr.c: New file.
1714         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
1715         * m4/wcsrchr.m4: New file.
1716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
1717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
1718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
1719         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
1720         * doc/posix-functions/wcsrchr.texi: Mention the new module.
1721
1722 2011-02-06  Bruno Haible  <bruno@clisp.org>
1723
1724         New module 'wcschr'.
1725         * modules/wcschr: New file.
1726         * lib/wchar.in.h (wcschr): New declaration.
1727         * lib/wcschr.c: New file.
1728         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
1729         * m4/wcschr.m4: New file.
1730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
1731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
1732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
1733         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
1734         * doc/posix-functions/wcschr.texi: Mention the new module.
1735
1736 2011-02-06  Bruno Haible  <bruno@clisp.org>
1737
1738         New module 'wcsdup'.
1739         * modules/wcsdup: New file.
1740         * lib/wchar.in.h (wcsdup): New declaration.
1741         * lib/wcsdup.c: New file.
1742         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
1743         * m4/wcsdup.m4: New file.
1744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
1745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
1746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
1747         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
1748         * doc/posix-functions/wcsdup.texi: Mention the new module.
1749
1750 2011-02-06  Bruno Haible  <bruno@clisp.org>
1751
1752         New module 'wcsxfrm'.
1753         * modules/wcsxfrm: New file.
1754         * lib/wchar.in.h (wcsxfrm): New declaration.
1755         * lib/wcsxfrm.c: New file.
1756         * lib/wcsxfrm-impl.h: New file.
1757         * m4/wcsxfrm.m4: New file.
1758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
1759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
1760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
1761         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
1762         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
1763
1764 2011-02-06  Bruno Haible  <bruno@clisp.org>
1765
1766         New module 'wcscoll'.
1767         * modules/wcscoll: New file.
1768         * lib/wchar.in.h (wcscoll): New declaration.
1769         * lib/wcscoll.c: New file.
1770         * lib/wcscoll-impl.h: New file.
1771         * m4/wcscoll.m4: New file.
1772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
1773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
1774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
1775         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
1776         * doc/posix-functions/wcscoll.texi: Mention the new module.
1777
1778 2011-02-06  Bruno Haible  <bruno@clisp.org>
1779
1780         New module 'wcsncasecmp'.
1781         * modules/wcsncasecmp: New file.
1782         * lib/wchar.in.h (wcsncasecmp): New declaration.
1783         * lib/wcsncasecmp.c: New file.
1784         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
1785         * m4/wcsncasecmp.m4: New file.
1786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
1787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
1788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
1789         HAVE_WCSNCASECMP.
1790         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
1791         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
1792
1793 2011-02-06  Bruno Haible  <bruno@clisp.org>
1794
1795         New module 'wcscasecmp'.
1796         * modules/wcscasecmp: New file.
1797         * lib/wchar.in.h (wcscasecmp): New declaration.
1798         * lib/wcscasecmp.c: New file.
1799         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
1800         * m4/wcscasecmp.m4: New file.
1801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
1802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
1803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
1804         HAVE_WCSCASECMP.
1805         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
1806         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
1807
1808 2011-02-05  Bruno Haible  <bruno@clisp.org>
1809
1810         New module 'wcsncmp'.
1811         * modules/wcsncmp: New file.
1812         * lib/wchar.in.h (wcsncmp): New declaration.
1813         * lib/wcsncmp.c: New file.
1814         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
1815         * m4/wcsncmp.m4: New file.
1816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
1817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
1818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
1819         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
1820         * doc/posix-functions/wcsncmp.texi: Mention the new module.
1821
1822 2011-02-05  Bruno Haible  <bruno@clisp.org>
1823
1824         New module 'wcscmp'.
1825         * modules/wcscmp: New file.
1826         * lib/wchar.in.h (wcscmp): New declaration.
1827         * lib/wcscmp.c: New file.
1828         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
1829         * m4/wcscmp.m4: New file.
1830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
1831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
1832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
1833         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
1834         * doc/posix-functions/wcscmp.texi: Mention the new module.
1835
1836 2011-02-05  Bruno Haible  <bruno@clisp.org>
1837
1838         New module 'wcsncat'.
1839         * modules/wcsncat: New file.
1840         * lib/wchar.in.h (wcsncat): New declaration.
1841         * lib/wcsncat.c: New file.
1842         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
1843         * m4/wcsncat.m4: New file.
1844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
1845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
1846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
1847         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
1848         * doc/posix-functions/wcsncat.texi: Mention the new module.
1849
1850 2011-02-05  Bruno Haible  <bruno@clisp.org>
1851
1852         New module 'wcscat'.
1853         * modules/wcscat: New file.
1854         * lib/wchar.in.h (wcscat): New declaration.
1855         * lib/wcscat.c: New file.
1856         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
1857         * m4/wcscat.m4: New file.
1858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
1859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
1860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
1861         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
1862         * doc/posix-functions/wcscat.texi: Mention the new module.
1863
1864 2011-02-05  Bruno Haible  <bruno@clisp.org>
1865
1866         New module 'wcpncpy'.
1867         * modules/wcpncpy: New file.
1868         * lib/wchar.in.h (wcpncpy): New declaration.
1869         * lib/wcpncpy.c: New file.
1870         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
1871         * m4/wcpncpy.m4: New file.
1872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
1873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
1874         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
1875         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
1876         * doc/posix-functions/wcpncpy.texi: Mention the new module.
1877
1878 2011-02-05  Bruno Haible  <bruno@clisp.org>
1879
1880         New module 'wcsncpy'.
1881         * modules/wcsncpy: New file.
1882         * lib/wchar.in.h (wcsncpy): New declaration.
1883         * lib/wcsncpy.c: New file.
1884         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
1885         * m4/wcsncpy.m4: New file.
1886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
1887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
1888         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
1889         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
1890         * doc/posix-functions/wcsncpy.texi: Mention the new module.
1891
1892 2011-02-05  Bruno Haible  <bruno@clisp.org>
1893
1894         New module 'wcpcpy'.
1895         * modules/wcpcpy: New file.
1896         * lib/wchar.in.h (wcpcpy): New declaration.
1897         * lib/wcpcpy.c: New file.
1898         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
1899         * m4/wcpcpy.m4: New file.
1900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
1901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
1902         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
1903         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
1904         * doc/posix-functions/wcpcpy.texi: Mention the new module.
1905
1906 2011-02-05  Bruno Haible  <bruno@clisp.org>
1907
1908         New module 'wcscpy'.
1909         * modules/wcscpy: New file.
1910         * lib/wchar.in.h (wcscpy): New declaration.
1911         * lib/wcscpy.c: New file.
1912         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
1913         * m4/wcscpy.m4: New file.
1914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
1915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
1916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
1917         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
1918         * doc/posix-functions/wcscpy.texi: Mention the new module.
1919
1920 2011-02-05  Bruno Haible  <bruno@clisp.org>
1921
1922         New module 'wcsnlen'.
1923         * modules/wcsnlen: New file.
1924         * lib/wchar.in.h (wcsnlen): New declaration.
1925         * lib/wcsnlen.c: New file.
1926         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
1927         * m4/wcsnlen.m4: New file.
1928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
1929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
1930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
1931         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
1932         * doc/posix-functions/wcsnlen.texi: Mention the new module.
1933
1934 2011-02-05  Bruno Haible  <bruno@clisp.org>
1935
1936         New module 'wcslen'.
1937         * modules/wcslen: New file.
1938         * lib/wchar.in.h (wcslen): New declaration.
1939         * lib/wcslen.c: New file.
1940         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
1941         * m4/wcslen.m4: New file.
1942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
1943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
1944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
1945         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
1946         * doc/posix-functions/wcslen.texi: Mention the new module.
1947
1948 2011-02-05  Bruno Haible  <bruno@clisp.org>
1949
1950         New module 'wmemset'.
1951         * modules/wmemset: New file.
1952         * lib/wchar.in.h (wmemset): New declaration.
1953         * lib/wmemset.c: New file.
1954         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
1955         * m4/wmemset.m4: New file.
1956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
1957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
1958         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
1959         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
1960         * doc/posix-functions/wmemset.texi: Mention the new module.
1961
1962 2011-02-05  Bruno Haible  <bruno@clisp.org>
1963
1964         New module 'wmemmove'.
1965         * modules/wmemmove: New file.
1966         * lib/wchar.in.h (wmemmove): New declaration.
1967         * lib/wmemmove.c: New file.
1968         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
1969         * m4/wmemmove.m4: New file.
1970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
1971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
1972         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
1973         HAVE_WMEMMOVE.
1974         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
1975         * doc/posix-functions/wmemmove.texi: Mention the new module.
1976
1977 2011-02-05  Bruno Haible  <bruno@clisp.org>
1978
1979         New module 'wmemcpy'.
1980         * modules/wmemcpy: New file.
1981         * lib/wchar.in.h (wmemcpy): New declaration.
1982         * lib/wmemcpy.c: New file.
1983         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
1984         * m4/wmemcpy.m4: New file.
1985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
1986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
1987         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
1988         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
1989         * doc/posix-functions/wmemcpy.texi: Mention the new module.
1990
1991 2011-02-05  Bruno Haible  <bruno@clisp.org>
1992
1993         New module 'wmemcmp'.
1994         * modules/wmemcmp: New file.
1995         * lib/wchar.in.h (wmemcmp): New declaration.
1996         * lib/wmemcmp.c: New file.
1997         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
1998         * m4/wmemcmp.m4: New file.
1999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
2000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
2001         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
2002         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
2003         * doc/posix-functions/wmemcmp.texi: Mention the new module.
2004
2005 2011-02-07  Jim Meyering  <meyering@redhat.com>
2006
2007         di-set, ino-map: new modules, from coreutils
2008         * lib/di-set.c: New file.
2009         * lib/di-set.h: Likewise.
2010         * lib/ino-map.c: Likewise.
2011         * lib/ino-map.h: Likewise.
2012         * modules/di-set: Likewise.
2013         * modules/di-set-tests: Likewise.
2014         * modules/ino-map: Likewise.
2015         * modules/ino-map-tests: Likewise.
2016         * tests/test-di-set.c: Likewise.
2017         * tests/test-ino-map.c: Likewise.
2018
2019 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2020
2021         getloadavg: merge minor changes from Emacs
2022
2023         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
2024         (getloadavg): Use memset, not bzero.
2025
2026         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
2027         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2028         clash (bug#86).
2029
2030 2010-11-14  Bruno Haible  <bruno@clisp.org>
2031
2032         Allow multiple gnulib generated replacements to coexist.
2033         * lib/getopt.in.h (struct option): Avoid identical redefinition.
2034         * lib/inttypes.in.h (imaxdiv_t): Likewise.
2035         * lib/langinfo.in.h (nl_item): Likewise.
2036         * lib/math.in.h (_NaN, NAN): Likewise.
2037         * lib/netdb.in.h (struct addrinfo): Likewise.
2038         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
2039         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
2040         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
2041         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
2042         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
2043         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
2044         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
2045         pthread_mutexattr_init, pthread_mutexattr_settype,
2046         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
2047         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
2048         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
2049         pthread_spin_trylock, pthread_spin_unlock): Likewise.
2050         * lib/sched.in.h (struct sched_param): Likewise.
2051         * lib/se-selinux.in.h (security_class_t, security_context_t,
2052         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
2053         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
2054         lsetfilecon, fsetfilecon, security_check_context,
2055         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
2056         Likewise.
2057         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
2058         Likewise.
2059         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
2060         _gl_function_taking_int_returning_void_t, union sigval,
2061         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
2062         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
2063         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2064         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
2065         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
2066         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
2067         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
2068         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
2069         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
2070         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
2071         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
2072         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
2073         socklen_t, rpl_fd_isset): Likewise.
2074         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
2075         * lib/sys_time.in.h (struct timeval): Likewise.
2076         * lib/sys_times.in.h (struct tms): Likewise.
2077         * lib/sys_utsname.in.h (struct utsname):
2078         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
2079         * lib/unistd.in.h (getpagesize): Likewise.
2080         * lib/wchar.in.h (mbstate_t): Likewise.
2081         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2082         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
2083         towlower, towupper): Likewise.
2084         Reported by Sam Steingold <sds@gnu.org>.
2085
2086 2011-02-05  Eric Blake  <eblake@redhat.com>
2087
2088         unsetenv: work around Haiku issues
2089         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
2090         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
2091
2092 2010-12-30  Bruce Korb  <bkorb@gnu.org>
2093
2094         libposix: avoid calling error() within libposix
2095         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
2096         is defined.
2097
2098 2011-02-05  Eric Blake  <eblake@redhat.com>
2099
2100         strerror_r-posix: port to cygwin
2101         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
2102         implementation.
2103         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
2104         * tests/test-strerror_r.c (main): Fix test.
2105         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2106         issue.
2107
2108 2011-02-05  Bruno Haible  <bruno@clisp.org>
2109
2110         New module 'wmemchr'.
2111         * modules/wmemchr: New file.
2112         * lib/wchar.in.h (wmemchr): New declaration.
2113         * lib/wmemchr.c: New file.
2114         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
2115         * m4/wmemchr.m4: New file.
2116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
2117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
2118         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
2119         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
2120         * doc/posix-functions/wmemchr.texi: Mention the new module.
2121
2122 2011-02-04  Eric Blake  <eblake@redhat.com>
2123
2124         fdopendir: detect FreeBSD bug
2125         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2126         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2127
2128 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2129
2130         stdbool: do not define HAVE_STDBOOL_H
2131         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2132         AC_HEADER_STDBOOL.  All uses changed.  Do not define
2133         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
2134         imported from the latest Autoconf git.  It was motivated by Emacs,
2135         which uses gnulib but does not need HAVE_STDBOOL_H.
2136
2137 2011-02-04  Bruno Haible  <bruno@clisp.org>
2138
2139         wcsnrtombs: Prepare for new module wwcsnrtombs.
2140         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
2141         * lib/wcsnrtombs.c: Include it.
2142         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
2143
2144         wcsrtombs: Prepare for new module wwcsrtombs.
2145         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
2146         * lib/wcsrtombs.c: Include it.
2147         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
2148
2149         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
2150         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
2151         * lib/mbsnrtowcs.c: Include it.
2152         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
2153
2154         mbsrtowcs: Prepare for new module mbsrtowwcs.
2155         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
2156         * lib/mbsrtowcs.c: Include it.
2157         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
2158
2159 2011-02-04  Bruno Haible  <bruno@clisp.org>
2160
2161         vasnprintf: Reduce use of malloc for small format strings.
2162         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
2163         (arguments): Add room for the first 7 arguments.
2164         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
2165         (char_directives, u8_directives, u16_directives, u32_directives): Add
2166         room for the first 7 directives.
2167         * lib/printf-parse.c: Include <string.h>.
2168         (PRINTF_PARSE): Change memory handling code so that it uses the first
2169         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
2170         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
2171         Reported by Pádraig Brady <P@draigbrady.com>.
2172
2173 2011-01-31  Eric Blake  <eblake@redhat.com>
2174
2175         dup2: work around Haiku bug
2176         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
2177         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
2178         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2179         * tests/test-dup2.c (main): Enhance test.
2180
2181 2011-01-31  Simon Josefsson  <simon@josefsson.org>
2182
2183         doc: off_t is not available in eglibc 2.11.2 stdio.h.
2184         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
2185         declared by eglibc 2.11.2.
2186         * lib/stdio.in.h: Likewise.
2187
2188 2011-01-31  Eric Blake  <eblake@redhat.com>
2189
2190         ignore-value: add missing test dependency
2191         * tests/test-ignore-value.c: Revert previous change; stdio.h
2192         provides off_t.
2193         * modules/ignore-value-tests (Depends-on): Add missing dependency.
2194
2195 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2196
2197         mktime: clarify long_int width checking
2198         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
2199         the top level, to make it clearer that the assumption about
2200         long_int width is being checked.  See
2201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
2202
2203 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2204
2205         ignore-value: Fix self-test.
2206         * tests/test-ignore-value.c: Include sys/types.h for off_t.
2207
2208 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2209
2210         TYPE_MAXIMUM: avoid theoretically undefined behavior
2211         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
2212         negative number, which the C Standard says has undefined behavior.
2213         In practice this is not a problem, but might as well do it by the book.
2214         Reported by Rich Felker and Eric Blake; see
2215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
2216         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
2217         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2219         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
2220         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2221         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
2222
2223         mktime: #undef mktime before #defining it
2224         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
2225
2226         mktime: systematically normalize tm_isdst comparisons
2227         * lib/mktime.c (isdst_differ): New function.
2228         (__mktime_internal): Use it systematically for all isdst comparisons.
2229         This completes the fix for libc BZ #6723, and removes the need for
2230         normalizing tm_isdst.  See
2231         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
2232         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
2233
2234         mktime: fix some integer overflow issues and sidestep the rest
2235
2236         This was prompted by a bug report by Benjamin Lindner for MinGW
2237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
2238         His bug is due to signed integer overflow (0 - INT_MIN), and I
2239         I scanned through mktime.c looking for other integer overflow
2240         problems, fixing all the bugs I found.
2241
2242         Although the C Standard says the resulting code is still not safe
2243         in the presence of integer overflow, in practice it should be good
2244         enough for all real-world two's-complement implementations, except
2245         for debugging environments that deliberately trap on integer
2246         overflow (e.g., gcc -ftrapv).
2247
2248         * lib/mktime.c (WRAPV): New macro.
2249         (SHR): Also check that long_int and time_t shift right in the
2250         usual way, before using the fast-but-unportable method.
2251         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
2252         used.  The code already assumed two's complement, so there's
2253         no need to test for alternatives.  All uses removed.
2254         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
2255         the C standard.  Problem reported by Rich Felker in
2256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
2257         (twos_complement_arithmetic): Also check long_int and time_t.
2258         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
2259         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
2260         (__mktime_internal): Avoid integer overflow with unary subtraction
2261         in two instances where -1 - X is an adequate replacement for -X,
2262         since the calculations are approximate.
2263
2264 2011-01-29  Eric Blake  <eblake@redhat.com>
2265
2266         mktime: avoid infinite loop
2267         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
2268         type; behavior is still undefined but portable to all known targets.
2269         Reported by Rich Felker.
2270
2271 2011-01-29  Simon Josefsson  <simon@josefsson.org>
2272
2273         rename, unlink, same-inode: Relicense.
2274         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
2275         * modules/unlink (License): Likewise.
2276         * modules/same-inode (License): Likewise.
2277
2278 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2279
2280         mktime: avoid problems on NetBSD 5 / i386
2281         * lib/mktime.c (long_int): New type.  This works around a problem
2282         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
2283         but time_t is 64 bits, and where I expect the existing code is
2284         wrong in some cases.
2285         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
2286         (ydhms_diff): Bring back the compile-time check for wide-enough
2287         year and yday.
2288
2289         mktime: fix misspelling in comment
2290         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
2291         This merges all recent glibc changes of importance.
2292
2293 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2294
2295         move-if-change: cope with concurrent mv of identical file.
2296         * build-aux/move-if-change (CMPPROG): Accept environment
2297         variable as an override for `cmp'.
2298         (usage): Document CMPPROG.
2299         Adjust comparison to drop stdout.  Cope with failure of mv if
2300         the target file exists and is identical to the source, for
2301         parallel builds.
2302         Report from H.J. Lu against binutils in PR binutils/12283.
2303
2304 2011-01-28  Bruce Korb  <bkorb@gnu.org>
2305
2306         * users.txt: Mention sharutils.
2307
2308 2011-01-28  Simon Josefsson  <simon@josefsson.org>
2309
2310         * users.txt: Mention OATH Toolkit.
2311
2312 2011-01-27  Bruno Haible  <bruno@clisp.org>
2313
2314         Prepare for supporting FreeBSD 10.
2315         * build-aux/config.libpath: Remove handling of freebsd1*.
2316
2317 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
2318
2319         Prepare for supporting FreeBSD 10.
2320         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
2321         match FreeBSD 10.0.
2322
2323 2011-01-27  Bruno Haible  <bruno@clisp.org>
2324
2325         vma-iter, get-rusage-as: Add OpenBSD support.
2326         * modules/vma-iter (configure.ac): Test for mquery.
2327         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
2328         * lib/vma-iter.c: Include <sys/mman.h>.
2329         (vma_iterate): Add an implementation based on mquery().
2330         * lib/resource-ext.h (get_rusage_as): Update comments.
2331         * lib/get-rusage-as.c: Likewise.
2332         * lib/get-rusage-data.c: Likewise.
2333
2334 2011-01-26  Karl Berry  <karl@gnu.org>
2335
2336         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2337         variables to make it easier to override the makeinfo program used.
2338
2339 2011-01-26  Eric Blake  <eblake@redhat.com>
2340
2341         fcntl: work around Haiku F_DUPFD bugs
2342         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2343         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2344         cloexec bit on duplication.
2345         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2346
2347 2011-01-26  Bruno Haible  <bruno@clisp.org>
2348
2349         Enable memory leak tests on AIX.
2350         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2351         * tests/test-fprintf-posix3.c (main): Likewise.
2352
2353 2011-01-26  Bruno Haible  <bruno@clisp.org>
2354
2355         Tests for module 'get-rusage-data'.
2356         * modules/get-rusage-data-tests: New file.
2357         * tests/test-get-rusage-data.c: New file.
2358
2359         New module 'get-rusage-data'.
2360         * lib/resource-ext.h (get_rusage_data): New declaration.
2361         * lib/get-rusage-data.c: New file.
2362         * modules/get-rusage-data: New file.
2363
2364 2011-01-25  Bruno Haible  <bruno@clisp.org>
2365
2366         get-rusage-as: Allow for easier testing.
2367         * lib/resource-ext.h (get_rusage_as): Add comment.
2368         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
2369         (main): New function for interactive testing.
2370
2371 2011-01-25  Bruno Haible  <bruno@clisp.org>
2372
2373         vma-iter: Treat Haiku like BeOS.
2374         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
2375         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
2376
2377 2011-01-25  Eric Blake  <eblake@redhat.com>
2378
2379         c-stack: fix regression on cygwin when libsigsegv is present
2380         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
2381
2382 2011-01-24  Bruno Haible  <bruno@clisp.org>
2383
2384         vma-iter: Avoid empty intervals.
2385         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
2386         on an empty interval.
2387
2388 2011-01-24  Jim Meyering  <meyering@redhat.com>
2389
2390         u64: remove unnecessary #include
2391         * lib/u64.h: Don't include <stddef.h>.  It was not used.
2392
2393 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2394
2395         Allow the user to avoid the GNULIB_TEST_* macros.
2396         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
2397
2398 2011-01-23  Bruno Haible  <bruno@clisp.org>
2399
2400         New module 'vma-iter'.
2401         * lib/vma-iter.h: New file.
2402         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
2403         * modules/vma-iter: New file.
2404         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
2405         for get_rusage_as_via_iterator.
2406         (vma_iterate_callback): New function.
2407         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
2408         * modules/get-rusage-as (Depends-on): Add vma-iter.
2409
2410 2011-01-23  Bruno Haible  <bruno@clisp.org>
2411
2412         uninorm: Tweak includes.
2413         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
2414         Reported by Jim Meyering.
2415
2416 2011-01-23  Bruno Haible  <bruno@clisp.org>
2417
2418         get-rusage-as: Improve on NetBSD.
2419         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
2420         /proc, like on FreeBSD.
2421
2422 2011-01-23  Jim Meyering  <meyering@redhat.com>
2423
2424         xreadlink.h: remove unnecessary #include
2425         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
2426
2427         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
2428         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
2429
2430 2011-01-23  Bruno Haible  <bruno@clisp.org>
2431
2432         get-rusage-as: Fix bug.
2433         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
2434         original limit when aborting the first loop.
2435
2436 2011-01-23  Bruno Haible  <bruno@clisp.org>
2437
2438         wctype: Ensure valid C syntax.
2439         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
2440         unconditionally, instead of gl_NEXT_HEADERS conditionally.
2441
2442 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2443
2444         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
2445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
2446         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
2447         as they are needed only for configure's test case.
2448         This removes two unnecessary symbols from config.h.
2449
2450         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
2451         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
2452         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
2453         AC_CHECK_HEADERS_ONCE on a header that we also invoke
2454         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
2455         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
2456         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
2457         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2458         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2459         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2460         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2462         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2463         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2464         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2465         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2466         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2467         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2468
2469 2011-01-21  Eric Blake  <eblake@redhat.com>
2470
2471         maintainer-makefile: work with older git for submodule check
2472         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2473         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2474         Reported by Matthias Bolte.
2475
2476         bootstrap: minor portability fixes
2477         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2478         (usage): Omit leading capital and trailing . on help phrases, per
2479         GNU Coding Standards.
2480         (check_versions, top level): Prefix messages with script name.
2481
2482 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2483
2484         bootstrap: support --no-git option
2485         * build-aux/bootstrap: Add --no-git option, to be used when
2486         --gnulib-srcdir points to the exact desired checkout.
2487
2488 2011-01-21  Eric Blake  <eblake@redhat.com>
2489
2490         strerror_r-posix: work with glibc 2.13
2491         * lib/strerror_r.c (strerror_r): Fix return type.
2492
2493 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2494             Bruno Haible  <bruno@clisp.org>
2495
2496         uN_strstr: New unit tests.
2497         * modules/unistr/u8-strstr-tests: New file.
2498         * modules/unistr/u16-strstr-tests: New file.
2499         * modules/unistr/u32-strstr-tests: New file.
2500         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2501         * tests/unistr/test-u8-strstr.c: New file.
2502         * tests/unistr/test-u16-strstr.c: New file.
2503         * tests/unistr/test-u32-strstr.c: New file.
2504
2505 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2506             Bruno Haible  <bruno@clisp.org>
2507
2508         Make uN_strstr functions O(n) worst-case.
2509         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
2510         16-bit and 32-bit unit cases, use the unibyte algorithm from
2511         lib/mbsstr.c.
2512         * lib/unistr/u8-strstr.c: Include <string.h>.
2513         (UNIT_IS_UINT8_T): New macro.
2514         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
2515         (U_STRLEN, U_STRNLEN): New macros.
2516         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
2517         (U_STRLEN, U_STRNLEN): New macros.
2518         * modules/unistr/u8-strstr (Depends-on): Add strstr.
2519         (configure.ac): Update required libunistring version.
2520         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
2521         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
2522         malloca.
2523         (configure.ac): Update required libunistring version.
2524         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
2525         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
2526         malloca.
2527         (configure.ac): Update required libunistring version.
2528
2529 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2530             Bruno Haible  <bruno@clisp.org>
2531
2532         Prepare for faster uN_strstr functions.
2533         * lib/str-kmp.h: Support definable UNITs.
2534         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
2535         needle_len argument.
2536         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
2537         * lib/mbscasestr.c (mbscasestr): Likewise.
2538
2539 2011-01-21  Pádraig Brady <P@draigBrady.com>
2540
2541         malloca-tests: make faster by unsetting MALLOC_PERTURB_
2542         * tests/test-malloca.c (main): Unset the environment variable
2543         to greatly speed up the test.
2544         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
2545         * modules/malloca-tests: Depend on unsetenv.
2546
2547 2011-01-21  Pádraig Brady <P@draigBrady.com>
2548
2549         ignore-value: remove stdint dependency
2550         * lib/ignore-value.h: Remove <stdint.h>
2551         * modules/ignore-value: Remove stdint dependency.
2552
2553 2011-01-21  Jim Meyering  <meyering@redhat.com>
2554
2555         maint.mk: adjust variable name to be consistent with other gl_ vars
2556         * top/maint.mk (gl_public_submodule_commit): Rename the variable
2557         to be lower case.
2558
2559 2011-01-20  Jim Meyering  <meyering@redhat.com>
2560
2561         maint.mk: make "check" depend on public-submodule-commit by default
2562         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
2563
2564 2011-01-20  Bruno Haible  <bruno@clisp.org>
2565
2566         mbfile, mbiter: Complete change from 2008-12-21.
2567         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
2568         * m4/mbiter.m4 (gl_MBITER): Likewise.
2569
2570 2011-01-20  Jim Meyering  <meyering@redhat.com>
2571
2572         init.sh: insert space between each function name and "()"
2573         * tests/init.sh: Make it a little easier to see that a function's
2574         name is "warn_", and not "warn" when looking at the first part of
2575         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
2576
2577 2011-01-20  Jim Meyering  <meyering@redhat.com>
2578
2579         mountlist: clean up code formatting
2580         * lib/mountlist.c (read_file_system_list): Split a long line,
2581         correct bracing style, use NULL in place of "(struct statfs *)0",
2582         don't parenthesize return value, add spaces around "=" and after
2583         ";-in-for-stmt".
2584
2585 2011-01-14  Markus Duft <mduft@gentoo.org>
2586
2587         mountlist: add support for Interix
2588         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
2589         Apply statvfs to all entries of /dev/fs.
2590         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
2591         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
2592
2593 2011-01-20  Jim Meyering  <meyering@redhat.com>
2594
2595         maint.mk: improve the public-submodule-commit rule
2596         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
2597         to suppress printing of its commands... unless V=1.
2598         Add git submodule's --quiet option to suppress printing of e.g.,
2599         "Entering gnulib" output.
2600         "cd" into $(srcdir) before running git submodule.
2601
2602 2011-01-20  Bruno Haible  <bruno@clisp.org>
2603
2604         include_next: Fix bug introduced on 2011-01-18.
2605         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
2606         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
2607         ac_cv_header_... variable if the second argument is not 'check'.
2608         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
2609         gl_NEXT_HEADERS_INTERNAL.
2610
2611 2011-01-20  Bruno Haible  <bruno@clisp.org>
2612
2613         Allow the user to avoid the GNULIB_TEST_* macros.
2614         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
2615         Suggested by Paul Eggert.
2616
2617 2011-01-14  Jim Meyering  <meyering@redhat.com>
2618
2619         bootstrap: avoid failure when there is no .gitmodules file
2620         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
2621         has been assigned to, even when its value is the empty string.
2622         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
2623         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
2624         Reported by John W. Eaton <jwe@gnu.org>.
2625
2626 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2627
2628         assume <ctype.h>, ..., <time.h> exist
2629         For years gnulib has been assuming the existence of the headers
2630         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
2631         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
2632         them, since they don't appear to be needed.
2633         * README (Portability guidelines): Document this.
2634         * lib/flock.c: Assume <fcntl.h> exists.
2635         * lib/regex_internal.h: Assume <locale.h> exists.
2636         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
2637         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
2638         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
2639         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
2640         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
2641         * m4/regex.m4 (gl_REGEX): Likewise.
2642         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
2643         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
2644         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
2645         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
2646         * tests/test-argp.c: Likewise.
2647         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
2648
2649         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
2650         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
2651         AA_APPLE_UNIVERSAL_BUILD.  See
2652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
2653         * NEWS: Document this.
2654
2655 2011-01-19  Eric Blake  <eblake@redhat.com>
2656
2657         c-stack: assume stack overflow if SA_SIGINFO unsupported
2658         * lib/c-stack.c (SIGACTION_WORKS): Rename...
2659         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
2660         sigaction will work.
2661         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
2662         behavior match Linux.
2663         * tests/test-c-stack.c (main): Prefer NULL for pointers.
2664
2665         stdbool-tests: accomodate Haiku
2666         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
2667
2668         binary-io: fix O_TEXT on Haiku
2669         * modules/binary-io (Depends-on): Add fcntl-h.
2670         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
2671         than blindly undefining O_TEXT.
2672         Reported by Scott McCreary.
2673
2674 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2675
2676         include_next: do not check for standard headers like stddef.h
2677
2678         I found this problem when modifying Emacs to use gnulib.
2679         I noticed that it added HAVE_STDDEF_H to config.h, even though
2680         gnulib always assumes <stddef.h> exists as per README and this
2681         symbol is unnecessary.
2682         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
2683         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
2684         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
2685         faster for headers like stddef.h that are known to exist.
2686         (gl_CHECK_NEXT_HEADERS): Use it.
2687         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
2688         rather than gl_CHECK_NEXT_HEADERS.
2689         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
2690         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
2691
2692 2011-01-18  Eric Blake  <eblake@redhat.com>
2693
2694         ansi-c++-opt: skip C++ dependency style if C++ is unused
2695         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
2696         tests when we know C++ compilation is not desired.
2697         Reported by Scott McCreary.
2698
2699 2011-01-18  Bruno Haible  <bruno@clisp.org>
2700
2701         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
2702         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
2703         (main): Perform test also when getrlimit and setrlimit don't exist or
2704         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
2705         limiting the address space size using setrlimit, compare the address
2706         space size before and after the the test.
2707         * tests/test-dprintf-posix2.c: Likewise.
2708         * tests/test-fprintf-posix3.sh: Update skip messages.
2709         * tests/test-dprintf-posix2.sh: Likewise.
2710         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
2711         * modules/dprintf-posix-tests (Depends-on): Likewise.
2712         Reported by Bruce Korb <bkorb@gnu.org> and
2713         Gary V. Vaughan <gary@gnu.org>.
2714
2715 2011-01-18  Bruno Haible  <bruno@clisp.org>
2716
2717         get-rusage-as: Improvement for Cygwin.
2718         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
2719         areas that are merely reserved.
2720
2721 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         strftime: remove dependencies on multibyte modules
2724
2725         strftime depended on mbrlen, mbsinit, and wchar, but these modules
2726         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
2727         only if __osf__ is defined, and I suspect OSF doesn't need these
2728         other modules.  If my guess is wrong, we'll need to come up with a
2729         variant of strftime that doesn't need the multibyte modules.
2730
2731         I discovered this problem when attempting modify Emacs to use the
2732         strftime module.  With the previous gnulib, this caused Emacs to
2733         need 31 new files, ranging from lib/config.charset to
2734         m4/wint_t.m4.  This was overkill and I expect would be offputting
2735         to the Emacs maintainers.  After this change, only 6 new files are
2736         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
2737         stdbool.m4, and tm_gmtoff.m4.
2738
2739         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
2740         Suggested by Bruno Haible in
2741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
2742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
2743         and do not check for wchar.h.
2744         * modules/strftime (Files): Remove m4/mbstate_t.m4.
2745         (Depends-on): Remove mbrlen, mbsinit, wchar.
2746
2747 2011-01-18  Bruno Haible  <bruno@clisp.org>
2748
2749         Tests for module 'get-rusage-as'.
2750         * modules/get-rusage-as-tests: New file.
2751         * tests/test-get-rusage-as.c: New file.
2752
2753         New module 'get-rusage-as'.
2754         * modules/get-rusage-as: New file.
2755         * lib/resource-ext.h: New file.
2756         * lib/get-rusage-as.c: New file.
2757
2758 2011-01-17  Eric Blake  <eblake@redhat.com>
2759
2760         sigaction: relax license from LGPLv3+ to LGPLv2+
2761         * modules/sigaction (License): Relax to LGPLv2+.
2762
2763 2011-01-14  Bruno Haible  <bruno@clisp.org>
2764
2765         filemode: Make function declarations usable in C++ mode.
2766         * lib/filemode.h: Enclose function declarations in extern "C" block.
2767         Reported by John W. Eaton <jwe@gnu.org>.
2768
2769 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
2770
2771         save-cwd: no longer include "xgetcwd.h"
2772         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
2773         This avoids a compilation failure in projects that use save-cwd
2774         without also using the xgetcwd module.
2775
2776 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2777
2778         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
2779         This is so that a program like Emacs, which needs only dtoastr,
2780         does not have to bother with distributing and compiling ftoastr
2781         and ldtoastr.
2782         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
2783         * modules/dtoastr, modules/ldtoastr: New files.
2784         * modules/ftoastr: Now works just for 'float'.
2785         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
2786         (Makefile.am): Remove ftoastr.h (not needed and no effect),
2787         dtoastr.c, ldtoastr.c.
2788
2789 2011-01-11  Jim Meyering  <meyering@redhat.com>
2790
2791         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
2792         There is no need to work around the lack of the fchdir function,
2793         since gnulib can now provide a replacement when required.
2794         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
2795         * modules/save-cwd (Depends-on): Add fchdir.
2796
2797 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2798
2799         openat, save-cwd: avoid xmalloc
2800
2801         This removes a direct (but undocumented) dependency of openat on
2802         xalloc, along with an indirect dependency via save-cwd.  It also
2803         removes a dependency of save-cwd on xgetcwd, and thereby
2804         indirectly on xalloc.  This change causes the openat substitute
2805         to fall back on save_cwd when memory is tight, and for save_cwd to
2806         fail instead of dying when memory is tight, but that's good enough.
2807         Problem and initial idea for fix reported by Bastien Roucaries in
2808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
2809
2810         * lib/openat-proc.c: Include stdlib.h (for malloc), not
2811         xalloc.h (for xmalloc).
2812         (openat_proc_name): Use malloc, not xmalloc.
2813         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
2814         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
2815
2816         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
2817         This avoids heap allocation for file names whose lengths are in
2818         the range 512..1023, with the upper bound increasing to at most
2819         4031 depending on the platform's PATH_MAX.  (We do not want
2820         pathmax.h here as it might supply a non-constant PATH_MAX.)
2821         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
2822         Perhaps they should be moved to malloca.h?
2823         (OPENAT_BUFFER_SIZE): Use them.
2824
2825 2011-01-10  Bruno Haible  <bruno@clisp.org>
2826
2827         doc: Update users.txt.
2828         * users.txt: Add recutils.
2829
2830 2011-01-09  Karl Berry  <karl@gnu.org>
2831
2832         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
2833
2834         * doc/configmake.texi: New file.
2835         * doc/gnulib.texi: Include it.
2836         * modules/configmake: Move documentation from here.
2837
2838 2011-01-09  Bruno Haible  <bruno@clisp.org>
2839
2840         Update to Unicode 6.0.0.
2841         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
2842         (get_lbp): Update for Unicode 6.0.0.
2843         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
2844         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
2845         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
2846         U+11001, U+11038..U+11046. Remove U+06DE.
2847         (uc_width): Fix bounds of planes.
2848         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2849         lib/uniwidth/width.c.
2850         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
2851         trailing whitespace removed.
2852         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
2853         without comments, but with the original copyright notice.
2854         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
2855         * lib/unicase/ignorable.h: Likewise.
2856         * lib/unicase/tocasefold.h: Likewise.
2857         * lib/unicase/tolower.h: Likewise.
2858         * lib/unicase/totitle.h: Likewise.
2859         * lib/unicase/toupper.h: Likewise.
2860         * lib/unictype/bidi_of.h: Likewise.
2861         * lib/unictype/blocks.h: Likewise.
2862         * lib/unictype/categ_C.h: Likewise.
2863         * lib/unictype/categ_Cn.h: Likewise.
2864         * lib/unictype/categ_L.h: Likewise.
2865         * lib/unictype/categ_Ll.h: Likewise.
2866         * lib/unictype/categ_Lm.h: Likewise.
2867         * lib/unictype/categ_Lo.h: Likewise.
2868         * lib/unictype/categ_Lu.h: Likewise.
2869         * lib/unictype/categ_M.h: Likewise.
2870         * lib/unictype/categ_Mc.h: Likewise.
2871         * lib/unictype/categ_Me.h: Likewise.
2872         * lib/unictype/categ_Mn.h: Likewise.
2873         * lib/unictype/categ_N.h: Likewise.
2874         * lib/unictype/categ_Nd.h: Likewise.
2875         * lib/unictype/categ_No.h: Likewise.
2876         * lib/unictype/categ_P.h: Likewise.
2877         * lib/unictype/categ_Po.h: Likewise.
2878         * lib/unictype/categ_S.h: Likewise.
2879         * lib/unictype/categ_Sc.h: Likewise.
2880         * lib/unictype/categ_Sk.h: Likewise.
2881         * lib/unictype/categ_Sm.h: Likewise.
2882         * lib/unictype/categ_So.h: Likewise.
2883         * lib/unictype/categ_of.h: Likewise.
2884         * lib/unictype/combining.h: Likewise.
2885         * lib/unictype/ctype_alnum.h: Likewise.
2886         * lib/unictype/ctype_alpha.h: Likewise.
2887         * lib/unictype/ctype_graph.h: Likewise.
2888         * lib/unictype/ctype_lower.h: Likewise.
2889         * lib/unictype/ctype_print.h: Likewise.
2890         * lib/unictype/ctype_punct.h: Likewise.
2891         * lib/unictype/ctype_upper.h: Likewise.
2892         * lib/unictype/decdigit.h: Likewise.
2893         * lib/unictype/digit.h: Likewise.
2894         * lib/unictype/numeric.h: Likewise.
2895         * lib/unictype/pr_alphabetic.h: Likewise.
2896         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2897         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2898         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2899         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2900         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2901         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2902         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2903         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2904         * lib/unictype/pr_case_ignorable.h: Likewise.
2905         * lib/unictype/pr_cased.h: Likewise.
2906         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
2907         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
2908         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
2909         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
2910         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
2911         * lib/unictype/pr_combining.h: Likewise.
2912         * lib/unictype/pr_composite.h: Likewise.
2913         * lib/unictype/pr_currency_symbol.h: Likewise.
2914         * lib/unictype/pr_decimal_digit.h: Likewise.
2915         * lib/unictype/pr_deprecated.h: Likewise.
2916         * lib/unictype/pr_format_control.h: Likewise.
2917         * lib/unictype/pr_grapheme_base.h: Likewise.
2918         * lib/unictype/pr_grapheme_extend.h: Likewise.
2919         * lib/unictype/pr_grapheme_link.h: Likewise.
2920         * lib/unictype/pr_id_continue.h: Likewise.
2921         * lib/unictype/pr_id_start.h: Likewise.
2922         * lib/unictype/pr_ideographic.h: Likewise.
2923         * lib/unictype/pr_lowercase.h: Likewise.
2924         * lib/unictype/pr_math.h: Likewise.
2925         * lib/unictype/pr_numeric.h: Likewise.
2926         * lib/unictype/pr_other_alphabetic.h: Likewise.
2927         * lib/unictype/pr_other_id_continue.h: Likewise.
2928         * lib/unictype/pr_other_math.h: Likewise.
2929         * lib/unictype/pr_punctuation.h: Likewise.
2930         * lib/unictype/pr_sentence_terminal.h: Likewise.
2931         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2932         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2933         * lib/unictype/pr_unified_ideograph.h: Likewise.
2934         * lib/unictype/pr_uppercase.h: Likewise.
2935         * lib/unictype/pr_xid_continue.h: Likewise.
2936         * lib/unictype/pr_xid_start.h: Likewise.
2937         * lib/unictype/scripts.h: Likewise.
2938         * lib/unictype/scripts_byname.gperf: Likewise.
2939         * lib/unictype/sy_java_ident.h: Likewise.
2940         * lib/unigbrk/gbrkprop.h: Likewise.
2941         * lib/unilbrk/lbrkprop1.h: Likewise.
2942         * lib/unilbrk/lbrkprop2.h: Likewise.
2943         * lib/uninorm/decomposition-table2.h: Likewise.
2944         * lib/uniwbrk/wbrkprop.h: Likewise.
2945         * tests/unicase/test-cased.c: Likewise.
2946         * tests/unicase/test-ignorable.c: Likewise.
2947         * tests/unicase/test-uc_tolower.c: Likewise.
2948         * tests/unicase/test-uc_totitle.c: Likewise.
2949         * tests/unicase/test-uc_toupper.c: Likewise.
2950         * tests/unictype/test-categ_C.c: Likewise.
2951         * tests/unictype/test-categ_Cn.c: Likewise.
2952         * tests/unictype/test-categ_L.c: Likewise.
2953         * tests/unictype/test-categ_Ll.c: Likewise.
2954         * tests/unictype/test-categ_Lm.c: Likewise.
2955         * tests/unictype/test-categ_Lo.c: Likewise.
2956         * tests/unictype/test-categ_Lu.c: Likewise.
2957         * tests/unictype/test-categ_M.c: Likewise.
2958         * tests/unictype/test-categ_Mc.c: Likewise.
2959         * tests/unictype/test-categ_Me.c: Likewise.
2960         * tests/unictype/test-categ_Mn.c: Likewise.
2961         * tests/unictype/test-categ_N.c: Likewise.
2962         * tests/unictype/test-categ_Nd.c: Likewise.
2963         * tests/unictype/test-categ_No.c: Likewise.
2964         * tests/unictype/test-categ_P.c: Likewise.
2965         * tests/unictype/test-categ_Po.c: Likewise.
2966         * tests/unictype/test-categ_S.c: Likewise.
2967         * tests/unictype/test-categ_Sc.c: Likewise.
2968         * tests/unictype/test-categ_Sk.c: Likewise.
2969         * tests/unictype/test-categ_Sm.c: Likewise.
2970         * tests/unictype/test-categ_So.c: Likewise.
2971         * tests/unictype/test-ctype_alnum.c: Likewise.
2972         * tests/unictype/test-ctype_alpha.c: Likewise.
2973         * tests/unictype/test-ctype_graph.c: Likewise.
2974         * tests/unictype/test-ctype_lower.c: Likewise.
2975         * tests/unictype/test-ctype_print.c: Likewise.
2976         * tests/unictype/test-ctype_punct.c: Likewise.
2977         * tests/unictype/test-ctype_upper.c: Likewise.
2978         * tests/unictype/test-decdigit.h: Likewise.
2979         * tests/unictype/test-digit.h: Likewise.
2980         * tests/unictype/test-numeric.h: Likewise.
2981         * tests/unictype/test-pr_alphabetic.c: Likewise.
2982         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2983         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
2984         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
2985         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2986         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2987         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2988         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2989         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2990         * tests/unictype/test-pr_case_ignorable.c: Likewise.
2991         * tests/unictype/test-pr_cased.c: Likewise.
2992         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
2993         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
2994         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
2995         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
2996         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
2997         * tests/unictype/test-pr_combining.c: Likewise.
2998         * tests/unictype/test-pr_composite.c: Likewise.
2999         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3000         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3001         * tests/unictype/test-pr_deprecated.c: Likewise.
3002         * tests/unictype/test-pr_format_control.c: Likewise.
3003         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3004         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3005         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3006         * tests/unictype/test-pr_id_continue.c: Likewise.
3007         * tests/unictype/test-pr_id_start.c: Likewise.
3008         * tests/unictype/test-pr_ideographic.c: Likewise.
3009         * tests/unictype/test-pr_lowercase.c: Likewise.
3010         * tests/unictype/test-pr_math.c: Likewise.
3011         * tests/unictype/test-pr_numeric.c: Likewise.
3012         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3013         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3014         * tests/unictype/test-pr_other_math.c: Likewise.
3015         * tests/unictype/test-pr_punctuation.c: Likewise.
3016         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3017         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3018         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3019         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3020         * tests/unictype/test-pr_uppercase.c: Likewise.
3021         * tests/unictype/test-pr_xid_continue.c: Likewise.
3022         * tests/unictype/test-pr_xid_start.c: Likewise.
3023         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3024         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3025         changes.
3026         * lib/unictype/categ_Cc.h: Likewise.
3027         * lib/unictype/categ_Cf.h: Likewise.
3028         * lib/unictype/categ_Co.h: Likewise.
3029         * lib/unictype/categ_Cs.h: Likewise.
3030         * lib/unictype/categ_Lt.h: Likewise.
3031         * lib/unictype/categ_Nl.h: Likewise.
3032         * lib/unictype/categ_Pc.h: Likewise.
3033         * lib/unictype/categ_Pd.h: Likewise.
3034         * lib/unictype/categ_Pe.h: Likewise.
3035         * lib/unictype/categ_Pf.h: Likewise.
3036         * lib/unictype/categ_Pi.h: Likewise.
3037         * lib/unictype/categ_Ps.h: Likewise.
3038         * lib/unictype/categ_Z.h: Likewise.
3039         * lib/unictype/categ_Zl.h: Likewise.
3040         * lib/unictype/categ_Zp.h: Likewise.
3041         * lib/unictype/categ_Zs.h: Likewise.
3042         * lib/unictype/ctype_blank.h: Likewise.
3043         * lib/unictype/ctype_cntrl.h: Likewise.
3044         * lib/unictype/ctype_digit.h: Likewise.
3045         * lib/unictype/ctype_space.h: Likewise.
3046         * lib/unictype/ctype_xdigit.h: Likewise.
3047         * lib/unictype/mirror.h: Likewise.
3048         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3049         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3050         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3051         * lib/unictype/pr_bidi_control.h: Likewise.
3052         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3053         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3054         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3055         * lib/unictype/pr_bidi_pdf.h: Likewise.
3056         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3057         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3058         * lib/unictype/pr_dash.h: Likewise.
3059         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3060         * lib/unictype/pr_diacritic.h: Likewise.
3061         * lib/unictype/pr_extender.h: Likewise.
3062         * lib/unictype/pr_hex_digit.h: Likewise.
3063         * lib/unictype/pr_hyphen.h: Likewise.
3064         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3065         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3066         * lib/unictype/pr_ignorable_control.h: Likewise.
3067         * lib/unictype/pr_iso_control.h: Likewise.
3068         * lib/unictype/pr_join_control.h: Likewise.
3069         * lib/unictype/pr_left_of_pair.h: Likewise.
3070         * lib/unictype/pr_line_separator.h: Likewise.
3071         * lib/unictype/pr_logical_order_exception.h: Likewise.
3072         * lib/unictype/pr_non_break.h: Likewise.
3073         * lib/unictype/pr_not_a_character.h: Likewise.
3074         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3075         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3076         * lib/unictype/pr_other_id_start.h: Likewise.
3077         * lib/unictype/pr_other_lowercase.h: Likewise.
3078         * lib/unictype/pr_other_uppercase.h: Likewise.
3079         * lib/unictype/pr_paired_punctuation.h: Likewise.
3080         * lib/unictype/pr_paragraph_separator.h: Likewise.
3081         * lib/unictype/pr_pattern_syntax.h: Likewise.
3082         * lib/unictype/pr_pattern_white_space.h: Likewise.
3083         * lib/unictype/pr_private_use.h: Likewise.
3084         * lib/unictype/pr_quotation_mark.h: Likewise.
3085         * lib/unictype/pr_radical.h: Likewise.
3086         * lib/unictype/pr_soft_dotted.h: Likewise.
3087         * lib/unictype/pr_space.h: Likewise.
3088         * lib/unictype/pr_titlecase.h: Likewise.
3089         * lib/unictype/pr_variation_selector.h: Likewise.
3090         * lib/unictype/pr_white_space.h: Likewise.
3091         * lib/unictype/pr_zero_width.h: Likewise.
3092         * lib/unictype/sy_c_ident.h: Likewise.
3093         * lib/unictype/sy_c_whitespace.h: Likewise.
3094         * lib/unictype/sy_java_whitespace.h: Likewise.
3095         * lib/uninorm/composition-table.gperf: Likewise.
3096         * lib/uninorm/decomposition-table1.h: Likewise.
3097         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
3098         LB8.
3099         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3100         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3101         * modules/unictype/*: Bump version number of expected libunistring
3102         version.
3103
3104 2011-01-09  Bruno Haible  <bruno@clisp.org>
3105
3106         Update to Unicode 5.2.0.
3107         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
3108         trailing whitespace removed.
3109
3110 2011-01-09  Bruno Haible  <bruno@clisp.org>
3111
3112         New Unicode character properties, from Unicode 5.2.0.
3113         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
3114         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
3115         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
3116         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
3117         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
3118         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
3119         uc_is_property_cased, uc_is_property_case_ignorable,
3120         uc_is_property_changes_when_lowercased,
3121         uc_is_property_changes_when_uppercased,
3122         uc_is_property_changes_when_titlecased,
3123         uc_is_property_changes_when_casefolded,
3124         uc_is_property_changes_when_casemapped): New declarations.
3125         * lib/unictype/pr_byname.gperf: Add the new properties.
3126         * modules/unictype/property-byname (Depends-on): Depend on the new
3127         properties modules.
3128         * modules/unictype/property-all (Depends-on): Likewise.
3129         * MODULES.html.sh (Unicode string functions): Add
3130         unictype/property-case-ignorable, unictype/property-cased,
3131         unictype/property-changes-when-casefolded,
3132         unictype/property-changes-when-casemapped,
3133         unictype/property-changes-when-lowercased,
3134         unictype/property-changes-when-titlecased,
3135         unictype/property-changes-when-uppercased.
3136
3137         New module 'unictype/property-changes-when-casemapped'.
3138         * modules/unictype/property-changes-when-casemapped: New file.
3139         * lib/unictype/pr_changes_when_casemapped.c: New file.
3140         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
3141         generated by gen-uni-tables.
3142         * modules/unictype/property-changes-when-casemapped-tests: New file.
3143         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
3144         automatically generated by gen-uni-tables.
3145
3146         New module 'unictype/property-changes-when-casefolded'.
3147         * modules/unictype/property-changes-when-casefolded: New file.
3148         * lib/unictype/pr_changes_when_casefolded.c: New file.
3149         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
3150         generated by gen-uni-tables.
3151         * modules/unictype/property-changes-when-casefolded-tests: New file.
3152         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
3153         automatically generated by gen-uni-tables.
3154
3155         New module 'unictype/property-changes-when-titlecased'.
3156         * modules/unictype/property-changes-when-titlecased: New file.
3157         * lib/unictype/pr_changes_when_titlecased.c: New file.
3158         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
3159         generated by gen-uni-tables.
3160         * modules/unictype/property-changes-when-titlecased-tests: New file.
3161         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
3162         automatically generated by gen-uni-tables.
3163
3164         New module 'unictype/property-changes-when-uppercased'.
3165         * modules/unictype/property-changes-when-uppercased: New file.
3166         * lib/unictype/pr_changes_when_uppercased.c: New file.
3167         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
3168         generated by gen-uni-tables.
3169         * modules/unictype/property-changes-when-uppercased-tests: New file.
3170         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
3171         automatically generated by gen-uni-tables.
3172
3173         New module 'unictype/property-changes-when-lowercased'.
3174         * modules/unictype/property-changes-when-lowercased: New file.
3175         * lib/unictype/pr_changes_when_lowercased.c: New file.
3176         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
3177         generated by gen-uni-tables.
3178         * modules/unictype/property-changes-when-lowercased-tests: New file.
3179         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
3180         automatically generated by gen-uni-tables.
3181
3182         New module 'unictype/property-case-ignorable'.
3183         * modules/unictype/property-case-ignorable: New file.
3184         * lib/unictype/pr_case_ignorable.c: New file.
3185         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
3186         by gen-uni-tables.
3187         * modules/unictype/property-case-ignorable-tests: New file.
3188         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
3189         generated by gen-uni-tables.
3190
3191         New module 'unictype/property-cased'.
3192         * modules/unictype/property-cased: New file.
3193         * lib/unictype/pr_cased.c: New file.
3194         * lib/unictype/pr_cased.h: New file, automatically generated by
3195         gen-uni-tables.
3196         * modules/unictype/property-cased-tests: New file.
3197         * tests/unictype/test-pr_cased.c: New file, automatically generated by
3198         gen-uni-tables.
3199
3200 2011-01-09  Bruno Haible  <bruno@clisp.org>
3201
3202         Update to Unicode 5.2.0.
3203         * lib/gen-uni-tables.c (output_predicate, output_category,
3204         output_combclass, output_bidi_category, output_decimal_digit_test,
3205         output_decimal_digit, output_digit_test, output_digit,
3206         output_numeric_test, output_numeric, output_mirror, output_scripts,
3207         output_scripts_byname, output_blocks, output_ident_category): Fix
3208         comment header.
3209         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
3210         get_wbp.
3211         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
3212         items.
3213         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
3214         Changes_When_Lowercased, Changes_When_Uppercased,
3215         Changes_When_Titlecased, Changes_When_Casefolded,
3216         Changes_When_Casemapped.
3217         (is_property_alphabetic, is_property_default_ignorable_code_point):
3218         Update for Unicode 5.2.0.
3219         (is_property_cased, is_property_case_ignorable,
3220         is_property_changes_when_lowercased,
3221         is_property_changes_when_uppercased,
3222         is_property_changes_when_titlecased,
3223         is_property_changes_when_casefolded,
3224         is_property_changes_when_casemapped): New functions.
3225         (output_properties): Output also the properties cased, case_ignorable,
3226         changes_when_lowercased, changes_when_uppercased,
3227         changes_when_titlecased, changes_when_casefolded,
3228         changes_when_casemapped.
3229         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
3230         Unicode TR#11 revision 17 -> 19.
3231         (LBP_CP): New enumeration value.
3232         (LBP_*): Adjust values accordingly.
3233         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3234         TR#14 revision 22 -> 24.
3235         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
3236         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
3237         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3238         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
3239         is_WBP_MIDLETTER.
3240         (output_composition_tables): Allow for 24 bits instead of 16 bits in
3241         the code1 and code2 of each composition rule.
3242         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
3243         * lib/unicase/ignorable.h: Likewise.
3244         * lib/unicase/tocasefold.h: Likewise.
3245         * lib/unicase/tolower.h: Likewise.
3246         * lib/unicase/totitle.h: Likewise.
3247         * lib/unicase/toupper.h: Likewise.
3248         * lib/unictype/bidi_of.h: Likewise.
3249         * lib/unictype/blocks.h: Likewise.
3250         * lib/unictype/categ_C.h: Likewise.
3251         * lib/unictype/categ_Cf.h: Likewise.
3252         * lib/unictype/categ_Cn.h: Likewise.
3253         * lib/unictype/categ_L.h: Likewise.
3254         * lib/unictype/categ_Ll.h: Likewise.
3255         * lib/unictype/categ_Lm.h: Likewise.
3256         * lib/unictype/categ_Lo.h: Likewise.
3257         * lib/unictype/categ_Lu.h: Likewise.
3258         * lib/unictype/categ_M.h: Likewise.
3259         * lib/unictype/categ_Mc.h: Likewise.
3260         * lib/unictype/categ_Mn.h: Likewise.
3261         * lib/unictype/categ_N.h: Likewise.
3262         * lib/unictype/categ_Nd.h: Likewise.
3263         * lib/unictype/categ_Nl.h: Likewise.
3264         * lib/unictype/categ_No.h: Likewise.
3265         * lib/unictype/categ_P.h: Likewise.
3266         * lib/unictype/categ_Pd.h: Likewise.
3267         * lib/unictype/categ_Po.h: Likewise.
3268         * lib/unictype/categ_S.h: Likewise.
3269         * lib/unictype/categ_Sc.h: Likewise.
3270         * lib/unictype/categ_So.h: Likewise.
3271         * lib/unictype/categ_of.h: Likewise.
3272         * lib/unictype/combining.h: Likewise.
3273         * lib/unictype/ctype_alnum.h: Likewise.
3274         * lib/unictype/ctype_alpha.h: Likewise.
3275         * lib/unictype/ctype_graph.h: Likewise.
3276         * lib/unictype/ctype_lower.h: Likewise.
3277         * lib/unictype/ctype_print.h: Likewise.
3278         * lib/unictype/ctype_punct.h: Likewise.
3279         * lib/unictype/ctype_upper.h: Likewise.
3280         * lib/unictype/decdigit.h: Likewise.
3281         * lib/unictype/digit.h: Likewise.
3282         * lib/unictype/numeric.h: Likewise.
3283         * lib/unictype/pr_alphabetic.h: Likewise.
3284         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3285         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3286         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3287         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3288         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3289         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3290         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3291         * lib/unictype/pr_combining.h: Likewise.
3292         * lib/unictype/pr_composite.h: Likewise.
3293         * lib/unictype/pr_currency_symbol.h: Likewise.
3294         * lib/unictype/pr_dash.h: Likewise.
3295         * lib/unictype/pr_decimal_digit.h: Likewise.
3296         * lib/unictype/pr_deprecated.h: Likewise.
3297         * lib/unictype/pr_diacritic.h: Likewise.
3298         * lib/unictype/pr_extender.h: Likewise.
3299         * lib/unictype/pr_grapheme_base.h: Likewise.
3300         * lib/unictype/pr_grapheme_extend.h: Likewise.
3301         * lib/unictype/pr_grapheme_link.h: Likewise.
3302         * lib/unictype/pr_id_continue.h: Likewise.
3303         * lib/unictype/pr_id_start.h: Likewise.
3304         * lib/unictype/pr_ideographic.h: Likewise.
3305         * lib/unictype/pr_ignorable_control.h: Likewise.
3306         * lib/unictype/pr_logical_order_exception.h: Likewise.
3307         * lib/unictype/pr_lowercase.h: Likewise.
3308         * lib/unictype/pr_numeric.h: Likewise.
3309         * lib/unictype/pr_other_alphabetic.h: Likewise.
3310         * lib/unictype/pr_punctuation.h: Likewise.
3311         * lib/unictype/pr_sentence_terminal.h: Likewise.
3312         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3313         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3314         * lib/unictype/pr_unified_ideograph.h: Likewise.
3315         * lib/unictype/pr_uppercase.h: Likewise.
3316         * lib/unictype/pr_xid_continue.h: Likewise.
3317         * lib/unictype/pr_xid_start.h: Likewise.
3318         * lib/unictype/pr_zero_width.h: Likewise.
3319         * lib/unictype/scripts.h: Likewise.
3320         * lib/unictype/scripts_byname.gperf: Likewise.
3321         * lib/unictype/sy_java_ident.h: Likewise.
3322         * lib/unigbrk/gbrkprop.h: Likewise.
3323         * lib/unilbrk/lbrkprop1.h: Likewise.
3324         * lib/unilbrk/lbrkprop2.h: Likewise.
3325         * lib/unilbrk/lbrktables.h: Likewise.
3326         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
3327         LBP_CP. Implement rule LB30.
3328         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
3329         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
3330         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
3331         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
3332         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3333         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3334         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3335         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3336         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3337         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3338         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3339         bits instead of 16 bits in the code1 and code2 of each composition
3340         rule.
3341         (uc_composition): Update for Unicode 5.2.0.
3342         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3343         * lib/uninorm/decomposition-table2.h: Likewise.
3344         * lib/uniwbrk/wbrkprop.h: Likewise.
3345         * tests/unicase/test-cased.c: Likewise.
3346         * tests/unicase/test-ignorable.c: Likewise.
3347         * tests/unicase/test-uc_tolower.c: Likewise.
3348         * tests/unicase/test-uc_totitle.c: Likewise.
3349         * tests/unicase/test-uc_toupper.c: Likewise.
3350         * tests/unictype/test-categ_C.c: Likewise.
3351         * tests/unictype/test-categ_Cf.c: Likewise.
3352         * tests/unictype/test-categ_Cn.c: Likewise.
3353         * tests/unictype/test-categ_L.c: Likewise.
3354         * tests/unictype/test-categ_Ll.c: Likewise.
3355         * tests/unictype/test-categ_Lm.c: Likewise.
3356         * tests/unictype/test-categ_Lo.c: Likewise.
3357         * tests/unictype/test-categ_Lu.c: Likewise.
3358         * tests/unictype/test-categ_M.c: Likewise.
3359         * tests/unictype/test-categ_Mc.c: Likewise.
3360         * tests/unictype/test-categ_Mn.c: Likewise.
3361         * tests/unictype/test-categ_N.c: Likewise.
3362         * tests/unictype/test-categ_Nd.c: Likewise.
3363         * tests/unictype/test-categ_Nl.c: Likewise.
3364         * tests/unictype/test-categ_No.c: Likewise.
3365         * tests/unictype/test-categ_P.c: Likewise.
3366         * tests/unictype/test-categ_Pd.c: Likewise.
3367         * tests/unictype/test-categ_Po.c: Likewise.
3368         * tests/unictype/test-categ_S.c: Likewise.
3369         * tests/unictype/test-categ_Sc.c: Likewise.
3370         * tests/unictype/test-categ_So.c: Likewise.
3371         * tests/unictype/test-ctype_alnum.c: Likewise.
3372         * tests/unictype/test-ctype_alpha.c: Likewise.
3373         * tests/unictype/test-ctype_graph.c: Likewise.
3374         * tests/unictype/test-ctype_lower.c: Likewise.
3375         * tests/unictype/test-ctype_print.c: Likewise.
3376         * tests/unictype/test-ctype_punct.c: Likewise.
3377         * tests/unictype/test-ctype_upper.c: Likewise.
3378         * tests/unictype/test-decdigit.h: Likewise.
3379         * tests/unictype/test-digit.h: Likewise.
3380         * tests/unictype/test-numeric.h: Likewise.
3381         * tests/unictype/test-pr_alphabetic.c: Likewise.
3382         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3383         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3384         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3385         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3386         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3387         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3388         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3389         * tests/unictype/test-pr_combining.c: Likewise.
3390         * tests/unictype/test-pr_composite.c: Likewise.
3391         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3392         * tests/unictype/test-pr_dash.c: Likewise.
3393         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3394         * tests/unictype/test-pr_deprecated.c: Likewise.
3395         * tests/unictype/test-pr_diacritic.c: Likewise.
3396         * tests/unictype/test-pr_extender.c: Likewise.
3397         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3398         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3399         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3400         * tests/unictype/test-pr_id_continue.c: Likewise.
3401         * tests/unictype/test-pr_id_start.c: Likewise.
3402         * tests/unictype/test-pr_ideographic.c: Likewise.
3403         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3404         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3405         * tests/unictype/test-pr_lowercase.c: Likewise.
3406         * tests/unictype/test-pr_numeric.c: Likewise.
3407         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3408         * tests/unictype/test-pr_punctuation.c: Likewise.
3409         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3410         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3411         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3412         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3413         * tests/unictype/test-pr_uppercase.c: Likewise.
3414         * tests/unictype/test-pr_xid_continue.c: Likewise.
3415         * tests/unictype/test-pr_xid_start.c: Likewise.
3416         * tests/unictype/test-pr_zero_width.c: Likewise.
3417         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3418         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
3419         changed behaviour: line breaking is now disallowed between a letter
3420         or '=' and '('.
3421         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3422         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3423         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3424         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
3425         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3426         lib/uniwidth/width.c.
3427         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
3428         without comments, but with the original copyright notice.
3429         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3430         changes.
3431         * lib/unictype/categ_Cc.h: Likewise.
3432         * lib/unictype/categ_Co.h: Likewise.
3433         * lib/unictype/categ_Cs.h: Likewise.
3434         * lib/unictype/categ_Lt.h: Likewise.
3435         * lib/unictype/categ_Me.h: Likewise.
3436         * lib/unictype/categ_Pc.h: Likewise.
3437         * lib/unictype/categ_Pe.h: Likewise.
3438         * lib/unictype/categ_Pf.h: Likewise.
3439         * lib/unictype/categ_Pi.h: Likewise.
3440         * lib/unictype/categ_Ps.h: Likewise.
3441         * lib/unictype/categ_Sk.h: Likewise.
3442         * lib/unictype/categ_Sm.h: Likewise.
3443         * lib/unictype/categ_Z.h: Likewise.
3444         * lib/unictype/categ_Zl.h: Likewise.
3445         * lib/unictype/categ_Zp.h: Likewise.
3446         * lib/unictype/categ_Zs.h: Likewise.
3447         * lib/unictype/ctype_blank.h: Likewise.
3448         * lib/unictype/ctype_cntrl.h: Likewise.
3449         * lib/unictype/ctype_digit.h: Likewise.
3450         * lib/unictype/ctype_space.h: Likewise.
3451         * lib/unictype/ctype_xdigit.h: Likewise.
3452         * lib/unictype/mirror.h: Likewise.
3453         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3454         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3455         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3456         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3457         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3458         * lib/unictype/pr_bidi_control.h: Likewise.
3459         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3460         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3461         * lib/unictype/pr_bidi_pdf.h: Likewise.
3462         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3463         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3464         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3465         * lib/unictype/pr_format_control.h: Likewise.
3466         * lib/unictype/pr_hex_digit.h: Likewise.
3467         * lib/unictype/pr_hyphen.h: Likewise.
3468         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3469         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3470         * lib/unictype/pr_iso_control.h: Likewise.
3471         * lib/unictype/pr_join_control.h: Likewise.
3472         * lib/unictype/pr_left_of_pair.h: Likewise.
3473         * lib/unictype/pr_line_separator.h: Likewise.
3474         * lib/unictype/pr_math.h: Likewise.
3475         * lib/unictype/pr_non_break.h: Likewise.
3476         * lib/unictype/pr_not_a_character.h: Likewise.
3477         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3478         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3479         * lib/unictype/pr_other_id_continue.h: Likewise.
3480         * lib/unictype/pr_other_id_start.h: Likewise.
3481         * lib/unictype/pr_other_lowercase.h: Likewise.
3482         * lib/unictype/pr_other_math.h: Likewise.
3483         * lib/unictype/pr_other_uppercase.h: Likewise.
3484         * lib/unictype/pr_paired_punctuation.h: Likewise.
3485         * lib/unictype/pr_paragraph_separator.h: Likewise.
3486         * lib/unictype/pr_pattern_syntax.h: Likewise.
3487         * lib/unictype/pr_pattern_white_space.h: Likewise.
3488         * lib/unictype/pr_private_use.h: Likewise.
3489         * lib/unictype/pr_quotation_mark.h: Likewise.
3490         * lib/unictype/pr_radical.h: Likewise.
3491         * lib/unictype/pr_soft_dotted.h: Likewise.
3492         * lib/unictype/pr_space.h: Likewise.
3493         * lib/unictype/pr_titlecase.h: Likewise.
3494         * lib/unictype/pr_variation_selector.h: Likewise.
3495         * lib/unictype/pr_white_space.h: Likewise.
3496         * lib/unictype/sy_c_ident.h: Likewise.
3497         * lib/unictype/sy_c_whitespace.h: Likewise.
3498         * lib/unictype/sy_java_whitespace.h: Likewise.
3499         * modules/uni*/*: Bump version number of expected libunistring version.
3500         Reported by Simon Josefsson.
3501
3502 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3503
3504         useless-if-before-free: fix typo in --help and make the internal,
3505         automatic version date update process work once again.
3506         --help output contained a NUL character instead of the
3507         backslash-zero that was intended.  Also, the "must lie within
3508         the first 8 lines" line is on line 9, and hence not getting
3509         automatically updated.
3510         * build-aux/useless-if-before-free: Fix the former by adding a
3511         backslash, and the latter by condensing the three lines of what-it-does
3512         to a single line, leaving one line of slack for the future.
3513
3514 2011-01-09  Bruno Haible  <bruno@clisp.org>
3515
3516         uniwidth/width: Fix width of U+1D173..U+1D17A.
3517         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
3518         symbolic_width, output_width_property_test): New functions.
3519         (main): Invoke output_nonspacing_property, output_width_property_test.
3520         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
3521         U+1D173..U+1D17A.
3522         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
3523         1.
3524         * modules/uniwidth/*: Bump version number of expected libunistring
3525         version.
3526         * modules/unilbrk/*: Likewise.
3527
3528 2011-01-08  Bruno Haible  <bruno@clisp.org>
3529
3530         uninorm tests: Preserve copyright of Unicode data file.
3531         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
3532         Mention modifications.
3533
3534 2011-01-08  Bruno Haible  <bruno@clisp.org>
3535
3536         gen-uni-tables: Prepare for Unicode 5.2.0.
3537         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
3538         (debug_output_lbp, output_lbp): Update.
3539
3540 2011-01-08  Bruno Haible  <bruno@clisp.org>
3541
3542         unilbrk: Clarify gen-uni-tables.c code.
3543         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
3544         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
3545         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
3546
3547 2011-01-07  Bruno Haible  <bruno@clisp.org>
3548
3549         strtod: Restore errno when successfully parsing Infinity or NaN.
3550         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
3551         restore the original errno.
3552
3553 2011-01-07  Bruno Haible  <bruno@clisp.org>
3554
3555         remove test: Avoid failure on HP-UX 11.
3556         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
3557
3558 2011-01-07  Bruno Haible  <bruno@clisp.org>
3559
3560         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
3561         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
3562         error code.
3563
3564 2011-01-07  Pádraig Brady <P@draigBrady.com>
3565
3566         ignore-value: fixup comments, and add Eric Blake
3567         as an author since he rewrote the macros.
3568         * lib/ignore-value.h (ignore_value):  State that
3569         we now support aggregates.  Also specify exactly
3570         when the GCC warn_unused_result feature was added.
3571
3572 2011-01-06  Eric Blake  <eblake@redhat.com>
3573
3574         ignore-value: support aggregate types
3575         * lib/ignore-value.h (ignore_value): Provide separate gcc
3576         definition.
3577         * modules/ignore-value-tests: New test module.
3578         * tests/test-ignore-value.c: New test.
3579
3580         maint.mk: improve sc_prohibit_strcmp regex
3581         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
3582         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
3583         definition of STRNEQ.
3584
3585         signal: work around Haiku issue with SIGBUS
3586         * lib/siglist.h: Add comment.
3587         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
3588         strsignal's favoring of SIGSEGV.
3589         * tests/test-signal.c (main): Avoid test failure.
3590         * doc/posix-headers/signal.texi (signal.h): Document the issue.
3591         Reported by Scott McCreary.
3592
3593         maint.mk: add pre-release check to ensure submodule commits are public
3594         * top/maint.mk (public-submodule-commit): New rule.
3595         (submodule-checks): New variable.
3596         (alpha beta stable): Depend on the variable.
3597
3598 2011-01-05  Pádraig Brady <P@draigBrady.com>
3599         and Jim Meyering  <meyering@redhat.com>
3600
3601         ignore-value: make ignore_value more generic; deprecate ignore_ptr
3602         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
3603         (ATTRIBUTE_DEPRECATED): Define.
3604         (_ignore_case): New function.
3605         (ignore_value): New macro, to replace the old function.
3606         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
3607         * modules/ignore-value (Depends-on): Add stdint.
3608
3609 2011-01-04  Eric Blake  <eblake@redhat.com>
3610
3611         doc: regenerate INSTALL
3612         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
3613         @firstparagraphindent support, now that autoconf dropped it.
3614         (INSTALL_PRELUDE): Reinstate old macro.
3615         * doc/install.texi: Resync from autoconf.
3616         * doc/INSTALL: Reflect recent autoconf update.
3617         * doc/INSTALL.ISO: Likewise.
3618         * doc/INSTALL.UTF-8: Likewise.
3619         Reported by Karl Berry.
3620
3621 2011-01-04  Bruce Korb  <address@hidden>
3622
3623         git-version-gen: avoid a sub-shell
3624         * build-aux/git-version-gen: Redirect stderr in `...` via
3625         "exec 2>...", rather than via an added sub-shell.
3626
3627 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
3628
3629         git-version-gen: use (...) rather than sh -c '...'
3630         * build-aux/git-version-gen: Rather than hard-coding a shell's name
3631         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
3632
3633 2011-01-03  Jim Meyering  <meyering@redhat.com>
3634
3635         git-version-gen: convert leading TABs to spaces
3636         * build-aux/git-version-gen: Expand leading TABs.
3637
3638         git-version-gen: handle failed "git rev-list"
3639         * build-aux/git-version-gen: Rather than leaking a "fatal" error
3640         from git and proceeding as if it had succeeded but printed no SHA1
3641         checksums, suppress the diagnostic and handle the failure.
3642         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
3643
3644         git-version-gen: include command name in one more diagnostic
3645         * build-aux/git-version-gen: When the required .tarball-version file
3646         was missing or unreadable, you might see the diagnostic from "cat",
3647         but no trace of the name of the invoking script.  Now, you still see
3648         the diagnostic from cat, but also get one from "git-version-gen: ".
3649         Inspired by a patch from Bruce Korb.
3650
3651         update-copyright: adjust test to match changed code
3652         * tests/test-update-copyright.sh: Change test's expected output
3653         to match new actual output.
3654
3655 2011-01-02  Bruno Haible  <bruno@clisp.org>
3656
3657         getlogin_r: Avoid test failure on HP-UX 11.
3658         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
3659         ERANGE when the second argument is zero.
3660         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
3661         portability problem.
3662
3663 2011-01-02  Bruce Korb  <bkorb@gnu.org>
3664
3665         * build-aux/update-copyright: doc Simon's changes
3666
3667 2011-01-02  Simon Josefsson  <simon@josefsson.org>
3668
3669         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
3670         environment variable.
3671
3672 2011-01-02  Bruno Haible  <bruno@clisp.org>
3673
3674         unigbrk: Avoid gcc warnings.
3675         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
3676         unused variable.
3677         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
3678         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
3679         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
3680         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
3681         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
3682         Change type of first argument to 'const char *'.
3683         (main): Remove unused variable.
3684         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
3685         type of first argument to 'const char *'.
3686         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
3687         Likewise.
3688         (main): Change type of variable 's'.
3689         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
3690         to 'int'.
3691
3692 2011-01-02  Bruno Haible  <bruno@clisp.org>
3693
3694         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
3695         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
3696         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
3697         bug.
3698         * lib/pwrite.c: Undo 2010-12-31 patch.
3699         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
3700
3701 2011-01-02  Bruno Haible  <bruno@clisp.org>
3702
3703         pread: Fix test whether it works.
3704         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
3705
3706 2011-01-02  Bruno Haible  <bruno@clisp.org>
3707
3708         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
3709         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
3710         ends in "6". Don't require a specific month name. Try also the locale
3711         names found on HP-UX 11 and Solaris 7.
3712
3713 2011-01-02  Bruno Haible  <bruno@clisp.org>
3714
3715         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
3716         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
3717         C linkage.
3718         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
3719
3720 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3721
3722         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
3723         for consistency, since the "cluster" term is not used elsewhere.
3724         * lib/unigbrk.in.h: Update name.
3725         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
3726         * lib/unigbrk/u16-grapheme-next.c: Update name.
3727         * lib/unigbrk/u16-grapheme-prev.c: Update name.
3728         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
3729         * lib/unigbrk/u32-grapheme-next.c: Update name.
3730         * lib/unigbrk/u32-grapheme-prev.c: Update name.
3731         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
3732         * lib/unigbrk/u8-grapheme-next.c: Update name.
3733         * lib/unigbrk/u8-grapheme-prev.c: Update name.
3734         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
3735         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
3736         Suggested by Bruno Haible.
3737
3738 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3739
3740         Remove module 'u8-grapheme-len' as too redundant with
3741         'u8-grapheme-next'.
3742         * modules/unigbrk/u8-grapheme-len: Delete file.
3743         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
3744         * lib/unigbrk.in.h: Remove prototype for deleted function.
3745         * lib/unigbrk/u8-grapheme-len.c: Delete file.
3746         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
3747
3748         Remove module 'u16-grapheme-len' as too redundant with
3749         'u16-grapheme-next'.
3750         * modules/unigbrk/u16-grapheme-len: Delete file.
3751         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
3752         * lib/unigbrk.in.h: Remove prototype for deleted function.
3753         * lib/unigbrk/u16-grapheme-len.c: Delete file.
3754         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
3755
3756         Remove module 'u32-grapheme-len' as too redundant with
3757         'u32-grapheme-next'.
3758         * modules/unigbrk/u32-grapheme-len: Delete file.
3759         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
3760         * lib/unigbrk.in.h: Remove prototype for deleted function.
3761         * lib/unigbrk/u32-grapheme-len.c: Delete file.
3762         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
3763
3764         Suggested by Bruno Haible.
3765
3766 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3767
3768         * unigbrk.in.h: Fix typo: "ben" => "been".
3769         Reported by Bruno Haible.
3770
3771 2011-01-01  Jim Meyering  <meyering@redhat.com>
3772
3773         maint: update almost all copyright ranges to include 2011
3774         Run the new "make update-copyright" rule.
3775
3776 2011-01-01  Jim Meyering  <meyering@redhat.com>
3777
3778         maint: update-copyright: exempt doc/INSTALL*
3779         * Makefile (update-copyright): Also exclude doc/INSTALL*,
3780         since they are generated.  Suggested by Bruno Haible.
3781
3782 2011-01-01  Jim Meyering  <meyering@redhat.com>
3783
3784         maint: refine the update-copyright rule
3785         * Makefile (update-copyright): Also exclude any file that includes
3786         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
3787         code that merely generates the comment.
3788
3789 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3790
3791         New module 'u8-grapheme-len'.
3792         * modules/unigbrk/u8-grapheme-len: New file.
3793         * modules/unigbrk/u8-grapheme-len-tests: New file.
3794         * lib/unigbrk.in.h: Add prototype for new function.
3795         * lib/unigbrk/u8-grapheme-len.c: New file.
3796         * tests/unigbrk/test-u8-grapheme-len.c: New file.
3797
3798         New module 'u16-grapheme-len'.
3799         * modules/unigbrk/u16-grapheme-len: New file.
3800         * modules/unigbrk/u16-grapheme-len-tests: New file.
3801         * lib/unigbrk.in.h: Add prototype for new function.
3802         * lib/unigbrk/u16-grapheme-len.c: New file.
3803         * tests/unigbrk/test-u16-grapheme-len.c: New file.
3804
3805         New module 'u32-grapheme-len'.
3806         * modules/unigbrk/u32-grapheme-len: New file.
3807         * modules/unigbrk/u32-grapheme-len-tests: New file.
3808         * lib/unigbrk.in.h: Add prototype for new function.
3809         * lib/unigbrk/u32-grapheme-len.c: New file.
3810         * tests/unigbrk/test-u32-grapheme-len.c: New file.
3811
3812         New module 'u8-grapheme-next'.
3813         * modules/unigbrk/u8-grapheme-next: New file.
3814         * modules/unigbrk/u8-grapheme-next-tests: New file.
3815         * lib/unigbrk.in.h: Add prototype for new function.
3816         * lib/unigbrk/u8-grapheme-next.c: New file.
3817         * tests/unigbrk/test-u8-grapheme-next.c: New file.
3818
3819         New module 'u16-grapheme-next'.
3820         * modules/unigbrk/u16-grapheme-next: New file.
3821         * modules/unigbrk/u16-grapheme-next-tests: New file.
3822         * lib/unigbrk.in.h: Add prototype for new function.
3823         * lib/unigbrk/u16-grapheme-next.c: New file.
3824         * tests/unigbrk/test-u16-grapheme-next.c: New file.
3825
3826         New module 'u32-grapheme-next'.
3827         * modules/unigbrk/u32-grapheme-next: New file.
3828         * modules/unigbrk/u32-grapheme-next-tests: New file.
3829         * lib/unigbrk.in.h: Add prototype for new function.
3830         * lib/unigbrk/u32-grapheme-next.c: New file.
3831         * tests/unigbrk/test-u32-grapheme-next.c: New file.
3832
3833         New module 'u8-grapheme-prev'.
3834         * modules/unigbrk/u8-grapheme-prev: New file.
3835         * modules/unigbrk/u8-grapheme-prev-tests: New file.
3836         * lib/unigbrk.in.h: Add prototype for new function.
3837         * lib/unigbrk/u8-grapheme-prev.c: New file.
3838         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
3839
3840         New module 'u16-grapheme-prev'.
3841         * modules/unigbrk/u16-grapheme-prev: New file.
3842         * modules/unigbrk/u16-grapheme-prev-tests: New file.
3843         * lib/unigbrk.in.h: Add prototype for new function.
3844         * lib/unigbrk/u16-grapheme-prev.c: New file.
3845         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
3846
3847         New module 'u32-grapheme-prev'.
3848         * modules/unigbrk/u32-grapheme-prev: New file.
3849         * modules/unigbrk/u32-grapheme-prev-tests: New file.
3850         * lib/unigbrk.in.h: Add prototype for new function.
3851         * lib/unigbrk/u32-grapheme-prev.c: New file.
3852         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
3853
3854         New module 'u8-grapheme-breaks'.
3855         * modules/unigbrk/u8-grapheme-breaks: New file.
3856         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
3857         * lib/unigbrk.in.h: Add prototype for new function.
3858         * lib/unigbrk/u8-grapheme-breaks.c: New file.
3859         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
3860
3861         New module 'u16-grapheme-breaks'.
3862         * modules/unigbrk/u16-grapheme-breaks: New file.
3863         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
3864         * lib/unigbrk.in.h: Add prototype for new function.
3865         * lib/unigbrk/u16-grapheme-breaks.c: New file.
3866         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
3867
3868         New module 'u32-grapheme-breaks'.
3869         * modules/unigbrk/u32-grapheme-breaks: New file.
3870         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
3871         * lib/unigbrk.in.h: Add prototype for new function.
3872         * lib/unigbrk/u32-grapheme-breaks.c: New file.
3873         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
3874
3875         New module 'ulc-grapheme-breaks'.
3876         * modules/unigbrk/ulc-grapheme-breaks: New file.
3877         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
3878         * m4/locale-ar.m4: New file.
3879         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
3880         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
3881         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
3882
3883 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3884
3885         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
3886         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
3887         modified how this file was generated before I initially submitted
3888         the module, but failed to regenerate it.  This meant that several
3889         of the level2 entries were wrong.
3890         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
3891         Remove the division-by-2 that is folded into the table now that
3892         gbrkprop.h has been regenerated properly.  Now -1 entries are
3893         handled correctly.
3894
3895         New module 'unigbrk/uc-gbrk-prop-tests'.
3896         * modules/unigbrk/uc-gbrk-prop-tests: New file.
3897         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
3898         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
3899         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
3900
3901 2011-01-01  Bruno Haible  <bruno@clisp.org>
3902
3903         Avoid use of hexadecimal escapes.
3904         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
3905         instead of hexadecimal escapes.
3906
3907 2011-01-01  Jim Meyering  <meyering@redhat.com>
3908
3909         maint: new rule to update copyright year ranges
3910         * Makefile (update-copyright): New rule.
3911
3912         maint: indent with TABs in Makefile
3913         * Makefile: Expand leading sequences of spaces to TABs
3914
3915         version-etc: update the copyright year it reports
3916         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
3917
3918 2010-12-31  Bruno Haible  <bruno@clisp.org>
3919
3920         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
3921         * lib/isfinite.c (zerof, zerod, zerol): New variables.
3922         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
3923         zero.
3924
3925 2010-12-31  Bruno Haible  <bruno@clisp.org>
3926
3927         pwrite: Work around HP-UX 11.11 bug.
3928         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
3929         works and set REPLACE_PWRITE if not.
3930         * lib/pwrite.c (pwrite): Add an implementation that uses the system
3931         function.
3932         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
3933
3934 2010-12-31  Bruno Haible  <bruno@clisp.org>
3935
3936         pread: Work around HP-UX 11 bugs.
3937         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
3938         and set REPLACE_PREAD if not.
3939         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
3940
3941 2010-12-31  Eric Blake  <eblake@redhat.com>
3942
3943         nl_langinfo: fix YESEXPR on Irix 6.5
3944         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
3945         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
3946         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
3947         it.
3948
3949 2010-12-31  Bruno Haible  <bruno@clisp.org>
3950
3951         iconv: Document HP-UX 11 bug.
3952         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
3953
3954 2010-12-31  Bruno Haible  <bruno@clisp.org>
3955
3956         ldexpl: Fix link error on HP-UX 11.
3957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
3958         LDEXPL_LIBM, using $ISNANL_LIBM.
3959
3960 2010-12-31  Eric Blake  <eblake@redhat.com>
3961
3962         ftello: avoid compilation failure with SunStudio c89
3963         * lib/ftello.c (ftello): Use lseek, not llseek.
3964
3965         tests: avoid failing coreutils tests on cygwin
3966         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
3967         (create_exe_shims_): Return 0 when skipping.
3968
3969 2010-12-31  Bruno Haible  <bruno@clisp.org>
3970
3971         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
3972         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
3973
3974 2010-12-31  Bruno Haible  <bruno@clisp.org>
3975
3976         waitpid: Fix link error in C++ mode.
3977         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
3978
3979 2010-12-31  Bruno Haible  <bruno@clisp.org>
3980
3981         isnan: Use GCC built-ins when possible.
3982         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
3983         __builtin_isnan.
3984         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
3985         (isnan): Define using GCC built-ins for GCC >= 4.0.
3986
3987 2010-12-31  Bruno Haible  <bruno@clisp.org>
3988
3989         isnand: Fix mistake.
3990         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
3991         __builtin_isnand.
3992
3993 2010-12-31  Bruno Haible  <bruno@clisp.org>
3994
3995         open: Avoid C++ error on HP-UX 11.
3996         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
3997
3998 2010-12-31  Bruno Haible  <bruno@clisp.org>
3999
4000         time_r: Add missing declarations on HP-UX 11.
4001         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
4002         instead of HAVE_LOCALTIME_R.
4003         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
4004         HAVE_LOCALTIME_R always.
4005         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
4006         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
4007         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
4008         HAVE_LOCALTIME_R.
4009         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
4010         * doc/posix-functions/localtime_r.texi: Likewise.
4011
4012 2010-12-29  Eric Blake  <eblake@redhat.com>
4013
4014         mountlist: tweak previous commit
4015         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
4016         Reported by Paul Eggert.
4017
4018         mountlist: fix local drive detection on cygwin
4019         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
4020         that works for cygwin.
4021
4022 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4023
4024         ftoastr, snprintf: ftoastr + snprintf module
4025         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
4026         since the snprintf module now should be good enough here.
4027         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
4028         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
4029         and gl_MODULE_INDICATOR([snprintf]), but the former enables
4030         GNULIB_SNPRINTF only for the test directory, and the latter
4031         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
4032         seems to suffice by itself.
4033
4034 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
4035
4036         alloca: one step towards thread-safety
4037         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
4038         need for a static variable.  All callers changed.  This does not
4039         make the alloca replacement thread-safe, but it's one step.
4040
4041         tests: minor indenting change
4042         * tests/init.sh: Sync from coreutils housekeeping patch
4043         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
4044         to keep lines within 80 columns.
4045
4046 2010-12-28  Jim Meyering  <meyering@redhat.com>
4047
4048         regex: don't infloop on persistent failing calloc
4049         * lib/regexec.c (build_trtable): Return failure indication upon
4050         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4051         In glibc, this was fixed for version 2.13:
4052         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
4053
4054 2010-12-28  Bruno Haible  <bruno@clisp.org>
4055             Paul Eggert <eggert@cs.ucla.edu>
4056
4057         linkat: Make implementation robust against system behaviour variations.
4058         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
4059         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
4060         way, and to -2 if it needs a generic runtime test.
4061         * lib/linkat.c (solaris_optimized_link_immediate,
4062         solaris_optimized_link_follow): New functions.
4063         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
4064         (check_same_link): Use it.
4065
4066 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
4067
4068         New module 'unigbrk/base'.
4069         * modules/unigbrk/base: New file.
4070         * lib/unigbrk.in.h: New file.
4071
4072         New module 'unigbrk/uc-gbrk-prop'.
4073         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
4074         * modules/unigbrk/uc-gbrk-prop: New file.
4075         * lib/unigbrk/gbrkprop.h: New file.
4076         * lib/unigbrk/uc-gbrk-prop.c: New file.
4077
4078         New module 'unigbrk/uc-is-grapheme-break'.
4079         * modules/unigbrk/uc-is-grapheme-break: New file.
4080         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
4081         * lib/unigbrk/uc-is-grapheme-break.c: New file.
4082         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
4083         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
4084         * tests/unigbrk/GraphemeBreakTest.txt: New file.
4085
4086         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
4087
4088 2010-12-27  Bruno Haible  <bruno@clisp.org>
4089
4090         linkat test: Avoid failure on Solaris 11 2010-11.
4091         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
4092
4093 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4094
4095         utimens: work around glibc rounding bug on more platforms
4096         * lib/utimens.c (fdutimens): Work around rounding bug even if
4097         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
4098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
4099
4100 2010-12-27  Bruno Haible  <bruno@clisp.org>
4101
4102         select tests: Improve comments.
4103         * tests/test-select.c (do_select): Add comments.
4104
4105 2010-12-27  Bruno Haible  <bruno@clisp.org>
4106
4107         select tests: Safer way of handling timeout.
4108         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
4109         at every invocation.
4110
4111 2010-12-27  Bruno Haible  <bruno@clisp.org>
4112
4113         select tests: Use 'bool' where appropriate.
4114         * tests/test-select.c (connect_to_socket): Change argument type to
4115         'bool'.
4116
4117 2010-12-27  Bruno Haible  <bruno@clisp.org>
4118
4119         select tests: Use existing modules.
4120         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4121         (configure.ac): Don't test for unistd.h.
4122         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4123         declared in <unistd.h>.
4124
4125 2010-12-27  Bruno Haible  <bruno@clisp.org>
4126
4127         mbrtowc: Work around a Solaris 7 bug.
4128         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4129         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4130         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4131         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4132         MBRTOWC_NULL_ARG1_BUG.
4133         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
4134         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
4135         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
4136         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
4137
4138 2010-12-27  Jim Meyering  <meyering@redhat.com>
4139
4140         read-file.c: tweak syntax
4141         * lib/read-file.c (fread_file): Remove space after "*" in function
4142         definitions.
4143
4144 2010-12-27  Bruno Haible  <bruno@clisp.org>
4145
4146         times test: Avoid gcc warnings on OSF/1.
4147         * tests/test-times.c (main): Cast printf arguments from clock_t to
4148         'long int'.
4149
4150 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4151
4152         utimens: work around glibc rounding bug on older Linux kernels
4153         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
4154         on Linux with a glibc whose utimes might not work, then work
4155         around a longstanding glibc bug involving rounding rather than
4156         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
4157         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4158
4159 2010-12-26  Bruno Haible  <bruno@clisp.org>
4160
4161         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
4162         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
4163         _GL_CXXALIAS_SYS.
4164         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4165
4166 2010-12-26  Bruno Haible  <bruno@clisp.org>
4167
4168         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
4169         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
4170         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4171         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
4172         looking for the declaration.
4173         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4174         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
4175         problem.
4176         * doc/posix-functions/inet_pton.texi: Likewise.
4177
4178 2010-12-26  Bruno Haible  <bruno@clisp.org>
4179
4180         arpa_inet: Use the common idioms with C++ support.
4181         * lib/arpa_inet.in.h: Include c++defs.h.
4182         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
4183         support.
4184         * modules/arpa_inet (Depends-on): Add c++defs.
4185         (Makefile.am): Substitute the contents of c++defs.h.
4186         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
4187         * modules/arpa_inet-c++-tests: New file.
4188         * tests/test-arpa_inet-c++.cc: New file.
4189
4190 2010-12-25  Bruno Haible  <bruno@clisp.org>
4191
4192         Fix more C++ link errors on Solaris 8.
4193         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
4194         $(LIB_EACCESS).
4195         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
4196         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
4197         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
4198         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
4199         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
4200
4201 2010-12-25  Bruno Haible  <bruno@clisp.org>
4202
4203         printf-posix: Fix link error when a non-GCC compiler is used.
4204         * lib/stdio.in.h (printf): When not using GCC, override printf
4205         correctly.
4206         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4207
4208 2010-12-25  Bruno Haible  <bruno@clisp.org>
4209
4210         strerror_r-posix: Update doc.
4211         * doc/posix-functions/strerror_r.texi: Update doc about the return
4212         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
4213
4214 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4215
4216         utimens: simplify the logic of the previous change
4217         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
4218         This should not affect whether the test succeeds or fails.
4219
4220         utimens: configure better on hosts with NFS clock skew
4221         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
4222         uses the clock of the local host.  It might use the clock of the
4223         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
4224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4225
4226 2010-12-25  Bruno Haible  <bruno@clisp.org>
4227
4228         ptsname test: Avoid failure on Solaris.
4229         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
4230         open a pseudo-terminal; don't use BSD-style ptys.
4231         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
4232
4233 2010-12-25  Bruno Haible  <bruno@clisp.org>
4234
4235         ptsname: Avoid ERANGE failure on some systems.
4236         * lib/ptsname.c (buffer): Increase size.
4237
4238 2010-12-25  Bruno Haible  <bruno@clisp.org>
4239
4240         rename, renameat: Avoid test failures at NFS mounted locations.
4241         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
4242         so that subsequent mkdir calls succeed.
4243
4244 2010-12-25  Bruno Haible  <bruno@clisp.org>
4245
4246         iswblank: Fix C++ link error on Solaris 8.
4247         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
4248         _GL_FUNCDECL_SYS.
4249
4250 2010-12-25  Bruno Haible  <bruno@clisp.org>
4251
4252         unistd: Fix C++ link error on Solaris 8.
4253         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
4254
4255 2010-12-25  Bruno Haible  <bruno@clisp.org>
4256
4257         readlink doc: Mention an old glibc bug.
4258         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
4259
4260 2010-12-25  Bruno Haible  <bruno@clisp.org>
4261
4262         fcntl-h: Fix for use of C++ on glibc systems.
4263         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4264         also on glibc systems in C++ mode.
4265         Reported by Gary V. Vaughan <gary@gnu.org>.
4266
4267 2010-12-25  Bruno Haible  <bruno@clisp.org>
4268
4269         roundl-ieee: Make it work on OSF/1 5.1 with cc.
4270         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
4271
4272 2010-12-25  Bruno Haible  <bruno@clisp.org>
4273
4274         truncl-ieee: Make it work on OSF/1 5.1 with cc.
4275         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
4276         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
4277         test whether truncl works according to ISO C 99 with IEC 60559.
4278         * m4/truncl-ieee.m4: New file.
4279         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
4280         m4/signbit.m4.
4281         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
4282
4283 2010-12-25  Bruno Haible  <bruno@clisp.org>
4284
4285         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4286         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
4287         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
4288         test whether ceill works according to ISO C 99 with IEC 60559.
4289         * m4/ceill-ieee.m4: New file.
4290         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
4291         m4/signbit.m4.
4292         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
4293
4294 2010-12-25  Bruno Haible  <bruno@clisp.org>
4295
4296         Ensure all prerequisites of <wchar.h> are included.
4297         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
4298         before <wchar.h>.
4299         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4300         gl_MBRLEN_NUL_RETVAL): Likewise.
4301         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4302         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
4303         AC_FUNC_MBRTOWC): Likewise.
4304         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4305         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4306         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4307         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4308         Likewise.
4309         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4310         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
4311         (gl_WCHAR_H): Improve comments.
4312         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4313
4314 2010-12-25  Bruno Haible  <bruno@clisp.org>
4315
4316         strtok_r: Fix C syntax error in autoconf macro.
4317         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
4318         characters in test program.
4319
4320 2010-12-24  Bruno Haible  <bruno@clisp.org>
4321
4322         ceil, trunc, round: Fix gcc warnings.
4323         * lib/ceil.c (MIN): Undefine before redefining.
4324         * lib/trunc.c (MIN): Likewise.
4325         * lib/round.c (MIN): Likewise.
4326         Include <math.h> first.
4327
4328 2010-12-24  Bruno Haible  <bruno@clisp.org>
4329
4330         select tests: Avoid failures on OSF/1 5.1.
4331         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
4332         failure of closing the last socket; it may fail with ECONNRESET.
4333
4334 2010-12-24  Eric Blake  <eblake@redhat.com>
4335
4336         stdint: avoid HP-UX 10.20 preprocessor bug
4337         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4338         than #if.
4339         * tests/test-floor2.c (main): Likewise.
4340         Reported by Peter O'Gorman.
4341
4342         pipe: make obsoletion transition easier
4343         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4344         * modules/pipe (Files): Include revived file.
4345         (Include): Drop reference, to mirror getdate's behavior.
4346
4347 2010-12-24  Bruno Haible  <bruno@clisp.org>
4348
4349         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4350         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4351         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4352         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4353
4354 2010-12-24  Bruno Haible  <bruno@clisp.org>
4355
4356         gethostname: Ensure declaration on NonStop Kernel.
4357         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4358         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4359
4360 2010-12-24  Bruno Haible  <bruno@clisp.org>
4361
4362         sys_select: Ensure all necessary types on NonStop Kernel.
4363         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
4364         include <sys/time.h>.
4365         * doc/posix-headers/sys_select.texi: Mention that it's missing on
4366         NonStop Kernel.
4367         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4368
4369 2010-12-24  Bruno Haible  <bruno@clisp.org>
4370
4371         sys_select: Remove unneeded include.
4372         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
4373         have <sys/select.h>.
4374
4375 2010-12-24  Bruno Haible  <bruno@clisp.org>
4376
4377         gethostname: Provide a fallback for HOST_NAME_MAX.
4378         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
4379         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
4380         instead.
4381         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4382
4383 2010-12-24  Bruno Haible  <bruno@clisp.org>
4384
4385         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
4386         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
4387         (SA_RESTART): Likewise.
4388         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4389
4390 2010-12-24  Bruno Haible  <bruno@clisp.org>
4391
4392         signal: Define NSIG.
4393         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
4394         * tests/test-signal.c (nsig): New variable.
4395         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4396
4397 2010-12-24  Bruno Haible  <bruno@clisp.org>
4398
4399         rename, renameat: Avoid test failures on OSF/1 5.1.
4400         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
4401         alternative error codes.
4402         * tests/test-renameat.c (main): Likewise.
4403
4404 2010-12-24  Bruno Haible  <bruno@clisp.org>
4405
4406         *printf: Detect large precisions bug on Solaris 10/SPARC.
4407         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
4408         by Paul Eggert.
4409         * tests/test-snprintf-posix.h (test_function): Add this test code here
4410         too.
4411         * tests/test-sprintf-posix.h (test_function): Likewise.
4412         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4413         * tests/test-vasprintf-posix.c (test_function): Likewise.
4414         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
4415         around by gnulib.
4416         * doc/posix-functions/printf.texi: Likewise.
4417         * doc/posix-functions/snprintf.texi: Likewise.
4418         * doc/posix-functions/sprintf.texi: Likewise.
4419         * doc/posix-functions/vfprintf.texi: Likewise.
4420         * doc/posix-functions/vprintf.texi: Likewise.
4421         * doc/posix-functions/vsnprintf.texi: Likewise.
4422         * doc/posix-functions/vsprintf.texi: Likewise.
4423         * doc/posix-functions/dprintf.texi: Undo last commit.
4424         * doc/posix-functions/vdprintf.texi: Likewise.
4425
4426 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4427
4428         tests: port test-fdutimensat.c to Solaris 8
4429         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
4430         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
4431         On Solaris 8, it fails with errno == ENOSYS, because there is no
4432         futimens (so it can't use the fd), and there is no lutimens (so it
4433         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
4434
4435         vsnprintf: make more consistent with snprintf; doc fixes
4436
4437         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
4438         the byte count return problem was promoted from the snprintf-posix
4439         to the snprintf module.
4440         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4441         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
4442         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
4443         * tests/test-snprintf.c (main): Check the byte count returned.
4444         * tests/test-vsnprintf.c (main): Likewise.
4445
4446 2010-12-23  Eric Blake  <eblake@redhat.com>
4447
4448         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
4449         * modules/sigpipe (License): Relax license.
4450
4451 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4452
4453         doc: document Solaris printf bug with large float precisions
4454         * doc/posix-functions/dprintf.texi (dprintf):
4455         * doc/posix-functions/fprintf.texi (fprintf):
4456         * doc/posix-functions/printf.texi (printf):
4457         * doc/posix-functions/snprintf.texi (snprintf):
4458         * doc/posix-functions/sprintf.texi (sprintf):
4459         * doc/posix-functions/vdprintf.texi (vdprintf):
4460         * doc/posix-functions/vfprintf.texi (vfprintf):
4461         * doc/posix-functions/vprintf.texi (vprintf):
4462         * doc/posix-functions/vsnprintf.texi (vsnprintf):
4463         * doc/posix-functions/vsprintf.texi (vsprintf):
4464         Mention that these functions mishandle large floating point
4465         precisions on Solaris 10.  The same bug is also present in Solaris
4466         8, and I assume earlier.  This causes "cd gnulib-tests; make
4467         check" to fail on Solaris 8 (and I assume, later) when building
4468         the latest coreutils, in test-vasprintf-posix's call to
4469         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4470         the wide flavors (e.g., wprintf) so this patch just updates the
4471         documentation for the narrow ones.
4472
4473         test-posixtm.c: add two tests
4474         * tests/test-posixtm.c: Add two tests, to highlight the
4475         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4476         around this bug; this is merely to document it.
4477
4478 2010-12-22  Bruno Haible  <bruno@clisp.org>
4479
4480         getlogin_r: Work around portability problem on OSF/1.
4481         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4482         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4483         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4484         test for a truncated result.
4485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4486         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4487         * modules/getlogin_r (Depends-on): Add memchr.
4488         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4489
4490 2010-12-22  Bruno Haible  <bruno@clisp.org>
4491
4492         ptsname: Avoid test failure on OSF/1 5.1.
4493         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4494         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4495         (same_slave): New function.
4496         (main): Use it to compare ptsname's result with the expected file name.
4497
4498 2010-12-22  Bruno Haible  <bruno@clisp.org>
4499
4500         Port extended stdio modules to HP NonStop Kernel.
4501         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4502         macros.
4503         * lib/fbufmode.c: Update comments.
4504         * lib/fflush.c: Likewise.
4505         * lib/fpurge.c: Likewise.
4506         * lib/freadable.c: Likewise.
4507         * lib/freadahead.c: Likewise.
4508         * lib/freading.c: Likewise.
4509         * lib/freadptr.c: Likewise.
4510         * lib/freadseek.c: Likewise.
4511         * lib/fseeko.c: Likewise.
4512         * lib/fseterr.c: Likewise.
4513         * lib/fwritable.c: Likewise.
4514         * lib/fwriting.c: Likewise.
4515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4516
4517 2010-12-22  Bruno Haible  <bruno@clisp.org>
4518
4519         ttyname_r: Work around bug on OSF/1 5.1.
4520         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
4521         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
4522         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
4523         present.
4524         * lib/ttyname_r.c (ttyname_r): Update comments.
4525
4526 2010-12-22  Bruno Haible  <bruno@clisp.org>
4527
4528         round: Implement result sign according to IEEE 754.
4529         * lib/round.c (MIN, MINUS_ZERO): New macros.
4530         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
4531         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
4532         * tests/test-round-ieee.c (main): Likewise.
4533         * tests/test-roundl-ieee.c (main): Likewise.
4534
4535         trunc: Implement result sign according to IEEE 754.
4536         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
4537         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
4538         * tests/test-trunc2.c: Include minus-zero.h.
4539         (MINUS_ZERO): New macro.
4540         (trunc_reference): Keep in sync with lib/trunc.c.
4541         * tests/test-truncf2.c: Include minus-zero.h.
4542         (MINUS_ZERO): New macro.
4543         (truncf_reference): Keep in sync with lib/trunc.c.
4544         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
4545         * tests/test-trunc-ieee.c (main): Likewise.
4546         * tests/test-truncl-ieee.c (main): Likewise.
4547
4548         ceil: Implement result sign according to IEEE 754.
4549         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
4550         (FUNC): Return -0.0 for -1 < x < 0.
4551         * tests/test-ceil2.c: Include minus-zero.h.
4552         (MINUS_ZERO): New macro.
4553         (ceil_reference): Keep in sync with lib/ceil.c.
4554         * tests/test-ceilf2.c: Include minus-zero.h.
4555         (MINUS_ZERO): New macro.
4556         (ceilf_reference): Keep in sync with lib/ceil.c.
4557         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
4558         * tests/test-ceil-ieee.c (main): Likewise.
4559         * tests/test-ceill-ieee.c (main): Likewise.
4560
4561         floor: Implement result sign according to IEEE 754.
4562         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
4563         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
4564         * tests/test-floorf2.c (floorf_reference): Likewise.
4565         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
4566         * tests/test-floor-ieee.c (main): Likewise.
4567         * tests/test-floorl-ieee.c (main): Likewise.
4568
4569 2010-12-22  Bruno Haible  <bruno@clisp.org>
4570
4571         getaddrinfo: Update doc.
4572         * doc/posix-functions/gai_strerror.texi: Return type is also different
4573         on AIX and HP-UX.
4574
4575 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4576
4577         getaddrinfo, inet_ntop: Update doc for Solaris.
4578         * doc/posix-functions/gai_strerror.texi: Return type is also an
4579         issue on Solaris 9 and earlier.
4580         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
4581         on Solaris 10 and earlier.
4582
4583 2010-12-21  Bruno Haible  <bruno@clisp.org>
4584
4585         New module 'roundl-ieee'.
4586         * modules/roundl-ieee: New file.
4587         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
4588         test whether roundl works according to ISO C 99 with IEC 60559.
4589         * m4/roundl-ieee.m4: New file.
4590         * modules/roundl-ieee-tests: New file.
4591         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
4592         * tests/test-roundl.c (main): Remove signbit tests.
4593         * modules/roundl-tests (Depends-on): Remove signbit.
4594         * doc/posix-functions/roundl.texi: Mention the new module.
4595
4596 2010-12-21  Bruno Haible  <bruno@clisp.org>
4597
4598         New module 'truncl-ieee'.
4599         * modules/truncl-ieee: New file.
4600         * modules/truncl-ieee-tests: New file.
4601         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
4602         * tests/test-truncl.c (main): Remove signbit tests.
4603         * modules/truncl-tests (Depends-on): Remove signbit.
4604         * doc/posix-functions/truncl.texi: Mention the new module.
4605
4606 2010-12-21  Bruno Haible  <bruno@clisp.org>
4607
4608         New module 'ceill-ieee'.
4609         * modules/ceill-ieee: New file.
4610         * modules/ceill-ieee-tests: New file.
4611         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
4612         * tests/test-ceill.c (main): Remove signbit tests.
4613         * modules/ceill-tests (Depends-on): Remove signbit.
4614         * doc/posix-functions/ceill.texi: Mention the new module.
4615
4616 2010-12-21  Bruno Haible  <bruno@clisp.org>
4617
4618         New module 'floorl-ieee'.
4619         * modules/floorl-ieee: New file.
4620         * modules/floorl-ieee-tests: New file.
4621         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
4622         * tests/test-floorl.c (main): Remove signbit tests.
4623         * modules/floorl-tests (Depends-on): Remove signbit.
4624         * doc/posix-functions/floorl.texi: Mention the new module.
4625
4626 2010-12-21  Bruno Haible  <bruno@clisp.org>
4627
4628         New module 'round-ieee'.
4629         * modules/round-ieee: New file.
4630         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
4631         whether round works according to ISO C 99 with IEC 60559.
4632         * m4/round-ieee.m4: New file.
4633         * modules/round-ieee-tests: New file.
4634         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
4635         * tests/test-round1.c (main): Remove signbit tests.
4636         * modules/round-tests (Depends-on): Remove 'signbit'.
4637         * doc/posix-functions/round.texi: Mention the new module.
4638
4639 2010-12-21  Bruno Haible  <bruno@clisp.org>
4640
4641         New module 'trunc-ieee'.
4642         * modules/trunc-ieee: New file.
4643         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
4644         whether trunc works according to ISO C 99 with IEC 60559.
4645         * m4/trunc-ieee.m4: New file.
4646         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
4647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
4648         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
4649         * modules/trunc-ieee-tests: New file.
4650         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
4651         * tests/test-trunc1.c (main): Remove signbit tests.
4652         * modules/trunc-tests (Depends-on): Remove 'signbit'.
4653         * doc/posix-functions/trunc.texi: Mention the new module.
4654
4655 2010-12-21  Bruno Haible  <bruno@clisp.org>
4656
4657         New module 'ceil-ieee'.
4658         * modules/ceil-ieee: New file.
4659         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
4660         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
4661         ISO C 99 with IEC 60559.
4662         * m4/ceil-ieee.m4: New file.
4663         * modules/ceil (Files): Add lib/ceil.c.
4664         (Depends-on): Add 'float'.
4665         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4666         * lib/math.in.h (ceil): New declaration.
4667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
4668         REPLACE_CEIL.
4669         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
4670         * modules/ceil-ieee-tests: New file.
4671         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
4672         * tests/test-math-c++.cc: Check the signature of 'ceil'.
4673         * doc/posix-functions/ceil.texi: Mention the new module.
4674
4675 2010-12-21  Bruno Haible  <bruno@clisp.org>
4676
4677         New module 'floor-ieee'.
4678         * modules/floor-ieee: New file.
4679         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
4680         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
4681         ISO C 99 with IEC 60559.
4682         * m4/floor-ieee.m4: New file.
4683         * modules/floor (Files): Add lib/floor.c.
4684         (Depends-on): Add 'float'.
4685         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4686         * lib/math.in.h (floor): New declaration.
4687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
4688         REPLACE_FLOOR.
4689         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
4690         * modules/floor-ieee-tests: New file.
4691         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
4692         * tests/test-math-c++.cc: Check the signature of 'floor'.
4693         * doc/posix-functions/floor.texi: Mention the new module.
4694
4695 2010-12-21  Bruno Haible  <bruno@clisp.org>
4696
4697         New module 'roundf-ieee'.
4698         * modules/roundf-ieee: New file.
4699         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
4700         test whether roundf works according to ISO C 99 with IEC 60559.
4701         * m4/roundf-ieee.m4: New file.
4702         * modules/roundf-ieee-tests: New file.
4703         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
4704         * tests/test-roundf1.c (main): Remove signbit tests.
4705         * modules/roundf-tests (Depends-on): Remove 'signbit'.
4706         * doc/posix-functions/roundf.texi: Mention the new module.
4707
4708 2010-12-21  Bruno Haible  <bruno@clisp.org>
4709
4710         New module 'truncf-ieee'.
4711         * modules/truncf-ieee: New file.
4712         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
4713         test whether truncf works according to ISO C 99 with IEC 60559.
4714         * m4/truncf-ieee.m4: New file.
4715         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
4716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
4717         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
4718         * modules/truncf-ieee-tests: New file.
4719         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
4720         * tests/test-truncf1.c (main): Remove signbit tests.
4721         * modules/truncf-tests (Depends-on): Remove 'signbit'.
4722         * doc/posix-functions/truncf.texi: Mention the new module.
4723
4724 2010-12-21  Bruno Haible  <bruno@clisp.org>
4725
4726         New module 'ceilf-ieee'.
4727         * modules/ceilf-ieee: New file.
4728         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
4729         test whether ceilf works according to ISO C 99 with IEC 60559.
4730         * m4/ceilf-ieee.m4: New file.
4731         * modules/ceilf-ieee-tests: New file.
4732         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
4733         * tests/test-ceilf1.c (main): Remove signbit tests.
4734         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
4735         * doc/posix-functions/ceilf.texi: Mention the new module.
4736
4737 2010-12-21  Bruno Haible  <bruno@clisp.org>
4738
4739         New module 'floorf-ieee'.
4740         * modules/floorf-ieee: New file.
4741         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
4742         test whether floorf works according to ISO C 99 with IEC 60559.
4743         * m4/floorf-ieee.m4: New file.
4744         * modules/floorf-ieee-tests: New file.
4745         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
4746         * tests/test-floorf1.c (main): Remove signbit tests.
4747         * modules/floorf-tests (Depends-on): Remove 'signbit'.
4748         * doc/posix-functions/floorf.texi: Mention the new module.
4749
4750 2010-12-21  Bruno Haible  <bruno@clisp.org>
4751
4752         Support for minus zero in autoconf macros.
4753         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
4754         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
4755         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
4756         * tests/minus-zero.h: Update comments.
4757
4758 2010-12-21  Bruno Haible  <bruno@clisp.org>
4759
4760         Tests for module 'ceil'.
4761         * modules/ceil-tests: New file.
4762         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
4763         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
4764
4765 2010-12-21  Bruno Haible  <bruno@clisp.org>
4766
4767         Tests for module 'floor'.
4768         * modules/floor-tests: New file.
4769         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
4770         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
4771
4772 2010-12-21  Bruno Haible  <bruno@clisp.org>
4773
4774         math: Fix indentation.
4775         * lib/math.in.h (floorf): Fix indentation.
4776
4777 2010-12-21  Bruno Haible  <bruno@clisp.org>
4778
4779         Fix cross-compilation guesses on Solaris.
4780         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
4781         not match "solaris2.10".
4782         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4783         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
4784         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
4785
4786 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
4787
4788         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
4789         This fixes a problem observed with the latest coreutils snapshot
4790         that caused a test to fail on Solaris 8.  src/csplit.c's call
4791         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
4792         earlier, instead of returning the number of bytes that would have
4793         been generated; this causes csplit to incorrectly report memory
4794         exhaustion.
4795         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
4796         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
4797         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
4798         comments to match.
4799         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
4800         Fix typo in matching older versions of Solaris: "solaris2.10"
4801         is matched by the shell pattern "solaris2.[0-9]*".  This matters
4802         only for guessing while cross-compiling.
4803         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
4804
4805 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
4806
4807         ftoastr: fix comment again
4808         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4809         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
4810         Also, simplify example a bit by using flags = 0.
4811
4812 2010-12-20  Bruno Haible  <bruno@clisp.org>
4813
4814         round*, trunc*: Update documentation regarding glibc.
4815         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
4816         * doc/posix-functions/round.texi: Likewise.
4817         * doc/posix-functions/roundl.texi: Likewise.
4818         * doc/posix-functions/truncf.texi: Likewise.
4819         * doc/posix-functions/trunc.texi: Likewise.
4820         * doc/posix-functions/truncl.texi: Likewise.
4821
4822 2010-12-20  Bruno Haible  <bruno@clisp.org>
4823
4824         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
4825         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
4826         * doc/posix-functions/round.texi: Likewise.
4827         * doc/posix-functions/roundl.texi: Likewise.
4828
4829 2010-12-20  Bruno Haible  <bruno@clisp.org>
4830
4831         ttyname_r: Add missing declaration on HP-UX 11.
4832         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
4833         HAVE_TTYNAME_R.
4834         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
4835         declared. Set HAVE_TTYNAME_R always.
4836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4837         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
4838         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
4839         HAVE_TTYNAME_R.
4840         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
4841
4842 2010-12-20  Bruno Haible  <bruno@clisp.org>
4843
4844         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
4845         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
4846         * doc/posix-functions/getlogin_r.texi: Likewise.
4847         * tests/test-getlogin.c: Include <errno.h>.
4848         (main): Avoid test failure on HP-UX 11.11.
4849         * tests/test-getlogin_r.c (main): Likewise.
4850
4851 2010-12-20  Bruno Haible  <bruno@clisp.org>
4852
4853         getlogin_r: Add missing declaration on HP-UX 11.
4854         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
4855         declared also when it exists as a function.
4856         * doc/posix-functions/getlogin_r.texi: Document this workaround.
4857
4858 2010-12-20  Bruno Haible  <bruno@clisp.org>
4859
4860         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
4861         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
4862         through wcrtomb.
4863
4864 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         ftoastr: fix comment
4867         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4868         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
4869
4870 2010-12-19  Bruno Haible  <bruno@clisp.org>
4871
4872         isnan: Ensure it is a macro.
4873         * lib/math.in.h (isnan): Define as a macro if not already a macro.
4874         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
4875         Solaris.
4876
4877 2010-12-19  Bruno Haible  <bruno@clisp.org>
4878
4879         ldexpl test: Fix link error on OSF/1 5.1.
4880         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
4881
4882 2010-12-19  Bruno Haible  <bruno@clisp.org>
4883
4884         wctype: Make it work in C++ mode on OSF/1 5.1.
4885         * lib/wctype.in.h (iswblank): Declare but not define here.
4886         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
4887         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
4888         * modules/wctype (Files): Add lib/iswblank.c.
4889
4890 2010-12-19  Bruno Haible  <bruno@clisp.org>
4891
4892         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
4893         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
4894         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
4895
4896 2010-12-19  Bruno Haible  <bruno@clisp.org>
4897
4898         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
4899         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
4900         _POSIX_PII_SOCKET.
4901         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
4902         * doc/posix-functions/recvfrom.texi: Likewise.
4903         * doc/posix-functions/send.texi: Likewise.
4904         * doc/posix-functions/sendto.texi: Likewise.
4905
4906 2010-12-19  Bruno Haible  <bruno@clisp.org>
4907
4908         tcgetsid: Add missing declaration on OSF/1 5.1.
4909         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
4910         HAVE_TCGETSID.
4911         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
4912         Don't set HAVE_TCGETSID.
4913         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
4914         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
4915         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
4916         HAVE_TCGETSID.
4917         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
4918
4919 2010-12-19  Bruno Haible  <bruno@clisp.org>
4920
4921         stdio: Fix problem with popen() declaration on OSF/1 5.1.
4922         * lib/stdio.in.h: During the include_next statement, let recursive
4923         includes of this file include only the system header file.
4924
4925 2010-12-19  Bruno Haible  <bruno@clisp.org>
4926
4927         iconv_open: Fix regression from 2010-12-04.
4928         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
4929         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
4930
4931 2010-12-19  Bruno Haible  <bruno@clisp.org>
4932
4933         stdbool test: Avoid a gcc warning.
4934         * tests/test-stdbool.c (main): Fail if e1 is false.
4935         Reported by Jim Meyering.
4936
4937 2010-12-19  Jim Meyering  <meyering@redhat.com>
4938
4939         setenv: restore to working order
4940         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
4941         mistakenly removed.
4942         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
4943         HAVE_SETENV.
4944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
4945         HAVE_SETENV.
4946
4947 2010-12-19  Bruno Haible  <bruno@clisp.org>
4948
4949         Document some different function declarations on OSF/1 5.1.
4950         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
4951         * doc/posix-functions/inet_ntop.texi: Likewise.
4952         * doc/posix-functions/gethostname.texi: Likewise.
4953         * lib/unistd.in.h (gethostname): Update comment.
4954
4955 2010-12-19  Bruno Haible  <bruno@clisp.org>
4956
4957         doc: Mention vasprintf-posix module.
4958         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
4959         the 'vasprintf-posix' module.
4960         * doc/glibc-functions/vasprintf.texi: Likewise.
4961
4962 2010-12-19  Bruno Haible  <bruno@clisp.org>
4963
4964         unsetenv: Add missing declaration on OSF/1 5.1.
4965         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
4966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
4967         Don't set HAVE_UNSETENV. In the test program, set _BSD.
4968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
4969         not HAVE_UNSETENV.
4970         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
4971         HAVE_UNSETENV.
4972         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
4973
4974 2010-12-19  Bruno Haible  <bruno@clisp.org>
4975
4976         setenv: Add missing declaration on OSF/1 5.1.
4977         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
4978         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
4979         declared. Don't set HAVE_SETENV.
4980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
4981         not HAVE_SETENV.
4982         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
4983         HAVE_SETENV.
4984         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
4985
4986 2010-12-19  Bruno Haible  <bruno@clisp.org>
4987
4988         nl_langinfo tests: Avoid gcc warning.
4989         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
4990
4991 2010-12-19  Bruno Haible  <bruno@clisp.org>
4992
4993         mknod: Avoid error in C++ mode on OSF/1 with GCC.
4994         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
4995         _GL_CXXALIAS_SYS.
4996
4997 2010-12-19  Bruno Haible  <bruno@clisp.org>
4998
4999         stdbool: Relax test.
5000         * tests/test-stdbool.c (e): Don't require that casts from a variable's
5001         address to 'bool' work in static initializer, for compilers other than
5002         GCC.
5003
5004 2010-12-19  Bruno Haible  <bruno@clisp.org>
5005
5006         ftello: Add missing declaration on OSF/1 5.1.
5007         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
5008         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
5009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
5010         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
5011         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
5012
5013 2010-12-19  Bruno Haible  <bruno@clisp.org>
5014
5015         fseeko: Add missing declaration on OSF/1 5.1.
5016         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
5017         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
5018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
5019         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
5020         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
5021
5022 2010-12-19  Bruno Haible  <bruno@clisp.org>
5023
5024         fchdir: Add missing declaration on OSF/1 5.1.
5025         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
5026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
5027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
5028         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
5029         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
5030
5031 2010-12-19  Bruno Haible  <bruno@clisp.org>
5032
5033         relocatable-prog-wrapper: Separate from relocatable-prog.
5034         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
5035         uninstall-relocwrapper rule here.
5036         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
5037         Reported by Ian Beckwith <ianb@erislabs.net>.
5038
5039 2010-12-19  Bruno Haible  <bruno@clisp.org>
5040
5041         unistr/u8-mbsnlen: Add missing dependency.
5042         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
5043         Reported by Ian Beckwith <ianb@erislabs.net>.
5044
5045 2010-12-19  Bruno Haible  <bruno@clisp.org>
5046
5047         iconv: Make it possible again to use this module without 'iconv-h'.
5048         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
5049         if it is not defined.
5050         Reported by Ian Beckwith <ianb@erislabs.net>.
5051
5052 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5053
5054         acl: port to Solaris 8 when copying from tmpfs to ufs
5055         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
5056         error number.  Problem observed on Solaris 8 with latest
5057         coreutils, with "mv A B", where A is on a tmpfs file system and B
5058         is on a ufs file system.  This caused coreutils' mv/part-symlink
5059         test to fail.
5060
5061         tests: set fail=0 at start
5062         * tests/init.sh (setup_): Move fail=0 initialization here ...
5063         (mktempd_): ... from here, so that tests can rely on fail being
5064         set to 0 initially.  This fixes a problem in coreutils; see:
5065         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
5066
5067 2010-12-18  Bruno Haible  <bruno@clisp.org>
5068
5069         memmem-simple: Stylistic changes.
5070         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
5071         Fix preprocessor directive indentation.
5072
5073 2010-12-15  Pádraig Brady <P@draigBrady.com>
5074
5075         memmem, memmem-simple: reorganize and expand empty needle check
5076         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
5077         functional checks to memmem-simple so that one has a fully functional
5078         memmem by using just this module.
5079         Restrict the performance only check to the memmem module.
5080         Also expand the empty needle check to ensure the correct
5081         pointer is returned, not just a non NULL pointer.
5082         * doc/glibc-functions/memmem.texi: Rearrange the portability
5083         documentation to correlate with the rearranged checks.
5084         Clarify exactly how the memmem and memmem-simple modules
5085         relate to each other.
5086
5087 2010-12-15  Pádraig Brady <P@draigBrady.com>
5088             Bruno Haible  <bruno@clisp.org>
5089
5090         Improve cross-compilation guesses for uClibc.
5091         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
5092         that uClibc does not have the glibc bug.
5093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5094         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
5095
5096 2010-12-14  Eric Blake  <eblake@redhat.com>
5097
5098         configmake: provide fallbacks for oldest supported autotools
5099         * m4/configmake.m4: New file.
5100         * modules/configmake (Files): Ship it.
5101         (configure.ac): Use it to guarantee fallbacks.
5102
5103 2010-12-13  Pádraig Brady <P@draigBrady.com>
5104
5105         read-file: Improve handling of large files
5106         * lib/read-file.c (fread_file): Minimize realloc()s
5107         for regular files, and better manage sizes around SIZE_MAX.
5108
5109 2010-12-13  Eric Blake  <eblake@redhat.com>
5110
5111         cloexec, fcntl: relax license
5112         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
5113         consent from all contributors.
5114         * modules/fcntl (License): Likewise.
5115
5116 2010-12-10  Bruno Haible  <bruno@clisp.org>
5117
5118         Tests for module 'pipe-posix'.
5119         * modules/pipe-posix-tests: New file.
5120         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5121
5122 2010-12-10  Bruno Haible  <bruno@clisp.org>
5123
5124         pipe-posix: Make it work in C++ mode.
5125         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5126         (pipe): Use common idiom, not a macro definition.
5127         * lib/pipe.c: New file.
5128         * m4/pipe.m4: New file.
5129         * modules/pipe-posix (Description): Enhance.
5130         (Files): Add lib/pipe.c, m4/pipe.m4.
5131         (configure.ac): Invoke gl_FUNC_PIPE.
5132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
5133         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
5134         * tests/test-unistd-c++.cc: Check the signature of pipe.
5135
5136 2010-12-10  Bruno Haible  <bruno@clisp.org>
5137
5138         Rename module 'pipe' to 'spawn-pipe'.
5139         * modules/spawn-pipe: New file, renamed from modules/pipe.
5140         (Files, configure.ac, Makefile.am): Update.
5141         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
5142         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
5143         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
5144         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
5145         "spawn-pipe.h" instead of "pipe.h".
5146         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
5147         to gl_SPAWN_PIPE.
5148         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
5149         (Files, Makefile.am): Update.
5150         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
5151         Update.
5152         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
5153         Include "spawn-pipe.h" instead of "pipe.h".
5154         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
5155         * lib/javacomp.c: Likewise.
5156         * lib/javaversion.c: Likewise.
5157         * lib/pipe-filter-gi.c: Likewise.
5158         * lib/pipe-filter-ii.c: Likewise.
5159         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
5160         * modules/javacomp (Depends-on): Likewise.
5161         * modules/javaversion (Depends-on): Likewise.
5162         * modules/pipe-filter-gi (Depends-on): Likewise.
5163         * modules/pipe-filter-ii (Depends-on): Likewise.
5164         * MODULES.html.sh (Executing programs): Update.
5165         * NEWS: Mention the change.
5166
5167 2010-12-10  Eric Blake  <eblake@redhat.com>
5168
5169         pipe-posix: new module
5170         * modules/pipe-posix: New file.
5171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
5172         (gl_UNISTD_H): Check for declaration.
5173         * modules/unistd (Makefile.am): Substitute it.
5174         * lib/unistd.in.h (pipe): Provide it for mingw.
5175         * doc/posix-functions/pipe.texi (pipe): Update documentation.
5176         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
5177
5178 2010-12-07  Bruno Haible  <bruno@clisp.org>
5179
5180         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
5181         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
5182         u8_strcmp_gnu.
5183         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
5184
5185 2010-12-06  Bruno Haible  <bruno@clisp.org>
5186
5187         Update internal documentation.
5188         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
5189
5190 2010-12-04  Bruno Haible  <bruno@clisp.org>
5191
5192         Put more information about failed tests into the test return codes.
5193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
5194         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
5195         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5196         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5197         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5198         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5199         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5200         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5201         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
5202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5203         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5204         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5205         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5206         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5207         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
5208         returns a bit mask.
5209         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5210         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5211         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5212         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5213         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5214         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5217         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5218         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5219         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5220         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5221         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5222         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5223         * m4/link.m4 (gl_FUNC_LINK): Likewise.
5224         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5225         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
5226         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
5227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5228         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
5229         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5230         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5231         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5232         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5233         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5234         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5235         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5236         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5237         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5238         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
5239         gl_PRINTF_PRECISION): Likewise.
5240         * m4/regex.m4 (gl_REGEX): Likewise.
5241         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5242         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5243         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
5244         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5246         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5248         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
5249         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5250         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5251         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5252         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5253         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5254         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5255         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5256         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5257         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5258         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5260         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
5261         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
5262         enumerated value.
5263         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
5264
5265 2010-12-04  Bruno Haible  <bruno@clisp.org>
5266
5267         Update for Solaris 11 2010-11.
5268         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5269         Express, released in November 2010.
5270
5271 2010-12-04  Bruno Haible  <bruno@clisp.org>
5272
5273         nproc: Relax license.
5274         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5275         and Paul Eggert.
5276         Requested by Ludovic Courtès <ludo@gnu.org>.
5277
5278 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5279
5280         utimecmp: fine-grained src to nearby coarse-grained dest
5281
5282         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
5283         and the source is on a file system with higher-resolution time
5284         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
5285         not work, and the time stamps are close together, the algorithm to
5286         determine the exact resolution from the read-back mtime was buggy:
5287         it had a "!=" where it should have had an "==".  This bug has been
5288         in the code ever since it was introduced to gnulib.
5289         Problem reported by Dan Jacobson in
5290         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
5291
5292 2010-11-30  Bruno Haible  <bruno@clisp.org>
5293
5294         strerror_r-posix: Fix autoconf test.
5295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
5296
5297 2010-11-28  Bruno Haible  <bruno@clisp.org>
5298             Paul Eggert  <eggert@cs.ucla.edu>
5299
5300         Tests for module 'getdomainname'.
5301         * modules/getdomainname-tests: New file.
5302         * tests/test-getdomainname.c: New file, based on
5303         tests/test-gethostname.c.
5304
5305 2010-11-28  Bruno Haible  <bruno@clisp.org>
5306             Paul Eggert  <eggert@cs.ucla.edu>
5307
5308         getdomainname: Use the system function when possible.
5309         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
5310         (getdomainname): Replace if needed. Provide the declaration if it is
5311         missing. Don't use _GL_CXXALIAS_SYS_CAST.
5312         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
5313         (getdomainname): When the system has getdomainname, call the system
5314         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
5315         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5316         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
5317         found in libnsl. Look for the declaration also in <netdb.h>. Replace
5318         the function if its second argument is of type 'int' or if it is found
5319         in libnsl.
5320         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
5321         <sys/systeminfo.h> and sysinfo().
5322         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
5323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5324         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
5325         HAVE_GETDOMAINNAME.
5326         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
5327         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
5328         * doc/glibc-functions/getdomainname.texi: Document the problems with
5329         the getdomainname declaration.
5330
5331 2010-11-28  Bruno Haible  <bruno@clisp.org>
5332
5333         sys_socket: Ensure ss_family field on AIX.
5334         * lib/sys_socket.in.h (ss_family): New macro definition.
5335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5336         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5337         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5338         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5339         * modules/sys_socket (Makefile.am): Substitute
5340         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5341         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5342
5343 2010-11-27  Bruno Haible  <bruno@clisp.org>
5344
5345         readline: Improve configure output.
5346         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5347         "checking for readline..." result understandable.
5348
5349 2010-11-27  Bruno Haible  <bruno@clisp.org>
5350
5351         *printf-posix: Detect a bug on Solaris 10/x86.
5352         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5353         for floating-point output.
5354         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5355         directive.
5356         * tests/test-snprintf-posix.h (test_function): Likewise.
5357         * tests/test-sprintf-posix.h (test_function): Likewise.
5358         * tests/test-vasprintf-posix.c (test_function): Likewise.
5359         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
5360         * doc/posix-functions/printf.texi: Likewise.
5361         * doc/posix-functions/snprintf.texi: Likewise.
5362         * doc/posix-functions/sprintf.texi: Likewise.
5363         * doc/posix-functions/vfprintf.texi: Likewise.
5364         * doc/posix-functions/vprintf.texi: Likewise.
5365         * doc/posix-functions/vsnprintf.texi: Likewise.
5366         * doc/posix-functions/vsprintf.texi: Likewise.
5367         * doc/glibc-functions/obstack_printf.texi: Likewise.
5368         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5369
5370 2010-11-27  Bruno Haible  <bruno@clisp.org>
5371
5372         Fix link error when module libunistring-optional is in use.
5373         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
5374         * modules/striconveha-tests (Makefile.am): Likewise.
5375
5376 2010-11-27  Bruno Haible  <bruno@clisp.org>
5377
5378         regex: Mention link dependencies.
5379         * modules/regex (Link): New section.
5380         * modules/rpmatch (Link): Likewise.
5381         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
5382
5383 2010-11-27  Bruno Haible  <bruno@clisp.org>
5384
5385         ftoastr: Fix compilation error on Solaris.
5386         * lib/ftoastr.c: Include <config.h>.
5387
5388 2010-11-27  Bruno Haible  <bruno@clisp.org>
5389
5390         getloadavg: Update documentation.
5391         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5392
5393 2010-11-27  Bruno Haible  <bruno@clisp.org>
5394
5395         sys_socket: Fix test whether the functions are declared.
5396         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
5397         not <sys/select.h>.
5398
5399 2010-11-27  Bruno Haible  <bruno@clisp.org>
5400
5401         getpass: Make sure to get system declaration on some platforms.
5402         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
5403         gl_USE_SYSTEM_EXTENSIONS.
5404         * modules/getpass (Depends-on): Add extensions.
5405
5406 2010-11-26  Bruno Haible  <bruno@clisp.org>
5407
5408         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
5409         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
5410         'iconv' module is present.
5411         (ICONV_CONST): New macro.
5412         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
5413         ICONV_CONST.
5414         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
5415         set ICONV_CONST.
5416         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
5417         here.
5418         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
5419         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
5420         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
5421         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
5422         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
5423         present.
5424
5425 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         ftoastr: comment fix
5428         * lib/ftoastr.c: "little" -> "little or no" in comment
5429
5430 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5431
5432         stdint: port to GCC 4.3 + OSX + Octave
5433         On this platform, stdint.h is buggy and defines int64_t to long
5434         long int.  The replacement defined it to long int, causing
5435         problems with C++ style name mangling.  Instead, trust the system
5436         definition if INT64_MAX is defined, and likewise for the unsigned
5437         variant.   Problem reported by Jarno Rajahalme in
5438         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
5439         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
5440         and don't mess with int64_t and INT64_MAX in this case.
5441         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
5442
5443 2010-11-24  Bruno Haible  <bruno@clisp.org>
5444
5445         doc: Corrections regarding MacOS X 10.4 and 10.5.
5446         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5447         MacOS X.
5448         Reported by Simon Josefsson.
5449
5450 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
5451
5452         Uninstall ".bin" files installed by relocwrapper.
5453         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
5454         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
5455         unless it is already there.
5456
5457 2010-11-21  Bruno Haible  <bruno@clisp.org>
5458
5459         Update for NetBSD 5.0.
5460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5461         NetBSD; the test fails on NetBSD 5.0.
5462         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5463         about NetBSD.
5464
5465 2010-11-21  Bruno Haible  <bruno@clisp.org>
5466
5467         Update for HP-UX 11.23 and HP-UX 11.31.
5468         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5469         HP-UX.
5470
5471 2010-11-21  Bruno Haible  <bruno@clisp.org>
5472
5473         Update for MacOS X 10.5.
5474         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5475         MacOS X; the test fails on MacOS X 10.5.8.
5476         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5477         about MacOS X.
5478
5479 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5480
5481         bootstrap: add bootstrap_sync option.
5482         See discussion at
5483         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5485         * build-aux/bootstrap: Accept --bootstrap-sync to update
5486         bootstrap if it is not identical to the local gnulib's
5487         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5488         enable this by default.  Accept --no-bootstrap-sync to disable
5489         it.
5490
5491 2010-11-20  Bruno Haible  <bruno@clisp.org>
5492
5493         Ensure that <features.h> is included before __GLIBC__ is tested.
5494         * lib/printf-parse.h: Include <features.h>.
5495         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5496         Reported by Mike Frysinger <vapier@gentoo.org>.
5497
5498         Ensure that <features.h> is included before __GLIBC__ is tested.
5499         * lib/wchar.in.h: Include <features.h>.
5500         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5501         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5502         Reported by Mike Frysinger <vapier@gentoo.org>.
5503
5504         Ensure that <features.h> is included before __GLIBC__ is tested.
5505         * lib/arpa_inet.in.h: Include <features.h>.
5506         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
5507         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
5508         Reported by Mike Frysinger <vapier@gentoo.org>.
5509
5510         Ensure that <features.h> is included before __GLIBC__ is tested.
5511         * build-aux/link-warning.h: Include <features.h>.
5512         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
5513         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
5514         Reported by Mike Frysinger <vapier@gentoo.org>.
5515
5516         Ensure that <features.h> is included before __GLIBC__ is tested.
5517         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
5518         Reported by Mike Frysinger <vapier@gentoo.org>.
5519
5520 2010-11-20  Bruno Haible  <bruno@clisp.org>
5521
5522         memmem: Fix autoconf test.
5523         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5524
5525 2010-11-20  Bruno Haible  <bruno@clisp.org>
5526
5527         Port to uClibc.
5528         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
5529         * lib/fcntl.in.h: Likewise.
5530         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
5531         * lib/mbrtowc.c (mbrtowc): Likewise.
5532         * lib/relocatable.c (find_shared_library_fullname): Likewise.
5533         * lib/strerror_r.c: Likewise.
5534         * lib/unistr/u8-strnlen.c: Likewise.
5535         * lib/vasnprintf.c (decimal_point_char): Likewise.
5536         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5537         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5538         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5539         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5540         * tests/test-sigaction.c (handler, main): Likewise.
5541         * lib/freading.h: Treat uClibc like a non-glibc platform.
5542         * lib/freading.c: Likewise.
5543         * lib/gettext.h: Likewise.
5544         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
5545         Likewise.
5546         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
5547         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5548         * lib/propername.c (proper_name_utf8): Likewise.
5549         * lib/spawn.in.h: Likewise.
5550         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
5551         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
5552         mem_cd_iconveh_internal): Likewise.
5553         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
5554         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5555         strstr, strcasestr): Likewise.
5556         * lib/unicodeio.c (unicode_to_mb): Likewise.
5557         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
5558         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
5559         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
5560         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
5561         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
5562         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
5563         * lib/unistr/u8-stpncpy.c: Likewise.
5564         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5565         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
5566         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5567         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5568         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5569         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
5570         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
5571         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
5572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5573         Likewise.
5574         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5575         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5576         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5577         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5578         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5579         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5580         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5581         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5582         * tests/test-getopt.h (OPTIND_MIN): Likewise.
5583         * tests/test-striconveha.c (main): Likewise.
5584         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5585         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
5586         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
5587         * doc/posix-functions/getline.texi: Likewise.
5588         Reported by Mike Frysinger <vapier@gentoo.org>.
5589
5590 2010-11-20  Bruno Haible  <bruno@clisp.org>
5591
5592         nproc: Fix condition.
5593         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
5594         HAVE_PTHREAD_AFFINITY_NP.
5595
5596 2010-11-20  Bruno Haible  <bruno@clisp.org>
5597
5598         Fix a comment.
5599         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
5600
5601 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5602
5603         ftoastr: don't assume snprintf
5604         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
5605         Implement a subset of snprintf here, by using sprintf safely.
5606         * modules/ftoastr (Depends-on): Remove snprintf.
5607
5608 2010-11-19  Jim Meyering  <meyering@redhat.com>
5609
5610         test-rename.h: fix compilation failure
5611         * tests/test-rename.h (test_rename): Add omitted "}".
5612
5613 2010-11-17  Jim Meyering  <meyering@redhat.com>
5614
5615         maint.mk: add a URL discussing the no-@acronym policy
5616         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
5617
5618 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5619
5620         ftoastr: depend on snprintf, improve comments
5621         * lib/ftoastr.c: Also mention Loitsch's draft.
5622         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
5623         needed in the current implementation, but it might simplify
5624         speeding up the code later.
5625         * modules/ftoastr: Depend on snprintf; this improves portability.
5626         Suggested by Bruno Haible in the same email.
5627
5628         ftoastr: port to hosts lacking strtof and strtold
5629         Problem reported by Bruno Haible in
5630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
5631         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
5632         environment and strtold (and presumably strtof) are not available.
5633         * modules/ftoastr (Files): Add m4/c-strtod.m4.
5634         (configure.ac): Require gl_C99_STRTOLD.
5635
5636 2010-11-18  Bruno Haible  <bruno@clisp.org>
5637
5638         c-strtold: Avoid link error on AIX 7.
5639         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
5640         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
5641         (gl_C_STRTOLD): Test whether strtold_l exists.
5642         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5643
5644 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5645
5646         intprops: new macro INT_BITS_STRLEN_BOUND
5647         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
5648         ftoastr.h.  This exposes an internal of intprops.h that was formerly
5649         not exposed.  Also, it uses a slightly tighter bound than before;
5650         though this makes no practical difference, we might as well be as
5651         tight as we easily can.
5652
5653         ftoastr: new module, for lossless conversion of floats to short strings
5654         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
5655         * modules/ftoastr: New files.
5656
5657 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5658
5659         bootstrap: port to Solaris sed
5660         * build-aux/bootstrap (get_version): Port to Solaris sed.
5661         See Ralf Wildenhues's note in
5662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
5663
5664 2010-11-14  Jim Meyering  <meyering@redhat.com>
5665
5666         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
5667         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
5668         and move definition closer to sole use.
5669
5670 2010-11-13  Jim Meyering  <meyering@redhat.com>
5671
5672         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
5673         Now we require at least autoconf-2.59, which means the work-around
5674         is no longer needed.
5675         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
5676         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5677         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5678         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5679         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5680
5681 2010-11-13  Bruno Haible  <bruno@clisp.org>
5682
5683         rename, renameat: Avoid test failures at NFS mounted locations.
5684         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5685         functions.
5686         (test_rename): Use assert_nonexistent.
5687         * tests/test-rename.c: Include <dirent.h>.
5688         * tests/test-renameat.c: Likewise.
5689         Reported by Gary V. Vaughan <gary@gnu.org>.
5690
5691         rename, renameat: Document Linux bug with NFS
5692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
5693         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
5694         * doc/posix-functions/renameat.texi: Likewise.
5695         Suggested by Eric Blake.
5696
5697 2010-11-13  Bruno Haible  <bruno@clisp.org>
5698
5699         rename test: Add comments.
5700         * tests/test-rename.h (test_rename): Add structure and comments.
5701
5702 2010-11-13  Eric Blake  <eblake@redhat.com>
5703
5704         maintainer-makefile: cover a few more files
5705         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
5706         scripts generated within C files, for libvirt.
5707
5708 2010-11-13  Bruno Haible  <bruno@clisp.org>
5709
5710         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
5711         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
5712         character, return the number of bytes that belong together, not always
5713         1.
5714         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
5715         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5716         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5717         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
5718         number of bytes of an invalid character.
5719         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
5720         (main): Invoke it.
5721         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
5722         results.
5723         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
5724         malformed byte sequences.
5725         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
5726         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
5727         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
5728         Reported by Ben Pfaff and Paolo Bonzini.
5729
5730 2010-11-13  Bruno Haible  <bruno@clisp.org>
5731
5732         openat: Work around glibc bug with fchownat() and empty file names.
5733         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
5734         (gl_FUNC_FCHOWNAT): Invoke it.
5735         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
5736         * doc/posix-functions/fchownat.texi: Document the glibc bug.
5737         Reported by Gary V. Vaughan <gary@gnu.org>.
5738
5739 2010-11-13  Bruno Haible  <bruno@clisp.org>
5740
5741         openat: Ensure autoconf macro ordering.
5742         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
5743         gl_USE_SYSTEM_EXTENSIONS.
5744         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
5745
5746 2010-11-13  Bruno Haible  <bruno@clisp.org>
5747
5748         Update comments.
5749         * lib/unistr/u8-check.c: Update file name in comments.
5750         * lib/unistr/u8-mblen.c: Likewise.
5751         * lib/unistr/u8-prev.c: Likewise.
5752         * lib/unistr/u8-strmblen.c: Likewise.
5753         * lib/unistr/u8-strmbtouc.c: Likewise.
5754
5755 2010-11-13  Jim Meyering  <meyering@redhat.com>
5756
5757         tests: avoid test failure on Solaris 10 due to lack of PATH export
5758         * tests/test-update-copyright.sh: Don't forget to export PATH.
5759
5760         init.sh: ensure that IFS is defined, just in case...
5761         * tests/init.sh (setup_): Ensure that IFS is defined,
5762         so that saving and restoring it works as expected.  This
5763         appears to be useful at least for an old version of dash
5764         from a long time ago (RH 6).  See here for details:
5765         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
5766
5767         maint.mk: tighten "test a == b" check
5768         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
5769         test to files that contain something like #!/bin/sh.
5770         Without this, coreutils would get two false positives in
5771         the comments of C source files.
5772
5773 2010-11-12  Eric Blake  <eblake@redhat.com>
5774
5775         bootstrap: fix typo in previous attempt
5776         * build-aux/bootstrap (buildreq): Correct the grouping.
5777         Reported by Paul Eggert.
5778
5779         maintainer-makefile: prohibit test x == x
5780         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
5781         Based on a report by Matthias Bolte.
5782
5783         bootstrap: allow FreeBSD gzip
5784         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
5785         which has no '.' and goes to stderr.
5786         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
5787         Reported by Matthias Bolte.
5788
5789         maintainer-makefile: check for i18n setup
5790         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
5791         will likely work.
5792
5793 2010-11-12  Bruno Haible  <bruno@clisp.org>
5794
5795         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
5796         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
5797         * lib/nanosleep.c (nanosleep): Likewise.
5798
5799 2010-11-11  Bruno Haible  <bruno@clisp.org>
5800
5801         fcntl-h: Fix for use of C++ on glibc systems.
5802         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5803         also on glibc systems in C++ mode.
5804         Reported by Gary V. Vaughan <gary@gnu.org>.
5805
5806 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5807
5808         mknod: avoid false failure with dash
5809         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
5810
5811 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5812
5813         unlink: Fix "is it should" typo in diagnostic.
5814         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
5815         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
5816
5817 2010-11-11  Bruno Haible  <bruno@clisp.org>
5818
5819         Tests for module 'strerror_r-posix'.
5820         * modules/strerror_r-posix-tests: New file.
5821         * tests/test-strerror_r.c: New file.
5822         * tests/test-string-c++.cc: Check the signature of strerror_r.
5823
5824         New module 'strerror_r-posix'.
5825         * lib/string.in.h (strerror_r): New declaration.
5826         * lib/strerror_r.c: New file.
5827         * m4/strerror_r.m4: New file.
5828         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
5829         of strerror_r.
5830         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
5831         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5832         * modules/strerror_r-posix: New file.
5833         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
5834         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5835         * doc/posix-functions/strerror_r.texi: Mention the new module and the
5836         portability problems.
5837
5838 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
5839
5840         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
5841         line is also considered for output. Quoted function name in shell
5842         command, so temporary files for functions like MyClass::operator()
5843         are removed correctly without errors.
5844
5845 2010-11-09  Bruno Haible  <bruno@clisp.org>
5846
5847         * doc/posix-functions/strerror.texi: List more failing platforms.
5848
5849         * doc/posix-functions/strerror.texi: Add a comment.
5850
5851 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         fdopendir: fix bug on MacOS X when low on file descriptors
5854
5855         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
5856         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
5857         All callers changed.
5858         (fdopendir): Invoke save_cwd at the top level, not after using
5859         multiple dup() calls to use up file descriptors.  Then retry
5860         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
5861         less than the maximum number of open file descriptors, because
5862         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
5863         on Mac OS X 10.6.4 for tar 1.24
5864         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
5865         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
5866         and for tar 1.25
5867         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
5868
5869 2010-11-07  Bruno Haible  <bruno@clisp.org>
5870
5871         vasnprintf: Support I flag on glibc systems.
5872         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
5873         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
5874         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
5875         snprintf function.
5876         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
5877         glibc systems.
5878         * tests/test-vasnprintf-posix3.c: New file.
5879         * modules/vasnprintf-posix-tests (Files): Add it.
5880         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
5881
5882 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5883
5884         [html] Fix copy/paste bug: Use unique name for compiler warnings.
5885         * MODULES.html.sh: For compiler warnings, use name
5886         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
5887
5888 2010-11-05  Eric Blake  <eblake@redhat.com>
5889
5890         ceil, floor: avoid spurious failure with icc
5891         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
5892         [denormals-as-zero] when optimizing without -mieee-fp option.
5893         * tests/test-floorf2.c (floorf_reference): Likewise.
5894         * tests/test-ceilf1.c (dummy): New function.
5895         (main): Use it to outsmart icc's optimization.
5896         * tests/test-floorf1.c (dummy, main): Likewise.
5897
5898         tests: require working signbit
5899         * modules/ceilf-tests (Depends-on): Add signbit.
5900         * modules/ceill-tests (Depends-on): Likewise.
5901         * modules/floorf-tests (Depends-on): Likewise.
5902         * modules/floorl-tests (Depends-on): Likewise.
5903         * modules/round-tests (Depends-on): Likewise.
5904         * modules/roundf-tests (Depends-on): Likewise.
5905         * modules/roundl-tests (Depends-on): Likewise.
5906         * modules/trunc-tests (Depends-on): Likewise.
5907         * modules/truncf-tests (Depends-on): Likewise.
5908         * modules/truncl-tests (Depends-on): Likewise.
5909
5910         strtod: work around icc bug
5911         * lib/strtod.c (minus_zero): Define to working value.
5912         (strtod): Use it to avoid icc bug.
5913
5914         copysign: enhance tests
5915         * modules/copysign-tests (Files): Add minus-zero.h.
5916         * tests/test-copysign.c (main): Also test zeros.
5917
5918 2010-11-04  Eric Blake  <eblake@redhat.com>
5919
5920         ceil, floor, round, trunc: enhance tests of -0
5921         * tests/test-ceilf1.c (main): Ensure correct sign of result.
5922         * tests/test-ceill.c (main): Likewise.
5923         * tests/test-floorf1.c (main): Likewise.
5924         * tests/test-floorl.c (main): Likewise.
5925         * tests/test-round1.c (main): Likewise.
5926         * tests/test-roundf1.c (main): Likewise.
5927         * tests/test-roundl.c (main): Likewise.
5928         * tests/test-trunc1.c (main): Likewise.
5929         * tests/test-truncf1.c (main): Likewise.
5930         * tests/test-truncl.c (main): Likewise.
5931
5932 2010-11-04  Eric Blake  <eblake@redhat.com>
5933
5934         frexp, tests: work around ICC bug with -zero
5935         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
5936         works with more compilers.
5937         * tests/minus-zero.h: New file.
5938         * modules/ceilf-tests (Files): Include it.
5939         * modules/ceill-tests (Files): Likewise.
5940         * modules/floorf-tests (Files): Likewise.
5941         * modules/floorl-tests (Files): Likewise.
5942         * modules/frexp-nolibm-tests (Files): Likewise.
5943         * modules/frexp-tests (Files): Likewise.
5944         * modules/frexpl-nolibm-tests (Files): Likewise.
5945         * modules/frexpl-tests (Files): Likewise.
5946         * modules/isnan-tests (Files): Likewise.
5947         * modules/isnand-nolibm-tests (Files): Likewise.
5948         * modules/isnand-tests (Files): Likewise.
5949         * modules/isnanf-nolibm-tests (Files): Likewise.
5950         * modules/isnanf-tests (Files): Likewise.
5951         * modules/isnanl-nolibm-tests (Files): Likewise.
5952         * modules/isnanl-tests (Files): Likewise.
5953         * modules/round-tests (Files): Likewise.
5954         * modules/roundf-tests (Files): Likewise.
5955         * modules/roundl-tests (Files): Likewise.
5956         * modules/ldexpl-tests (Files): Likewise.
5957         * modules/signbit-tests (Files): Likewise.
5958         * modules/snprintf-posix-tests (Files): Likewise.
5959         * modules/sprintf-posix-tests (Files): Likewise.
5960         * modules/strtod-tests (Files): Likewise.
5961         * modules/trunc-tests (Files): Likewise.
5962         * modules/truncf-tests (Files): Likewise.
5963         * modules/truncl-tests (Files): Likewise.
5964         * modules/vsnprintf-posix-tests (Files): Likewise.
5965         * modules/vsprintf-posix-tests (Files): Likewise.
5966         * modules/vasnprintf-posix-tests (Files): Likewise.
5967         * modules/vasprintf-posix-tests (Files): Likewise.
5968         * tests/test-ceilf1.c (main): Use it.
5969         * tests/test-ceill.c (main): Likewise.
5970         * tests/test-floorf1.c (main): Likewise.
5971         * tests/test-floorl.c (main): Likewise.
5972         * tests/test-frexp.c (main): Likewise.
5973         * tests/test-frexpl.c (main): Likewise.
5974         * tests/test-isnan.c (main): Likewise.
5975         * tests/test-isnand.h (main): Likewise.
5976         * tests/test-isnanf.h (main): Likewise.
5977         * tests/test-isnanl.h (main): Likewise.
5978         * tests/test-ldexpl.c (main): Likewise.
5979         * tests/test-round.c (main): Likewise.
5980         * tests/test-roundf.c (main): Likewise.
5981         * tests/test-roundl.c (main): Likewise.
5982         * tests/test-signbit.c (test_signbitf, test_signbitd)
5983         (test_signbitl): Likewise.
5984         * tests/test-snprintf-posix.h (test_function): Likewise.
5985         * tests/test-sprintf-posix.h (test_function): Likewise.
5986         * tests/test-strtod.c (main): Likewise.
5987         * tests/test-trunc1.c (main): Likewise.
5988         * tests/test-truncf1.c (main): Likewise.
5989         * tests/test-truncl.c (main): Likewise.
5990
5991         isnanl: work around icc bug
5992         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
5993
5994 2010-11-03  Eric Blake  <eblake@redhat.com>
5995
5996         tests: fix compiler warnings
5997         * tests/test-getopt.h (test_getopt): Fix condition.
5998         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5999         * tests/test-pipe2.c (main): Likewise.
6000         * tests/test-quotearg-simple.c (main): Avoid icc warning.
6001
6002         utimens: fix broken m4 test
6003         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
6004
6005 2010-10-28  Bruno Haible  <bruno@clisp.org>
6006
6007         posix_spawn*, getdtablesize: Relax license.
6008         * modules/posix_spawn (License): Change to LGPLv2+.
6009         * modules/posix_spawnp (License): Likewise.
6010         * modules/posix_spawn-internal (License): Likewise.
6011         * modules/posix_spawnattr_init (License): Likewise.
6012         * modules/posix_spawnattr_getflags (License): Likewise.
6013         * modules/posix_spawnattr_setflags (License): Likewise.
6014         * modules/posix_spawnattr_getpgroup (License): Likewise.
6015         * modules/posix_spawnattr_setpgroup (License): Likewise.
6016         * modules/posix_spawnattr_getschedparam (License): Likewise.
6017         * modules/posix_spawnattr_setschedparam (License): Likewise.
6018         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
6019         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
6020         * modules/posix_spawnattr_getsigdefault (License): Likewise.
6021         * modules/posix_spawnattr_setsigdefault (License): Likewise.
6022         * modules/posix_spawnattr_getsigmask (License): Likewise.
6023         * modules/posix_spawnattr_setsigmask (License): Likewise.
6024         * modules/posix_spawnattr_destroy (License): Likewise.
6025         * modules/posix_spawn_file_actions_init (License): Likewise.
6026         * modules/posix_spawn_file_actions_addclose (License): Likewise.
6027         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
6028         * modules/posix_spawn_file_actions_addopen (License): Likewise.
6029         * modules/posix_spawn_file_actions_destroy (License): Likewise.
6030         * modules/getdtablesize (License): Likewise.
6031         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
6032
6033 2010-10-26  Bruno Haible  <bruno@clisp.org>
6034
6035         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
6036         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
6037         Cygwin and mingw.
6038         Suggested by Eric Blake.
6039
6040 2010-10-26  Bruno Haible  <bruno@clisp.org>
6041
6042         stdio: Work around compilation error due to renameat() on Solaris 10.
6043         * lib/stdio.in.h: Include <unistd.h> on Solaris.
6044         * lib/renameat.c: Don't include <unistd.h> here.
6045         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
6046         Reported by Paul Eggert and Eric Blake.
6047
6048 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6049
6050         renameat: port to Solaris 10, which declares renameat in unistd.h
6051
6052         * lib/renameat.c: Include unistd.h before stdio.h, because
6053         Solaris 10 declares renameat in unistd.h.  Problem encountered
6054         when building GNU tar 1.24 on Solaris 10.
6055
6056 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6057
6058         fdopendir: fix C89 compilation
6059         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
6060         compilers.
6061
6062 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         inttostr: simplify by removing unnecessary redundancy
6065         * lib/anytostr.c: Don't include verify.h.
6066         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
6067         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
6068         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
6069         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
6070         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
6071         Likewise.
6072         * modules/inttostr (Depends-on): Remove 'verify'.
6073
6074 2010-10-23  Bruno Haible  <bruno@clisp.org>
6075
6076         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
6077         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
6078         Reported by Eric Blake.
6079
6080 2010-10-23  Bruno Haible  <bruno@clisp.org>
6081
6082         Tests: Fix LOCALE_JA on MirBSD 10.
6083         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
6084         to an UTF-8 locale.
6085         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
6086         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6087         Reported by Eric Blake.
6088
6089 2010-10-21  Bruno Haible  <bruno@clisp.org>
6090
6091         nl_langinfo test: Avoid test failure on NetBSD 5.
6092         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
6093         Reported by Eric Blake.
6094
6095 2010-10-21  Eric Blake  <eblake@redhat.com>
6096
6097         c-stack: work around libsigsegv 2.8 bug
6098         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
6099         overflow on at least PowerPC64.
6100
6101 2010-10-17  Bruno Haible  <bruno@clisp.org>
6102
6103         userspec: Drop redundant file.
6104         * modules/userspec (Files): Remove lib/inttostr.h.
6105
6106 2010-10-17  Bruno Haible  <bruno@clisp.org>
6107
6108         nl_langinfo tests: Silence some warnings.
6109         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
6110         Reported by Jim Meyering.
6111
6112 2010-10-17  Bruno Haible  <bruno@clisp.org>
6113
6114         Make use of GCC's attribute __alloc_size__.
6115         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
6116         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
6117         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
6118         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
6119         __alloc_size__.
6120         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6121         Suggested by Jim Meyering.
6122
6123 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6124
6125         bootstrap: anchor .gitignore entries.
6126         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6127         with...
6128         (insert_vc_ignore): ... this new function, which prepends `/' to
6129         all .gitignore entries before passing them to
6130         insert_sorted_if_absent.
6131
6132 2010-10-16  Bruno Haible  <bruno@clisp.org>
6133
6134         nextafter: Fix configure check.
6135         * modules/nextafter (configure.ac): Correct expected prototype.
6136
6137 2010-10-16  Bruno Haible  <bruno@clisp.org>
6138
6139         termios: Update documentation.
6140         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
6141
6142 2010-10-16  Bruno Haible  <bruno@clisp.org>
6143
6144         tests: Make them compile with TinyCC.
6145         * tests/test-strstr.c (main): Remove parentheses around array
6146         initializer.
6147
6148 2010-10-15  Eric Blake  <eblake@redhat.com>
6149
6150         ignore-value: make header idempotent
6151         * lib/ignore-value.h: Add double-inclusion guards.
6152         Reported by Stefan Berger.
6153
6154 2010-10-15  Jim Meyering  <meyering@redhat.com>
6155
6156         GNUmakefile: handle "stable" target, not "major"
6157         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
6158         lists in maint.mk and announce-gen.  Without this, "make stable"
6159         would fail to ensure that $(VERSION) is up to date.
6160
6161 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
6162
6163         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
6164         & co.
6165
6166 2010-10-14  Bruno Haible  <bruno@clisp.org>
6167
6168         vasnprintf: Don't set errno to 0.
6169         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
6170         block that sets it to 0.
6171         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6172
6173 2010-10-14  Bruno Haible  <bruno@clisp.org>
6174
6175         socketlib: Fix.
6176         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
6177         gl_PREREQ_SYS_H_WINSOCK2.
6178         Reported by Ian Beckwith <ianb@erislabs.net>.
6179
6180 2010-10-13  Jim Meyering  <meyering@redhat.com>
6181
6182         test-select-stdin.c: avoid warn_unused_result warnings
6183         * tests/test-select-stdin.c: Include "macros.h".
6184         ASSERT that read and fflush succeed.
6185
6186 2010-10-13  Jim Meyering  <meyering@redhat.com>
6187
6188         git-version-gen: do require git-VC'd files in cwd
6189         * build-aux/git-version-gen: Reject a git version string
6190         if there are no commits associated with the current directory.
6191         This avoids an unlikely false-positive (unrelated dir whose parent
6192         repository also contains a tag matching v*), as pointed out
6193         by Giuseppe Scrivano in
6194         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
6195
6196 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6197
6198         argv-iter: omit nonconforming declaration
6199         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
6200         enum arg_iter_err declaration, which doesn't conform to C99.
6201         Solaris 10 cc warns about this.
6202
6203 2010-10-13  Eric Blake  <eblake@redhat.com>
6204
6205         termios: fix compilation on mingw
6206         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
6207         (gl_TERMIOS_H): Adjust it on mingw.
6208         * modules/termios (Makefile.am): Substitute new key.
6209         * lib/termios.in.h (includes): Make include_next conditional.
6210         * doc/posix-headers/termios.texi (termios.h): Update
6211         documentation.
6212         Reported by Daniel P. Berrange.
6213
6214 2010-10-13  Jim Meyering  <meyering@redhat.com>
6215
6216         git-version-gen: don't require that .git/ be in the current dir
6217         * build-aux/git-version-gen: Adjust this script so that it works
6218         when run from any working directory beneath the top-level .git/-
6219         containing directory.  Inspired by a patch from Giuseppe Scrivano,
6220         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
6221
6222         test-select: avoid warn_unused_result warnings
6223         * tests/test-select.c: Include "macros.h".
6224         ASSERT that each call to read, write, and pipe succeeds.
6225         While not technically required, also check each "close".
6226         * modules/select-tests (Files): Add tests/macros.h.
6227
6228         test-symlinkat: remove declaration of unused local
6229         * tests/test-symlinkat.c (main): Remove unused local, "buf".
6230
6231         test-inttostr: avoid shadowing warnings
6232         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
6233         and use malloc rather than the stack for the same reason as
6234         mentioned in the comment justifying the other allocation.
6235
6236 2010-10-11  Bruno Haible  <bruno@clisp.org>
6237
6238         stdlib: Allow multiple gnulib generated replacements to coexist.
6239         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
6240         Reported by Sam Steingold <sds@gnu.org>.
6241
6242 2010-10-11  Jim Meyering  <meyering@redhat.com>
6243
6244         fix a documentation typo
6245         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
6246
6247 2010-10-11  Eric Blake  <eblake@redhat.com>
6248
6249         futimens: work around Solaris 11 bug
6250         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
6251         * tests/test-futimens.h (test_futimens): Enhance, rather than
6252         weaken test.
6253         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6254
6255 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6256
6257         Indentation.
6258         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
6259         higher-level operators more to the left.
6260
6261 2010-10-11  Jim Meyering  <meyering@redhat.com>
6262
6263         test-futimens: avoid unwarranted test failure on Solaris 5.11
6264         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
6265         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
6266         because it tries to dereference the NULL name argument.
6267
6268 2010-10-11  Bruno Haible  <bruno@clisp.org>
6269
6270         Indentation.
6271         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
6272         indentation.
6273
6274 2010-10-11  Jim Meyering  <meyering@redhat.com>
6275
6276         spawn.in.h: make indentation consistent with parentheses
6277         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
6278         Make indentation consistent with parentheses.
6279
6280 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
6281
6282         Fix mismatched parens in previous commit
6283         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
6284         parens.
6285
6286 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
6287
6288         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
6289
6290         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
6291         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
6292         * lib/malloca.c: Include "verify.h".
6293         (verify1): Remove, replacing with a verify call.
6294         * lib/relocwrapper.c (verify1): Likewise.
6295         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
6296         Likewise.
6297         * modules/malloca (Depends-on): Add 'verify'.
6298         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
6299         * modules/vasnprintf (Depends-on): Add 'verify'.
6300         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6301         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6302         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6303         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6304         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6305         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6306         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6307
6308         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
6309
6310         Formerly the style was sometimes 2*X - 1, because the C standard
6311         was wrongly thought to disallow ?: in integral constant expressions.
6312         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
6313         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
6314         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6315         * lib/stdint.in.h (_verify_intmax_size): Likewise.
6316         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
6317         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
6318         verify that time_t cannot be floating.
6319
6320 2010-10-08  Eric Blake  <eblake@redhat.com>
6321
6322         time: enforce recent POSIX ruling that time_t is integral
6323         * lib/time.in.h (__time_t_must_be_integral): Detect any
6324         problematic systems, allowing the rest of gnulib to assume POSIX.
6325
6326 2010-10-08  Jim Meyering  <meyering@redhat.com>
6327
6328         fdopendir: fix a bug on systems lacking openat and /proc support
6329         OpenBSD 4.7 is one such system.  The most noticeable effect was
6330         failure of any application making nontrivial use of fts: rm, du,
6331         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
6332           ./rm: traversal failed: `a': Bad file descriptor
6333         Debugging that, you see that even though FD 6 was closed just
6334         prior to the opendir call in fd_clone_opendir, its resulting
6335         dir->dd_fd was 8, rather than the expected value of 6:
6336
6337         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6338         93                close (fd);
6339         (gdb) n
6340         94                dir = fd_clone_opendir (dupfd);
6341         (gdb) n
6342         95                saved_errno = errno;
6343         (gdb) p dir->dd_fd
6344         $11 = 8
6345
6346         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6347         The problem is that on OpenBSD, fd_clone_opendir has to resort
6348         to using the old-style save/restore CWD mechanism, due to its
6349         lack of openat/proc support, and *that* would steal the FD (6)
6350         that opendir was supposed to use.
6351
6352         The fix is to squirrel away the desired FD so that save_cwd uses a
6353         different one, and then free the dest FD right before calling opendir.
6354         That guarantees opendir will use the required file descriptor.
6355
6356         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6357
6358 2010-10-08  Bruno Haible  <bruno@clisp.org>
6359
6360         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
6361         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
6362
6363 2010-10-08  Bruno Haible  <bruno@clisp.org>
6364
6365         nanosleep: Make replacement POSIX compliant.
6366         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
6367         is out of range.
6368         Reported by Jim Meyering.
6369
6370 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6371
6372         bootstrap: add hook for altering gnulib.mk, for Bison
6373         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
6374         the Bison bootstrapping process can rewrite file names and variables
6375         in this file before later parts of 'bootstrap' use the file.
6376         Bison wants to include lib/gnulib.mk from the top-level makefile,
6377         so it needs the file names in this file to be relative to the top
6378         level, not relative to lib; plus it needs variable names to be
6379         rewritten.
6380         (slurp): Use the new function.
6381
6382         bootstrap: reformat for readability
6383         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
6384
6385 2010-10-08  Eric Blake  <eblake@redhat.com>
6386
6387         docs: update cygwin progress
6388         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
6389         1.7.7.
6390         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
6391         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
6392         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
6393         * doc/posix-functions/carg.texi (carg): Likewise.
6394         * doc/posix-functions/cargf.texi (cargf): Likewise.
6395         * doc/posix-functions/casin.texi (casin): Likewise.
6396         * doc/posix-functions/casinf.texi (casinf): Likewise.
6397         * doc/posix-functions/casinh.texi (casinh): Likewise.
6398         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
6399         * doc/posix-functions/catan.texi (catan): Likewise.
6400         * doc/posix-functions/catanf.texi (catanf): Likewise.
6401         * doc/posix-functions/catanh.texi (catanh): Likewise.
6402         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
6403         * doc/posix-functions/ccos.texi (ccos): Likewise.
6404         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
6405         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
6406         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
6407         * doc/posix-functions/cexp.texi (cexp): Likewise.
6408         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
6409         * doc/posix-functions/cimag.texi (cimag): Likewise.
6410         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
6411         * doc/posix-functions/clog.texi (clog): Likewise.
6412         * doc/posix-functions/clogf.texi (clogf): Likewise.
6413         * doc/posix-functions/conj.texi (conj): Likewise.
6414         * doc/posix-functions/conjf.texi (conjf): Likewise.
6415         * doc/posix-functions/cpow.texi (cpow): Likewise.
6416         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
6417         * doc/posix-functions/cproj.texi (cproj): Likewise.
6418         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
6419         * doc/posix-functions/creal.texi (creal): Likewise.
6420         * doc/posix-functions/crealf.texi (crealf): Likewise.
6421         * doc/posix-functions/csin.texi (csin): Likewise.
6422         * doc/posix-functions/csinf.texi (csinf): Likewise.
6423         * doc/posix-functions/csinh.texi (csinh): Likewise.
6424         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
6425         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
6426         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
6427         * doc/posix-functions/ctan.texi (ctan): Likewise.
6428         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
6429         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
6430         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
6431         * doc/posix-headers/complex.texi (complex.h): Likewise.
6432
6433 2010-10-07  Jim Meyering  <meyering@redhat.com>
6434
6435         parse-datetime: avoid compilation failure on OpenBSD 4.7
6436         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
6437         This works around a compilation failure on OpenBSD 4.7:
6438         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
6439
6440 2010-10-07  Eric Blake  <eblake@redhat.com>
6441
6442         docs: update cygwin progress
6443         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
6444         1.7.6.
6445         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6446         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
6447         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
6448         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
6449         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
6450         Likewise.
6451         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
6452         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
6453         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
6454         Likewise.
6455         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
6456         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
6457         Likewise.
6458         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
6459         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
6460         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
6461         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
6462         Likewise.
6463         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
6464         Likewise.
6465         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
6466
6467         docs: update parse-datetime history
6468         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6469         documentation of this function's history and alternatives.
6470
6471         cygwin: use more robust version check
6472         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6473         exclude an eventual cygwin 1.9.1.
6474         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6475         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6476         (gl_FUNC_STRCASESTR): Likewise.
6477         Reported by Bruno Haible.
6478
6479 2010-10-06  Bruno Haible  <bruno@clisp.org>
6480
6481         string, sys_select: Avoid #including large headers unless necessary.
6482         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6483         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6484         OSF/1, BeOS, Haiku.
6485         Reported by Jim Meyering.
6486
6487 2010-10-05  Eric Blake  <eblake@redhat.com>
6488
6489         memmem, strstr, strcasestr: fix bug with long periodic needle
6490         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6491         periodic needle having false positive.
6492         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6493         and cygwin 1.7.7.
6494         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6496         (gl_FUNC_STRCASESTR): Likewise.
6497         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6498         * tests/test-memmem.c (main): Expose the bug.
6499         * tests/test-strcasestr.c (main): Likewise.
6500         * tests/test-strstr.c (main): Likewise.
6501         * tests/test-c-strcasestr.c (main): Likewise.
6502         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6503         * doc/posix-functions/strstr.texi (strstr): Likewise.
6504         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6505         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6506
6507 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6508
6509         parse-datetime: do some more renaming
6510         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
6511         parse_datetime, not get_date.  Mention the renaming.
6512         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
6513         in comments.
6514         * m4/bison.m4: Likewise.
6515
6516 2010-10-05  Eric Blake  <eblake@redhat.com>
6517
6518         parse-datetime: better name than get_date
6519         * NEWS: Reword the deprecation notice.
6520         * modules/get_date: Rename to modules/parse-datetime.
6521         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
6522         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
6523         * lib/get_date.y: Rename to lib/parse-datetime.y.
6524         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
6525         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
6526         * doc/getdate.texi: Provide fallback wrapper.
6527         * lib/getdate.h: Move guts, and wrap...
6528         * lib/parse-datetime.h: ...new file.
6529         * lib/parse-datetime.y (get_date): Rename...
6530         (parse_datetime): ...to this.
6531         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
6532         (gl_PARSE_DATETIME): ...to this.
6533         * doc/posix-functions/getdate.texi (get_date): Provide fallback
6534         documentation.
6535         * modules/getdate (Files): Provide fallback docs and header.
6536         (Notice, Depends-on): Update references.
6537         * tests/test-parse-datetime.c: Likewise.
6538         * DEPENDENCIES: Likewise.
6539         * MODULES.html.sh (Date and time <time.h>): Likewise.
6540         * doc/parse-datetime.texi (Date input formats)
6541         (Authors of parse_datetime): Likewise.
6542         * modules/parse-datetime (Files, configure.ac, Makefile.am)
6543         (Include): Likewise.
6544         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
6545         * gnulib-tool: Likewise.
6546         * m4/bison.m4 (gl_BISON): Likewise.
6547         Suggested by Bruno Haible.
6548
6549 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6550
6551         more ports to Solaris tr, which needs [] around ranges
6552         * gnulib-tool: Solaris tr needs [] around ranges.
6553         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6554         * tests/test-pipe-filter-gi1.c (main): Likewise.
6555         * tests/test-pipe-filter-ii1.c (main): Likewise.
6556
6557 2010-10-05  Eric Blake  <eblake@redhat.com>
6558
6559         bootstrap: fix Solaris regression
6560         * build-aux/bootstrap (check_versions): Solaris tr still needs []
6561         around ranges.
6562         Reported by Pádraig Brady.
6563
6564         bootstrap: work with pkg-config
6565         * build-aux/bootstrap (check_versions): Also transliterate - in
6566         prerequisite name.
6567         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
6568         prerequisites that were already found, to avoid confusion.
6569         Reported by Justin Clift.
6570
6571         faccessat: remove unused wrappers
6572         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
6573         presence of these wrappers dragged in -lgen on Solaris.
6574         Reported by Clemens Brogi; fix suggested by Paul Eggert.
6575
6576 2010-10-05  Jim Meyering  <meyering@redhat.com>
6577
6578         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
6579         * Makefile (sc_pragma_columns): New syntax-check rule.
6580
6581 2010-10-04  Bruno Haible  <bruno@clisp.org>
6582
6583         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
6584         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
6585         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
6586         Reported by Bruce Korb and Eric Blake.
6587
6588 2010-10-04  Bruno Haible  <bruno@clisp.org>
6589
6590         threadlib: Make option --with-libpth-prefix work.
6591         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
6592         use $LIBPTH, not just -lpth.
6593
6594 2010-10-04  Bruno Haible  <bruno@clisp.org>
6595
6596         Avoid line length limitation from HP NonStop system header files.
6597         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
6598         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
6599         * lib/ctype.in.h: Likewise.
6600         * lib/dirent.in.h: Likewise.
6601         * lib/errno.in.h: Likewise.
6602         * lib/fcntl.in.h: Likewise.
6603         * lib/float.in.h: Likewise.
6604         * lib/getopt.in.h: Likewise.
6605         * lib/iconv.in.h: Likewise.
6606         * lib/inttypes.in.h: Likewise.
6607         * lib/langinfo.in.h: Likewise.
6608         * lib/locale.in.h: Likewise.
6609         * lib/math.in.h: Likewise.
6610         * lib/netdb.in.h: Likewise.
6611         * lib/netinet_in.in.h: Likewise.
6612         * lib/poll.in.h: Likewise.
6613         * lib/pthread.in.h: Likewise.
6614         * lib/pty.in.h: Likewise.
6615         * lib/sched.in.h: Likewise.
6616         * lib/se-selinux.in.h: Likewise.
6617         * lib/search.in.h: Likewise.
6618         * lib/signal.in.h: Likewise.
6619         * lib/spawn.in.h: Likewise.
6620         * lib/stdarg.in.h: Likewise.
6621         * lib/stddef.in.h: Likewise.
6622         * lib/stdint.in.h: Likewise.
6623         * lib/stdio.in.h: Likewise.
6624         * lib/stdlib.in.h: Likewise.
6625         * lib/string.in.h: Likewise.
6626         * lib/strings.in.h: Likewise.
6627         * lib/sys_file.in.h: Likewise.
6628         * lib/sys_ioctl.in.h: Likewise.
6629         * lib/sys_select.in.h: Likewise.
6630         * lib/sys_socket.in.h: Likewise.
6631         * lib/sys_stat.in.h: Likewise.
6632         * lib/sys_time.in.h: Likewise.
6633         * lib/sys_times.in.h: Likewise.
6634         * lib/sys_utsname.in.h: Likewise.
6635         * lib/sys_wait.in.h: Likewise.
6636         * lib/sysexits.in.h: Likewise.
6637         * lib/termios.in.h: Likewise.
6638         * lib/time.in.h: Likewise.
6639         * lib/unistd.in.h: Likewise.
6640         * lib/wchar.in.h: Likewise.
6641         * lib/wctype.in.h: Likewise.
6642         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
6643         * modules/ctype (Makefile.am): Likewise.
6644         * modules/dirent (Makefile.am): Likewise.
6645         * modules/errno (Makefile.am): Likewise.
6646         * modules/fcntl-h (Makefile.am): Likewise.
6647         * modules/float (Makefile.am): Likewise.
6648         * modules/getopt-posix (Makefile.am): Likewise.
6649         * modules/iconv-h (Makefile.am): Likewise.
6650         * modules/inttypes (Makefile.am): Likewise.
6651         * modules/langinfo (Makefile.am): Likewise.
6652         * modules/locale (Makefile.am): Likewise.
6653         * modules/math (Makefile.am): Likewise.
6654         * modules/netdb (Makefile.am): Likewise.
6655         * modules/netinet_in (Makefile.am): Likewise.
6656         * modules/poll-h (Makefile.am): Likewise.
6657         * modules/pthread (Makefile.am): Likewise.
6658         * modules/pty (Makefile.am): Likewise.
6659         * modules/sched (Makefile.am): Likewise.
6660         * modules/search (Makefile.am): Likewise.
6661         * modules/selinux-h (Makefile.am): Likewise.
6662         * modules/signal (Makefile.am): Likewise.
6663         * modules/spawn (Makefile.am): Likewise.
6664         * modules/stdarg (Makefile.am): Likewise.
6665         * modules/stddef (Makefile.am): Likewise.
6666         * modules/stdint (Makefile.am): Likewise.
6667         * modules/stdio (Makefile.am): Likewise.
6668         * modules/stdlib (Makefile.am): Likewise.
6669         * modules/string (Makefile.am): Likewise.
6670         * modules/strings (Makefile.am): Likewise.
6671         * modules/sys_file (Makefile.am): Likewise.
6672         * modules/sys_ioctl (Makefile.am): Likewise.
6673         * modules/sys_select (Makefile.am): Likewise.
6674         * modules/sys_socket (Makefile.am): Likewise.
6675         * modules/sys_stat (Makefile.am): Likewise.
6676         * modules/sys_time (Makefile.am): Likewise.
6677         * modules/sys_times (Makefile.am): Likewise.
6678         * modules/sys_utsname (Makefile.am): Likewise.
6679         * modules/sys_wait (Makefile.am): Likewise.
6680         * modules/sysexits (Makefile.am): Likewise.
6681         * modules/termios (Makefile.am): Likewise.
6682         * modules/time (Makefile.am): Likewise.
6683         * modules/unistd (Makefile.am): Likewise.
6684         * modules/wchar (Makefile.am): Likewise.
6685         * modules/wctype (Makefile.am): Likewise.
6686
6687 2010-10-04  Bruno Haible  <bruno@clisp.org>
6688
6689         read-file tests: Avoid a test failure on NonStop Kernel.
6690         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
6691         a regular file.
6692         Reported by Joachim Schmitz <schmitz@hp.com>.
6693
6694 2010-10-03  Bruno Haible  <bruno@clisp.org>
6695
6696         gnulib-tool: Fixes for --create-testdir with --libtool.
6697         * gnulib-tool (func_get_automake_snippet): Don't augment
6698         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
6699         an executable.
6700         (func_create_testdir): Handle module 'alloca' like func_import.
6701         Reported by Bruce Korb <bruce.korb@gmail.com>.
6702
6703 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
6704
6705         Avoid some lines longer than 80 characters.
6706         * lib/stdint.in.h: Break long comment lines.
6707         * lib/math.in.h: Likewise.
6708         (_GL_NUM_UINT_WORDS): New macro, for readability.
6709         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
6710         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
6711         * lib/stdlib.in.h: Likewise.
6712         * lib/spawn.in.h: Likewise.
6713         * lib/sys_socket.in.h: Update an URL.
6714         * lib/sys_stat.in.h: Break long line.
6715
6716 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
6717
6718         Improve pmccabe2html.
6719         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
6720         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
6721         when the sources change. Remove the line in the HTML about "Used
6722         ranges" (which implied that there might be other unused ranges),
6723         rename "Resume" to "Summary" (easier to understand for more users).
6724         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
6725         styles, and some unnecessary blank lines.
6726
6727 2010-10-03  Bruno Haible  <bruno@clisp.org>
6728             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6729
6730         acl: Add support for ACLs on NonStop Kernel.
6731         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
6732         Check whether the function aclsort() exists.
6733         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
6734         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
6735         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6736         (acl_nontrivial [HAVE_ACLSORT]: New function.
6737         (file_has_acl): Implement for NonStop Kernel.
6738         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6739         (qset_acl): Implement for NonStop Kernel.
6740         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
6741         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6742         (main): Implement for NonStop Kernel.
6743         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
6744         Kernel. Handle this flavor.
6745         * tests/test-set-mode-acl.sh: Likewise.
6746         * tests/test-copy-acl.sh: Likewise.
6747         * tests/test-copy-file.sh: Likewise.
6748
6749 2010-10-03  Bruno Haible  <bruno@clisp.org>
6750
6751         Info about ACLs on NonStop Kernel.
6752         * doc/acl-resources.txt: Add info about NonStop Kernel.
6753         References by Joachim Schmitz <schmitz@hp.com>.
6754
6755 2010-10-02  Bruno Haible  <bruno@clisp.org>
6756
6757         Define missing EDQUOT on NonStop Kernel.
6758         * lib/errno.in.h (EDQUOT): Assign a value if missing.
6759         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
6760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
6761         missing.
6762         * doc/posix-headers/errno.texi: Mention the NSK bug.
6763         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
6764         Reported by Joachim Schmitz <schmitz@hp.com>.
6765
6766 2010-10-02  Bruno Haible  <bruno@clisp.org>
6767
6768         Update doc for POSIX:2008.
6769         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
6770         Update URL of POSIX specification.
6771
6772 2010-10-02  Bruno Haible  <bruno@clisp.org>
6773
6774         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
6775         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
6776         from gnulib, not from Automake.
6777
6778 2010-10-02  Bruno Haible  <bruno@clisp.org>
6779
6780         New module 'system-posix'.
6781         * modules/system-posix: New file.
6782         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
6783         module is present.
6784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6785         GNULIB_SYSTEM_POSIX.
6786         * modules/stdlib (Depends-on): Remove sys_wait.
6787         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
6788         * doc/posix-functions/system.texi: Mention the new module.
6789         * doc/posix-headers/stdlib.texi: Likewise.
6790         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
6791         define test_sys_wait_macros to a no-op.
6792         Reported by Sam Steingold <sds@gnu.org>.
6793
6794 2010-09-30  Bruno Haible  <bruno@clisp.org>
6795
6796         More renaming from 'getdate' to 'get_date'.
6797         * doc/get_date.texi: Renamed from doc/getdate.texi.
6798         * modules/get_date (Files): Update.
6799         * MODULES.html.sh (Date and time <time.h>): Update.
6800         * DEPENDENCIES: Update.
6801         * gnulib-tool: Update comment.
6802         * m4/bison.m4 (gl_BISON): Likewise.
6803         * m4/get_date.m4 (gl_GET_DATE): Likewise.
6804
6805 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
6806
6807         bootstrap: support ACLOCAL_FLAGS during aclocal
6808         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
6809         can add additional -I dir for third-party .m4 files.
6810
6811 2010-09-30  Eric Blake  <eblake@redhat.com>
6812
6813         bootstrap: use glibtoolize on MacOS
6814         * build-aux/bootstrap (check_versions): Convert libtool into
6815         libtoolize.
6816         (tool search): Move libtool check earlier, and look for
6817         glibtoolize for MacOS.
6818         (gnulib_tool_options): Auto-add --libtool when appropriate.
6819         Reported by Justin Clift.
6820
6821         poll: fix typo that broke test on MacOS
6822         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
6823         Reported by Justin Clift.
6824
6825         getdate: rename to get_date
6826         Note: getdate.h is not renamed, to minimize client impact.
6827         * modules/getdate: Mark obsolete.  Move old contents...
6828         * modules/get_date: ...to new module name.
6829         * modules/getdate-tests: Move...
6830         * modules/get_date-tests: ...here.
6831         * m4/getdate.m4: Move...
6832         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
6833         * lib/getdate.y: Move...
6834         * lib/get_date.y: ...here.
6835         * tests/test-getdate.c: Move...
6836         * tests/test-get_date.c: ...here.
6837         * doc/posix-functions/getdate.texi (getdate): Update name.
6838         * NEWS: Mention the change.
6839
6840 2010-09-29  Bruno Haible  <bruno@clisp.org>
6841
6842         Separate the module 'waitpid' from the module 'sys_wait'.
6843         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
6844         present.
6845         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
6846         gl_MODULE_INDICATOR_FOR_TESTS.
6847         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
6848         * modules/sys_wait (Depends-on): Remove waitpid.
6849         (Makefile.am): Substitute GNULIB_WAITPID.
6850         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
6851         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
6852         signature only if the 'waitpid' module is present.
6853         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
6854         * NEWS: Mention the change.
6855         * modules/grantpt (Depends-on): Add waitpid.
6856         * modules/wait-process (Depends-on): Likewise.
6857
6858 2010-09-29  Bruno Haible  <bruno@clisp.org>
6859
6860         More tests for module 'sys_wait'.
6861         * modules/sys_wait-c++-tests: New file.
6862         * tests/test-sys_wait-c++.cc: New file.
6863         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
6864         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6865
6866 2010-09-29  Bruno Haible  <bruno@clisp.org>
6867
6868         New module 'waitpid'.
6869         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
6870         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
6871         Don't include <process.h>.
6872         (waitpid): Declare only, using modern idiom.
6873         * m4/waitpid.m4: New file.
6874         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
6875         * modules/waitpid: New file.
6876         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
6877         (Makefile.am): Update.
6878         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6879
6880 2010-09-28  Bruno Haible  <bruno@clisp.org>
6881
6882         poll: Assume ANSI C.
6883         * lib/poll.c (poll): Use an ANSI C declaration.
6884
6885 2010-09-28  Bruno Haible  <bruno@clisp.org>
6886
6887         poll-h: Create poll.h on all platforms.
6888         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
6889         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
6890         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
6891         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
6892         (gl_REPLACE_POLL_H): Don't set POLL_H.
6893         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
6894         * modules/poll-h (Depends-on): Add include_next.
6895         (Makefile.am): Create poll.h unconditionally. Substitute also
6896         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
6897
6898 2010-09-28  Bruno Haible  <bruno@clisp.org>
6899
6900         Tests for module 'poll-h'.
6901         * modules/poll-h-c++-tests: New file.
6902         * tests/test-poll-h-c++.cc: New file.
6903
6904         Tests for module 'poll-h'.
6905         * modules/poll-h-tests: New file.
6906         * tests/test-poll-h.c: New file.
6907
6908 2010-09-28  Bruno Haible  <bruno@clisp.org>
6909
6910         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
6911         * modules/poll-h (Depends-on): Add 'extensions'.
6912
6913 2010-09-28  Bruno Haible  <bruno@clisp.org>
6914
6915         New module 'poll-h'.
6916         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
6917         (poll): Use modern idiom.
6918         * modules/poll-h: New file.
6919         * modules/poll (Files): Remove lib/poll.in.h.
6920         (Depends-on): Add poll-h.
6921         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
6922         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
6923         * m4/poll_h.m4: New file.
6924         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
6925         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
6926         and invoke gl_REPLACE_POLL_H.
6927         * lib/poll.c: Use common idiom.
6928         * tests/test-poll.c: Likewise.
6929         * doc/posix-headers/poll.texi: Mention the poll-h module.
6930         Suggested by Eric Blake.
6931
6932 2010-09-26  Bruno Haible  <bruno@clisp.org>
6933
6934         sys_wait: Implement WSTOPSIG.
6935         * lib/sys_wait.in.h (WSTOPSIG): New macro.
6936         Reported by Simon Josefsson.
6937
6938 2010-09-26  Simon Josefsson  <simon@josefsson.org>
6939
6940         stdlib, sys_wait: Avoid compilation error on mingw.
6941         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
6942
6943 2010-09-26  Bruno Haible  <bruno@clisp.org>
6944
6945         stdlib tests: Avoid code duplication.
6946         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
6947         * modules/sys_wait-tests (Files): Likewise.
6948         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
6949         * tests/test-stdlib.c: Include test-sys_wait.h.
6950         (main): Invoke test_sys_wait_macros.
6951         * tests/test-sys_wait.c: Include test-sys_wait.h.
6952         (main): Invoke test_sys_wait_macros.
6953
6954 2010-09-25  Simon Josefsson  <simon@josefsson.org>
6955
6956         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
6957         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
6958         sure Windows sockets are working before calling getaddrinfo.
6959         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
6960         * doc/gnulib.texi (Windows sockets): Fix typo.
6961
6962 2010-09-25  Bruno Haible  <bruno@clisp.org>
6963
6964         Tests for module 'regex-quote'.
6965         * modules/regex-quote-tests: New file.
6966         * tests/test-regex-quote.c: New file.
6967
6968         New module 'regex-quote'.
6969         * lib/regex-quote.h: New file.
6970         * lib/regex-quote.c: New file.
6971         * modules/regex-quote: New file.
6972         Suggested by Reuben Thomas <rrt@sc3d.org>.
6973
6974 2010-09-24  Bruno Haible  <bruno@clisp.org>
6975
6976         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
6977         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
6978
6979 2010-09-23  Bruno Haible  <bruno@clisp.org>
6980
6981         setenv: Relax license.
6982         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
6983         Blake.
6984         Requested by Eric Blake.
6985
6986 2010-09-22  Bruno Haible  <bruno@clisp.org>
6987
6988         termios: Relax license.
6989         * modules/termios (License): Change to LGPLv2+.
6990         Requested by Eric Blake.
6991
6992 2010-09-22  Bruno Haible  <bruno@clisp.org>
6993
6994         threadlib: Allow the package to change the default to 'no'.
6995         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
6996         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
6997         Reported by Paul Eggert.
6998
6999 2010-09-22  Pádraig Brady  <P@draigbrady.com>
7000             Bruno Haible  <bruno@clisp.org>
7001
7002         Fix endless loop in mbmemcasecoll.
7003         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
7004         byte.
7005         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
7006
7007 2010-09-22  Bruno Haible  <bruno@clisp.org>
7008
7009         Tests for module 'memcoll'.
7010         * modules/memcoll-tests: New file.
7011         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
7012
7013         memcoll, xmemcoll: Clarify size vs. length.
7014         * modules/memcoll.c (memcoll0): Clarify specification.
7015         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
7016         passed to collate_error.
7017
7018 2010-09-22  Bruno Haible  <bruno@clisp.org>
7019
7020         Tests for module 'memcasecmp'.
7021         * modules/memcasecmp-tests: New file.
7022         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
7023
7024 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7025
7026         * lib/pthread.in.h: Add split double-inclusion guard, and include
7027         system <pthread.h> if there is one.  Use @@-style as in other
7028         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
7029         pthread.h doesn't.
7030         (pthread_mutexattr_destroy, pthread_mutexattr_init):
7031         (pthread_mutexattr_settype, pthread_mutex_trylock):
7032         New static inline functions, if there's no system <pthread.h>.
7033         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
7034         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
7035         Approximate with mutexes if the system lacks spinlocks, as in
7036         MacOS.
7037         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
7038         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
7039         @@-style.  Check for spinlocks separately.
7040         (gl_PTHREAD_DEFAULTS): New macro.
7041         * modules/pthread: Redo to use a more typical style for in.h files.
7042
7043 2010-09-21  Eric Blake  <eblake@redhat.com>
7044
7045         net_if: enhance tests
7046         * tests/test-net_if.c (main): Move signature checks earlier.
7047         Print failures to stderr.
7048         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7049         Document the bug that we do not yet fix.
7050
7051 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7052
7053         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
7054         about gnulib, not GSS.
7055
7056 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7057
7058         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
7059         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
7060         for Emacs.
7061         * build-aux/pmccabe2html: Make Makefile.am example code more
7062         cut-and-paste friendly.
7063
7064 2010-09-21  Simon Josefsson  <simon@josefsson.org>
7065
7066         * tests/test-net_if.c: New file.
7067         * modules/net_if-tests: New file.
7068
7069 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7070
7071         pthread: add pthread_spin_destroy
7072         * lib/pthread.in.h (pthread_spin_destroy): New function.
7073
7074 2010-09-19  Bruno Haible  <bruno@clisp.org>
7075
7076         gnulib-tool: Fix --help output.
7077         * gnulib-tool (func_usage): Fix help message.
7078         Reported by Reuben Thomas <rrt@sc3d.org>.
7079
7080 2010-09-18  Jim Meyering  <meyering@redhat.com>
7081
7082         maint.mk: avoid unexpanded \n in two diagnostics
7083         * top/maint.mk (sc_prohibit_always_true_header_tests):
7084         Don't use a literal \n in a halt=... assignment.  It would not be
7085         expanded, and the two \n bytes would appear in the diagnostic output
7086         rather than the desired newline.  Use halt=$$(printf ... instead.
7087         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7088
7089 2010-09-18  Bruno Haible  <bruno@clisp.org>
7090
7091         netinet_in: Doc tweak.
7092         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
7093         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7094
7095 2010-09-18  Jim Meyering  <meyering@redhat.com>
7096
7097         init.sh: correct an outdated comment
7098         * tests/init.sh (create_exe_shims_):  s/function/alias/
7099
7100         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
7101         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
7102         a file named "*.exe" is removed between the glob expansion and the
7103         processing of that oddly named file.
7104
7105 2010-09-17  Eric Blake  <eblake@redhat.com>
7106
7107         mirbsd: add some more support
7108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
7109         in BSD family.
7110         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
7111         devices as OpenBSD.
7112         * m4/host-os.m4 (mirbsd): Add MirBSD.
7113
7114         tests: fix unportable assumption on sys/wait.h
7115         * tests/test-sys_wait.c (main): Relax test.
7116         * tests/test-stdlib.c (main): Likewise.
7117
7118         init.sh: accomodate directory with no .exes
7119         * tests/init.sh: Accomodate directory containing only scripts.
7120
7121         tests: avoid compiler warning
7122         * tests/test-stdlib.c (main): Use the variable.
7123
7124         fdutimens, fdutimensat: update signature, again
7125         * lib/utimens.h (gl_futimens): Delete, and move signature...
7126         (fdutimens): ...here.
7127         (fdutimensat): Rearrange signature.
7128         (lutimensat): Rename variable for clarity.
7129         * lib/fdutimensat.c (fdutimensat): Update signature.
7130         * lib/utimens.c (fdutimens): Likewise.
7131         (gl_futimens): Delete.
7132         (utimens, lutimens): Update callers.
7133         * lib/futimens.c (futimens): Likewise.
7134         * tests/test-fdutimensat.c: Likewise.
7135         * tests/test-utimens.c: Likewise.
7136         * tests/test-futimens.h: Update comment.
7137         * NEWS: Mention this.
7138         Suggested by Paul Eggert.
7139
7140 2010-09-17  Bruno Haible  <bruno@clisp.org>
7141
7142         Take over the maintenance of some older macros from Autoconf.
7143         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
7144         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
7145         GNU Autoconf.
7146         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
7147         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
7148
7149 2010-09-17  Eric Blake  <eblake@redhat.com>
7150
7151         fdutimensat: drop atflag validation
7152         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
7153         with valid fd, to close a race scenario where futimens is
7154         unsupported and FILE was replaced by a symlink.
7155         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
7156         accordingly.
7157         Suggested by Paul Eggert.
7158
7159 2010-09-16  Bruno Haible  <bruno@clisp.org>
7160
7161         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
7162         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
7163
7164 2010-09-16  Bruno Haible  <bruno@clisp.org>
7165
7166         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
7167         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
7168         login_tty exists.
7169         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7170
7171 2010-09-16  Bruno Haible  <bruno@clisp.org>
7172
7173         login_tty: Make the replacement code work on BSD systems.
7174         * lib/login_tty.c: Include <sys/ioctl.h>.
7175         (login_tty): Use ioctl TIOCSCTTY when available.
7176         * modules/login_tty (Depends-on): Add sys_ioctl.
7177         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7178
7179 2010-09-16  Bruno Haible  <bruno@clisp.org>
7180
7181         login_tty: Stricter unit test.
7182         * modules/login_tty-tests (Depends-on): Add tcgetsid.
7183         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
7184         and tcgetsid() after login_tty.
7185         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7186
7187 2010-09-16  Bruno Haible  <bruno@clisp.org>
7188
7189         New module 'tcgetsid'.
7190         * lib/tcgetsid.c: New file.
7191         * m4/tcgetsid.m4: New file.
7192         * modules/tcgetsid: New file.
7193         * modules/termios (Depends-on): Add c++defs, warn-on-use.
7194         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
7195         GNULIB_TCGETSID, HAVE_TCGETSID.
7196         * lib/termios.in.h: Include <sys/types.h>.
7197         (tcgetsid): New declaration.
7198         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
7199         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
7200         * doc/posix-functions/tcgetsid.texi: Mention the new module.
7201         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
7202
7203 2010-09-16  Bruno Haible  <bruno@clisp.org>
7204
7205         Tests for module 'termios'.
7206         * modules/termios-c++-tests: New file.
7207         * modules/termios-tests: New file.
7208         * tests/test-termios-c++.cc: New file.
7209         * tests/test-termios.c: New file.
7210
7211         New module 'termios'.
7212         * modules/termios: New file.
7213         * lib/termios.in.h: New file.
7214         * m4/termios_h.m4: New file.
7215         * doc/posix-headers/termios.texi: Mention the new module.
7216
7217 2010-09-16  Eric Blake  <eblake@redhat.com>
7218
7219         fdutimensat: add an atflag parameter
7220         * lib/fdutimensat.c (fdutimensat): Add new parameter.
7221         * lib/utimens.h (fdutimensat): Update prototype.
7222         * tests/test-fdutimensat.c: Adjust test to match.
7223         * NEWS: Document the change.
7224         Suggested by Paul Eggert.
7225
7226 2010-09-16  Bruno Haible  <bruno@clisp.org>
7227
7228         Fix typos in comments.
7229         * lib/striconveh.h: Fix typo in comment.
7230         * lib/login_tty.c (login_tty): Likewise.
7231
7232 2010-09-15  Bruno Haible  <bruno@clisp.org>
7233
7234         stdlib: clarify MirBSD WEXITSTATUS bug
7235         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
7236         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7237
7238 2010-09-15  Eric Blake  <eblake@redhat.com>
7239
7240         stdlib: work around MirBSD WEXITSTATUS bug
7241         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
7242         * modules/stdlib (Depends-on): Add sys_wait.
7243         * tests/test-sys_wait.c (main): Enhance test.
7244         * tests/test-stdlib.c (main): Likewise.
7245         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
7246
7247         docs: mention MacOS issue with WEXITSTATUS(constant)
7248         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
7249         issue.
7250         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7251
7252         strnlen: add tests
7253         * modules/strnlen-tests: New file.
7254         * tests/test-strnlen.c: Likewise.
7255
7256 2010-09-14  Bruno Haible  <bruno@clisp.org>
7257
7258         unistr/base: Avoid link errors when module 'libunistring' is also used.
7259         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
7260         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
7261         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
7262         Declare also when HAVE_LIBUNISTRING is set.
7263         Reported by Pádraig Brady <P@draigbrady.com>.
7264
7265 2010-09-14  Eric Blake  <eblake@redhat.com>
7266
7267         test-rawmemchr: make more robust
7268         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
7269         (Depends-on, configure.ac): Add needed prerequisites to use it.
7270         * modules/memchr-tests (Files, Depends-on, configure.ac):
7271         Likewise, to avoid implicit reliance on memchr module prereqs.
7272         * tests/test-memchr.c (main): Ensure proper masking.
7273         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
7274         reads.
7275
7276         memchr: detect glibc Alpha bug
7277         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
7278         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
7279         Alpha.
7280         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
7281         * tests/test-memchr.c (main): Enhance test.
7282         Reported by Nelson H. F. Beebe.
7283
7284 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7285
7286         fts, getcwd, glob: audit for dirfd returning -1
7287         * lib/fts.c (opendir): Remove #define; no longer used.
7288         (opendirat): New arg PDIR_FD.  All callers changed.
7289         (fts_build, _opendir2): Use new opendirat to avoid the need for
7290         dirfd, or for checking whether dirfd returns a negative value.
7291         Don't use opendir; always use openat followed by fdopendir.
7292         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
7293         it.
7294         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
7295         returns -1 here.
7296         * modules/fts (Depends-on): Remove dirfd.
7297         * modules/getcwd (Depends-on): Likewise.
7298
7299 2010-09-13  Eric Blake  <eblake@redhat.com>
7300
7301         float: fix broken MirBSD header
7302         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
7303         * doc/posix-headers/float.texi (float.h): Document it.
7304
7305 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7306
7307         fts: use O_NOFOLLOW to avoid race condition when opening a directory
7308         * lib/fts.c (opendirat): New arg extra_flags.
7309         (__opendir2): Use it to avoid following symlinks when opening
7310         a directory, if symlinks are not supposed to be followed.  See
7311         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
7312
7313         fdopendir: preserve argument fd before returning
7314         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
7315         (fdopendir_with_dup, fd_clone_opendir): New static functions.
7316         (fdopendir): Use them, arranging for FD to be open to the same
7317         directory that it was when it started.  (It might be temporarily
7318         closed while fdopendir is running, so this not thread- or
7319         signal-safe.)  Be careful to do the right thing even when file
7320         descriptors are scarce and dup fails with errno == EMFILE.  See
7321         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
7322
7323 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
7324
7325         regex: Pass the system regex if its only problem is 32-bit regoff_t.
7326         * NEWS: Document change.
7327         * m4/regex.m4: Disable test for regoff_t size.
7328
7329 2010-09-13  Jim Meyering  <meyering@redhat.com>
7330
7331         fts: don't operate on an invalid file descriptor after failed dup
7332         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7333         negative file descriptor.
7334
7335 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7336
7337         savedir: add streamsavedir, deprecate fdsavedir
7338         * NEWS: Mention deprecation of fdsavedir.
7339         * lib/savedir.c (streamsavedir): New extern function, whose name
7340         ends in "savedir" to be consistent with the others.  This differs
7341         from savedirstream in that it doesn't close its argument.  The
7342         next version of GNU tar will use this instead of fdsavedir, to
7343         avoid some race conditions and conserve file descriptors.
7344         (savedirstream): Reimplement as a wrapper around streamsavedir.
7345         (fdsavedir): Add a comment deprecating this function.  As far as
7346         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7347         * lib/savedir.h (streamsavedir): New decl.
7348         (fdsavedir): Add a comment deprecating this.
7349
7350 2010-09-10  Bruno Haible  <bruno@clisp.org>
7351
7352         langinfo: Fix last commit.
7353         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7354         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7356
7357 2010-09-10  Bruno Haible  <bruno@clisp.org>
7358
7359         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
7360         * lib/progreloc.c (O_EXEC): Define fallback.
7361
7362 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7363
7364         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
7365         * NEWS: Document recent changes to fcntl-h.
7366         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
7367         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
7368         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
7369         Similarly for O_SEARCH; this last was already true, but not documented.
7370         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
7371         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
7372         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
7373         Likewise.
7374         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
7375         is zero, not whether it is defined.
7376         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
7377         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
7378         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
7379
7380 2010-09-10  Bruno Haible  <bruno@clisp.org>
7381
7382         langinfo, nl_langinfo: Fix for IRIX 5.3.
7383         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
7384         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
7385         HAVE_LANGINFO_YESEXPR.
7386         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
7387         HAVE_LANGINFO_YESEXPR.
7388         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
7389         HAVE_LANGINFO_T_FMT_AMPM is 0.
7390         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
7391         HAVE_LANGINFO_YESEXPR is 0.
7392         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
7393         NOEXPR.
7394         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
7395         * doc/posix-functions/nl_langinfo.texi: Likewise.
7396         Reported by Eric Blake.
7397
7398 2010-09-10  Bruno Haible  <bruno@clisp.org>
7399
7400         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
7401         * doc/glibc-functions/login_tty.texi: Mention the include file problem
7402         on FreeBSD 8.0 and OpenBSD 4.6.
7403         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
7404         * m4/pty_h.m4 (gl_PTY_H): Likewise.
7405         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
7406         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
7407         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
7408         ac_includes_default.
7409         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7410
7411 2010-09-09  Eric Blake  <eblake@redhat.com>
7412
7413         strsignal: work around NetBSD bug
7414         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
7415         * lib/string.in.h (includes): Likewise.
7416         * doc/posix-functions/strsignal.texi (strsignal): Document the
7417         bug.
7418         Reported by Nelson H. F. Beebe.
7419
7420         gnulib-tool: work with NetBSD /bin/sh
7421         * gnulib-tool (func_cache_var, func_cache_lookup_module)
7422         (func_get_description, func_get_comment, func_get_status)
7423         (func_get_notice, func_get_applicability, func_get_filelist)
7424         (func_get_dependencies, func_get_autoconf_early_snippet)
7425         (func_get_autoconf_snippet, func_get_automake_snippet)
7426         (func_get_include_directive, func_get_link_directive)
7427         (func_get_license, func_get_maintainer, func_import): Avoid
7428         shell syntax errors from parsing syntax extensions.
7429
7430 2010-09-09  Bruno Haible  <bruno@clisp.org>
7431
7432         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7433         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
7434         a reliable way to determine whether the 'alias' command works.
7435
7436 2010-09-08  Jim Meyering  <meyering@redhat.com>
7437
7438         init.sh: penalize a set-x-impaired shell; don't disqualify it
7439         * tests/init.sh: Too many shells corrupt application stderr when
7440         you set -x, so we can't afford to disqualify them, since at least
7441         on Irix-6.5, that would disqualify all bourne shells.
7442         Instead, use a two-pass approach.
7443         On the first pass, try to find a shell that meets the stricter
7444         condition that set -x does not corrupt stderr.
7445         If no shell meets the stricter condition, retest each candidate
7446         shell, but without that extra condition.  Finally, when
7447         VERBOSE=yes is requested and set -x might cause trouble, simply
7448         issue a warning and refrain from enabling debug output.
7449
7450 2010-09-08  Eric Blake  <eblake@redhat.com>
7451
7452         unsetenv: fix OpenBSD bug
7453         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
7454         * doc/posix-functions/unsetenv.texi (unsetenv): Update
7455         documentation.
7456         Reported by Jim Meyering.
7457
7458         strtod: work around IRIX 6.5 bug
7459         * lib/strtod.c (strtod): Reparse number on shorter string if
7460         exponent parse was invalid.
7461         * tests/test-strtod.c (main): Add check for "0x1p 2".
7462         Reported by Tom G. Christensen.
7463
7464         getopt: optimize previous patch
7465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
7466         empty variable.  Speed up awk script.
7467         Reported by Paolo Bonzini.
7468
7469 2010-09-08  Jim Meyering  <meyering@redhat.com>
7470
7471         test.sh: disqualify shells for which set -x corrupts stderr
7472         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7473         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7474         appear in stderr output.  For example, this command:
7475             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7476         prints "P=1" on those two systems:
7477
7478 2010-09-08  Bruno Haible  <bruno@clisp.org>
7479
7480         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7481         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7482         commands, because some shells ignore redirections when there is an
7483         error in the command lookup.
7484         Reported by Eric Blake.
7485
7486 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7487
7488         * lib/regex.h: Fix a mention of `regex_compile' (should be
7489         `re_compile_pattern').
7490         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7491         (re_set_registers): Correct name of parameter in comment.
7492
7493         * doc/regex.texi: Add documentation for missing syntax flags.
7494         Remove commented-out documentation of defunct syntax option
7495         RE_NO_EMPTY_ALTS.
7496         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7497         Add documentation of re_set_registers.
7498         Document trick to re-use a pattern buffer by setting fastmap manually.
7499         Update documentation of struct re_pattern_buffer per public members.
7500         Uncomment documentation of equivalence class operators and
7501         collating symbol operators, since they are now implemented,
7502         Explain leftmost-longest matching in relation to alternatives.
7503         Tidy documentation of substring matching.
7504         Remove POSIX documentation, which is done better in
7505         glibc, and refer the reader there. Keep BSD API documentation, as
7506         that is not readily available elsewhere.
7507
7508 2010-09-07  Eric Blake  <eblake@redhat.com>
7509
7510         getopt: handle POSIXLY_CORRECT set but not exported
7511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
7512         export state of POSIXLY_CORRECT, due to bash set -o posix.
7513         Reported by Dustin J. Mitchell.
7514
7515 2010-09-05  Bruno Haible  <bruno@clisp.org>
7516
7517         gnulib-tool: Highlight the changed options.
7518         * gnulib-tool (func_usage): Display the --import, --add-import,
7519         --remove-import explanations in bold font.
7520
7521 2010-09-06  Karl Berry  <karl@gnu.org>
7522
7523         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
7524
7525 2010-09-05  Bruno Haible  <bruno@clisp.org>
7526
7527         uniwidth/width: Update comment.
7528         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
7529         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
7530
7531 2010-09-05  Bruno Haible  <bruno@clisp.org>
7532
7533         isinf, isnan: Relax license.
7534         * modules/isinf (License): Change from GPL to LGPL, with consent from
7535         Ben Pfaff.
7536         * modules/isnan (License): Likewise.
7537         Requested by Ludovic Courtès.
7538
7539 2010-09-04  Bruno Haible  <bruno@clisp.org>
7540
7541         gnulib-tool: Help migration from --import to --add-import or --update.
7542         * gnulib-tool: Emit a verbose error message when --import is used
7543         without any module name.
7544
7545 2010-09-04  Bruno Haible  <bruno@clisp.org>
7546
7547         Update doc about gnulib-tool.
7548         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
7549         'gnulib-tool --update' in more detail.
7550         Reported by Eric Blake.
7551
7552 2010-09-04  Bruno Haible  <bruno@clisp.org>
7553
7554         gnulib-tool: Change --import. New options --add/remove-import.
7555         * gnulib-tool: New options --add-import, --remove-import.
7556         (func_usage): Document them.
7557         (have_associative): Define always.
7558         (func_import): In import mode, don't merge the specified settings with
7559         the cached settings. Implement remove-import mode.
7560         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
7561         Explain when to use them versus --import.
7562         (Simple update): Use --add-import instead of --import.
7563         * NEWS: Mention the change.
7564
7565 2010-09-04  Bruno Haible  <bruno@clisp.org>
7566
7567         * doc/gnulib-tool.texi (Initial import): Update paragraph about
7568         separate gnulib.mk.
7569
7570 2010-09-04  Bruno Haible  <bruno@clisp.org>
7571
7572         gnulib-tool: Don't talk about CVS any more.
7573         * gnulib-tool (func_usage, func_import): Write "version control"
7574         instead of CVS.
7575
7576 2010-09-04  Jim Meyering  <meyering@redhat.com>
7577
7578         maint.mk: avoid obscure sc_copyright_check failure in coreutils
7579         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
7580         false positives (whose names may be ill-chosen) when searching
7581         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
7582         would cause a false-positive.
7583
7584         avoid coreutils "make distcheck" failure
7585         Coreutils tests with an absolute build directory name that contains
7586         a space.  Not quoting this directory name caused a failure.
7587         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
7588         * tests/test-vc-list-files-cvs.sh: Likewise.
7589
7590 2010-09-04  Bruno Haible  <bruno@clisp.org>
7591
7592         gnulib-tool: Avoid error when run in a package without Makefile.am.
7593         * gnulib-tool: When collecting the m4dirs in a package that does not
7594         have a Makefile.am, eliminate those directories that contain no
7595         gnulib-cache.m4. Fix expression that counts these directories.
7596
7597 2010-09-04  Bruno Haible  <bruno@clisp.org>
7598
7599         update-copyright test: Improve output when perl is missing or too old.
7600         * tests/test-update-copyright.sh: Move test of Perl version down after
7601         the test whether Perl exists. Provide an explanation relating Perl's
7602         error message to Automake's SKIP: message.
7603
7604 2010-09-04  Bruno Haible  <bruno@clisp.org>
7605
7606         Don't augment PATH in TESTS_ENVIRONMENT.
7607         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
7608         set abs_aux_dir instead of augmenting PATH.
7609         * modules/vc-list-files-tests (Makefile.am): Likewise.
7610         * tests/test-update-copyright.sh: Augment PATH here.
7611         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
7612         path_prepend_.
7613         * tests/test-vc-list-files-git.sh: Likewise.
7614
7615 2010-09-04  Jim Meyering  <meyering@redhat.com>
7616
7617         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
7618         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
7619
7620 2010-09-04  Bruno Haible  <bruno@clisp.org>
7621
7622         strdup: Fix compilation error in C++ mode.
7623         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
7624         the macro.
7625
7626 2010-09-04  Bruno Haible  <bruno@clisp.org>
7627
7628         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
7629         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
7630         macro into a function.
7631         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7632
7633 2010-09-04  Bruno Haible  <bruno@clisp.org>
7634
7635         Set PATH_SEPARATOR the same way autoconf does.
7636         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
7637         the value of PATH_SEPARATOR the same way autoconf-generated configure
7638         scripts do.
7639         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
7640         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7641
7642 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7643
7644         Set PATH_SEPARATOR the same way autoconf does.
7645         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
7646         the same way autoconf-generated configure scripts do.
7647         * posix-modules: Likewise.
7648
7649 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7650
7651         hash: fix safe_hasher const typo
7652         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
7653         const; otherwise, there is a type error later.
7654
7655 2010-09-02  Jim Meyering  <meyering@redhat.com>
7656
7657         test-update-copyright.sh: require perl 5.8.0
7658         * tests/test-update-copyright.sh: Require 5.8.0,
7659         which Tom G. Christensen has confirmed is adequate,
7660         while 5.6.1 is not.
7661
7662 2010-09-02  Eric Blake  <eblake@redhat.com>
7663
7664         tests: init.sh improvements for re-exec'ing with zsh
7665         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
7666         -vx through shell re-exec.
7667         Reported by Tom G. Christensen.
7668
7669         wctype: fix typo in previous commit
7670         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
7671         Reported by Ludovic Courtès.
7672
7673 2010-09-02  Jim Meyering  <meyering@redhat.com>
7674
7675         test-update-copyright.sh: skip test if Perl is too old
7676         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
7677         Reported by Tom G. Christensen.
7678
7679 2010-09-02  Bruno Haible  <bruno@clisp.org>
7680
7681         wctype: Avoid compilation error on IRIX 6.5.30.
7682         * lib/wctype.in.h (iswblank): Declare with a replacement if
7683         REPLACE_ISWBLANK is set.
7684         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
7685         declared. Set REPLACE_ISWBLANK.
7686         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
7687         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
7688         * doc/posix-headers/wctype.texi: Likewise.
7689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7690
7691 2010-09-01  Bruno Haible  <bruno@clisp.org>
7692
7693         New module 'socketlib'.
7694         * modules/socketlib: New file.
7695         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
7696         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
7697         * modules/sockets (Depends-on): Add socketlib.
7698         Suggested by Sam Steingold <sds@gnu.org>.
7699
7700 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7701
7702         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
7703
7704         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
7705         when one needs search access to a directory but not read access.
7706         On systems where it is available, it works in some cases where
7707         O_RDONLY does not, namely on directories that are searchable but
7708         not readable, and which need only to be searchable.  If O_SEARCH
7709         is not available, fall back to the traditional method of using
7710         O_RDONLY.
7711
7712         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
7713         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
7714         when opening a directory that needs only to be searchable.
7715         * lib/chdir-safer.c (chdir_no_follow): Likewise.
7716         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
7717         * lib/openat-proc.c (openat_proc_name): Likewise.
7718         * lib/openat.c (openat_needs_fchdir): Likewise.
7719         * lib/save-cwd.c (save_cwd): Likewise.
7720         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
7721
7722 2010-08-28  Bruno Haible  <bruno@clisp.org>
7723
7724         New module 'host-cpu-c-abi'.
7725         * modules/host-cpu-c-abi: New file.
7726         * m4/host-cpu-c-abi.m4: New file, based on part of
7727         clisp/src/m4/general.m4.
7728         Requested by Sam Steingold <sds@gnu.org>.
7729
7730 2010-08-31  Eric Blake  <eblake@redhat.com>
7731         and Jim Meyering  <meyering@redhat.com>
7732
7733         hash: factor, and guard against misbehaving hasher function
7734         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
7735         of table->hasher's return value.  Also protect against a hash value
7736         so large that adding it to table->bucket results in a NULL pointer.
7737         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
7738         Use it in place of open-coded check-and-abort.
7739
7740 2010-08-30  Bruno Haible  <bruno@clisp.org>
7741
7742         hash: silence spurious clang warning
7743         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
7744         Reported by Eric Blake.
7745
7746 2010-08-30  Eric Blake  <eblake@redhat.com>
7747
7748         strstr, memmem, strcasestr: avoid leaked shell message
7749         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
7750         FreeBSD.
7751         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7752         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7753
7754         tests: silence clang warning
7755         * tests/test-malloca.c (do_allocation): Avoid dead store.
7756
7757 2010-08-29  Bruno Haible  <bruno@clisp.org>
7758
7759         gettext: Fix recent mistake.
7760         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
7761
7762 2010-08-29  Bruno Haible  <bruno@clisp.org>
7763
7764         selinux-h: Offer a --without-selinux option.
7765         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
7766         --without-selinux was specified, skip all tests and define
7767         HAVE_SELINUX_SELINUX_H to 0.
7768         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
7769         set LIB_SELINUX to empty.
7770         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
7771         gl_LIBSELINUX. If --without-selinux was specified, replace
7772         selinux/context.h.
7773         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
7774
7775 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7776             Bruno Haible  <bruno@clisp.org>
7777
7778         Make the module 'realloc-gnu' work again on AIX and OSF/1.
7779         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
7780         of HAVE_REALLOC.
7781         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
7782         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
7783         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
7784         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7785
7786 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7787             Bruno Haible  <bruno@clisp.org>
7788
7789         Make the module 'calloc-gnu' work again on AIX and OSF/1.
7790         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
7791         HAVE_CALLOC.
7792         * lib/xmalloc.c: Update accordingly.
7793         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
7794         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
7795         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
7796
7797 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7798             Bruno Haible  <bruno@clisp.org>
7799
7800         Make the module 'malloc-gnu' work again on AIX and OSF/1.
7801         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
7802         HAVE_MALLOC.
7803         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
7804         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
7805         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7806
7807 2010-08-29  Bruno Haible  <bruno@clisp.org>
7808
7809         Update modules list.
7810         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7811         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
7812         (String handling <string.h>): Add astrxfrm.
7813         (File system functions): Add readlinkat.
7814
7815 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7816
7817         Tests for module 'realloc-gnu'.
7818         * modules/realloc-gnu-tests: New file.
7819         * tests/test-realloc-gnu.c: New file.
7820
7821         Tests for module 'calloc-gnu'.
7822         * modules/calloc-gnu-tests: New file.
7823         * tests/test-calloc-gnu.c: New file.
7824
7825         Tests for module 'malloc-gnu'.
7826         * modules/malloc-gnu-tests: New file.
7827         * tests/test-malloc-gnu.c: New file.
7828
7829 2010-08-28  Bruno Haible  <bruno@clisp.org>
7830
7831         Rename module 'realloc' -> 'realloc-gnu'.
7832         * modules/realloc-gnu: New file, copied from modules/realloc.
7833         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
7834         obsolete.
7835         * modules/mgetgroups (Depends-on): Update.
7836         * doc/posix-functions/realloc.texi: Update.
7837         * NEWS: Mention the change.
7838
7839         Rename module 'calloc' -> 'calloc-gnu'.
7840         * modules/calloc-gnu: New file, copied from modules/calloc.
7841         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
7842         obsolete.
7843         * doc/posix-functions/calloc.texi: Update.
7844         * NEWS: Mention the change.
7845
7846         Rename module 'malloc' -> 'malloc-gnu'.
7847         * modules/malloc-gnu: New file, copied from modules/malloc.
7848         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
7849         obsolete.
7850         * modules/argp (Depends-on): Update.
7851         * modules/regex (Depends-on): Update.
7852         * doc/posix-functions/malloc.texi: Update.
7853         * NEWS: Mention the change.
7854
7855 2010-08-28  Eric Blake  <eblake@redhat.com>
7856
7857         pread, pwrite: add missing dependency
7858         * modules/pread (Depends-on): Add extensions.
7859         * modules/pwrite (Depends-on): Likewise.
7860
7861 2010-08-28  Bruno Haible  <bruno@clisp.org>
7862
7863         unistr/u*-strchr: Fix tests dependencies.
7864         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
7865         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
7866         Reported by Ian Beckwith <ianb@erislabs.net>.
7867
7868 2010-08-28  Bruno Haible  <bruno@clisp.org>
7869
7870         read-file: Don't occupy too much unused memory.
7871         * lib/read-file.c (fread_file): Shrink the buffer at the end.
7872
7873 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
7874             Eric Blake  <eblake@redhat.com>
7875             Bruno Haible  <bruno@clisp.org>
7876
7877         read-file: Avoid memory reallocations with regular files.
7878         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
7879         (fread_file): With regular files, use the remaining length as the
7880         initial buffer size.  Check against overflow.
7881         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
7882         sys_stat.
7883
7884 2010-08-28  Bruno Haible  <bruno@clisp.org>
7885
7886         ftello: Relax license.
7887         * modules/ftello (License): Relax to LGPLv2+.
7888         Reported by Eric Blake.
7889
7890 2010-08-28  Bruno Haible  <bruno@clisp.org>
7891
7892         Avoid relocwrapper link errors due to gnulib replacement functions.
7893         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
7894         function.
7895         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7896
7897 2010-08-28  Bruno Haible  <bruno@clisp.org>
7898
7899         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
7900         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
7901         defined.
7902         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
7903         Suggested by Eric Blake.
7904
7905 2010-08-28  Bruno Haible  <bruno@clisp.org>
7906
7907         sys_socket, netdb: Ensure socklen_t gets defined.
7908         * modules/sys_socket (Depends-on): Add socklen.
7909         * modules/netdb (Depends-on): Likewise.
7910         * modules/getaddrinfo (Depends-on): Remove socklen.
7911         * modules/getsockopt (Depends-on): Likewise.
7912         * modules/setsockopt (Depends-on): Likewise.
7913         * tests/test-sys_socket.c: Check that socklen_t is defined.
7914         * tests/test-netdb.c: Likewise.
7915         * m4/socklen.m4: Update comments.
7916         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7917
7918 2010-08-27  Eric Blake  <eblake@redhat.com>
7919
7920         login_tty: add missing dependency
7921         * modules/login_tty (Depends-on): Add pty.
7922
7923 2010-08-26  Eric Blake  <eblake@redhat.com>
7924
7925         lib-symbol-versions: fix m4 quoting
7926         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
7927         format for AC_LINK_IFELSE.
7928
7929         glob: fix compile test
7930         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
7931
7932         btowc: fix missing file
7933         * modules/btowc (Files): Also ship locale-fr.m4.
7934
7935         lseek: fix link test
7936         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
7937         AC_LINK_IFELSE.
7938
7939         include_next: silence autoconf 2.68 warning
7940         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
7941         AC_COMPILE_IFELSE as special.
7942         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
7943         autoconf < 2.68.
7944
7945         acl: fix compilation test
7946         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
7947         AC_COMPILE_IFELSE.
7948
7949 2010-08-26  Bruno Haible  <bruno@clisp.org>
7950
7951         Modernize AC_TRY_RUN invocations.
7952         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
7953         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7954         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
7955         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
7956         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
7957         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7958         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7959         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7960         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7961         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7962         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7963         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7964         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7965         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7966         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7967         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7968         gl_MBRLEN_NUL_RETVAL): Likewise.
7969         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7970         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
7971         Likewise.
7972         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7973         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7974         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7975         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7976         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
7977         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
7978         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
7979         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7980         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
7981         Likewise.
7982         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
7983         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7984         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7985         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7986         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7987         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7989         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
7990         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7992
7993 2010-08-26  Bruno Haible  <bruno@clisp.org>
7994
7995         Modernize AC_TRY_LINK invocations.
7996         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
7997         AC_TRY_LINK.
7998         * m4/argp.m4 (gl_ARGP): Likewise.
7999         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8000         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8001         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8002         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8003         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8004         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
8005         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8006         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8007         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8008         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8009         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8010         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
8011         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
8012         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8013         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8014         * m4/hostent.m4 (gl_HOSTENT): Likewise.
8015         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8016         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
8017         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8018         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
8019         Likewise.
8020         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
8021         Likewise.
8022         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
8023         Likewise.
8024         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
8026         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
8027         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8028         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8029         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8030         * m4/servent.m4 (gl_SERVENT): Likewise.
8031         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8032         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8033         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8034         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8035         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8036         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8037         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8038         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8039         * modules/tsearch-tests (configure.ac): Likewise.
8040
8041 2010-08-26  Bruno Haible  <bruno@clisp.org>
8042
8043         Modernize AC_TRY_COMPILE invocations.
8044         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
8045         AC_TRY_COMPILE.
8046         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
8047         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
8048         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8049         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
8050         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8051         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8052         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8053         * m4/lock.m4 (gl_LOCK): Likewise.
8054         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8055         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8056         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
8057         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8058         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8059         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
8060         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8061         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
8062         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8063         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8064         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8065         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8066         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
8067         extraneous semicolon.
8068
8069 2010-08-26  Jim Meyering  <meyering@redhat.com>
8070
8071         stat-time: relax license LGPL
8072         * modules/stat-time (License): Change from GPL to LGPL,
8073         with consent from all contributors, for use in libguile.
8074         Requested by Ludovic Courtès.
8075
8076 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
8077
8078         poll: return immediately on POLLHUP.
8079         * lib/poll.c (poll): Always set timeout before wait_timeout is
8080         computed.
8081
8082 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8083
8084         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
8085         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
8086         rmdir ("dir/.//"), unlinkat.
8087
8088 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8089
8090         stdbool: avoid spurious failure with modern xlc
8091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8092
8093 2010-08-24  Bruno Haible  <bruno@clisp.org>
8094
8095         getloadavg: simplify code
8096         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
8097         gl_have_func. Update comments.
8098
8099 2010-08-24  Eric Blake  <eblake@redhat.com>
8100
8101         getloadavg: don't define SVR4 on cygwin
8102         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
8103         only define SVR4 when -lkvm is required.
8104         Reported by Yaakov Selkowitz.
8105
8106 2010-08-24  Bruno Haible  <bruno@clisp.org>
8107
8108         priv-set: fix comment
8109         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
8110
8111 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8112
8113         priv-set: fix comments
8114         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
8115         to match code, as suggested by David Bartley in:
8116         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
8117
8118 2010-08-23  Eric Blake  <eblake@redhat.com>
8119
8120         stdbool: avoid rejecting clang
8121         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8122         * tests/test-stdbool.c: Enable more tests if using the system
8123         <stdbool.h> instead of the gnulib replacement.
8124         (main): Move xlc bug test to a runtime test for all compilers.
8125         Reported by Anders Kaseorg.
8126
8127         argz: fix shell quoting issue
8128         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8129         Reported by Charles Wilson.
8130
8131 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8132             Erik Faye-Lund <kusmabite@gmail.com>
8133
8134         poll, select: handle ERROR_BROKEN_PIPE.
8135         * lib/poll.c (win32_compute_revents): Return POLLHUP when
8136         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8137         * lib/select.c (win32_compute_revents): Do not mark a pipe
8138         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8139
8140 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
8141
8142         fts: allow compilation with C++
8143         * lib/fts_.h: Specify extern "C" linkage with C++.
8144
8145 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8146
8147         Fix gnulib-tool sed script de-commentation for AIX sed.
8148         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
8149         sed.
8150
8151 2010-08-17  Eric Blake  <eblake@redhat.com>
8152
8153         test-stddef: test for (some) offsetof bugs
8154         * tests/test-stddef.c: Enhance test to ensure correct type of
8155         offsetof.
8156         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
8157         that we are not fixing at this time.
8158
8159 2010-08-15  Bruno Haible  <bruno@clisp.org>
8160
8161         stpncpy: Allow stpncpy to be defined as a macro.
8162         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
8163         if it's already correctly declared.
8164         * lib/string.in.h (stpncpy): Undefine before redefining.
8165         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
8166
8167 2010-08-14  Bruno Haible  <bruno@clisp.org>
8168
8169         Rename module 'memxfrm' to 'amemxfrm'.
8170         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
8171         (amemxfrm): Renamed from memxfrm.
8172         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
8173         (amemxfrm): Renamed from memxfrm.
8174         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
8175         * NEWS: Mention the change.
8176         * MODULES.html.sh (String handling <string.h>): Update.
8177         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
8178         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
8179         * lib/unicase/u16-casexfrm.c: Likewise.
8180         * lib/unicase/u32-casexfrm.c: Likewise.
8181         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
8182         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
8183         * lib/uninorm/u16-normxfrm.c: Likewise.
8184         * lib/uninorm/u32-normxfrm.c: Likewise.
8185         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
8186         memxfrm.
8187         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
8188         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
8189         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
8190         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
8191         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
8192         Suggested by Paul Eggert.
8193
8194 2010-08-14  Bruno Haible  <bruno@clisp.org>
8195
8196         Tests for module 'astrxfrm'.
8197         * modules/astrxfrm-tests: New file.
8198         * tests/test-astrxfrm.c: New file.
8199
8200         New module 'astrxfrm'.
8201         * lib/astrxfrm.h: New file.
8202         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
8203         * modules/astrxfrm: New file.
8204
8205 2010-08-14  Reuben Thomas <rrt@sc3d.org>
8206
8207         regex: Tweak doc.
8208         * doc/regex.texi (Overview): Don't mention regex.c.
8209         (GNU Regular Expression Compiling): Likewise.
8210         (Match-end-of-line Operator): Mention 'not_eol'.
8211
8212 2010-08-14  Brian Gough  <bjg@gnu.org>
8213             Bruno Haible  <bruno@clisp.org>
8214
8215         git-merge-changelog: add doc relating to use with bzr and hg.
8216         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
8217
8218 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
8219
8220         pthread: fix pthread.h creation for srcdir != builddir
8221         * modules/pthread (Makefile.am): Fix the rule to work also in a
8222         non-srcdir build.
8223
8224 2010-08-13  Karl Berry  <karl@gnu.org>
8225
8226         * doc/regex.texi (Predefined Syntaxes): @smallexample.
8227         * doc/posix-*/*: force line break before @url of POSIX
8228         specifications.
8229         Suggested by Werner Lemberg.
8230
8231 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8232
8233         strtod: fix const diagnostic
8234         * lib/strtod.c (strtod): Don't assign const char * to char *,
8235         as this elicits a warning from GCC when warnings are enabled.
8236
8237 2010-08-10  Pádraig Brady <P@draigbrady.com>
8238         and Eric Blake  <eblake@redhat.com>
8239
8240         copy-acl: ignore ENOTSUP on HP-UX
8241         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
8242         so that it is available for HP-UX.
8243         * lib/copy-acl.c (qcopy_acl): Use it.
8244         Reported by Patrick M. Callahan.
8245
8246 2010-08-10  Eric Blake  <eblake@redhat.com>
8247
8248         open, chown: relax license
8249         * modules/open (License): Change to LGPLv2+, with consent by all
8250         authors, for use in augeas.
8251         * modules/chown (License): Likewise.
8252         * modules/lchown (Likewise): Likewise.
8253         Requested by Adam Stokes.
8254
8255 2010-08-09  Karl Berry  <karl@gnu.org>
8256
8257         * build-aux/ar-lib: new file, import from Automake.
8258         * config/srclist.txt: autocheck for updates.
8259
8260 2010-08-09  Eric Blake  <eblake@redhat.com>
8261
8262         readlinkat: adjust client modules
8263         * modules/areadlinkat (Depends-on): Use readlinkat, not
8264         symlinkat.
8265         * modules/areadlinkat-with-size (Depends-on): Likewise.
8266
8267         mknod: be more vocal about danger of running tests as root
8268         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
8269         root, since that is just asking for problems.
8270         Suggested by Bruno Haible, based on a report by Rainer Tammer.
8271
8272         readlinkat: split into its own module
8273         * modules/symlinkat: Split readlinkat...
8274         * modules/readlinkat: ...into separate module.
8275         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
8276         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
8277         * lib/symlinkat.c (readlinkat): Move...
8278         * lib/readlinkat.c: ...into new file.
8279         * modules/symlinkat-tests: Split readlinkat test...
8280         * modules/readlinkat-tests: ...into separate module.
8281         * tests/test-symlinkat.c: Split...
8282         * tests/test-readlinkat.c: ...into new file.
8283         * NEWS: Document the split.
8284         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8285         * lib/unistd.in.h (readlinkat): Likewise.
8286         Suggested by Bruno Haible.
8287
8288 2010-08-08  Bruno Haible  <bruno@clisp.org>
8289
8290         memxfrm: Speed up.
8291         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
8292         that usually only one call to strxfrm is necessary for each string
8293         part.
8294         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8295
8296 2010-08-07  Karl Berry  <karl@gnu.org>
8297
8298         * doc/posix-headers/limits.texi,
8299         * doc/posix-functions/malloc.texi,
8300         * doc/posix-functions/strsignal.texi: missing @item.
8301         * doc/ld-version-script.texi: spurious leading i.
8302         * doc/regex.texi (Interval Operators): no commas inside @var.
8303
8304 2010-08-01  Bruno Haible  <bruno@clisp.org>
8305
8306         Integrate the regex documentation.
8307         * doc/gnulib.texi: Define 'cn' index.
8308         (Regular expressions): New a chapter that includes regex.texi and
8309         regexprops-generic.texi.
8310         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
8311         syntax.
8312
8313         Whitespace cleanup.
8314         * doc/regex.texi: Remove trailing spaces.
8315
8316         Add regex documentation.
8317         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
8318         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
8319         Written by Kathy A. Hargreaves and Karl Berry.
8320
8321 2010-08-01  Bruno Haible  <bruno@clisp.org>
8322
8323         link: Update documentation.
8324         * doc/posix-functions/link.texi: Update regarding Solaris.
8325
8326 2010-07-31  Bruno Haible  <bruno@clisp.org>
8327
8328         Update modules list.
8329         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
8330         (String handling <string.h>): Add memcmp2, memxfrm.
8331         (Container data structures): Add xlist, xsublist, xoset.
8332         (Core language properties): Add alignof, unused-parameter.
8333         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8334         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8335         (Unibyte characters <ctype.h>): New section.
8336         (String handling <string.h>): New section.
8337         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8338         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8339         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8340         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8341         tan, tanh, tanl, y0, y1, yn.
8342         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8343         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8344         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8345         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8346         unlockpt, vdprintf, vdprintf-posix.
8347         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8348         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8349         xconcat-filename.
8350         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8351         getdtablesize, pipe2, pipe2-safer.
8352         (Security): New section.
8353         (Networking functions): Add accept4.
8354         (Signal handling): Add sigpipe.
8355         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8356         mbmemcasecoll.
8357         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8358         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
8359         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
8360         pipe-filter-ii.
8361         (Misc): Add argp-version-etc, login_tty, parse-duration.
8362
8363 2010-07-31  Bruno Haible  <bruno@clisp.org>
8364
8365         Improve doc in MODULES.html.
8366         * modules/linkat (Description): Add the word "function".
8367         * modules/mkfifo (Description): Likewise.
8368         * modules/mknod (Description): Likewise.
8369         * modules/remove (Description): Likewise.
8370         * modules/renameat (Description): Likewise.
8371         * modules/stat (Description): Likewise.
8372         * modules/symlink (Description): Likewise.
8373         * modules/unlink (Description): Likewise.
8374
8375 2010-07-31  Bruno Haible  <bruno@clisp.org>
8376
8377         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
8378         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
8379         option --enable/disable-c++ instead of --enable/disable-cxx.
8380         * NEWS: Mention the change.
8381
8382 2010-07-31  Bruno Haible  <bruno@clisp.org>
8383
8384         readlink, areadlink: Relax test a bit.
8385         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
8386         alternative to ENOTDIR.
8387         * tests/test-areadlink.h (test_areadlink): Likewise.
8388         Reported by Rainer Tammer.
8389
8390 2010-07-31  Bruno Haible  <bruno@clisp.org>
8391
8392         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
8393         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
8394         character, perform the search using U_STRCHR.
8395         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
8396         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
8397         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
8398         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
8399         Suggested by Paolo Bonzini.
8400
8401 2010-07-31  Bruno Haible  <bruno@clisp.org>
8402
8403         unistr/u*-strstr: Fix dependencies.
8404         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
8405         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
8406         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
8407
8408 2010-07-31  Bruno Haible  <bruno@clisp.org>
8409
8410         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
8411         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
8412         the beginning of the loop.
8413         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
8414         cases in 'switch' statement.
8415
8416         unistr/u8-strchr: Fix several bugs.
8417         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
8418         the string. When not found, return NULL, not a pointer near the end.
8419
8420         More tests for unistr/u8-strchr.
8421         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
8422         that the function does not read past the first occurrence of the byte
8423         being searched.
8424         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
8425         * tests/unistr/test-u16-strchr.c (main): New function.
8426         * tests/unistr/test-u32-strchr.c (main): New function.
8427
8428 2010-07-31  Bruno Haible  <bruno@clisp.org>
8429
8430         posix-modules: Ignore backup files of documentation files.
8431         * posix-modules: grep only through files named *.texi.
8432
8433 2010-07-31  Bruno Haible  <bruno@clisp.org>
8434
8435         symlinkat: Fix documentation.
8436         * doc/posix-functions/readlinkat.texi: Fix module name.
8437
8438 2010-07-31  Bruno Haible  <bruno@clisp.org>
8439
8440         fchownat: Replace also when chown has the trailing slash bug.
8441         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
8442         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
8443         introduced on 2010-04-10.
8444         Reported by Rainer Tammer.
8445
8446 2010-07-31  Bruno Haible  <bruno@clisp.org>
8447
8448         linkat: Work around AIX 7.1 bug.
8449         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
8450         whether linkat handles trailing slash correctly. If not, replace linkat
8451         and define LINKAT_TRAILING_SLASH_BUG.
8452         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
8453         check whether (fd1,file1) points to a directory if file1 or file2 ends
8454         in a slash. Code taken from lib/link.c.
8455         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
8456         Reported by Rainer Tammer.
8457
8458 2010-07-31  Bruno Haible  <bruno@clisp.org>
8459
8460         Correctly determine whether pow is available in libc on AIX 7 with xlc.
8461         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
8462         This disables an xlc optimization that was causing wrong test results.
8463         Reported by Rainer Tammer.
8464
8465 2010-07-31  Bruno Haible  <bruno@clisp.org>
8466
8467         iconv: Work around AIX 6.1..7.1 bug.
8468         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8469         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8470         cross-compiling, guess no on all versions of AIX.
8471         Reported by Rainer Tammer.
8472
8473 2010-07-31  Bruno Haible  <bruno@clisp.org>
8474
8475         readlink: Relax test a bit.
8476         * tests/test-readlink.h (test_readlink): Allow different errno value
8477         when readlink is called with a file name that ends in / and refers to
8478         a file.
8479         Suggested by Eric Blake.
8480         Reported by Rainer Tammer.
8481
8482 2010-07-31  Bruno Haible  <bruno@clisp.org>
8483
8484         copysign: Does not require -lm on glibc systems.
8485         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8486         gl_COMMON_DOUBLE_MATHFUNC.
8487         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8488
8489 2010-07-31  Bruno Haible  <bruno@clisp.org>
8490
8491         duplocale: Work around AIX 7.1 bug.
8492         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8493         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8494         * lib/duplocale.c (rpl_duplocale): Update comment.
8495         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8496         Reported by Rainer Tammer.
8497
8498 2010-07-30  Bruno Haible  <bruno@clisp.org>
8499
8500         dirfd: Avoid link error on AIX 7.1.
8501         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8502         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8503         exist, set REPLACE_DIRFD.
8504         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8505         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8506         * doc/posix-functions/dirfd.texi: Update.
8507         Reported by Rainer Tammer.
8508
8509 2010-07-30  Eric Blake  <eblake@redhat.com>
8510
8511         strtod: next round of AIX fixes
8512         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
8513         exponent.
8514         * tests/test-strtod.c (main): Enhance tests.
8515         * doc/posix-functions/strtod.texi (strtod): Document next bug.
8516         Reported by Rainer Tammer.
8517
8518         futimens: fix configure check
8519         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
8520         Reported by Bruno Haible.
8521
8522 2010-07-30  Bruno Haible  <bruno@clisp.org>
8523
8524         getline: Update regarding AIX.
8525         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
8526         Reported by Rainer Tammer.
8527
8528 2010-07-30  Bruno Haible  <bruno@clisp.org>
8529
8530         wcwidth: Drop replacement on AIX 7.
8531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
8532         AIX 7.
8533         Reported by Rainer Tammer.
8534
8535 2010-07-30  Bruno Haible  <bruno@clisp.org>
8536
8537         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
8538         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
8539         a 'char *'.
8540         Reported by Rainer Tammer.
8541
8542 2010-07-30  Bruno Haible  <bruno@clisp.org>
8543
8544         unlink: Update regarding AIX.
8545         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
8546         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
8547         Reported by Rainer Tammer.
8548
8549 2010-07-30  Bruno Haible  <bruno@clisp.org>
8550
8551         symlink: Update regarding AIX.
8552         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
8553         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
8554         Reported by Rainer Tammer.
8555
8556 2010-07-30  Bruno Haible  <bruno@clisp.org>
8557
8558         strndup: Update regarding AIX.
8559         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
8560         AIX 7.
8561         Reported by Rainer Tammer.
8562
8563 2010-07-30  Bruno Haible  <bruno@clisp.org>
8564
8565         stat: Update regarding AIX.
8566         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
8567         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
8568         Reported by Rainer Tammer.
8569
8570 2010-07-30  Bruno Haible  <bruno@clisp.org>
8571
8572         truncl: Fix autoconf test.
8573         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
8574         whether truncl works.
8575         Reported by Rainer Tammer.
8576
8577 2010-07-30  Bruno Haible  <bruno@clisp.org>
8578
8579         round: Update regarding AIX.
8580         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
8581         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
8582         Reported by Rainer Tammer.
8583
8584 2010-07-30  Bruno Haible  <bruno@clisp.org>
8585
8586         rename: Update regarding AIX.
8587         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
8588         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
8589         Reported by Rainer Tammer.
8590
8591 2010-07-30  Bruno Haible  <bruno@clisp.org>
8592
8593         printf.m4: Update regarding AIX.
8594         * m4/printf.m4: Update comments regarding AIX.
8595         Reported by Rainer Tammer.
8596
8597 2010-07-30  Bruno Haible  <bruno@clisp.org>
8598
8599         iconv: Update regarding AIX.
8600         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
8601         AIX 7.
8602         Reported by Rainer Tammer.
8603
8604 2010-07-30  Bruno Haible  <bruno@clisp.org>
8605
8606         getopt: Update regarding AIX.
8607         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
8608         no on AIX.
8609         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
8610         Reported by Rainer Tammer.
8611
8612 2010-07-30  Bruno Haible  <bruno@clisp.org>
8613
8614         ldexpl; Update regarding AIX.
8615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
8616         on AIX 7.
8617         Reported by Rainer Tammer.
8618
8619 2010-07-30  Bruno Haible  <bruno@clisp.org>
8620
8621         frexpl: Update regarding AIX.
8622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
8623         on AIX 7.
8624         Reported by Rainer Tammer.
8625
8626 2010-07-30  Bruno Haible  <bruno@clisp.org>
8627
8628         open, fopen: Update regarding AIX.
8629         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
8630         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8631         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
8632         * doc/posix-functions/fopen.texi: Likewise.
8633         Reported by Rainer Tammer.
8634
8635 2010-07-30  Bruno Haible  <bruno@clisp.org>
8636
8637         chown: Update doc regarding AIX.
8638         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
8639         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
8640         Reported by Rainer Tammer.
8641
8642 2010-07-30  Eric Blake  <eblake@redhat.com>
8643
8644         strtod: fix bug in replacement function on AIX
8645         * lib/strtod.c (strtod): Special case broken "0x" parse in
8646         underlying strtod.
8647         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
8648         * doc/posix-functions/strtod.texi (strtod): Likewise.
8649         Reported by Rainer Tammer.
8650
8651 2010-07-30  Bruno Haible  <bruno@clisp.org>
8652
8653         mbrlen: Fix cross-compilation guess for AIX.
8654         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
8655         guess. Leftover from 2008-12-22.
8656
8657 2010-07-30  Bruno Haible  <bruno@clisp.org>
8658
8659         mbrtowc: Fix cross-compilation guess for AIX.
8660         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
8661         guess. Leftover from 2008-12-21.
8662
8663 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
8664
8665         init.sh: work around trap limitation of some shells
8666         * tests/init.sh (setup_): Move exit trap outside of shell function.
8667
8668 2010-07-29  Eric Blake  <eblake@redhat.com>
8669
8670         strtod: aid debugging
8671         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
8672         understanding why strtod is rejected.
8673
8674 2010-07-28  Bruno Haible  <bruno@clisp.org>
8675
8676         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
8677         * lib/unistr/u8-chr.c: Include <string.h>.
8678         * tests/unistr/test-u8-chr.c: Likewise.
8679         * tests/unistr/test-u16-chr.c: Likewise.
8680         * tests/unistr/test-u32-chr.c: Likewise.
8681         * tests/unistr/test-u8-strchr.c: Likewise.
8682         * tests/unistr/test-u16-strchr.c: Likewise.
8683         * tests/unistr/test-u32-strchr.c: Likewise.
8684         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
8685         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
8686         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
8687         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
8688
8689 2010-07-28  Bruno Haible  <bruno@clisp.org>
8690
8691         Use spaces for indentation, not tabs.
8692         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8693
8694 2010-07-27  Bruno Haible  <bruno@clisp.org>
8695
8696         mbspcasecmp: Fix function specification.
8697         * lib/string.in.h (mbspcasecmp): Fix specification comment.
8698         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
8699         Reported by Eric Blake <eblake@redhat.com>.
8700
8701 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
8702
8703         timespec: use cast and not conditional, as truncation isn't possible
8704         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
8705         instead of a conditional.  Comment about the situation in more detail.
8706         This undoes most of the 2009-10-29 patch.
8707
8708 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
8709
8710         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
8711         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
8712         * lib/unistr/u8-strchr.c: Likewise.
8713         * modules/unistr/u8-chr: Depend on memchr.
8714
8715         unistr/u*-strchr: add tests
8716         * modules/unistr/u8-strchr-tests: New file.
8717         * modules/unistr/u16-strchr-tests: New file.
8718         * modules/unistr/u32-strchr-tests: New file.
8719         * tests/unistr/test-strchr.h: New file.
8720         * tests/unistr/test-u8-strchr.c: New file.
8721         * tests/unistr/test-u16-strchr.c: New file.
8722         * tests/unistr/test-u32-strchr.c: New file.
8723
8724         unistr/u*-chr: test multibyte sequences more
8725         * tests/unistr/test-chr.h: Do complete testing of the characters in the
8726         test vector.
8727         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
8728         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
8729         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
8730
8731         unistr/u*-chr: test multibyte sequences
8732         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
8733
8734         unistr/u*-chr: prepare for multibyte tests
8735         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
8736         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
8737         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
8738         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
8739         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
8740         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
8741
8742 2010-07-18  Bruno Haible  <bruno@clisp.org>
8743
8744         unistr/u8-strchr: Optimize non-ASCII argument case.
8745         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
8746         because the first byte often matches anyway.
8747         Reported by Pádraig Brady <P@draigbrady.com>.
8748
8749 2010-07-15  Karl Berry  <karl@gnu.org>
8750
8751         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
8752
8753 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
8754
8755         getcwd: on Solaris, work better if ancestors are inaccessible
8756         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
8757         buffer and size, try again with a large buffer.  This works better
8758         on Solaris, since its getcwd succeeds even if the path to the root
8759         is inaccessible, and this is helpful in common cases such as .zfs
8760         hidden directories.  Problem reported by J Chapman Flack in
8761         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
8762         Use system getcwd if it's declared, not merely if it's partly
8763         working; use the partly-working test only to avoid needless effort
8764         if the system getcwd fails.
8765         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
8766         comment that was already obsolete and is now even more obsolete.
8767         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
8768         now might call strdup.
8769
8770 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
8771
8772         pthread: Add enough so that coreutils/src/sort.c compiles.
8773         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
8774         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
8775         gnulib. Include <sched.h> and <time.h>, as per POSIX.
8776         Include <sys/types.h>, in case it defines pthread_t.
8777         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
8778         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
8779         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
8780         (pthread_rwlockattr_t, pthread_spinlock_t):
8781         New typedefs, if HAVE_PTHREAD_T is not defined.
8782         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
8783         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
8784         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
8785         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
8786         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
8787         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
8788         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
8789         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
8790         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
8791         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
8792         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
8793         New macros.
8794         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
8795         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
8796         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
8797         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
8798         (pthread_spin_unlock): New dummy functions.
8799         (pthread_create): Return EAGAIN; don't set errno.
8800         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
8801         require AC_C_INLINE.
8802         * modules/pthread (Depends-on): Add sched, time.
8803         (pthread.h): Use AM_V_GEN.
8804
8805 2010-07-13  Bruno Haible  <bruno@clisp.org>
8806
8807         striconveh: Don't malloc memory if the result buffer is sufficient.
8808         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
8809         buffer if its size is sufficient.
8810         Reported by Ludovic Courtès <ludo@gnu.org>.
8811
8812 2010-07-13  Bruno Haible  <bruno@clisp.org>
8813
8814         strtod: Add safety check.
8815         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
8816
8817 2010-07-12  Bruno Haible  <bruno@clisp.org>
8818
8819         Unify tests that set gl_cv_func_ldexpl_no_libm.
8820         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
8821         gl_FUNC_LDEXPL.
8822         (gl_FUNC_LDEXPL): Invoke it.
8823         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8824
8825 2010-07-12  Bruno Haible  <bruno@clisp.org>
8826
8827         Unify tests that set gl_cv_func_ldexp_no_libm.
8828         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
8829         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
8830         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
8831         (configure.ac): Simply invoke gl_FUNC_LDEXP.
8832         * modules/strtod (Files): Add m4/ldexp.m4.
8833
8834 2010-07-12  Bruno Haible  <bruno@clisp.org>
8835
8836         Unify tests that set gl_cv_func_frexpl_no_libm.
8837         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
8838         gl_FUNC_FREXPL_NO_LIBM.
8839         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
8840         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8841
8842 2010-07-12  Bruno Haible  <bruno@clisp.org>
8843
8844         Unify tests that set gl_cv_func_frexp_no_libm.
8845         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
8846         gl_FUNC_FREXP_NO_LIBM.
8847         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
8848         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8849
8850 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8851
8852         memcoll: clarify sizes versus lengths, document better, and tweak perf
8853         * lib/memcoll.c (strcoll_loop, memcoll0):
8854         Improve quality of descriptive comments.  Name variables
8855         consistently as to whether they are lengths (which do not include
8856         terminating null) versus sizes (which do).
8857         * lib/xmemcoll.c (xmemcoll0): Likewise.
8858         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
8859         returned when s1size == 0; this is easier to compile and saves
8860         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
8861
8862 2010-07-12  Bruno Haible  <bruno@clisp.org>
8863
8864         Tests for module '_Exit'.
8865         * modules/_Exit-tests: New file.
8866         * tests/test-_Exit.sh: New file.
8867         * tests/test-_Exit.c: New file.
8868
8869         New module '_Exit'.
8870         * lib/stdlib.in.h (__attribute__): New macro.
8871         (_Exit): New declaration.
8872         * lib/_Exit.c: New file.
8873         * m4/_Exit.m4: New file.
8874         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
8875         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
8876         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
8877         * modules/_Exit: New file.
8878         * tests/test-stdlib-c++.cc (_Exit): Check signature.
8879         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
8880
8881 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8882
8883         strtod: make it more-accurate typically, and don't require libm
8884         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
8885         Include limits.h.  Don't include string.h.
8886         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
8887         (locale_isspace): New function, so that no casts are needed to
8888         check whether *s is a space.
8889         (ldexp): Provide an unused dummy if not available.
8890         (scale_radix_exp, parse_number, underlying_strtod): New functions.
8891         (strtod): Use them.  This implementation prefers to use the
8892         underlying strtod if available, falling back on our own code
8893         only to fix known bugs.  This is more likely to produce an
8894         accurate result.  Also, it avoids the use of libm functions.
8895         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
8896         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
8897         was absent, but it caused a test failure with coreutils.
8898         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
8899         with libm.
8900         * modules/strtod (Makefile.am, Link): libm is no longer needed.
8901         * modules/strtod-tests (Makefile.am): Likewise.
8902
8903 2010-07-11  Pádraig Brady  <P@draigBrady.com>
8904             Bruno Haible  <bruno@clisp.org>
8905
8906         unistr/u8-strchr: Optimize ASCII argument case.
8907         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
8908
8909 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8910
8911         (x)memcoll: minor tweaks
8912         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
8913         is after the type that it qualifies.
8914         (memcoll0): Likewise.
8915         * lib/memcoll.h (memcoll0): Likewise.
8916         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
8917         * lib/xmemcoll.h (xmemcoll0): Likewise.
8918         * lib/memcoll.c (memcoll0): Correct the comment.  This function
8919         differs from memcoll in that the NUL byte is part of the argument.
8920         Omit the abort-checks, as performance is a real issue here.  Plus,
8921         the checks were wrong anyway (an off-by-one error).  Omit local
8922         variable 'diff', as it's a bit clearer that way.
8923         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
8924         no longer needed.
8925
8926 2010-07-08  Chen Guo <chenguo4@yahoo.com>
8927
8928         (x)memcoll: speedup when input is known to be NUL delimited
8929         * lib/memcoll.c: Include stdlib.
8930         (memcoll0) New function.
8931         (strcoll_loop) New function, refactored for use in both memcoll
8932         and memcoll0.
8933         * lib/memcoll.h: Add prototype for memcoll0.
8934         * lib/xmemcoll.c: (xmemcoll0) New function.
8935         (collate_error) New function, refactored for use in both xmemcoll
8936         and xmemcoll0.
8937         * lib/xmemcoll.h: Add prototype for xmemcoll0.
8938         * m4/memcoll.m4: add inline invocation.
8939
8940 2010-07-06  Pádraig Brady  <P@draigBrady.com>
8941
8942         * build-aux/bootstrap: Remove any local translations
8943         from the translation project synchronization directory,
8944         so that local only translations are not distributed.
8945
8946 2010-07-04  Bruno Haible  <bruno@clisp.org>
8947
8948         fsusage: Clarify which code applies to which platforms.
8949         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
8950         platform.
8951         * lib/fsusage.c (get_fs_usage): Likewise.
8952
8953 2010-07-04  Bruno Haible  <bruno@clisp.org>
8954
8955         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
8956         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
8957         Reported by Martin Lambers <marlam@marlam.de>.
8958
8959 2010-07-04  Jim Meyering  <meyering@redhat.com>
8960
8961         hash: once again explicitly disallow insertion of NULL
8962         * lib/hash.c (hash_insert0): Reinstate just-removed test:
8963         inserting a NULL pointer cannot work with these functions.
8964         Add a comment with details.
8965         This reverts part of the 2010-07-01 commit, 5bef1a35
8966         "hash: extend module to deal with non-pointer keys".
8967
8968 2010-07-01  Bruno Haible  <bruno@clisp.org>
8969
8970         stdbool: Update doc.
8971         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
8972         Info from Christian Weisgerber <naddy@mips.inka.de>.
8973
8974 2010-07-01  Jim Meyering  <meyering@redhat.com>
8975
8976         hash: extend module to deal with non-pointer keys
8977         * lib/hash.c (hash_insert0): New interface, much like hash_insert
8978         but that allows insertion of non-pointer entries.
8979         Do not disallow an ENTRY value of NULL.
8980         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
8981         * lib/hash.h (hash_insert0): Declare.
8982
8983 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8984
8985         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
8986         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
8987         not present (i.e. with autoconf 2.59 and when using gettextize, not
8988         gnulib), require AC_GNU_SOURCE instead.
8989
8990 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
8991
8992         idpriv-drop: Fix tests.
8993         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
8994         not to the test-idpriv-droptemp program.
8995
8996 2010-06-29  Bruno Haible  <bruno@clisp.org>
8997
8998         string: Fix syntax error with g++ 2.96.
8999         * lib/string.in.h (__pure__): Remove definition.
9000         (_GL_ATTRIBUTE_PURE): New macro.
9001         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
9002         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
9003         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9004
9005 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
9006
9007         unitypes: Fix bug introduced on 2010-05-18.
9008         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
9009
9010 2010-06-22  Eric Blake  <eblake@redhat.com>
9011
9012         memmem: slight optimization
9013         * lib/str-two-way.h (critical_factorization): Update comments.
9014         Reduce work during factorization phase.
9015         Reported by Carlos Bueno <carlos@bueno.org>.
9016
9017 2010-06-21  Bruno Haible  <bruno@clisp.org>
9018
9019         Fix HAVE_CALLOC_POSIX misnomer.
9020         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
9021         !HAVE_CALLOC_POSIX.
9022         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
9023         HAVE_CALLOC_POSIX.
9024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
9025         instead of HAVE_CALLOC_POSIX.
9026         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
9027         HAVE_CALLOC_POSIX.
9028
9029         Use modern idiom for calloc() replacement.
9030         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
9031         AC_FUNC_CALLOC.
9032         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
9033         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
9034         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9035         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
9036         (gl_REPLACE_CALLOC): New macro.
9037
9038 2010-06-21  Bruno Haible  <bruno@clisp.org>
9039
9040         Fix HAVE_REALLOC_POSIX misnomer.
9041         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
9042         !HAVE_REALLOC_POSIX.
9043         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
9044         HAVE_REALLOC_POSIX.
9045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
9046         instead of HAVE_REALLOC_POSIX.
9047         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
9048         HAVE_REALLOC_POSIX.
9049
9050         Use modern idiom for realloc() replacement.
9051         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
9052         AC_FUNC_REALLOC.
9053         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
9054         Autoconf's AC_FUNC_REALLOC.
9055         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9056         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
9057         (gl_REPLACE_REALLOC): New macro.
9058         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9059
9060 2010-06-21  Bruno Haible  <bruno@clisp.org>
9061
9062         Fix HAVE_MALLOC_POSIX misnomer.
9063         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
9064         !HAVE_MALLOC_POSIX.
9065         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
9066         HAVE_MALLOC_POSIX.
9067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
9068         instead of HAVE_MALLOC_POSIX.
9069         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
9070         HAVE_MALLOC_POSIX.
9071
9072         Use modern idiom for malloc() replacement.
9073         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
9074         AC_FUNC_MALLOC.
9075         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
9076         Autoconf's AC_FUNC_MALLOC.
9077         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9078         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
9079         (gl_REPLACE_MALLOC): New macro.
9080         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9081
9082 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
9083
9084         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
9085         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
9086         This macro takes 3 arguments, not 4.
9087
9088 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
9089
9090         ipv6: fix detection under mingw
9091         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
9092         in6_addr.
9093
9094 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
9095
9096         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
9097         that strtod() works when cross-compiling to a glibc version known
9098         to work.
9099
9100 2010-06-15  Bruno Haible  <bruno@clisp.org>
9101
9102         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
9103
9104 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
9105
9106         select: Correct timeout.
9107         * lib/select.c (rpl_select): Compute wait_timeout correctly.
9108
9109 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9110
9111         git-version-gen: init shell var to avoid env var influence
9112         * build-aux/git-version-gen (v): Init shell var to empty.
9113
9114 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         priv-set: Don't assume that priv.h exists merely because getppriv does.
9117         See Jan Andersen's bug report about AIX 5L in
9118         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
9119         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
9120         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9121         * lib/priv-set.h: Likewise.
9122         * tests/test-priv-set.c: Likewise.
9123
9124 2010-06-13  Bruno Haible  <bruno@clisp.org>
9125
9126         relocatable: Make it easier to test whether to install wrappers.
9127         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9128         RELOCATABLE_VIA_WRAPPER.
9129
9130 2010-06-13  Bruno Haible  <bruno@clisp.org>
9131
9132         gnulib-tool: Display specified modules and dependencies differently.
9133         * gnulib-tool (func_show_module_list): New function.
9134         (func_import, func_create_testdir): Invoke it.
9135         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9136
9137 2010-06-13  Bruno Haible  <bruno@clisp.org>
9138
9139         gnulib-tool: Align code of func_import and func_create_testdir.
9140         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
9141         specified_modules.
9142
9143 2010-06-12  Jim Meyering  <meyering@redhat.com>
9144
9145         test-inttostr: avoid spurious failure on Solaris 9
9146         * tests/test-inttostr.c (main): Skip the test when snprintf fails
9147         to accept "%ju".  Reported by Bruno Haible.
9148
9149 2010-06-11  Jim Meyering  <meyering@redhat.com>
9150
9151         test-sys_socket: mark variables as used more readably
9152         * tests/test-sys_socket.c (main): Mark otherwise unused variables
9153         as "used" explicitly via (void) statement casts.  This is more
9154         readable than using them in an artificial return expression.
9155         Suggestion from Bruno Haible.
9156
9157 2010-06-11  Bruno Haible  <bruno@clisp.org>
9158
9159         Avoid some more warnings from "gcc -Wwrite-strings".
9160         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
9161         to 'const char *'.
9162         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
9163         * tests/test-c-strcasestr.c (main): Likewise.
9164         * tests/test-mbscasestr1.c (main): Likewise.
9165         * tests/test-mbscasestr2.c (main): Likewise.
9166         * tests/test-memmem.c (main): Likewise.
9167         * tests/test-strstr.c (main): Likewise.
9168         * tests/test-strcasestr.c (main): Likewise.
9169
9170 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9171
9172         init.sh: change framework_failure_ to fail with status 99, not 1
9173         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
9174         automake's parallel-tests rule that this is an unexpected failure,
9175         even if the test is listed in XFAIL_TESTS.
9176
9177 2010-06-11  Jim Meyering  <meyering@redhat.com>
9178
9179         test-inttostr: avoid warnings about 4-6KB literal strings
9180         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
9181         Include "macros.h", for its definition of ASSERT.
9182         (CK): s/assert/ASSERT/
9183         * modules/inttostr-tests (Files): Add macros.h.
9184
9185         init.sh: don't use $ME_ or skip_ before they are defined
9186         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
9187         their first uses.  Also hoist their companions: warn_, fail_,
9188         framework_failure_, $stderr_fileno.  Prompted by a patch from
9189         Stefano Lattarini.
9190
9191         test-sys_socket: avoid set-but-not-used warnings from gcc
9192         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
9193         avoid warning about set-but-not-used variables.
9194
9195         test-xvasprintf: avoid 'const' discard warnings
9196         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
9197         "const" when assigning from literal strings.
9198         (test_xasprintf): Add "void" in function argument list to placate
9199         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
9200
9201         tests: avoid compilation warnings in argmatch and exclude tests...
9202         in packages that define ARGMATCH_DIE_DECL, like coreutils.
9203         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
9204         Since it always exits, declare with the "noreturn" attribute.
9205         * tests/test-argmatch.c: Likewise.
9206
9207         tests: avoid 'const' discard warnings in mbsstr tests
9208         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
9209         * tests/test-mbsstr2.c (main): Likewise.
9210
9211         test-verify: avoid warning from gcc's -Wmissing-declarations
9212         * tests/test-verify.c (function): Declare to be static.
9213
9214         test-inttostr.c: include <string.h> for use of strcmp
9215         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
9216
9217         test-linkat: avoid failed assertion on "other" architectures
9218         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
9219         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
9220         sparc: https://bugs.launchpad.net/bugs/591968
9221
9222 2010-06-11  Jim Meyering  <meyering@redhat.com>
9223
9224         printf.m4: avoid autoconf's "Expanded Before Required" warning
9225         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
9226         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
9227         autoconf warning.
9228
9229 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
9230
9231         Replacement header templates are now named with ".in", not "_".
9232         * doc/gnulib-intro.texi: Correct.
9233
9234 2010-06-10  Jim Meyering  <meyering@redhat.com>
9235
9236         inttostr-tests: depend on snprintf, not snprintf-posix
9237         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
9238         snprintf-posix, to avoid this aclocal failure:
9239           missing file gnulib-tests/vasnprintf.c
9240           configure.ac:45: error: expected source file, required through \
9241           AC_LIBSOURCES, not found
9242
9243 2010-06-10  Jim Meyering  <meyering@redhat.com>
9244
9245         inttostr: add a new function, inttostr, and tests
9246         The namesake function was not available.  The existence of the
9247         template file, inttostr.c makes its addition nontrivial.
9248         * lib/anytostr.c: Rename from inttostr.c.
9249         (anytostr): Rename from inttostr.
9250         * lib/inttostr.c: New file.
9251         * modules/inttostr (Files): Add anytostr.c.
9252         (Makefile.am): Set lib_SOURCES instead of ...
9253         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
9254         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
9255         * lib/offtostr.c: Likewise.
9256         * lib/uinttostr.c: Likewise.
9257         * lib/umaxtostr.c: Likewise.
9258         * modules/inttostr-tests: New file.
9259         * tests/test-inttostr.c: New file.  Test these functions.
9260
9261 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
9262             Bruno Haible  <bruno@clisp.org>
9263
9264         Add "Extending Gnulib" chapter to manual.
9265         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
9266         chapter.
9267         (Extending Gnulib): New chapter.
9268         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
9269         chapter.
9270
9271 2010-06-09  Bruno Haible  <bruno@clisp.org>
9272
9273         Avoid relocwrapper link errors due to gnulib replacement functions.
9274         * lib/areadlink.c: Use the system's malloc, realloc functions.
9275         (areadlink): Set errno to ENOMEM explicitly.
9276         * modules/areadlink (Depends-on): Remove malloc-posix.
9277         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9278
9279 2010-06-09  Bruno Haible  <bruno@clisp.org>
9280
9281         Avoid relocwrapper link errors due to gnulib replacement functions.
9282         * lib/canonicalize-lgpl.c: Use the system's malloc function.
9283         * lib/malloca.c: Likewise.
9284         * lib/relocatable.c: Likewise.
9285         * lib/progreloc.c: Use the system's malloc, sprintf functions.
9286         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
9287         * lib/setenv.c: Use the system's malloc, realloc functions.
9288         * lib/strerror.c: Use the system's sprintf function.
9289         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9290
9291 2010-06-04  Bruno Haible  <bruno@clisp.org>
9292
9293         Prefer documented low-level autoconf macro names.
9294         * m4/lib-link.m4: Use m4_translit instead of translit.
9295         * m4/environ.m4: Likewise.
9296         * m4/mathfunc.m4: Likewise.
9297         * m4/onceonly.m4: Likewise.
9298         * m4/stdint.m4: Likewise.
9299         Suggested by Eric Blake.
9300
9301 2010-06-04  Martin Lambers  <marlam@marlam.de>
9302             Bruno Haible  <bruno@clisp.org>
9303
9304         havelib: Allow library names with '+' characters.
9305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9306         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
9307
9308 2010-06-09  Bruno Haible  <bruno@clisp.org>
9309
9310         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
9311         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
9312         realloc failed.
9313
9314 2010-06-08  Peter Simons  <simons@cryp.to>
9315
9316         maint.mk: make the news-check rule more configurable
9317         * top/maint.mk (news-check-lines-spec) New variable.
9318         (news-check): Use "sed -n 1,10p" in place of "head".
9319
9320 2010-06-07  Jim Meyering  <meyering@redhat.com>
9321
9322         do-release-commit-and-tag: fix typo in --help
9323         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
9324
9325         regex: avoid new dead-code warning with gcc-4.6.0
9326         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
9327         if-block containing a while-loop.  It's been unused for at least
9328         5 years.
9329
9330 2010-06-05  Bruno Haible  <bruno@clisp.org>
9331
9332         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9333         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9334
9335 2010-06-04  Bruno Haible  <bruno@clisp.org>
9336
9337         Update to GNU gettext 0.18.1.
9338         * modules/gettext (configure.ac): Require gettext infrastructure from
9339         version 0.18.1.
9340
9341 2010-06-03  Bruno Haible  <bruno@clisp.org>
9342
9343         Don't use AC_LIBOBJ with file names in subdirectories.
9344         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9345         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9346         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9347         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9348         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9349         gl_LIBUNISTRING_LIBSOURCE.
9350         (Makefile.am): Augment lib_SOURCES here, conditionally.
9351         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9352
9353 2010-06-03  Bruno Haible  <bruno@clisp.org>
9354
9355         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9356         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9357         expansion does not end with a newline.
9358         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
9359         unnecessary newline.
9360
9361 2010-06-03  Bruno Haible  <bruno@clisp.org>
9362
9363         Reduce dependencies.
9364         * tests/test-quotearg.h: New file, extracted from
9365         tests/test-quotearg.c.
9366         * tests/test-quotearg-simple.c: New file, extracted from
9367         tests/test-quotearg.c.
9368         * tests/test-quotearg.c: Don't include <ctype.h>.
9369         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
9370         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
9371         use_quote_double_quotes, use_quotearg_colon): Moved to
9372         tests/test-quotearg.h.
9373         (results_g, flag_results, custom_quotes, custom_results): Moved
9374         to tests/test-quotearg-simple.c.
9375         (main): Moved the part that does not depend on gettext to
9376         tests/test-quotearg-simple.c. Return 77 if the test cannot be
9377         performed.
9378         * modules/quotearg-simple: New file.
9379         * modules/quotearg-simple-tests: New file.
9380         * modules/quotearg (Depends-on): Add quotearg-simple.
9381         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
9382         (Files): Add tests/test-quotearg.h.
9383         Reported by Paolo Bonzini.
9384
9385 2010-06-03  Bruno Haible  <bruno@clisp.org>
9386
9387         Reduce dependencies.
9388         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
9389
9390 2010-06-03  Bruno Haible  <bruno@clisp.org>
9391
9392         time: Undefine more broken macros.
9393         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
9394         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
9395         Reported by Eric Blake.
9396
9397 2010-06-03  Bruno Haible  <bruno@clisp.org>
9398
9399         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
9400         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
9401         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
9402         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
9403         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
9404         Reported by Ludovic Courtès <ludo@gnu.org>.
9405
9406 2010-06-02  Eric Blake  <eblake@redhat.com>
9407
9408         time: work with mingw + pthreads-win32 library
9409         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
9410         if timespec is defined only in pthread.h.
9411         * modules/time (Makefile.am): Substitute it.
9412         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
9413         <pthread.h>, when needed.
9414         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
9415         from the library.
9416
9417 2010-05-31  Bruno Haible  <bruno@clisp.org>
9418
9419         Avoid expanding two macros in the wrong order.
9420         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
9421         gl_LIBUNISTRING if it is defined.
9422         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
9423         autoconf >= 2.64.
9424         Reported by Ludovic Courtès <ludo@gnu.org>.
9425
9426 2010-05-27  Jim Meyering  <meyering@redhat.com>
9427
9428         maint.mk: also prohibit "#undef" of always-defined symbols
9429         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
9430         Allow more than one space before the symbol name.
9431         (sc_prohibit_always-defined_macros): Use grep's -E, now that
9432         the regexp uses alternation.
9433
9434 2010-05-26  Eric Blake  <eblake@redhat.com>
9435
9436         maint.mk: avoid echo -e
9437         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
9438         Convert all uses of echo -* to printf.
9439         Reported by Matthias Bolte.
9440
9441 2010-05-25  Bruno Haible  <bruno@clisp.org>
9442
9443         Update to GNU gettext 0.18, part 2.
9444         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
9445         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
9446
9447 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9448
9449         Add missing include in test-pwrite.c.
9450         * tests/test-pwrite.c: Include string.h, for strcmp.
9451
9452 2010-05-24  Bruno Haible  <bruno@clisp.org>
9453
9454         * NEWS: Mention requirement for Automake option 'subdir-objects'.
9455
9456 2010-05-24  Bruno Haible  <bruno@clisp.org>
9457
9458         Don't use conversion with transliteration in u{8,16,32}_strcoll.
9459         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
9460         iconveh_error argument.
9461         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
9462         U_STRCONV_TO_LOCALE.
9463         * lib/unistr/u16-strcoll.c: Likewise.
9464         * lib/unistr/u32-strcoll.c: Likewise.
9465         * modules/unistr/u8-strcoll (Depends-on): Add
9466         uniconv/u8-strconv-to-enc, localcharset. Remove
9467         uniconv/u8-strconv-to-locale.
9468         (configure.ac): Bump version number.
9469         * modules/unistr/u16-strcoll (Depends-on): Add
9470         uniconv/u16-strconv-to-enc, localcharset. Remove
9471         uniconv/u16-strconv-to-locale.
9472         (configure.ac): Bump version number.
9473         * modules/unistr/u32-strcoll (Depends-on): Add
9474         uniconv/u32-strconv-to-enc, localcharset. Remove
9475         uniconv/u32-strconv-to-locale.
9476         (configure.ac): Bump version number.
9477
9478 2010-05-24  Bruno Haible  <bruno@clisp.org>
9479
9480         Avoid a test failure on NetBSD 5.0.
9481         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9482         an iconv() bug.
9483
9484 2010-05-24  Bruno Haible  <bruno@clisp.org>
9485
9486         Adjust #include directive style.
9487         * modules/regex (Includes): Recommend to write <regex.h>.
9488
9489 2010-05-24  Bruno Haible  <bruno@clisp.org>
9490
9491         regex: Don't require alloca.
9492         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9493         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9494         only inside if (0).
9495
9496 2010-05-23  Jim Meyering  <meyering@redhat.com>
9497
9498         test-renameat.c: include <sys/stat.h>
9499         * tests/test-renameat.c: Include <sys/stat.h>; required for
9500         definition of S_IS* macros.
9501
9502 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9503
9504         Update maintainer documentation for 'relocatable-prog' module.
9505         * doc/relocatable-maint.texi: Update.
9506         Comments by Bruno Haible.
9507
9508 2010-05-23  Bruno Haible  <bruno@clisp.org>
9509
9510         git-merge-changelog: Enable --split-merged-entry by default.
9511         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
9512         (usage): Don't mention this option any more.
9513         Reported by Ralf Wildenhues.
9514
9515 2010-05-23  Jim Meyering  <meyering@redhat.com>
9516
9517         test-pwrite: do not leave behind a test file named "out"
9518         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
9519         The trivial-looking use of init.sh is really necessary.
9520         It ensures that the temporary file, "out", is created in
9521         a temporary directory, and removed upon termination.
9522         * tests/test-pwrite.sh: Re-add file.
9523         * modules/pwrite-tests: Reference it.
9524
9525 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9526
9527         Fix output redirection buglet in init.sh.
9528         * tests/init.sh: Fix redirection of stderr.
9529
9530 2010-05-20  Simon Josefsson  <simon@josefsson.org>
9531
9532         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
9533
9534 2010-05-17  Simon Josefsson  <simon@josefsson.org>
9535
9536         * modules/valgrind-tests: New file.
9537         * m4/valgrind-tests.m4: New file.
9538         * doc/valgrind-tests.texi: New file.
9539         * doc/gnulib.texi (Running self-tests under valgrind): New
9540         section.
9541
9542 2010-05-19  Bruno Haible  <bruno@clisp.org>
9543
9544         Clean up dead code in recent commit.
9545         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
9546         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
9547         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
9548         Suggested by Paolo Bonzini.
9549
9550 2010-05-19  Bruno Haible  <bruno@clisp.org>
9551
9552         Avoid valgrind error reports from libunistring.
9553         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
9554         * modules/libunistring (Files): Add it.
9555         * modules/libunistring-optional (Files): Likewise.
9556
9557 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
9558             Bruno Haible  <bruno@clisp.org>
9559
9560         New module 'libunistring-optional'.
9561         * modules/libunistring-optional: New file.
9562         * m4/libunistring-base.m4: New file.
9563         * m4/libunistring-optional.m4: New file.
9564         * lib/unicase.in.h: Renamed from lib/unicase.h.
9565         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
9566         * lib/unictype.in.h: Renamed from lib/unictype.h.
9567         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
9568         * lib/uniname.in.h: Renamed from lib/uniname.h.
9569         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
9570         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
9571         * lib/unistr.in.h: Renamed from lib/unistr.h.
9572         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
9573         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
9574         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
9575         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
9576         gl_LIBUNISTRING. If the library was found, determine the installed
9577         version and set LIBUNISTRING_VERSION.
9578         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
9579         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
9580         handle a configuration option --with-included-libunistring.
9581         * modules/libunistring (Files): Add m4/absolute-header.m4.
9582         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
9583         Add m4/libunistring-base.m4.
9584         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9585         (Makefile.am): Build unicase.h from unicase.in.h.
9586         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
9587         Add m4/libunistring-base.m4.
9588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9589         (Makefile.am): Build uniconv.h from uniconv.in.h.
9590         * modules/unictype/base (Files): Use unictype.in.h instead of
9591         unictype.h. Add m4/libunistring-base.m4.
9592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9593         (Makefile.am): Build unictype.h from unictype.in.h.
9594         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
9595         Add m4/libunistring-base.m4.
9596         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9597         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
9598         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
9599         Add m4/libunistring-base.m4.
9600         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9601         (Makefile.am): Build uniname.h from uniname.in.h.
9602         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
9603         Add m4/libunistring-base.m4.
9604         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9605         (Makefile.am): Build uninorm.h from uninorm.in.h.
9606         * modules/unistdio/base (Files): Use unistdio.in.h instead of
9607         unistdio.h. Add m4/libunistring-base.m4.
9608         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9609         (Makefile.am): Build unistdio.h from unistdio.in.h.
9610         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
9611         Add m4/libunistring-base.m4.
9612         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9613         (Makefile.am): Build unistr.h from unistr.in.h.
9614         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
9615         Add m4/libunistring-base.m4.
9616         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9617         (Makefile.am): Build unitypes.h from unitypes.in.h.
9618         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
9619         Add m4/libunistring-base.m4.
9620         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9621         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
9622         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
9623         uniwidth.h. Add m4/libunistring-base.m4.
9624         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9625         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
9626         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
9627         instead of augmenting lib_SOURCES.
9628         * modules/unicase/empty-suffix-context: Likewise.
9629         * modules/unicase/locale-language: Likewise.
9630         * modules/unicase/tolower: Likewise.
9631         * modules/unicase/totitle: Likewise.
9632         * modules/unicase/toupper: Likewise.
9633         * modules/unicase/u8-casecmp: Likewise.
9634         * modules/unicase/u8-casecoll: Likewise.
9635         * modules/unicase/u8-casefold: Likewise.
9636         * modules/unicase/u8-casexfrm: Likewise.
9637         * modules/unicase/u8-ct-casefold: Likewise.
9638         * modules/unicase/u8-ct-tolower: Likewise.
9639         * modules/unicase/u8-ct-totitle: Likewise.
9640         * modules/unicase/u8-ct-toupper: Likewise.
9641         * modules/unicase/u8-is-cased: Likewise.
9642         * modules/unicase/u8-is-casefolded: Likewise.
9643         * modules/unicase/u8-is-lowercase: Likewise.
9644         * modules/unicase/u8-is-titlecase: Likewise.
9645         * modules/unicase/u8-is-uppercase: Likewise.
9646         * modules/unicase/u8-prefix-context: Likewise.
9647         * modules/unicase/u8-suffix-context: Likewise.
9648         * modules/unicase/u8-tolower: Likewise.
9649         * modules/unicase/u8-totitle: Likewise.
9650         * modules/unicase/u8-toupper: Likewise.
9651         * modules/unicase/u16-casecmp: Likewise.
9652         * modules/unicase/u16-casecoll: Likewise.
9653         * modules/unicase/u16-casefold: Likewise.
9654         * modules/unicase/u16-casexfrm: Likewise.
9655         * modules/unicase/u16-ct-casefold: Likewise.
9656         * modules/unicase/u16-ct-tolower: Likewise.
9657         * modules/unicase/u16-ct-totitle: Likewise.
9658         * modules/unicase/u16-ct-toupper: Likewise.
9659         * modules/unicase/u16-is-cased: Likewise.
9660         * modules/unicase/u16-is-casefolded: Likewise.
9661         * modules/unicase/u16-is-lowercase: Likewise.
9662         * modules/unicase/u16-is-titlecase: Likewise.
9663         * modules/unicase/u16-is-uppercase: Likewise.
9664         * modules/unicase/u16-prefix-context: Likewise.
9665         * modules/unicase/u16-suffix-context: Likewise.
9666         * modules/unicase/u16-tolower: Likewise.
9667         * modules/unicase/u16-totitle: Likewise.
9668         * modules/unicase/u16-toupper: Likewise.
9669         * modules/unicase/u32-casecmp: Likewise.
9670         * modules/unicase/u32-casecoll: Likewise.
9671         * modules/unicase/u32-casefold: Likewise.
9672         * modules/unicase/u32-casexfrm: Likewise.
9673         * modules/unicase/u32-ct-casefold: Likewise.
9674         * modules/unicase/u32-ct-tolower: Likewise.
9675         * modules/unicase/u32-ct-totitle: Likewise.
9676         * modules/unicase/u32-ct-toupper: Likewise.
9677         * modules/unicase/u32-is-cased: Likewise.
9678         * modules/unicase/u32-is-casefolded: Likewise.
9679         * modules/unicase/u32-is-lowercase: Likewise.
9680         * modules/unicase/u32-is-titlecase: Likewise.
9681         * modules/unicase/u32-is-uppercase: Likewise.
9682         * modules/unicase/u32-prefix-context: Likewise.
9683         * modules/unicase/u32-suffix-context: Likewise.
9684         * modules/unicase/u32-tolower: Likewise.
9685         * modules/unicase/u32-totitle: Likewise.
9686         * modules/unicase/u32-toupper: Likewise.
9687         * modules/unicase/ulc-casecmp: Likewise.
9688         * modules/unicase/ulc-casecoll: Likewise.
9689         * modules/unicase/ulc-casexfrm: Likewise.
9690         * modules/uniconv/u8-conv-from-enc: Likewise.
9691         * modules/uniconv/u8-conv-to-enc: Likewise.
9692         * modules/uniconv/u8-strconv-from-enc: Likewise.
9693         * modules/uniconv/u8-strconv-from-locale: Likewise.
9694         * modules/uniconv/u8-strconv-to-enc: Likewise.
9695         * modules/uniconv/u8-strconv-to-locale: Likewise.
9696         * modules/uniconv/u16-conv-from-enc: Likewise.
9697         * modules/uniconv/u16-conv-to-enc: Likewise.
9698         * modules/uniconv/u16-strconv-from-enc: Likewise.
9699         * modules/uniconv/u16-strconv-from-locale: Likewise.
9700         * modules/uniconv/u16-strconv-to-enc: Likewise.
9701         * modules/uniconv/u16-strconv-to-locale: Likewise.
9702         * modules/uniconv/u32-conv-from-enc: Likewise.
9703         * modules/uniconv/u32-conv-to-enc: Likewise.
9704         * modules/uniconv/u32-strconv-from-enc: Likewise.
9705         * modules/uniconv/u32-strconv-from-locale: Likewise.
9706         * modules/uniconv/u32-strconv-to-enc: Likewise.
9707         * modules/uniconv/u32-strconv-to-locale: Likewise.
9708         * modules/unictype/bidicategory-byname: Likewise.
9709         * modules/unictype/bidicategory-name: Likewise.
9710         * modules/unictype/bidicategory-of: Likewise.
9711         * modules/unictype/bidicategory-test: Likewise.
9712         * modules/unictype/block-list: Likewise.
9713         * modules/unictype/block-test: Likewise.
9714         * modules/unictype/category-C: Likewise.
9715         * modules/unictype/category-Cc: Likewise.
9716         * modules/unictype/category-Cf: Likewise.
9717         * modules/unictype/category-Cn: Likewise.
9718         * modules/unictype/category-Co: Likewise.
9719         * modules/unictype/category-Cs: Likewise.
9720         * modules/unictype/category-L: Likewise.
9721         * modules/unictype/category-Ll: Likewise.
9722         * modules/unictype/category-Lm: Likewise.
9723         * modules/unictype/category-Lo: Likewise.
9724         * modules/unictype/category-Lt: Likewise.
9725         * modules/unictype/category-Lu: Likewise.
9726         * modules/unictype/category-M: Likewise.
9727         * modules/unictype/category-Mc: Likewise.
9728         * modules/unictype/category-Me: Likewise.
9729         * modules/unictype/category-Mn: Likewise.
9730         * modules/unictype/category-N: Likewise.
9731         * modules/unictype/category-Nd: Likewise.
9732         * modules/unictype/category-Nl: Likewise.
9733         * modules/unictype/category-No: Likewise.
9734         * modules/unictype/category-P: Likewise.
9735         * modules/unictype/category-Pc: Likewise.
9736         * modules/unictype/category-Pd: Likewise.
9737         * modules/unictype/category-Pe: Likewise.
9738         * modules/unictype/category-Pf: Likewise.
9739         * modules/unictype/category-Pi: Likewise.
9740         * modules/unictype/category-Po: Likewise.
9741         * modules/unictype/category-Ps: Likewise.
9742         * modules/unictype/category-S: Likewise.
9743         * modules/unictype/category-Sc: Likewise.
9744         * modules/unictype/category-Sk: Likewise.
9745         * modules/unictype/category-Sm: Likewise.
9746         * modules/unictype/category-So: Likewise.
9747         * modules/unictype/category-Z: Likewise.
9748         * modules/unictype/category-Zl: Likewise.
9749         * modules/unictype/category-Zp: Likewise.
9750         * modules/unictype/category-Zs: Likewise.
9751         * modules/unictype/category-and: Likewise.
9752         * modules/unictype/category-and-not: Likewise.
9753         * modules/unictype/category-byname: Likewise.
9754         * modules/unictype/category-name: Likewise.
9755         * modules/unictype/category-none: Likewise.
9756         * modules/unictype/category-of: Likewise.
9757         * modules/unictype/category-or: Likewise.
9758         * modules/unictype/category-test: Likewise.
9759         * modules/unictype/combining-class: Likewise.
9760         * modules/unictype/ctype-alnum: Likewise.
9761         * modules/unictype/ctype-alpha: Likewise.
9762         * modules/unictype/ctype-blank: Likewise.
9763         * modules/unictype/ctype-cntrl: Likewise.
9764         * modules/unictype/ctype-digit: Likewise.
9765         * modules/unictype/ctype-graph: Likewise.
9766         * modules/unictype/ctype-lower: Likewise.
9767         * modules/unictype/ctype-print: Likewise.
9768         * modules/unictype/ctype-punct: Likewise.
9769         * modules/unictype/ctype-space: Likewise.
9770         * modules/unictype/ctype-upper: Likewise.
9771         * modules/unictype/ctype-xdigit: Likewise.
9772         * modules/unictype/decimal-digit: Likewise.
9773         * modules/unictype/digit: Likewise.
9774         * modules/unictype/mirror: Likewise.
9775         * modules/unictype/numeric: Likewise.
9776         * modules/unictype/property-alphabetic: Likewise.
9777         * modules/unictype/property-ascii-hex-digit: Likewise.
9778         * modules/unictype/property-bidi-arabic-digit: Likewise.
9779         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
9780         * modules/unictype/property-bidi-block-separator: Likewise.
9781         * modules/unictype/property-bidi-boundary-neutral: Likewise.
9782         * modules/unictype/property-bidi-common-separator: Likewise.
9783         * modules/unictype/property-bidi-control: Likewise.
9784         * modules/unictype/property-bidi-embedding-or-override: Likewise.
9785         * modules/unictype/property-bidi-eur-num-separator: Likewise.
9786         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
9787         * modules/unictype/property-bidi-european-digit: Likewise.
9788         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
9789         * modules/unictype/property-bidi-left-to-right: Likewise.
9790         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
9791         * modules/unictype/property-bidi-other-neutral: Likewise.
9792         * modules/unictype/property-bidi-pdf: Likewise.
9793         * modules/unictype/property-bidi-segment-separator: Likewise.
9794         * modules/unictype/property-bidi-whitespace: Likewise.
9795         * modules/unictype/property-byname: Likewise.
9796         * modules/unictype/property-combining: Likewise.
9797         * modules/unictype/property-composite: Likewise.
9798         * modules/unictype/property-currency-symbol: Likewise.
9799         * modules/unictype/property-dash: Likewise.
9800         * modules/unictype/property-decimal-digit: Likewise.
9801         * modules/unictype/property-default-ignorable-code-point: Likewise.
9802         * modules/unictype/property-deprecated: Likewise.
9803         * modules/unictype/property-diacritic: Likewise.
9804         * modules/unictype/property-extender: Likewise.
9805         * modules/unictype/property-format-control: Likewise.
9806         * modules/unictype/property-grapheme-base: Likewise.
9807         * modules/unictype/property-grapheme-extend: Likewise.
9808         * modules/unictype/property-grapheme-link: Likewise.
9809         * modules/unictype/property-hex-digit: Likewise.
9810         * modules/unictype/property-hyphen: Likewise.
9811         * modules/unictype/property-id-continue: Likewise.
9812         * modules/unictype/property-id-start: Likewise.
9813         * modules/unictype/property-ideographic: Likewise.
9814         * modules/unictype/property-ids-binary-operator: Likewise.
9815         * modules/unictype/property-ids-trinary-operator: Likewise.
9816         * modules/unictype/property-ignorable-control: Likewise.
9817         * modules/unictype/property-iso-control: Likewise.
9818         * modules/unictype/property-join-control: Likewise.
9819         * modules/unictype/property-left-of-pair: Likewise.
9820         * modules/unictype/property-line-separator: Likewise.
9821         * modules/unictype/property-logical-order-exception: Likewise.
9822         * modules/unictype/property-lowercase: Likewise.
9823         * modules/unictype/property-math: Likewise.
9824         * modules/unictype/property-non-break: Likewise.
9825         * modules/unictype/property-not-a-character: Likewise.
9826         * modules/unictype/property-numeric: Likewise.
9827         * modules/unictype/property-other-alphabetic: Likewise.
9828         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
9829         * modules/unictype/property-other-grapheme-extend: Likewise.
9830         * modules/unictype/property-other-id-continue: Likewise.
9831         * modules/unictype/property-other-id-start: Likewise.
9832         * modules/unictype/property-other-lowercase: Likewise.
9833         * modules/unictype/property-other-math: Likewise.
9834         * modules/unictype/property-other-uppercase: Likewise.
9835         * modules/unictype/property-paired-punctuation: Likewise.
9836         * modules/unictype/property-paragraph-separator: Likewise.
9837         * modules/unictype/property-pattern-syntax: Likewise.
9838         * modules/unictype/property-pattern-white-space: Likewise.
9839         * modules/unictype/property-private-use: Likewise.
9840         * modules/unictype/property-punctuation: Likewise.
9841         * modules/unictype/property-quotation-mark: Likewise.
9842         * modules/unictype/property-radical: Likewise.
9843         * modules/unictype/property-sentence-terminal: Likewise.
9844         * modules/unictype/property-soft-dotted: Likewise.
9845         * modules/unictype/property-space: Likewise.
9846         * modules/unictype/property-terminal-punctuation: Likewise.
9847         * modules/unictype/property-test: Likewise.
9848         * modules/unictype/property-titlecase: Likewise.
9849         * modules/unictype/property-unassigned-code-value: Likewise.
9850         * modules/unictype/property-unified-ideograph: Likewise.
9851         * modules/unictype/property-uppercase: Likewise.
9852         * modules/unictype/property-variation-selector: Likewise.
9853         * modules/unictype/property-white-space: Likewise.
9854         * modules/unictype/property-xid-continue: Likewise.
9855         * modules/unictype/property-xid-start: Likewise.
9856         * modules/unictype/property-zero-width: Likewise.
9857         * modules/unictype/scripts: Likewise.
9858         * modules/unictype/syntax-c-ident: Likewise.
9859         * modules/unictype/syntax-c-whitespace: Likewise.
9860         * modules/unictype/syntax-java-ident: Likewise.
9861         * modules/unictype/syntax-java-whitespace: Likewise.
9862         * modules/unilbrk/u8-possible-linebreaks: Likewise.
9863         * modules/unilbrk/u8-width-linebreaks: Likewise.
9864         * modules/unilbrk/u16-possible-linebreaks: Likewise.
9865         * modules/unilbrk/u16-width-linebreaks: Likewise.
9866         * modules/unilbrk/u32-possible-linebreaks: Likewise.
9867         * modules/unilbrk/u32-width-linebreaks: Likewise.
9868         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
9869         * modules/unilbrk/ulc-width-linebreaks: Likewise.
9870         * modules/uniname/uniname: Likewise.
9871         * modules/uninorm/canonical-decomposition: Likewise.
9872         * modules/uninorm/composition: Likewise.
9873         * modules/uninorm/decomposing-form: Likewise.
9874         * modules/uninorm/decomposition: Likewise.
9875         * modules/uninorm/filter: Likewise.
9876         * modules/uninorm/nfc: Likewise.
9877         * modules/uninorm/nfd: Likewise.
9878         * modules/uninorm/nfkc: Likewise.
9879         * modules/uninorm/nfkd: Likewise.
9880         * modules/uninorm/u8-normalize: Likewise.
9881         * modules/uninorm/u8-normcmp: Likewise.
9882         * modules/uninorm/u8-normcoll: Likewise.
9883         * modules/uninorm/u8-normxfrm: Likewise.
9884         * modules/uninorm/u16-normalize: Likewise.
9885         * modules/uninorm/u16-normcmp: Likewise.
9886         * modules/uninorm/u16-normcoll: Likewise.
9887         * modules/uninorm/u16-normxfrm: Likewise.
9888         * modules/uninorm/u32-normalize: Likewise.
9889         * modules/uninorm/u32-normcmp: Likewise.
9890         * modules/uninorm/u32-normcoll: Likewise.
9891         * modules/uninorm/u32-normxfrm: Likewise.
9892         * modules/unistdio/u8-asnprintf: Likewise.
9893         * modules/unistdio/u8-asprintf: Likewise.
9894         * modules/unistdio/u8-snprintf: Likewise.
9895         * modules/unistdio/u8-sprintf: Likewise.
9896         * modules/unistdio/u8-u8-asnprintf: Likewise.
9897         * modules/unistdio/u8-u8-asprintf: Likewise.
9898         * modules/unistdio/u8-u8-snprintf: Likewise.
9899         * modules/unistdio/u8-u8-sprintf: Likewise.
9900         * modules/unistdio/u8-u8-vasnprintf: Likewise.
9901         * modules/unistdio/u8-u8-vasprintf: Likewise.
9902         * modules/unistdio/u8-u8-vsnprintf: Likewise.
9903         * modules/unistdio/u8-u8-vsprintf: Likewise.
9904         * modules/unistdio/u8-vasnprintf: Likewise.
9905         * modules/unistdio/u8-vasprintf: Likewise.
9906         * modules/unistdio/u8-vsnprintf: Likewise.
9907         * modules/unistdio/u8-vsprintf: Likewise.
9908         * modules/unistdio/u16-asnprintf: Likewise.
9909         * modules/unistdio/u16-asprintf: Likewise.
9910         * modules/unistdio/u16-snprintf: Likewise.
9911         * modules/unistdio/u16-sprintf: Likewise.
9912         * modules/unistdio/u16-u16-asnprintf: Likewise.
9913         * modules/unistdio/u16-u16-asprintf: Likewise.
9914         * modules/unistdio/u16-u16-snprintf: Likewise.
9915         * modules/unistdio/u16-u16-sprintf: Likewise.
9916         * modules/unistdio/u16-u16-vasnprintf: Likewise.
9917         * modules/unistdio/u16-u16-vasprintf: Likewise.
9918         * modules/unistdio/u16-u16-vsnprintf: Likewise.
9919         * modules/unistdio/u16-u16-vsprintf: Likewise.
9920         * modules/unistdio/u16-vasnprintf: Likewise.
9921         * modules/unistdio/u16-vasprintf: Likewise.
9922         * modules/unistdio/u16-vsnprintf: Likewise.
9923         * modules/unistdio/u16-vsprintf: Likewise.
9924         * modules/unistdio/u32-asnprintf: Likewise.
9925         * modules/unistdio/u32-asprintf: Likewise.
9926         * modules/unistdio/u32-snprintf: Likewise.
9927         * modules/unistdio/u32-sprintf: Likewise.
9928         * modules/unistdio/u32-u32-asnprintf: Likewise.
9929         * modules/unistdio/u32-u32-asprintf: Likewise.
9930         * modules/unistdio/u32-u32-snprintf: Likewise.
9931         * modules/unistdio/u32-u32-sprintf: Likewise.
9932         * modules/unistdio/u32-u32-vasnprintf: Likewise.
9933         * modules/unistdio/u32-u32-vasprintf: Likewise.
9934         * modules/unistdio/u32-u32-vsnprintf: Likewise.
9935         * modules/unistdio/u32-u32-vsprintf: Likewise.
9936         * modules/unistdio/u32-vasnprintf: Likewise.
9937         * modules/unistdio/u32-vasprintf: Likewise.
9938         * modules/unistdio/u32-vsnprintf: Likewise.
9939         * modules/unistdio/u32-vsprintf: Likewise.
9940         * modules/unistdio/ulc-asnprintf: Likewise.
9941         * modules/unistdio/ulc-asprintf: Likewise.
9942         * modules/unistdio/ulc-fprintf: Likewise.
9943         * modules/unistdio/ulc-snprintf: Likewise.
9944         * modules/unistdio/ulc-sprintf: Likewise.
9945         * modules/unistdio/ulc-vasnprintf: Likewise.
9946         * modules/unistdio/ulc-vasprintf: Likewise.
9947         * modules/unistdio/ulc-vfprintf: Likewise.
9948         * modules/unistdio/ulc-vsnprintf: Likewise.
9949         * modules/unistdio/ulc-vsprintf: Likewise.
9950         * modules/unistr/u8-check: Likewise.
9951         * modules/unistr/u8-chr: Likewise.
9952         * modules/unistr/u8-cmp: Likewise.
9953         * modules/unistr/u8-cmp2: Likewise.
9954         * modules/unistr/u8-cpy: Likewise.
9955         * modules/unistr/u8-cpy-alloc: Likewise.
9956         * modules/unistr/u8-endswith: Likewise.
9957         * modules/unistr/u8-mblen: Likewise.
9958         * modules/unistr/u8-mbsnlen: Likewise.
9959         * modules/unistr/u8-mbtouc: Likewise.
9960         * modules/unistr/u8-mbtouc-unsafe: Likewise.
9961         * modules/unistr/u8-mbtoucr: Likewise.
9962         * modules/unistr/u8-move: Likewise.
9963         * modules/unistr/u8-next: Likewise.
9964         * modules/unistr/u8-prev: Likewise.
9965         * modules/unistr/u8-set: Likewise.
9966         * modules/unistr/u8-startswith: Likewise.
9967         * modules/unistr/u8-stpcpy: Likewise.
9968         * modules/unistr/u8-stpncpy: Likewise.
9969         * modules/unistr/u8-strcat: Likewise.
9970         * modules/unistr/u8-strchr: Likewise.
9971         * modules/unistr/u8-strcmp: Likewise.
9972         * modules/unistr/u8-strcoll: Likewise.
9973         * modules/unistr/u8-strcpy: Likewise.
9974         * modules/unistr/u8-strcspn: Likewise.
9975         * modules/unistr/u8-strdup: Likewise.
9976         * modules/unistr/u8-strlen: Likewise.
9977         * modules/unistr/u8-strmblen: Likewise.
9978         * modules/unistr/u8-strmbtouc: Likewise.
9979         * modules/unistr/u8-strncat: Likewise.
9980         * modules/unistr/u8-strncmp: Likewise.
9981         * modules/unistr/u8-strncpy: Likewise.
9982         * modules/unistr/u8-strnlen: Likewise.
9983         * modules/unistr/u8-strpbrk: Likewise.
9984         * modules/unistr/u8-strrchr: Likewise.
9985         * modules/unistr/u8-strspn: Likewise.
9986         * modules/unistr/u8-strstr: Likewise.
9987         * modules/unistr/u8-strtok: Likewise.
9988         * modules/unistr/u8-to-u16: Likewise.
9989         * modules/unistr/u8-to-u32: Likewise.
9990         * modules/unistr/u8-uctomb: Likewise.
9991         * modules/unistr/u16-check: Likewise.
9992         * modules/unistr/u16-chr: Likewise.
9993         * modules/unistr/u16-cmp: Likewise.
9994         * modules/unistr/u16-cmp2: Likewise.
9995         * modules/unistr/u16-cpy: Likewise.
9996         * modules/unistr/u16-cpy-alloc: Likewise.
9997         * modules/unistr/u16-endswith: Likewise.
9998         * modules/unistr/u16-mblen: Likewise.
9999         * modules/unistr/u16-mbsnlen: Likewise.
10000         * modules/unistr/u16-mbtouc: Likewise.
10001         * modules/unistr/u16-mbtouc-unsafe: Likewise.
10002         * modules/unistr/u16-mbtoucr: Likewise.
10003         * modules/unistr/u16-move: Likewise.
10004         * modules/unistr/u16-next: Likewise.
10005         * modules/unistr/u16-prev: Likewise.
10006         * modules/unistr/u16-set: Likewise.
10007         * modules/unistr/u16-startswith: Likewise.
10008         * modules/unistr/u16-stpcpy: Likewise.
10009         * modules/unistr/u16-stpncpy: Likewise.
10010         * modules/unistr/u16-strcat: Likewise.
10011         * modules/unistr/u16-strchr: Likewise.
10012         * modules/unistr/u16-strcmp: Likewise.
10013         * modules/unistr/u16-strcoll: Likewise.
10014         * modules/unistr/u16-strcpy: Likewise.
10015         * modules/unistr/u16-strcspn: Likewise.
10016         * modules/unistr/u16-strdup: Likewise.
10017         * modules/unistr/u16-strlen: Likewise.
10018         * modules/unistr/u16-strmblen: Likewise.
10019         * modules/unistr/u16-strmbtouc: Likewise.
10020         * modules/unistr/u16-strncat: Likewise.
10021         * modules/unistr/u16-strncmp: Likewise.
10022         * modules/unistr/u16-strncpy: Likewise.
10023         * modules/unistr/u16-strnlen: Likewise.
10024         * modules/unistr/u16-strpbrk: Likewise.
10025         * modules/unistr/u16-strrchr: Likewise.
10026         * modules/unistr/u16-strspn: Likewise.
10027         * modules/unistr/u16-strstr: Likewise.
10028         * modules/unistr/u16-strtok: Likewise.
10029         * modules/unistr/u16-to-u32: Likewise.
10030         * modules/unistr/u16-to-u8: Likewise.
10031         * modules/unistr/u16-uctomb: Likewise.
10032         * modules/unistr/u32-check: Likewise.
10033         * modules/unistr/u32-chr: Likewise.
10034         * modules/unistr/u32-cmp: Likewise.
10035         * modules/unistr/u32-cmp2: Likewise.
10036         * modules/unistr/u32-cpy: Likewise.
10037         * modules/unistr/u32-cpy-alloc: Likewise.
10038         * modules/unistr/u32-endswith: Likewise.
10039         * modules/unistr/u32-mblen: Likewise.
10040         * modules/unistr/u32-mbsnlen: Likewise.
10041         * modules/unistr/u32-mbtouc: Likewise.
10042         * modules/unistr/u32-mbtouc-unsafe: Likewise.
10043         * modules/unistr/u32-mbtoucr: Likewise.
10044         * modules/unistr/u32-move: Likewise.
10045         * modules/unistr/u32-next: Likewise.
10046         * modules/unistr/u32-prev: Likewise.
10047         * modules/unistr/u32-set: Likewise.
10048         * modules/unistr/u32-startswith: Likewise.
10049         * modules/unistr/u32-stpcpy: Likewise.
10050         * modules/unistr/u32-stpncpy: Likewise.
10051         * modules/unistr/u32-strcat: Likewise.
10052         * modules/unistr/u32-strchr: Likewise.
10053         * modules/unistr/u32-strcmp: Likewise.
10054         * modules/unistr/u32-strcoll: Likewise.
10055         * modules/unistr/u32-strcpy: Likewise.
10056         * modules/unistr/u32-strcspn: Likewise.
10057         * modules/unistr/u32-strdup: Likewise.
10058         * modules/unistr/u32-strlen: Likewise.
10059         * modules/unistr/u32-strmblen: Likewise.
10060         * modules/unistr/u32-strmbtouc: Likewise.
10061         * modules/unistr/u32-strncat: Likewise.
10062         * modules/unistr/u32-strncmp: Likewise.
10063         * modules/unistr/u32-strncpy: Likewise.
10064         * modules/unistr/u32-strnlen: Likewise.
10065         * modules/unistr/u32-strpbrk: Likewise.
10066         * modules/unistr/u32-strrchr: Likewise.
10067         * modules/unistr/u32-strspn: Likewise.
10068         * modules/unistr/u32-strstr: Likewise.
10069         * modules/unistr/u32-strtok: Likewise.
10070         * modules/unistr/u32-to-u16: Likewise.
10071         * modules/unistr/u32-to-u8: Likewise.
10072         * modules/unistr/u32-uctomb: Likewise.
10073         * modules/uniwbrk/u8-wordbreaks: Likewise.
10074         * modules/uniwbrk/u16-wordbreaks: Likewise.
10075         * modules/uniwbrk/u32-wordbreaks: Likewise.
10076         * modules/uniwbrk/ulc-wordbreaks: Likewise.
10077         * modules/uniwbrk/wordbreak-property: Likewise.
10078         * modules/uniwidth/u8-strwidth: Likewise.
10079         * modules/uniwidth/u8-width: Likewise.
10080         * modules/uniwidth/u16-strwidth: Likewise.
10081         * modules/uniwidth/u16-width: Likewise.
10082         * modules/uniwidth/u32-strwidth: Likewise.
10083         * modules/uniwidth/u32-width: Likewise.
10084         * modules/uniwidth/width: Likewise.
10085         * modules/unicase/cased-tests (Makefile.am): Link all test programs
10086         with $(LIBUNISTRING).
10087         * modules/unicase/ignorable-tests: Likewise.
10088         * modules/unicase/locale-language-tests: Likewise.
10089         * modules/unicase/tolower-tests: Likewise.
10090         * modules/unicase/totitle-tests: Likewise.
10091         * modules/unicase/toupper-tests: Likewise.
10092         * modules/unicase/u8-casecmp-tests: Likewise.
10093         * modules/unicase/u8-casecoll-tests: Likewise.
10094         * modules/unicase/u8-casefold-tests: Likewise.
10095         * modules/unicase/u8-is-cased-tests: Likewise.
10096         * modules/unicase/u8-is-casefolded-tests: Likewise.
10097         * modules/unicase/u8-is-lowercase-tests: Likewise.
10098         * modules/unicase/u8-is-titlecase-tests: Likewise.
10099         * modules/unicase/u8-is-uppercase-tests: Likewise.
10100         * modules/unicase/u8-tolower-tests: Likewise.
10101         * modules/unicase/u8-totitle-tests: Likewise.
10102         * modules/unicase/u8-toupper-tests: Likewise.
10103         * modules/unicase/u16-casecmp-tests: Likewise.
10104         * modules/unicase/u16-casecoll-tests: Likewise.
10105         * modules/unicase/u16-casefold-tests: Likewise.
10106         * modules/unicase/u16-is-cased-tests: Likewise.
10107         * modules/unicase/u16-is-casefolded-tests: Likewise.
10108         * modules/unicase/u16-is-lowercase-tests: Likewise.
10109         * modules/unicase/u16-is-titlecase-tests: Likewise.
10110         * modules/unicase/u16-is-uppercase-tests: Likewise.
10111         * modules/unicase/u16-tolower-tests: Likewise.
10112         * modules/unicase/u16-totitle-tests: Likewise.
10113         * modules/unicase/u16-toupper-tests: Likewise.
10114         * modules/unicase/u32-casecmp-tests: Likewise.
10115         * modules/unicase/u32-casecoll-tests: Likewise.
10116         * modules/unicase/u32-casefold-tests: Likewise.
10117         * modules/unicase/u32-is-cased-tests: Likewise.
10118         * modules/unicase/u32-is-casefolded-tests: Likewise.
10119         * modules/unicase/u32-is-lowercase-tests: Likewise.
10120         * modules/unicase/u32-is-titlecase-tests: Likewise.
10121         * modules/unicase/u32-is-uppercase-tests: Likewise.
10122         * modules/unicase/u32-tolower-tests: Likewise.
10123         * modules/unicase/u32-totitle-tests: Likewise.
10124         * modules/unicase/u32-toupper-tests: Likewise.
10125         * modules/unicase/ulc-casecmp-tests: Likewise.
10126         * modules/unicase/ulc-casecoll-tests: Likewise.
10127         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10128         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10129         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10130         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10131         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10132         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
10133         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
10134         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
10135         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
10136         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
10137         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
10138         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
10139         * modules/unictype/bidicategory-byname-tests: Likewise.
10140         * modules/unictype/bidicategory-name-tests: Likewise.
10141         * modules/unictype/bidicategory-of-tests: Likewise.
10142         * modules/unictype/bidicategory-test-tests: Likewise.
10143         * modules/unictype/block-list-tests: Likewise.
10144         * modules/unictype/block-of-tests: Likewise.
10145         * modules/unictype/block-test-tests: Likewise.
10146         * modules/unictype/category-C-tests: Likewise.
10147         * modules/unictype/category-Cc-tests: Likewise.
10148         * modules/unictype/category-Cf-tests: Likewise.
10149         * modules/unictype/category-Cn-tests: Likewise.
10150         * modules/unictype/category-Co-tests: Likewise.
10151         * modules/unictype/category-Cs-tests: Likewise.
10152         * modules/unictype/category-L-tests: Likewise.
10153         * modules/unictype/category-Ll-tests: Likewise.
10154         * modules/unictype/category-Lm-tests: Likewise.
10155         * modules/unictype/category-Lo-tests: Likewise.
10156         * modules/unictype/category-Lt-tests: Likewise.
10157         * modules/unictype/category-Lu-tests: Likewise.
10158         * modules/unictype/category-M-tests: Likewise.
10159         * modules/unictype/category-Mc-tests: Likewise.
10160         * modules/unictype/category-Me-tests: Likewise.
10161         * modules/unictype/category-Mn-tests: Likewise.
10162         * modules/unictype/category-N-tests: Likewise.
10163         * modules/unictype/category-Nd-tests: Likewise.
10164         * modules/unictype/category-Nl-tests: Likewise.
10165         * modules/unictype/category-No-tests: Likewise.
10166         * modules/unictype/category-P-tests: Likewise.
10167         * modules/unictype/category-Pc-tests: Likewise.
10168         * modules/unictype/category-Pd-tests: Likewise.
10169         * modules/unictype/category-Pe-tests: Likewise.
10170         * modules/unictype/category-Pf-tests: Likewise.
10171         * modules/unictype/category-Pi-tests: Likewise.
10172         * modules/unictype/category-Po-tests: Likewise.
10173         * modules/unictype/category-Ps-tests: Likewise.
10174         * modules/unictype/category-S-tests: Likewise.
10175         * modules/unictype/category-Sc-tests: Likewise.
10176         * modules/unictype/category-Sk-tests: Likewise.
10177         * modules/unictype/category-Sm-tests: Likewise.
10178         * modules/unictype/category-So-tests: Likewise.
10179         * modules/unictype/category-Z-tests: Likewise.
10180         * modules/unictype/category-Zl-tests: Likewise.
10181         * modules/unictype/category-Zp-tests: Likewise.
10182         * modules/unictype/category-Zs-tests: Likewise.
10183         * modules/unictype/category-and-not-tests: Likewise.
10184         * modules/unictype/category-and-tests: Likewise.
10185         * modules/unictype/category-byname-tests: Likewise.
10186         * modules/unictype/category-name-tests: Likewise.
10187         * modules/unictype/category-none-tests: Likewise.
10188         * modules/unictype/category-of-tests: Likewise.
10189         * modules/unictype/category-or-tests: Likewise.
10190         * modules/unictype/category-test-withtable-tests: Likewise.
10191         * modules/unictype/combining-class-tests: Likewise.
10192         * modules/unictype/ctype-alnum-tests: Likewise.
10193         * modules/unictype/ctype-alpha-tests: Likewise.
10194         * modules/unictype/ctype-blank-tests: Likewise.
10195         * modules/unictype/ctype-cntrl-tests: Likewise.
10196         * modules/unictype/ctype-digit-tests: Likewise.
10197         * modules/unictype/ctype-graph-tests: Likewise.
10198         * modules/unictype/ctype-lower-tests: Likewise.
10199         * modules/unictype/ctype-print-tests: Likewise.
10200         * modules/unictype/ctype-punct-tests: Likewise.
10201         * modules/unictype/ctype-space-tests: Likewise.
10202         * modules/unictype/ctype-upper-tests: Likewise.
10203         * modules/unictype/ctype-xdigit-tests: Likewise.
10204         * modules/unictype/decimal-digit-tests: Likewise.
10205         * modules/unictype/digit-tests: Likewise.
10206         * modules/unictype/mirror-tests: Likewise.
10207         * modules/unictype/numeric-tests: Likewise.
10208         * modules/unictype/property-alphabetic-tests: Likewise.
10209         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
10210         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
10211         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
10212         * modules/unictype/property-bidi-block-separator-tests: Likewise.
10213         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
10214         * modules/unictype/property-bidi-common-separator-tests: Likewise.
10215         * modules/unictype/property-bidi-control-tests: Likewise.
10216         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
10217         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
10218         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
10219         * modules/unictype/property-bidi-european-digit-tests: Likewise.
10220         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
10221         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
10222         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
10223         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
10224         * modules/unictype/property-bidi-pdf-tests: Likewise.
10225         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
10226         * modules/unictype/property-bidi-whitespace-tests: Likewise.
10227         * modules/unictype/property-byname-tests: Likewise.
10228         * modules/unictype/property-combining-tests: Likewise.
10229         * modules/unictype/property-composite-tests: Likewise.
10230         * modules/unictype/property-currency-symbol-tests: Likewise.
10231         * modules/unictype/property-dash-tests: Likewise.
10232         * modules/unictype/property-decimal-digit-tests: Likewise.
10233         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
10234         * modules/unictype/property-deprecated-tests: Likewise.
10235         * modules/unictype/property-diacritic-tests: Likewise.
10236         * modules/unictype/property-extender-tests: Likewise.
10237         * modules/unictype/property-format-control-tests: Likewise.
10238         * modules/unictype/property-grapheme-base-tests: Likewise.
10239         * modules/unictype/property-grapheme-extend-tests: Likewise.
10240         * modules/unictype/property-grapheme-link-tests: Likewise.
10241         * modules/unictype/property-hex-digit-tests: Likewise.
10242         * modules/unictype/property-hyphen-tests: Likewise.
10243         * modules/unictype/property-id-continue-tests: Likewise.
10244         * modules/unictype/property-id-start-tests: Likewise.
10245         * modules/unictype/property-ideographic-tests: Likewise.
10246         * modules/unictype/property-ids-binary-operator-tests: Likewise.
10247         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
10248         * modules/unictype/property-ignorable-control-tests: Likewise.
10249         * modules/unictype/property-iso-control-tests: Likewise.
10250         * modules/unictype/property-join-control-tests: Likewise.
10251         * modules/unictype/property-left-of-pair-tests: Likewise.
10252         * modules/unictype/property-line-separator-tests: Likewise.
10253         * modules/unictype/property-logical-order-exception-tests: Likewise.
10254         * modules/unictype/property-lowercase-tests: Likewise.
10255         * modules/unictype/property-math-tests: Likewise.
10256         * modules/unictype/property-non-break-tests: Likewise.
10257         * modules/unictype/property-not-a-character-tests: Likewise.
10258         * modules/unictype/property-numeric-tests: Likewise.
10259         * modules/unictype/property-other-alphabetic-tests: Likewise.
10260         * modules/unictype/property-other-default-ignorable-code-point-tests:
10261         Likewise.
10262         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
10263         * modules/unictype/property-other-id-continue-tests: Likewise.
10264         * modules/unictype/property-other-id-start-tests: Likewise.
10265         * modules/unictype/property-other-lowercase-tests: Likewise.
10266         * modules/unictype/property-other-math-tests: Likewise.
10267         * modules/unictype/property-other-uppercase-tests: Likewise.
10268         * modules/unictype/property-paired-punctuation-tests: Likewise.
10269         * modules/unictype/property-paragraph-separator-tests: Likewise.
10270         * modules/unictype/property-pattern-syntax-tests: Likewise.
10271         * modules/unictype/property-pattern-white-space-tests: Likewise.
10272         * modules/unictype/property-private-use-tests: Likewise.
10273         * modules/unictype/property-punctuation-tests: Likewise.
10274         * modules/unictype/property-quotation-mark-tests: Likewise.
10275         * modules/unictype/property-radical-tests: Likewise.
10276         * modules/unictype/property-sentence-terminal-tests: Likewise.
10277         * modules/unictype/property-soft-dotted-tests: Likewise.
10278         * modules/unictype/property-space-tests: Likewise.
10279         * modules/unictype/property-terminal-punctuation-tests: Likewise.
10280         * modules/unictype/property-test-tests: Likewise.
10281         * modules/unictype/property-titlecase-tests: Likewise.
10282         * modules/unictype/property-unassigned-code-value-tests: Likewise.
10283         * modules/unictype/property-unified-ideograph-tests: Likewise.
10284         * modules/unictype/property-uppercase-tests: Likewise.
10285         * modules/unictype/property-variation-selector-tests: Likewise.
10286         * modules/unictype/property-white-space-tests: Likewise.
10287         * modules/unictype/property-xid-continue-tests: Likewise.
10288         * modules/unictype/property-xid-start-tests: Likewise.
10289         * modules/unictype/property-zero-width-tests: Likewise.
10290         * modules/unictype/scripts-tests: Likewise.
10291         * modules/unictype/syntax-c-ident-tests: Likewise.
10292         * modules/unictype/syntax-c-whitespace-tests: Likewise.
10293         * modules/unictype/syntax-java-ident-tests: Likewise.
10294         * modules/unictype/syntax-java-whitespace-tests: Likewise.
10295         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
10296         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
10297         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
10298         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
10299         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
10300         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
10301         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
10302         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
10303         * modules/uniname/uniname-tests: Likewise.
10304         * modules/uninorm/canonical-decomposition-tests: Likewise.
10305         * modules/uninorm/compat-decomposition-tests: Likewise.
10306         * modules/uninorm/composition-tests: Likewise.
10307         * modules/uninorm/decomposing-form-tests: Likewise.
10308         * modules/uninorm/decomposition-tests: Likewise.
10309         * modules/uninorm/filter-tests: Likewise.
10310         * modules/uninorm/nfc-tests: Likewise.
10311         * modules/uninorm/nfd-tests: Likewise.
10312         * modules/uninorm/nfkc-tests: Likewise.
10313         * modules/uninorm/nfkd-tests: Likewise.
10314         * modules/uninorm/u8-normcmp-tests: Likewise.
10315         * modules/uninorm/u8-normcoll-tests: Likewise.
10316         * modules/uninorm/u16-normcmp-tests: Likewise.
10317         * modules/uninorm/u16-normcoll-tests: Likewise.
10318         * modules/uninorm/u32-normcmp-tests: Likewise.
10319         * modules/uninorm/u32-normcoll-tests: Likewise.
10320         * modules/unistdio/u8-asnprintf-tests: Likewise.
10321         * modules/unistdio/u8-vasnprintf-tests: Likewise.
10322         * modules/unistdio/u8-vasprintf-tests: Likewise.
10323         * modules/unistdio/u8-vsnprintf-tests: Likewise.
10324         * modules/unistdio/u8-vsprintf-tests: Likewise.
10325         * modules/unistdio/u16-asnprintf-tests: Likewise.
10326         * modules/unistdio/u16-vasnprintf-tests: Likewise.
10327         * modules/unistdio/u16-vasprintf-tests: Likewise.
10328         * modules/unistdio/u16-vsnprintf-tests: Likewise.
10329         * modules/unistdio/u16-vsprintf-tests: Likewise.
10330         * modules/unistdio/u32-asnprintf-tests: Likewise.
10331         * modules/unistdio/u32-vasnprintf-tests: Likewise.
10332         * modules/unistdio/u32-vasprintf-tests: Likewise.
10333         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10334         * modules/unistdio/u32-vsprintf-tests: Likewise.
10335         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10336         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10337         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10338         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10339         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10340         * modules/unistr/u8-check-tests: Likewise.
10341         * modules/unistr/u8-chr-tests: Likewise.
10342         * modules/unistr/u8-cmp-tests: Likewise.
10343         * modules/unistr/u8-cmp2-tests: Likewise.
10344         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10345         * modules/unistr/u8-cpy-tests: Likewise.
10346         * modules/unistr/u8-mblen-tests: Likewise.
10347         * modules/unistr/u8-mbsnlen-tests: Likewise.
10348         * modules/unistr/u8-mbtouc-tests: Likewise.
10349         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10350         * modules/unistr/u8-mbtoucr-tests: Likewise.
10351         * modules/unistr/u8-move-tests: Likewise.
10352         * modules/unistr/u8-next-tests: Likewise.
10353         * modules/unistr/u8-prev-tests: Likewise.
10354         * modules/unistr/u8-set-tests: Likewise.
10355         * modules/unistr/u8-stpcpy-tests: Likewise.
10356         * modules/unistr/u8-stpncpy-tests: Likewise.
10357         * modules/unistr/u8-strcat-tests: Likewise.
10358         * modules/unistr/u8-strcmp-tests: Likewise.
10359         * modules/unistr/u8-strcoll-tests: Likewise.
10360         * modules/unistr/u8-strcpy-tests: Likewise.
10361         * modules/unistr/u8-strdup-tests: Likewise.
10362         * modules/unistr/u8-strlen-tests: Likewise.
10363         * modules/unistr/u8-strmblen-tests: Likewise.
10364         * modules/unistr/u8-strmbtouc-tests: Likewise.
10365         * modules/unistr/u8-strncat-tests: Likewise.
10366         * modules/unistr/u8-strncmp-tests: Likewise.
10367         * modules/unistr/u8-strncpy-tests: Likewise.
10368         * modules/unistr/u8-strnlen-tests: Likewise.
10369         * modules/unistr/u8-to-u16-tests: Likewise.
10370         * modules/unistr/u8-to-u32-tests: Likewise.
10371         * modules/unistr/u8-uctomb-tests: Likewise.
10372         * modules/unistr/u16-check-tests: Likewise.
10373         * modules/unistr/u16-chr-tests: Likewise.
10374         * modules/unistr/u16-cmp-tests: Likewise.
10375         * modules/unistr/u16-cmp2-tests: Likewise.
10376         * modules/unistr/u16-cpy-alloc-tests: Likewise.
10377         * modules/unistr/u16-cpy-tests: Likewise.
10378         * modules/unistr/u16-mblen-tests: Likewise.
10379         * modules/unistr/u16-mbsnlen-tests: Likewise.
10380         * modules/unistr/u16-mbtouc-tests: Likewise.
10381         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
10382         * modules/unistr/u16-mbtoucr-tests: Likewise.
10383         * modules/unistr/u16-move-tests: Likewise.
10384         * modules/unistr/u16-next-tests: Likewise.
10385         * modules/unistr/u16-prev-tests: Likewise.
10386         * modules/unistr/u16-set-tests: Likewise.
10387         * modules/unistr/u16-stpcpy-tests: Likewise.
10388         * modules/unistr/u16-stpncpy-tests: Likewise.
10389         * modules/unistr/u16-strcat-tests: Likewise.
10390         * modules/unistr/u16-strcmp-tests: Likewise.
10391         * modules/unistr/u16-strcoll-tests: Likewise.
10392         * modules/unistr/u16-strcpy-tests: Likewise.
10393         * modules/unistr/u16-strdup-tests: Likewise.
10394         * modules/unistr/u16-strlen-tests: Likewise.
10395         * modules/unistr/u16-strmblen-tests: Likewise.
10396         * modules/unistr/u16-strmbtouc-tests: Likewise.
10397         * modules/unistr/u16-strncat-tests: Likewise.
10398         * modules/unistr/u16-strncmp-tests: Likewise.
10399         * modules/unistr/u16-strncpy-tests: Likewise.
10400         * modules/unistr/u16-strnlen-tests: Likewise.
10401         * modules/unistr/u16-to-u32-tests: Likewise.
10402         * modules/unistr/u16-to-u8-tests: Likewise.
10403         * modules/unistr/u16-uctomb-tests: Likewise.
10404         * modules/unistr/u32-check-tests: Likewise.
10405         * modules/unistr/u32-chr-tests: Likewise.
10406         * modules/unistr/u32-cmp-tests: Likewise.
10407         * modules/unistr/u32-cmp2-tests: Likewise.
10408         * modules/unistr/u32-cpy-alloc-tests: Likewise.
10409         * modules/unistr/u32-cpy-tests: Likewise.
10410         * modules/unistr/u32-mblen-tests: Likewise.
10411         * modules/unistr/u32-mbsnlen-tests: Likewise.
10412         * modules/unistr/u32-mbtouc-tests: Likewise.
10413         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
10414         * modules/unistr/u32-mbtoucr-tests: Likewise.
10415         * modules/unistr/u32-move-tests: Likewise.
10416         * modules/unistr/u32-next-tests: Likewise.
10417         * modules/unistr/u32-prev-tests: Likewise.
10418         * modules/unistr/u32-set-tests: Likewise.
10419         * modules/unistr/u32-stpcpy-tests: Likewise.
10420         * modules/unistr/u32-stpncpy-tests: Likewise.
10421         * modules/unistr/u32-strcat-tests: Likewise.
10422         * modules/unistr/u32-strcmp-tests: Likewise.
10423         * modules/unistr/u32-strcoll-tests: Likewise.
10424         * modules/unistr/u32-strcpy-tests: Likewise.
10425         * modules/unistr/u32-strdup-tests: Likewise.
10426         * modules/unistr/u32-strlen-tests: Likewise.
10427         * modules/unistr/u32-strmblen-tests: Likewise.
10428         * modules/unistr/u32-strmbtouc-tests: Likewise.
10429         * modules/unistr/u32-strncat-tests: Likewise.
10430         * modules/unistr/u32-strncmp-tests: Likewise.
10431         * modules/unistr/u32-strncpy-tests: Likewise.
10432         * modules/unistr/u32-strnlen-tests: Likewise.
10433         * modules/unistr/u32-to-u16-tests: Likewise.
10434         * modules/unistr/u32-to-u8-tests: Likewise.
10435         * modules/unistr/u32-uctomb-tests: Likewise.
10436         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
10437         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
10438         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
10439         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
10440         * modules/uniwidth/u8-strwidth-tests: Likewise.
10441         * modules/uniwidth/u8-width-tests: Likewise.
10442         * modules/uniwidth/u16-strwidth-tests: Likewise.
10443         * modules/uniwidth/u16-width-tests: Likewise.
10444         * modules/uniwidth/u32-strwidth-tests: Likewise.
10445         * modules/uniwidth/u32-width-tests: Likewise.
10446         * modules/uniwidth/width-tests: Likewise.
10447
10448 2010-05-18  Richard Jones  <rjones@redhat.com>
10449
10450         doc: users.txt: list hivex
10451         * users.txt: Add hivex.
10452
10453 2010-05-18  Richard Jones  <rjones@redhat.com>
10454
10455         doc: users.txt: list febootstrap
10456         * users.txt: Add febootstrap.
10457
10458 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
10459
10460         bootstrap: fix an error when gnulib is not used as a git submodule
10461         * build-aux/bootstrap (gnulib_path): If its length is zero then
10462         assign "gnulib" to it.
10463         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
10464
10465 2010-05-16  Bruno Haible  <bruno@clisp.org>
10466
10467         Avoid autoconf warnings about AM_ICONV.
10468         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10469         2.64.
10470
10471 2010-05-16  Bruno Haible  <bruno@clisp.org>
10472
10473         absolute-header: Make the macro usable in more situations.
10474         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10475         from gl_ABSOLUTE_HEADER.
10476         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10477
10478 2010-05-16  James Youngman  <jay@gnu.org>
10479
10480         doc: update users.txt
10481         * users.txt: Add CSSC.
10482
10483 2010-05-16  Jim Meyering  <meyering@redhat.com>
10484
10485         init.sh: fix an error in the previous change; add more comments
10486         * tests/init.sh: Compare exit code in loop against 9, not 2.
10487         Patch by Bruno Haible.
10488         Make the two tests more similar by adding an empty "then" clause.
10489         Add comments.
10490
10491         init.sh: avoid unnecessary shell re-exec
10492         * tests/init.sh: Improve the re-exec-required check to first test the
10493         current shell.  If it passes the test, do not search for a shell that
10494         does pass, and do not re-exec.  This test is particularly contorted to
10495         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10496         of $(...) evokes a syntax error and causes immediate shell exit with
10497         status 2.  Bruno Haible reported that the re-exec made it impossible
10498         to single-step through any init.sh-using script.
10499
10500 2010-05-16  Bruno Haible  <bruno@clisp.org>
10501
10502         Fix collision between gnulib's and libintl's printf replacements.
10503         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10504         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10505         (printf): When using GNU C, map the __printf__ function to rpl_printf
10506         via __asm__. When not using GNU C, define rpl_printf instead of
10507         __printf__.
10508         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
10509         commit.
10510         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
10511         commit.
10512         * m4/asm-underscore.m4: New file.
10513         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
10514         * modules/stdio (Files): Add m4/asm-underscore.m4.
10515         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
10516         Reported by Ben Pfaff.
10517
10518 2010-05-16  Bruno Haible  <bruno@clisp.org>
10519
10520         verify: Avoid skipping the test on openSUSE 11.0.
10521         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
10522
10523 2010-05-13  Bruno Haible  <bruno@clisp.org>
10524
10525         Avoid useless warnings from G++.
10526         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
10527         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
10528         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10529
10530 2010-05-11  Jim Meyering  <meyering@redhat.com>
10531
10532         maint.mk: tweak preceding change
10533         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
10534         regexps tighter by anchoring at EOL, and make the new group "shy"
10535         for slightly decreased overhead.
10536
10537 2010-05-11  Eric Blake  <eblake@redhat.com>
10538
10539         maint.mk: gnulib doesn't guarantee NSIG
10540         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
10541
10542 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10543
10544         test-pwrite.c: Remove unused variable declaration.
10545         * tests/test-pwrite.c (main): Remove read_buf declaration.
10546
10547         Remove useless test-pwrite.sh file.
10548         * tests/test-pwrite.sh: Delete file.
10549         * modules/pwrite-tests: Remove references.
10550         Reported by Bruno Haible.
10551
10552 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10553
10554         init.sh: fix a typo
10555         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
10556
10557 2010-05-10  Jim Meyering  <meyering@redhat.com>
10558
10559         maint.mk: avoid using a temporary file in the always-defined-macros check
10560         * top/maint.mk (.re-defmac): Remove rule.
10561         (gl_trap_): Remove definition.
10562         (sc_prohibit_always-defined_macros): Rewrite not to create and
10563         depend on a temporary file.  Instead, depend on GNU grep's ability
10564         to read a list of regular expressions from stdin when given "-f -".
10565
10566 2010-05-09  Bruno Haible  <bruno@clisp.org>
10567
10568         Update to GNU gettext 0.18, part 1.
10569         * m4/gettext.m4: Update to GNU gettext 0.18.
10570         * m4/intl.m4: Likewise.
10571         * m4/po.m4: Likewise.
10572         * modules/gettext (Files): Add m4/fcntl-o.m4.
10573         (configure.ac): Require gettext infrastructure from version 0.18.
10574
10575 2010-05-09  Jim Meyering  <meyering@redhat.com>
10576
10577         init.sh: enable MALLOC_PERTURB_
10578         * tests/init.sh: Enable glibc's malloc-perturbing option.
10579
10580         maint.mk: improve sc_cross_check_PATH_usage_in_tests
10581         With my recent change in init.sh from the two-line form:
10582             -#   : ${srcdir=.}
10583             -#   . "$srcdir/init.sh"; path_prepend_ .
10584             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
10585         I noticed that using the one-line form would cause this test
10586         to fail with a false-positive, or to stop working altogether,
10587         depending on whether help-version changed or all the tests did.
10588         * top/maint.mk (_hv_regex): Remove this definition.
10589         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
10590         (_hv_regex_strong): Use a stronger regex to check for conformance.
10591         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
10592         Give a separate diagnostic for lack of conforming use.
10593
10594         maint.mk: prohibit definition of symbols defined by gnulib
10595         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
10596         definition of symbols defined by gnulib.
10597
10598 2010-05-09  Bruno Haible  <bruno@clisp.org>
10599
10600         acl: Avoid test failure on Cygwin-hosted mingw.
10601         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
10602
10603 2010-05-09  Bruno Haible  <bruno@clisp.org>
10604
10605         error: Use system's fcntl function.
10606         * lib/error.c (fcntl): Undefine.
10607
10608 2010-05-09  Jim Meyering  <meyering@redhat.com>
10609
10610         verify: adjust formatting to be more consistent
10611         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
10612         argument-list '('s, and after one comma.
10613
10614 2010-05-09  Bruno Haible  <bruno@clisp.org>
10615
10616         error: More reliable output on mingw.
10617         * lib/error.c: Include <windows.h>.
10618         (is_open): New function.
10619         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
10620         defined.
10621
10622 2010-05-09  Bruno Haible  <bruno@clisp.org>
10623
10624         vasnprintf: Fix syntax errors in libintl build on mingw.
10625         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
10626         pad_ourselves and prec_ourselves after use.
10627
10628 2010-05-08  Bruno Haible  <bruno@clisp.org>
10629
10630         * lib/config.charset: Update comments for Cygwin 1.7.
10631         * lib/localcharset.c: Likewise.
10632
10633 2010-05-07  Jim Meyering  <meyering@redhat.com>
10634
10635         init.sh: improve comments
10636         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
10637         . "${srcdir=.}/init.sh"; path_prepend_ .
10638         Add a note about path_prepend_ and the alternative of using
10639         TESTS_ENVIRONMENT.
10640
10641 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10642
10643         exclude: Unescape hashed patterns in wildcard mode.
10644         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
10645         to the hash list.
10646         * tests/test-exclude8.sh: New test case.
10647         * modules/exclude-tests: Add new test.
10648
10649 2010-05-05  Eric Blake  <eblake@redhat.com>
10650
10651         verify: automate tests
10652         * modules/verify-tests: New module.
10653         * tests/test-verify.sh: New file.
10654         * tests/test-verify.c: Guard each negative test with a unique id.
10655         Also avoid warning about unused left hand of comma expressions.
10656
10657 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10658
10659         Further improvements to verify.h, suggested by Eric Blake.
10660         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
10661         the GL_* versions, to avoid collision with OpenGL.
10662         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
10663         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
10664         than testing merely whether it's defined.
10665
10666         Modify verify.h to pacify gcc -Wredundant_decls.
10667         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
10668         These use the prefix "GL_" since they're likely to be useful elsewhere.
10669         We may need to break them out into a different .h file.
10670         (__COUNTER__): Define to 0 if the compiler doesn't support it.
10671         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
10672         of verify_function__.
10673
10674 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10675
10676         Tests for module pwrite.
10677         * modules/pwrite-tests: New file.
10678         * tests/test-pwrite.sh: New file.
10679         * tests/test-pwrite.c: New file.
10680
10681         New module pwrite.
10682         * lib/unistd.in.h (pwrite): New declaration.
10683         * lib/pwrite.c: New file, from glibc with modifications.
10684         * m4/pwrite.m4: New file.
10685         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
10686         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
10687         REPLACE_PWRITE.
10688         * modules/pwrite: New file.
10689         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
10690         REPLACE_PWRITE.
10691         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
10692         * doc/posix-functions/pwrite.texi: Mention the new module.
10693
10694 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10695
10696         pread: Update documentation.
10697         * doc/posix-functions/pread.texi: Mention the 'pread' module.
10698
10699 2010-05-04  Eric Blake  <eblake@redhat.com>
10700
10701         docs: update cygwin progress
10702         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
10703         this bug.
10704         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
10705         Added in cygwin 1.7.2.
10706         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
10707         Likewise.
10708         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
10709         Likewise.
10710         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10711         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10712         * doc/glibc-functions/accept4.texi (accept4): Likewise.
10713         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
10714         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
10715         Mention nproc module.
10716         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
10717         bug in cygwin 1.7.5 addition.
10718         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
10719         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
10720         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
10721         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
10722         1.7.5.
10723         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
10724         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
10725         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
10726         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
10727         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
10728         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
10729         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
10730         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
10731         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
10732         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
10733         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
10734         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
10735         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
10736         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
10737         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
10738         Likewise.
10739         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
10740         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
10741         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
10742         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
10743         Likewise.
10744         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
10745         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
10746         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
10747         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
10748         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
10749         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
10750         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
10751         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
10752         Likewise.
10753         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
10754         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
10755         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
10756         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
10757         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
10758         Likewise.
10759         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
10760         Likewise.
10761         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
10762         Likewise.
10763         * doc/glibc-functions/xdrrec_endofrecord.texi
10764         (xdrrec_endofrecord): Likewise.
10765         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
10766         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
10767         Likewise.
10768         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
10769         Likewise.
10770
10771 2010-05-04  Jim Meyering  <meyering@redhat.com>
10772
10773         gendocs.sh: make its "-s FILE" option more useful
10774         * build-aux/gendocs.sh: When honoring the -s FILE option, update
10775         $PACKAGE to reflect the probably-different basename of "FILE".
10776
10777 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10778
10779         bootstrap: don't ignore download_po_files failure
10780         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
10781         failure.
10782
10783 2010-05-03  Jim Meyering  <meyering@redhat.com>
10784
10785         maint.mk: allow to pass options to gendocs.sh
10786         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
10787         (gendocs_options_): New overridable variable.
10788
10789         gnu-web-doc-update: don't ignore configure or build failure
10790         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
10791
10792         announce-gen: backslash-escape '@'s in --help output
10793         * build-aux/announce-gen: Fix syntax errors.
10794
10795         maint.mk, announce-gen: allow project-specific announcement mail headers
10796         * top/maint.mk (translation_project_): Define default.
10797         (announcement_Cc_, announcement_mail_headers_): Likewise.
10798         (announcement): Invoke announce-gen with new --mail-headers option.
10799         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
10800
10801         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
10802         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
10803         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
10804         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
10805         line in the "err2" output file when running "make check" in verbose
10806         mode (i.e., with set -x enabled).
10807
10808 2010-05-03  Bruno Haible  <bruno@clisp.org>
10809
10810         wctob: Fix for weird platforms.
10811         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
10812         argument value.
10813
10814 2010-05-03  Jim Meyering  <meyering@redhat.com>
10815
10816         maint.mk: prohibit unwarranted use of <strings.h>
10817         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
10818         strings.h in a file that does not also use strcasecmp, strncasecmp,
10819         ffs or ffsll.
10820
10821         maint.mk: remove obsolete comments
10822         * top/maint.mk: Remove stale, commented-out rules.
10823
10824 2010-05-02  Bruno Haible  <bruno@clisp.org>
10825
10826         wcwidth: Declare also when it's aliased.
10827         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
10828         macro.
10829
10830 2010-05-02  Bruno Haible  <bruno@clisp.org>
10831
10832         Fix regression from 2010-04-25.
10833         * gnulib-tool (func_modules_transitive_closure): Check the status of
10834         all modules, not only of the tests that are of the form foo-tests where
10835         foo is a module.
10836
10837 2010-05-02  Bruno Haible  <bruno@clisp.org>
10838
10839         wctob: Work around nasty Cygwin 1.7.2 bug.
10840         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
10841         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
10842
10843 2010-05-01  Bruno Haible  <bruno@clisp.org>
10844
10845         fpurge: Sharper test.
10846         * tests/test-fpurge.c (main): Add one more ftell check.
10847         * modules/fpurge-tests (Depends-on): Add ftell.
10848         Suggested by Eric Blake.
10849
10850 2010-05-01  Bruno Haible  <bruno@clisp.org>
10851
10852         ftello: Another test.
10853         * tests/test-ftello3.c: New file.
10854         * modules/ftello-tests (Files): Add it.
10855         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10856         MOSTLYCLEANFILES.
10857
10858         ftell: Another test.
10859         * tests/test-ftell3.c: New file.
10860         * modules/ftell-tests (Files): Add it.
10861         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10862         MOSTLYCLEANFILES.
10863
10864 2010-05-01  Bruno Haible  <bruno@clisp.org>
10865
10866         ftell, ftello: Work around Solaris bug.
10867         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
10868         * lib/ftello.c: Include stdio-impl.h.
10869         (ftello): On Solaris, when _IOWRT is set, compute the result without
10870         looking at _IOREAD.
10871         * modules/ftello (Files): Add lib/stdio-impl.h.
10872         * doc/posix-functions/ftell.texi: Mention Solaris bug.
10873         * doc/posix-functions/ftello.texi: Likewise.
10874         Reported by Eric Blake.
10875
10876 2010-05-01  Bruno Haible  <bruno@clisp.org>
10877
10878         freading: Adapt to special meaning of _IOREAD flag on Solaris.
10879         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
10880         the _IOWRT flag is also set.
10881
10882 2010-05-01  Bruno Haible  <bruno@clisp.org>
10883
10884         Fix doc about a HP-UX stdio bug.
10885         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
10886         * doc/posix-functions/ftello.texi: Likewise.
10887
10888 2010-05-01  Bruno Haible  <bruno@clisp.org>
10889
10890         lseek test: Fix failure on Solaris.
10891         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
10892         output.
10893
10894 2010-04-30  Jim Meyering  <meyering@redhat.com>
10895
10896         bootstrap: don't ignore failure to generate po*/Makevars
10897         * build-aux/bootstrap (with_gettext): Don't ignore failure
10898         to create po/Makevars or runtime-po/Makevars.
10899
10900 2010-04-29  Eric Blake  <eblake@redhat.com>
10901
10902         headers: relax license to LGPLv2+
10903         * modules/fcntl-h (License): Relax license.
10904         * modules/getopt-posix (License): Likewise.
10905         * modules/locale (License): Likewise.
10906         * modules/math (License): Likewise.
10907         * modules/pty (License): Likewise.
10908         * modules/sched (License): Likewise.
10909         * modules/search (License): Likewise.
10910         * modules/spawn (License): Likewise.
10911         * modules/stdarg (License): Likewise.
10912         * modules/sysexits (License): Likewise.
10913
10914 2010-04-29  Jim Meyering  <meyering@redhat.com>
10915
10916         inttypes: relax license to LGPLv2+
10917         * modules/inttypes (License): Relax license.
10918
10919 2010-04-29  Simon Josefsson  <simon@josefsson.org>
10920
10921         * top/maint.mk (indent): Run twice to produce idempotent results.
10922
10923 2010-04-28  Bruno Haible  <bruno@clisp.org>
10924
10925         getdate: Generate getdate.c in the source directory.
10926         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
10927         MOSTLYCLEANFILES.
10928         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
10929
10930 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
10931
10932         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
10933         is not declared as a const *; avoid warnings in that case.
10934
10935 2010-04-28  Eric Blake  <eblake@redhat.com>
10936
10937         canonicalize-lgpl: avoid compiler warning
10938         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
10939         declaration' / 'extraneous semicolon' warning with some compilers.
10940         Reported by Andreas Gruenbacher.
10941
10942 2010-04-28  Jim Meyering  <meyering@redhat.com>
10943
10944         init.sh: ensure a more reliable exit status when exiting via trap
10945         * tests/init.sh (setup_): Don't rely on $? in signal handler.
10946         Inspired by patches from Dmitry V. Levin.
10947         Also trap on signal 3 (SIGQUIT).
10948
10949 2010-04-27  Bruno Haible  <bruno@clisp.org>
10950
10951         Update doc about utimes().
10952         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
10953         'utimens' module.
10954         Reported by Andreas Gruenbacher <agruen@suse.de>.
10955
10956 2010-04-27  Eric Blake  <eblake@redhat.com>
10957
10958         full-read, full-write: relax license
10959         * modules/full-read (License): Drop to LGPLv2+.
10960         * modules/full-write (License): Likewise.
10961         * modules/safe-read (License): Likewise.
10962         * modules/safe-write (License): Likewise.
10963
10964         pthread: mention library for linking
10965         * modules/pthread (Link): Mention $(LIB_PTHREAD).
10966
10967 2010-04-27  Jim Meyering  <meyering@redhat.com>
10968
10969         maint.mk: fix a bug introduced in last change
10970         * top/maint.mk (gl_assured_headers_): Now that all names are on
10971         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
10972         is not anchored to end of word, it should be adequate.
10973
10974         maint.mk: avoid side-effect in latest syntax-check
10975         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
10976         to run commands via $(shell...), and hence to incur cost only when
10977         the new rule is actually run.
10978
10979         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
10980         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
10981         and use that to create a regexp used to detect all #if HAVE_..._H uses.
10982         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
10983         (gl_assured_headers_, az_, AZ_): Define.
10984         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
10985
10986 2010-04-26  Jim Meyering  <jim@meyering.net>
10987             Bruno Haible  <bruno@clisp.org>
10988
10989         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
10990         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
10991         Prompted by an exchange with Gilles Espinasse.
10992
10993 2010-04-26  Jim Meyering  <meyering@redhat.com>
10994
10995         git-version-gen: aesthetic tweak
10996         * build-aux/git-version-gen: Use "$nl" rather than a literal,
10997         so that the command remains on a single line.
10998
10999 2010-04-26  Eric Blake  <eblake@redhat.com>
11000
11001         git-version-gen: allow use on EBCDIC hosts
11002         * build-aux/git-version-gen (dirty): Use literal rather than tying
11003         ourselves to ascii.
11004         Reported by Steve Goetze.
11005
11006 2010-04-25  Bruno Haible  <bruno@clisp.org>
11007
11008         netdb: Add support for GNULIB_POSIXCHECK.
11009         * lib/netdb.in.h: Include warn-on-use.h.
11010         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
11011         functions are used when GNULIB_POSIXCHECK is defined and the
11012         getaddrinfo module is not in use.
11013         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
11014         freeaddrinfo, gai_strerror, getnameinfo are declared.
11015         * modules/netdb (Depends-on): Add warn-on-use.
11016         (Makefile.am): Include warn-on-use.h in netdb.h.
11017
11018 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
11019
11020         build: avoid "make check" failure without .git/ directory
11021         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
11022         there is no .git/ directory.
11023
11024 2010-04-25  Bruno Haible  <bruno@clisp.org>
11025
11026         ptsname: Fix misuse of ttyname_r.
11027         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
11028         of errno.
11029
11030 2010-04-25  Bruno Haible  <bruno@clisp.org>
11031
11032         ttyname_r: Make it work on Solaris 10.
11033         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
11034         if the system function has the POSIX declaration. Test whether the
11035         function fails if the buffer is less than 128 bytes large.
11036         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
11037         system's ttyname_r function. Provide a reasonably large buffer.
11038         * modules/ttyname_r (Depends-on): Add extensions.
11039         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
11040
11041 2010-04-25  Bruno Haible  <bruno@clisp.org>
11042
11043         Use the 'extensions' module for some more functions on Solaris.
11044         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
11045         module.
11046         * doc/posix-functions/ctime_r.texi: Likewise.
11047         * doc/posix-functions/getgrgid_r.texi: Likewise.
11048         * doc/posix-functions/getgrnam_r.texi: Likewise.
11049         * doc/posix-functions/getpwnam_r.texi: Likewise.
11050         * doc/posix-functions/getpwuid_r.texi: Likewise.
11051         * doc/posix-functions/readdir_r.texi: Likewise.
11052         * doc/posix-functions/sigwait.texi: Likewise.
11053         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
11054         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
11055
11056 2010-04-25  Bruno Haible  <bruno@clisp.org>
11057
11058         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
11059         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
11060         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
11061         * lib/ttyname_r.c: Include <limits.h>.
11062         (ttyname_r): Define using the system's ttyname_r function, if it exists
11063         and not on Solaris.
11064         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
11065         set.
11066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
11067         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
11068         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
11069         Reported by Simon Josefsson.
11070
11071 2010-04-25  Bruno Haible  <bruno@clisp.org>
11072
11073         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
11074         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
11075         * doc/posix-functions/ctime_r.texi: Likewise.
11076         * doc/posix-functions/getgrgid_r.texi: Likewise.
11077         * doc/posix-functions/getgrnam_r.texi: Likewise.
11078         * doc/posix-functions/getlogin_r.texi: Likewise.
11079         * doc/posix-functions/getpwnam_r.texi: Likewise.
11080         * doc/posix-functions/getpwuid_r.texi: Likewise.
11081         * doc/posix-functions/readdir_r.texi: Likewise.
11082         * doc/posix-functions/sigwait.texi: Likewise.
11083         * doc/posix-functions/ttyname_r.texi: Likewise.
11084         Reported by Simon Josefsson.
11085
11086 2010-04-25  Bruno Haible  <bruno@clisp.org>
11087
11088         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
11089         * gnulib-tool (func_usage): Document that --with-*-tests options apply
11090         also to --create-testdir.
11091         (func_acceptable): Don't consider the status of *-tests modules here.
11092         (func_modules_transitive_closure): Consider it here, before including a
11093         test module.
11094         (func_import, func_create_testdir): Set inc_all_direct_tests,
11095         inc_all_indirect_tests.
11096         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
11097         --create-testdir and --create-megatestdir.
11098
11099 2010-04-25  Bruno Haible  <bruno@clisp.org>
11100
11101         gnulib-tool: Add --without-*-tests options.
11102         * gnulib-tool (func_usage): Document the --without-*-tests options.
11103         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
11104         excl_unportable_tests): New variables.
11105         Fail if they are specified with --import or --update.
11106         (func_acceptable): Respect the excl_*_tests variables.
11107         (func_import): Set the excl_*_tests variables to empty.
11108
11109 2010-04-25  Simon Josefsson  <simon@josefsson.org>
11110             Bruno Haible  <bruno@clisp.org>
11111
11112         Work around a MacOS X 10.4 bug with openpty.
11113         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
11114         * tests/test-openpty.c (main): Close the master side explicitly.
11115
11116 2010-04-25  Bruno Haible  <bruno@clisp.org>
11117
11118         strnlen: Fix a C++ test error on MacOS X and Solaris.
11119         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
11120         the function is not declared.
11121         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11122         Simon Josefsson.
11123
11124 2010-04-24  Bruno Haible  <bruno@clisp.org>
11125
11126         Avoid a gcc warning.
11127         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11128         of correct type for %08lx directive.
11129         Reported by Eric Blake.
11130
11131 2010-04-24  Bruno Haible  <bruno@clisp.org>
11132
11133         vasnprintf: Correct errno value in case of out-of-memory.
11134         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
11135         or sprintf. Use the errno value from SNPRINTF or sprintf.
11136         Reported by Ian Beckwith <ianb@erislabs.net>.
11137
11138 2010-04-24  Bruno Haible  <bruno@clisp.org>
11139
11140         ansi-c++-opt: Find correct compiler when cross-compiling.
11141         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
11142         AC_CHECK_PROGS.
11143         Reported by Simon Josefsson.
11144
11145 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
11146
11147         vc-list-files: Add support for subversion
11148         * build-aux/vc-list-files: Use "svn list" to generate the list of
11149         files controlled by subversion.
11150
11151 2010-04-23  Jim Meyering  <meyering@redhat.com>
11152
11153         vc-list-files tests: convert to use init.sh
11154         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
11155         path_prepend_.
11156         Use Exit, not exit.
11157         Use skip_ rather than open coding it.
11158         Remove trap set-up and compare definitions.
11159         * tests/test-vc-list-files-git.sh: Likewise.
11160         * modules/vc-list-files-tests (Files): Add tests/init.sh.
11161
11162 2010-04-22  Simon Josefsson  <simon@josefsson.org>
11163
11164         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
11165         backup files.
11166
11167 2010-04-21  Simon Josefsson  <simon@josefsson.org>
11168
11169         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
11170
11171 2010-04-20  Eric Blake  <eblake@redhat.com>
11172
11173         tests: be robust to ignored SIGPIPE
11174         * tests/test-select-in.sh: Consume all output.
11175         * tests/test-lseek.sh: Check correct exit status, while avoiding
11176         EPIPE.
11177
11178 2010-04-20  Simon Josefsson  <simon@josefsson.org>
11179             Bruno Haible  <bruno@clisp.org>
11180
11181         visibility: Don't use -fvisibility if it leads to a warning.
11182         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
11183         yes, don't pretend that visibility works if it leads to a warning.
11184         Reported by Mike Gran <spk121@yahoo.com>.
11185
11186 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
11187
11188         * build-aux/bootstrap: Use "git -h" for testing for supported options
11189         instead of "git --help".  The short-form option only shows a summary,
11190         and doesn't layout the full man page.  Grep for the full option name
11191         in the summary, too.
11192
11193 2010-04-19  Bruno Haible  <bruno@clisp.org>
11194
11195         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
11196         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
11197         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
11198         mention of RELOCATABLE_STRIP.
11199         Reported by Sylvain Beucler <beuc@beuc.net>.
11200
11201 2010-04-19  Bruno Haible  <bruno@clisp.org>
11202
11203         * lib/diffseq.h: Fix typo in comment.
11204         Reported by Eric Blake.
11205
11206 2010-04-19  Bruno Haible  <bruno@clisp.org>
11207
11208         ioctl: Move autoconf macro to a .m4 file.
11209         * m4/ioctl.m4: New file, extracted from modules/ioctl.
11210         * modules/ioctl (Files): Add it.
11211         (configure.ac): Simply invoke gl_FUNC_IOCTL.
11212         Reported by Ian Beckwith <ianb@erislabs.net>.
11213
11214 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
11215             Bruno Haible  <bruno@clisp.org>
11216
11217         diffseq: Accommodate use-case with abstract arrays.
11218         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
11219         is not defined.
11220         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
11221         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
11222
11223 2010-04-18  Bruno Haible  <bruno@clisp.org>
11224
11225         * doc/posix-headers/stdbool.texi: More precise wording.
11226
11227 2010-04-17  Jim Meyering  <meyering@redhat.com>
11228
11229         maint.mk: use gnu-style indentation in an embedded perl script
11230         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
11231         Rename variable: s/two/last_two_bytes/
11232
11233 2010-04-16  Eric Blake  <eblake@redhat.com>
11234
11235         test-stdbool: skip test that fails with Solaris CC
11236         * tests/test-stdbool.c (f): Skip test that causes compilation
11237         error under buggy C++ compiler.
11238         * lib/stdbool.in.h: Document the limitation.
11239         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
11240
11241         setenv: allow compilation with C++
11242         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11243         register keyword.
11244
11245         stdint: allow test to pass with C++
11246         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
11247
11248         getopt: allow compilation with C++
11249         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
11250         struct.
11251         * lib/getopt.c (_getopt_internal_r): Use correct type.
11252         Reported by Dagobert Michelson, via Joel E. Denny.
11253
11254 2010-04-16  Bruno Haible  <bruno@clisp.org>
11255
11256         Override netdb.h always.
11257         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
11258         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
11259         Reported by Ludovic Courtès <ludo@gnu.org>.
11260
11261 2010-04-15  Bruno Haible  <bruno@clisp.org>
11262
11263         openpty: Fix mistake from 2010-03-21.
11264         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
11265         Reported by Simon Josefsson.
11266
11267 2010-04-15  Eric Blake  <eblake@redhat.com>
11268
11269         test-forkpty: fix expected signature
11270         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
11271         Reported by Simon Josefsson.
11272
11273 2010-04-15  Jim Meyering  <meyering@redhat.com>
11274
11275         maint.mk: texinfo_suffix_re_: correct the default regexp
11276         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
11277
11278         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
11279         make it configurable via texinfo_suffix_re_.
11280
11281 2010-04-14  Eric Blake  <eblake@redhat.com>
11282
11283         strtok_r: relax license to LGPLv2+
11284         * modules/strtok_r (License): Relax license.
11285         Reported by Matthias Bolte.
11286
11287 2010-04-14  Simon Josefsson  <simon@josefsson.org>
11288
11289         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
11290         version 1.4.4 by default instead of requiring the libgcrypt
11291         version used during build.  This makes it possible to use the
11292         application with older but still binary compatible libgcrypt
11293         versions.
11294
11295 2010-04-13  Eric Blake  <eblake@redhat.com>
11296
11297         getopt-gnu: match recent glibc fixes and posix ruling
11298         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
11299         '+' handling, when requesting extensions.
11300         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
11301         'W;' handling.
11302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
11303         * doc/posix-functions/getopt.texi (getopt): Document this.
11304         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11305         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11306         Likewise.
11307
11308         getopt: merge bug fixes from glibc
11309         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
11310         diagnostics.  Honor '+:' correctly.  Reject ';'.
11311
11312         getopt-posix: detect MacOS bug
11313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
11314         optind when missing a required argument.
11315         * doc/posix-functions/getopt.texi (getopt): Document the bug.
11316         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11317         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11318         Likewise.
11319
11320         getopt-posix: avoid spurious failure on Solaris
11321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
11322         an indicator that setting optind=1 is sufficient for reset.
11323
11324         getopt-posix: avoid spurious failure on FreeBSD
11325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
11326         in POSIX mode, since the m4 test uses it.
11327
11328         gnulib-tool: silence warning on BSD sh
11329         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
11330
11331 2010-04-13  Jim Meyering  <meyering@redhat.com>
11332
11333         doc: users.txt: GNU patch now uses gnulib
11334         * users.txt: Add patch.
11335
11336 2010-04-12  Jim Meyering  <meyering@redhat.com>
11337
11338         maint.mk: generate more concise timing data for syntax-check rules
11339         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11340         " done" from each line that reports a syntax-check test duration.
11341
11342 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11343
11344         git-version-gen: use "git update-index..." rather than "git status"
11345         * build-aux/git-version-gen: Use git update-index --refresh, not
11346         "git status".  With some versions of git, "git status" would fail
11347         to update the index and result in an unwarranted "-dirty" suffix.
11348
11349 2010-04-11  Jim Meyering  <meyering@redhat.com>
11350
11351         openat: correct formatting (no semantic change)
11352         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11353         Suggested by Bruno Haible.
11354
11355 2010-04-11  Bruno Haible  <bruno@clisp.org>
11356
11357         Stricter declaration checking in testdirs.
11358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11359         If for_tests is true, augment AM_CPPFLAGS to define
11360         GNULIB_STRICT_CHECKING.
11361         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
11362         GNULIB_STRICT_CHECKING is defined, verify that the function is
11363         declared.
11364
11365 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
11366             Bruno Haible  <bruno@clisp.org>
11367
11368         libunistring: Improve configure output.
11369         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
11370         Don't say "consider installing GNU libunistring" when checking again
11371         with libiconv.
11372
11373 2010-04-11  Bruno Haible  <bruno@clisp.org>
11374
11375         libunistring: Correct value of $LTLIBUNISTRING.
11376         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
11377         correct the value of $LTLIBUNISTRING.
11378
11379 2010-04-11  Bruno Haible  <bruno@clisp.org>
11380
11381         havelib: Add static libraries to LIBS in the right order.
11382         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
11383         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
11384
11385 2010-04-11  Bruno Haible  <bruno@clisp.org>
11386
11387         libunistring: Detect libunistring also when it depends on libiconv.
11388         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
11389         the second AC_LIB_HAVE_LINKFLAGS invocation.
11390
11391 2010-04-11  James Youngman  <jay@gnu.org>
11392
11393         close-stream: declare local scalars to be "const"
11394         * lib/close-stream.c (close_stream): Make boolean variables const
11395         to document the fact that we set but do not change them.
11396
11397 2010-04-11  Bruno Haible  <bruno@clisp.org>
11398
11399         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
11400
11401 2010-04-11  Jim Meyering  <meyering@redhat.com>
11402
11403         maint.mk: don't include dist-check.mk
11404         * top/maint.mk: Remove bogus include directive.
11405
11406         maint.mk: improve empty-line-at-EOF check
11407         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
11408         solution, rather than tail+Perl-based one.  The latter would read
11409         a few kilobytes from the end of each file, and did not handle empty
11410         files properly.
11411
11412         maint.mk: print the elapsed time for each syntax-check rule
11413         * top/maint.mk (sc_m_rules_): Save start time in a file.
11414         (sc_z_rules_): New rules: remove temp file and print elapsed time.
11415         (local-check): Interpose the .z rules
11416
11417 2010-04-11  Jim Meyering  <meyering@redhat.com>
11418
11419         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
11420         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
11421         empty file with one that ends in an empty line.
11422
11423 2010-04-10  Bruno Haible  <bruno@clisp.org>
11424
11425         mkdir: Make it work on mingw64.
11426         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
11427         * lib/mkdir.c: Update comment.
11428         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
11429
11430 2010-04-10  Bruno Haible  <bruno@clisp.org>
11431
11432         Don't override improved macro from newer autoconf.
11433         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
11434         autoconf >= 2.62.
11435         Reported by Joel E. Denny <jdenny@clemson.edu>.
11436
11437 2010-04-10  Jim Meyering  <meyering@redhat.com>
11438
11439         maint.mk: new syntax-check rule: prohibit empty lines at end of file
11440         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
11441
11442         maint.mk: correct a diagnostic
11443         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
11444         in diagnostic; now use $prohibit.
11445
11446 2010-04-10  Bruno Haible  <address@hidden>
11447
11448         fchownat: Fix a C++ test error on Solaris 8.
11449         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11450         the function does not exist.
11451
11452 2010-04-10  Bruno Haible  <bruno@clisp.org>
11453
11454         vasnprintf: Add more tests.
11455         * tests/test-vasnprintf-posix.c: Include <errno.h>.
11456         (test_function): Test converting an invalid wide string.
11457
11458         vasnprintf: Correct handling of unconvertible wide string arguments.
11459         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
11460         VASNPRINTF.
11461         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
11462         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
11463         smaller than the expected maximum need for the directive. Set errno to
11464         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
11465         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
11466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
11467         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11468         * modules/vasnprintf (Files): Add m4/printf.m4.
11469         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11470
11471 2010-04-10  Bruno Haible  <bruno@clisp.org>
11472
11473         vasnprintf: Fix crash in %ls directive.
11474         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11475         string is passed as argument to %ls, with no precision and no width.
11476         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11477
11478 2010-04-10  Bruno Haible  <bruno@clisp.org>
11479
11480         vasnprintf: Fix multiple test failures on mingw.
11481         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11482         _snprintf, or snwprintf, not _snwprintf.
11483
11484 2010-04-10  Bruno Haible  <bruno@clisp.org>
11485
11486         write: Fix a C++ test error on mingw.
11487         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11488
11489 2010-04-10  Bruno Haible  <bruno@clisp.org>
11490
11491         vasnprintf test: Reduce code duplication.
11492         * tests/test-vasnprintf.c (test_function): New function, extracted from
11493         test_vasnprintf.
11494         (test_vasnprintf, test_asnprintf): Invoke it.
11495
11496 2010-04-10  Bruno Haible  <bruno@clisp.org>
11497
11498         strnlen: Fix warning in C++ mode on MacOS X.
11499         * lib/string.in.h (strnlen): Use the modern idiom.
11500         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11501         defining strnlen as a macro already in <config.h>.
11502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11503         REPLACE_STRNLEN.
11504         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11505         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11506
11507 2010-04-08  James Youngman  <jay@gnu.org>
11508
11509         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
11510         the example.
11511
11512 2010-04-09  Jim Meyering  <meyering@redhat.com>
11513
11514         maint.mk: print better diagnostic when there is no $(_hv_file)
11515         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
11516         announce that when $(_hv_file) (aka help-version) does not exist.
11517
11518         init.sh: run tr in the "C" locale to avoid multibyte interpretation
11519         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
11520         not try to interpret its random input bytes.  Jarno Rajahalme reported
11521         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11522         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
11523         (mktempd_): Likewise, just in case.
11524
11525         ftruncate: add two years to projected module removal date: 2012
11526         * m4/ftruncate.m4: Adjust comments.
11527
11528         ftruncate: mark module as obsolete; even MinGW provides it, now
11529         * modules/ftruncate (Status): Obsolete.
11530         (Notice): Say that.
11531         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
11532         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
11533
11534 2010-04-08  Bruno Haible  <bruno@clisp.org>
11535
11536         Fix side effects from tests-related modules.
11537         * modules/dprintf-posix (Comment): New section.
11538         * modules/fprintf-posix (Comment): Likewise.
11539         * modules/obstack-printf-posix (Comment): Likewise.
11540         * modules/printf-posix (Comment): Likewise.
11541         * modules/snprintf-posix (Comment): Likewise.
11542         * modules/sprintf-posix (Comment): Likewise.
11543         * modules/vasnprintf-posix (Comment): Likewise.
11544         * modules/vasprintf-posix (Comment): Likewise.
11545         * modules/vdprintf-posix (Comment): Likewise.
11546         * modules/vfprintf-posix (Comment): Likewise.
11547         * modules/vprintf-posix (Comment): Likewise.
11548         * modules/vsnprintf-posix (Comment): Likewise.
11549         * modules/vsprintf-posix (Comment): Likewise.
11550         * modules/xprintf-posix (Comment): Likewise.
11551         * modules/xvasprintf-posix (Comment): Likewise.
11552         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
11553         * modules/floorf-tests (Depends-on): Likewise.
11554         * modules/round-tests (Depends-on): Likewise.
11555         * modules/roundf-tests (Depends-on): Likewise.
11556         * modules/trunc-tests (Depends-on): Likewise.
11557         * modules/truncf-tests (Depends-on): Likewise.
11558         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
11559         'fprintf-posix' module is not present.
11560         * tests/test-floorf2.c (check): Likewise.
11561         * tests/test-trunc2.c (check): Likewise.
11562         * tests/test-truncf2.c (check): Likewise.
11563         * tests/test-round2.c (equal): Likewise.
11564         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11565
11566 2010-04-07  Karl Berry  <karl@gnu.org>
11567
11568         * config/srclist.txt,
11569         * config/srclistvars.sh,
11570         * config/srclist-update: doc fixes.
11571
11572 2010-04-07  Jim Meyering  <meyering@redhat.com>
11573
11574         maint.mk: add a PATH crosschecking syntax-check rule
11575         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11576         Useful if you use a test like the one in help-version (coreutils,
11577         diffutils, grep, gzip) that ensures $(VERSION) matches what is
11578         printed by prog --version.
11579
11580 2010-04-06  Bruno Haible  <bruno@clisp.org>
11581
11582         Fix link error on mingw.
11583         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
11584         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
11585
11586 2010-04-06  Bruno Haible  <bruno@clisp.org>
11587
11588         Assume rmdir exists.
11589         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
11590
11591 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
11592
11593         doc: update users.txt
11594         * users.txt: Add gcal.
11595
11596 2010-04-06  Jim Meyering  <meyering@redhat.com>
11597
11598         init.sh: simply unset TMPDIR rather than risking env -i
11599         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
11600         although it probably works fine on all Unix-based systems, some
11601         systems (Cygwin?) cannot tolerate a totally cleared environment.
11602         Suggestion from Eric Blake.
11603
11604 2010-04-06  Jim Meyering  <meyering@redhat.com>
11605
11606         init.sh: portability fix: use env's POSIX-specified -i option not -u
11607         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
11608         than unportable env -u.  Solaris 5.11's env lacks support for -u.
11609
11610 2010-04-05  Bruno Haible  <bruno@clisp.org>
11611
11612         btowc: Work around Cygwin 1.7.2 bug.
11613         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
11614         does not map NUL to 0.
11615         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
11616
11617 2010-04-05  Bruno Haible  <bruno@clisp.org>
11618
11619         Make the multithread modules work on Cygwin 1.7.2.
11620         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
11621         imported symbols can be declared weak, so that it returns "no" on
11622         Cygwin 1.7.2.
11623
11624 2010-04-05  Bruno Haible  <bruno@clisp.org>
11625
11626         Use the module 'strncat'.
11627         * modules/unistr/u8-strncat (Depends-on): Add strncat.
11628
11629         Tests for module 'strncat'.
11630         * modules/strncat-tests: New file.
11631         * tests/test-strncat.c: New file.
11632
11633         New module 'strncat'.
11634         * lib/string.in.h (strncat): New declaration.
11635         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
11636         * m4/strncat.m4: New file, based on m4/memchr.m4.
11637         * modules/strncat: New file.
11638         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
11639         is declared.
11640         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
11641         REPLACE_STRNCAT.
11642         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
11643         REPLACE_STRNCAT.
11644         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
11645         module.
11646         * tests/test-string-c++.cc: Check signature of strncat.
11647
11648 2010-04-05  Jim Meyering  <meyering@redhat.com>
11649
11650         xstrtoumax-tests: convert to use init.sh
11651         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
11652         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11653         Use Exit, not exit.
11654         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11655
11656         xstrtoimax-tests: convert to use init.sh
11657         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11658         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11659         Use Exit, not exit.
11660         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11661
11662 2010-04-05  Bruno Haible  <bruno@clisp.org>
11663
11664         sys_socket: Avoid #define replacements in C++ mode.
11665         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
11666         warning to the function if possible, rather than #defining the symbol
11667         to a dysfunctional alias.
11668
11669 2010-04-05  Bruno Haible  <bruno@clisp.org>
11670
11671         fseeko: Fix C++ test error on mingw.
11672         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
11673         gl_FUNC_FSEEKO.
11674         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
11675         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
11676         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
11677         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
11678
11679 2010-04-05  Bruno Haible  <bruno@clisp.org>
11680
11681         duplocale: Improve test output.
11682         * tests/test-duplocale.c (main): Print reason for skipped test.
11683
11684 2010-04-05  Bruno Haible  <bruno@clisp.org>
11685
11686         Assume rmdir exists.
11687         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
11688         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11689
11690 2010-04-05  Bruno Haible  <bruno@clisp.org>
11691
11692         Fix link error on Solaris 8 with cc.
11693         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
11694
11695 2010-04-05  Bruno Haible  <bruno@clisp.org>
11696
11697         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11698         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
11699
11700 2010-04-05  Bruno Haible  <bruno@clisp.org>
11701
11702         vasprintf: Update documentation.
11703         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
11704
11705 2010-04-05  Bruno Haible  <bruno@clisp.org>
11706
11707         ptsname: Improve test.
11708         * tests/test-ptsname.c (main): Also try the various master names of BSD
11709         systems.
11710
11711 2010-04-05  Bruno Haible  <bruno@clisp.org>
11712
11713         memchr: Avoid a possible C++ test error.
11714         * lib/string.in.h (memchr): Provide declaration if function is missing.
11715         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
11716         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
11717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
11718         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
11719
11720 2010-04-05  Bruno Haible  <bruno@clisp.org>
11721
11722         strtok_r: Improve idiom.
11723         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
11724         AC_LIBOBJ is used.
11725
11726 2010-04-05  Bruno Haible  <bruno@clisp.org>
11727
11728         strdup: Improve idiom.
11729         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
11730         AC_LIBOBJ is used.
11731         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
11732         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
11733         when AC_LIBOBJ is used.
11734
11735 2010-04-05  Bruno Haible  <bruno@clisp.org>
11736
11737         mbsinit, mbrtowc, wcrtomb: Improve idioms.
11738         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
11739         don't set REPLACE_MBSINIT to 1.
11740         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
11741         don't set REPLACE_MBRTOWC to 1.
11742         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
11743         exist, don't set REPLACE_MBSRTOWCS to 1.
11744         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
11745         exist, don't set REPLACE_MBSNRTOWCS to 1.
11746         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
11747         don't set REPLACE_WCRTOMB to 1.
11748         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
11749         exist, don't set REPLACE_WCSRTOMBS to 1.
11750         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
11751         exist, don't set REPLACE_WCSNRTOMBS to 1.
11752
11753 2010-04-05  Bruno Haible  <bruno@clisp.org>
11754
11755         ldexpl: Improve idiom.
11756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
11757         make sure to set HAVE_DECL_LDEXPL to 0.
11758
11759 2010-04-05  Jim Meyering  <meyering@redhat.com>
11760
11761         xstrtol-tests: convert to use init.sh
11762         * modules/xstrtol-tests (Files): Add tests/init.sh.
11763         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11764         Use Exit, not exit.
11765         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11766
11767         atexit-tests: convert to use init.sh
11768         * modules/atexit-tests (Files): Add tests/init.sh.
11769         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11770         Use Exit, not exit.
11771         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11772
11773         init.sh: fix typo
11774         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
11775
11776         init.sh: make it easier for a test script to write to the tty, ...
11777         when using automake's parallel-tests mode.
11778         * tests/init.sh (stderr_fileno_): Define overridable variable.
11779         (warn_): New function, to use it.
11780         (fail_, skip_, framework_failure_): Use warn_.
11781
11782 2010-04-04  Bruno Haible  <bruno@clisp.org>
11783
11784         btowc: Avoid warning.
11785         * lib/btowc.c: Include <stdlib.h>.
11786         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
11787
11788 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11789             Bruno Haible  <bruno@clisp.org>
11790
11791         wchar: Port to NetBSD 1.5.
11792         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
11793         * lib/wctype.in.h (WEOF): Likewise.
11794
11795 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11796             Bruno Haible  <bruno@clisp.org>
11797
11798         Port extended stdio to NetBSD 1.5.
11799         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
11800         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
11801         older.
11802
11803 2010-04-04  Bruno Haible  <bruno@clisp.org>
11804
11805         string: Remove unused substitution.
11806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11807         HAVE_DECL_STRERROR.
11808         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
11809
11810 2010-04-04  Bruno Haible  <bruno@clisp.org>
11811
11812         strtod: Avoid a possible C++ test error.
11813         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
11814         set REPLACE_STRTOD.
11815
11816 2010-04-04  Bruno Haible  <bruno@clisp.org>
11817
11818         strerror: Update documentation.
11819         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
11820
11821 2010-04-04  Bruno Haible  <bruno@clisp.org>
11822
11823         stdio: Fix some C++ test errors on Solaris 8 with GCC.
11824         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
11825         _GL_CXXALIAS_SYS_CAST.
11826
11827 2010-04-04  Bruno Haible  <bruno@clisp.org>
11828
11829         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11830         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
11831         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
11832         REPLACE_FREXPL to 1.
11833         * doc/posix-functions/frexpl.texi: Update documentation.
11834
11835 2010-04-04  Bruno Haible  <bruno@clisp.org>
11836
11837         math: Fix some C++ test errors on Solaris 8 and Cygwin.
11838         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
11839
11840 2010-04-04  Bruno Haible  <bruno@clisp.org>
11841
11842         Implement nanosleep for native Windows.
11843         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
11844
11845 2010-04-04  Bruno Haible  <bruno@clisp.org>
11846
11847         math: Fix some C++ test errors on Solaris 8.
11848         * lib/math.in.h (truncf, trunc): Use simpler idiom.
11849
11850 2010-04-04  Bruno Haible  <bruno@clisp.org>
11851
11852         math: Fix some C++ test errors on Cygwin.
11853         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
11854         truncl): Provide declaration if the system does not have it.
11855         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
11856         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
11857         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
11858         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
11859         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
11860         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
11861         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
11862         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
11863         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
11864         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
11865         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
11866         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
11867         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
11868         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
11869         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
11870         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
11871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
11872         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11873         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11874         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
11875         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11876         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11877
11878 2010-04-04  Bruno Haible  <bruno@clisp.org>
11879
11880         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
11881         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11882         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11883         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11884         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11885         * m4/isinf.m4 (gl_ISINF): Likewise.
11886         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11887
11888 2010-04-04  Bruno Haible  <bruno@clisp.org>
11889
11890         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
11891         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11892
11893 2010-04-04  Bruno Haible  <bruno@clisp.org>
11894
11895         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
11896         * modules/tmpfile (configure.ac): Update.
11897
11898         tmpfile: Fix C++ test error on mingw.
11899         * lib/stdio.in.h (tmpfile): New declaration.
11900         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
11901         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
11902         * modules/tmpfile (Depends-on): Add stdio.
11903         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11904         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
11905         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
11906         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
11907         REPLACE_TMPFILE.
11908         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
11909
11910 2010-04-04  Bruno Haible  <bruno@clisp.org>
11911
11912         ioctl: Fix C++ test error on mingw.
11913         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
11914         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
11915         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
11916
11917 2010-04-03  Bruno Haible  <bruno@clisp.org>
11918
11919         wcwidth: Fix C++ test error on mingw.
11920         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
11921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
11922         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
11923
11924 2010-04-03  Bruno Haible  <bruno@clisp.org>
11925
11926         nanosleep: Fix C++ test error on mingw.
11927         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
11928         * lib/time.in.h (nanosleep): Use modern idiom.
11929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
11930         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
11931         REPLACE_NANOSLEEP to 1.
11932         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
11933         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
11934
11935 2010-04-03  Bruno Haible  <bruno@clisp.org>
11936
11937         strptime: Fix C++ test error on mingw.
11938         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
11939         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
11940         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
11941         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
11942         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
11943         not REPLACE_STRPTIME.
11944         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
11945         REPLACE_STRPTIME.
11946
11947 2010-04-03  Bruno Haible  <bruno@clisp.org>
11948
11949         timegm: Fix C++ test error on mingw.
11950         * lib/time.in.h (timegm): Use modern idiom.
11951         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
11952         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
11953         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
11954         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
11955
11956 2010-04-03  Bruno Haible  <bruno@clisp.org>
11957
11958         timegm: Assume declaration if function exists.
11959         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
11960         if it exists. Don't clobber ac_cv_func_timegm.
11961
11962 2010-04-03  Bruno Haible  <bruno@clisp.org>
11963
11964         time_r: Fix C++ test error on mingw.
11965         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
11966         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
11967         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
11968         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
11969         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
11970
11971 2010-04-03  Bruno Haible  <bruno@clisp.org>
11972
11973         time_r: Minor updates.
11974         * modules/time_r (Description): Mention the provided functions.
11975         * lib/time_r.c: Don't include <string.h>.
11976         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
11977         * doc/posix-functions/localtime_r.texi: Likewise.
11978
11979 2010-04-03  Bruno Haible  <bruno@clisp.org>
11980
11981         time: Fix regression introduced on 2010-03-08.
11982         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
11983         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
11984
11985 2010-04-03  Jim Meyering  <meyering@redhat.com>
11986
11987         maint.mk: don't silently disable project-specific syntax-check rules
11988         * top/maint.mk (_prohibit_regexp): Define, to help people realize
11989         that they need to convert their project-specific syntax-check rules
11990         to use the new _sc_search_regexp.
11991
11992 2010-04-03  Bruno Haible  <bruno@clisp.org>
11993
11994         fchdir: Fix regression introduced on 2010-03-08.
11995         * lib/unistd.in.h (fchdir): Fix declaration.
11996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
11997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
11998         REPLACE_FCHDIR.
11999         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
12000         REPLACE_FCHDIR.
12001
12002 2010-04-03  Bruno Haible  <bruno@clisp.org>
12003
12004         getpagesize: Fix C++ test error on mingw.
12005         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
12006         system does not declare the function.
12007         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
12008         declared.
12009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12010         HAVE_DECL_GETPAGESIZE.
12011         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
12012
12013 2010-04-03  Bruno Haible  <bruno@clisp.org>
12014
12015         stdio: Make C++ tests work on mingw.
12016         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
12017         does not declare the function.
12018
12019 2010-04-03  Bruno Haible  <bruno@clisp.org>
12020
12021         ftello: Fix C++ test error on mingw.
12022         * lib/stdio.in.h (ftello): Use modern idiom.
12023         * lib/ftello.c (ftello): Renamed from rpl_ftello.
12024         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
12025         is missing and that it needs to be replaced.
12026         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
12027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
12028         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
12029
12030 2010-04-03  Bruno Haible  <bruno@clisp.org>
12031
12032         fseeko: Fix C++ test error on mingw.
12033         * lib/stdio.in.h (fseeko): Use modern idiom.
12034         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
12035         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
12036         is missing and that it needs to be replaced.
12037         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
12038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
12039         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
12040
12041 2010-04-03  Bruno Haible  <bruno@clisp.org>
12042
12043         mkstemp: Fix C++ test error on mingw.
12044         * lib/stdlib.in.h (mkstemp): Use modern idiom.
12045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
12046         function is missing and that it needs to be replaced.
12047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
12048         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
12049
12050 2010-04-03  Bruno Haible  <bruno@clisp.org>
12051
12052         stpncpy: Fix C++ test error on mingw.
12053         * lib/string.in.h (stpncpy): Use modern idiom.
12054         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
12055         function is missing and that it needs to be replaced.
12056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12057         REPLACE_STPNCPY.
12058         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
12059
12060 2010-04-03  Bruno Haible  <bruno@clisp.org>
12061
12062         sys_stat: Fix C++ test error on mingw.
12063         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
12064         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
12065
12066 2010-04-03  Bruno Haible  <bruno@clisp.org>
12067
12068         pty: Update doc.
12069         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
12070
12071 2010-04-03  Bruno Haible  <bruno@clisp.org>
12072
12073         unistd: Fix C++ test error on mingw.
12074         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
12075
12076 2010-04-03  Bruno Haible  <bruno@clisp.org>
12077
12078         Update doc regarding mingw.
12079         * doc/glibc-functions/openpty.texi: Update regarding mingw.
12080         * doc/glibc-functions/login_tty.texi: Likewise.
12081         * doc/glibc-functions/forkpty.texi: Likewise.
12082
12083 2010-04-03  Bruno Haible  <bruno@clisp.org>
12084
12085         stdlib: Avoid compilation failure of c-strtold on mingw.
12086         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
12087
12088 2010-04-03  Bruno Haible  <bruno@clisp.org>
12089
12090         locale: Make C++ tests work on Cygwin and mingw.
12091         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
12092         cannot provide the function.
12093         Reported by Simon Josefsson.
12094
12095 2010-04-03  Bruno Haible  <bruno@clisp.org>
12096
12097         localename: Port to MacOS X 10.6.
12098         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
12099         memory layout of the locales in MacOS X 10.6 as well.
12100         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
12101
12102 2010-04-02  Bruno Haible  <bruno@clisp.org>
12103
12104         gnulib-tool: Ensure that long-running tests are executed last.
12105         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12106         running tests after the one for the other tests.
12107
12108 2010-04-02  Bruno Haible  <bruno@clisp.org>
12109
12110         gnulib-tool: Ensure the tests in the main directory are executed first.
12111         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
12112         start with the current directory.
12113
12114 2010-04-02  Bruno Haible  <bruno@clisp.org>
12115
12116         Tests for module 'havelib', moved here from GNU gettext.
12117         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
12118         modifications.
12119         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
12120         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12121         with modifications.
12122         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12123         modifications.
12124         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12125         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12126         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12127         with modifications.
12128         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12129         with modifications.
12130         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12131         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12132         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
12133         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
12134         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
12135         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
12136         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
12137         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
12138         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
12139         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
12140         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
12141         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
12142         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
12143         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
12144         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
12145         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
12146         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
12147         with modifications.
12148         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
12149         with modifications.
12150         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
12151         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
12152         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
12153         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
12154         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
12155         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
12156         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
12157         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
12158         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
12159         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
12160         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
12161         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
12162         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
12163         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
12164         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
12165         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
12166         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
12167         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
12168         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
12169         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
12170         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
12171         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
12172         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
12173         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
12174         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
12175         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
12176         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
12177         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
12178         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
12179         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
12180         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
12181         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
12182         * tests/havelib/rpathx/rpathx.c: New file, from
12183         gettext/autoconf-lib-link.
12184         * tests/havelib/rpathx/Makefile.am: New file, from
12185         gettext/autoconf-lib-link.
12186         * tests/havelib/rpathx/configure.ac: New file, from
12187         gettext/autoconf-lib-link with modifications.
12188         * tests/havelib/rpathy/rpathy.c: New file, from
12189         gettext/autoconf-lib-link.
12190         * tests/havelib/rpathy/Makefile.am: New file, from
12191         gettext/autoconf-lib-link.
12192         * tests/havelib/rpathy/configure.ac: New file, from
12193         gettext/autoconf-lib-link with modifications.
12194         * tests/havelib/rpathz/rpathz.c: New file, from
12195         gettext/autoconf-lib-link.
12196         * tests/havelib/rpathz/Makefile.am: New file, from
12197         gettext/autoconf-lib-link.
12198         * tests/havelib/rpathz/configure.ac: New file, from
12199         gettext/autoconf-lib-link with modifications.
12200         * tests/havelib/rpathlx/usex.c: New file, from
12201         gettext/autoconf-lib-link.
12202         * tests/havelib/rpathlx/Makefile.am: New file, from
12203         gettext/autoconf-lib-link.
12204         * tests/havelib/rpathlx/configure.ac: New file, from
12205         gettext/autoconf-lib-link with modifications.
12206         * tests/havelib/rpathly/usey.c: New file, from
12207         gettext/autoconf-lib-link.
12208         * tests/havelib/rpathly/Makefile.am: New file, from
12209         gettext/autoconf-lib-link.
12210         * tests/havelib/rpathly/configure.ac: New file, from
12211         gettext/autoconf-lib-link with modifications.
12212         * tests/havelib/rpathlz/usez.c: New file, from
12213         gettext/autoconf-lib-link.
12214         * tests/havelib/rpathlz/Makefile.am: New file, from
12215         gettext/autoconf-lib-link.
12216         * tests/havelib/rpathlz/configure.ac: New file, from
12217         gettext/autoconf-lib-link with modifications.
12218         * tests/havelib/rpathlyx/usey.c: New file, from
12219         gettext/autoconf-lib-link.
12220         * tests/havelib/rpathlyx/Makefile.am: New file, from
12221         gettext/autoconf-lib-link.
12222         * tests/havelib/rpathlyx/configure.ac: New file, from
12223         gettext/autoconf-lib-link with modifications.
12224         * tests/havelib/rpathlzyx/usez.c: New file, from
12225         gettext/autoconf-lib-link.
12226         * tests/havelib/rpathlzyx/Makefile.am: New file, from
12227         gettext/autoconf-lib-link.
12228         * tests/havelib/rpathlzyx/configure.ac: New file, from
12229         gettext/autoconf-lib-link with modifications.
12230         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
12231         with modifications.
12232
12233 2010-04-02  Bruno Haible  <bruno@clisp.org>
12234
12235         gnulib-tool: Create distributed built sources also for the tests.
12236         * gnulib-tool (func_create_testdir): Also generate distributed built
12237         sources in the tests directory.
12238
12239 2010-04-02  Bruno Haible  <bruno@clisp.org>
12240
12241         gnulib-tool: Obey user's environment variables.
12242         * gnulib-tool (func_create_testdir): When creating built sources,
12243         respect the environment variables for autoconf, automake, etc. given by
12244         the user.
12245
12246 2010-04-02  Bruno Haible  <bruno@clisp.org>
12247
12248         gnulib-tool: Provide the value of --m4-base to modules.
12249         * gnulib-tool (func_import, func_create_testdir): Emit a definition
12250         of gl_m4_base.
12251
12252 2010-04-02  Eric Blake  <eblake@redhat.com>
12253
12254         maint.mk: fix some fallout
12255         * NEWS: Document the incompatible change, and its effect on cfg.mk.
12256         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
12257
12258 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12259
12260         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
12261         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
12262         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
12263         (sc_cast_of_x_alloc_return_value): Likewise.
12264         (sc_cast_of_alloca_return_value): Likewise.
12265         (sc_space_tab): Likewise.
12266         (sc_prohibit_atoi_atof): Likewise.
12267         (sc_prohibit_magic_number_exit): Likewise.
12268         (sc_error_exit_success): Likewise.
12269         (sc_file_system): Likewise.
12270         (sc_prohibit_have_config_h): Likewise.
12271         (sc_require_config_h): Likewise.
12272         (sc_prohibit_HAVE_MBRTOWC): Likewise.
12273         (sc_obsolete_symbols): Likewise.
12274         (sc_changelog): Likewise.
12275         (sc_program_name): Likewise.
12276         (sc_the_the): Likewise.
12277         (sc_trailing_blank): Likewise.
12278         (sc_two_space_separator_in_usage): Likewise.
12279         (sc_useless_cpp_parens): Likewise.
12280         (sc_GPL_version): Likewise.
12281         (sc_GFDL_version): Likewise.
12282         (sc_texinfo_acronym): Likewise.
12283         (sc_prohibit_cvs_keyword): Likewise.
12284         (sc_prohibit_stat_st_blocks): Likewise.
12285         (sc_prohibit_S_IS_definition): Likewise.
12286         (sc_redundant_const): Likewise.
12287         (sc_makefile_TAB_only_indentation): Likewise.
12288         (sc_m4_quote_check): Likewise.
12289         (sc_makefile_path_separator_check): Likewise.
12290         (sc_copyright_check): Likewise.
12291         (sc_Wundef_boolean): Likewise.
12292         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12293
12294         maint.mk: match 0 or more whitespace-before-function-call '('
12295         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
12296         that have zero or two-and-more spaces between the function name
12297         and the open parenthesis.
12298         (sc_error_message_warn_fatal): Likewise.
12299         (sc_error_message_uppercase): Likewise.
12300         (sc_error_message_period): Likewise.
12301
12302 2010-03-31  Eric Blake  <eblake@redhat.com>
12303
12304         maint.mk: check for [ as well as test
12305         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
12306         Based on a libvirt report by Matthias Bolte.
12307
12308         gnumakefile: don't squelch _version output
12309         * top/GNUmakefile (_version): Create one-shot dependency rather
12310         than using $(shell) when version must be regenerated.
12311         (_autoreconf): Run verbosely, by default.
12312
12313         sys_time: avoid compiler warnings
12314         * lib/sys_time.in.h (includes): Ensure gcc pragma is
12315         unconditional, fixing regression from 2010-03-29.
12316         Reported by Simon Josefsson.
12317
12318 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12319
12320         maint.mk: s/_header_without_use/_sc_header_without_use/
12321         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
12322         (sc_prohibit_assert_without_use): Use the new name.
12323         (sc_prohibit_close_stream_without_use): Likewise.
12324         (sc_prohibit_getopt_without_use): Likewise.
12325         (sc_prohibit_quotearg_without_use): Likewise.
12326         (sc_prohibit_quote_without_use): Likewise.
12327         (sc_prohibit_long_options_without_use): Likewise.
12328         (sc_prohibit_inttostr_without_use): Likewise.
12329         (sc_prohibit_ignore_value_without_use): Likewise.
12330         (sc_prohibit_error_without_use): Likewise.
12331         (sc_prohibit_xalloc_without_use): Likewise.
12332         (sc_prohibit_hash_without_use): Likewise.
12333         (sc_prohibit_hash_pjw_without_use): Likewise.
12334         (sc_prohibit_safe_read_without_use): Likewise.
12335         (sc_prohibit_argmatch_without_use): Likewise.
12336         (sc_prohibit_canonicalize_without_use): Likewise.
12337         (sc_prohibit_root_dev_ino_without_use): Likewise.
12338         (sc_prohibit_openat_without_use): Likewise.
12339         (sc_prohibit_c_ctype_without_use): Likewise.
12340         (sc_prohibit_signal_without_use): Likewise.
12341         (sc_prohibit_intprops_without_use): Likewise.
12342
12343 2010-03-30  Eric Blake  <eblake@redhat.com>
12344
12345         maint: improve module indicators
12346         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12347         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12348         columns, and avoid extra macro expansion.
12349
12350         fdopendir: work around FreeBSD bug
12351         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12352         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12353         * modules/dirent (Makefile.am): Substitute it.
12354         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12355         declaration.
12356         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12357         fix.
12358         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12359
12360 2010-03-29  Bruno Haible  <bruno@clisp.org>
12361
12362         Emit #pragma system_header after the inclusion guard, not before.
12363         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
12364         guard that spans the entire file, not before. This enables an
12365         optimization in GCC's preprocessor.
12366         * lib/ctype.in.h: Likewise.
12367         * lib/dirent.in.h: Likewise.
12368         * lib/errno.in.h: Likewise.
12369         * lib/float.in.h: Likewise.
12370         * lib/getopt.in.h: Likewise.
12371         * lib/iconv.in.h: Likewise.
12372         * lib/langinfo.in.h: Likewise.
12373         * lib/locale.in.h: Likewise.
12374         * lib/math.in.h: Likewise.
12375         * lib/netdb.in.h: Likewise.
12376         * lib/netinet_in.in.h: Likewise.
12377         * lib/pty.in.h: Likewise.
12378         * lib/sched.in.h: Likewise.
12379         * lib/se-selinux.in.h: Likewise.
12380         * lib/search.in.h: Likewise.
12381         * lib/spawn.in.h: Likewise.
12382         * lib/stdarg.in.h: Likewise.
12383         * lib/stdint.in.h: Likewise.
12384         * lib/string.in.h: Likewise.
12385         * lib/strings.in.h: Likewise.
12386         * lib/sys_file.in.h: Likewise.
12387         * lib/sys_ioctl.in.h: Likewise.
12388         * lib/sys_time.in.h: Likewise.
12389         * lib/sys_times.in.h: Likewise.
12390         * lib/sys_utsname.in.h: Likewise.
12391         * lib/sys_wait.in.h: Likewise.
12392         * lib/sysexits.in.h: Likewise.
12393         * lib/wctype.in.h: Likewise.
12394
12395 2010-03-28  James Youngman  <jay@gnu.org>
12396
12397         save-cwd: don't leak a file descriptor when the caller execs.
12398         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
12399         saved file descriptor.
12400         * modules/save-cwd (Depends-on): Depend on cloexec.
12401
12402 2010-03-29  Bruno Haible  <bruno@clisp.org>
12403
12404         Remove vestiges of fts-lgpl module.
12405         * lib/fts_.h: Assume GNULIB_FTS is 1.
12406         * lib/fts.c: Likewise.
12407         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12408
12409 2010-03-28  Bruno Haible  <bruno@clisp.org>
12410
12411         Fix definition of tests witness macro.
12412         * gnulib-tool (func_import): Fix definition of witness macro.
12413
12414 2010-03-28  Bruno Haible  <bruno@clisp.org>
12415
12416         Fix ioctl's protoype on glibc systems.
12417         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
12418         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
12419         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
12420         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
12421         signature. If not, arrange to replace the ioctl function.
12422         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12423         REPLACE_IOCTL.
12424         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12425         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
12426         Reported by Ludovic Courtès <ludo@gnu.org>.
12427
12428 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
12429
12430         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
12431         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
12432         made it so grep -r --include=GLOB* ... did not work.
12433
12434 2010-03-26  Jim Meyering  <meyering@redhat.com>
12435             Eric Blake  <eblake@redhat.com>
12436
12437         maint.mk: prohibit use of test's -o and -a operators
12438         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
12439
12440 2010-03-28  Bruno Haible  <bruno@clisp.org>
12441
12442         Remove unused GNULIB_XYZ macro definitions.
12443         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
12444         invocation.
12445
12446 2010-03-28  Bruno Haible  <bruno@clisp.org>
12447
12448         Mark privileged tests modules.
12449         * modules/idpriv-drop-tests (Status): New section.
12450         * modules/idpriv-droptemp-tests (Status): New section.
12451
12452 2010-03-28  Bruno Haible  <bruno@clisp.org>
12453
12454         Split C++ tests into separate tests modules.
12455         * modules/dirent-c++-tests: New file, extracted from
12456         modules/dirent-tests.
12457         * modules/dirent-tests: Depend on it.
12458         * modules/fcntl-h-c++-tests: New file, extracted from
12459         modules/fcntl-h-tests.
12460         * modules/fcntl-h-tests: Depend on it.
12461         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
12462         * modules/glob-tests: Depend on it.
12463         * modules/iconv-h-c++-tests: New file, extracted from
12464         modules/iconv-h-tests.
12465         * modules/iconv-h-tests: Depend on it.
12466         * modules/langinfo-c++-tests: New file, extracted from
12467         modules/langinfo-tests.
12468         * modules/langinfo-tests: Depend on it.
12469         * modules/locale-c++-tests: New file, extracted from
12470         modules/locale-tests.
12471         * modules/locale-tests: Depend on it.
12472         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12473         * modules/math-tests: Depend on it.
12474         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12475         * modules/pty-tests: Depend on it.
12476         * modules/search-c++-tests: New file, extracted from
12477         modules/search-tests.
12478         * modules/search-tests: Depend on it.
12479         * modules/signal-c++-tests: New file, extracted from
12480         modules/signal-tests.
12481         * modules/signal-tests: Depend on it.
12482         * modules/spawn-c++-tests: New file, extracted from
12483         modules/spawn-tests.
12484         * modules/spawn-tests: Depend on it.
12485         * modules/stdio-c++-tests: New file, extracted from
12486         modules/stdio-tests.
12487         * modules/stdio-tests: Depend on it.
12488         * modules/stdlib-c++-tests: New file, extracted from
12489         modules/stdlib-tests.
12490         * modules/stdlib-tests: Depend on it.
12491         * modules/string-c++-tests: New file, extracted from
12492         modules/string-tests.
12493         * modules/string-tests: Depend on it.
12494         * modules/sys_ioctl-c++-tests: New file, extracted from
12495         modules/sys_ioctl-tests.
12496         * modules/sys_ioctl-tests: Depend on it.
12497         * modules/sys_select-c++-tests: New file, extracted from
12498         modules/sys_select-tests.
12499         * modules/sys_select-tests: Depend on it.
12500         * modules/sys_socket-c++-tests: New file, extracted from
12501         modules/sys_socket-tests.
12502         * modules/sys_socket-tests: Depend on it.
12503         * modules/sys_stat-c++-tests: New file, extracted from
12504         modules/sys_stat-tests.
12505         * modules/sys_stat-tests: Depend on it.
12506         * modules/sys_time-c++-tests: New file, extracted from
12507         modules/sys_time-tests.
12508         * modules/sys_time-tests: Depend on it.
12509         * modules/time-c++-tests: New file, extracted from modules/time-tests.
12510         * modules/time-tests: Depend on it.
12511         * modules/unistd-c++-tests: New file, extracted from
12512         modules/unistd-tests.
12513         * modules/unistd-tests: Depend on it.
12514         * modules/wchar-c++-tests: New file, extracted from
12515         modules/wchar-tests.
12516         * modules/wchar-tests: Depend on it.
12517         * modules/wctype-c++-tests: New file, extracted from
12518         modules/wctype-tests.
12519         * modules/wctype-tests: Depend on it.
12520         Reported by Simon Josefsson.
12521
12522 2010-03-28  Bruno Haible  <bruno@clisp.org>
12523
12524         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
12525         * gnulib-tool (func_exists_module): New function, extracted from
12526         func_verify_module.
12527         (func_verify_module): Use it.
12528         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
12529         'foo' only if 'foo' exists.
12530         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
12531         module.
12532
12533 2010-03-28  Bruno Haible  <bruno@clisp.org>
12534
12535         gnulib-tool: Add support for special categories of tests.
12536         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
12537         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
12538         (func_usage): Document them.
12539         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
12540         inc_unportable_tests, inc_all_tests): New variables.
12541         (func_acceptable): Consider these variables.
12542         (func_modules_transitive_closure): Make it work when the 'Status' field
12543         consists of multiple words.
12544         (func_import): Store and restore the values of inc_cxx_tests,
12545         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
12546         inc_all_tests in gnulib-comp.m4.
12547         (func_create_testdir): Set inc_all_tests to true.
12548         * doc/gnulib.texi (Extra tests modules): New section.
12549         Suggested by Jim Meyering.
12550
12551 2010-03-28  Bruno Haible  <bruno@clisp.org>
12552
12553         ansi-c++-opt: Allow turning off the C++ build by default.
12554         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
12555         gl_CXX_CHOICE_DEFAULT_NO is defined.
12556         Requested by Eric Blake.
12557
12558 2010-03-28  Bruno Haible  <bruno@clisp.org>
12559
12560         unistd: Avoid #define replacements in C++ mode.
12561         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12562         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12563         setsockopt, shutdown, select): In C++, attach a warning to the function
12564         if possible, rather than #defining the symbol to a dysfunctional alias.
12565         Reported by John W. Eaton <jwe@gnu.org>.
12566
12567 2010-03-28  Bruno Haible  <bruno@clisp.org>
12568
12569         Fix link errors on mingw.
12570         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
12571         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
12572         $(LIBSOCKET).
12573         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
12574         $(LIBSOCKET).
12575
12576 2010-03-28  Bruno Haible  <bruno@clisp.org>
12577             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12578
12579         lib-ignore: Determine different options for different compilers.
12580         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
12581         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
12582         Add comments.
12583         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
12584         * NEWS: Mention the change.
12585
12586 2010-03-27  Bruno Haible  <bruno@clisp.org>
12587
12588         Remove unused GNULIB_XYZ macro definitions.
12589         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12590         * modules/fseek (configure.ac): Likewise.
12591         * modules/ioctl (configure.ac): Likewise.
12592         * modules/open (configure.ac): Likewise.
12593         * modules/stdlib-safer (configure.ac): Likewise.
12594
12595 2010-03-27  Bruno Haible  <bruno@clisp.org>
12596
12597         Add a remark about certain modules.
12598         * modules/malloc (Comment): New section.
12599         * modules/realloc (Comment): Likewise.
12600         * modules/sigpipe (Comment): Likewise.
12601
12602 2010-03-27  Bruno Haible  <bruno@clisp.org>
12603
12604         Resolve conflict between the two kinds of module indicators.
12605         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
12606         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
12607         * modules/canonicalize (configure.ac): Invoke
12608         gl_MODULE_INDICATOR_FOR_TESTS.
12609         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
12610         GNULIB_XYZ.
12611         * tests/test-dirent-c++.cc: Likewise.
12612         * tests/test-dirent-safer.c: Likewise.
12613         * tests/test-dup2.c: Likewise.
12614         * tests/test-fchdir.c: Likewise.
12615         * tests/test-fcntl-h-c++.cc: Likewise.
12616         * tests/test-getopt.c: Likewise.
12617         * tests/test-getopt.h: Likewise.
12618         * tests/test-langinfo-c++.cc: Likewise.
12619         * tests/test-locale-c++.cc: Likewise.
12620         * tests/test-math-c++.cc: Likewise.
12621         * tests/test-pty-c++.cc: Likewise.
12622         * tests/test-search-c++.cc: Likewise.
12623         * tests/test-signal-c++.cc: Likewise.
12624         * tests/test-spawn-c++.cc: Likewise.
12625         * tests/test-stdio-c++.cc: Likewise.
12626         * tests/test-stdlib-c++.cc: Likewise.
12627         * tests/test-string-c++.cc: Likewise.
12628         * tests/test-sys_ioctl-c++.cc: Likewise.
12629         * tests/test-sys_select-c++.cc: Likewise.
12630         * tests/test-sys_socket-c++.cc: Likewise.
12631         * tests/test-sys_stat-c++.cc: Likewise.
12632         * tests/test-sys_time-c++.cc: Likewise.
12633         * tests/test-time-c++.cc: Likewise.
12634         * tests/test-unistd-c++.cc: Likewise.
12635         * tests/test-wchar-c++.cc: Likewise.
12636         * tests/uninorm/test-u8-nfc.c: Likewise.
12637         * tests/uninorm/test-u8-nfd.c: Likewise.
12638         * tests/uninorm/test-u8-nfkc.c: Likewise.
12639         * tests/uninorm/test-u8-nfkd.c: Likewise.
12640         * tests/uninorm/test-u16-nfc.c: Likewise.
12641         * tests/uninorm/test-u16-nfd.c: Likewise.
12642         * tests/uninorm/test-u16-nfkc.c: Likewise.
12643         * tests/uninorm/test-u16-nfkd.c: Likewise.
12644         * tests/uninorm/test-u32-nfc.c: Likewise.
12645         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12646         * tests/uninorm/test-u32-nfd.c: Likewise.
12647         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12648         * tests/uninorm/test-u32-nfkc.c: Likewise.
12649         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12650         * tests/uninorm/test-u32-nfkd.c: Likewise.
12651         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12652         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12653
12654 2010-03-27  Bruno Haible  <bruno@clisp.org>
12655
12656         Distinguish two kinds of module indicators.
12657         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
12658         gl_MODULE_INDICATOR.
12659         (gl_MODULE_INDICATOR): New macro.
12660         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12661         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
12662         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12663         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12664         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12665         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12666         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12667         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12668         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12669         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12670         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12671         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12673         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12674         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12675         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12676         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12677         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12678         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12679         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12680         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12681         * modules/cloexec (configure.ac): Likewise.
12682         * modules/getopt-gnu (configure.ac): Likewise.
12683         * modules/uninorm/u8-normalize (configure.ac): Likewise.
12684         * modules/uninorm/u16-normalize (configure.ac): Likewise.
12685         * modules/uninorm/u32-normalize (configure.ac): Likewise.
12686         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
12687
12688 2010-03-27  Bruno Haible  <bruno@clisp.org>
12689
12690         New module description field 'Comment'.
12691         * gnulib-tool: New option --extract-comment.
12692         (func_usage): Document it.
12693         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
12694         (func_get_comment): New function.
12695         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
12696
12697 2010-03-27  Bruno Haible  <bruno@clisp.org>
12698
12699         Addendum to 2010-02-07 commit.
12700         * gnulib-tool (func_usage): Document --extract-applicability option.
12701
12702 2010-03-27  Bruno Haible  <bruno@clisp.org>
12703
12704         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
12705         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
12706         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
12707         rather than link errors.
12708
12709 2010-03-27  Bruno Haible  <bruno@clisp.org>
12710
12711         Avoid side effects from tests-related modules on the compilation of lib.
12712         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
12713         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
12714         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
12715         parameter. Emit into AM_CPPFLAGS a definition of the designated C
12716         macro.
12717         (func_import): Define a witness macro. Assign it a value that depends
12718         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
12719         tests-related modules.
12720         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
12721         Reported by Jim Meyering.
12722
12723 2010-03-27  Bruno Haible  <bruno@clisp.org>
12724
12725         Factorize common .m4 code.
12726         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
12727         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
12728         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
12729         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
12730         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12731         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
12732         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
12733         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12734         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12735         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12736         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
12737         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12738         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12739         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12740         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12741         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
12742         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12743         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12745         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
12746         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
12747         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12748         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12749         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12750         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12751         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12752         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
12753         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
12754         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
12755         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12756         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12757         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12758
12759 2010-03-27  Bruno Haible  <bruno@clisp.org>
12760
12761         Fix a compilation error on Cygwin with g++ >= 4.3.
12762         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
12763         if it is undefined or if we alias it to chmod.
12764         (lstat): Don't warn about the use of this function if it is undefined
12765         or if we alias it to stat.
12766         Reported by Simon Josefsson.
12767
12768 2010-03-27  Bruno Haible  <bruno@clisp.org>
12769
12770         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
12771         * modules/getlogin (configure.ac): Update.
12772
12773         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
12774         * modules/getlogin_r (configure.ac): Update.
12775
12776         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
12777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
12778         * modules/inet_ntop (configure.ac): Update.
12779
12780         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
12781         * modules/inet_pton (configure.ac): Update.
12782
12783         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
12784         * modules/mbslen (configure.ac): Update.
12785
12786         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
12787         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
12788         * modules/forkpty (configure.ac): Update.
12789         * modules/openpty (configure.ac): Update.
12790
12791 2010-03-26  Simon Josefsson  <simon@josefsson.org>
12792
12793         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
12794         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
12795
12796 2010-03-25  Eric Blake  <eblake@redhat.com>
12797
12798         maint: use pragma consistently across replacement headers
12799         * lib/ctype.in.h (system_header): Hoist for consistent placement.
12800         * lib/dirent.in.h (system_header): Likewise.
12801         * lib/errno.in.h (system_header): Likewise.
12802         * lib/float.in.h (system_header): Likewise.
12803         * lib/getopt.in.h (system_header): Likewise.
12804         * lib/iconv.in.h (system_header): Likewise.
12805         * lib/inttypes.in.h (system_header): Likewise.
12806         * lib/langinfo.in.h (system_header): Likewise.
12807         * lib/locale.in.h (system_header): Likewise.
12808         * lib/math.in.h (system_header): Likewise.
12809         * lib/netdb.in.h (system_header): Likewise.
12810         * lib/netinet_in.in.h (system_header): Likewise.
12811         * lib/pty.in.h (system_header): Likewise.
12812         * lib/sched.in.h (system_header): Likewise.
12813         * lib/se-selinux.in.h (system_header): Likewise.
12814         * lib/search.in.h (system_header): Likewise.
12815         * lib/spawn.in.h (system_header): Likewise.
12816         * lib/stdarg.in.h (system_header): Likewise.
12817         * lib/stdint.in.h (system_header): Likewise.
12818         * lib/string.in.h (system_header): Likewise.
12819         * lib/strings.in.h (system_header): Likewise.
12820         * lib/sys_file.in.h (system_header): Likewise.
12821         * lib/sys_ioctl.in.h (system_header): Likewise.
12822         * lib/sys_socket.in.h (system_header): Likewise.
12823         * lib/sys_times.in.h (system_header): Likewise.
12824         * lib/sys_utsname.in.h (system_header): Likewise.
12825         * lib/sys_wait.in.h (system_header): Likewise.
12826         * lib/sysexits.in.h (system_header): Likewise.
12827         * lib/unistd.in.h (system_header): Likewise.
12828         * lib/wctype.in.h (system_header): Likewise.
12829
12830         arpa/inet: fix mingw compilation warning
12831         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
12832         Reported by Matthew Bolte.
12833
12834 2010-03-25  Bruno Haible  <bruno@clisp.org>
12835
12836         Avoid collision between gnulib wrapper and libintl wrapper.
12837         * lib/printf.c (printf): Don't define if a printf wrapper is already
12838         defined in intl/printf.c.
12839         Reported by Michel Boaventura <michel@michelboaventura.com>.
12840
12841 2010-03-25  Bruno Haible  <bruno@clisp.org>
12842
12843         Use ANSI C.
12844         * lib/readutmp.h (getutent): Provide ANSI C prototype.
12845
12846 2010-03-25  Bruno Haible  <bruno@clisp.org>
12847
12848         Minor formatting changes.
12849         * lib/acosl.c: Insert space before function argument list.
12850         * lib/argz.c: Likewise.
12851         * lib/asinl.c: Likewise.
12852         * lib/expl.c: Likewise.
12853         * lib/gen-uni-tables.c: Likewise.
12854         * lib/gettext.h: Likewise.
12855         * lib/glthread/lock.h: Likewise.
12856         * lib/tanl.c: Likewise.
12857         * lib/uniname/uniname.c: Likewise.
12858         * tests/test-idpriv-drop.c: Likewise.
12859         * tests/test-idpriv-droptemp.c: Likewise.
12860         * tests/test-lock.c: Likewise.
12861         * tests/test-tls.c: Likewise.
12862         * lib/argp-help.c: Insert space before function-like macro argument
12863         list.
12864         * lib/memcmp.c: Likewise.
12865         * tests/test-base64.c: Likewise.
12866         * lib/localename.c: Insert space before sizeof's argument list.
12867         * lib/safe-alloc.h: Likewise.
12868         * lib/file-set.h: Insert space before macro argument list.
12869         * tests/test-argp.c: Likewise.
12870         * lib/argp-namefrob.h: Insert space before function parameter list.
12871         * lib/getaddrinfo.c: Likewise.
12872         * lib/netdb.in.h: Likewise.
12873         * lib/parse-duration.h: Likewise.
12874         * lib/parse-duration.c: Likewise.
12875         * lib/poll.c: Likewise.
12876         * lib/select.c: Likewise.
12877         * lib/trim.h: Likewise.
12878         * tests/test-usleep.c: Likewise.
12879         * lib/ldexpl.c: Insert space before function parameter list and before
12880         function argument list.
12881         * lib/logl.c: Likewise.
12882         * lib/sqrtl.c: Likewise.
12883         * lib/trim.c: Likewise.
12884         * lib/cosl.c: Use GNU style indentation. Insert space before function
12885         argument list.
12886         * lib/sinl.c: Likewise.
12887         * lib/tsearch.c: Insert space after 'for'.
12888         Reported by Jim Meyering.
12889
12890 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
12891
12892         * maint.mk (sc_Wundef_boolean): Check for the presence of the
12893         config header before grepping, as it's not present before
12894         autoreconf/configure are run.  Reported by Simon Josefsson.
12895
12896 2010-03-23  Bruno Haible  <bruno@clisp.org>
12897
12898         pt_chown: Make it work with automake < 1.11.
12899         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
12900         Reported by Simon Josefsson.
12901
12902 2010-03-23  Bruno Haible  <bruno@clisp.org>
12903
12904         pt_chown: Don't depend on GPLed modules.
12905         * lib/pt_chown.c: Don't include idpriv.h.
12906         (main): Don't drop privileges.
12907         * modules/pt_chown (Depends-on): Remove idpriv-drop.
12908         Reported by Simon Josefsson.
12909
12910 2010-03-24  Simon Josefsson  <simon@josefsson.org>
12911
12912         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
12913         suggestions from karl@freefriends.org (Karl Berry).
12914
12915 2010-03-22  Eric Blake  <eblake@redhat.com>
12916
12917         gethostname: further tweaks
12918         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
12919         are overriding gethostname.
12920         Suggested by Bruno Haible.
12921
12922 2010-03-21  Bruno Haible  <bruno@clisp.org>
12923
12924         Fix comments.
12925         * lib/forkpty.c (rpl_forkpty): Fix comment.
12926         * lib/openpty.c (rpl_openpty): Likewise.
12927         Reported by Eric Blake.
12928
12929 2010-03-22  Eric Blake  <eblake@redhat.com>
12930
12931         gethostname: fix build on mingw
12932         * lib/unistd.in.h (includes): Work around fact that mingw
12933         <winsock2.h> re-includes <unistd.h>, by avoiding any
12934         redeclarations if we are being included by <winsock2.h>.
12935         Reported by Matthias Bolte.
12936
12937 2010-03-21  Bruno Haible  <bruno@clisp.org>
12938
12939         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12940         * lib/forkpty.c (forkpty): New replacement function, from glibc with
12941         modifications.
12942         * lib/pty.in.h (forkpty): Update declaration. Add comments.
12943         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
12944         provide the replacement.
12945         * modules/forkpty (Depends-on): Add openpty, login_tty.
12946         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
12947         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
12948         * doc/glibc-functions/forkpty.texi: More supported platforms.
12949         * config/srclist.txt: Add forkpty.c (commented).
12950
12951 2010-03-21  Bruno Haible  <bruno@clisp.org>
12952
12953         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
12954         (Makefile.am): Verify that PTY_LIB is defined.
12955
12956         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
12957
12958 2010-03-21  Bruno Haible  <bruno@clisp.org>
12959
12960         Tests for module 'login_tty'.
12961         * modules/login_tty-tests: New file.
12962         * tests/test-login_tty.c: New file.
12963
12964         New module 'login_tty'.
12965         * lib/login_tty.c: New file.
12966         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
12967         * modules/login_tty: New file.
12968         * doc/glibc-functions/login_tty.texi: Mention the new module.
12969
12970 2010-03-21  Bruno Haible  <bruno@clisp.org>
12971
12972         login_tty: Documentation.
12973         * doc/glibc-functions/login_tty.texi: New file.
12974         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
12975
12976 2010-03-21  Bruno Haible  <bruno@clisp.org>
12977
12978         pty: Consistent macro naming.
12979         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
12980         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
12981         * modules/pty (configure.ac): Update.
12982
12983 2010-03-21  Bruno Haible  <bruno@clisp.org>
12984
12985         Tests for openpty: Make stricter.
12986         * tests/test-openpty.c (main): Add test of canonical processing and
12987         erase.
12988         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
12989
12990         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12991         * lib/openpty.c (openpty): New replacement function.
12992         * lib/pty.in.h: Include <termios.h>.
12993         (openpty): Update declaration. Add comments.
12994         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
12995         is not declared, arrange to provide the replacement. Check for _getpty
12996         and posix_openpt.
12997         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
12998         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
12999         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13000         * modules/pty-tests (test_pty_c___LDADD): New variable.
13001         * doc/glibc-functions/openpty.texi: More supported platforms.
13002
13003 2010-03-21  Bruno Haible  <bruno@clisp.org>
13004
13005         setenv: Tweaks.
13006         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
13007         the test program.
13008         * doc/posix-functions/setenv.texi: Update platforms list.
13009
13010 2010-03-21  Bruno Haible  <bruno@clisp.org>
13011
13012         New module 'unlockpt'.
13013         * lib/unlockpt.c: New file, from glibc with modifications.
13014         * m4/unlockpt.m4: New file.
13015         * modules/unlockpt: New file.
13016         * lib/stdlib.in.h (unlockpt): New declaration.
13017         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
13018         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
13019         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
13020         HAVE_UNLOCKPT.
13021         * doc/posix-functions/unlockpt.texi: Mention the new module.
13022         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
13023         * config/srclist.txt: Add unlockpt.c (commented).
13024
13025 2010-03-21  Jim Meyering  <meyering@redhat.com>
13026
13027         maint.mk: prohibit inclusion of "intprops.h" without use
13028         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
13029
13030 2010-03-21  Bruno Haible  <bruno@clisp.org>
13031
13032         New module 'grantpt'.
13033         * lib/grantpt.c: New file, from glibc with modifications.
13034         * m4/grantpt.m4: New file.
13035         * modules/grantpt: New file.
13036         * lib/stdlib.in.h (grantpt): New declaration.
13037         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
13038         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
13039         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
13040         HAVE_GRANTPT.
13041         * doc/posix-functions/grantpt.texi: Mention the new module.
13042         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
13043         * config/srclist.txt: Add grantpt.c (commented).
13044
13045 2010-03-21  Bruno Haible  <bruno@clisp.org>
13046
13047         New module 'pt_chown'.
13048         * lib/pt_chown.c: New file, from glibc with modifications.
13049         * lib/pty-private.h: New file, from glibc with modifications.
13050         * modules/pt_chown: New file.
13051         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
13052
13053 2010-03-21  Bruno Haible  <bruno@clisp.org>
13054
13055         Tests for module 'ptsname'.
13056         * modules/ptsname-tests: New file.
13057         * tests/test-ptsname.c: New file.
13058
13059         New module 'ptsname'.
13060         * lib/ptsname.c: New file, from glibc with modifications.
13061         * m4/ptsname.m4: New file.
13062         * modules/ptsname: New file.
13063         * lib/stdlib.in.h (ptsname): New declaration.
13064         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13065         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
13066         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
13067         HAVE_PTSNAME.
13068         * doc/posix-functions/ptsname.texi: Mention the new module.
13069         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
13070         * config/srclist.txt: Add ptsname.c (commented).
13071
13072 2010-03-21  Bruno Haible  <bruno@clisp.org>
13073
13074         Tests for module 'ttyname_r'.
13075         * modules/ttyname_r-tests: New file.
13076         * tests/test-ttyname_r.c: New file.
13077
13078         New module 'ttyname_r'.
13079         * lib/ttyname_r.c: New file.
13080         * m4/ttyname_r.m4: New file.
13081         * modules/ttyname_r: New file.
13082         * lib/unistd.in.h (ttyname_r): New declaration.
13083         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
13084         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
13085         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
13086         HAVE_TTYNAME_R.
13087         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
13088         * doc/posix-functions/ttyname_r.texi: Mention the new module.
13089
13090 2010-03-20  Bruno Haible  <bruno@clisp.org>
13091
13092         signal: Undefine macro definitions in C++ mode.
13093         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
13094         sigfillset): Undefine macro definitions from the system header in C++
13095         mode.
13096         Reported by John W. Eaton <jwe@gnu.org>.
13097
13098 2010-03-20  Bruno Haible  <bruno@clisp.org>
13099
13100         Ensure no #include statements inside extern "C" { ... }.
13101         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
13102         contain #include statements.
13103         * lib/time.in.h: Likewise.
13104
13105 2010-03-20  Bruno Haible  <bruno@clisp.org>
13106
13107         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
13108         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
13109         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
13110         Reported by John W. Eaton <jwe@gnu.org>.
13111
13112 2010-03-20  Bruno Haible  <bruno@clisp.org>
13113
13114         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
13115         Reported by Jim Meyering.
13116
13117 2010-03-20  Bruno Haible  <bruno@clisp.org>
13118
13119         pipe: Set errno upon failure.
13120         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13121         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13122         errno value in error message.
13123
13124 2010-03-20  Bruno Haible  <bruno@clisp.org>
13125             Jim Meyering  <meyering@redhat.com>
13126
13127         lchown: Avoid "unused variable" warning.
13128         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13129
13130 2010-03-20  Bruno Haible  <bruno@clisp.org>
13131
13132         Work around unlink() bug on MacOS X 10.5.6.
13133         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
13134         attempting to unlink a parent directory.
13135         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
13136         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
13137         activate for the replacement function.
13138         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
13139
13140 2010-03-20  Bruno Haible  <bruno@clisp.org>
13141
13142         Fix link errors on Solaris 8.
13143         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
13144         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
13145
13146 2010-03-19  Jim Meyering  <meyering@redhat.com>
13147
13148         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
13149         The _LIBC implementation of build_range_exp correctly honors the
13150         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
13151         However, the non-_LIBC implementation would ignore that syntax-bit
13152         flag and return REG_ERANGE unconditionally.
13153         This change makes it honor that flag.
13154         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
13155         Make two pointer parameters "const".
13156         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
13157         (parse_bracket_exp): Update caller.
13158
13159         regex.m4: correct the reversed range endpoint ([b-a]) test
13160         * m4/regex.m4: When requiring that [b-a] evoke failure,
13161         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
13162         test pass once again for x86-based systems.
13163
13164 2010-03-19  Bruno Haible  <bruno@clisp.org>
13165
13166         scandir: Fix link error on Solaris 8.
13167         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
13168         macros.
13169
13170 2010-03-19  Bruno Haible  <bruno@clisp.org>
13171
13172         getusershell: Fix documentation.
13173         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
13174         module.
13175         * doc/glibc-functions/setusershell.texi: Likewise.
13176
13177         getusershell: Provide declaration, missing on Solaris 9.
13178         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
13179         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
13180         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
13181         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
13182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13183         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
13184         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
13185         HAVE_GETUSERSHELL.
13186         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
13187
13188 2010-03-19  Bruno Haible  <bruno@clisp.org>
13189
13190         wctype: Provide iswblank function.
13191         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
13192         exists and is fine.
13193         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
13194         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
13195         * tests/test-wctype.c (main): Re-enable the iswblank tests.
13196         * doc/posix-functions/iswblank.texi: Update.
13197
13198 2010-03-19  Bruno Haible  <bruno@clisp.org>
13199
13200         Tests of module 'pty' in C++ mode.
13201         * modules/pty-tests: New file.
13202         * tests/test-pty-c++.cc: New file.
13203         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13204
13205 2010-03-19  Eric Blake  <eblake@redhat.com>
13206
13207         logb: fix documentation
13208         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
13209         1.5 declaration bug.
13210
13211         forkpty, openpty: prefer glibc's const-safe prototype
13212         * lib/forkpty.c (rpl_forkpty): New file.
13213         * lib/openpty.c (rpl_openpty): Likewise.
13214         * modules/forkpty (Files): Distribute it.
13215         * modules/openpty (Files): Likewise.
13216         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
13217         check...
13218         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
13219         replacement for for non-const BSD signature.
13220         * modules/pty (Makefile.am): Substitute witnesses.
13221         * lib/pty.in.h (forkpty, openpty): Declare replacements.
13222         * tests/test-forkpty.c: Update signature check.
13223         * tests/test-openpty.c: Likewise.
13224         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
13225         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13226
13227         forkpty, openpty: split functions into new modules
13228         * modules/pty (Makefile.am): Substitute new witnesses.
13229         (Libraries): Move library detection...
13230         * modules/forkpty: ...into new module.
13231         * modules/openpty: Another new module.
13232         * modules/pty-tests: Rename and split...
13233         * modules/forkpty-tests: ...to this...
13234         * modules/openpty-tests: ...and this.
13235         * tests/test-pty.c: Rename and split...
13236         * tests/test-forkpty.c: ...to this...
13237         * tests/test-openpty.c: ...and this.
13238         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
13239         (gl_PTY): Split library searching...
13240         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
13241         (gl_FORKPTY, gl_OPENPTY): New macros.
13242         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
13243         * NEWS: Mention the split.
13244         * MODULES.html.sh (Misc): Document the modules.
13245         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
13246         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13247
13248         pty: improve replacement header
13249         * lib/pty.in.h: New file.
13250         * modules/pty (Files): Ship it.
13251         (Makefile.am): Always build replacement.
13252         * m4/pty.m4: Rename...
13253         * m4/pty_h.m4: ...to this.
13254         (gl_PTY): Modernize setting of witness macros; update check of
13255         forkpty to take proper advantage of cache.
13256         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
13257
13258         getopt: avoid compiler warning
13259         * lib/getopt.c (attribute_hidden): Remove unused macro.
13260
13261 2010-03-18  Bruno Haible  <bruno@clisp.org>
13262
13263         Fix link errors on Solaris 8.
13264         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
13265         * modules/search-tests (test_search_c___LDADD): Likewise.
13266         * modules/signal-tests (test_signal_c___LDADD): Likewise.
13267         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
13268         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
13269         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
13270         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
13271         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
13272         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
13273
13274 2010-03-18  Bruno Haible  <bruno@clisp.org>
13275
13276         Fix bug introduced on 2010-03-14.
13277         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
13278         (gl_SPAWN_H): Require it.
13279         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
13280         Reported by Simon Josefsson.
13281
13282 2010-03-18  Bruno Haible  <bruno@clisp.org>
13283
13284         Fix typo introduced on 2009-12-31.
13285         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
13286         posix_spawn_file_actions_adddup2.
13287
13288 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
13289         and Eric Blake  <eblake@redhat.com>
13290
13291         test-vc-list-files-git: make more robust
13292         * tests/test-vc-list-files-git.sh: Unset problematic environment
13293         variables.  Chain commands together.
13294
13295 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
13296
13297         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
13298         `AC_CHECK_DECL' invocation.
13299
13300 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
13301
13302         * lib/inttostr.c (inttostr): Make sure the invocation of verify
13303         appears before executable statements. Suggested by Petr Sumbera
13304         <Petr.Sumbera@Sun.COM>.
13305
13306 2010-03-14  Bruno Haible  <bruno@clisp.org>
13307
13308         * tests/test-flock.c (test_exclusive): Comment out a test that causes
13309         portability problems. Instead use a simpler test.
13310         (main): Check that invalid arguments are rejected only on Linux.
13311
13312 2010-03-14  Bruno Haible  <bruno@clisp.org>
13313
13314         Fix bug introduced on 2009-12-31.
13315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13316         gl_PREREQ_SYS_H_WINSOCK2 always.
13317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13318         SYS_SOCKET_H variable.
13319         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
13320         Update comments.
13321         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
13322         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13323         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13324         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13325         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13326
13327 2010-03-14  Bruno Haible  <bruno@clisp.org>
13328
13329         Fix values returned by sinl, cosl.
13330         * lib/trigl.h: Add specification comments.
13331         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
13332         that combines the values from the precomputed table with the values of
13333         the Chebyshev polynomials.
13334
13335 2010-03-14  Bruno Haible  <bruno@clisp.org>
13336
13337         Fix compilation error when modules 'posix_spawn[p]' are not used.
13338         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13339         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13340
13341 2010-03-14  Bruno Haible  <bruno@clisp.org>
13342
13343         Fix compilation error on mingw when module 'time_r' is not used.
13344         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13345         is 1.
13346         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13347         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13348         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13349         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13350
13351 2010-03-14  Bruno Haible  <bruno@clisp.org>
13352
13353         Fix compilation error with Sun C.
13354         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13355         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13356         instead of GCC specific ULONG_LONG_MAX.
13357         * lib/xstrtoll.c: Likewise.
13358         * lib/xstrtoull.c: Likewise.
13359
13360 2010-03-13  Bruno Haible  <bruno@clisp.org>
13361
13362         Allow the user to disable C++ code and tests.
13363         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
13364         (gl_PROG_ANSI_CXX): Require it.
13365
13366 2010-03-13  Bruno Haible  <bruno@clisp.org>
13367
13368         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
13369         cases.
13370
13371 2010-03-13  Bruno Haible  <bruno@clisp.org>
13372
13373         Test that gnulib does not break the standard C++ headers.
13374         * tests/test-locale-c++2.cc: New file.
13375         * modules/locale-tests (Files): Add it.
13376         (Makefile.am): Compile it for test-locale-c++.
13377         * tests/test-math-c++2.cc: New file.
13378         * modules/math-tests (Files): Add it.
13379         (Makefile.am): Compile it for test-math-c++.
13380         * tests/test-signal-c++2.cc: New file.
13381         * modules/signal-tests (Files): Add it.
13382         (Makefile.am): Compile it for test-signal-c++.
13383         * tests/test-stdio-c++2.cc: New file.
13384         * modules/stdio-tests (Files): Add it.
13385         (Makefile.am): Compile it for test-stdio-c++.
13386         * tests/test-stdlib-c++2.cc: New file.
13387         * modules/stdlib-tests (Files): Add it.
13388         (Makefile.am): Compile it for test-stdlib-c++.
13389         * tests/test-string-c++2.cc: New file.
13390         * modules/string-tests (Files): Add it.
13391         (Makefile.am): Compile it for test-string-c++.
13392         * tests/test-time-c++2.cc: New file.
13393         * modules/time-tests (Files): Add it.
13394         (Makefile.am): Compile it for test-time-c++.
13395         Reported by John W. Eaton <jwe@gnu.org>.
13396
13397 2010-03-13  Bruno Haible  <bruno@clisp.org>
13398
13399         * gnulib-tool (func_usage): Clarify which options are available for
13400         --create-testdir and --create-megatestdir.
13401
13402 2010-03-13  Bruno Haible  <bruno@clisp.org>
13403
13404         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
13405         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
13406         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
13407         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13408         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
13409         when appropriate.
13410         Reported by Jim Meyering.
13411
13412 2010-03-12  Simon Josefsson  <simon@josefsson.org>
13413
13414         * gnulib-tool (func_import): Explain origin of code.
13415
13416 2010-03-12  Bruno Haible  <bruno@clisp.org>
13417
13418         Fix problem with automake's definition of CXXLINK.
13419         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
13420         Reported by Simon Josefsson and Ludovic Courtès.
13421
13422 2010-03-12  Bruno Haible  <bruno@clisp.org>
13423
13424         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
13425         stable releases.
13426
13427 2010-03-11  Bruno Haible  <bruno@clisp.org>
13428
13429         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
13430         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
13431         whether the system provides one variant or multiple variants of the
13432         function.
13433         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
13434         C++ compilers.
13435         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
13436         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
13437         Reported by Jim Meyering.
13438
13439 2010-03-09  Simon Josefsson  <simon@josefsson.org>
13440
13441         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
13442
13443 2010-03-08  Bruno Haible  <bruno@clisp.org>
13444
13445         gnulib-tool: Add support for --libtool in --create-testdir.
13446         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
13447         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
13448
13449 2010-03-08  Eric Blake  <eblake@redhat.com>
13450
13451         gnulib-tool.texi: mention possibility of git submodule
13452         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
13453         submodules.
13454         * doc/.gitignore: Ignore another generated file.
13455
13456 2010-03-08  Karl Berry  <karl@gnu.org>
13457
13458         * doc/gnulib-tool.texi (VCS Issues): Mention third option
13459         of committing gnulib files while skipping others.
13460
13461 2010-03-07  Bruno Haible  <bruno@clisp.org>
13462
13463         Tests of module 'wctype' in C++ mode.
13464         * tests/test-wctype-c++.cc: New file.
13465         * modules/wctype-tests (Files): Add it and tests/signature.h.
13466         (Depends-on): Add ansi-c++-opt.
13467         (Makefile.am): Arrange to compile and run test-wctype-c++.
13468
13469         Tests of module 'wchar' in C++ mode.
13470         * tests/test-wchar-c++.cc: New file.
13471         * modules/wchar-tests (Files): Add it and tests/signature.h.
13472         (Depends-on): Add ansi-c++-opt.
13473         (Makefile.am): Arrange to compile and run test-wchar-c++.
13474         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13475         gl_MODULE_INDICATOR.
13476
13477         Tests of module 'unistd' in C++ mode.
13478         * tests/test-unistd-c++.cc: New file.
13479         * modules/unistd-tests (Files): Add it and tests/signature.h.
13480         (Depends-on): Add ansi-c++-opt.
13481         (Makefile.am): Arrange to compile and run test-unistd-c++.
13482         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13483         gl_MODULE_INDICATOR.
13484
13485         Tests of module 'time' in C++ mode.
13486         * tests/test-time-c++.cc: New file.
13487         * modules/time-tests (Files): Add it and tests/signature.h.
13488         (Depends-on): Add ansi-c++-opt.
13489         (Makefile.am): Arrange to compile and run test-time-c++.
13490         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13491
13492         Tests of module 'sys_time' in C++ mode.
13493         * tests/test-sys_time-c++.cc: New file.
13494         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13495         (Depends-on): Add ansi-c++-opt.
13496         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13497         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13498         gl_MODULE_INDICATOR.
13499
13500         Tests of module 'sys_stat' in C++ mode.
13501         * tests/test-sys_stat-c++.cc: New file.
13502         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13503         (Depends-on): Add ansi-c++-opt.
13504         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13505         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13506         gl_MODULE_INDICATOR.
13507
13508         Tests of module 'sys_socket' in C++ mode.
13509         * tests/test-sys_socket-c++.cc: New file.
13510         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
13511         (Depends-on): Add ansi-c++-opt.
13512         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
13513         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
13514         gl_MODULE_INDICATOR.
13515
13516         Tests of module 'sys_select' in C++ mode.
13517         * tests/test-sys_select-c++.cc: New file.
13518         * modules/sys_select-tests (Files): Add it and tests/signature.h.
13519         (Depends-on): Add ansi-c++-opt.
13520         (Makefile.am): Arrange to compile and run test-sys_select-c++.
13521         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
13522         gl_MODULE_INDICATOR.
13523
13524         Tests of module 'sys_ioctl' in C++ mode.
13525         * tests/test-sys_ioctl-c++.cc: New file.
13526         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
13527         (Depends-on): Add ansi-c++-opt.
13528         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
13529         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
13530         gl_MODULE_INDICATOR.
13531
13532         Tests of module 'string' in C++ mode.
13533         * tests/test-string-c++.cc: New file.
13534         * modules/string-tests (Files): Add it and tests/signature.h.
13535         (Depends-on): Add ansi-c++-opt.
13536         (Makefile.am): Arrange to compile and run test-string-c++.
13537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
13538         gl_MODULE_INDICATOR.
13539
13540         Tests of module 'stdlib' in C++ mode.
13541         * tests/test-stdlib-c++.cc: New file.
13542         * modules/stdlib-tests (Files): Add it and tests/signature.h.
13543         (Depends-on): Add ansi-c++-opt.
13544         (Makefile.am): Arrange to compile and run test-stdlib-c++.
13545         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
13546         gl_MODULE_INDICATOR.
13547
13548         Tests of module 'stdio' in C++ mode.
13549         * tests/test-stdio-c++.cc: New file.
13550         * modules/stdio-tests (Files): Add it and tests/signature.h.
13551         (Depends-on): Add ansi-c++-opt.
13552         (Makefile.am): Arrange to compile and run test-stdio-c++.
13553         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
13554         gl_MODULE_INDICATOR.
13555
13556         Tests of module 'spawn' in C++ mode.
13557         * tests/test-spawn-c++.cc: New file.
13558         * modules/spawn-tests (Files): Add it and tests/signature.h.
13559         (Depends-on): Add ansi-c++-opt.
13560         (Makefile.am): Arrange to compile and run test-spawn-c++.
13561         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
13562         gl_MODULE_INDICATOR.
13563
13564         Tests of module 'signal' in C++ mode.
13565         * tests/test-signal-c++.cc: New file.
13566         * modules/signal-tests (Files): Add it and tests/signature.h.
13567         (Depends-on): Add ansi-c++-opt.
13568         (Makefile.am): Arrange to compile and run test-signal-c++.
13569         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
13570         gl_MODULE_INDICATOR.
13571
13572         Tests of module 'search' in C++ mode.
13573         * tests/test-search-c++.cc: New file.
13574         * modules/search-tests (Files): Add it and tests/signature.h.
13575         (Depends-on): Add ansi-c++-opt.
13576         (Makefile.am): Arrange to compile and run test-search-c++.
13577         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
13578         gl_MODULE_INDICATOR.
13579
13580         Tests of module 'math' in C++ mode.
13581         * tests/test-math-c++.cc: New file.
13582         * modules/math-tests (Files): Add it and tests/signature.h.
13583         (Depends-on): Add ansi-c++-opt.
13584         (Makefile.am): Arrange to compile and run test-math-c++.
13585         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13586
13587         Tests of module 'locale' in C++ mode.
13588         * tests/test-locale-c++.cc: New file.
13589         * modules/locale-tests (Files): Add it and tests/signature.h.
13590         (Depends-on): Add ansi-c++-opt.
13591         (Makefile.am): Arrange to compile and run test-locale-c++.
13592         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
13593         gl_MODULE_INDICATOR.
13594
13595         Tests of module 'langinfo' in C++ mode.
13596         * tests/test-langinfo-c++.cc: New file.
13597         * modules/langinfo-tests (Files): Add it and tests/signature.h.
13598         (Depends-on): Add ansi-c++-opt.
13599         (Makefile.am): Arrange to compile and run test-langinfo-c++.
13600         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
13601         gl_MODULE_INDICATOR.
13602
13603         Tests of module 'iconv-h' in C++ mode.
13604         * tests/test-iconv-h-c++.cc: New file.
13605         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
13606         (Depends-on): Add ansi-c++-opt.
13607         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
13608
13609         Tests of module 'glob' in C++ mode.
13610         * tests/test-glob-c++.cc: New file.
13611         * modules/glob-tests (Files): Add it.
13612         (Depends-on): Add ansi-c++-opt.
13613         (Makefile.am): Arrange to compile and run test-glob-c++.
13614
13615         Tests of module 'fcntl-h' in C++ mode.
13616         * tests/test-fcntl-h-c++.cc: New file.
13617         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
13618         (Depends-on): Add ansi-c++-opt.
13619         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
13620         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
13621         gl_MODULE_INDICATOR.
13622
13623         Tests of module 'dirent' in C++ mode.
13624         * tests/test-dirent-c++.cc: New file.
13625         * modules/dirent-tests (Files): Add it and tests/signature.h.
13626         (Depends-on): Add ansi-c++-opt.
13627         (Makefile.am): Arrange to compile and run test-dirent-c++.
13628         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13629         gl_MODULE_INDICATOR.
13630
13631         New module 'ansi-c++-opt'.
13632         * modules/ansi-c++-opt: New file.
13633         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
13634
13635         Document C++ namespace mode.
13636         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
13637
13638         wctype: Avoid #define replacements in C++ mode.
13639         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
13640         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
13641         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
13642         In C++, define a namespaced alias symbol.
13643         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
13644         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
13645         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
13646         rule.
13647
13648         wchar: Avoid #define replacements in C++ mode.
13649         * lib/wchar.in.h: Include c++defs.h.
13650         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
13651         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
13652         symbol.
13653         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
13654         * modules/wchar (Depends-on): Add c++defs.
13655         (Makefile.am): Update wchar.h rule.
13656
13657         unistd: Avoid #define replacements in C++ mode.
13658         * lib/unistd.in.h: Include c++defs.h.
13659         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
13660         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
13661         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
13662         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
13663         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
13664         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
13665         symbol.
13666         (environ): Update.
13667         * modules/unistd (Depends-on): Add c++defs.
13668         (Makefile.am): Update unistd.h rule.
13669
13670         time: Avoid #define replacements in C++ mode.
13671         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
13672         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
13673         define a namespaced alias symbol.
13674         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
13675         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
13676         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
13677         * modules/time (Depends-on): Add c++defs, warn-on-use.
13678         (Makefile.am): Update time.h rule.
13679         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13680         * modules/nanosleep (configure.ac): Likewise.
13681         * modules/strptime (configure.ac): Likewise.
13682         * modules/timegm (configure.ac): Likewise.
13683
13684         sys_time: Avoid #define replacements in C++ mode.
13685         * lib/sys_time.in.h: Include c++defs.h.
13686         (gettimeofday): In C++, define a namespaced alias symbol.
13687         * modules/sys_time (Depends-on): Add c++defs.
13688         (Makefile.am): Update sys/time.h rule.
13689
13690         sys_stat: Avoid #define replacements in C++ mode.
13691         * lib/sys_stat.in.h: Include c++defs.h.
13692         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
13693         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
13694         namespaced alias symbol.
13695         In C++, define a namespaced alias symbol.
13696         * modules/sys_stat (Depends-on): Add c++defs.
13697         (Makefile.am): Update sys/stat.h rule.
13698
13699         sys_socket: Avoid #define replacements in C++ mode.
13700         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
13701         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
13702         definitions also when the system has a <sys/socket.h>.
13703         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13704         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
13705         In C++, define a namespaced alias symbol.
13706         * modules/sys_socket (Depends-on): Add c++defs.
13707         (Makefile.am): Update sys/socket.h rule.
13708
13709         sys_select: Avoid #define replacements in C++ mode.
13710         * lib/sys_select.in.h: Include c++defs.h. Enable the function
13711         definitions also when the system has a <sys/select.h>.
13712         (select): In C++, define a namespaced alias symbol.
13713         * modules/sys_select (Depends-on): Add c++defs.
13714         (Makefile.am): Update sys/select.h rule.
13715
13716         sys_ioctl: Avoid #define replacements in C++ mode.
13717         * lib/sys_ioctl.in.h: Include c++defs.h.
13718         (ioctl): In C++, define a namespaced alias symbol.
13719         * modules/sys_ioctl (Depends-on): Add c++defs.
13720         (Makefile.am): Update sys/ioctl.h rule.
13721
13722         string: Avoid #define replacements in C++ mode.
13723         * lib/string.in.h: Include c++defs.h.
13724         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
13725         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13726         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13727         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
13728         strsignal, strverscmp): In C++, define a namespaced alias symbol.
13729         * modules/string (Depends-on): Add c++defs.
13730         (Makefile.am): Update string.h rule.
13731
13732         stdlib: Avoid #define replacements in C++ mode.
13733         * lib/stdlib.in.h: Include c++defs.h.
13734         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
13735         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
13736         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
13737         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
13738         symbol.
13739         * modules/stdlib (Depends-on): Add c++defs.
13740         (Makefile.am): Update stdlib.h rule.
13741
13742         stdio: Avoid #define replacements in C++ mode.
13743         * lib/stdio.in.h: Include c++defs.h.
13744         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
13745         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
13746         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
13747         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
13748         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
13749         namespaced alias symbol.
13750         * modules/stdio (Depends-on): Add c++defs.
13751         (Makefile.am): Update stdio.h rule.
13752
13753         spawn: Avoid #define replacements in C++ mode.
13754         * lib/spawn.in.h: Include c++defs.h.
13755         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13756         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13757         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13758         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13759         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13760         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13761         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13762         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13763         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13764         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13765         In C++, define a namespaced alias symbol.
13766         * modules/spawn (Depends-on): Add c++defs.
13767         (Makefile.am): Update spawn.h rule.
13768
13769         signal: Avoid #define replacements in C++ mode.
13770         * lib/signal.in.h: Include c++defs.h.
13771         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13772         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
13773         namespaced alias symbol.
13774         * modules/signal (Depends-on): Add c++defs.
13775         (Makefile.am): Update signal.h rule.
13776
13777         search: Avoid #define replacements in C++ mode.
13778         * lib/search.in.h: Include c++defs.h.
13779         (_gl_search_compar_fn, _gl_search_action_fn): New types.
13780         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
13781         symbol.
13782         * modules/search (Depends-on): Add c++defs.
13783         (Makefile.am): Update search.h rule.
13784
13785         math: Avoid #define replacements in C++ mode.
13786         * lib/math.in.h: Include c++defs.h.
13787         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
13788         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
13789         trunc, truncl): In C++, define a namespaced alias symbol.
13790         * modules/math (Depends-on): Add c++defs.
13791         (Makefile.am): Update math.h rule.
13792
13793         locale: Avoid #define replacements in C++ mode.
13794         * lib/locale.in.h: Include c++defs.h.
13795         (duplocale): In C++, define a namespaced alias symbol.
13796         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
13797         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
13798         * modules/locale (Depends-on): Add c++defs.
13799         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
13800
13801         langinfo: Avoid #define replacements in C++ mode.
13802         * lib/langinfo.in.h: Include c++defs.h.
13803         (nl_langinfo): In C++, define a namespaced alias symbol.
13804         * modules/langinfo (Depends-on): Add c++defs.
13805         (Makefile.am): Update langinfo.h rule.
13806
13807         iconv-h: Avoid #define replacements in C++ mode.
13808         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
13809         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
13810         symbol.
13811         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
13812         whenever iconv is present.
13813         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
13814         (Makefile.am): Update iconv.h rule.
13815
13816         glob: Avoid #define replacements in C++ mode.
13817         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
13818         (_gl_glob_errfunc_fn): New type.
13819         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
13820         symbol.
13821         * modules/glob (Depends-on): Add c++defs, warn-on-use.
13822         (Makefile.am): Update glob.h rule.
13823
13824         fcntl-h: Avoid #define replacements in C++ mode.
13825         * lib/fcntl.in.h: Include c++defs.h.
13826         (fcntl, open, openat): In C++, define a namespaced alias symbol.
13827         * modules/fcntl-h (Depends-on): Add c++defs.
13828         (Makefile.am): Update fcntl.h rule.
13829
13830         dirent: Avoid #define replacements in C++ mode.
13831         * lib/dirent.in.h: Include c++defs.h.
13832         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
13833         namespaced alias symbol.
13834         (dirfd): Update declaration.
13835         * modules/dirent (Depends-on): Add c++defs.
13836         (Makefile.am): Update dirent.h rule.
13837
13838         ctype: Make it usable in C++ code.
13839         * lib/ctype.in.h: Include c++defs.h.
13840         (isblank): Declare as extern "C".
13841         * modules/ctype (Depends-on): Add c++defs.
13842         (Makefile.am): Update ctype.h rule.
13843
13844         New module 'c++defs'.
13845         * modules/c++defs: New file.
13846         * build-aux/c++defs.h: New file.
13847         Reported by John W. Eaton <jwe@gnu.org>.
13848
13849 2010-03-07  Bruno Haible  <bruno@clisp.org>
13850
13851         logb: Provide missing declaration for Cygwin.
13852         * lib/math.in.h (logb): New declaration.
13853         * m4/logb.m4: New file.
13854         * modules/logb (Files): Add m4/logb.m4.
13855         (Depends-on): Add math.
13856         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
13857         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
13858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
13859         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
13860         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
13861
13862 2010-03-07  Bruno Haible  <bruno@clisp.org>
13863
13864         Fix test-cond link error.
13865         * tests/test-cond.c: Include <stdio.h>.
13866
13867 2010-03-07  Bruno Haible  <bruno@clisp.org>
13868
13869         Fix test-dirent-safer link error.
13870         * modules/dirent-safer-tests (Makefile.am): Define
13871         test_dirent_safer_LDADD.
13872
13873 2010-03-07  Bruno Haible  <bruno@clisp.org>
13874
13875         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
13876         among default module list.
13877
13878 2010-03-07  Bruno Haible  <bruno@clisp.org>
13879
13880         Fix link error on platforms with GNU libiconv.
13881         * modules/unistr/u8-strcoll-tests (Makefile): Define
13882         test_u8_strcoll_LDADD.
13883         * modules/unistr/u16-strcoll-tests (Makefile): Define
13884         test_u16_strcoll_LDADD.
13885         * modules/unistr/u32-strcoll-tests (Makefile): Define
13886         test_u32_strcoll_LDADD.
13887
13888 2010-03-07  Bruno Haible  <bruno@clisp.org>
13889
13890         Use POSIX declarations for socket functions.
13891         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
13892         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
13893         rpl_sendto): Change declaration to match POSIX.
13894         * lib/connect.c (rpl_connect): Likewise.
13895         * lib/accept.c (rpl_accept): Likewise.
13896         * lib/bind.c (rpl_bind): Likewise.
13897         * lib/getpeername.c (rpl_getpeername): Likewise.
13898         * lib/getsockname.c (rpl_getsockname): Likewise.
13899         * lib/recv.c (rpl_recv): Likewise.
13900         * lib/send.c (rpl_send): Likewise.
13901         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13902         * lib/sendto.c (rpl_sendto): Likewise.
13903
13904 2010-03-06  Bruno Haible  <bruno@clisp.org>
13905
13906         Clarify access, euidaccess, faccessat.
13907         * doc/posix-functions/faccessat.texi: Mention security problem under
13908         "Other problems", not "Portability problems".
13909         * doc/posix-functions/access.texi: Likewise. Mention a related security
13910         problem.
13911         * doc/glibc-functions/euidaccess.texi: Mention security problems.
13912         * lib/euidaccess.c: Add comments about platforms.
13913         * lib/unistd.in.h (access, euidaccess): Add warnings.
13914
13915 2010-03-07  Bruno Haible  <bruno@clisp.org>
13916
13917         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
13918         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
13919         (POSIX_SPAWN_SETSCHEDULER): Likewise.
13920         (POSIX_SPAWN_USEVFORK): Define in a way that works when
13921         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13922         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
13923         declare when POSIX_SPAWN_SETSCHEDULER is zero.
13924         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
13925         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
13926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
13927         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
13928         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
13929         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
13930         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
13931         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
13932         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
13933         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
13934         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
13935         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
13936         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
13937         Likewise.
13938         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
13939         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
13940         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
13941         Likewise.
13942         * tests/test-spawn.c (main): Make it work when
13943         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13944
13945 2010-03-07  Bruno Haible  <bruno@clisp.org>
13946
13947         Fix incorrect Makefile.am generation in German locale.
13948         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13949         Execute sed command with character range in C locale.
13950
13951 2010-03-06  Bruno Haible  <bruno@clisp.org>
13952
13953         Tests for module 'iconv-h'.
13954         * modules/iconv-h-tests: New file.
13955         * tests/test-iconv-h.c: New file.
13956
13957         New module 'iconv-h'.
13958         * modules/iconv-h: New file.
13959         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
13960         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
13961         (configure.ac): Remove gl_ICONV_H.
13962         (Makefile.am): Remove rule for iconv.h.
13963
13964 2010-03-06  Bruno Haible  <bruno@clisp.org>
13965
13966         More consistent naming of *.m4 files.
13967         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
13968         * modules/wctype (Files): Update.
13969
13970         More consistent naming of *.m4 files.
13971         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
13972         * modules/wchar (Files): Update.
13973
13974 2010-03-06  Jim Meyering  <meyering@redhat.com>
13975
13976         euidaccess: relax license to LGPLv2+
13977         * modules/euidaccess (License): Relax to LGPLv2+.
13978
13979 2010-03-06  Bruno Haible  <bruno@clisp.org>
13980
13981         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
13982         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
13983         (Makefile.am): Augment lib_SOURCES instead.
13984
13985 2010-03-04  Jim Meyering  <meyering@redhat.com>
13986
13987         utime: remove obsolete module
13988         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
13989         unnecessary for years, and has been marked as obsolete for 10 months.
13990         * modules/utime: Remove file.
13991         * lib/utime.c: Remove file.
13992         * m4/utime.m4: Remove file.
13993         * m4/utimes-null.m4: Remove file.
13994         * doc/posix-functions/utime.texi (utime): Remove reference to
13995         the module.  Move the sole "fixed by gnulib" item into the
13996         "problems not fixed by Gnulib" list.
13997         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
13998
13999 2010-03-05  Simon Josefsson  <simon@josefsson.org>
14000
14001         * modules/exit (License): Relax license to LGPLv2+.
14002         (Status): Mark as obsolete.
14003         * NEWS: Mention deprecated 'exit' module.
14004         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
14005         of now obsolete 'exit'.
14006
14007 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14008
14009         fts-lgpl: remove unused module
14010         * modules/fts-lgpl: Remove.
14011         * MODULES.html.sh (func_all_modules): Adjust.
14012         * check-module (find_included_lib_files): Adjust.
14013         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
14014
14015 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
14016
14017         copy-acl: enhance Solaris ACL error handling
14018         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
14019         * lib/set-mode-acl.c (qset_acl): Likewise.
14020
14021 2010-03-02  Bruno Haible  <bruno@clisp.org>
14022
14023         spawn: Don't override the system defined values on FreeBSD 8.
14024         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
14025         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
14026         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
14027         if HAVE_POSIX_SPAWN is 1.
14028         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
14029
14030 2010-03-01  Bruno Haible  <bruno@clisp.org>
14031
14032         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
14033         regarding Automake.
14034
14035 2010-02-25  Bruno Haible  <bruno@clisp.org>
14036
14037         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
14038         * gnulib-tool: Define 'echo' as a function only before the ksh alias
14039         setting, not afterwards.
14040         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
14041
14042 2010-02-24  Eric Blake  <eblake@redhat.com>
14043
14044         bootstrap, git-version-gen: use timestamp
14045         * build-aux/git-version-gen (scriptversion): Force UTC.
14046         * build-aux/bootstrap (scriptversion): New variable.
14047
14048         bootstrap: allow older git
14049         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
14050         older than 1.6.4.  Requested by the libvirt project.
14051
14052 2010-02-23  Eric Blake  <eblake@redhat.com>
14053
14054         warn-on-use: work with old autoconf
14055         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
14056         AS_VAR semantics of autoconf 2.60.
14057         Reported by Bruno Haible.
14058
14059         bootstrap: improve some comments
14060         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
14061         clarification comments.
14062
14063         gettimeofday: provide correct function
14064         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
14065         when replacement is declared, otherwise provide gettimeofday.
14066         Reported by Michael Goffioul.
14067
14068 2010-02-23  Jim Meyering  <meyering@redhat.com>
14069
14070         lib-ignore: relax license to "unlimited", not LGPLv2+
14071         * modules/lib-ignore (License): Relax to "unlimited".
14072
14073 2010-02-23  Jim Meyering  <meyering@redhat.com>
14074
14075         lib-ignore: relax license to LGPLv2+
14076         * modules/lib-ignore (License): Relax to LGPLv2+.
14077
14078 2010-02-22  Eric Blake  <eblake@redhat.com>
14079
14080         lseek: avoid bash 3.2 broken pipe bug
14081         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
14082         warning from bash 3.2.
14083         Reported by Ben Pfaff, with analysis from Bruno Haible.
14084
14085         bootstrap: support non-FSF copyright holder
14086         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
14087         bootstrap.conf override of COPYRIGHT_HOLDER.
14088         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
14089
14090         bootstrap: interoperate with gettext 0.14.1
14091         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
14092
14093         bootstrap: allow for alternate submodule location
14094         * build-aux/bootstrap (gnulib_path): New variable; use instead of
14095         hardcoding submodule location.
14096         (gnulib_mk): Allow direct use of Makefile.am.
14097
14098         bootstrap: use GNULIB_SRCDIR to reduce disk usage
14099         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
14100         rather than reconfiguring where the submodule points.
14101
14102         gettimeofday: restore support for platforms that lack function
14103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
14104         replacement if function is missing.
14105         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
14106         * modules/sys_time (Makefile.am): Substitute it.
14107         * lib/sys_time.in.h (gettimeofday): Check it.
14108         Reported by Michael Goffioul.
14109
14110 2010-02-21  Bruno Haible  <bruno@clisp.org>
14111
14112         * lib/stdio.in.h (obstack_printf): Fix typo.
14113
14114 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
14115
14116         vc-list-files: use bzr ls's -R option
14117         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
14118         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
14119
14120 2010-02-21  Jim Meyering  <meyering@redhat.com>
14121
14122         init.sh: fix EXEEXT shims to work also for names like test-prog
14123         * tests/init.sh: Re-exec a better shell, when needed.
14124         If the current shell lacks support for posix $(...), an init.sh-using
14125         test will now try to find a shell that supports that.  If EXEEXT is
14126         nonempty, we also require support for hyphen-in-alias-name and shell
14127         substitutions like ${var#glob}.  Failure to find such a shell results
14128         in a skipped test.
14129
14130 2010-02-21  Bruno Haible  <bruno@clisp.org>
14131
14132         Really work around around "broken pipe" error message from bash 3.2.
14133         * gnulib-tool (func_reset_sigpipe): Remove function.
14134         (echo): In bash 3.2, define to a function that uses printf.
14135         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
14136
14137 2010-02-20  Bruno Haible  <bruno@clisp.org>
14138
14139         Restore support for automake 1.9.6 with autoconf 2.61.
14140         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
14141         Reported by James Youngman <jay@gnu.org>.
14142
14143 2010-02-20  Bruno Haible  <bruno@clisp.org>
14144
14145         Improve *printf warning condition.
14146         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
14147         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
14148         and the function is overridden due to SIGPIPE emulation.
14149
14150 2010-02-20  Bruno Haible  <bruno@clisp.org>
14151
14152         * lib/stdio.in.h: Tweak comments.
14153
14154 2010-02-19  Bruno Haible  <bruno@clisp.org>
14155
14156         Make it easier to find modules. New gnulib-tool option '--find'.
14157         * gnulib-tool: New option --find.
14158         (func_usage): Document it.
14159         (func_sanitize_modulelist): New function, extracted from
14160         func_all_modules.
14161         (func_all_modules): Invoke it.
14162         * doc/gnulib-tool.texi (Which modules?): New node.
14163
14164 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
14165
14166         * lib/sys_select.in.h: Provide select replacement even if
14167         sys/select.h exists on a system, for Interix.
14168
14169 2010-02-18  Jim Meyering  <meyering@redhat.com>
14170
14171         init.sh: don't use $(...) just yet
14172         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
14173         to accommodate e.g., Solaris' /bin/sh.
14174
14175 2010-02-17  Bruno Haible  <bruno@clisp.org>
14176
14177         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
14178         Reported by Ludovic Courtès <ludo@gnu.org>.
14179
14180 2010-02-16  Simon Josefsson  <simon@josefsson.org>
14181
14182         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
14183         linking with -lintl.
14184
14185 2010-02-17  Simon Josefsson  <simon@josefsson.org>
14186
14187         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14188         if not provided by the system's netdb.h.  Reported by
14189         ludo@gnu.org (Ludovic Courtès).
14190
14191 2010-02-15  Jim Meyering  <meyering@redhat.com>
14192
14193         init.sh: improve portability and efficiency
14194         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
14195         "dummy" in a for loop.
14196         Use '!', not '^' to select the complement of a character set used
14197         in a "case" statement.
14198         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
14199         Suggestions from Eric Blake.
14200
14201         init.sh: automatically accommodate programs with the .exe suffix
14202         Automatically arrange for an invocation of "prog" to execute the
14203         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
14204         may use the simpler "prog", yet still work when built on a system
14205         that requires specifying the added suffix.
14206         Do this by constructing a function named "prog" that invokes
14207         "prog.exe" for each .exe file in selected directories.
14208         * tests/init.sh (find_exe_basenames_): New function.
14209         (create_exe_shim_functions_): New function.
14210         (path_prepend_): Use it.
14211
14212         maint.mk: mark syntax-check sc_*.m rules as .PHONY
14213         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
14214         "make -t syntax-check" doesn't create a ton of sc_*.m files.
14215
14216 2010-02-14  Jim Meyering  <meyering@redhat.com>
14217
14218         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
14219         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
14220         (sc_prohibit_hash_pjw_without_use): New rule.
14221
14222         maint.mk: allow the default upload destination dir to be overridden
14223         * top/maint.mk (upload_dest_dir_): Define with a default that
14224         preserves the status quo.
14225         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
14226         Reported by Peter Simons.
14227
14228         maint.mk: prohibit inclusion of "hash.h" without_use
14229         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
14230
14231 2010-02-10  Jim Meyering  <meyering@redhat.com>
14232
14233         maint.mk: prohibit inclusion of "ignore-value.h" without_use
14234         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
14235
14236 2010-02-09  Eric Blake  <ebb9@byu.net>
14237         and Bruno Haible  <bruno@clisp.org>
14238
14239         obstack-printf-posix: ensure declaration
14240         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
14241         extracted from gl_FUNC_OBSTACK_PRINTF.
14242         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
14243         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14244         Likewise.
14245         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
14246         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
14247         0.
14248
14249 2010-02-08  Bruno Haible  <bruno@clisp.org>
14250
14251         gnulib-tool: Fix typo in 2010-02-07 commit.
14252         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
14253         Reported by Eric Blake.
14254
14255 2010-02-07  Bruno Haible  <bruno@clisp.org>
14256
14257         gnulib-tool: Fix up caching patches.
14258         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
14259         option --no-cache. Use associative arrays when supported by the shell.
14260         (sed_comments): New variable.
14261         (modcache): Renamed from do_cache.
14262         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
14263         abbreviate unnecessarily.
14264         (have_associative): New variable.
14265         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
14266         way also for ksh and zsh.
14267         (func_init_sed_convert_to_cache_statements): New function, extracted
14268         from func_cache_lookup_module. Add support for associative arrays.
14269         Don't set the c_MODULE_cached variable here. Ignore all lines before
14270         the first field header. Remove only the final newline, not all trailing
14271         newlines. Support empty fields correctly. Limit the use of 'eval' to
14272         assignments.
14273         (func_get_description, func_get_status, func_get_notice,
14274         func_get_applicability, func_get_filelist, func_get_dependencies,
14275         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
14276         func_get_automake_snippet, func_get_include_directive,
14277         func_get_link_directive, func_get_license, func_get_maintainer):
14278         Update documentation. List the unoptimized code first. Add support for
14279         associative arrays. Limit the use of 'eval' to assignments.
14280         (func_get_applicability): Undo stylistic pessimisations.
14281         (func_get_automake_snippet, func_get_include_directive): Reduce code
14282         duplication.
14283         (func_modules_transitive_closure, func_modules_add_dummy,
14284         func_modules_notice, func_modules_to_filelist, func_add_file,
14285         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
14286         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
14287         func_create_testdir, func_create_megatestdir): Update documentation.
14288
14289 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14290
14291         * gnulib-tool (func_cache_lookup_module): Store the module name
14292         belonging to the cache variable; error out if two different
14293         module names map to the same cache variable name.
14294
14295 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14296
14297         gnulib-tool: Make caching optional.
14298         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
14299         Update matching short versions of --no-changelog.
14300         (func_usage): Update.
14301         (sed_extract_cache_prog): Renamed from ...
14302         (sed_extract_prog): ... this; revert to old extraction script.
14303         (func_get_description, func_get_status)
14304         (func_get_notice, func_get_applicability, func_get_filelist)
14305         (func_get_dependencies, func_get_autoconf_early_snippet)
14306         (func_get_autoconf_snippet, func_get_automake_snippet)
14307         (func_get_include_directive, func_get_link_directive)
14308         (func_get_license, func_get_maintainer): If $do_cache is false,
14309         use old, non-caching extraction scripts.
14310         Suggestion by Bruno Haible.
14311
14312 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14313
14314         gnulib-tool: cache module metainformation.
14315         * gnulib-tool (sed_extract_prog): Match newline before each
14316         header, and rewrite header to a shell variable suffix.
14317         (func_cache_var, func_cache_lookup_module): New functions,
14318         to turn a module name into a cache variable prefix, and to
14319         look up and cache module metainformation.
14320         (func_get_description, func_get_status)
14321         (func_get_notice, func_get_applicability, func_get_filelist)
14322         (func_get_dependencies, func_get_autoconf_early_snippet)
14323         (func_get_autoconf_snippet, func_get_automake_snippet)
14324         (func_get_include_directive, func_get_link_directive)
14325         (func_get_license, func_get_maintainer): Use
14326         func_cache_lookup_module.
14327
14328 2010-02-07  Bruno Haible  <bruno@clisp.org>
14329
14330         fnctl: Fix missing dependency.
14331         * modules/fcntl (Depends-on): Add getdtablesize.
14332         Reported by John W. Eaton <jwe@gnu.org>.
14333
14334 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14335
14336         Argp: fix recognition of short alias options.
14337
14338         * lib/argp-parse.c (convert_options): Fix improper use of
14339         `|' between character values.
14340         * tests/test-argp.c (group1_option): New alias option
14341         --read (-r).
14342         (group1_parser): Special handling for 'r'.
14343         (test15): New test case.
14344         (test_fun): Add test15.
14345         * tests/test-argp-2.sh: Update expected --help and --usage
14346         outputs.
14347
14348 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14349
14350         * tests/test-argp.c: Fix indentation.
14351
14352 2010-02-04  Eric Blake  <ebb9@byu.net>
14353
14354         gettimeofday: expose type of second argument
14355         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14356         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14357         * tests/test-gettimeofday.c: Use it to silence warning.
14358         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
14359         the issue.
14360
14361 2010-02-03  Jim Meyering  <meyering@redhat.com>
14362
14363         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
14364         * lib/regcomp.c (TYPE_SIGNED): Define.
14365         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
14366
14367         regcomp.c: avoid a new -Wshadow warning
14368         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
14369
14370 2010-02-01  Jim Meyering  <meyering@redhat.com>
14371
14372         removing useless parentheses in cpp #define directives
14373         For motivation, see commit c0221df4, "define STREQ(a,b)
14374         consistently, removing useless parentheses"
14375         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
14376         * lib/mountlist.c (MNT_IGNORE): Likewise.
14377         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
14378
14379 2010-02-01  Eric Blake  <ebb9@byu.net>
14380
14381         sys_time: use link-warning
14382         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
14383         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
14384         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
14385         * modules/sys_time (Depends-on): Add warn-on-use.
14386         (Makefile.am): Always build replacement.
14387         (configure.ac): Update substitutions.
14388         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
14389         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
14390         bother with SYS_TIME_H.
14391         * modules/gettimeofday (configure.ac): Declare indicator.
14392         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
14393         in use.
14394
14395         closein-tests: silence compiler warning
14396         * tests/test-closein.c (main): Ignore fread result.
14397         * modules/closein-tests (Depends-on): Add ignore-value.
14398
14399         tests: silence warning about system return
14400         * tests/test-areadlink-with-size.c (main): Ignore system result.
14401         * tests/test-areadlink.c (main): Likewise.
14402         * tests/test-areadlinkat-with-size.c (main): Likewise.
14403         * tests/test-areadlinkat.c (main): Likewise.
14404         * tests/test-canonicalize-lgpl.c (main): Likewise.
14405         * tests/test-canonicalize.c (main): Likewise.
14406         * tests/test-chown.c (main): Likewise.
14407         * tests/test-fchownat.c (main): Likewise.
14408         * tests/test-fdutimensat.c (main): Likewise.
14409         * tests/test-fstatat.c (main): Likewise.
14410         * tests/test-futimens.c (main): Likewise.
14411         * tests/test-lchown.c (main): Likewise.
14412         * tests/test-link.c (main): Likewise.
14413         * tests/test-linkat.c (main): Likewise.
14414         * tests/test-lstat.c (main): Likewise.
14415         * tests/test-mkdir.c (main): Likewise.
14416         * tests/test-mkdirat.c (main): Likewise.
14417         * tests/test-mkfifo.c (main): Likewise.
14418         * tests/test-mkfifoat.c (main): Likewise.
14419         * tests/test-mknod.c (main): Likewise.
14420         * tests/test-readlink.c (main): Likewise.
14421         * tests/test-remove.c (main): Likewise.
14422         * tests/test-rename.c (main): Likewise.
14423         * tests/test-renameat.c (main): Likewise.
14424         * tests/test-rmdir.c (main): Likewise.
14425         * tests/test-symlink.c (main): Likewise.
14426         * tests/test-symlinkat.c (main): Likewise.
14427         * tests/test-unlink.c (main): Likewise.
14428         * tests/test-unlinkat.c (main): Likewise.
14429         * tests/test-utimens.c (main): Likewise.
14430         * tests/test-utimensat.c (main): Likewise.
14431         * modules/areadlink-tests (Depends-on): Add ignore-value.
14432         * modules/areadlink-with-size-tests (Depends-on): Likewise.
14433         * modules/areadlinkat-tests (Depends-on): Likewise.
14434         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
14435         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14436         * modules/canonicalize-tests (Depends-on): Likewise.
14437         * modules/chown-tests (Depends-on): Likewise.
14438         * modules/fdutimensat-tests (Depends-on): Likewise.
14439         * modules/futimens-tests (Depends-on): Likewise.
14440         * modules/lchown-tests (Depends-on): Likewise.
14441         * modules/link-tests (Depends-on): Likewise.
14442         * modules/linkat-tests (Depends-on): Likewise.
14443         * modules/lstat-tests (Depends-on): Likewise.
14444         * modules/mkdir-tests (Depends-on): Likewise.
14445         * modules/mkfifo-tests (Depends-on): Likewise.
14446         * modules/mkfifoat-tests (Depends-on): Likewise.
14447         * modules/mknod-tests (Depends-on): Likewise.
14448         * modules/openat-tests (Depends-on): Likewise.
14449         * modules/readlink-tests (Depends-on): Likewise.
14450         * modules/remove-tests (Depends-on): Likewise.
14451         * modules/rename-tests (Depends-on): Likewise.
14452         * modules/renameat-tests (Depends-on): Likewise.
14453         * modules/rmdir-tests (Depends-on): Likewise.
14454         * modules/symlink-tests (Depends-on): Likewise.
14455         * modules/symlinkat-tests (Depends-on): Likewise.
14456         * modules/unlink-tests (Depends-on): Likewise.
14457         * modules/utimens-tests (Depends-on): Likewise.
14458         * modules/utimensat-tests (Depends-on): Likewise.
14459
14460 2010-01-31  Bruno Haible  <bruno@clisp.org>
14461
14462         Perform the same test for many <math.h> functions.
14463         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
14464         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
14465         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
14466         of gl_MATHFUNC.
14467         * modules/acos (configure.ac): Likewise.
14468         * modules/asin (configure.ac): Likewise.
14469         * modules/atan (configure.ac): Likewise.
14470         * modules/atan2 (configure.ac): Likewise.
14471         * modules/cbrt (configure.ac): Likewise.
14472         * modules/copysign (configure.ac): Likewise.
14473         * modules/cos (configure.ac): Likewise.
14474         * modules/cosh (configure.ac): Likewise.
14475         * modules/erf (configure.ac): Likewise.
14476         * modules/erfc (configure.ac): Likewise.
14477         * modules/exp (configure.ac): Likewise.
14478         * modules/fmod (configure.ac): Likewise.
14479         * modules/hypot (configure.ac): Likewise.
14480         * modules/j0 (configure.ac): Likewise.
14481         * modules/j1 (configure.ac): Likewise.
14482         * modules/jn (configure.ac): Likewise.
14483         * modules/lgamma (configure.ac): Likewise.
14484         * modules/log (configure.ac): Likewise.
14485         * modules/log10 (configure.ac): Likewise.
14486         * modules/log1p (configure.ac): Likewise.
14487         * modules/pow (configure.ac): Likewise.
14488         * modules/remainder (configure.ac): Likewise.
14489         * modules/sin (configure.ac): Likewise.
14490         * modules/sinh (configure.ac): Likewise.
14491         * modules/tan (configure.ac): Likewise.
14492         * modules/tanh (configure.ac): Likewise.
14493         * modules/y0 (configure.ac): Likewise.
14494         * modules/y1 (configure.ac): Likewise.
14495         * modules/yn (configure.ac): Likewise.
14496         Suggested by Paolo Bonzini.
14497
14498 2010-01-31  Bruno Haible  <bruno@clisp.org>
14499
14500         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14501
14502 2010-01-31  Bruno Haible  <bruno@clisp.org>
14503
14504         Work around getdelim() bug on FreeBSD 8.0.
14505         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14506         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
14507         not work.
14508         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
14509         is 1.
14510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
14511         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
14512         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
14513         a non-zero size.
14514         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
14515
14516 2010-01-31  Bruno Haible  <bruno@clisp.org>
14517
14518         Work around getline() bug on FreeBSD 8.0.
14519         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
14520         and a non-zero size.
14521         * tests/test-getline.c (main): Likewise.
14522         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
14523         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
14524
14525 2010-01-28  Eric Blake  <ebb9@byu.net>
14526
14527         regex: fix build failure
14528         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
14529         platforms.
14530
14531 2010-01-28  Jim Meyering  <meyering@redhat.com>
14532
14533         regex: do not ignore memory allocation failure
14534         * lib/regex_internal.c (create_cd_newstate): Detect
14535         re_node_set_init_copy failure.   Extracted from glibc commit
14536         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14537
14538         regex: sync more white-space changes from libc
14539         * lib/regex_internal.c: White-space only changes.
14540         * lib/regexec.c: Likewise.
14541
14542         regex: add many uses of __attribute_warn_unused_result__
14543         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
14544         * lib/regexec.c: Likewise.
14545         Extracted from a messy glibc commit.
14546
14547         regcomp.c: spelling and merge-artifact from glibc
14548         * lib/regcomp.c: Merge remainder of glibc's
14549         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14550
14551         regcomp.c: sync white-space changes from glibc
14552         * lib/regcomp.c: Merge to accommodate white space
14553         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14554
14555         regcomp.c: do not ignore internal return values
14556         * lib/regcomp.c: Do not ignore internal return values.
14557         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
14558         but without its white-space changes and spelling fixes.
14559
14560         regex_internal.h: define __attribute_warn_unused_result__
14561         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
14562
14563         maint: add a syntax-check rule to check for vulnerable Makefile.in
14564         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
14565
14566 2010-01-27  Jim Meyering  <meyering@redhat.com>
14567
14568         ncftpput-ftp: clean up spaces
14569         * build-aux/ncftpput-ftp: Make Copyright line consistent.
14570         Remove trailing blanks.
14571
14572 2010-01-27  Simon Josefsson  <simon@josefsson.org>
14573
14574         * build-aux/git-version-gen: Fix copyright statement.
14575         * build-aux/gnupload: Likewise.
14576         * tests/test-arcfour.c: Likewise.
14577         * tests/test-arctwo.c: Likewise.
14578         * tests/test-count-one-bits.c: Likewise.
14579         * tests/test-crc.c: Likewise.
14580         * tests/test-des.c: Likewise.
14581         * tests/test-gc-arcfour.c: Likewise.
14582         * tests/test-gc-arctwo.c: Likewise.
14583         * tests/test-gc-des.c: Likewise.
14584         * tests/test-gc-hmac-md5.c: Likewise.
14585         * tests/test-gc-hmac-sha1.c: Likewise.
14586         * tests/test-gc-md2.c: Likewise.
14587         * tests/test-gc-md4.c: Likewise.
14588         * tests/test-gc-md5.c: Likewise.
14589         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14590         * tests/test-gc-rijndael.c: Likewise.
14591         * tests/test-gc-sha1.c: Likewise.
14592         * tests/test-gc.c: Likewise.
14593         * tests/test-gethostname.c: Likewise.
14594         * tests/test-gettimeofday.c: Likewise.
14595         * tests/test-hash.c: Likewise.
14596         * tests/test-hmac-md5.c: Likewise.
14597         * tests/test-hmac-sha1.c: Likewise.
14598         * tests/test-md2.c: Likewise.
14599         * tests/test-md4.c: Likewise.
14600         * tests/test-md5.c: Likewise.
14601         * tests/test-memchr.c: Likewise.
14602         * tests/test-memchr2.c: Likewise.
14603         * tests/test-memcmp.c: Likewise.
14604         * tests/test-memmem.c: Likewise.
14605         * tests/test-memrchr.c: Likewise.
14606         * tests/test-rawmemchr.c: Likewise.
14607         * tests/test-read-file.c: Likewise.
14608         * tests/test-rijndael.c: Likewise.
14609         * tests/test-sockets.c: Likewise.
14610         * tests/test-strchrnul.c: Likewise.
14611         * tests/test-strstr.c: Likewise.
14612         * tests/test-strtod.c: Likewise.
14613         * build-aux/ncftpput-ftp: Likewise.
14614
14615 2010-01-26  Eric Blake  <ebb9@byu.net>
14616
14617         ignore-value: update recommended header name
14618         * modules/ignore-value (Include): Only use <> for headers that
14619         exist in glibc.
14620
14621 2010-01-26  Jim Meyering  <meyering@redhat.com>
14622
14623         test-userspec.c: avoid compiler warnings
14624         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
14625         and "initialization discards qualifiers..." warnings.
14626         Put the first "uid" in its own scope, and make char* members "const".
14627
14628 2010-01-25  Bruno Haible  <bruno@clisp.org>
14629
14630         gnulib-tool: Make warning diagnostics consistent.
14631         * gnulib-tool (func_warning): New function.
14632         Use it everywhere where gnulib-tool produces output to stderr and it is
14633         not a fatal error.
14634
14635 2010-01-25  Bruno Haible  <bruno@clisp.org>
14636
14637         Fix test dependencies.
14638         * modules/xstrtol-tests (Depends-on): Add inttypes.
14639         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
14640
14641 2010-01-25 Pádraig Brady <P@draigBrady.com>
14642
14643         syntax-check: detect incorrect boolean macro values in config.h
14644         * modules/maintainer-makefile (configure.ac): Parameterize the location
14645         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
14646         The logic is from Eric Blake and the location indicated by Jim Meyering.
14647         Note the more natural CONFIG_HEADER name is prohibited by automake
14648         for backwards compatibility reasons.
14649         * top/maint.mk (sc_Wundef_boolean): New rule.
14650
14651 2010-01-25  Jim Meyering  <meyering@redhat.com>
14652
14653         bootstrap: detect MacOS 10.6's shasum, too
14654         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
14655         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
14656
14657 2010-01-23  Jim Meyering  <meyering@redhat.com>
14658
14659         xstrtoll: new module
14660         * modules/xstrtoll: New file.
14661         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
14662         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
14663         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
14664         ./configure fails if you use this module and lack "long long".
14665         * modules/xstrtoll-tests: New module.
14666         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
14667         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
14668         new init.sh-based test framework.
14669
14670 2010-01-24  Bruno Haible  <bruno@clisp.org>
14671
14672         Tests for module 'yn'.
14673         * modules/yn-tests: New file.
14674         * tests/test-yn.c: New file.
14675
14676         Tests for module 'y1'.
14677         * modules/y1-tests: New file.
14678         * tests/test-y1.c: New file.
14679
14680         Tests for module 'y0'.
14681         * modules/y0-tests: New file.
14682         * tests/test-y0.c: New file.
14683
14684         Tests for module 'tanh'.
14685         * modules/tanh-tests: New file.
14686         * tests/test-tanh.c: New file.
14687
14688         Tests for module 'tan'.
14689         * modules/tan-tests: New file.
14690         * tests/test-tan.c: New file.
14691
14692         Tests for module 'sqrt'.
14693         * modules/sqrt-tests: New file.
14694         * tests/test-sqrt.c: New file.
14695
14696         Tests for module 'sinh'.
14697         * modules/sinh-tests: New file.
14698         * tests/test-sinh.c: New file.
14699
14700         Tests for module 'sin'.
14701         * modules/sin-tests: New file.
14702         * tests/test-sin.c: New file.
14703
14704         Tests for module 'rint'.
14705         * modules/rint-tests: New file.
14706         * tests/test-rint.c: New file.
14707
14708         Tests for module 'remainder'.
14709         * modules/remainder-tests: New file.
14710         * tests/test-remainder.c: New file.
14711
14712         Tests for module 'pow'.
14713         * modules/pow-tests: New file.
14714         * tests/test-pow.c: New file.
14715
14716         Tests for module 'nextafter'.
14717         * modules/nextafter-tests: New file.
14718         * tests/test-nextafter.c: New file.
14719
14720         Tests for module 'modf'.
14721         * modules/modf-tests: New file.
14722         * tests/test-modf.c: New file.
14723
14724         Tests for module 'logb'.
14725         * modules/logb-tests: New file.
14726         * tests/test-logb.c: New file.
14727
14728         Tests for module 'log1p'.
14729         * modules/log1p-tests: New file.
14730         * tests/test-log1p.c: New file.
14731
14732         Tests for module 'log10'.
14733         * modules/log10-tests: New file.
14734         * tests/test-log10.c: New file.
14735
14736         Tests for module 'log'.
14737         * modules/log-tests: New file.
14738         * tests/test-log.c: New file.
14739
14740         Tests for module 'lgamma'.
14741         * modules/lgamma-tests: New file.
14742         * tests/test-lgamma.c: New file.
14743
14744         Tests for module 'ldexp'.
14745         * modules/ldexp-tests: New file.
14746         * tests/test-ldexp.c: New file.
14747
14748         Tests for module 'jn'.
14749         * modules/jn-tests: New file.
14750         * tests/test-jn.c: New file.
14751
14752         Tests for module 'j1'.
14753         * modules/j1-tests: New file.
14754         * tests/test-j1.c: New file.
14755
14756         Tests for module 'j0'.
14757         * modules/j0-tests: New file.
14758         * tests/test-j0.c: New file.
14759
14760         Tests for module 'hypot'.
14761         * modules/hypot-tests: New file.
14762         * tests/test-hypot.c: New file.
14763
14764         Tests for module 'fmod'.
14765         * modules/fmod-tests: New file.
14766         * tests/test-fmod.c: New file.
14767
14768         Tests for module 'fabs'.
14769         * modules/fabs-tests: New file.
14770         * tests/test-fabs.c: New file.
14771
14772         Tests for module 'exp'.
14773         * modules/exp-tests: New file.
14774         * tests/test-exp.c: New file.
14775
14776         Tests for module 'erfc'.
14777         * modules/erfc-tests: New file.
14778         * tests/test-erfc.c: New file.
14779
14780         Tests for module 'erf'.
14781         * modules/erf-tests: New file.
14782         * tests/test-erf.c: New file.
14783
14784         Tests for module 'cosh'.
14785         * modules/cosh-tests: New file.
14786         * tests/test-cosh.c: New file.
14787
14788         Tests for module 'cos'.
14789         * modules/cos-tests: New file.
14790         * tests/test-cos.c: New file.
14791
14792         Tests for module 'copysign'.
14793         * modules/copysign-tests: New file.
14794         * tests/test-copysign.c: New file.
14795
14796         Tests for module 'cbrt'.
14797         * modules/cbrt-tests: New file.
14798         * tests/test-cbrt.c: New file.
14799
14800         Tests for module 'atan2'.
14801         * modules/atan2-tests: New file.
14802         * tests/test-atan2.c: New file.
14803
14804         Tests for module 'atan'.
14805         * modules/atan-tests: New file.
14806         * tests/test-atan.c: New file.
14807
14808         Tests for module 'asin'.
14809         * modules/asin-tests: New file.
14810         * tests/test-asin.c: New file.
14811
14812         Tests for module 'acos'.
14813         * modules/acos-tests: New file.
14814         * tests/test-acos.c: New file.
14815
14816 2010-01-24  Bruno Haible  <bruno@clisp.org>
14817
14818         Fix tests for common <math.h> functions.
14819         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
14820         code snippet that references the function pointer, rather than merely
14821         calling the function. Substitute the FUNC_LIBM variable.
14822         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
14823         * modules/acos (configure.ac): Likewise.
14824         * modules/asin (configure.ac): Likewise.
14825         * modules/atan (configure.ac): Likewise.
14826         * modules/atan2 (configure.ac): Likewise.
14827         * modules/cbrt (configure.ac): Likewise.
14828         * modules/copysign (configure.ac): Likewise.
14829         * modules/cos (configure.ac): Likewise.
14830         * modules/cosh (configure.ac): Likewise.
14831         * modules/erf (configure.ac): Likewise.
14832         * modules/erfc (configure.ac): Likewise.
14833         * modules/exp (configure.ac): Likewise.
14834         * modules/fabs (configure.ac): Likewise.
14835         * modules/fmod (configure.ac): Likewise.
14836         * modules/hypot (configure.ac): Likewise.
14837         * modules/j0 (configure.ac): Likewise.
14838         * modules/j1 (configure.ac): Likewise.
14839         * modules/jn (configure.ac): Likewise.
14840         * modules/ldexp (configure.ac): Likewise.
14841         * modules/lgamma (configure.ac): Likewise.
14842         * modules/log (configure.ac): Likewise.
14843         * modules/log10 (configure.ac): Likewise.
14844         * modules/log1p (configure.ac): Likewise.
14845         * modules/logb (configure.ac): Likewise.
14846         * modules/modf (configure.ac): Likewise.
14847         * modules/nextafter (configure.ac): Likewise.
14848         * modules/pow (configure.ac): Likewise.
14849         * modules/remainder (configure.ac): Likewise.
14850         * modules/rint (configure.ac): Likewise.
14851         * modules/sin (configure.ac): Likewise.
14852         * modules/sinh (configure.ac): Likewise.
14853         * modules/tan (configure.ac): Likewise.
14854         * modules/tanh (configure.ac): Likewise.
14855         * modules/y0 (configure.ac): Likewise.
14856         * modules/y1 (configure.ac): Likewise.
14857         * modules/yn (configure.ac): Likewise.
14858
14859 2010-01-24  Bruno Haible  <bruno@clisp.org>
14860
14861         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
14862         * tests/test-acosl.c (x): New variable.
14863         (main): Store argument in x and fetch it from x.
14864         * tests/test-asinl.c (x): New variable.
14865         (main): Store argument in x and fetch it from x.
14866         * tests/test-atanl.c (x): New variable.
14867         (main): Store argument in x and fetch it from x.
14868         * tests/test-cosl.c (x): New variable.
14869         (main): Store argument in x and fetch it from x.
14870         * tests/test-expl.c (x): New variable.
14871         (main): Store argument in x and fetch it from x.
14872         * tests/test-logl.c (x): New variable.
14873         (main): Store argument in x and fetch it from x.
14874         * tests/test-sinl.c (x): New variable.
14875         (main): Store argument in x and fetch it from x.
14876         * tests/test-sqrtl.c (x): New variable.
14877         (main): Store argument in x and fetch it from x.
14878         * tests/test-tanl.c (x): New variable.
14879         (main): Store argument in x and fetch it from x.
14880
14881 2010-01-24  Bruno Haible  <bruno@clisp.org>
14882
14883         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
14884         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
14885         assignments to the initial TESTS_ENVIRONMENT.
14886         * doc/gnulib.texi (Unit test modules): Document it.
14887         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
14888         TESTS_ENVIRONMENT.
14889         * modules/btowc-tests (Makefile.am): Likewise.
14890         * modules/c-stack-tests (Makefile.am): Likewise.
14891         * modules/c-strcase-tests (Makefile.am): Likewise.
14892         * modules/copy-file-tests (Makefile.am): Likewise.
14893         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
14894         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
14895         * modules/mbrtowc-tests (Makefile.am): Likewise.
14896         * modules/mbscasecmp-tests (Makefile.am): Likewise.
14897         * modules/mbscasestr-tests (Makefile.am): Likewise.
14898         * modules/mbschr-tests (Makefile.am): Likewise.
14899         * modules/mbscspn-tests (Makefile.am): Likewise.
14900         * modules/mbsinit-tests (Makefile.am): Likewise.
14901         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
14902         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
14903         * modules/mbspbrk-tests (Makefile.am): Likewise.
14904         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
14905         * modules/mbsrchr-tests (Makefile.am): Likewise.
14906         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
14907         * modules/mbsspn-tests (Makefile.am): Likewise.
14908         * modules/mbsstr-tests (Makefile.am): Likewise.
14909         * modules/nl_langinfo-tests (Makefile.am): Likewise.
14910         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
14911         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
14912         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
14913         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
14914         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
14915         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
14916         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
14917         * modules/wcrtomb-tests (Makefile.am): Likewise.
14918         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
14919         * modules/wcsrtombs-tests (Makefile.am): Likewise.
14920         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
14921         assignments from TESTS_ENVIRONMENT.
14922         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
14923         augmentation.
14924         * modules/argp-version-etc-tests (Makefile.am): Likewise.
14925         * modules/atexit-tests (Makefile.am): Likewise.
14926         * modules/binary-io-tests (Makefile.am): Likewise.
14927         * modules/closein-tests (Makefile.am): Likewise.
14928         * modules/dprintf-posix-tests (Makefile.am): Likewise.
14929         * modules/exclude-tests (Makefile.am): Likewise.
14930         * modules/fflush-tests (Makefile.am): Likewise.
14931         * modules/fpending-tests (Makefile.am): Likewise.
14932         * modules/fprintf-posix-tests (Makefile.am): Likewise.
14933         * modules/freadahead-tests (Makefile.am): Likewise.
14934         * modules/freadptr-tests (Makefile.am): Likewise.
14935         * modules/freadseek-tests (Makefile.am): Likewise.
14936         * modules/fseek-tests (Makefile.am): Likewise.
14937         * modules/fseeko-tests (Makefile.am): Likewise.
14938         * modules/ftell-tests (Makefile.am): Likewise.
14939         * modules/ftello-tests (Makefile.am): Likewise.
14940         * modules/idpriv-drop-tests (Makefile.am): Likewise.
14941         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
14942         * modules/lseek-tests (Makefile.am): Likewise.
14943         * modules/parse-duration-tests (Makefile.am): Likewise.
14944         * modules/perror-tests (Makefile.am): Likewise.
14945         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
14946         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
14947         * modules/pipe-tests (Makefile.am): Likewise.
14948         * modules/pread-tests (Makefile.am): Likewise.
14949         * modules/printf-posix-tests (Makefile.am): Likewise.
14950         * modules/select-tests (Makefile.am): Likewise.
14951         * modules/sigpipe-tests (Makefile.am): Likewise.
14952         * modules/tsearch-tests (Makefile.am): Likewise.
14953         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
14954         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
14955         * modules/uniname/uniname-tests (Makefile.am): Likewise.
14956         * modules/uniwidth/width-tests (Makefile.am): Likewise.
14957         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
14958         * modules/version-etc-tests (Makefile.am): Likewise.
14959         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
14960         * modules/vprintf-posix-tests (Makefile.am): Likewise.
14961         * modules/xalloc-die-tests (Makefile.am): Likewise.
14962         * modules/xprintf-posix-tests (Makefile.am): Likewise.
14963         * modules/xstrtoimax-tests (Makefile.am): Likewise.
14964         * modules/xstrtol-tests (Makefile.am): Likewise.
14965         * modules/xstrtoumax-tests (Makefile.am): Likewise.
14966         * modules/yesno-tests (Makefile.am): Likewise.
14967         Suggested by Jim Meyering.
14968
14969 2010-01-24  Bruno Haible  <bruno@clisp.org>
14970
14971         More documentation.
14972         * doc/gnulib.texi (Writing modules): New chapter.
14973         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
14974         the new chapter.
14975
14976 2010-01-24  Jim Meyering  <meyering@redhat.com>
14977
14978         maint.mk: do not prepend "./" after filtering
14979         * top/maint.mk (_prepend_srcdir_prefix): New variable
14980         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
14981         "./" when $(srcdir) is ".".
14982
14983         define STREQ(a,b) consistently, removing useless parentheses
14984         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
14985         since the only risk is that "a" or "b" contains an unparenthesized
14986         comma, but if either did that, STREQ would have 3 or more arguments.
14987         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
14988         * lib/fts.c (STREQ): Remove unnecessary parentheses.
14989         * lib/hash-triple.c (STREQ): Likewise.
14990         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
14991         * lib/getugroups.c (STREQ): Likewise.
14992
14993 2010-01-23  Jim Meyering  <meyering@redhat.com>
14994
14995         maint.mk: fix syntax-check in a non-srcdir build directory
14996         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
14997         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
14998
14999 2010-01-22  Jim Meyering  <meyering@redhat.com>
15000
15001         userspec: add unit tests
15002         * tests/test-userspec.c: New file.
15003         * modules/userspec-tests: Likewise.
15004
15005 2010-01-21  Jim Meyering  <meyering@redhat.com>
15006
15007         maint.mk: handle source file names containing "." robustly
15008         * top/maint.mk (_dot_escaped_srcdir): Define.
15009         (VC_LIST): Use it in LHS of sed substitution.
15010
15011 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
15012
15013         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
15014         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
15015         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
15016         from a non-srcdir build.
15017
15018 2010-01-20  Eric Blake  <ebb9@byu.net>
15019
15020         warn-on-use: use instead of link-warning
15021         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
15022         * modules/unistd (Depends-on, Makefile.am): Likewise.
15023         * modules/arpa_inet (Depends-on): Replace link-warning with
15024         warn-on-use.
15025         (Makefile.am): Update rules accordingly.
15026         * modules/ctype (Depends-on, Makefile.am): Likewise.
15027         * modules/dirent (Depends-on, Makefile.am): Likewise.
15028         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
15029         * modules/inttypes (Depends-on, Makefile.am): Likewise.
15030         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15031         * modules/locale (Depends-on, Makefile.am): Likewise.
15032         * modules/math (Depends-on, Makefile.am): Likewise.
15033         * modules/search (Depends-on, Makefile.am): Likewise.
15034         * modules/signal (Depends-on, Makefile.am): Likewise.
15035         * modules/spawn (Depends-on, Makefile.am): Likewise.
15036         * modules/stdlib (Depends-on, Makefile.am): Likewise.
15037         * modules/string (Depends-on, Makefile.am): Likewise.
15038         * modules/strings (Depends-on, Makefile.am): Likewise.
15039         * modules/sys_file (Depends-on, Makefile.am): Likewise.
15040         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
15041         * modules/sys_select (Depends-on, Makefile.am): Likewise.
15042         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
15043         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
15044         * modules/sys_times (Depends-on, Makefile.am): Likewise.
15045         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15046         * modules/wchar (Depends-on, Makefile.am): Likewise.
15047         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
15048         should be poisoned.
15049         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
15050         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
15051         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
15052         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15053         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15054         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15055         * m4/math_h.m4 (gl_MATH_H): Likewise.
15056         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15057         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15058         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15059         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15060         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15061         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15062         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15063         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
15064         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15065         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15066         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15067         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15068         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15069         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15070         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15071         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15072         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
15073         GL_LINK_WARNING.
15074         * lib/ctype.in.h: Likewise.
15075         * lib/dirent.in.h: Likewise.
15076         * lib/fcntl.in.h: Likewise.
15077         * lib/inttypes.in.h: Likewise.
15078         * lib/langinfo.in.h: Likewise.
15079         * lib/locale.in.h: Likewise.
15080         * lib/math.in.h: Likewise.
15081         * lib/search.in.h: Likewise.
15082         * lib/signal.in.h: Likewise.
15083         * lib/spawn.in.h: Likewise.
15084         * lib/stdio.in.h: Likewise.
15085         * lib/stdlib.in.h: Likewise.
15086         * lib/string.in.h: Likewise.
15087         * lib/strings.in.h: Likewise.
15088         * lib/sys_file.in.h: Likewise.
15089         * lib/sys_ioctl.in.h: Likewise.
15090         * lib/sys_select.in.h: Likewise.
15091         * lib/sys_socket.in.h: Likewise.
15092         * lib/sys_stat.in.h: Likewise.
15093         * lib/sys_times.in.h: Likewise.
15094         * lib/sys_utsname.in.h: Likewise.
15095         * lib/unistd.in.h: Likewise.
15096         * lib/wchar.in.h: Likewise.
15097
15098 2010-01-20  Bruno Haible  <bruno@clisp.org>
15099
15100         Avoid duplicate -lm.
15101         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
15102         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
15103         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
15104         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
15105         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
15106         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
15107         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
15108         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
15109         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
15110         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
15111         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
15112         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15113         Reported by Paolo Bonzini.
15114
15115 2010-01-19  Bruno Haible  <bruno@clisp.org>
15116
15117         langinfo, nl_langinfo: Relicense under LGPLv2+.
15118         * modules/langinfo (License): Change to LGPLv2+.
15119         * modules/nl_langinfo (License): Likewise.
15120         Patch by David Lutterkort <lutter@redhat.com>.
15121
15122 2010-01-19  Bruno Haible  <bruno@clisp.org>
15123
15124         Avoid compilation error with cc on OSF/1 5.1.
15125         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15126         statement, not before.
15127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15128
15129 2010-01-18  Bruno Haible  <bruno@clisp.org>
15130
15131         Avoid a link error due to the __printf__ symbol.
15132         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
15133         and 2.6.x.
15134         (__format__, __printf__): Remove definitions.
15135         * lib/argp-fmtstream.h: Likewise.
15136         * lib/argp.h: Likewise.
15137         * lib/error.h: Likewise.
15138         * lib/vasnprintf.h: Likewise.
15139         * lib/xprintf.h: Likewise.
15140         * lib/xvasprintf.h: Likewise.
15141         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15142
15143 2010-01-18  Bruno Haible  <bruno@clisp.org>
15144
15145         Tests for module 'tanl'.
15146         * modules/tanl-tests: New file.
15147         * tests/test-tanl.c: New file.
15148
15149         Tests for module 'sqrtl'.
15150         * modules/sqrtl-tests: New file.
15151         * tests/test-sqrtl.c: New file.
15152
15153         Tests for module 'sinl'.
15154         * modules/sinl-tests: New file.
15155         * tests/test-sinl.c: New file.
15156
15157         Tests for module 'logl'.
15158         * modules/logl-tests: New file.
15159         * tests/test-logl.c: New file.
15160
15161         Tests for module 'expl'.
15162         * modules/expl-tests: New file.
15163         * tests/test-expl.c: New file.
15164
15165         Tests for module 'cosl'.
15166         * modules/cosl-tests: New file.
15167         * tests/test-cosl.c: New file.
15168
15169         Tests for module 'atanl'.
15170         * modules/atanl-tests: New file.
15171         * tests/test-atanl.c: New file.
15172
15173         Tests for module 'asinl'.
15174         * modules/asinl-tests: New file.
15175         * tests/test-asinl.c: New file.
15176
15177         Tests for module 'acosl'.
15178         * modules/acosl-tests: New file.
15179         * tests/test-acosl.c: New file.
15180
15181         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15182         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15183         tanl): Use the standard gnulib idiom.
15184         * lib/cosl.c: Don't include trigl.c and sincosl.c.
15185         * lib/sinl.c: Likewise.
15186         * lib/tanl.c: Don't include trigl.c.
15187         (kernel_tanl): Make static.
15188         * lib/sincosl.c: Include trigl.h first.
15189         * lib/trigl.c: Likewise.
15190         * m4/acosl.m4: New file.
15191         * m4/asinl.m4: New file.
15192         * m4/atanl.m4: New file.
15193         * m4/cosl.m4: New file.
15194         * m4/expl.m4: New file.
15195         * m4/logl.m4: New file.
15196         * m4/sinl.m4: New file.
15197         * m4/sqrtl.m4: New file.
15198         * m4/tanl.m4: New file.
15199         * m4/mathl.m4: Remove file.
15200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
15201         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15202         Don't initialize GNULIB_MATHL.
15203         * modules/acosl: New file.
15204         * modules/asinl: New file.
15205         * modules/atanl: New file.
15206         * modules/cosl: New file.
15207         * modules/expl: New file.
15208         * modules/logl: New file.
15209         * modules/sinl: New file.
15210         * modules/sqrtl: New file.
15211         * modules/tanl: New file.
15212         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
15213         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
15214         substitute GNULIB_MATHL.
15215         * modules/mathl: Rewritten.
15216         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
15217         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
15218         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
15219         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
15220         * doc/posix-functions/expl.texi: Mention the 'expl' module.
15221         * doc/posix-functions/logl.texi: Mention the 'logl' module.
15222         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
15223         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
15224         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
15225
15226 2010-01-18  Bruno Haible  <bruno@clisp.org>
15227
15228         sqrt: Make gl_FUNC_SQRT requirable.
15229         * m4/sqrt.m4: New file.
15230         * modules/sqrt (Files): Add it.
15231         (configure.ac): Invoke gl_FUNC_SQRT.
15232
15233 2010-01-18  Bruno Haible  <bruno@clisp.org>
15234
15235         New modules for common <math.h> functions.
15236         * m4/mathfunc.m4: New file.
15237         * modules/acos: New file.
15238         * modules/asin: New file.
15239         * modules/atan: New file.
15240         * modules/atan2: New file.
15241         * modules/cbrt: New file.
15242         * modules/copysign: New file.
15243         * modules/cos: New file.
15244         * modules/cosh: New file.
15245         * modules/erf: New file.
15246         * modules/erfc: New file.
15247         * modules/exp: New file.
15248         * modules/fabs: New file.
15249         * modules/fmod: New file.
15250         * modules/hypot: New file.
15251         * modules/j0: New file.
15252         * modules/j1: New file.
15253         * modules/jn: New file.
15254         * modules/ldexp: New file.
15255         * modules/lgamma: New file.
15256         * modules/log: New file.
15257         * modules/log10: New file.
15258         * modules/log1p: New file.
15259         * modules/logb: New file.
15260         * modules/modf: New file.
15261         * modules/nextafter: New file.
15262         * modules/pow: New file.
15263         * modules/remainder: New file.
15264         * modules/rint: New file.
15265         * modules/sin: New file.
15266         * modules/sinh: New file.
15267         * modules/sqrt: New file.
15268         * modules/tan: New file.
15269         * modules/tanh: New file.
15270         * modules/y0: New file.
15271         * modules/y1: New file.
15272         * modules/yn: New file.
15273         * doc/posix-functions/acos.texi: Mention the 'acos' module.
15274         * doc/posix-functions/asin.texi: Mention the 'asin' module.
15275         * doc/posix-functions/atan.texi: Mention the 'atan' module.
15276         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
15277         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
15278         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
15279         * doc/posix-functions/cos.texi: Mention the 'cos' module.
15280         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
15281         * doc/posix-functions/erf.texi: Mention the 'erf' module.
15282         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
15283         * doc/posix-functions/exp.texi: Mention the 'exp' module.
15284         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
15285         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
15286         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
15287         * doc/posix-functions/j0.texi: Mention the 'j0' module.
15288         * doc/posix-functions/j1.texi: Mention the 'j1' module.
15289         * doc/posix-functions/jn.texi: Mention the 'jn' module.
15290         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
15291         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
15292         * doc/posix-functions/log.texi: Mention the 'log' module.
15293         * doc/posix-functions/log10.texi: Mention the 'log10' module.
15294         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
15295         * doc/posix-functions/logb.texi: Mention the 'logb' module.
15296         * doc/posix-functions/modf.texi: Mention the 'modf' module.
15297         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
15298         * doc/posix-functions/pow.texi: Mention the 'pow' module.
15299         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
15300         * doc/posix-functions/rint.texi: Mention the 'rint' module.
15301         * doc/posix-functions/sin.texi: Mention the 'sin' module.
15302         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
15303         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
15304         * doc/posix-functions/tan.texi: Mention the 'tan' module.
15305         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
15306         * doc/posix-functions/y0.texi: Mention the 'y0' module.
15307         * doc/posix-functions/y1.texi: Mention the 'y1' module.
15308         * doc/posix-functions/yn.texi: Mention the 'yn' module.
15309
15310 2010-01-18  Jim Meyering  <meyering@redhat.com>
15311
15312         ignore-value: relax license to LGPLv2+
15313         * modules/ignore-value (License): Relax to LGPLv2+.
15314
15315         getdate: don't leak when TZ contains two or more '"'s
15316         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
15317         double quote in TZ after the first one.
15318
15319         readtokens: do not leak internal token_lengths buffer
15320         * lib/readtokens.c (readtokens): Free the local, lengths,
15321         when the supplied "token_lengths" parameter is NULL.
15322
15323 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15324
15325         Fix a couple of missing LIBTHREAD link failures on AIX.
15326         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
15327         $(LIBTHREAD).
15328         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
15329
15330         Link test-poll against INET_PTON_LIB.
15331         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
15332         for inet_pton on Solaris 10.
15333
15334 2010-01-17  Bruno Haible  <bruno@clisp.org>
15335
15336         unistdio/*-sprintf: Fix typo in module description.
15337         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15338         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15339         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15340         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15341         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15342         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15343         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15345
15346 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15347
15348         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15349         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15350         variables in shell case patterns, for AIX and HP-UX ksh.
15351
15352         Split large sed scripts, for HP-UX sed.
15353         * modules/stdio: Split sed scripts around 50 sed commands,
15354         to avoid HP-UX limit of 99 commands, in the near future.
15355         * modules/string: Likewise.
15356         * modules/unistd: Likewise.
15357
15358         gnulib-tool: avoid writing in the current directory.
15359         * gnulib-tool (func_emit_lib_Makefile_am)
15360         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
15361         not in the current directory, so concurrent gnulib-tool
15362         instances do not interfere.
15363
15364 2010-01-16  Jim Meyering  <meyering@redhat.com>
15365
15366         doc: update users.txt
15367         * users.txt: Add grep.
15368         (diffutils, gzip): Update URLs.
15369
15370 2010-01-12  Bruno Haible  <bruno@clisp.org>
15371
15372         posix_spawn: Avoid test failure on Cygwin.
15373         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
15374         characters.
15375         Reported by Simon Josefsson.
15376
15377 2010-01-12  Bruno Haible  <bruno@clisp.org>
15378
15379         * tests/test-cond.c (main): When skipping the test, show the reason.
15380
15381 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15382
15383         * lib/striconv.c (str_cd_iconv): Avoid if before free.
15384
15385 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15386
15387         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
15388         VC_LIST_ALWAYS_EXCLUDE_REGEX.
15389
15390 2010-01-12  Eric Blake  <ebb9@byu.net>
15391
15392         build: guarantee AS_VAR_IF
15393         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
15394         (gl_AS_VAR_IF): Move...
15395         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
15396         Reported by Simon Josefsson.
15397
15398 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15399
15400         * lib/stdio.in.h: Fix typo.
15401
15402 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15403
15404         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
15405         libgpg-error.
15406
15407 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15408
15409         * tests/test-xalloc-die.sh: Use $EXEEXT.
15410
15411 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15412             Bruno Haible  <bruno@clisp.org>
15413
15414         getlogin, getlogin_r: Avoid test failure.
15415         * tests/test-getlogin.c: Include <stdio.h>.
15416         (main): Skip the test when the function fails because stdin is not a
15417         tty.
15418         * tests/test-getlogin_r.c: Include <stdio.h>.
15419         (main): Skip the test when the function fails because stdin is not a
15420         tty.
15421
15422 2010-01-11  Eric Blake  <ebb9@byu.net>
15423
15424         tests: avoid more large file warnings
15425         * tests/test-fflush.c: Avoid warning about ftell use.
15426         * tests/test-fseek.c: Avoid warning about fseek use.
15427
15428 2010-01-10  Bruno Haible  <bruno@clisp.org>
15429
15430         nproc: Work better on Linux when /proc and /sys are not mounted.
15431         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
15432         as lower bound when, on glibc/Linux systems,
15433         sysconf (_SC_NPROCESSORS_CONF) returns 1.
15434         Suggested by Pádraig Brady <P@draigbrady.com>.
15435         Reported by Dmitry V. Levin <ldv@altlinux.org>.
15436
15437         nproc: Refactor.
15438         * lib/nproc.c (num_processors_via_affinity_mask): New function,
15439         extracted from num_processors.
15440         (num_processors): Call it.
15441
15442 2010-01-11  Jim Meyering  <meyering@redhat.com>
15443
15444         utimecmp: avoid new warning from upcoming gcc-4.5.0
15445         * lib/utimecmp.c (BILLION): Define using #define rather than an
15446         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
15447
15448 2010-01-11  Eric Blake  <ebb9@byu.net>
15449
15450         math: add portability warnings for classification macros
15451         * modules/math (Depends-on): Add warn-on-use.
15452         (Makefile.am): Provide new substitutions.
15453         * m4/math_h.m4 (gl_MATH_H): Require inline.
15454         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
15455         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
15456         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
15457         implement warnings.
15458
15459         unistd: warn on use of environ without module
15460         * modules/unistd (Depends-on): Add warn-on-use.
15461         (Makefile.am): Provide new substitutions.
15462         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
15463         * lib/unistd.in.h (environ): Wrap with a warning helper function.
15464
15465         stdio: warn on suspicious uses
15466         * modules/stdio (Depends-on): Add warn-on-use.
15467         (Makefile.am): Provide new substitutions.
15468         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15469         fseeko.
15470         * lib/stdio.in.h (gets): Always warn on use.
15471         (fseek, ftell): Adjust when warnings are issued, and honor
15472         _GL_NO_LARGE_FILES as a way to silence the warning.
15473         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15474         any warning about large file offsets.
15475         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15476         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15477         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15478         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15479         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15480         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15481         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15482         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15483
15484         warn-on-use: new module
15485         * modules/warn-on-use: New file.
15486         * build-aux/warn-on-use.h: Likewise.
15487         * m4/warn-on-use.m4: Likewise.
15488         * MODULES.html.sh (Support for building): Mention it.
15489
15490 2010-01-10  Bruno Haible  <bruno@clisp.org>
15491
15492         Tests for module 'unistr/u32-strdup'.
15493         * modules/unistr/u32-strdup-tests: New file.
15494         * tests/unistr/test-u32-strdup.c: New file.
15495
15496         Tests for module 'unistr/u16-strdup'.
15497         * modules/unistr/u16-strdup-tests: New file.
15498         * tests/unistr/test-u16-strdup.c: New file.
15499
15500         Tests for module 'unistr/u8-strdup'.
15501         * modules/unistr/u8-strdup-tests: New file.
15502         * tests/unistr/test-u8-strdup.c: New file.
15503         * tests/unistr/test-strdup.h: New file.
15504
15505         Tests for module 'unistr/u32-strncmp'.
15506         * modules/unistr/u32-strncmp-tests: New file.
15507         * tests/unistr/test-u32-strncmp.c: New file.
15508
15509         Tests for module 'unistr/u16-strncmp'.
15510         * modules/unistr/u16-strncmp-tests: New file.
15511         * tests/unistr/test-u16-strncmp.c: New file.
15512
15513         Tests for module 'unistr/u8-strncmp'.
15514         * modules/unistr/u8-strncmp-tests: New file.
15515         * tests/unistr/test-u8-strncmp.c: New file.
15516         * tests/unistr/test-strncmp.h: New file.
15517
15518         Tests for module 'unistr/u32-strcoll'.
15519         * modules/unistr/u32-strcoll-tests: New file.
15520         * tests/unistr/test-u32-strcoll.c: New file.
15521
15522         Tests for module 'unistr/u16-strcoll'.
15523         * modules/unistr/u16-strcoll-tests: New file.
15524         * tests/unistr/test-u16-strcoll.c: New file.
15525
15526         Tests for module 'unistr/u8-strcoll'.
15527         * modules/unistr/u8-strcoll-tests: New file.
15528         * tests/unistr/test-u8-strcoll.c: New file.
15529
15530         Tests for module 'unistr/u32-strcmp'.
15531         * modules/unistr/u32-strcmp-tests: New file.
15532         * tests/unistr/test-u32-strcmp.c: New file.
15533         * tests/unistr/test-u32-strcmp.h: New file.
15534
15535         Tests for module 'unistr/u16-strcmp'.
15536         * modules/unistr/u16-strcmp-tests: New file.
15537         * tests/unistr/test-u16-strcmp.c: New file.
15538         * tests/unistr/test-u16-strcmp.h: New file.
15539
15540         Tests for module 'unistr/u8-strcmp'.
15541         * modules/unistr/u8-strcmp-tests: New file.
15542         * tests/unistr/test-u8-strcmp.c: New file.
15543         * tests/unistr/test-u8-strcmp.h: New file.
15544         * tests/unistr/test-strcmp.h: New file.
15545
15546         Tests for module 'unistr/u32-strncat'.
15547         * modules/unistr/u32-strncat-tests: New file.
15548         * tests/unistr/test-u32-strncat.c: New file.
15549
15550         Tests for module 'unistr/u16-strncat'.
15551         * modules/unistr/u16-strncat-tests: New file.
15552         * tests/unistr/test-u16-strncat.c: New file.
15553
15554         Tests for module 'unistr/u8-strncat'.
15555         * modules/unistr/u8-strncat-tests: New file.
15556         * tests/unistr/test-u8-strncat.c: New file.
15557         * tests/unistr/test-strncat.h: New file.
15558
15559         Tests for module 'unistr/u32-strcat'.
15560         * modules/unistr/u32-strcat-tests: New file.
15561         * tests/unistr/test-u32-strcat.c: New file.
15562
15563         Tests for module 'unistr/u16-strcat'.
15564         * modules/unistr/u16-strcat-tests: New file.
15565         * tests/unistr/test-u16-strcat.c: New file.
15566
15567         Tests for module 'unistr/u8-strcat'.
15568         * modules/unistr/u8-strcat-tests: New file.
15569         * tests/unistr/test-u8-strcat.c: New file.
15570         * tests/unistr/test-strcat.h: New file.
15571
15572         Tests for module 'unistr/u32-stpncpy'.
15573         * modules/unistr/u32-stpncpy-tests: New file.
15574         * tests/unistr/test-u32-stpncpy.c: New file.
15575
15576         Tests for module 'unistr/u16-stpncpy'.
15577         * modules/unistr/u16-stpncpy-tests: New file.
15578         * tests/unistr/test-u16-stpncpy.c: New file.
15579
15580         Tests for module 'unistr/u8-stpncpy'.
15581         * modules/unistr/u8-stpncpy-tests: New file.
15582         * tests/unistr/test-u8-stpncpy.c: New file.
15583         * tests/unistr/test-stpncpy.h: New file.
15584
15585         Tests for module 'unistr/u32-strncpy'.
15586         * modules/unistr/u32-strncpy-tests: New file.
15587         * tests/unistr/test-u32-strncpy.c: New file.
15588
15589         Tests for module 'unistr/u16-strncpy'.
15590         * modules/unistr/u16-strncpy-tests: New file.
15591         * tests/unistr/test-u16-strncpy.c: New file.
15592
15593         Tests for module 'unistr/u8-strncpy'.
15594         * modules/unistr/u8-strncpy-tests: New file.
15595         * tests/unistr/test-u8-strncpy.c: New file.
15596         * tests/unistr/test-strncpy.h: New file.
15597
15598         Tests for module 'unistr/u32-stpcpy'.
15599         * modules/unistr/u32-stpcpy-tests: New file.
15600         * tests/unistr/test-u32-stpcpy.c: New file.
15601
15602         Tests for module 'unistr/u16-stpcpy'.
15603         * modules/unistr/u16-stpcpy-tests: New file.
15604         * tests/unistr/test-u16-stpcpy.c: New file.
15605
15606         Tests for module 'unistr/u8-stpcpy'.
15607         * modules/unistr/u8-stpcpy-tests: New file.
15608         * tests/unistr/test-u8-stpcpy.c: New file.
15609         * tests/unistr/test-stpcpy.h: New file.
15610
15611         Tests for module 'unistr/u32-strcpy'.
15612         * modules/unistr/u32-strcpy-tests: New file.
15613         * tests/unistr/test-u32-strcpy.c: New file.
15614
15615         Tests for module 'unistr/u16-strcpy'.
15616         * modules/unistr/u16-strcpy-tests: New file.
15617         * tests/unistr/test-u16-strcpy.c: New file.
15618
15619         Tests for module 'unistr/u8-strcpy'.
15620         * modules/unistr/u8-strcpy-tests: New file.
15621         * tests/unistr/test-u8-strcpy.c: New file.
15622         * tests/unistr/test-strcpy.h: New file.
15623
15624         Tests for module 'unistr/u32-strnlen'.
15625         * modules/unistr/u32-strnlen-tests: New file.
15626         * tests/unistr/test-u32-strnlen.c: New file.
15627
15628         Tests for module 'unistr/u16-strnlen'.
15629         * modules/unistr/u16-strnlen-tests: New file.
15630         * tests/unistr/test-u16-strnlen.c: New file.
15631
15632         Tests for module 'unistr/u8-strnlen'.
15633         * modules/unistr/u8-strnlen-tests: New file.
15634         * tests/unistr/test-u8-strnlen.c: New file.
15635         * tests/unistr/test-strnlen.h: New file.
15636
15637         Tests for module 'unistr/u32-strlen'.
15638         * modules/unistr/u32-strlen-tests: New file.
15639         * tests/unistr/test-u32-strlen.c: New file.
15640
15641         Tests for module 'unistr/u16-strlen'.
15642         * modules/unistr/u16-strlen-tests: New file.
15643         * tests/unistr/test-u16-strlen.c: New file.
15644
15645         Tests for module 'unistr/u8-strlen'.
15646         * modules/unistr/u8-strlen-tests: New file.
15647         * tests/unistr/test-u8-strlen.c: New file.
15648
15649         Tests for module 'unistr/u32-prev'.
15650         * modules/unistr/u32-prev-tests: New file.
15651         * tests/unistr/test-u32-prev.c: New file.
15652
15653         Tests for module 'unistr/u16-prev'.
15654         * modules/unistr/u16-prev-tests: New file.
15655         * tests/unistr/test-u16-prev.c: New file.
15656
15657         Tests for module 'unistr/u8-prev'.
15658         * modules/unistr/u8-prev-tests: New file.
15659         * tests/unistr/test-u8-prev.c: New file.
15660
15661         Tests for module 'unistr/u32-next'.
15662         * modules/unistr/u32-next-tests: New file.
15663         * tests/unistr/test-u32-next.c: New file.
15664
15665         Tests for module 'unistr/u16-next'.
15666         * modules/unistr/u16-next-tests: New file.
15667         * tests/unistr/test-u16-next.c: New file.
15668
15669         Tests for module 'unistr/u8-next'.
15670         * modules/unistr/u8-next-tests: New file.
15671         * tests/unistr/test-u8-next.c: New file.
15672
15673         Tests for module 'unistr/u32-strmbtouc'.
15674         * modules/unistr/u32-strmbtouc-tests: New file.
15675         * tests/unistr/test-u32-strmbtouc.c: New file.
15676
15677         Tests for module 'unistr/u16-strmbtouc'.
15678         * modules/unistr/u16-strmbtouc-tests: New file.
15679         * tests/unistr/test-u16-strmbtouc.c: New file.
15680
15681         Tests for module 'unistr/u8-strmbtouc'.
15682         * modules/unistr/u8-strmbtouc-tests: New file.
15683         * tests/unistr/test-u8-strmbtouc.c: New file.
15684
15685         Tests for module 'unistr/u32-strmblen'.
15686         * modules/unistr/u32-strmblen-tests: New file.
15687         * tests/unistr/test-u32-strmblen.c: New file.
15688
15689         Tests for module 'unistr/u16-strmblen'.
15690         * modules/unistr/u16-strmblen-tests: New file.
15691         * tests/unistr/test-u16-strmblen.c: New file.
15692
15693         Tests for module 'unistr/u8-strmblen'.
15694         * modules/unistr/u8-strmblen-tests: New file.
15695         * tests/unistr/test-u8-strmblen.c: New file.
15696
15697         Tests for module 'unistr/u32-cpy-alloc'.
15698         * modules/unistr/u32-cpy-alloc-tests: New file.
15699         * tests/unistr/test-u32-cpy-alloc.c: New file.
15700
15701         Tests for module 'unistr/u16-cpy-alloc'.
15702         * modules/unistr/u16-cpy-alloc-tests: New file.
15703         * tests/unistr/test-u16-cpy-alloc.c: New file.
15704
15705         Tests for module 'unistr/u8-cpy-alloc'.
15706         * modules/unistr/u8-cpy-alloc-tests: New file.
15707         * tests/unistr/test-u8-cpy-alloc.c: New file.
15708         * tests/unistr/test-cpy-alloc.h: New file.
15709
15710         Tests for module 'unistr/u32-mbsnlen'.
15711         * modules/unistr/u32-mbsnlen-tests: New file.
15712         * tests/unistr/test-u32-mbsnlen.c: New file.
15713
15714         Tests for module 'unistr/u16-mbsnlen'.
15715         * modules/unistr/u16-mbsnlen-tests: New file.
15716         * tests/unistr/test-u16-mbsnlen.c: New file.
15717
15718         Tests for module 'unistr/u8-mbsnlen'.
15719         * modules/unistr/u8-mbsnlen-tests: New file.
15720         * tests/unistr/test-u8-mbsnlen.c: New file.
15721
15722         Tests for module 'unistr/u32-chr'.
15723         * modules/unistr/u32-chr-tests: New file.
15724         * tests/unistr/test-u32-chr.c: New file.
15725
15726         Tests for module 'unistr/u16-chr'.
15727         * modules/unistr/u16-chr-tests: New file.
15728         * tests/unistr/test-u16-chr.c: New file.
15729
15730         Tests for module 'unistr/u8-chr'.
15731         * modules/unistr/u8-chr-tests: New file.
15732         * tests/unistr/test-u8-chr.c: New file.
15733         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
15734
15735         Tests for module 'unistr/u32-cmp2'.
15736         * modules/unistr/u32-cmp2-tests: New file.
15737         * tests/unistr/test-u32-cmp2.c: New file.
15738
15739         Tests for module 'unistr/u16-cmp2'.
15740         * modules/unistr/u16-cmp2-tests: New file.
15741         * tests/unistr/test-u16-cmp2.c: New file.
15742
15743         Tests for module 'unistr/u8-cmp2'.
15744         * modules/unistr/u8-cmp2-tests: New file.
15745         * tests/unistr/test-u8-cmp2.c: New file.
15746         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
15747
15748         Tests for module 'unistr/u32-cmp'.
15749         * modules/unistr/u32-cmp-tests: New file.
15750         * tests/unistr/test-u32-cmp.c: New file.
15751
15752         Tests for module 'unistr/u16-cmp'.
15753         * modules/unistr/u16-cmp-tests: New file.
15754         * tests/unistr/test-u16-cmp.c: New file.
15755
15756         Tests for module 'unistr/u8-cmp'.
15757         * modules/unistr/u8-cmp-tests: New file.
15758         * tests/unistr/test-u8-cmp.c: New file.
15759         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
15760
15761         Tests for module 'unistr/u32-set'.
15762         * modules/unistr/u32-set-tests: New file.
15763         * tests/unistr/test-u32-set.c: New file.
15764
15765         Tests for module 'unistr/u16-set'.
15766         * modules/unistr/u16-set-tests: New file.
15767         * tests/unistr/test-u16-set.c: New file.
15768
15769         Tests for module 'unistr/u8-set'.
15770         * modules/unistr/u8-set-tests: New file.
15771         * tests/unistr/test-u8-set.c: New file.
15772         * tests/unistr/test-set.h: New file.
15773
15774         Tests for module 'unistr/u32-move'.
15775         * modules/unistr/u32-move-tests: New file.
15776         * tests/unistr/test-u32-move.c: New file.
15777
15778         Tests for module 'unistr/u16-move'.
15779         * modules/unistr/u16-move-tests: New file.
15780         * tests/unistr/test-u16-move.c: New file.
15781
15782         Tests for module 'unistr/u8-move'.
15783         * modules/unistr/u8-move-tests: New file.
15784         * tests/unistr/test-u8-move.c: New file.
15785         * tests/unistr/test-move.h: New file.
15786
15787         Tests for module 'unistr/u32-cpy'.
15788         * modules/unistr/u32-cpy-tests: New file.
15789         * tests/unistr/test-u32-cpy.c: New file.
15790
15791         Tests for module 'unistr/u16-cpy'.
15792         * modules/unistr/u16-cpy-tests: New file.
15793         * tests/unistr/test-u16-cpy.c: New file.
15794
15795         Tests for module 'unistr/u8-cpy'.
15796         * modules/unistr/u8-cpy-tests: New file.
15797         * tests/unistr/test-u8-cpy.c: New file.
15798         * tests/unistr/test-cpy.h: New file.
15799
15800 2010-01-09  Bruno Haible  <bruno@clisp.org>
15801
15802         Tests for module 'unistr/u32-uctomb'.
15803         * modules/unistr/u32-uctomb-tests: New file.
15804         * tests/unistr/test-u32-uctomb.c: New file.
15805
15806         Tests for module 'unistr/u16-uctomb'.
15807         * modules/unistr/u16-uctomb-tests: New file.
15808         * tests/unistr/test-u16-uctomb.c: New file.
15809
15810         Tests for module 'unistr/u8-uctomb'.
15811         * modules/unistr/u8-uctomb-tests: New file.
15812         * tests/unistr/test-u8-uctomb.c: New file.
15813
15814         Tests for module 'unistr/u32-mbtoucr'.
15815         * modules/unistr/u32-mbtoucr-tests: New file.
15816         * tests/unistr/test-u32-mbtoucr.c: New file.
15817
15818         Tests for module 'unistr/u16-mbtoucr'.
15819         * modules/unistr/u16-mbtoucr-tests: New file.
15820         * tests/unistr/test-u16-mbtoucr.c: New file.
15821
15822         Tests for module 'unistr/u8-mbtoucr'.
15823         * modules/unistr/u8-mbtoucr-tests: New file.
15824         * tests/unistr/test-u8-mbtoucr.c: New file.
15825
15826         Tests for module 'unistr/u32-mbtouc'.
15827         * modules/unistr/u32-mbtouc-tests: New file.
15828         * tests/unistr/test-u32-mbtouc.c: New file.
15829
15830         Tests for module 'unistr/u16-mbtouc'.
15831         * modules/unistr/u16-mbtouc-tests: New file.
15832         * tests/unistr/test-u16-mbtouc.c: New file.
15833
15834         Tests for module 'unistr/u8-mbtouc'.
15835         * modules/unistr/u8-mbtouc-tests: New file.
15836         * tests/unistr/test-u8-mbtouc.c: New file.
15837
15838         Tests for module 'unistr/u32-mbtouc-unsafe'.
15839         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
15840         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
15841         * tests/unistr/test-u32-mbtouc.h: New file.
15842
15843         Tests for module 'unistr/u16-mbtouc-unsafe'.
15844         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
15845         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
15846         * tests/unistr/test-u16-mbtouc.h: New file.
15847
15848         Tests for module 'unistr/u8-mbtouc-unsafe'.
15849         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
15850         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
15851         * tests/unistr/test-u8-mbtouc.h: New file.
15852
15853         Tests for module 'unistr/u32-mblen'.
15854         * modules/unistr/u32-mblen-tests: New file.
15855         * tests/unistr/test-u32-mblen.c: New file.
15856
15857         Tests for module 'unistr/u16-mblen'.
15858         * modules/unistr/u16-mblen-tests: New file.
15859         * tests/unistr/test-u16-mblen.c: New file.
15860
15861         Tests for module 'unistr/u8-mblen'.
15862         * modules/unistr/u8-mblen-tests: New file.
15863         * tests/unistr/test-u8-mblen.c: New file.
15864
15865         Tests for module 'unistr/u32-to-u16'.
15866         * modules/unistr/u32-to-u16-tests: New file.
15867         * tests/unistr/test-u32-to-u16.c: New file.
15868
15869         Tests for module 'unistr/u32-to-u8'.
15870         * modules/unistr/u32-to-u8-tests: New file.
15871         * tests/unistr/test-u32-to-u8.c: New file.
15872
15873         Tests for module 'unistr/u16-to-u32'.
15874         * modules/unistr/u16-to-u32-tests: New file.
15875         * tests/unistr/test-u16-to-u32.c: New file.
15876
15877         Tests for module 'unistr/u16-to-u8'.
15878         * modules/unistr/u16-to-u8-tests: New file.
15879         * tests/unistr/test-u16-to-u8.c: New file.
15880
15881         Tests for module 'unistr/u8-to-u32'.
15882         * modules/unistr/u8-to-u32-tests: New file.
15883         * tests/unistr/test-u8-to-u32.c: New file.
15884
15885         Tests for module 'unistr/u8-to-u16'.
15886         * modules/unistr/u8-to-u16-tests: New file.
15887         * tests/unistr/test-u8-to-u16.c: New file.
15888
15889         Tests for module 'unistr/u32-check'.
15890         * modules/unistr/u32-check-tests: New file.
15891         * tests/unistr/test-u32-check.c: New file.
15892
15893         Tests for module 'unistr/u16-check'.
15894         * modules/unistr/u16-check-tests: New file.
15895         * tests/unistr/test-u16-check.c: New file.
15896
15897         Tests for module 'unistr/u8-check'.
15898         * modules/unistr/u8-check-tests: New file.
15899         * tests/unistr/test-u8-check.c: New file.
15900
15901         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
15902         (category_equals): New function.
15903         (main): Add more tests.
15904         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
15905
15906         * tests/unictype/test-bidi_byname.c (main): Add more tests.
15907
15908 2010-01-10  Bruno Haible  <bruno@clisp.org>
15909
15910         unistr/u*-strcoll: Try harder to distinguish different strings.
15911         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
15912         compare s1 and s2 to see if they are different.
15913
15914 2010-01-10  Bruno Haible  <bruno@clisp.org>
15915
15916         unistr/u*-stpncpy: Fix the return value.
15917         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
15918         description of the return value consistent with stpncpy in glibc.
15919         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
15920         written non-NUL unit.
15921
15922 2010-01-10  Bruno Haible  <bruno@clisp.org>
15923
15924         unistr/u*-next: Add missing dependencies.
15925         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
15926         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
15927         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
15928
15929 2010-01-10  Bruno Haible  <bruno@clisp.org>
15930
15931         unistr/u8-mbsnlen: Fix return value for incomplete character.
15932         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
15933         u8_mblen.
15934         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
15935         Remove unistr/u8-mblen.
15936         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
15937         u16_mblen.
15938         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
15939         Remove unistr/u16-mblen.
15940
15941 2010-01-10  Bruno Haible  <bruno@clisp.org>
15942
15943         wchar: Fix compilation error when <wchar.h> is used from coreutils.
15944         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
15945         Reported by Brian Gough <bjg@gnu.org> and
15946         Chris Clayton <chris2553@googlemail.com> via
15947         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
15948
15949 2010-01-09  Bruno Haible  <bruno@clisp.org>
15950
15951         unistr/u16-to-u32: Reject invalid input.
15952         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
15953         u16_mbtouc.
15954         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
15955         Remove unistr/u16-mbtouc.
15956
15957         unistr/u16-to-u8: Reject invalid input.
15958         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
15959         u16_mbtouc.
15960         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
15961         Remove unistr/u16-mbtouc.
15962
15963         unistr/u8-to-u32: Reject invalid input.
15964         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
15965         u8_mbtouc.
15966         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
15967         Remove unistr/u8-mbtouc.
15968
15969         unistr/u8-to-u16: Reject invalid input.
15970         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
15971         u8_mbtouc.
15972         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
15973         Remove unistr/u8-mbtouc.
15974
15975 2010-01-09  Bruno Haible  <bruno@clisp.org>
15976
15977         Tests for module 'getlogin'.
15978         * modules/getlogin-tests: New file.
15979         * tests/test-getlogin.c: New file.
15980
15981         New module 'getlogin'.
15982         * lib/unistd.in.h (getlogin): New declaration.
15983         * lib/getlogin.c: New file.
15984         * m4/getlogin.m4: New file.
15985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
15986         HAVE_GETLOGIN.
15987         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
15988         HAVE_GETLOGIN.
15989         * modules/getlogin: New file.
15990         * doc/posix-functions/getlogin.texi: Mention the new module.
15991         Reported by John W. Eaton <jwe@gnu.org>.
15992
15993 2010-01-09  Bruno Haible  <bruno@clisp.org>
15994
15995         getlogin_r: Support for native Windows.
15996         * lib/getlogin_r.c: Include <windows.h>
15997         (getlogin_r): Implement for native Windows.
15998         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
15999         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
16000         via John W. Eaton <jwe@gnu.org>.
16001
16002 2010-01-09  Bruno Haible  <bruno@clisp.org>
16003
16004         getlogin_r: Small fixes.
16005         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
16006         succeeds.
16007         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
16008         before testing whether getlogin_r is declared. No need to set
16009         HAVE_DECL_GETLOGIN_R to 1.
16010         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
16011
16012 2010-01-09  Bruno Haible  <bruno@clisp.org>
16013
16014         * lib/unistd.in.h (getlogin_r): Add comment.
16015
16016 2010-01-09  Bruno Haible  <bruno@clisp.org>
16017
16018         Tests for module 'getlogin_r'.
16019         * modules/getlogin_r-tests: New file.
16020         * tests/test-getlogin_r.c: New file.
16021
16022 2010-01-09  Jim Meyering  <meyering@redhat.com>
16023
16024         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
16025         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
16026         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
16027
16028 2010-01-08  Simon Josefsson  <simon@josefsson.org>
16029
16030         * lib/dup2.c (rpl_dup2): Improve comment.
16031
16032 2010-01-08  Eric Blake  <ebb9@byu.net>
16033
16034         maint.mk: allow packages to add makefile @@ exceptions
16035         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
16036         (sc_makefile_check): Rename...
16037         (sc_makefile_at_at_check): ...to this, and use hook.
16038
16039         dup2: work around mingw bug
16040         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
16041         Reported by Simon Josefsson.
16042
16043 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
16044
16045         glob: Fix C++ compilation.
16046         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
16047         C++.
16048
16049 2010-01-07  Bruno Haible  <bruno@clisp.org>
16050
16051         Fix indentation of wctype.in.h, broken since 2007-01-06.
16052         * lib/wctype.in.h: Fix indentation of preprocessor directives.
16053
16054 2010-01-07  Bruno Haible  <bruno@clisp.org>
16055
16056         mbslen: Avoid collision with system function.
16057         * lib/string.in.h [MirBSD]: Include <wchar.h>.
16058         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
16059         * m4/mbslen.m4: New file.
16060         * modules/mbslen (Files): Add it.
16061         (configure.ac): Invoke gl_MBSLEN.
16062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
16063         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
16064         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
16065         via Ian Beckwith <ianb@erislabs.net>.
16066
16067 2010-01-07  Bruno Haible  <bruno@clisp.org>
16068
16069         dirent: Document the last fix.
16070         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
16071
16072 2010-01-07  Bruno Haible  <bruno@clisp.org>
16073
16074         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
16075         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
16076         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
16077         va_list are defined.
16078         * doc/posix-headers/stdio.texi: Document the bug of missing types.
16079         Reported by Eric Blake.
16080
16081 2010-01-07  Bruno Haible  <bruno@clisp.org>
16082
16083         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
16084         * modules/xlist (Depends-on): Add 'list',
16085         * modules/xoset (Depends-on): Add 'oset'.
16086         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16087
16088 2010-01-07  Bruno Haible  <bruno@clisp.org>
16089
16090         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
16091         * doc/posix-functions/strncasecmp.texi: Likewise.
16092
16093 2010-01-07  Bruno Haible  <bruno@clisp.org>
16094
16095         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
16096
16097 2010-01-07  John W. Eaton  <jwe@octave.org>
16098
16099         wctype: allow C++ use
16100         * lib/wctype.in.h: Add extern "C" block for C++.
16101
16102 2010-01-06  Eric Blake  <ebb9@byu.net>
16103
16104         maint.mk: detect incorrect GFDL usage
16105         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
16106
16107 2010-01-06  Jim Meyering  <meyering@redhat.com>
16108         and Eric Blake  <ebb9@byu.net>
16109
16110         maint.mk: ignore multi-line copyright in NEWS
16111         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
16112
16113 2010-01-06  Eric Blake  <ebb9@byu.net>
16114
16115         select: add missing dependency
16116         * modules/select-tests (Depends-on): Move sockets dependency...
16117         * modules/select (Depends-on): ...here.
16118         Reported by Ian Beckwith.
16119
16120         doc: regenerate INSTALL
16121         * doc/INSTALL: Reflect recent autoconf update.
16122         * doc/INSTALL.ISO: Likewise.
16123         * doc/INSTALL.UTF-8: Likewise.
16124
16125         pread: fix compilation on glibc
16126         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16127         Reported by Ralf Wildenhues.
16128
16129         dirent: fix test failure
16130         * lib/dirent.in.h (includes): Guarantee ino_t.
16131         Reported by Ralf Wildenhues.
16132
16133 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
16134
16135         linkat, renameat: avoid bad free
16136         * lib/at-func2.c (at_func2): Fix typo.
16137         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
16138
16139 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16140
16141         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
16142         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
16143         to avoid failure of symlink test later.
16144
16145 2010-01-06  Eric Blake  <ebb9@byu.net>
16146
16147         stdio, unistd: guarantee ssize_t
16148         * lib/unistd.in.h (includes): Ensure that types required by POSIX
16149         2008 are exposed when needed.
16150         * lib/stdio.in.h (includes): Likewise.
16151         Reported by Ralf Wildenhues.
16152
16153 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
16154
16155         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
16156         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
16157         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
16158
16159 2010-01-06  Jim Meyering  <meyering@redhat.com>
16160
16161         readtokens: this module *does* require xalloc.h
16162         It uses only functions that were omitted by the old syntax-check rule.
16163         * lib/readtokens.c: Include "xalloc.h" once again.
16164         * modules/readtokens (Depends-on): Add xalloc.
16165         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
16166
16167 2010-01-05  Eric Blake  <ebb9@byu.net>
16168
16169         maint: support 'make announcement' from a VPATH build
16170         * top/maint.mk (announcement): Look for correct NEWS file.
16171
16172 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
16173
16174         utimens (fdutimens): ignore a negative FD, per contract
16175         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
16176         when we have a valid file descriptor.  Otherwise, using a brand
16177         new glibc (with just-patched futimens that now fails with EBADF)
16178         would cause this function to fail with ENOSYS.
16179         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
16180         See also http://bugzilla.redhat.com/552320.
16181
16182 2010-01-05  Eric Blake  <ebb9@byu.net>
16183
16184         strcase: document what it provides
16185         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
16186         gnulib module.
16187         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
16188         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
16189
16190 2010-01-05  Jim Meyering  <meyering@redhat.com>
16191
16192         maint: remove useless inclusions of "xalloc.h"
16193         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
16194         * lib/readtokens.c: Likewise.
16195         * lib/same.c: Likewise.
16196         * modules/getloadavg (Depends-on): Remove xalloc.
16197         * modules/readtokens: Likewise.
16198         * modules/same: Likewise.
16199
16200         maint.mk: include 4 more function names in alloca.h-checking regexp
16201         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
16202         regexp.  Before, we would give a false-positive (saying alloca.h
16203         is included unnecessarily) when the only uses involved omitted symbols.
16204
16205         xalloc.h: use consistent formatting
16206         * lib/xalloc.h: Move declarations to start in the first column.
16207
16208 2010-01-05  Eric Blake  <ebb9@byu.net>
16209
16210         mkdir: avoid xalloc
16211         * lib/mkdir.c (includes): Drop unused header.
16212         Reported by John W. Eaton.
16213
16214 2010-01-04  Jim Meyering  <meyering@redhat.com>
16215
16216         nl_langinfo: avoid configure-time syntax error
16217         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
16218         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
16219         the empty string.  Don't let that provoke a shell syntax error.
16220
16221         regcomp, regexec, fnmatch: avoid array bounds read error
16222         * lib/regcomp.c (build_equiv_class): From glibc:
16223         Use only the low 24 bits of a findidx return value as an index
16224         into the weights array.  Patch by Ulrich Drepper:
16225         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
16226         * lib/regexec.c (check_node_accept_bytes): Likewise.
16227         * lib/fnmatch_loop.c (FCT): Likewise.
16228
16229         regcomp: skip collseq lookup when there are no rules
16230         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
16231         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
16232
16233         regcomp: recognize ill-formed { } expressions
16234         * lib/regcomp.c (parse_dup_op): From glibc:
16235         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
16236
16237         regcomp: fix typo in comment
16238         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
16239         s/satisfy/satisfies/.
16240
16241         regcomp: sync from glibc: remove dead store
16242         * lib/regcomp.c (duplicate_node_closure): Remove useless
16243         search_duplicated_node call and dead store.
16244
16245         regcomp: sync from glibc; always use nl_langinfo
16246         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
16247         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
16248         * modules/regex (Depends-on): Add nl_langinfo.
16249
16250 2010-01-04  Eric Blake  <ebb9@byu.net>
16251
16252         fdopendir: fix configure test
16253         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
16254
16255 2010-01-01  Bruno Haible  <bruno@clisp.org>
16256
16257         wchar: Remove unused configure check.
16258         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
16259
16260 2010-01-01  Eric Blake  <ebb9@byu.net>
16261
16262         headers: make check of system header explicit
16263         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
16264         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
16265         ourselves.
16266         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16267         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16268         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16269         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
16270         internals.
16271         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
16272         missing.
16273         Suggested by Bruno Haible.
16274
16275 2010-01-01  Jim Meyering  <meyering@redhat.com>
16276
16277         ChangeLog: tweak to eliminate unnecessary copyright line
16278         * ChangeLog: Remove a copyright line that was mistakenly updated
16279         by today's update-copyright run.  Reported by Eric Blake.
16280
16281         test-update-copyright: don't let envvar setting cause test failure
16282         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16283
16284 2010-01-01  Bruno Haible  <bruno@clisp.org>
16285
16286         localename: Avoid gcc warning.
16287         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
16288         function if it is not used.
16289
16290 2010-01-01  Jim Meyering  <meyering@redhat.com>
16291
16292         update nearly all FSF copyright year lists to include 2010
16293         Use the same procedure as for 2009, outlined in
16294         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
16295
16296         version-etc: set COPYRIGHT_YEAR to 2010
16297         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
16298
16299 2009-12-31  Eric Blake  <ebb9@byu.net>
16300
16301         doc: correct availability of cygwin 1.5.x getopt
16302         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
16303         variables.
16304         * doc/posix-functions/opterr.texi (opterr): Likewise.
16305         * doc/posix-functions/optind.texi (optind): Likewise.
16306         * doc/posix-functions/optopt.texi (optopt): Likewise.
16307         * doc/posix-functions/tzname.texi (tzname): Likewise.
16308
16309         openat: update maintainer
16310         * modules/openat (Maintainer): Add myself.
16311
16312         utimens: avoid shadowing warning
16313         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
16314         buffers into one, to avoid shadowing, as well as avoiding a
16315         redundant stat.
16316         Reported by Jim Meyering.
16317
16318         test-dup2: avoid compiler warning
16319         * tests/test-dup2.c (is_inheritable): Only define if used.
16320
16321 2010-01-01  Bruno Haible  <bruno@clisp.org>
16322
16323         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
16324         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
16325         defined, use wctomb instead of wcrtomb.
16326
16327 2010-01-01  Bruno Haible  <bruno@clisp.org>
16328
16329         iconv: Reject native Solaris iconv.
16330         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
16331         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
16332
16333 2009-12-31  Bruno Haible  <bruno@clisp.org>
16334
16335         * tests/test-signal.c (main): Remove test of 'SIG'.
16336
16337 2009-12-31  Bruno Haible  <bruno@clisp.org>
16338
16339         spawn: Fix incomplete fix.
16340         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16341         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16342         warnings for GNULIB_POSIXCHECK again.
16343         Reported by Eric Blake.
16344
16345 2009-12-31  Bruno Haible  <bruno@clisp.org>
16346
16347         Avoid namespace pollution on glibc systems.
16348         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16349         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16350         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16351         glibc systems.
16352
16353 2009-12-31  Bruno Haible  <bruno@clisp.org>
16354
16355         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16356         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16357         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16358         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16359         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16360         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16361         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16362
16363 2009-12-31  Bruno Haible  <bruno@clisp.org>
16364
16365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16366         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
16367         afterwards.
16368
16369 2009-12-31  Bruno Haible  <bruno@clisp.org>
16370
16371         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
16372         SYS_UTSNAME_H.
16373
16374 2009-12-31  Bruno Haible  <bruno@clisp.org>
16375
16376         spawn: Fix misapplied patch.
16377         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16378         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16379         warnings for GNULIB_POSIXCHECK.
16380
16381 2009-12-31  Bruno Haible  <bruno@clisp.org>
16382
16383         times: Update after sys_times changed.
16384         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
16385         * modules/times (Files): Add it.
16386         (configure.ac): Invoke gl_FUNC_TIMES.
16387
16388 2009-12-31  Bruno Haible  <bruno@clisp.org>
16389
16390         Use AC_C_INLINE where necessary.
16391         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
16392         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16393         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16394         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16395         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16396         * m4/mbiter.m4 (gl_MBITER): Likewise.
16397         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16398         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16399         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
16400         * modules/u64 (configure.ac): Likewise.
16401
16402 2009-12-31  Bruno Haible  <bruno@clisp.org>
16403
16404         Use AC_C_INLINE instead of module 'inline' where possible.
16405         * modules/inline (Description): Clarify purpose.
16406         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
16407         * modules/count-one-bits (Depends-on): Remove inline.
16408         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
16409         * modules/openat (Depends-on): Remove inline.
16410         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
16411         instead of depending on module 'inline'.
16412         * modules/filevercmp (Depends-on, configure.ac): Likewise.
16413         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
16414         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
16415         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
16416         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
16417         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
16418         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
16419         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
16420         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
16421         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
16422         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
16423         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
16424         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
16425         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
16426         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
16427         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
16428         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
16429         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
16430         Likewise.
16431         * modules/unictype/property-ascii-hex-digit (Depends-on,
16432         configure.ac): Likewise.
16433         * modules/unictype/property-bidi-arabic-digit (Depends-on,
16434         configure.ac): Likewise.
16435         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
16436         configure.ac): Likewise.
16437         * modules/unictype/property-bidi-block-separator (Depends-on,
16438         configure.ac): Likewise.
16439         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
16440         configure.ac): Likewise.
16441         * modules/unictype/property-bidi-common-separator (Depends-on,
16442         configure.ac): Likewise.
16443         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
16444         Likewise.
16445         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
16446         configure.ac): Likewise.
16447         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
16448         configure.ac): Likewise.
16449         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
16450         configure.ac): Likewise.
16451         * modules/unictype/property-bidi-european-digit (Depends-on,
16452         configure.ac): Likewise.
16453         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
16454         configure.ac): Likewise.
16455         * modules/unictype/property-bidi-left-to-right (Depends-on,
16456         configure.ac): Likewise.
16457         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
16458         configure.ac): Likewise.
16459         * modules/unictype/property-bidi-other-neutral (Depends-on,
16460         configure.ac): Likewise.
16461         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
16462         Likewise.
16463         * modules/unictype/property-bidi-segment-separator (Depends-on,
16464         configure.ac): Likewise.
16465         * modules/unictype/property-bidi-whitespace (Depends-on,
16466         configure.ac): Likewise.
16467         * modules/unictype/property-combining (Depends-on, configure.ac):
16468         Likewise.
16469         * modules/unictype/property-composite (Depends-on, configure.ac):
16470         Likewise.
16471         * modules/unictype/property-currency-symbol (Depends-on,
16472         configure.ac): Likewise.
16473         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16474         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16475         Likewise.
16476         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16477         configure.ac): Likewise.
16478         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16479         Likewise.
16480         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16481         Likewise.
16482         * modules/unictype/property-extender (Depends-on, configure.ac):
16483         Likewise.
16484         * modules/unictype/property-format-control (Depends-on, configure.ac):
16485         Likewise.
16486         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16487         Likewise.
16488         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16489         Likewise.
16490         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16491         Likewise.
16492         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16493         Likewise.
16494         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16495         Likewise.
16496         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16497         Likewise.
16498         * modules/unictype/property-id-start (Depends-on, configure.ac):
16499         Likewise.
16500         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16501         Likewise.
16502         * modules/unictype/property-ids-binary-operator (Depends-on,
16503         configure.ac): Likewise.
16504         * modules/unictype/property-ids-trinary-operator (Depends-on,
16505         configure.ac): Likewise.
16506         * modules/unictype/property-ignorable-control (Depends-on,
16507         configure.ac): Likewise.
16508         * modules/unictype/property-iso-control (Depends-on, configure.ac):
16509         Likewise.
16510         * modules/unictype/property-join-control (Depends-on, configure.ac):
16511         Likewise.
16512         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
16513         Likewise.
16514         * modules/unictype/property-line-separator (Depends-on, configure.ac):
16515         Likewise.
16516         * modules/unictype/property-logical-order-exception (Depends-on,
16517         configure.ac): Likewise.
16518         * modules/unictype/property-lowercase (Depends-on, configure.ac):
16519         Likewise.
16520         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
16521         * modules/unictype/property-non-break (Depends-on, configure.ac):
16522         Likewise.
16523         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
16524         Likewise.
16525         * modules/unictype/property-numeric (Depends-on, configure.ac):
16526         Likewise.
16527         * modules/unictype/property-other-alphabetic (Depends-on,
16528         configure.ac): Likewise.
16529         * modules/unictype/property-other-default-ignorable-code-point
16530         (Depends-on, configure.ac): Likewise.
16531         * modules/unictype/property-other-grapheme-extend (Depends-on,
16532         configure.ac): Likewise.
16533         * modules/unictype/property-other-id-continue (Depends-on,
16534         configure.ac): Likewise.
16535         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
16536         Likewise.
16537         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
16538         Likewise.
16539         * modules/unictype/property-other-math (Depends-on, configure.ac):
16540         Likewise.
16541         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
16542         Likewise.
16543         * modules/unictype/property-paired-punctuation (Depends-on,
16544         configure.ac): Likewise.
16545         * modules/unictype/property-paragraph-separator (Depends-on,
16546         configure.ac): Likewise.
16547         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
16548         Likewise.
16549         * modules/unictype/property-pattern-white-space (Depends-on,
16550         configure.ac): Likewise.
16551         * modules/unictype/property-private-use (Depends-on, configure.ac):
16552         Likewise.
16553         * modules/unictype/property-punctuation (Depends-on, configure.ac):
16554         Likewise.
16555         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
16556         Likewise.
16557         * modules/unictype/property-radical (Depends-on, configure.ac):
16558         Likewise.
16559         * modules/unictype/property-sentence-terminal (Depends-on,
16560         configure.ac): Likewise.
16561         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
16562         Likewise.
16563         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
16564         * modules/unictype/property-terminal-punctuation (Depends-on,
16565         configure.ac): Likewise.
16566         * modules/unictype/property-titlecase (Depends-on, configure.ac):
16567         Likewise.
16568         * modules/unictype/property-unassigned-code-value (Depends-on,
16569         configure.ac): Likewise.
16570         * modules/unictype/property-unified-ideograph (Depends-on,
16571         configure.ac): Likewise.
16572         * modules/unictype/property-uppercase (Depends-on, configure.ac):
16573         Likewise.
16574         * modules/unictype/property-variation-selector (Depends-on,
16575         configure.ac): Likewise.
16576         * modules/unictype/property-white-space (Depends-on, configure.ac):
16577         Likewise.
16578         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
16579         Likewise.
16580         * modules/unictype/property-xid-start (Depends-on, configure.ac):
16581         Likewise.
16582         * modules/unictype/property-zero-width (Depends-on, configure.ac):
16583         Likewise.
16584         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
16585         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
16586         Likewise.
16587
16588 2009-12-31  Bruno Haible  <bruno@clisp.org>
16589
16590         Remove unnecessary AC_C_INLINE invocation.
16591         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
16592         since 2009-08-21.
16593
16594 2009-12-31  Jim Meyering  <meyering@redhat.com>
16595
16596         maint.mk: don't require explicit gpg_key_ID in cfg.mk
16597         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
16598         With this change, we can all remove the gpg_key_ID = ... definition
16599         from our respective cfg.mk files.
16600
16601         maint.mk: create announcement template in ~/, not in /tmp
16602         * top/maint.mk (emit_upload_commands): Adjust.
16603         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
16604         Remove temporary file, .ci-msg.
16605
16606 2009-12-31  Eric Blake  <ebb9@byu.net>
16607
16608         link-warning: always build headers with link warnings
16609         * modules/arpa_inet (Makefile.am): Always build replacement
16610         header.
16611         * modules/ctype (Makefile.am): Likewise.
16612         * modules/dirent (Makefile.am): Likewise.
16613         * modules/inttypes (Makefile.am): Likewise.
16614         * modules/langinfo (Makefile.am): Likewise.
16615         * modules/locale (Makefile.am): Likewise.
16616         * modules/spawn (Makefile.am): Likewise.
16617         * modules/sys_file (Makefile.am): Likewise.
16618         * modules/sys_ioctl (Makefile.am): Likewise.
16619         * modules/sys_select (Makefile.am): Likewise.
16620         * modules/sys_socket (Makefile.am): Likewise.
16621         * modules/sys_times (Makefile.am): Likewise.
16622         * modules/sys_utsname (Makefile.am): Likewise.
16623         * modules/sys_wait (Makefile.am): Likewise.
16624         * modules/wchar (Makefile.am): Likewise.
16625         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
16626         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
16627         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
16628         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
16629         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
16630         Likewise.
16631         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16632         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16633         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
16634         Likewise.
16635         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
16636         Likewise.
16637         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
16639         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
16640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16641         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16642         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16643         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16644         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
16645         (gl_WCHAR_H_DEFAULTS): Likewise.
16646
16647 2009-12-31  Eric Blake  <ebb9@byu.net>
16648
16649         signal, spawn: use link warnings
16650         * lib/signal.in.h (sigset_t): Make unconditional.
16651         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
16652         (sigpending, sigprocmask, sigaction): Add link warnings.
16653         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
16654         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
16655         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
16656         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
16657         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
16658         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
16659         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
16660         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
16661         (posix_spawn_file_actions_destroy)
16662         (posix_spawn_file_actions_addopen)
16663         (posix_spawn_file_actions_addclose)
16664         (posix_spawn_file_actions_adddup2): Likewise.
16665         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
16666         * tests/test-signal.c (main): Enhance test.
16667
16668         spawn: improve wrapper support
16669         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
16670         (gl_SPAWN_H_DEFAULTS): New defaults.
16671         * modules/spawn (Makefile.am): Substitute them.
16672         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
16673         Only declare if missing or broken.
16674
16675         sys_times, sys_utsname: use include_next
16676         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
16677         header.
16678         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
16679         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16680         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16681         * modules/sys_times (Depends-on): Add include_next.
16682         (Makefile.am): Substitute additional values.
16683         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16684         * lib/sys_times.in.h (includes): Include native header, if
16685         available.
16686         * lib/sys_utsname.in.h (includes): Likewise.
16687         * tests/test-sys_times.c (main): Enhance test.
16688
16689         fdutimensat: revert prior patch
16690         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
16691         utimens.h.
16692         Reported by Bruno Haible.
16693
16694 2009-12-30  Eric Blake  <ebb9@byu.net>
16695
16696         sys_wait: drop link-warning dependency
16697         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
16698         link-warning efforts.
16699         * lib/sys_wait.in.h: Likewise.
16700
16701         fdutimensat: remove bogus dependency
16702         * modules/fdutimensat (Depends-on): Drop inline.
16703
16704         unistd: fix typo
16705         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
16706
16707 2009-12-30  Bruno Haible  <bruno@clisp.org>
16708
16709         Fix compilation error with Solaris cc.
16710         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
16711         * lib/unicase/u16-is-invariant.c: Likewise.
16712         * lib/unicase/u32-is-invariant.c: Likewise.
16713         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16714
16715 2009-12-30  Bruno Haible  <bruno@clisp.org>
16716
16717         Fix test crash.
16718         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
16719         locales.
16720         Reported by Simon Josefsson <simon@josefsson.org>.
16721
16722 2009-12-30  Bruno Haible  <bruno@clisp.org>
16723
16724         Fix compilation error on most platforms.
16725         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
16726         Reported by Simon Josefsson <simon@josefsson.org>
16727         and Nelson H. F. Beebe <beebe@math.utah.edu>.
16728
16729 2009-12-30  Eric Blake  <ebb9@byu.net>
16730
16731         futimens, utimensat: work around ntfs-3g bug
16732         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
16733         a ctime bug is present, and expand workaround to cover ntfs-3g.
16734         * lib/utimens.c (fdutimens, lutimens): Likewise.
16735         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
16736         (validate_timespec): Adjust return value.
16737         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
16738         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16739         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
16740
16741 2009-12-29  Eric Blake  <ebb9@byu.net>
16742
16743         link-warning: make usage consistent
16744         * modules/ctype (Depends-on): Add link-warning.
16745         (Makefile.am): Update rules accordingly.
16746         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16747         * modules/locale (Depends-on, Makefile.am): Likewise.
16748         * modules/sys_file (Makefile.am): Likewise.
16749         * modules/getopt-posix (Makefile.am): Delete unused link warning
16750         efforts.
16751         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
16752         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
16753         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
16754         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
16755
16756         stdio: remove unused variables
16757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
16758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
16759         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16760
16761         tests: test more substitute headers
16762         * modules/ctype-tests: New file.
16763         * modules/dirent-tests: Likewise.
16764         * modules/spawn-tests: Likewise.
16765         * modules/sys_file-tests: Likewise.
16766         * modules/sys_ioctl-tests: Likewise.
16767         * modules/sys_wait-tests: Likewise.
16768         * tests/test-ctype.c: Likewise.
16769         * tests/test-dirent.c: Likewise.
16770         * tests/test-spawn.c: Likewise.
16771         * tests/test-sys_file.c: Likewise.
16772         * tests/test-sys_ioctl.c: Likewise.
16773         * tests/test-sys_wait.c: Likewise.
16774         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
16775         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
16776         whether or not flock is in use.
16777
16778         tests: remove License section from module
16779         * modules/arpa_inet-tests: Remove unneeded section.
16780         * modules/byteswap-tests: Likewise.
16781         * modules/ceilf-tests: Likewise.
16782         * modules/ceill-tests: Likewise.
16783         * modules/crypto/des-tests: Likewise.
16784         * modules/crypto/gc-arcfour-tests: Likewise.
16785         * modules/crypto/gc-arctwo-tests: Likewise.
16786         * modules/crypto/gc-des-tests: Likewise.
16787         * modules/crypto/gc-hmac-md5-tests: Likewise.
16788         * modules/crypto/gc-hmac-sha1-tests: Likewise.
16789         * modules/crypto/gc-md2-tests: Likewise.
16790         * modules/crypto/gc-md4-tests: Likewise.
16791         * modules/crypto/gc-md5-tests: Likewise.
16792         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
16793         * modules/crypto/gc-rijndael-tests: Likewise.
16794         * modules/crypto/gc-sha1-tests: Likewise.
16795         * modules/crypto/gc-tests: Likewise.
16796         * modules/crypto/md2-tests: Likewise.
16797         * modules/crypto/md4-tests: Likewise.
16798         * modules/fcntl-h-tests: Likewise.
16799         * modules/floorf-tests: Likewise.
16800         * modules/floorl-tests: Likewise.
16801         * modules/frexp-nolibm-tests: Likewise.
16802         * modules/frexp-tests: Likewise.
16803         * modules/frexpl-nolibm-tests: Likewise.
16804         * modules/frexpl-tests: Likewise.
16805         * modules/getaddrinfo-tests: Likewise.
16806         * modules/inttypes-tests: Likewise.
16807         * modules/isfinite-tests: Likewise.
16808         * modules/isinf-tests: Likewise.
16809         * modules/ldexpl-tests: Likewise.
16810         * modules/locale-tests: Likewise.
16811         * modules/math-tests: Likewise.
16812         * modules/netdb-tests: Likewise.
16813         * modules/netinet_in-tests: Likewise.
16814         * modules/printf-frexp-tests: Likewise.
16815         * modules/printf-frexpl-tests: Likewise.
16816         * modules/priv-set-tests: Likewise.
16817         * modules/random_r-tests: Likewise.
16818         * modules/round-tests: Likewise.
16819         * modules/roundf-tests: Likewise.
16820         * modules/roundl-tests: Likewise.
16821         * modules/search-tests: Likewise.
16822         * modules/select-tests: Likewise.
16823         * modules/signal-tests: Likewise.
16824         * modules/stdbool-tests: Likewise.
16825         * modules/stddef-tests: Likewise.
16826         * modules/stdint-tests: Likewise.
16827         * modules/stdio-tests: Likewise.
16828         * modules/stdlib-tests: Likewise.
16829         * modules/string-tests: Likewise.
16830         * modules/strings-tests: Likewise.
16831         * modules/sys_select-tests: Likewise.
16832         * modules/sys_socket-tests: Likewise.
16833         * modules/sys_stat-tests: Likewise.
16834         * modules/sys_time-tests: Likewise.
16835         * modules/sys_utsname-tests: Likewise.
16836         * modules/sysexits-tests: Likewise.
16837         * modules/time-tests: Likewise.
16838         * modules/trunc-tests: Likewise.
16839         * modules/truncf-tests: Likewise.
16840         * modules/truncl-tests: Likewise.
16841         * modules/tsearch-tests: Likewise.
16842         * modules/unistd-tests: Likewise.
16843         * modules/wchar-tests: Likewise.
16844         * modules/wctype-tests: Likewise.
16845
16846         tests: fix license on several tests
16847         * tests/test-des.c: Update to GPLv3+.
16848         * tests/test-flock.c: Likewise.
16849         * tests/test-fsync.c: Likewise.
16850         * tests/test-futimens.h: Likewise.
16851         * tests/test-gc-arcfour.c: Likewise.
16852         * tests/test-gc-arctwo.c: Likewise.
16853         * tests/test-gc-des.c: Likewise.
16854         * tests/test-gc-hmac-md5.c: Likewise.
16855         * tests/test-gc-hmac-sha1.c: Likewise.
16856         * tests/test-gc-md2.c: Likewise.
16857         * tests/test-gc-md4.c: Likewise.
16858         * tests/test-gc-md5.c: Likewise.
16859         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16860         * tests/test-gc-rijndael.c: Likewise.
16861         * tests/test-gc-sha1.c: Likewise.
16862         * tests/test-gc.c: Likewise.
16863         * tests/test-getcwd.c: Likewise.
16864         * tests/test-link.c: Likewise.
16865         * tests/test-link.h: Likewise.
16866         * tests/test-lutimens.h: Likewise.
16867         * tests/test-md2.c: Likewise.
16868         * tests/test-md4.c: Likewise.
16869         * tests/test-mkdir.h: Likewise.
16870         * tests/test-rename.c: Likewise.
16871         * tests/test-rename.h: Likewise.
16872         * tests/test-safe-alloc.c: Likewise.
16873         * tests/test-utimens-common.h: Likewise.
16874         * tests/test-utimens.h: Likewise.
16875
16876         maint: sync license texts
16877         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
16878         * doc/gpl-3.0.texi: Revert copyright year update.
16879         * doc/lgpl-3.0.texi: Likewise.
16880
16881 2009-12-29  Jim Meyering  <meyering@redhat.com>
16882
16883         update nearly all FSF copyright year lists to include 2009
16884         The files named by the following are exempted:
16885             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
16886               test -f "$dst" && { echo "$dst"; continue; }
16887               test -d "$dst" || continue
16888               echo "$dst"/$(basename "$src")
16889             done > exempt
16890             git ls-files tests/unictype >> exempt
16891         In the remaining files, convert to all-interval notation if
16892         - there is already at least one year interval like 2000-2003
16893         - the file is maintained by me
16894         - the file is in lib/uni*/, where that style already prevails
16895         Otherwise, use update-copyright's default.
16896
16897 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16898         and Eric Blake  <ebb9@byu.net>
16899
16900         tests: don't require debug system() to pass
16901         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
16902         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16903         * tests/test-unlink.h (test_unlink_func): Likewise.
16904         * tests/test-fstatat.c (main): ...into callers.
16905         * tests/test-lstat.c (main): Likewise.
16906         * tests/test-rmdir.c (main): Likewise.
16907         * tests/test-unlink.c (main): Likewise.
16908         * tests/test-unlinkat.c (main): Likewise.
16909         * tests/test-areadlink-with-size.c (main): Don't require a
16910         debug-only system call to pass, aiding cross-testing to mingw.
16911         * tests/test-areadlink.c (main): Likewise.
16912         * tests/test-areadlinkat-with-size.c (main): Likewise.
16913         * tests/test-areadlinkat.c (main): Likewise.
16914         * tests/test-canonicalize-lgpl.c (main): Likewise.
16915         * tests/test-canonicalize.c (main): Likewise.
16916         * tests/test-chown.c (main): Likewise.
16917         * tests/test-fchownat.c (main): Likewise.
16918         * tests/test-lchown.c (main): Likewise.
16919         * tests/test-fdutimensat.c (main): Likewise.
16920         * tests/test-futimens.c (main): Likewise.
16921         * tests/test-link.c (main): Likewise.
16922         * tests/test-linkat.c (main): Likewise.
16923         * tests/test-mkdir.c (main): Likewise.
16924         * tests/test-mkdirat.c (main): Likewise.
16925         * tests/test-mkfifo.c (main): Likewise.
16926         * tests/test-mkfifoat.c (main): Likewise.
16927         * tests/test-mknod.c (main): Likewise.
16928         * tests/test-readlink.c (main): Likewise.
16929         * tests/test-remove.c (main): Likewise.
16930         * tests/test-rename.c (main): Likewise.
16931         * tests/test-renameat.c (main): Likewise.
16932         * tests/test-symlink.c (main): Likewise.
16933         * tests/test-symlinkat.c (main): Likewise.
16934         * tests/test-utimens.c (main): Likewise.
16935         * tests/test-utimensat.c (main): Likewise.
16936
16937 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16938
16939         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
16940         on $(UNUSED_PARAMETER_H) to avoid build failure.
16941
16942 2009-12-28  Jim Meyering  <meyering@redhat.com>
16943
16944         update-copyright: you may specify a max. line length other than 72
16945         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16946
16947         maint: use consistent FSF copyright line syntax
16948         * lib/posixtm.c: Add missing comma in FSF copyright line.
16949         * lib/posixtm.h: Likewise.
16950         * lib/getugroups.c: Add missing ", Inc.".
16951
16952         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
16953         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
16954         FSF copyright line.  Remove trailing blanks.
16955
16956 2009-12-28  Eric Blake  <ebb9@byu.net>
16957
16958         test-dup2: reduce dependencies
16959         * modules/cloexec (Configure.ac): Set witness.
16960         * modules/dup2-tests (Depends-on): Drop cloexec.
16961         * tests/test-dup2.c (main): Skip portion of test if cloexec module
16962         not present.
16963         Suggested by Bruno Haible.
16964
16965 2009-12-26  Bruno Haible  <bruno@clisp.org>
16966
16967         Remove an unneeded dependency.
16968         * modules/fseterr (Depends-on): Remove dup2.
16969
16970 2009-12-26  Eric Blake  <ebb9@byu.net>
16971
16972         tests: use macros.h in more places
16973         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
16974         (ASSERT_STREAM): Provide default of stderr.
16975         * tests/test-dirent-safer.c: Include macros.h, using alternate
16976         stream for assertions.
16977         * tests/test-dup-safer.c: Likewise.
16978         * tests/test-freopen-safer.c: Likewise.
16979         * tests/test-getopt.c: Likewise.
16980         * tests/test-openat-safer.c: Likewise.
16981         * tests/test-pipe.c: Likewise.
16982         * tests/test-popen-safer.c: Likewise.
16983         * modules/dirent-safer-tests (Files): Include macros.h.
16984         * modules/unistd-safer-tests (Files): Likewise.
16985         * modules/freopen-safer-tests (Files): Likewise.
16986         * modules/getopt-posix-tests (Files): Likewise.
16987         * modules/openat-safer-tests (Files): Likewise.
16988         * modules/pipe-tests (Files): Likewise.
16989
16990 2009-12-26  Bruno Haible  <bruno@clisp.org>
16991
16992         javacomp: Portability fix.
16993         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
16994         that it also works on Solaris.
16995
16996 2009-12-26  Bruno Haible  <bruno@clisp.org>
16997
16998         localename: Fix storage allocation of gl_locale_name_thread's result.
16999         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
17000         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
17001         all platforms that have 'uselocale'.
17002         (gl_locale_name_thread_unsafe): New function, extracted from
17003         gl_locale_name_thread.
17004         (gl_locale_name_thread): Call struniq on all platforms that have
17005         'uselocale'.
17006         * tests/test-localename.c (test_locale_name_thread): Check that the
17007         resulting strings are permanently allocated.
17008         * modules/localename-tests (Depends-on): Add strdup.
17009
17010 2009-12-26  Bruno Haible  <bruno@clisp.org>
17011
17012         * tests/test-localename.c (categories): Fill in the strings.
17013
17014 2009-12-26  Jim Meyering  <meyering@redhat.com>
17015
17016         isdir: complete the removal of m4/isdir.m4
17017         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
17018
17019         isdir: clean up, since at least grep still uses it
17020         * lib/isdir.c: Include "isdir.h".
17021         (S_ISDIR): Remove now-unneeded definition.
17022         * modules/isdir (Files): Add lib/isdir.h.
17023         * lib/isdir.h: New file, with declaration.
17024         * m4/isdir.m4: Remove file -- unneeded.
17025
17026 2009-12-25  Bruno Haible  <bruno@clisp.org>
17027
17028         selinux-h: Make generated .h files standalone.
17029         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
17030         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
17031         * lib/se-selinux.in.h: Likewise.
17032         * modules/selinux-h (Depends-on): Add unused-parameter.
17033         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
17034         selinux/selinux.h and selinux/context.h.
17035         Suggested by Eric Blake.
17036
17037 2009-12-25  Bruno Haible  <bruno@clisp.org>
17038
17039         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
17040         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
17041         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
17042         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
17043         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
17044
17045 2009-12-24  Bruno Haible  <bruno@clisp.org>
17046
17047         openat: Fix warning.
17048         * lib/openat-proc.c: Include <unistd.h>.
17049
17050 2009-12-24  Bruno Haible  <bruno@clisp.org>
17051
17052         New module 'unused-parameter'.
17053         * build-aux/unused-parameter.h: New file, extracted from earlier
17054         gnulib-common.m4.
17055         * modules/unused-parameter: New file.
17056         * lib/unistr.h: Include unused-parameter.h.
17057         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
17058         _GL_UNUSED.
17059         * modules/unistr/base (Depends-on): Add unused-parameter.
17060
17061 2009-12-24  Bruno Haible  <bruno@clisp.org>
17062
17063         Add missing dependencies to 'extensions' module.
17064         * m4/extensions.m4: Add comment.
17065         * modules/accept4 (Depends-on): Add extensions.
17066         * modules/dup3 (Depends-on): Likewise.
17067         * modules/fcntl (Depends-on): Likewise.
17068         * modules/futimens (Depends-on): Likewise.
17069         * modules/mknod (Depends-on): Likewise.
17070         * modules/pipe2 (Depends-on): Likewise.
17071         * modules/stat-time (Depends-on): Likewise.
17072         * modules/strcasestr-simple (Depends-on): Likewise.
17073         * modules/strsignal (Depends-on): Likewise.
17074         * modules/utimensat (Depends-on): Likewise.
17075         * modules/localcharset (Depends-on): Likewise. Needed because of
17076         gl_FCNTL_O_FLAGS.
17077         * modules/wcrtomb (Depends-on): Likewise. Needed because of
17078         AC_TYPE_MBSTATE_T.
17079         * modules/wcsnrtombs (Depends-on): Likewise.
17080         * modules/wcsrtombs (Depends-on): Likewise.
17081
17082 2009-12-24  Bruno Haible  <bruno@clisp.org>
17083
17084         binary-io: Avoid gcc warning due to SET_BINARY.
17085         * lib/binary-io.h (SET_BINARY): Cast the result to void.
17086         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
17087
17088 2009-12-24  Bruno Haible  <bruno@clisp.org>
17089
17090         Avoid future namespace pollution on glibc systems.
17091         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
17092         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
17093         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
17094         glibc systems.
17095
17096 2009-12-24  Bruno Haible  <bruno@clisp.org>
17097
17098         Refactor common macros used in tests.
17099         * tests/macros.h: New file.
17100         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
17101         and/or <stdlib.h>, if appropriate.
17102         (ASSERT, SIZEOF): Remove macros.
17103         * tests/test-areadlink-with-size.c: Likewise.
17104         * tests/test-areadlinkat.c: Likewise.
17105         * tests/test-areadlinkat-with-size.c: Likewise.
17106         * tests/test-argmatch.c: Likewise.
17107         * tests/test-argv-iter.c: Likewise.
17108         * tests/test-array-mergesort.c: Likewise.
17109         * tests/test-array_list.c: Likewise.
17110         * tests/test-array_oset.c: Likewise.
17111         * tests/test-avltree_list.c: Likewise.
17112         * tests/test-avltree_oset.c: Likewise.
17113         * tests/test-avltreehash_list.c: Likewise.
17114         * tests/test-base64.c: Likewise.
17115         * tests/test-binary-io.c: Likewise.
17116         * tests/test-bitrotate.c: Likewise.
17117         * tests/test-btowc.c: Likewise.
17118         * tests/test-byteswap.c: Likewise.
17119         * tests/test-c-ctype.c: Likewise.
17120         * tests/test-c-stack.c: Likewise.
17121         * tests/test-c-strcasecmp.c: Likewise.
17122         * tests/test-c-strcasestr.c: Likewise.
17123         * tests/test-c-strncasecmp.c: Likewise.
17124         * tests/test-c-strstr.c: Likewise.
17125         * tests/test-canonicalize-lgpl.c: Likewise.
17126         * tests/test-canonicalize.c: Likewise.
17127         * tests/test-carray_list.c: Likewise.
17128         * tests/test-ceilf1.c: Likewise.
17129         * tests/test-ceilf2.c: Likewise.
17130         * tests/test-ceill.c: Likewise.
17131         * tests/test-chown.c: Likewise.
17132         * tests/test-cloexec.c: Likewise.
17133         * tests/test-copy-acl.c: Likewise.
17134         * tests/test-copy-file.c: Likewise.
17135         * tests/test-count-one-bits.c: Likewise.
17136         * tests/test-dprintf-posix.c: Likewise.
17137         * tests/test-dup2.c: Likewise.
17138         * tests/test-dup3.c: Likewise.
17139         * tests/test-duplocale.c: Likewise.
17140         * tests/test-fbufmode.c: Likewise.
17141         * tests/test-fchdir.c: Likewise.
17142         * tests/test-fchownat.c: Likewise.
17143         * tests/test-fcntl-safer.c: Likewise.
17144         * tests/test-fcntl.c: Likewise.
17145         * tests/test-fdopendir.c: Likewise.
17146         * tests/test-fdutimensat.c: Likewise.
17147         * tests/test-fflush2.c: Likewise.
17148         * tests/test-file-has-acl.c: Likewise.
17149         * tests/test-filevercmp.c: Likewise.
17150         * tests/test-flock.c: Likewise.
17151         * tests/test-floorf1.c: Likewise.
17152         * tests/test-floorf2.c: Likewise.
17153         * tests/test-floorl.c: Likewise.
17154         * tests/test-fnmatch.c: Likewise.
17155         * tests/test-fopen.h: Likewise.
17156         * tests/test-fpending.c: Likewise.
17157         * tests/test-fprintf-posix.c: Likewise.
17158         * tests/test-fpurge.c: Likewise.
17159         * tests/test-freadable.c: Likewise.
17160         * tests/test-freadahead.c: Likewise.
17161         * tests/test-freading.c: Likewise.
17162         * tests/test-freadptr.c: Likewise.
17163         * tests/test-freadptr2.c: Likewise.
17164         * tests/test-freadseek.c: Likewise.
17165         * tests/test-freopen.c: Likewise.
17166         * tests/test-frexp.c: Likewise.
17167         * tests/test-frexpl.c: Likewise.
17168         * tests/test-fseek.c: Likewise.
17169         * tests/test-fseeko.c: Likewise.
17170         * tests/test-fstatat.c: Likewise.
17171         * tests/test-fstrcmp.c: Likewise.
17172         * tests/test-fsync.c: Likewise.
17173         * tests/test-ftell.c: Likewise.
17174         * tests/test-ftello.c: Likewise.
17175         * tests/test-func.c: Likewise.
17176         * tests/test-futimens.c: Likewise.
17177         * tests/test-fwritable.c: Likewise.
17178         * tests/test-fwriting.c: Likewise.
17179         * tests/test-getcwd.c: Likewise.
17180         * tests/test-getdate.c: Likewise.
17181         * tests/test-getdelim.c: Likewise.
17182         * tests/test-getdtablesize.c: Likewise.
17183         * tests/test-getgroups.c: Likewise.
17184         * tests/test-getline.c: Likewise.
17185         * tests/test-getndelim2.c: Likewise.
17186         * tests/test-glob.c: Likewise.
17187         * tests/test-hash.c: Likewise.
17188         * tests/test-i-ring.c: Likewise.
17189         * tests/test-iconv-utf.c: Likewise.
17190         * tests/test-iconv.c: Likewise.
17191         * tests/test-idpriv-drop.c: Likewise.
17192         * tests/test-idpriv-droptemp.c: Likewise.
17193         * tests/test-inet_ntop.c: Likewise.
17194         * tests/test-inet_pton.c: Likewise.
17195         * tests/test-isblank.c: Likewise.
17196         * tests/test-isfinite.c: Likewise.
17197         * tests/test-isinf.c: Likewise.
17198         * tests/test-isnan.c: Likewise.
17199         * tests/test-isnand.h: Likewise.
17200         * tests/test-isnanf.h: Likewise.
17201         * tests/test-isnanl.h: Likewise.
17202         * tests/test-lchown.c: Likewise.
17203         * tests/test-ldexpl.c: Likewise.
17204         * tests/test-link.c: Likewise.
17205         * tests/test-linkat.c: Likewise.
17206         * tests/test-linked_list.c: Likewise.
17207         * tests/test-linkedhash_list.c: Likewise.
17208         * tests/test-localename.c: Likewise.
17209         * tests/test-lseek.c: Likewise.
17210         * tests/test-lstat.c: Likewise.
17211         * tests/test-mbmemcasecmp.c: Likewise.
17212         * tests/test-mbmemcasecoll.c: Likewise.
17213         * tests/test-mbrtowc.c: Likewise.
17214         * tests/test-mbscasecmp.c: Likewise.
17215         * tests/test-mbscasestr1.c: Likewise.
17216         * tests/test-mbscasestr2.c: Likewise.
17217         * tests/test-mbscasestr3.c: Likewise.
17218         * tests/test-mbscasestr4.c: Likewise.
17219         * tests/test-mbschr.c: Likewise.
17220         * tests/test-mbscspn.c: Likewise.
17221         * tests/test-mbsinit.c: Likewise.
17222         * tests/test-mbsncasecmp.c: Likewise.
17223         * tests/test-mbsnrtowcs.c: Likewise.
17224         * tests/test-mbspbrk.c: Likewise.
17225         * tests/test-mbspcasecmp.c: Likewise.
17226         * tests/test-mbsrchr.c: Likewise.
17227         * tests/test-mbsrtowcs.c: Likewise.
17228         * tests/test-mbsspn.c: Likewise.
17229         * tests/test-mbsstr1.c: Likewise.
17230         * tests/test-mbsstr2.c: Likewise.
17231         * tests/test-mbsstr3.c: Likewise.
17232         * tests/test-memchr.c: Likewise.
17233         * tests/test-memchr2.c: Likewise.
17234         * tests/test-memcmp.c: Likewise.
17235         * tests/test-memmem.c: Likewise.
17236         * tests/test-memrchr.c: Likewise.
17237         * tests/test-mkdir.c: Likewise.
17238         * tests/test-mkdirat.c: Likewise.
17239         * tests/test-mkfifo.c: Likewise.
17240         * tests/test-mkfifoat.c: Likewise.
17241         * tests/test-mknod.c: Likewise.
17242         * tests/test-nanosleep.c: Likewise.
17243         * tests/test-nl_langinfo.c: Likewise.
17244         * tests/test-obstack-printf.c: Likewise.
17245         * tests/test-open.c: Likewise.
17246         * tests/test-openat.c: Likewise.
17247         * tests/test-pipe-filter-gi1.c: Likewise.
17248         * tests/test-pipe-filter-gi2-main.c: Likewise.
17249         * tests/test-pipe-filter-ii1.c: Likewise.
17250         * tests/test-pipe-filter-ii2-main.c: Likewise.
17251         * tests/test-pipe2.c: Likewise.
17252         * tests/test-popen.h: Likewise.
17253         * tests/test-posixtm.c: Likewise.
17254         * tests/test-pread.c: Likewise.
17255         * tests/test-printf-frexp.c: Likewise.
17256         * tests/test-printf-frexpl.c: Likewise.
17257         * tests/test-printf-posix.c: Likewise.
17258         * tests/test-priv-set.c: Likewise.
17259         * tests/test-quotearg.c: Likewise.
17260         * tests/test-random_r.c: Likewise.
17261         * tests/test-rawmemchr.c: Likewise.
17262         * tests/test-rbtree_list.c: Likewise.
17263         * tests/test-rbtree_oset.c: Likewise.
17264         * tests/test-rbtreehash_list.c: Likewise.
17265         * tests/test-readlink.c: Likewise.
17266         * tests/test-remove.c: Likewise.
17267         * tests/test-rename.c: Likewise.
17268         * tests/test-renameat.c: Likewise.
17269         * tests/test-rmdir.c: Likewise.
17270         * tests/test-round1.c: Likewise.
17271         * tests/test-roundf1.c: Likewise.
17272         * tests/test-roundl.c: Likewise.
17273         * tests/test-safe-alloc.c: Likewise.
17274         * tests/test-sameacls.c: Likewise.
17275         * tests/test-set-mode-acl.c: Likewise.
17276         * tests/test-setenv.c: Likewise.
17277         * tests/test-sigaction.c: Likewise.
17278         * tests/test-signbit.c: Likewise.
17279         * tests/test-sleep.c: Likewise.
17280         * tests/test-snprintf-posix.c: Likewise.
17281         * tests/test-snprintf.c: Likewise.
17282         * tests/test-sprintf-posix.c: Likewise.
17283         * tests/test-stat-time.c: Likewise.
17284         * tests/test-stat.c: Likewise.
17285         * tests/test-strcasestr.c: Likewise.
17286         * tests/test-strchrnul.c: Likewise.
17287         * tests/test-strerror.c: Likewise.
17288         * tests/test-striconv.c: Likewise.
17289         * tests/test-striconveh.c: Likewise.
17290         * tests/test-striconveha.c: Likewise.
17291         * tests/test-strsignal.c: Likewise.
17292         * tests/test-strstr.c: Likewise.
17293         * tests/test-strtod.c: Likewise.
17294         * tests/test-strverscmp.c: Likewise.
17295         * tests/test-symlink.c: Likewise.
17296         * tests/test-symlinkat.c: Likewise.
17297         * tests/test-trunc1.c: Likewise.
17298         * tests/test-trunc2.c: Likewise.
17299         * tests/test-truncf1.c: Likewise.
17300         * tests/test-truncf2.c: Likewise.
17301         * tests/test-truncl.c: Likewise.
17302         * tests/test-uname.c: Likewise.
17303         * tests/test-unlink.c: Likewise.
17304         * tests/test-unlinkat.c: Likewise.
17305         * tests/test-unsetenv.c: Likewise.
17306         * tests/test-usleep.c: Likewise.
17307         * tests/test-utimens.c: Likewise.
17308         * tests/test-utimensat.c: Likewise.
17309         * tests/test-vasnprintf-posix.c: Likewise.
17310         * tests/test-vasnprintf-posix2.c: Likewise.
17311         * tests/test-vasnprintf.c: Likewise.
17312         * tests/test-vasprintf-posix.c: Likewise.
17313         * tests/test-vasprintf.c: Likewise.
17314         * tests/test-vdprintf-posix.c: Likewise.
17315         * tests/test-vfprintf-posix.c: Likewise.
17316         * tests/test-vprintf-posix.c: Likewise.
17317         * tests/test-vsnprintf-posix.c: Likewise.
17318         * tests/test-vsnprintf.c: Likewise.
17319         * tests/test-vsprintf-posix.c: Likewise.
17320         * tests/test-wcrtomb.c: Likewise.
17321         * tests/test-wcsnrtombs.c: Likewise.
17322         * tests/test-wcsrtombs.c: Likewise.
17323         * tests/test-wctype.c: Likewise.
17324         * tests/test-wcwidth.c: Likewise.
17325         * tests/test-xfprintf-posix.c: Likewise.
17326         * tests/test-xmemdup0.c: Likewise.
17327         * tests/test-xprintf-posix.c: Likewise.
17328         * tests/test-xvasprintf.c: Likewise.
17329         * tests/unicase/test-locale-language.c: Likewise.
17330         * tests/unicase/test-mapping-part1.h: Likewise.
17331         * tests/unicase/test-predicate-part1.h: Likewise.
17332         * tests/unicase/test-u8-casecmp.c: Likewise.
17333         * tests/unicase/test-u8-casecoll.c: Likewise.
17334         * tests/unicase/test-u8-casefold.c: Likewise.
17335         * tests/unicase/test-u8-is-cased.c: Likewise.
17336         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17337         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17338         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17339         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17340         * tests/unicase/test-u8-tolower.c: Likewise.
17341         * tests/unicase/test-u8-totitle.c: Likewise.
17342         * tests/unicase/test-u8-toupper.c: Likewise.
17343         * tests/unicase/test-u16-casecmp.c: Likewise.
17344         * tests/unicase/test-u16-casecoll.c: Likewise.
17345         * tests/unicase/test-u16-casefold.c: Likewise.
17346         * tests/unicase/test-u16-is-cased.c: Likewise.
17347         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17348         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17349         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17350         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17351         * tests/unicase/test-u16-tolower.c: Likewise.
17352         * tests/unicase/test-u16-totitle.c: Likewise.
17353         * tests/unicase/test-u16-toupper.c: Likewise.
17354         * tests/unicase/test-u32-casecmp.c: Likewise.
17355         * tests/unicase/test-u32-casecoll.c: Likewise.
17356         * tests/unicase/test-u32-casefold.c: Likewise.
17357         * tests/unicase/test-u32-is-cased.c: Likewise.
17358         * tests/unicase/test-u32-is-casefolded.c: Likewise.
17359         * tests/unicase/test-u32-is-lowercase.c: Likewise.
17360         * tests/unicase/test-u32-is-titlecase.c: Likewise.
17361         * tests/unicase/test-u32-is-uppercase.c: Likewise.
17362         * tests/unicase/test-u32-tolower.c: Likewise.
17363         * tests/unicase/test-u32-totitle.c: Likewise.
17364         * tests/unicase/test-u32-toupper.c: Likewise.
17365         * tests/unicase/test-ulc-casecmp.c: Likewise.
17366         * tests/unicase/test-ulc-casecoll.c: Likewise.
17367         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17368         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17369         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17370         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17371         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17372         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17373         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17374         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17375         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17376         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17377         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17378         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17379         * tests/unictype/test-bidi_byname.c: Likewise.
17380         * tests/unictype/test-bidi_name.c: Likewise.
17381         * tests/unictype/test-bidi_of.c: Likewise.
17382         * tests/unictype/test-bidi_test.c: Likewise.
17383         * tests/unictype/test-block_list.c: Likewise.
17384         * tests/unictype/test-block_of.c: Likewise.
17385         * tests/unictype/test-block_test.c: Likewise.
17386         * tests/unictype/test-categ_and.c: Likewise.
17387         * tests/unictype/test-categ_and_not.c: Likewise.
17388         * tests/unictype/test-categ_byname.c: Likewise.
17389         * tests/unictype/test-categ_name.c: Likewise.
17390         * tests/unictype/test-categ_none.c: Likewise.
17391         * tests/unictype/test-categ_of.c: Likewise.
17392         * tests/unictype/test-categ_or.c: Likewise.
17393         * tests/unictype/test-categ_test_withtable.c: Likewise.
17394         * tests/unictype/test-combining.c: Likewise.
17395         * tests/unictype/test-decdigit.c: Likewise.
17396         * tests/unictype/test-digit.c: Likewise.
17397         * tests/unictype/test-mirror.c: Likewise.
17398         * tests/unictype/test-numeric.c: Likewise.
17399         * tests/unictype/test-pr_byname.c: Likewise.
17400         * tests/unictype/test-pr_test.c: Likewise.
17401         * tests/unictype/test-predicate-part1.h: Likewise.
17402         * tests/unictype/test-scripts.c: Likewise.
17403         * tests/unictype/test-sy_c_ident.c: Likewise.
17404         * tests/unictype/test-sy_java_ident.c: Likewise.
17405         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
17406         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
17407         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
17408         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
17409         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
17410         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
17411         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
17412         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
17413         * tests/uninorm/test-canonical-decomposition.c: Likewise.
17414         * tests/uninorm/test-compat-decomposition.c: Likewise.
17415         * tests/uninorm/test-composition.c: Likewise.
17416         * tests/uninorm/test-decomposing-form.c: Likewise.
17417         * tests/uninorm/test-decomposition.c: Likewise.
17418         * tests/uninorm/test-u8-nfc.c: Likewise.
17419         * tests/uninorm/test-u8-nfd.c: Likewise.
17420         * tests/uninorm/test-u8-nfkc.c: Likewise.
17421         * tests/uninorm/test-u8-nfkd.c: Likewise.
17422         * tests/uninorm/test-u8-normcmp.c: Likewise.
17423         * tests/uninorm/test-u8-normcoll.c: Likewise.
17424         * tests/uninorm/test-u16-nfc.c: Likewise.
17425         * tests/uninorm/test-u16-nfd.c: Likewise.
17426         * tests/uninorm/test-u16-nfkc.c: Likewise.
17427         * tests/uninorm/test-u16-nfkd.c: Likewise.
17428         * tests/uninorm/test-u16-normcmp.c: Likewise.
17429         * tests/uninorm/test-u16-normcoll.c: Likewise.
17430         * tests/uninorm/test-u32-nfc.c: Likewise.
17431         * tests/uninorm/test-u32-nfd.c: Likewise.
17432         * tests/uninorm/test-u32-nfkc.c: Likewise.
17433         * tests/uninorm/test-u32-nfkd.c: Likewise.
17434         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17435         * tests/uninorm/test-u32-normcmp.c: Likewise.
17436         * tests/uninorm/test-u32-normcoll.c: Likewise.
17437         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
17438         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17439         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17440         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17441         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17442         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17443         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17444         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17445         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17446         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17447         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17448         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17449         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17450         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17451         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17452         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17453         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17454         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17455         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17456         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17457         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17458         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17459         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17460         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17461         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17462         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17463         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17464         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17465         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17466         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
17467         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17468         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17469         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17470         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17471         * tests/uniwidth/test-u8-width.c: Likewise.
17472         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17473         * tests/uniwidth/test-u16-width.c: Likewise.
17474         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17475         * tests/uniwidth/test-u32-width.c: Likewise.
17476         * tests/uniwidth/test-uc_width.c: Likewise.
17477         * tests/uniwidth/test-uc_width2.c: Likewise.
17478         * modules/acl-tests (Files): Add tests/macros.h.
17479         * modules/areadlink-tests (Files): Likewise.
17480         * modules/areadlink-with-size-tests (Files): Likewise.
17481         * modules/areadlinkat-tests (Files): Likewise.
17482         * modules/areadlinkat-with-size-tests (Files): Likewise.
17483         * modules/argmatch-tests (Files): Likewise.
17484         * modules/argv-iter-tests (Files): Likewise.
17485         * modules/array-list-tests (Files): Likewise.
17486         * modules/array-mergesort-tests (Files): Likewise.
17487         * modules/array-oset-tests (Files): Likewise.
17488         * modules/avltree-list-tests (Files): Likewise.
17489         * modules/avltree-oset-tests (Files): Likewise.
17490         * modules/avltreehash-list-tests (Files): Likewise.
17491         * modules/base64-tests (Files): Likewise.
17492         * modules/binary-io-tests (Files): Likewise.
17493         * modules/bitrotate-tests (Files): Likewise.
17494         * modules/btowc-tests (Files): Likewise.
17495         * modules/byteswap-tests (Files): Likewise.
17496         * modules/c-ctype-tests (Files): Likewise.
17497         * modules/c-stack-tests (Files): Likewise.
17498         * modules/c-strcase-tests (Files): Likewise.
17499         * modules/c-strcasestr-tests (Files): Likewise.
17500         * modules/c-strstr-tests (Files): Likewise.
17501         * modules/canonicalize-lgpl-tests (Files): Likewise.
17502         * modules/canonicalize-tests (Files): Likewise.
17503         * modules/carray-list-tests (Files): Likewise.
17504         * modules/ceilf-tests (Files): Likewise.
17505         * modules/ceill-tests (Files): Likewise.
17506         * modules/chown-tests (Files): Likewise.
17507         * modules/cloexec-tests (Files): Likewise.
17508         * modules/copy-file-tests (Files): Likewise.
17509         * modules/count-one-bits-tests (Files): Likewise.
17510         * modules/dprintf-posix-tests (Files): Likewise.
17511         * modules/dup2-tests (Files): Likewise.
17512         * modules/dup3-tests (Files): Likewise.
17513         * modules/duplocale-tests (Files): Likewise.
17514         * modules/fbufmode-tests (Files): Likewise.
17515         * modules/fchdir-tests (Files): Likewise.
17516         * modules/fcntl-safer-tests (Files): Likewise.
17517         * modules/fcntl-tests (Files): Likewise.
17518         * modules/fdopendir-tests (Files): Likewise.
17519         * modules/fdutimensat-tests (Files): Likewise.
17520         * modules/fflush-tests (Files): Likewise.
17521         * modules/filevercmp-tests (Files): Likewise.
17522         * modules/flock-tests (Files): Likewise.
17523         * modules/floorf-tests (Files): Likewise.
17524         * modules/floorl-tests (Files): Likewise.
17525         * modules/fnmatch-tests (Files): Likewise.
17526         * modules/fopen-safer-tests (Files): Likewise.
17527         * modules/fopen-tests (Files): Likewise.
17528         * modules/fpending-tests (Files): Likewise.
17529         * modules/fprintf-posix-tests (Files): Likewise.
17530         * modules/fpurge-tests (Files): Likewise.
17531         * modules/freadable-tests (Files): Likewise.
17532         * modules/freadahead-tests (Files): Likewise.
17533         * modules/freading-tests (Files): Likewise.
17534         * modules/freadptr-tests (Files): Likewise.
17535         * modules/freadseek-tests (Files): Likewise.
17536         * modules/freopen-tests (Files): Likewise.
17537         * modules/frexp-nolibm-tests (Files): Likewise.
17538         * modules/frexp-tests (Files): Likewise.
17539         * modules/frexpl-nolibm-tests (Files): Likewise.
17540         * modules/frexpl-tests (Files): Likewise.
17541         * modules/fseek-tests (Files): Likewise.
17542         * modules/fseeko-tests (Files): Likewise.
17543         * modules/fstrcmp-tests (Files): Likewise.
17544         * modules/fsync-tests (Files): Likewise.
17545         * modules/ftell-tests (Files): Likewise.
17546         * modules/ftello-tests (Files): Likewise.
17547         * modules/func-tests (Files): Likewise.
17548         * modules/futimens-tests (Files): Likewise.
17549         * modules/fwritable-tests (Files): Likewise.
17550         * modules/fwriting-tests (Files): Likewise.
17551         * modules/getcwd-tests (Files): Likewise.
17552         * modules/getdate-tests (Files): Likewise.
17553         * modules/getdelim-tests (Files): Likewise.
17554         * modules/getdtablesize-tests (Files): Likewise.
17555         * modules/getgroups-tests (Files): Likewise.
17556         * modules/getline-tests (Files): Likewise.
17557         * modules/getndelim2-tests (Files): Likewise.
17558         * modules/glob-tests (Files): Likewise.
17559         * modules/hash-tests (Files): Likewise.
17560         * modules/i-ring-tests (Files): Likewise.
17561         * modules/iconv-tests (Files): Likewise.
17562         * modules/iconv_open-utf-tests (Files): Likewise.
17563         * modules/idpriv-drop-tests (Files): Likewise.
17564         * modules/idpriv-droptemp-tests (Files): Likewise.
17565         * modules/inet_ntop-tests (Files): Likewise.
17566         * modules/inet_pton-tests (Files): Likewise.
17567         * modules/isblank-tests (Files): Likewise.
17568         * modules/isfinite-tests (Files): Likewise.
17569         * modules/isinf-tests (Files): Likewise.
17570         * modules/isnan-tests (Files): Likewise.
17571         * modules/isnand-nolibm-tests (Files): Likewise.
17572         * modules/isnand-tests (Files): Likewise.
17573         * modules/isnanf-nolibm-tests (Files): Likewise.
17574         * modules/isnanf-tests (Files): Likewise.
17575         * modules/isnanl-nolibm-tests (Files): Likewise.
17576         * modules/isnanl-tests (Files): Likewise.
17577         * modules/lchown-tests (Files): Likewise.
17578         * modules/ldexpl-tests (Files): Likewise.
17579         * modules/link-tests (Files): Likewise.
17580         * modules/linkat-tests (Files): Likewise.
17581         * modules/linked-list-tests (Files): Likewise.
17582         * modules/linkedhash-list-tests (Files): Likewise.
17583         * modules/localename-tests (Files): Likewise.
17584         * modules/lseek-tests (Files): Likewise.
17585         * modules/lstat-tests (Files): Likewise.
17586         * modules/mbmemcasecmp-tests (Files): Likewise.
17587         * modules/mbmemcasecoll-tests (Files): Likewise.
17588         * modules/mbrtowc-tests (Files): Likewise.
17589         * modules/mbscasecmp-tests (Files): Likewise.
17590         * modules/mbscasestr-tests (Files): Likewise.
17591         * modules/mbschr-tests (Files): Likewise.
17592         * modules/mbscspn-tests (Files): Likewise.
17593         * modules/mbsinit-tests (Files): Likewise.
17594         * modules/mbsncasecmp-tests (Files): Likewise.
17595         * modules/mbsnrtowcs-tests (Files): Likewise.
17596         * modules/mbspbrk-tests (Files): Likewise.
17597         * modules/mbspcasecmp-tests (Files): Likewise.
17598         * modules/mbsrchr-tests (Files): Likewise.
17599         * modules/mbsrtowcs-tests (Files): Likewise.
17600         * modules/mbsspn-tests (Files): Likewise.
17601         * modules/mbsstr-tests (Files): Likewise.
17602         * modules/memchr-tests (Files): Likewise.
17603         * modules/memchr2-tests (Files): Likewise.
17604         * modules/memcmp-tests (Files): Likewise.
17605         * modules/memmem-tests (Files): Likewise.
17606         * modules/memrchr-tests (Files): Likewise.
17607         * modules/mkdir-tests (Files): Likewise.
17608         * modules/mkfifo-tests (Files): Likewise.
17609         * modules/mkfifoat-tests (Files): Likewise.
17610         * modules/mknod-tests (Files): Likewise.
17611         * modules/nanosleep-tests (Files): Likewise.
17612         * modules/nl_langinfo-tests (Files): Likewise.
17613         * modules/obstack-printf-tests (Files): Likewise.
17614         * modules/open-tests (Files): Likewise.
17615         * modules/openat-tests (Files): Likewise.
17616         * modules/pipe-filter-gi-tests (Files): Likewise.
17617         * modules/pipe-filter-ii-tests (Files): Likewise.
17618         * modules/pipe2-tests (Files): Likewise.
17619         * modules/popen-safer-tests (Files): Likewise.
17620         * modules/popen-tests (Files): Likewise.
17621         * modules/posixtm-tests (Files): Likewise.
17622         * modules/pread-tests (Files): Likewise.
17623         * modules/printf-frexp-tests (Files): Likewise.
17624         * modules/printf-frexpl-tests (Files): Likewise.
17625         * modules/printf-posix-tests (Files): Likewise.
17626         * modules/priv-set-tests (Files): Likewise.
17627         * modules/quotearg-tests (Files): Likewise.
17628         * modules/random_r-tests (Files): Likewise.
17629         * modules/rawmemchr-tests (Files): Likewise.
17630         * modules/rbtree-list-tests (Files): Likewise.
17631         * modules/rbtree-oset-tests (Files): Likewise.
17632         * modules/rbtreehash-list-tests (Files): Likewise.
17633         * modules/readlink-tests (Files): Likewise.
17634         * modules/remove-tests (Files): Likewise.
17635         * modules/rename-tests (Files): Likewise.
17636         * modules/renameat-tests (Files): Likewise.
17637         * modules/rmdir-tests (Files): Likewise.
17638         * modules/round-tests (Files): Likewise.
17639         * modules/roundf-tests (Files): Likewise.
17640         * modules/roundl-tests (Files): Likewise.
17641         * modules/safe-alloc-tests (Files): Likewise.
17642         * modules/setenv-tests (Files): Likewise.
17643         * modules/sigaction-tests (Files): Likewise.
17644         * modules/signbit-tests (Files): Likewise.
17645         * modules/sleep-tests (Files): Likewise.
17646         * modules/snprintf-posix-tests (Files): Likewise.
17647         * modules/snprintf-tests (Files): Likewise.
17648         * modules/sprintf-posix-tests (Files): Likewise.
17649         * modules/stat-tests (Files): Likewise.
17650         * modules/stat-time-tests (Files): Likewise.
17651         * modules/strcasestr-tests (Files): Likewise.
17652         * modules/strchrnul-tests (Files): Likewise.
17653         * modules/strerror-tests (Files): Likewise.
17654         * modules/striconv-tests (Files): Likewise.
17655         * modules/striconveh-tests (Files): Likewise.
17656         * modules/striconveha-tests (Files): Likewise.
17657         * modules/strsignal-tests (Files): Likewise.
17658         * modules/strstr-tests (Files): Likewise.
17659         * modules/strtod-tests (Files): Likewise.
17660         * modules/strverscmp-tests (Files): Likewise.
17661         * modules/symlink-tests (Files): Likewise.
17662         * modules/symlinkat-tests (Files): Likewise.
17663         * modules/trunc-tests (Files): Likewise.
17664         * modules/truncf-tests (Files): Likewise.
17665         * modules/truncl-tests (Files): Likewise.
17666         * modules/uname-tests (Files): Likewise.
17667         * modules/unicase/cased-tests (Files): Likewise.
17668         * modules/unicase/ignorable-tests (Files): Likewise.
17669         * modules/unicase/locale-language-tests (Files): Likewise.
17670         * modules/unicase/tolower-tests (Files): Likewise.
17671         * modules/unicase/totitle-tests (Files): Likewise.
17672         * modules/unicase/toupper-tests (Files): Likewise.
17673         * modules/unicase/u8-casecmp-tests (Files): Likewise.
17674         * modules/unicase/u8-casecoll-tests (Files): Likewise.
17675         * modules/unicase/u8-casefold-tests (Files): Likewise.
17676         * modules/unicase/u8-is-cased-tests (Files): Likewise.
17677         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
17678         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
17679         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
17680         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
17681         * modules/unicase/u8-tolower-tests (Files): Likewise.
17682         * modules/unicase/u8-totitle-tests (Files): Likewise.
17683         * modules/unicase/u8-toupper-tests (Files): Likewise.
17684         * modules/unicase/u16-casecmp-tests (Files): Likewise.
17685         * modules/unicase/u16-casecoll-tests (Files): Likewise.
17686         * modules/unicase/u16-casefold-tests (Files): Likewise.
17687         * modules/unicase/u16-is-cased-tests (Files): Likewise.
17688         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
17689         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
17690         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
17691         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
17692         * modules/unicase/u16-tolower-tests (Files): Likewise.
17693         * modules/unicase/u16-totitle-tests (Files): Likewise.
17694         * modules/unicase/u16-toupper-tests (Files): Likewise.
17695         * modules/unicase/u32-casecmp-tests (Files): Likewise.
17696         * modules/unicase/u32-casecoll-tests (Files): Likewise.
17697         * modules/unicase/u32-casefold-tests (Files): Likewise.
17698         * modules/unicase/u32-is-cased-tests (Files): Likewise.
17699         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
17700         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
17701         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
17702         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
17703         * modules/unicase/u32-tolower-tests (Files): Likewise.
17704         * modules/unicase/u32-totitle-tests (Files): Likewise.
17705         * modules/unicase/u32-toupper-tests (Files): Likewise.
17706         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
17707         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
17708         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
17709         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
17710         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
17711         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
17712         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
17713         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
17714         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
17715         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
17716         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
17717         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
17718         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
17719         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
17720         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
17721         * modules/unictype/bidicategory-name-tests (Files): Likewise.
17722         * modules/unictype/bidicategory-of-tests (Files): Likewise.
17723         * modules/unictype/bidicategory-test-tests (Files): Likewise.
17724         * modules/unictype/block-list-tests (Files): Likewise.
17725         * modules/unictype/block-of-tests (Files): Likewise.
17726         * modules/unictype/block-test-tests (Files): Likewise.
17727         * modules/unictype/category-C-tests (Files): Likewise.
17728         * modules/unictype/category-Cc-tests (Files): Likewise.
17729         * modules/unictype/category-Cf-tests (Files): Likewise.
17730         * modules/unictype/category-Cn-tests (Files): Likewise.
17731         * modules/unictype/category-Co-tests (Files): Likewise.
17732         * modules/unictype/category-Cs-tests (Files): Likewise.
17733         * modules/unictype/category-L-tests (Files): Likewise.
17734         * modules/unictype/category-Ll-tests (Files): Likewise.
17735         * modules/unictype/category-Lm-tests (Files): Likewise.
17736         * modules/unictype/category-Lo-tests (Files): Likewise.
17737         * modules/unictype/category-Lt-tests (Files): Likewise.
17738         * modules/unictype/category-Lu-tests (Files): Likewise.
17739         * modules/unictype/category-M-tests (Files): Likewise.
17740         * modules/unictype/category-Mc-tests (Files): Likewise.
17741         * modules/unictype/category-Me-tests (Files): Likewise.
17742         * modules/unictype/category-Mn-tests (Files): Likewise.
17743         * modules/unictype/category-N-tests (Files): Likewise.
17744         * modules/unictype/category-Nd-tests (Files): Likewise.
17745         * modules/unictype/category-Nl-tests (Files): Likewise.
17746         * modules/unictype/category-No-tests (Files): Likewise.
17747         * modules/unictype/category-P-tests (Files): Likewise.
17748         * modules/unictype/category-Pc-tests (Files): Likewise.
17749         * modules/unictype/category-Pd-tests (Files): Likewise.
17750         * modules/unictype/category-Pe-tests (Files): Likewise.
17751         * modules/unictype/category-Pf-tests (Files): Likewise.
17752         * modules/unictype/category-Pi-tests (Files): Likewise.
17753         * modules/unictype/category-Po-tests (Files): Likewise.
17754         * modules/unictype/category-Ps-tests (Files): Likewise.
17755         * modules/unictype/category-S-tests (Files): Likewise.
17756         * modules/unictype/category-Sc-tests (Files): Likewise.
17757         * modules/unictype/category-Sk-tests (Files): Likewise.
17758         * modules/unictype/category-Sm-tests (Files): Likewise.
17759         * modules/unictype/category-So-tests (Files): Likewise.
17760         * modules/unictype/category-Z-tests (Files): Likewise.
17761         * modules/unictype/category-Zl-tests (Files): Likewise.
17762         * modules/unictype/category-Zp-tests (Files): Likewise.
17763         * modules/unictype/category-Zs-tests (Files): Likewise.
17764         * modules/unictype/category-and-not-tests (Files): Likewise.
17765         * modules/unictype/category-and-tests (Files): Likewise.
17766         * modules/unictype/category-byname-tests (Files): Likewise.
17767         * modules/unictype/category-name-tests (Files): Likewise.
17768         * modules/unictype/category-none-tests (Files): Likewise.
17769         * modules/unictype/category-of-tests (Files): Likewise.
17770         * modules/unictype/category-or-tests (Files): Likewise.
17771         * modules/unictype/category-test-withtable-tests (Files): Likewise.
17772         * modules/unictype/combining-class-tests (Files): Likewise.
17773         * modules/unictype/ctype-alnum-tests (Files): Likewise.
17774         * modules/unictype/ctype-alpha-tests (Files): Likewise.
17775         * modules/unictype/ctype-blank-tests (Files): Likewise.
17776         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
17777         * modules/unictype/ctype-digit-tests (Files): Likewise.
17778         * modules/unictype/ctype-graph-tests (Files): Likewise.
17779         * modules/unictype/ctype-lower-tests (Files): Likewise.
17780         * modules/unictype/ctype-print-tests (Files): Likewise.
17781         * modules/unictype/ctype-punct-tests (Files): Likewise.
17782         * modules/unictype/ctype-space-tests (Files): Likewise.
17783         * modules/unictype/ctype-upper-tests (Files): Likewise.
17784         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
17785         * modules/unictype/decimal-digit-tests (Files): Likewise.
17786         * modules/unictype/digit-tests (Files): Likewise.
17787         * modules/unictype/mirror-tests (Files): Likewise.
17788         * modules/unictype/numeric-tests (Files): Likewise.
17789         * modules/unictype/property-alphabetic-tests (Files): Likewise.
17790         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
17791         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
17792         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
17793         Likewise.
17794         * modules/unictype/property-bidi-block-separator-tests (Files):
17795         Likewise.
17796         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
17797         Likewise.
17798         * modules/unictype/property-bidi-common-separator-tests (Files):
17799         Likewise.
17800         * modules/unictype/property-bidi-control-tests (Files): Likewise.
17801         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
17802         Likewise.
17803         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
17804         Likewise.
17805         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
17806         Likewise.
17807         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
17808         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
17809         Likewise.
17810         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
17811         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
17812         Likewise.
17813         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
17814         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
17815         * modules/unictype/property-bidi-segment-separator-tests (Files):
17816         Likewise.
17817         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
17818         * modules/unictype/property-byname-tests (Files): Likewise.
17819         * modules/unictype/property-combining-tests (Files): Likewise.
17820         * modules/unictype/property-composite-tests (Files): Likewise.
17821         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
17822         * modules/unictype/property-dash-tests (Files): Likewise.
17823         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
17824         * modules/unictype/property-default-ignorable-code-point-tests (Files):
17825         Likewise.
17826         * modules/unictype/property-deprecated-tests (Files): Likewise.
17827         * modules/unictype/property-diacritic-tests (Files): Likewise.
17828         * modules/unictype/property-extender-tests (Files): Likewise.
17829         * modules/unictype/property-format-control-tests (Files): Likewise.
17830         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
17831         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
17832         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
17833         * modules/unictype/property-hex-digit-tests (Files): Likewise.
17834         * modules/unictype/property-hyphen-tests (Files): Likewise.
17835         * modules/unictype/property-id-continue-tests (Files): Likewise.
17836         * modules/unictype/property-id-start-tests (Files): Likewise.
17837         * modules/unictype/property-ideographic-tests (Files): Likewise.
17838         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
17839         * modules/unictype/property-ids-trinary-operator-tests (Files):
17840         Likewise.
17841         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
17842         * modules/unictype/property-iso-control-tests (Files): Likewise.
17843         * modules/unictype/property-join-control-tests (Files): Likewise.
17844         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
17845         * modules/unictype/property-line-separator-tests (Files): Likewise.
17846         * modules/unictype/property-logical-order-exception-tests (Files):
17847         Likewise.
17848         * modules/unictype/property-lowercase-tests (Files): Likewise.
17849         * modules/unictype/property-math-tests (Files): Likewise.
17850         * modules/unictype/property-non-break-tests (Files): Likewise.
17851         * modules/unictype/property-not-a-character-tests (Files): Likewise.
17852         * modules/unictype/property-numeric-tests (Files): Likewise.
17853         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
17854         * modules/unictype/property-other-default-ignorable-code-point-tests
17855         (Files): Likewise.
17856         * modules/unictype/property-other-grapheme-extend-tests (Files):
17857         Likewise.
17858         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
17859         * modules/unictype/property-other-id-start-tests (Files): Likewise.
17860         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
17861         * modules/unictype/property-other-math-tests (Files): Likewise.
17862         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
17863         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
17864         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
17865         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
17866         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
17867         * modules/unictype/property-private-use-tests (Files): Likewise.
17868         * modules/unictype/property-punctuation-tests (Files): Likewise.
17869         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
17870         * modules/unictype/property-radical-tests (Files): Likewise.
17871         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
17872         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
17873         * modules/unictype/property-space-tests (Files): Likewise.
17874         * modules/unictype/property-terminal-punctuation-tests (Files):
17875         Likewise.
17876         * modules/unictype/property-test-tests (Files): Likewise.
17877         * modules/unictype/property-titlecase-tests (Files): Likewise.
17878         * modules/unictype/property-unassigned-code-value-tests (Files):
17879         Likewise.
17880         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
17881         * modules/unictype/property-uppercase-tests (Files): Likewise.
17882         * modules/unictype/property-variation-selector-tests (Files): Likewise.
17883         * modules/unictype/property-white-space-tests (Files): Likewise.
17884         * modules/unictype/property-xid-continue-tests (Files): Likewise.
17885         * modules/unictype/property-xid-start-tests (Files): Likewise.
17886         * modules/unictype/property-zero-width-tests (Files): Likewise.
17887         * modules/unictype/scripts-tests (Files): Likewise.
17888         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
17889         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
17890         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
17891         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
17892         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
17893         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
17894         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
17895         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
17896         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
17897         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
17898         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
17899         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
17900         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
17901         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
17902         * modules/uninorm/composition-tests (Files): Likewise.
17903         * modules/uninorm/decomposing-form-tests (Files): Likewise.
17904         * modules/uninorm/decomposition-tests (Files): Likewise.
17905         * modules/uninorm/filter-tests (Files): Likewise.
17906         * modules/uninorm/nfc-tests (Files): Likewise.
17907         * modules/uninorm/nfd-tests (Files): Likewise.
17908         * modules/uninorm/nfkc-tests (Files): Likewise.
17909         * modules/uninorm/nfkd-tests (Files): Likewise.
17910         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
17911         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
17912         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
17913         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
17914         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
17915         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
17916         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
17917         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17918         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
17919         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
17920         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
17921         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
17922         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17923         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
17924         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
17925         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
17926         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
17927         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17928         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
17929         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
17930         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
17931         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
17932         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17933         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
17934         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
17935         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
17936         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
17937         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
17938         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
17939         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
17940         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
17941         * modules/uniwidth/u8-width-tests (Files): Likewise.
17942         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
17943         * modules/uniwidth/u16-width-tests (Files): Likewise.
17944         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
17945         * modules/uniwidth/u32-width-tests (Files): Likewise.
17946         * modules/uniwidth/width-tests (Files): Likewise.
17947         * modules/unlink-tests (Files): Likewise.
17948         * modules/unsetenv-tests (Files): Likewise.
17949         * modules/usleep-tests (Files): Likewise.
17950         * modules/utimens-tests (Files): Likewise.
17951         * modules/utimensat-tests (Files): Likewise.
17952         * modules/vasnprintf-posix-tests (Files): Likewise.
17953         * modules/vasnprintf-tests (Files): Likewise.
17954         * modules/vasprintf-posix-tests (Files): Likewise.
17955         * modules/vasprintf-tests (Files): Likewise.
17956         * modules/vdprintf-posix-tests (Files): Likewise.
17957         * modules/vfprintf-posix-tests (Files): Likewise.
17958         * modules/vprintf-posix-tests (Files): Likewise.
17959         * modules/vsnprintf-posix-tests (Files): Likewise.
17960         * modules/vsnprintf-tests (Files): Likewise.
17961         * modules/vsprintf-posix-tests (Files): Likewise.
17962         * modules/wcrtomb-tests (Files): Likewise.
17963         * modules/wcsnrtombs-tests (Files): Likewise.
17964         * modules/wcsrtombs-tests (Files): Likewise.
17965         * modules/wctype-tests (Files): Likewise.
17966         * modules/wcwidth-tests (Files): Likewise.
17967         * modules/xmemdup0-tests (Files): Likewise.
17968         * modules/xprintf-posix-tests (Files): Likewise.
17969         * modules/xvasprintf-tests (Files): Likewise.
17970
17971 2009-12-24  Eric Blake  <ebb9@byu.net>
17972
17973         test-nanosleep: fix typo
17974         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
17975         patch.
17976         Reported by Bruno Haible.
17977
17978 2009-12-24  Bruno Haible  <bruno@clisp.org>
17979
17980         Reduce namespace pollution on glibc systems.
17981         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
17982         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
17983         systems.
17984         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
17985         <getopt.h> on glibc systems.
17986         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
17987         systems.
17988         * lib/fcntl.c: Include <unistd.h> here instead.
17989
17990 2009-12-24  Bruno Haible  <bruno@clisp.org>
17991
17992         * lib/stdlib.in.h (includes): Fix typo in today's commit.
17993
17994 2009-12-24  Eric Blake  <ebb9@byu.net>
17995
17996         tests: add signature checks
17997         * tests/signature.h (SIGNATURE_CHECK): New file.
17998         * modules/atexit-tests (Files): Use it.
17999         * modules/btowc-tests (Files): Likewise.
18000         * modules/canonicalize-lgpl-tests (Files): Likewise.
18001         * modules/ceilf-tests (Files): Likewise.
18002         * modules/ceill-tests (Files): Likewise.
18003         * modules/chown-tests (Files): Likewise.
18004         * modules/dprintf-posix-tests (Files): Likewise.
18005         * modules/dup2-tests (Files): Likewise.
18006         * modules/dup3-tests (Files): Likewise.
18007         * modules/duplocale-tests (Files): Likewise.
18008         * modules/fchdir-tests (Files): Likewise.
18009         * modules/fcntl-tests (Files): Likewise.
18010         * modules/fdopendir-tests (Files): Likewise.
18011         * modules/fflush-tests (Files): Likewise.
18012         * modules/flock-tests (Files): Likewise.
18013         * modules/floorf-tests (Files): Likewise.
18014         * modules/floorl-tests (Files): Likewise.
18015         * modules/fnmatch-tests (Files): Likewise.
18016         * modules/fopen-tests (Files): Likewise.
18017         * modules/fprintf-posix-tests (Files): Likewise.
18018         * modules/freopen-tests (Files): Likewise.
18019         * modules/frexp-nolibm-tests (Files): Likewise.
18020         * modules/frexp-tests (Files): Likewise.
18021         * modules/frexpl-nolibm-tests (Files): Likewise.
18022         * modules/frexpl-tests (Files): Likewise.
18023         * modules/fseek-tests (Files): Likewise.
18024         * modules/fseeko-tests (Files): Likewise.
18025         * modules/fsync-tests (Files): Likewise.
18026         * modules/ftell-tests (Files): Likewise.
18027         * modules/ftello-tests (Files): Likewise.
18028         * modules/futimens-tests (Files): Likewise.
18029         * modules/getaddrinfo-tests (Files): Likewise.
18030         * modules/getcwd-tests (Files): Likewise.
18031         * modules/getdelim-tests (Files): Likewise.
18032         * modules/getdtablesize-tests (Files): Likewise.
18033         * modules/getgroups-tests (Files): Likewise.
18034         * modules/gethostname-tests (Files): Likewise.
18035         * modules/getline-tests (Files): Likewise.
18036         * modules/getopt-posix-tests (Files): Likewise.
18037         * modules/gettimeofday-tests (Files): Likewise.
18038         * modules/glob-tests (Files): Likewise.
18039         * modules/iconv-tests (Files): Likewise.
18040         * modules/inet_ntop-tests (Files): Likewise.
18041         * modules/inet_pton-tests (Files): Likewise.
18042         * modules/isblank-tests (Files): Likewise.
18043         * modules/lchown-tests (Files): Likewise.
18044         * modules/ldexpl-tests (Files): Likewise.
18045         * modules/link-tests (Files): Likewise.
18046         * modules/linkat-tests (Files): Likewise.
18047         * modules/lseek-tests (Files): Likewise.
18048         * modules/lstat-tests (Files): Likewise.
18049         * modules/mbrtowc-tests (Files): Likewise.
18050         * modules/mbsinit-tests (Files): Likewise.
18051         * modules/mbsnrtowcs-tests (Files): Likewise.
18052         * modules/mbsrtowcs-tests (Files): Likewise.
18053         * modules/memchr-tests (Files): Likewise.
18054         * modules/memcmp-tests (Files): Likewise.
18055         * modules/memmem-tests (Files): Likewise.
18056         * modules/memrchr-tests (Files): Likewise.
18057         * modules/mkdir-tests (Files): Likewise.
18058         * modules/mkfifo-tests (Files): Likewise.
18059         * modules/mkfifoat-tests (Files): Likewise.
18060         * modules/mknod-tests (Files): Likewise.
18061         * modules/nanosleep-tests (Files): Likewise.
18062         * modules/nl_langinfo-tests (Files): Likewise.
18063         * modules/obstack-printf-tests (Files): Likewise.
18064         * modules/open-tests (Files): Likewise.
18065         * modules/openat-tests (Files): Likewise.
18066         * modules/perror-tests (Files): Likewise.
18067         * modules/pipe2-tests (Files): Likewise.
18068         * modules/poll-tests (Files): Likewise.
18069         * modules/popen-tests (Files): Likewise.
18070         * modules/posix_spawn-tests (Files): Likewise.
18071         * modules/posix_spawnp-tests (Files): Likewise.
18072         * modules/pread-tests (Files): Likewise.
18073         * modules/printf-posix-tests (Files): Likewise.
18074         * modules/pty-tests (Files): Likewise.
18075         * modules/random_r-tests (Files): Likewise.
18076         * modules/rawmemchr-tests (Files): Likewise.
18077         * modules/readlink-tests (Files): Likewise.
18078         * modules/remove-tests (Files): Likewise.
18079         * modules/rename-tests (Files): Likewise.
18080         * modules/renameat-tests (Files): Likewise.
18081         * modules/rmdir-tests (Files): Likewise.
18082         * modules/round-tests (Files): Likewise.
18083         * modules/roundf-tests (Files): Likewise.
18084         * modules/roundl-tests (Files): Likewise.
18085         * modules/select-tests (Files): Likewise.
18086         * modules/setenv-tests (Files): Likewise.
18087         * modules/sigaction-tests (Files): Likewise.
18088         * modules/sleep-tests (Files): Likewise.
18089         * modules/snprintf-posix-tests (Files): Likewise.
18090         * modules/snprintf-tests (Files): Likewise.
18091         * modules/sprintf-posix-tests (Files): Likewise.
18092         * modules/stat-tests (Files): Likewise.
18093         * modules/strcasestr-tests (Files): Likewise.
18094         * modules/strchrnul-tests (Files): Likewise.
18095         * modules/strerror-tests (Files): Likewise.
18096         * modules/strsignal-tests (Files): Likewise.
18097         * modules/strstr-tests (Files): Likewise.
18098         * modules/strtod-tests (Files): Likewise.
18099         * modules/strverscmp-tests (Files): Likewise.
18100         * modules/symlink-tests (Files): Likewise.
18101         * modules/symlinkat-tests (Files): Likewise.
18102         * modules/times-tests (Files): Likewise.
18103         * modules/trunc-tests (Files): Likewise.
18104         * modules/truncf-tests (Files): Likewise.
18105         * modules/truncl-tests (Files): Likewise.
18106         * modules/tsearch-tests (Files): Likewise.
18107         * modules/uname-tests (Files): Likewise.
18108         * modules/unlink-tests (Files): Likewise.
18109         * modules/unsetenv-tests (Files): Likewise.
18110         * modules/usleep-tests (Files): Likewise.
18111         * modules/utimensat-tests (Files): Likewise.
18112         * modules/vasprintf-tests (Files): Likewise.
18113         * modules/vdprintf-posix-tests (Files): Likewise.
18114         * modules/vfprintf-posix-tests (Files): Likewise.
18115         * modules/vprintf-posix-tests (Files): Likewise.
18116         * modules/vsnprintf-posix-tests (Files): Likewise.
18117         * modules/vsnprintf-tests (Files): Likewise.
18118         * modules/vsprintf-posix-tests (Files): Likewise.
18119         * modules/wcrtomb-tests (Files): Likewise.
18120         * modules/wcsnrtombs-tests (Files): Likewise.
18121         * modules/wcsrtombs-tests (Files): Likewise.
18122         * modules/wcwidth-tests (Files): Likewise.
18123         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18124         * tests/test-isinf.c (isinf): Likewise.
18125         * tests/test-isnan.c (isnan): Likewise.
18126         * tests/test-signbit.c (signbit): Likewise.
18127         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18128         declaration, either as macro or with correct signature.
18129         (select): Ensure function under test is declared with correct
18130         signature in correct header.
18131         * tests/test-atexit.c (atexit): Likewise.
18132         * tests/test-btowc.c (btowc): Likewise.
18133         * tests/test-canonicalize-lgpl.c (realpath)
18134         (canonicalize_file_name): Likewise.
18135         * tests/test-ceilf1.c (ceilf): Likewise.
18136         * tests/test-ceill.c (ceill): Likewise.
18137         * tests/test-chown.c (chown): Likewise.
18138         * tests/test-dprintf-posix.c (dprintf): Likewise.
18139         * tests/test-dup2.c (dup2): Likewise.
18140         * tests/test-dup3.c (dup3): Likewise.
18141         * tests/test-duplocale.c (duplocale): Likewise.
18142         * tests/test-fchdir.c (fchdir): Likewise.
18143         * tests/test-fchownat.c (fchownat): Likewise.
18144         * tests/test-fcntl.c (fcntl): Likewise.
18145         * tests/test-fdopendir.c (fdopendir): Likewise.
18146         * tests/test-fflush.c (fflush): Likewise.
18147         * tests/test-flock.c (flock): Likewise.
18148         * tests/test-floorf1.c (floorf): Likewise.
18149         * tests/test-floorl.c (floorl): Likewise.
18150         * tests/test-fnmatch.c (fnmatch): Likewise.
18151         * tests/test-fopen.c (fopen): Likewise.
18152         * tests/test-fprintf-posix.c (fprintf): Likewise.
18153         * tests/test-freopen.c (freopen): Likewise.
18154         * tests/test-frexp.c (frexp): Likewise.
18155         * tests/test-frexpl.c (frexpl): Likewise.
18156         * tests/test-fseek.c (fseek): Likewise.
18157         * tests/test-fseeko.c (fseeko): Likewise.
18158         * tests/test-fstatat.c (fstatat): Likewise.
18159         * tests/test-fsync.c (fsync): Likewise.
18160         * tests/test-ftell.c (ftell): Likewise.
18161         * tests/test-ftello.c (ftello): Likewise.
18162         * tests/test-futimens.c (futimens): Likewise.
18163         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
18164         (gai_strerror): Likewise.
18165         * tests/test-getcwd.c (getcwd): Likewise.
18166         * tests/test-getdelim.c (getdelim): Likewise.
18167         * tests/test-getdtablesize.c (getdtablesize): Likewise.
18168         * tests/test-getgroups.c (getgroups): Likewise.
18169         * tests/test-gethostname.c (gethostname): Likewise.
18170         * tests/test-getline.c (getline): Likewise.
18171         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
18172         Likewise.
18173         * tests/test-gettimeofday.c (gettimeofday): Likewise.
18174         * tests/test-glob.c (glob, globfree): Likewise.
18175         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
18176         * tests/test-inet_ntop.c (inet_ntop): Likewise.
18177         * tests/test-inet_pton.c (inet_pton): Likewise.
18178         * tests/test-isblank.c (isblank): Likewise.
18179         * tests/test-lchown.c (lchown): Likewise.
18180         * tests/test-ldexpl.c (ldexpl): Likewise.
18181         * tests/test-link.c (link): Likewise.
18182         * tests/test-linkat.c (linkat): Likewise.
18183         * tests/test-lseek.c (lseek): Likewise.
18184         * tests/test-lstat.c (lstat): Likewise.
18185         * tests/test-mbrtowc.c (mbrtowc): Likewise.
18186         * tests/test-mbsinit.c (mbsinit): Likewise.
18187         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
18188         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
18189         * tests/test-memchr.c (memchr): Likewise.
18190         * tests/test-memcmp.c (memcmp): Likewise.
18191         * tests/test-memmem.c (memmem): Likewise.
18192         * tests/test-memrchr.c (memrchr): Likewise.
18193         * tests/test-mkdir.c (mkdir): Likewise.
18194         * tests/test-mkdirat.c (mkdirat): Likewise.
18195         * tests/test-mkfifo.c (mkfifo): Likewise.
18196         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
18197         * tests/test-mknod.c (mknod): Likewise.
18198         * tests/test-nanosleep.c (nanosleep): Likewise.
18199         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
18200         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
18201         Likewise.
18202         * tests/test-open.c (open): Likewise.
18203         * tests/test-openat.c (openat): Likewise.
18204         * tests/test-perror.c (perror): Likewise.
18205         * tests/test-pipe2.c (pipe2): Likewise.
18206         * tests/test-poll.c (poll): Likewise.
18207         * tests/test-popen.c (popen, pclose): Likewise.
18208         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
18209         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
18210         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
18211         (posix_spawn_file_actions_destroy)
18212         (posix_spawn_file_actions_addclose)
18213         (posix_spawn_file_actions_addopen)
18214         (posix_spawn_file_actions_adddup2): Likewise.
18215         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
18216         * tests/test-pread.c (pread): Likewise.
18217         * tests/test-printf-posix.c (printf): Likewise.
18218         * tests/test-pty.c (openpty, forkpty): Likewise.
18219         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
18220         (random_r): Likewise.
18221         * tests/test-rawmemchr.c (rawmemchr): Likewise.
18222         * tests/test-readlink.c (readlink): Likewise.
18223         * tests/test-remove.c (remove): Likewise.
18224         * tests/test-rename.c (rename): Likewise.
18225         * tests/test-renameat.c (renameat): Likewise.
18226         * tests/test-rmdir.c (rmdir): Likewise.
18227         * tests/test-round1.c (round): Likewise.
18228         * tests/test-roundf1.c (roundf): Likewise.
18229         * tests/test-roundl.c (roundl): Likewise.
18230         * tests/test-setenv.c (setenv): Likewise.
18231         * tests/test-sigaction.c (sigaction): Likewise.
18232         * tests/test-sleep.c (sleep): Likewise.
18233         * tests/test-snprintf.c (snprintf): Likewise.
18234         * tests/test-sprintf-posix.c (sprintf): Likewise.
18235         * tests/test-stat.c (stat): Likewise.
18236         * tests/test-stpncpy.c (stpncpy): Likewise.
18237         * tests/test-strcasestr.c (strcasestr): Likewise.
18238         * tests/test-strchrnul.c (strchrnul): Likewise.
18239         * tests/test-strerror.c (strerror): Likewise.
18240         * tests/test-strsignal.c (strsignal): Likewise.
18241         * tests/test-strstr.c (strstr): Likewise.
18242         * tests/test-strtod.c (strtod): Likewise.
18243         * tests/test-strverscmp.c (strverscmp): Likewise.
18244         * tests/test-symlink.c (symlink): Likewise.
18245         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
18246         * tests/test-times.c (times): Likewise.
18247         * tests/test-trunc1.c (trunc): Likewise.
18248         * tests/test-truncf1.c (truncf): Likewise.
18249         * tests/test-truncl.c (truncl): Likewise.
18250         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
18251         Likewise.
18252         * tests/test-uname.c (uname): Likewise.
18253         * tests/test-unlink.c (unlink): Likewise.
18254         * tests/test-unlinkat.c (unlinkat): Likewise.
18255         * tests/test-unsetenv.c (unsetenv): Likewise.
18256         * tests/test-usleep.c (usleep): Likewise.
18257         * tests/test-utimensat.c (utimensat): Likewise.
18258         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
18259         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
18260         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
18261         * tests/test-vprintf-posix.c (vprintf): Likewise.
18262         * tests/test-vsnprintf.c (vsnprintf): Likewise.
18263         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
18264         * tests/test-wcrtomb.c (wcrtomb): Likewise.
18265         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
18266         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
18267         * tests/test-wcwidth.c (wcwidth): Likewise.
18268
18269         build: pull in conditional headers during GNULIB_POSIXCHECK
18270         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
18271         definitions from any conditionally-included headers.
18272         * lib/stdlib.in.h (includes): Likewise.
18273         * lib/unistd.in.h (includes): Likewise.
18274
18275 2009-12-24  Bruno Haible  <bruno@clisp.org>
18276
18277         * tests/test-argv-iter.c: Include header file being tested immediately
18278         after config.h.
18279         * tests/test-base64.c: Likewise.
18280         * tests/test-flock.c: Likewise.
18281         * tests/test-fsync.c: Likewise.
18282         * tests/test-getdate.c: Likewise.
18283         * tests/test-getndelim2.c: Likewise.
18284         * tests/test-isfinite.c: Likewise.
18285         * tests/test-isinf.c: Likewise.
18286         * tests/test-strerror.c: Likewise.
18287         * tests/test-strsignal.c: Likewise.
18288
18289 2009-12-23  Eric Blake  <ebb9@byu.net>
18290
18291         unistd: work around cygwin bug
18292         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
18293         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
18294         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18295
18296 2009-12-23  Bruno Haible  <bruno@clisp.org>
18297
18298         localename: More tests.
18299         * tests/test-localename.c (SIZEOF): New macro.
18300         (categories): New variable.
18301         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
18302         test_locale_name_default): Add test w.r.t. thread locale.
18303         (test_locale_name_thread): New function.
18304         (main): Invoke it.
18305
18306         localename: Make aware of thread locale.
18307         * lib/localename.h (gl_locale_name_thread): New declaration.
18308         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
18309         behaviour with respect to thread locale.
18310         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
18311         <langinfo.h>, glthread/lock.h.
18312         (SIZE_BITS): New macro.
18313         (string_hash): New function.
18314         (struct hash_node): New type.
18315         (HASH_TABLE_SIZE): New macro.
18316         (struniq_hash_table, struniq_lock): New variables.
18317         (struniq): New function.
18318         (gl_locale_name_thread): New function.
18319         (gl_locale_name): Invoke it.
18320         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
18321         * modules/localename (Depends-on): Add lock.
18322         Reported by Mike Gran <spk121@yahoo.com>.
18323
18324 2009-12-23  Eric Blake  <ebb9@byu.net>
18325
18326         va-args: new module
18327         * modules/va-args: New file.
18328         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
18329         * MODULES.html.sh (Core language properties): Mention it.
18330
18331         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
18332         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18333         named alias for __attribute__((__unused__)).
18334         * lib/chown.c: Update client.
18335         * lib/fchmodat.c: Likewise.
18336         * lib/fts.c: Likewise.
18337         * lib/getdate.y: Likewise.
18338         * lib/getgroups.c: Likewise.
18339         * lib/getopt.c: Likewise.
18340         * lib/getugroups.c: Likewise.
18341         * lib/mkdir.c: Likewise.
18342         * lib/mkfifo.c: Likewise.
18343         * lib/mkfifoat.c: Likewise.
18344         * lib/mknod.c: Likewise.
18345         * lib/mknodat.c: Likewise.
18346         * lib/readlink.c: Likewise.
18347         * lib/se-context.in.h: Likewise.
18348         * lib/se-selinux.in.h: Likewise.
18349         * lib/sockets.c: Likewise.
18350         * lib/symlink.c: Likewise.
18351         * lib/symlinkat.c: Likewise.
18352         * lib/unicodeio.c: Likewise.
18353         * lib/unistr.h: Likewise.
18354         * tests/test-areadlink.c: Likewise.
18355         * tests/test-areadlinkat.c: Likewise.
18356         * tests/test-filenamecat.c: Likewise.
18357         * tests/test-fseeko.c: Likewise.
18358         * tests/test-ftello.c: Likewise.
18359         * tests/test-getdate.c: Likewise.
18360         * tests/test-getgroups.c: Likewise.
18361         * tests/test-gethostname.c: Likewise.
18362         * tests/test-quotearg.c: Likewise.
18363         * tests/test-version-etc.c: Likewise.
18364         * tests/test-xalloc-die.c: Likewise.
18365         * tests/test-xfprintf-posix.c: Likewise.
18366         * tests/test-xprintf-posix.c: Likewise.
18367         * tests/test-xvasprintf.c: Likewise.
18368
18369         tests: avoid compiler warnings
18370         * tests/test-fcntl.c (main): Delete unused parameters.
18371         * tests/test-freopen-safer.c (main): Likewise.
18372         * tests/test-xalloc-die.c (main): Mark unused parameters.
18373         * tests/test-fseeko.c (main): Likewise.
18374         * tests/test-ftello.c (main): Likewise.
18375         * tests/test-nanosleep.c (main): Avoid declaration warning.
18376         * tests/test-sleep.c (main): Likewise.
18377         * tests/test-unsetenv.c (main): Silence warning about string
18378         literal.
18379         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18380
18381 2009-12-23  Bruno Haible  <bruno@clisp.org>
18382
18383         * tests/test-localename.c (test_locale_name): New function, extracted
18384         from main. Also test mixed situations.
18385         (test_locale_name_posix, test_locale_name_environ,
18386         test_locale_name_default): New functions.
18387         (main): Invoke them all.
18388         * modules/localename-tests (configure.ac): Test for newlocale.
18389
18390 2009-12-23  Bruno Haible  <bruno@clisp.org>
18391
18392         unistd: Ensure getcwd gets declared before being overridden.
18393         * lib/unistd.in.h: Conditionally include <io.h>.
18394
18395 2009-12-22  Bruno Haible  <bruno@clisp.org>
18396
18397         wchar: Diagnose broken combination of glibc and gcc versions and flags.
18398         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
18399         (gl_WCHAR_H): Invoke it.
18400         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
18401         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
18402         Reported by Karl Berry <karl@freefriends.org>.
18403
18404 2009-12-22  Eric Blake  <ebb9@byu.net>
18405
18406         math, unistd: avoid redundant includes
18407         * lib/math.in.h (isnan): No need to re-include <math.h>.
18408         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
18409
18410         getsubopt: work around cygwin bug
18411         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
18412         avoid conflicting with system getsubopt.
18413         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
18414         bug.
18415
18416         getopt: synchronize from glibc
18417         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
18418         parameter order.  Adjust all callers.
18419         (_getopt_internal_r, main): Adjust quoting in error messages.
18420         Drop considerations for outdated POSIX 1003.2 error message.
18421         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
18422         callers.
18423         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
18424
18425         test-getopt: test stderr behavior
18426         * modules/getopt-posix-tests (Depends-on): Add dup2.
18427         * tests/test-getopt.c (ASSERT): Avoid stderr.
18428         (main): Move stderr to a temporary file.
18429         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
18430         Instead, add parameter to inform caller if output occurred.
18431         (test_getopt): Adjust all existing tests to expect silence, and
18432         add new tests of leading ":".
18433         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18434         glibc shortcomings with leading "-:" or "+:" in optstring.
18435         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18436         Likewise.
18437         * doc/posix-functions/getopt.texi (getopt): Likewise.
18438
18439         test-getopt: enhance test
18440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
18441         supports optind=0.
18442         * tests/test-getopt.c (OPTIND_MIN): Move...
18443         * tests/test-getopt.h (OPTIND_MIN): ...here.
18444         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
18445         Require that optind=0 works, since modern BSD supports it in
18446         addition to optreset, and since coreutils expects it.
18447         (test_getopt_long_only): New test.
18448         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18449         glibc shortcomings with 'W;', and enforcement of optind=0.
18450         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18451         Likewise.
18452
18453 2009-12-21  Bruno Haible  <bruno@clisp.org>
18454
18455         localename: Improvements for MacOS X and Cygwin.
18456         * lib/localename.h (gl_locale_name_environ): New declaration.
18457         * lib/localename.c (gl_locale_name_environ): New function, extracted from
18458         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
18459         (gl_locale_name_posix): Invoke it.
18460         (gl_locale_name_default): Add comments. Use Windows native API also on
18461         Cygwin.
18462
18463 2009-12-21  Bruno Haible  <bruno@clisp.org>
18464
18465         Update list of Win32 locale ids.
18466         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
18467         (LANG_SAMI): Renamed from LANG_SAAMI.
18468         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18469         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18470         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18471         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18472         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18473         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18474         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18475         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18476         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18477         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18478         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18479         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18480         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18481         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18482         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18483         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18484         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18485         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18486         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18487         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18488         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18489         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18490         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18491         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18492         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18493         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18494         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18495         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18496         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18497         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18498         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18499         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18500         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18501         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18502         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18503         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18504         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18505         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18506         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
18507         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
18508         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
18509         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
18510         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
18511         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
18512         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
18513         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
18514         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
18515         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
18516         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
18517         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
18518         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
18519         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
18520         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
18521         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
18522         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
18523         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
18524         Add more languages and countries for Sami, Sorbian. Add more countries
18525         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
18526         for Pashto. Change country for Syriac, Tswana.
18527
18528 2009-12-21  Eric Blake  <ebb9@byu.net>
18529
18530         test-utimens: avoid spurious failure
18531         * tests/test-chown.h (nap): Factor...
18532         * tests/nap.h: ...into new file.
18533         * tests/test-lchown.h (nap): Avoid duplication.
18534         * tests/test-utimens-common.h (nap): Use shared implementation,
18535         necessary on file systems with 1-second resolution.
18536         * modules/chown-tests (Files): Include new file.
18537         * modules/fdutimensat-tests (Files): Likewise.
18538         * modules/futimens-tests (Files): Likewise.
18539         * modules/lchown-tests (Files): Likewise.
18540         * modules/openat-tests (Files): Likewise.
18541         * modules/utimens-tests (Files): Likewise.
18542         * modules/utimensat-tests (Files): Likewise.
18543
18544 2009-12-19  Eric Blake  <ebb9@byu.net>
18545
18546         futimens, utimensat: work around Linux bug
18547         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
18548         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18549         * lib/utimensat.c (rpl_utimensat): Work around it.
18550         * lib/futimens.c (rpl_futimens): Adjust comment.
18551
18552         utimens: work around Linux ctime bug
18553         * lib/utimens.c (detect_ctime_bug): New helper function.
18554         (update_timespec): Differentiate between workaround needed for
18555         this bug vs. what is needed for systems that lack utimensat.
18556         (fdutimens, lutimens): Work around bug.
18557
18558         utimens: check for ctime update
18559         * tests/test-utimens-common.h (check_ctime): Define.
18560         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
18561         * tests/test-futimens.h (test_futimens): Likewise.
18562         * tests/test-lutimens.h (test_lutimens): Likewise.
18563         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18564         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18565
18566 2009-12-19  Bruno Haible  <bruno@clisp.org>
18567
18568         dprintf-posix: Check against memory leak fixed on 2009-12-15.
18569         * tests/test-dprintf-posix2.sh: New file.
18570         * tests/test-dprintf-posix2.c: New file.
18571         * modules/dprintf-posix-tests (Files): Add them.
18572         (configure.ac): Check for getrlimit and setrlimit.
18573         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18574
18575 2009-12-19  Bruno Haible  <bruno@clisp.org>
18576
18577         fprintf-posix: Check against memory leak fixed on 2009-12-15.
18578         * tests/test-fprintf-posix3.sh: New file.
18579         * tests/test-fprintf-posix3.c: New file.
18580         * modules/fprintf-posix-tests (Files): Add them.
18581         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18582
18583 2009-12-19  Eric Blake  <ebb9@byu.net>
18584
18585         dirfd: fix prototype
18586         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
18587         * lib/dirfd.c (dirfd): Likewise.
18588
18589         canonicalize: reduce memory usage
18590         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
18591         allocation to size.
18592         Reported by Solar Designer <solar@openwall.com>.
18593
18594 2009-12-19  Bruno Haible  <bruno@clisp.org>
18595
18596         New module attribute 'Applicability'.
18597         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
18598         * gnulib-tool: New option --extract-applicability.
18599         (func_usage): Document it.
18600         (sed_extract_prog): Recognize it.
18601         (func_get_applicability): New function.
18602         (func_import): Generalize handling of 'link-warning' module.
18603         * modules/link-warning (Applicability): New section.
18604         * modules/arg-nonnull (Applicability): New section.
18605         Repoted by Simon Josefsson <simon@josefsson.org>.
18606
18607 2009-12-19  Bruno Haible  <bruno@clisp.org>
18608
18609         fflush: tweak
18610         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
18611         * lib/fseeko.c (rpl_fseeko): Likewise.
18612
18613 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
18614
18615         * lib/gl_list.h: Fix typo in comment.
18616
18617 2009-12-16  Eric Blake  <ebb9@byu.net>
18618
18619         fcntl: use to simplify other modules
18620         * modules/cloexec (Depends-on): Add fcntl.
18621         * modules/fchdir (Depends-on): Likewise.
18622         * modules/fd-safer-flag (Depends-on): Likewise.
18623         * modules/unistd-safer (Depends-on): Likewise.
18624         * modules/dup3 (configure.ac): Set module indicator.
18625         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
18626         missing.
18627         * lib/fchdir.c (_gl_register_dup): Fix comment.
18628         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
18629         * lib/dup-safer.c (dup_safer): Likewise.
18630         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
18631         * lib/dup3.c (dup3): Likewise.
18632         * tests/test-fchdir.c (main): Enhance test.
18633         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
18634
18635         fcntl: port portions of fcntl to mingw
18636         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
18637         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
18638         replacement for mingw.
18639         * modules/fcntl (Description): Update.
18640         (Depends-on): Add dup2.
18641         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
18642         * modules/fcntl-h (Makefile.am): Substitute it.
18643         * lib/fcntl.in.h (fcntl): Update declaration.
18644         (F_DUPFD, F_GETFD): New macros, when needed.
18645         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18646         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
18647         * tests/test-fcntl.c (check_flags, main): Enhance test for items
18648         we now guarantee.
18649
18650         fcntl: work around cygwin bug in F_DUPFD
18651         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
18652         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
18653         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
18654         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
18655         * doc/posix-functions/fcntl.texi (fcntl): Document it.
18656
18657         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
18658         * modules/fcntl (Files): List new files.
18659         (configure.ac): Run a test.
18660         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
18661         * lib/fcntl.c (rpl_fcntl): Likewise.
18662         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
18663         (gl_FCNTL_H): Always replace fcntl.h.
18664         * modules/fcntl-h (Makefile.am): Substitute witnesses.
18665         * lib/fcntl.in.h (fcntl): Declare replacement.
18666         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
18667         needed, plus a witness.
18668         * doc/posix-functions/fcntl.texi (fcntl): Document this.
18669         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18670         * tests/test-fcntl.c: New file.
18671         * modules/fcntl-tests: Likewise.
18672
18673         binary-io: avoid potential compilation warning
18674         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
18675         directives.
18676
18677         fflush: avoid compilation error on NetBSD
18678         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
18679         between off_t and fpos_t, since the latter is sometimes a struct.
18680         * lib/fseeko.c (rpl_fseeko): Likewise.
18681         Reported by Alexander Nasonov <alnsn@yandex.ru>.
18682
18683 2009-12-15  Eric Blake  <ebb9@byu.net>
18684
18685         fcntl-h, stdio, sys_ioctl: fix declarations
18686         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
18687         function must not take arguments.
18688         * lib/sys_ioctl.in.h (ioctl): Likewise.
18689         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
18690         (open): Add a link warning.
18691
18692 2009-12-15  Jim Meyering  <meyering@redhat.com>
18693
18694         areadlink, areadlink-with-size: relax license to LGPLv2+
18695         * modules/areadlink (License): Relax to LGPLv2+.
18696         * modules/areadlink-with-size (License): Likewise.
18697
18698 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
18699             Bruno Haible  <bruno@clisp.org>
18700
18701         *printf: Fix memory leak.
18702         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
18703         * lib/vfprintf.c (vfprintf): Likewise.
18704         * lib/dprintf.c (dprintf): Likewise.
18705         * lib/vdprintf.c (vdprintf): Likewise.
18706
18707 2009-12-14  Eric Blake  <ebb9@byu.net>
18708
18709         accept4: adjust module dependencies
18710         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
18711
18712         utimens: one more try at avoiding compiler warning
18713         * lib/utimens.c (lutimens): Lower scope of result.
18714
18715 2009-12-13  Bruno Haible  <bruno@clisp.org>
18716
18717         Move the malloc checking from module 'list' to new module 'xlist'.
18718         * modules/xlist: New file.
18719         * lib/gl_xlist.h: New file.
18720         * lib/gl_xlist.c: New file.
18721         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
18722         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
18723         gl_list_add_last, gl_list_add_before, gl_list_add_after,
18724         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
18725         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
18726         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
18727         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
18728         gl_sortedlist_nx_add): New declarations.
18729         (struct gl_list_implementation): Rename and change methods accordingly.
18730         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
18731         (gl_list_nx_create): Renamed from gl_list_create.
18732         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18733         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18734         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18735         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18736         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18737         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18738         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18739         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18740         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
18741         gl_list_create_empty.
18742         (gl_list_nx_create): Renamed from gl_list_create.
18743         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18744         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18745         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18746         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18747         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18748         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18749         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18750         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18751         * lib/gl_array_list.c: Don't include xalloc.h.
18752         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
18753         NULL upon out-of-memory.
18754         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
18755         out-of-memory.
18756         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
18757         Change return type to 'int'.
18758         (gl_array_nx_set_at): Renamed from gl_array_set_at.
18759         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18760         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
18761         upon out-of-memory.
18762         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
18763         upon out-of-memory.
18764         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
18765         upon out-of-memory.
18766         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
18767         upon out-of-memory.
18768         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
18769         out-of-memory.
18770         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
18771         Update.
18772         (gl_array_list_implementation): Update.
18773         * lib/gl_carray_list.c: Don't include xalloc.h.
18774         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
18775         Return NULL upon out-of-memory.
18776         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
18777         out-of-memory.
18778         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
18779         Change return type to 'int'.
18780         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
18781         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18782         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
18783         upon out-of-memory.
18784         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
18785         upon out-of-memory.
18786         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
18787         out-of-memory.
18788         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
18789         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
18790         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
18791         Update.
18792         (gl_carray_list_implementation): Update.
18793         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
18794         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
18795         gl_linked_create_empty. Return NULL upon out-of-memory.
18796         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
18797         out-of-memory.
18798         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
18799         Change return type to 'int'. Return -1 upon out-of-memory.
18800         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
18801         out-of-memory.
18802         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
18803         upon out-of-memory.
18804         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
18805         upon out-of-memory.
18806         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
18807         NULL upon out-of-memory.
18808         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
18809         upon out-of-memory.
18810         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
18811         out-of-memory.
18812         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
18813         Update.
18814         * lib/gl_linked_list.c: Don't include xalloc.h.
18815         (gl_linked_list_implementation): Update.
18816         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
18817         (add_to_bucket): Change return type to 'int'.
18818         (gl_linkedhash_list_implementation): Update.
18819         * lib/gl_anytree_list1.h (free_subtree): New function.
18820         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
18821         gl_tree_create_empty. Return NULL upon out-of-memory.
18822         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
18823         Change return type to 'int'. Return -1 upon out-of-memory.
18824         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
18825         out-of-memory.
18826         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
18827         (gl_tree_remove_node): New function, moved here from
18828         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
18829         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
18830         Update.
18831         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
18832         malloc, not xmalloc. Return NULL upon out-of-memory.
18833         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18834         out-of-memory.
18835         (gl_tree_remove_node_from_tree): New function, extracted from
18836         gl_tree_remove_node.
18837         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18838         upon out-of-memory.
18839         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18840         out-of-memory.
18841         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18842         upon out-of-memory.
18843         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18844         upon out-of-memory.
18845         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18846         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
18847         not xmalloc. Return NULL upon out-of-memory.
18848         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18849         out-of-memory.
18850         (gl_tree_remove_node_from_tree): New function, extracted from
18851         gl_tree_remove_node.
18852         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18853         upon out-of-memory.
18854         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18855         out-of-memory.
18856         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18857         upon out-of-memory.
18858         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18859         upon out-of-memory.
18860         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18861         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
18862         gl_anytree_list1.h before gl_anyavltree_list2.h.
18863         (gl_avltree_list_implementation): Update.
18864         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
18865         gl_anytree_list1.h before gl_anyavltree_list2.h.
18866         (gl_rbtree_list_implementation): Update.
18867         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
18868         Change return type to 'int'. Return -1 upon out-of-memory. Use
18869         __builtin_expect.
18870         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
18871         (gl_avltreehash_list_implementation): Update.
18872         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
18873         (gl_rbtreehash_list_implementation): Update.
18874         * modules/array-list (Depends-on): Remove xalloc.
18875         * modules/carray-list (Depends-on): Likewise.
18876         * modules/linked-list (Depends-on): Likewise.
18877         * modules/linkedhash-list (Depends-on): Likewise.
18878         * modules/avltree-list (Depends-on): Likewise.
18879         * modules/rbtree-list (Depends-on): Likewise.
18880         * modules/avltreehash-list (Depends-on): Likewise.
18881         * modules/rbtreehash-list (Depends-on): Likewise.
18882
18883         * modules/xsublist: New file.
18884         * lib/gl_xsublist.h: New file.
18885         * lib/gl_xsublist.c: New file.
18886         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
18887         (gl_sublist_nx_create): New declaration.
18888         * lib/gl_sublist.c: Don't include xalloc.h.
18889         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
18890         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
18891         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
18892         Change return type to 'int'. Return -1 upon out-of-memory.
18893         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
18894         upon out-of-memory.
18895         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
18896         NULL upon out-of-memory.
18897         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
18898         upon out-of-memory.
18899         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
18900         NULL upon out-of-memory.
18901         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
18902         NULL upon out-of-memory.
18903         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
18904         upon out-of-memory.
18905         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
18906         (gl_sublist_list_implementation): Update.
18907         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
18908         upon out-of-memory.
18909         * modules/sublist (Depends-on): Remove xalloc.
18910
18911         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
18912         * tests/test-carray_list.c: Likewise.
18913         * tests/test-linked_list.c: Likewise.
18914         * tests/test-linkedhash_list.c: Likewise.
18915         * tests/test-avltree_list.c: Likewise.
18916         * tests/test-rbtree_list.c: Likewise.
18917         * tests/test-avltreehash_list.c: Likewise.
18918         * tests/test-rbtreehash_list.c: Likewise.
18919         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
18920         * modules/carray-list-tests (Makefile.am): Likewise.
18921         * modules/linked-list-tests (Makefile.am): Likewise.
18922         * modules/linkedhash-list-tests (Makefile.am): Likewise.
18923         * modules/avltree-list-tests (Makefile.am): Likewise.
18924         * modules/rbtree-list-tests (Makefile.am): Likewise.
18925         * modules/avltreehash-list-tests (Makefile.am): Likewise.
18926         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
18927
18928         * NEWS: Mention the changes.
18929
18930         * lib/clean-temp.c: Include gl_xlist.h.
18931         * modules/clean-temp (Depends-on): Add xlist.
18932
18933         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
18934         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
18935
18936         * tests/test-array_oset.c: Include gl_xlist.h.
18937         * modules/array-oset-tests (Depends-on): Add xlist.
18938
18939         Reported by José E. Marchesi <jemarch@gnu.org>.
18940
18941 2009-12-13  Bruno Haible  <bruno@clisp.org>
18942
18943         Move the malloc checking from module 'oset' to new module 'xoset'.
18944         * modules/xoset: New file.
18945         * lib/gl_xoset.h: New file.
18946         * lib/gl_xoset.c: New file.
18947         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
18948         declarations.
18949         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
18950         (struct gl_oset_implementation): Rename and change methods accordingly.
18951         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
18952         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18953         'int'. Mark as __warn_unused_result__.
18954         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
18955         gl_oset_create_empty.
18956         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18957         'int'.
18958         * lib/gl_array_oset.c: Don't include xalloc.h.
18959         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
18960         malloc, not xmalloc.
18961         (grow): Change return type to 'int'. Don't call xalloc_die.
18962         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
18963         to 'int'.
18964         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
18965         'int'.
18966         (gl_array_oset_implementation): Update.
18967         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
18968         gl_tree_create_empty.
18969         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
18970         'int'.
18971         * lib/gl_avltree_oset.c: Don't include xalloc.h.
18972         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18973         xmalloc.
18974         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18975         not xmalloc.
18976         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18977         xmalloc.
18978         (gl_avltree_oset_implementation): Update.
18979         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
18980         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18981         xmalloc.
18982         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18983         not xmalloc.
18984         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18985         xmalloc.
18986         (gl_rbtree_oset_implementation): Update.
18987         * modules/array-oset (Depends-on): Remove xalloc.
18988         * modules/avltree-oset (Depends-on): Likewise.
18989         * modules/rbtree-oset (Depends-on): Likewise.
18990         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
18991         * tests/test-avltree_oset.c: Likewise.
18992         * tests/test-rbtree_oset.c: Likewise.
18993         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
18994         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
18995         * modules/rbtree-oset-tests (Makefile.am): Likewise.
18996         * NEWS: Mention the change.
18997
18998 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
18999
19000         maint.mk: allow a project to override release-prep commands
19001         * top/maint.mk (alpha, beta, stable): Move release-preparatory
19002         commands into a new rule.
19003         (release-prep): New rule.
19004         (release-prep-hook): New overridable variable.
19005
19006 2009-12-13  Bruno Haible  <bruno@clisp.org>
19007
19008         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
19009
19010 2009-12-13  Jim Meyering  <meyering@redhat.com>
19011
19012         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
19013         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
19014
19015 2009-12-12  Bruno Haible  <bruno@clisp.org>
19016
19017         duplocale: Tweak.
19018         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
19019
19020 2009-12-12  Karl Berry  <karl@gnu.org>
19021
19022         * config/srclist.txt (strtoll.c): tab changes, no more sync.
19023
19024 2009-12-12  Bruno Haible  <bruno@clisp.org>
19025
19026         * m4/po.m4: Undo incorrect untabification.
19027
19028 2009-12-12  Bruno Haible  <bruno@clisp.org>
19029
19030         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
19031         * modules/c-strtod (Depends-on): Add locale.
19032         * modules/c-strtold (Depends-on): Likewise.
19033
19034 2009-12-12  Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
19037
19038 2009-12-11  Eric Blake  <ebb9@byu.net>
19039
19040         setenv: relax requirement in light of POSIX ruling
19041         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
19042         not NULL.
19043         * tests/test-setenv.c (main): Relax test.
19044         * tests/test-unsetenv.c (main): Likewise.
19045         * doc/posix-functions/setenv.texi (setenv): Document this.
19046         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19047
19048 2009-12-11  Bruno Haible  <bruno@clisp.org>
19049
19050         New module 'fd-safer-flag'.
19051         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
19052         * lib/dup-safer.c (dup_safer_flag): Remove function.
19053         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
19054         * lib/fd-safer.c (fd_safer_flag): Remove function.
19055         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
19056         * modules/cloexec (configure.ac): Drop indicator macro.
19057         * modules/fd-safer-flag: New file.
19058         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
19059         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
19060         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
19061
19062 2009-12-11  Bruno Haible  <bruno@clisp.org>
19063
19064         Tests for module 'nl_langinfo'.
19065         * modules/nl_langinfo-tests: New file.
19066         * tests/test-nl_langinfo.sh: New file.
19067         * tests/test-nl_langinfo.c: New file.
19068
19069         New module 'nl_langinfo'.
19070         * lib/nl_langinfo.c: New file.
19071         * m4/nl_langinfo.m4: New file.
19072         * modules/nl_langinfo: New file.
19073         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
19074
19075 2009-12-11  Bruno Haible  <bruno@clisp.org>
19076
19077         Tests for module 'langinfo'.
19078         * modules/langinfo-tests: New file.
19079         * tests/test-langinfo.c: New file.
19080
19081         New module 'langinfo'.
19082         * lib/langinfo.in.h: New file.
19083         * m4/langinfo_h.m4: New file.
19084         * modules/langinfo: New file.
19085         * doc/posix-headers/langinfo.texi: Mention the new module.
19086
19087 2009-12-11  Bruno Haible  <bruno@clisp.org>
19088
19089         * lib/config.charset: Untabify.
19090
19091 2009-12-11  Bruno Haible  <bruno@clisp.org>
19092
19093         * modules/unistd-safer (configure.ac): Drop indicator macro.
19094
19095 2009-12-11  Bruno Haible  <bruno@clisp.org>
19096
19097         Move pipe2-safer code to its own file.
19098         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
19099         * lib/pipe-safer.c (pipe2_safer): Remove function.
19100         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
19101         (Makefile.am): Add it to lib_SOURCES.
19102
19103 2009-12-10  Bruno Haible  <bruno@clisp.org>
19104
19105         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
19106
19107 2009-12-10  Bruno Haible  <bruno@clisp.org>
19108
19109         Declare which arguments expect non-NULL values, for GCC and clang.
19110         * build-aux/arg-nonnull.h: New file.
19111         * modules/arg-nonnull: New file.
19112         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
19113         (inet_ntop, inet_pton): Use it.
19114         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
19115         (closedir, dirfd, opendir, scandir, alphasort): Use it.
19116         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
19117         (open, openat): Use it.
19118         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
19119         (fnmatch): Use it.
19120         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19121         (getopt, getopt_long, getopt_long_only): Use it.
19122         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19123         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19124         Use it.
19125         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19126         (iconv_open): Use it.
19127         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19128         (strtoimax, strtoumax): Use it.
19129         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19130         (duplocale): Use it.
19131         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19132         (frexp, frexpl): Use it.
19133         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
19134         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
19135         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
19136         (tsearch, tfind, tdelete, twalk): Use it.
19137         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
19138         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19139         sigpending): Use it.
19140         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
19141         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19142         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19143         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19144         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19145         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19146         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19147         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19148         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19149         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19150         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19151         Use it.
19152         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
19153         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
19154         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
19155         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
19156         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
19157         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
19158         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
19159         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
19160         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
19161         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
19162         strtoull, unsetenv): Use it.
19163         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
19164         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19165         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19166         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19167         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19168         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
19169         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
19170         (strcasecmp, strncasecmp): Use it.
19171         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
19172         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
19173         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
19174         rpl_setsockopt): Use it.
19175         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
19176         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
19177         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
19178         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
19179         (gettimeofday): Use it.
19180         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
19181         (times): Use it.
19182         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
19183         (uname): Use it.
19184         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
19185         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
19186         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
19187         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
19188         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
19189         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
19190         unlinkat, write): Use it.
19191         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
19192         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
19193         * lib/argv-iter.h: Include arg-nonnull.h.
19194         (_ATTRIBUTE_NONNULL_): Remove macro.
19195         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
19196         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
19197         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
19198         optimization.
19199         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
19200         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
19201         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
19202         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
19203         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
19204         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
19205         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
19206         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
19207         * modules/arpa_inet (Depends-on): Add arg-nonnull.
19208         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
19209         * modules/dirent (Depends-on): Add arg-nonnull.
19210         (Makefile.am): Insert arg-nonnull.h into dirent.h.
19211         * modules/fcntl-h (Depends-on): Add arg-nonnull.
19212         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
19213         * modules/fnmatch (Depends-on): Add arg-nonnull.
19214         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
19215         * modules/getopt-posix (Depends-on): Add arg-nonnull.
19216         (Makefile.am): Insert arg-nonnull.h into getopt.h.
19217         * modules/glob (Depends-on): Add arg-nonnull.
19218         (Makefile.am): Insert arg-nonnull.h into glob.h.
19219         * modules/iconv_open (Depends-on): Add arg-nonnull.
19220         (Makefile.am): Insert arg-nonnull.h into iconv.h.
19221         * modules/inttypes (Depends-on): Add arg-nonnull.
19222         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
19223         * modules/locale (Depends-on): Add arg-nonnull.
19224         (Makefile.am): Insert arg-nonnull.h into locale.h.
19225         * modules/math (Depends-on): Add arg-nonnull.
19226         (Makefile.am): Insert arg-nonnull.h into math.h.
19227         * modules/netdb (Depends-on): Add arg-nonnull.
19228         (Makefile.am): Insert arg-nonnull.h into netdb.h.
19229         * modules/search (Depends-on): Add arg-nonnull.
19230         (Makefile.am): Insert arg-nonnull.h into search.h.
19231         * modules/signal (Depends-on): Add arg-nonnull.
19232         (Makefile.am): Insert arg-nonnull.h into signal.h.
19233         * modules/spawn (Depends-on): Add arg-nonnull.
19234         (Makefile.am): Insert arg-nonnull.h into spawn.h.
19235         * modules/stdio (Depends-on): Add arg-nonnull.
19236         (Makefile.am): Insert arg-nonnull.h into stdio.h.
19237         * modules/stdlib (Depends-on): Add arg-nonnull.
19238         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
19239         * modules/string (Depends-on): Add arg-nonnull.
19240         (Makefile.am): Insert arg-nonnull.h into string.h.
19241         * modules/strings (Depends-on): Add arg-nonnull.
19242         (Makefile.am): Insert arg-nonnull.h into strings.h.
19243         * modules/sys_socket (Depends-on): Add arg-nonnull.
19244         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
19245         * modules/sys_stat (Depends-on): Add arg-nonnull.
19246         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
19247         * modules/sys_time (Depends-on): Add arg-nonnull.
19248         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
19249         * modules/sys_times (Depends-on): Add arg-nonnull.
19250         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
19251         * modules/sys_utsname (Depends-on): Add arg-nonnull.
19252         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
19253         * modules/time (Depends-on): Add arg-nonnull.
19254         (Makefile.am): Insert arg-nonnull.h into time.h.
19255         * modules/unistd (Depends-on): Add arg-nonnull.
19256         (Makefile.am): Insert arg-nonnull.h into unistd.h.
19257         * modules/wchar (Depends-on): Add arg-nonnull.
19258         (Makefile.am): Insert arg-nonnull.h into wchar.h.
19259         * modules/argv-iter (Depends-on): Add arg-nonnull.
19260         * tests/test-canonicalize.c (null_ptr): New function.
19261         (main): Use it.
19262         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
19263         (main): Use it.
19264         * tests/test-memmem.c (null_ptr): New function.
19265         (main): Use it.
19266         Reported by Jim Meyering.
19267
19268 2009-12-10  Bruno Haible  <bruno@clisp.org>
19269
19270         Use spaces for indentation, not tabs.
19271         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19272         * m4/*.m4: Untabify.
19273         * build-aux/*.h: Untabify.
19274         * tests/**/*.[hc]: Untabify.
19275         * README: New section "Indent with spaces, not TABs", based on
19276         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
19277         * NEWS: Mention the change.
19278
19279 2009-12-10  Bruno Haible  <bruno@clisp.org>
19280
19281         pty test: Fix link error.
19282         * modules/pty-tests (Makefile.am): Add the default LDADD value to
19283         test_pty_LDADD.
19284
19285 2009-12-07  Simon Josefsson  <simon@josefsson.org>
19286
19287         * modules/pty: New file.
19288         * modules/pty-tests: New file.
19289         * m4/pty.m4: New file.
19290         * tests/test-pty.c: New file.
19291         * doc/glibc-headers/pty.texi: Modified.
19292         * doc/glibc-functions/forkpty.texi: Modified.
19293         * doc/glibc-functions/openpty.texi: Modified.
19294
19295 2009-12-10  Bruno Haible  <bruno@clisp.org>
19296
19297         Avoid syntax error in C++ mode.
19298         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
19299
19300 2009-12-10  Bruno Haible  <bruno@clisp.org>
19301
19302         Use sed with option -e.
19303         * gnulib-tool (func_version, func_emit_copyright_notice,
19304         func_emit_initmacro_end, func_import, func_create_testdir): Pass
19305         option -e to sed.
19306         * modules/link-warning (Makefile.am): Likewise.
19307
19308 2009-12-10  Jim Meyering  <meyering@redhat.com>
19309
19310         mgetgroups: do not write bytes beyond end of malloc'd buffer
19311         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
19312         username, we call getgroups with a one-element-shorter buffer,
19313         but still told it the length was original, max_n_groups.
19314
19315 2009-12-09  Eric Blake  <ebb9@byu.net>
19316
19317         cloexec: relax license
19318         * modules/cloexec (Maintainer): Add myself.
19319         (License): Use LGPL, not GPL.
19320
19321         link-warning: optimize generation
19322         * modules/link-warning (Makefile.am): Reduce process usage.
19323
19324 2009-12-09  Bruno Haible  <bruno@clisp.org>
19325
19326         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
19327         workaround was added on 2009-11-17.
19328
19329 2009-12-09  Jim Meyering  <meyering@redhat.com>
19330             Bruno Haible  <bruno@clisp.org>
19331
19332         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19333         * modules/link-warning (Makefile.am): Make the comment-removing sed
19334         command more robust in the face of bootstrap-prepended comment lines.
19335
19336 2009-12-09  Bruno Haible  <bruno@clisp.org>
19337
19338         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19339         most one group.
19340
19341 2009-12-09  Simon Josefsson <simon@josefsson.org>
19342             Bruno Haible  <bruno@clisp.org>
19343
19344         * build-aux/link-warning.h: Add copyright notice.
19345         * modules/link-warning (Makefile.am): Generate link-warning.h from
19346         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19347         * NEWS: Mention change in link-warning module.
19348         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19349         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19350         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19351         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19352         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19353         * modules/math (Makefile.am): Add dependency to math.h.
19354         * modules/search (Makefile.am): Add dependency to search.h.
19355         * modules/signal (Makefile.am): Add dependency to signal.h.
19356         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19357         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19358         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
19359         * modules/string (Makefile.am): Add dependency to string.h.
19360         * modules/strings (Makefile.am): Add dependency to strings.h.
19361         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
19362         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
19363         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
19364         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
19365         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
19366         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
19367         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
19368         * modules/unistd (Makefile.am): Add dependency to unistd.h.
19369         * modules/wchar (Makefile.am): Add dependency to wchar.h.
19370
19371 2009-12-09  Bruno Haible  <bruno@clisp.org>
19372
19373         fchdir: Optimize away rpl_fstat when possible.
19374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
19375         REPLACE_OPEN_DIRECTORY.
19376         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
19377
19378 2009-12-09  Bruno Haible  <bruno@clisp.org>
19379
19380         * lib/fchdir.c: Update comment.
19381
19382 2009-12-09  Bruno Haible  <bruno@clisp.org>
19383
19384         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
19385
19386 2009-12-08  Eric Blake  <ebb9@byu.net>
19387
19388         fchdir: avoid memory leak on re-registration.
19389         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
19390
19391 2009-12-08  Jim Meyering  <meyering@redhat.com>
19392
19393         init.sh: avoid Solaris 10 /bin/sh portability problem
19394         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
19395         sourced script:
19396           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
19397           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
19398           bar
19399         tests/init.sh relied on that, accepting a --set-path=DIR argument,
19400         and two tests used that idiom.
19401         * tests/init.sh: Update suggested usage comments.
19402         (path_prepend_): New function, to be used in place
19403         of the --src-path=DIR option.
19404         (setup_): Move PATH-prepending code into path_prepend_.
19405         * tests/test-pread.sh: Adapt to new usage.
19406         * tests/test-xalloc-die.sh: Likewise.
19407
19408 2009-12-08  Simon Josefsson  <simon@josefsson.org>
19409
19410         * doc/gnulib.texi (Glibc pty.h): Add.
19411         * doc/glibc-functions/forkpty.texi: Add.
19412         * doc/glibc-functions/openpty.texi: Add.
19413         Suggested by Bruno Haible.
19414
19415 2009-12-08  Eric Blake  <ebb9@byu.net>
19416
19417         fchdir: fix logic bugs
19418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
19419         * tests/test-fchdir.c (main): Enhance test.
19420         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
19421         is in use.
19422
19423         dup2: fix logic bugs
19424         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
19425         REPLACE_DUP2 to decide when rpl_dup2 is needed.
19426         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
19427         exists.
19428         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
19429
19430 2009-12-07  Eric Blake  <ebb9@byu.net>
19431
19432         unlink: fix m4 detection
19433         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
19434
19435         unistd-safer: add unit test
19436         * modules/unistd-safer-tests: New file.
19437         * tests/test-dup-safer.c: Likewise.
19438         * tests/test-cloexec.c (setmode): Avoid compiler warning.
19439         * tests/test-dup2.c (setmode): Likewise.
19440         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
19441
19442         cloexec: preserve text vs. binary across dup_cloexec
19443         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
19444         mode.
19445         * modules/dup2-tests (Depends-on): Add binary-io.
19446         * modules/cloexec-tests (Depends-on): Likewise.
19447         * tests/test-dup2.c (setmode, is_mode): New helpers.
19448         (main): Add tests that translation mode is preserved.
19449         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
19450         Reported by Bruno Haible.
19451
19452         mgetgroups: reduce duplicate listings
19453         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
19454         resulting array.
19455         * tests/test-chown.h (test_chown): Simplify client.
19456         * tests/test-lchown.h (test_lchown): Likewise.
19457
19458 2009-12-06  Bruno Haible  <bruno@clisp.org>
19459
19460         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
19461         value.
19462
19463 2009-12-06  Bruno Haible  <bruno@clisp.org>
19464
19465         * lib/progname.c: Include stdio.h, stdlib.h.
19466         (set_program_name): Reject a NULL argument.
19467
19468 2009-12-05  Eric Blake  <ebb9@byu.net>
19469
19470         pipe2-safer: new module
19471         * modules/pipe2-safer: New file.
19472         * lib/unistd-safer.h (pipe2_safer): New prototype.
19473         * lib/unistd--.h (pipe2): New wrapper.
19474         * lib/pipe-safer.c (pipe2_safer): New function.
19475         * modules/pipe (Depends-on): Add pipe2-safer.
19476         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19477
19478         stdlib-safer: preserve cloexec flag for mkostemp[s]
19479         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19480         fd_safer_flag.
19481
19482         unistd-safer: allow preservation of cloexec status via flag
19483         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19484         prototypes.
19485         * lib/dup-safer.c (dup_safer_flag): New function.
19486         * lib/fd-safer.c (fd_safer_flag): Likewise.
19487         * modules/cloexec (configure.ac): Set witness.
19488
19489         test-dup2: enhance test
19490         * modules/dup2-tests (Depends-on): Add cloexec.
19491         * tests/test-dup2.c (main): Enhance test.
19492
19493         cloexec: add dup_cloexec
19494         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19495         header and comments.
19496         * lib/cloexec.c (set_cloexec_flag): Add comments.
19497         (dup_cloexec): New function, with mingw implementation borrowed
19498         from...
19499         * lib/w32spawn.h (dup_noinherit): ...here.
19500         * modules/execute (Depends-on): Add cloexec.
19501         * modules/pipe (Depends-on): Likewise.
19502         * modules/cloexec (Depends-on): Add dup2.
19503         * modules/cloexec-tests (Files): New file.
19504         * tests/test-cloexec.c: Likewise.
19505
19506         test-xalloc-die: fix test for mingw
19507         * modules/xalloc-die-tests (Files): Add tests/init.sh.
19508         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
19509         directory and .exe suffix off argv[0] output.
19510
19511         test-fseeko: fix test for mingw
19512         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
19513         than undefining fseek, so test will pass on mingw.
19514
19515 2009-12-05  Bruno Haible  <bruno@clisp.org>
19516
19517         * lib/progname.h (set_program_name): Clarify specification.
19518         * lib/progname.c (set_program_name): Likewise.
19519         Reported by Jim Meyering.
19520
19521 2009-12-05  Jim Meyering  <meyering@redhat.com>
19522
19523         maint.mk: backslash-escape parens in default regexp
19524         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
19525         backslash-escape the literal parentheses.
19526
19527         maint.mk: news-date-check: use grep -E
19528         * top/maint.mk (today): Define a Make variable, not a...
19529         (news-date-check): ...shell variable.
19530         (news-date-regexp): Use the Make variable.
19531         Use grep's -E option.  Change the failing diagnostic to mention
19532         the variable, $(news-date-regexp).
19533
19534 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
19535
19536         maintainer-makefile: allow customization of NEWS entry format
19537         * top/maint.mk (news-date-regexp): New overridable variable.
19538         (news-date-check): Use it.
19539
19540 2009-12-04  Eric Blake  <ebb9@byu.net>
19541
19542         mgetgroups: add xgetgroups, and avoid ENOSYS failures
19543         * lib/mgetgroups.h (xgetgroups): New prototype.
19544         * lib/mgetgroups.c (xgetgroups): New wrapper.
19545         (mgetgroups): Handle ENOSYS.
19546         * modules/mgetgroups (Depends-on): Add realloc.
19547         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
19548
19549         mgetgroups: avoid argument promotion issues with -1
19550         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
19551         for invalid gid_t.
19552         * tests/test-chown.h (getegid, test_chown): Likewise.
19553         * tests/test-lchown.h (getegid, test_lchown): Likewise.
19554
19555 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
19556
19557         exclude: Fix header file problems.
19558         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
19559
19560 2009-12-01  Jim Meyering  <meyering@redhat.com>
19561
19562         fts: fts_open: do not let an empty string cause immediate failure
19563         This is required in support of GNU rm, for which the command
19564         "rm A '' B" must process and remove both A and B, in spite of
19565         the empty string argument.
19566         * lib/fts.c (fts_open): Do not let the presence of an empty string
19567         cause fts_open to fail immediately.  Most fts-using tools must be
19568         able to process all arguments, in order, and can be expected to
19569         diagnose such arguments themselves.
19570
19571 2009-11-30  Eric Blake  <ebb9@byu.net>
19572
19573         utimens: fix compilation error
19574         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
19575         Declare variable at right scope.
19576
19577 2009-11-29  Jim Meyering  <meyering@redhat.com>
19578
19579         bootstrap: handle perl-5.11's changed --version output
19580         * build-aux/bootstrap (get_version): Handle perl separately,
19581         since perl-5.11's --version output is different.
19582
19583 2009-11-28  Jim Meyering  <meyering@redhat.com>
19584
19585         userspec: depend on the inttostr module, too
19586         * modules/userspec (Depends-on): Add inttostr.
19587
19588         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
19589         * lib/userspec.c (parse_with_separator): Do not accept a user ID
19590         number of MAXUID when it evaluates to (uid_t) -1.
19591         Likewise for group ID.  Reported by Matt McCutchen in
19592         <http://savannah.gnu.org/bugs/?28113>
19593
19594         userspec: reformat to use spaces, not TABs
19595         * lib/userspec.c: Expand TABs to spaces.
19596         Add Emacs' "indent-tabs-mode: nil" hint.
19597
19598 2009-11-27  Eric Blake  <ebb9@byu.net>
19599
19600         getopt-gnu: flush out another BSD bug
19601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
19602         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
19603         flush out BSD bug.
19604         * tests/test-getopt.h (test_getopt): End lists with NULL.
19605         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19606         (test_getopt_long_posix): Enhance test.
19607         * modules/getopt-posix-tests (Depends-on): Add stdbool.
19608         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
19609         getopt-gnu.
19610         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19611         Likewise.
19612
19613 2009-11-27  Simon Josefsson  <simon@josefsson.org>
19614
19615         * modules/idpriv-droptemp-tests (Notice): Fix text.
19616
19617 2009-11-27  Jim Meyering  <meyering@redhat.com>
19618
19619         test-xalloc-die: avoid spurious failure due to libtool argv difference
19620         In a libtool-enabled project, this test would fail due to a difference
19621         in the emitted program name, e.g.,
19622         -test-xalloc-die: memory exhausted
19623         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
19624         Use program to avoid that.
19625         * modules/xalloc-die-tests (Depends-on): Add progname.
19626         * tests/test-xalloc-die.c: Include progname.h".
19627         (program_name): Remove decl.
19628         (main): Call set_program_name.
19629         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
19630
19631 2009-11-26  Richard Jones  <rjones@redhat.com>
19632
19633         w32sock: leave win32 error in place.
19634         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
19635
19636 2009-11-26  Eric Blake  <ebb9@byu.net>
19637
19638         init.sh: suggest to use skip_ and fail_ functions in comments
19639         * tests/init.sh: Add a sentence.
19640
19641 2009-11-25  Bruno Haible  <bruno@clisp.org>
19642
19643         init.sh: add documentation in comments
19644         * tests/init.sh: Add some developer and user documentation.
19645
19646 2009-11-26  Jim Meyering  <meyering@redhat.com>
19647
19648         init.sh: accommodate even those who specify bogus srcdir manually
19649         * tests/init.sh: Normally, srcdir is guaranteed by automake and
19650         configure-time tests to be sanitized, so that there is no need to
19651         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
19652         (with no double quotes) suffices.  However, since tests may be
19653         invoked manually, and since you may explicitly set srcdir to the
19654         name of a directory containing spaces, do quote its uses here.
19655         * tests/test-pread.sh: Likewise.
19656         Suggested by Bruno Haible.
19657
19658         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
19659         * tests/test-pread.sh: Write no data into the pipe, because
19660         test-pread actually reads none.  This avoids a diagnostic,
19661         "bash: echo: write error: Broken pipe", that arises in the unusual
19662         event something is ignoring SIGPIPE, and might be interpreted
19663         as some sort of failure.  Reported by Bruno Haible.
19664
19665 2009-11-25  Jim Meyering  <meyering@redhat.com>
19666
19667         test-pread: cover failure with ESPIPE and EINVAL
19668         * tests/test-pread.c (main): Test for failure, too.
19669         * tests/test-pread.sh: Invoke with stdin on a pipe.
19670         Suggested by Eric Blake.
19671
19672         pread: improvement and fix
19673         * modules/pread (Depends-on): Depend on lseek, for portability to
19674         e.g., mingw.  Suggested by Eric Blake.
19675         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
19676
19677         unistd.in.h: correct declaration of pread
19678         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
19679         Reported by Richard W.M. Jones.
19680
19681         test-pread.sh: distribute the test script
19682         * modules/pread-tests (Files): Include test-pread.sh.
19683
19684         test-pread.sh: clean up
19685         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
19686         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
19687         That is unnecessary, since it's always ".".
19688         Suggestion from Eric Blake.
19689
19690         test-pread.sh: make executable
19691         * tests/test-pread.sh: Set executable bit.
19692         Reported by Eric Blake.
19693
19694         correct typo in test-pread.sh
19695         * tests/test-pread.sh: Add #! line.
19696
19697         test pread
19698         * tests/test-pread.c: New file.
19699         * tests/test-pread.sh: Likewise.
19700         * modules/pread-tests: Likewise.
19701
19702         pread: new module
19703         * modules/pread: New file.
19704         * lib/unistd.in.h (pread): Define/declare.
19705         * lib/pread.c (pread): New file.
19706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
19707         * modules/unistd (Makefile.am): Substitute witnesses.
19708         * doc/posix-functions/pread.texi (pread): Update.
19709         * MODULES.html.sh: Add pread.
19710
19711 2009-11-25  Jim Meyering  <meyering@redhat.com>
19712
19713         tests/init.sh: new file to be used via most *.sh tests
19714         * tests/init.sh: New file.
19715
19716 2009-11-25  Eric Blake  <ebb9@byu.net>
19717
19718         utimens: work around older Linux failure with symlinks
19719         * lib/utimens.c (lutimensat_works_really): New variable.
19720         (fdutimens, lutimens): Use it to manage kernels that support
19721         nanosecond times on files, but not on symlinks.
19722         Reported by OndÅ™ej Vašík.
19723
19724         utimes: fix configure grammar
19725         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
19726
19727 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
19728
19729         regex: Fix fastmap for multibyte character ranges.
19730         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
19731         characters when a multibyte character range is included.
19732
19733 2009-11-22  Andy Wingo  <wingo@pobox.com>
19734
19735         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
19736         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
19737
19738 2009-11-24  Bruno Haible  <bruno@clisp.org>
19739
19740         doc: Most *_l functions exist in MacOS X 10.5.
19741         * doc/posix-functions/duplocale.texi: Update platforms list.
19742         * doc/posix-functions/freelocale.texi: Likewise.
19743         * doc/posix-functions/newlocale.texi: Likewise.
19744         * doc/posix-functions/uselocale.texi: Likewise.
19745         * doc/posix-functions/isalnum_l.texi: Likewise.
19746         * doc/posix-functions/isalpha_l.texi: Likewise.
19747         * doc/posix-functions/isblank_l.texi: Likewise.
19748         * doc/posix-functions/iscntrl_l.texi: Likewise.
19749         * doc/posix-functions/isdigit_l.texi: Likewise.
19750         * doc/posix-functions/isgraph_l.texi: Likewise.
19751         * doc/posix-functions/islower_l.texi: Likewise.
19752         * doc/posix-functions/isprint_l.texi: Likewise.
19753         * doc/posix-functions/ispunct_l.texi: Likewise.
19754         * doc/posix-functions/isspace_l.texi: Likewise.
19755         * doc/posix-functions/isupper_l.texi: Likewise.
19756         * doc/posix-functions/iswalnum_l.texi: Likewise.
19757         * doc/posix-functions/iswalpha_l.texi: Likewise.
19758         * doc/posix-functions/iswblank_l.texi: Likewise.
19759         * doc/posix-functions/iswcntrl_l.texi: Likewise.
19760         * doc/posix-functions/iswctype_l.texi: Likewise.
19761         * doc/posix-functions/iswdigit_l.texi: Likewise.
19762         * doc/posix-functions/iswgraph_l.texi: Likewise.
19763         * doc/posix-functions/iswlower_l.texi: Likewise.
19764         * doc/posix-functions/iswprint_l.texi: Likewise.
19765         * doc/posix-functions/iswpunct_l.texi: Likewise.
19766         * doc/posix-functions/iswspace_l.texi: Likewise.
19767         * doc/posix-functions/iswupper_l.texi: Likewise.
19768         * doc/posix-functions/iswxdigit_l.texi: Likewise.
19769         * doc/posix-functions/isxdigit_l.texi: Likewise.
19770         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
19771         * doc/posix-functions/strcasecmp_l.texi: Likewise.
19772         * doc/posix-functions/strcoll_l.texi: Likewise.
19773         * doc/posix-functions/strfmon_l.texi: Likewise.
19774         * doc/posix-functions/strftime_l.texi: Likewise.
19775         * doc/posix-functions/strncasecmp_l.texi: Likewise.
19776         * doc/posix-functions/strxfrm_l.texi: Likewise.
19777         * doc/posix-functions/tolower_l.texi: Likewise.
19778         * doc/posix-functions/toupper_l.texi: Likewise.
19779         * doc/posix-functions/towctrans_l.texi: Likewise.
19780         * doc/posix-functions/towlower_l.texi: Likewise.
19781         * doc/posix-functions/towupper_l.texi: Likewise.
19782         * doc/posix-functions/wcscoll_l.texi: Likewise.
19783         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
19784         * doc/posix-functions/wctrans_l.texi: Likewise.
19785         * doc/posix-functions/wctype_l.texi: Likewise.
19786         * doc/glibc-functions/strptime_l.texi: Likewise.
19787         * doc/glibc-functions/strtod_l.texi: Likewise.
19788         * doc/glibc-functions/strtof_l.texi: Likewise.
19789         * doc/glibc-functions/strtol_l.texi: Likewise.
19790         * doc/glibc-functions/strtold_l.texi: Likewise.
19791         * doc/glibc-functions/strtoll_l.texi: Likewise.
19792         * doc/glibc-functions/strtoul_l.texi: Likewise.
19793         * doc/glibc-functions/strtoull_l.texi: Likewise.
19794         * doc/glibc-functions/wcsftime_l.texi: Likewise.
19795         * doc/glibc-functions/wcstod_l.texi: Likewise.
19796         * doc/glibc-functions/wcstof_l.texi: Likewise.
19797         * doc/glibc-functions/wcstol_l.texi: Likewise.
19798         * doc/glibc-functions/wcstold_l.texi: Likewise.
19799         * doc/glibc-functions/wcstoll_l.texi: Likewise.
19800         * doc/glibc-functions/wcstoul_l.texi: Likewise.
19801         * doc/glibc-functions/wcstoull_l.texi: Likewise.
19802
19803 2009-11-24  Bruno Haible  <bruno@clisp.org>
19804
19805         duplocale: Fix logic bug.
19806         * lib/duplocale.c: Don't include <langinfo.h>.
19807         (_NL_LOCALE_NAME): Remove macro.
19808         (rpl_duplocale): Use setlocale instead of nl_langinfo.
19809         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
19810
19811 2009-11-23  Jim Meyering  <meyering@redhat.com>
19812
19813         test-update-copyright: don't hard-code /usr/bin/perl
19814         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
19815         perl to print the current year.  Gilles Espinasse reported that
19816         the replaced use of perl was hard-coded as /usr/bin/perl.
19817
19818 2009-11-23  Bruno Haible  <bruno@clisp.org>
19819
19820         duplocale: Add support for glibc 2.3.x.
19821         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
19822
19823 2009-11-22  Bruno Haible  <bruno@clisp.org>
19824
19825         vasnprintf: Tiny optimization.
19826         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
19827         MacOS X.
19828
19829 2009-11-22  Bruno Haible  <bruno@clisp.org>
19830
19831         Tests for module 'duplocale'.
19832         * modules/duplocale-tests: New file.
19833         * tests/test-duplocale.c: New file.
19834
19835         New module 'duplocale'.
19836         * m4/duplocale.m4: New file.
19837         * lib/locale.in.h (duplocale): New declaration.
19838         * lib/duplocale.c: New file.
19839         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
19840         gl_LOCALE_H_DEFAULTS): New macros.
19841         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
19842         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
19843         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
19844         REPLACE_DUPLOCALE.
19845         * modules/duplocale: New file.
19846         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
19847
19848 2009-11-22  Bruno Haible  <bruno@clisp.org>
19849
19850         * modules/locale-tests (configure.ac): Test for newlocale function.
19851         * tests/test-locale.c: When the system has extended locale functions,
19852         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
19853
19854         locale: Make locale_t available when possible.
19855         * lib/locale.in.h: Include <xlocale.h> when it exists.
19856         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
19857         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
19858         * modules/locale (Depends-on): Add extensions.
19859         (Makefile.am): Also substitute HAVE_XLOCALE_H.
19860         * doc/posix-headers/locale.texi: Document the problem with locale_t.
19861
19862 2009-11-22  Bruno Haible  <bruno@clisp.org>
19863
19864         Add comments.
19865         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
19866         invocation.
19867         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19868         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19869         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19870
19871 2009-11-22  Bruno Haible  <bruno@clisp.org>
19872
19873         error: account for the possibility of freopen (stdout).
19874         * lib/error.c: Include <unistd.h>.
19875         (flush_stdout): New function, extracted from error and error_at_line.
19876         Determine stdout's fd dynamically.
19877         (error, error_at_line): Invoke flush_stdout.
19878         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
19879         * modules/error (Depends-on): Add unistd.
19880
19881 2009-11-22  Bruno Haible  <bruno@clisp.org>
19882
19883         diffseq: Add comment.
19884         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
19885
19886 2009-11-22  Jim Meyering  <meyering@redhat.com>
19887
19888         c-stack: avoid defining an unused static function
19889         * lib/c-stack.c (find_stack_direction): Do not define this function
19890         when it will not be used.
19891
19892         diffseq: avoid spurious gcc warnings
19893         * lib/diffseq.h (IF_LINT2): Define.
19894         (compareseq): Use it to initialize two members of "part".
19895         This avoids two used-uninitialized warnings.
19896
19897 2009-11-21  Jim Meyering  <meyering@redhat.com>
19898
19899         c-stack: avoid "ignoring return value of `write'" warning
19900         * lib/c-stack.c: Include "ignore-value.h".
19901         (die): Explicitly ignore each write return value.
19902         * modules/c-stack (Depends-on): Add ignore-value.
19903
19904 2009-11-21  Bruno Haible  <bruno@clisp.org>
19905
19906         diffseq: reduce scope of variable 'best'.
19907         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
19908         variable, earlier used for two different purposes.
19909
19910 2009-11-21  Jim Meyering  <meyering@redhat.com>
19911
19912         diffseq: remove useless assignment to "best"
19913         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
19914         assignment.  At that point "best" is already guaranteed to be zero.
19915
19916 2009-11-20  Eric Blake  <ebb9@byu.net>
19917
19918         build: mention ftp redirector in release announcements
19919         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
19920         values that used to come from cfg.mk; mention FTP redirect URL.
19921         * build-aux/announce-gen: Mention the mirror list.
19922         Suggested by Karl Berry.
19923
19924         nanosleep: improve port to mingw
19925         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
19926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
19927         LIB_NANOSLEEP, but only when needed.
19928         * modules/select (Link): Document LIBSOCKET.
19929         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
19930         enough.
19931
19932         nanosleep: work around cygwin bug
19933         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
19934         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
19935         bug.
19936         (getnow): Delete, not needed.
19937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
19938         LIB_CLOCK_GETTIME.
19939         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
19940         clock-time, gettime.
19941         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
19942         bug.
19943         * modules/nanosleep-tests: New test.
19944         * tests/test-nanosleep.c: New file.
19945
19946         sleep: work around cygwin bug
19947         * lib/sleep.c (rpl_sleep): Work around the bug.
19948         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
19949         (gl_PREREQ_SLEEP): Delete unused macro.
19950         * modules/sleep (Depends-on): Add verify.
19951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19952         * modules/unistd (Makefile.am): Substitute witness.
19953         * lib/unistd.in.h (sleep): Update prototype.
19954         * doc/posix-functions/sleep.texi (sleep): Document the bug.
19955         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
19956         * modules/sleep-tests (Depends-on): Check for alarm.
19957
19958 2009-11-20  Jim Meyering  <meyering@redhat.com>
19959
19960         maint.mk: improve sc_prohibit_magic_number_exit
19961         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
19962         so it does not match uses like System.exit(1).
19963         Add comments showing how to correct all offenders.
19964
19965 2009-11-19  Eric Blake  <ebb9@byu.net>
19966
19967         xalloc-die-tests: add missing library
19968         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
19969
19970         test-xvasprintf: silence compiler warnings
19971         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
19972         empty string from gcc.
19973
19974 2009-11-19  Jim Meyering  <meyering@redhat.com>
19975
19976         xfreopen: new module, from coreutils
19977         * modules/xfreopen: New module.
19978         * lib/xfreopen.c: New file.
19979         * lib/xfreopen.h: New file.
19980         * MODULES.html.sh (File stream based Input/Output"): Add it.
19981
19982 2009-11-19  Eric Blake  <ebb9@byu.net>
19983
19984         manywarnings: depend on warnings
19985         * modules/manywarnings (Depends-on): Add warnings.
19986
19987         build: avoid compiler warnings
19988         * lib/select.c (rpl_select): Delete unused variable.
19989         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
19990
19991 2009-11-18  Eric Blake  <ebb9@byu.net>
19992
19993         tests: avoid false negative with --with-packager
19994         * tests/test-version-etc.sh: Discard packager information.
19995         * tests/test-argp-version-etc-1.sh: Likewise.
19996         Reported by Mike Frysinger.
19997
19998         utimens: fix regression on Solaris
19999         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
20000         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
20001         can only change fd timestamps via futimesat.  Instead, use an
20002         additional witness macro to avoid BSD bug.
20003         Reported by Jim Meyering.
20004
20005 2009-11-17  Eric Blake  <ebb9@byu.net>
20006
20007         usleep: use it to simplify tests
20008         * modules/stat-time-tests (Depends-on): Add usleep.
20009         (configure.ac): Drop usleep check.
20010         * modules/chown-tests (Depends-on, configure.ac): Likewise.
20011         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
20012         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
20013         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
20014         * modules/openat-tests (Depends-on, configure.ac): Likewise.
20015         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
20016         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
20017         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
20018         Likewise.
20019         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
20020         * tests/test-lchown.h (nap): Likewise.
20021         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
20022         * tests/test-stat-time.c (nap): Likewise.
20023         * tests/test-utimens-common.h (nap): Update comments.
20024
20025         usleep: new module
20026         * modules/usleep: New file.
20027         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20028         * lib/usleep.c (usleep): Likewise.
20029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20030         * modules/unistd (Makefile.am): Substitute witnesses.
20031         * lib/unistd.in.h (usleep): Add declaration.
20032         * doc/pastposix-functions/usleep.texi (usleep): Document this.
20033         * MODULES.html.sh (Date and time): Likewise.
20034         * modules/usleep-tests (Depends-on): New test.
20035         * tests/test-usleep.c: New file.
20036
20037         chown: work around OpenBSD bug
20038         * lib/chown.c (rpl_chown): Work around the bug.
20039         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
20040         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
20041         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
20042         * modules/chown (Depends-on): Add stdbool.
20043         * modules/lchown (Depends-on): Likewise.
20044         * doc/posix-functions/chown.texi (chown): Document the bug.
20045         * doc/posix-functions/lchown.texi (lchown): Likewise.
20046         * tests/test-lchown.h (test_chown): Relax test.
20047
20048         mkstemp: avoid conflict with C++ keyword template
20049         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
20050         * lib/mkostemp.c (mkostemp): Likewise.
20051         * lib/mkostemps.c (mkostemps): Likewise.
20052         * lib/mkstemp.c (mkstemp): Likewise.
20053         * lib/mkstemps.c (mkstemps): Likewise.
20054
20055         xalloc-die-tests: optimize
20056         * tests/test-xalloc-die.sh: Reduce number of processes.
20057
20058 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20059
20060         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
20061         patch from ludo@gnu.org (Ludovic Courtès).
20062
20063 2009-11-17  Jim Meyering  <meyering@redhat.com>
20064
20065         version-etc: use proper license string
20066         * modules/version-etc (License): Use LGPL, not LGPLv3+.
20067         * modules/version-etc-fsf: Likewise.
20068
20069 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20070
20071         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
20072         printed to stdout.  Deal with EOL differences.
20073
20074 2009-11-17  Eric Blake  <ebb9@byu.net>
20075
20076         unsetenv: work around Solaris bug
20077         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
20078         * lib/unsetenv.c (rpl_unsetenv): Work around it.
20079         Reported by Jim Meyering.
20080
20081         vasnprintf: avoid compiler warnings
20082         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
20083         variables.
20084         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
20085
20086 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20087
20088         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
20089         settings since xalloc-die is no longer the self test,
20090         xalloc-die.sh is.
20091
20092 2009-11-17  Jim Meyering  <meyering@redhat.com>
20093
20094         test-xalloc-die.sh: make the code agree with the commit log
20095         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
20096         at the end, just in case you happen to have a test-xalloc-die
20097         program in some other PATH directory.
20098
20099         test-xalloc-die.sh: fix a portability bug
20100         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
20101         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
20102         Otherwise, argv[0] (as often seen in diagnostics) would be too
20103         system-dependent, sometimes with, and sometimes without the leading "./".
20104
20105         version-etc-fsf: relax license to LGPLv3+
20106         * modules/version-etc-fsf (License): Relax license.
20107
20108 2009-11-16  Eric Blake  <ebb9@byu.net>
20109
20110         xalloc-die-tests: avoid printing null pointer
20111         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
20112         shell script.
20113         * tests/test-xalloc-die.c (program_name): Declare.
20114         * tests/test-xalloc-die.sh (tmpfiles): New file.
20115
20116         setenv, unsetenv: work around various bugs
20117         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
20118         (setenv) [HAVE_SETENV]: Work around bugs.
20119         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
20120         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20121         for bugs.
20122         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20123         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20125         * modules/stdlib (Makefile.am): Update substitutions.
20126         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20127         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20128         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20129         * modules/setenv-tests: New test.
20130         * modules/unsetenv-tests: Likewise.
20131         * tests/test-setenv.c: New file.
20132         * tests/test-unsetenv.c: Likewise.
20133
20134 2009-11-16  Jim Meyering  <meyering@redhat.com>
20135
20136         version-etc: relax license to LGPLv3+
20137         * modules/version-etc (License): Relax license.
20138
20139         better AC_REQUIRE expanded-before-required-warning avoidance
20140         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
20141         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
20142         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
20143         which is no longer needed.
20144
20145 2009-11-16  Eric Blake  <ebb9@byu.net>
20146
20147         test-freading: clean up temporary file
20148         * tests/test-freading.c (main): Remove file on success, and use
20149         ASSERT more liberally.
20150         Reported by Jim Meyering.
20151
20152 2009-11-16  Jim Meyering  <meyering@redhat.com>
20153
20154         avoid new AC_REQUIRE expanded-before-required warnings
20155         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
20156         merely using it.
20157         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
20158         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
20159
20160 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20161
20162         * tests/test-xalloc-die.c: New file.
20163         * modules/xalloc-die-tests: New file.
20164         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
20165         XFAIL_TESTS so it can be appended by modules.
20166
20167 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20168
20169         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
20170         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
20171
20172 2009-11-14  Eric Blake  <ebb9@byu.net>
20173
20174         fnmatch: avoid compiler warning
20175         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
20176         to silence compiler warning about mismatch signedness in ?:.
20177         Reported by Robert Millan.
20178
20179         intprops: add double-inclusion guard
20180         * lib/intprops.h: Allow idempotent includes.
20181         Suggested by Bruce Korb.
20182
20183         openat: detect Solaris fchownat bug
20184         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
20185         penalizing glibc chownat when only lchownat is broken.
20186         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
20187         trailing slash bugs.
20188         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
20189         * modules/openat-tests (Files): Include more files.
20190         (Depends-on): Add mgetgroups, sleep, stat-time.
20191         (configure.ac): Add additional checks.
20192         (Makefile.am): Build new test.
20193         * tests/test-fchownat.c: New file.
20194
20195         lchown: detect Solaris and FreeBSD bug
20196         * lib/lchown.c (rpl_lchown): Work around bug.
20197         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
20198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20199         * modules/unistd (Makefile.am): Populate it.
20200         * lib/unistd.in.h (lchown): Update declaration.
20201         * doc/posix-functions/lchown.texi (lchown): Document the bug.
20202         * modules/lchown-tests: New file.
20203         * tests/test-lchown.h (test_lchown): Likewise.
20204         * tests/test-lchown.c (main): Likewise.
20205
20206         chown: detect Solaris and FreeBSD bug
20207         * lib/chown.c (rpl_chown): Work around bug.
20208         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
20209         (gl_PREREQ_CHOWN): Delete.
20210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20211         * modules/unistd (Makefile.am): Populate it.
20212         * lib/unistd.in.h (chown): Update declaration.
20213         * lib/lchown.c (chown): Update client.
20214         * modules/lchown (Depends-on): Add lstat.
20215         * doc/posix-functions/chown.texi (chown): Document the bug.
20216         * doc/posix-functions/getgroups.texi (getgroups): Document
20217         getgroups pitfall.
20218         * modules/chown-tests: New file.
20219         * tests/test-chown.h (test_chown): Likewise.
20220         * tests/test-chown.c (main): Likewise.
20221
20222 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
20223
20224         gnulib-tool: correctly detect absence of m4 directories
20225         * gnulib-tool: Avoid extra newline on data passed to wc -l.
20226
20227 2009-11-14  Jim Meyering  <meyering@redhat.com>
20228
20229         maint.mk: Prohibit inclusion of "xalloc.h" without use.
20230         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20231
20232 2009-11-14  John W. Eaton  <jwe@gnu.org>
20233
20234         strftime.h: wrap funtion declaration in extern "C" block
20235         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
20236
20237 2009-11-13  Eric Blake  <ebb9@byu.net>
20238
20239         getgroups: avoid compiler warning
20240         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
20241
20242         getgroups: work around FreeBSD bug
20243         * lib/getgroups.c (rpl_getgroups): Work around the bug.
20244         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
20245         * doc/posix-functions/getgroups.texi (getgroups): Document it.
20246         * tests/test-getgroups.c (main): Fix buffer overrun.
20247
20248         getgroups: avoid compilation failure
20249         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
20250         * modules/getgroups (Depends-on): Add stdint.
20251
20252 2009-11-13  Jim Meyering  <meyering@redhat.com>
20253
20254         test-getgroups: avoid compilation failure
20255         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
20256
20257 2009-11-13  Eric Blake  <ebb9@byu.net>
20258
20259         mgetgroups: new module, taken from coreutils
20260         * modules/mgetgroups: New file.
20261         * lib/mgetgroups.h: Likewise.
20262         * lib/mgetgroups.c (mgetgroups): Likewise.
20263         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
20264         * MODULES.html.sh (Users and groups): Mention it.
20265
20266         getgroups: don't expose GETGROUPS_T to user
20267         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
20268         an element at a time if GETGROUPS_T is wrong size.
20269         * lib/getugroups.h (getugroups): Change signature.
20270         * lib/unistd.in.h (getgroups): Likewise.
20271         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
20272         signature needs fixing.
20273         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
20274         AC_TYPE_GETGROUPS.
20275         * modules/group-member (Depends-on): Add getgroups.
20276         * lib/group-member.c (group_info, get_group_info): Use gid_t.
20277         (group_member): Rely on getgroups replacement.
20278         * lib/getugroups.c (getugroups): Use gid_t.
20279         * tests/test-getgroups.c (main): Likewise.
20280         * NEWS: Mention the signature change.
20281         * doc/posix-functions/getgroups.texi (getgroups): Mention the
20282         problem with signature.
20283         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
20284         GETGROUPS_T is still useful for setgroups.
20285
20286         getgroups, getugroups: provide stubs for mingw
20287         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
20288         * lib/getugroups.c (getugroups): Likewise.
20289         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
20290         function.  Modernize replacement scheme.
20291         (gl_PREREQ_GETGROUPS): Delete.
20292         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
20293         * modules/getgroups (configure.ac): Declare witness.
20294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20295         * modules/unistd (Depends-on): Substitute witness.
20296         * lib/unistd.in.h (getgroups): Declare replacement.
20297
20298         getgroups: avoid calling exit
20299         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
20300         drop xalloc.
20301         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
20302         dependencies.
20303         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
20304         exiting, in the rare case of malloc failure.
20305
20306         getgroups: fix logic error
20307         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
20308         has more than 20 groups.
20309         * modules/getgroups-tests: New test.
20310         * tests/test-getgroups.c: New file.
20311
20312 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20313
20314         * tests/test-base64.c: Improve.
20315
20316 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20317
20318         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
20319         Blake <ebb9@byu.net>.
20320
20321 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20322
20323         * tests/test-xvasprintf.c: Add %s%s related checks.
20324
20325 2009-11-12  Eric Blake  <ebb9@byu.net>
20326
20327         version-etc: match standards.texi style
20328         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
20329         and use <> only for URLs.
20330
20331 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
20332
20333         fts: do not fail on a submount during traversal
20334         * lib/fts.c (fts_build): Read the stat info again after opening
20335         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20336         Original report at http://bugzilla.redhat.com/501848.
20337
20338 2009-11-12  Jim Meyering  <meyering@redhat.com>
20339
20340         bootstrap: sync from coreutils
20341         * build-aux/bootstrap (bootstrap_epilogue): New function.
20342         Use git_modules_config in one more place.  This make bootstrap's
20343         --gnulib-srcdir option more useful for testing.
20344
20345         bootstrap: generalize autoheader check
20346         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20347         AC_CONFIG_HEADERS.
20348
20349 2009-11-11  Eric Blake  <ebb9@byu.net>
20350
20351         mkfifoat: use new modules for Solaris and BSD bugs
20352         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20353         * lib/mkfifoat.c (mknodat): Split...
20354         * lib/mknodat.c (mknodat): ...into new file.
20355         * modules/mkfifoat (Files): Ship new file.
20356         (Depends-on): Add mkfifo, mknod.
20357         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20358         (Depends-on): Add symlink.
20359         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
20360         redundant with test_mkfifo.h.
20361         (do_mkfifoat, do_mknodat): New helpers.
20362
20363         mknod: new module
20364         * modules/mknod: New file.
20365         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20366         * lib/mknod.c (mknod): Likewise.
20367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20368         defaults.
20369         * modules/sys_stat (Makefile.am): Substitute them.
20370         * lib/sys_stat.in.h (mknod): Declare replacement.
20371         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20372         Document it.
20373         * doc/posix-functions/mknod.texi (mknod): Likewise.
20374         * modules/mknod-tests: New test.
20375         * tests/test-mknod.c: Likewise.
20376
20377         mkfifo: new module
20378         * modules/mkfifo: New file.
20379         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20380         * lib/mkfifo.c (mkfifo): Likewise.
20381         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20382         defaults.
20383         * modules/sys_stat (Makefile.am): Substitute them.
20384         * lib/sys_stat.in.h (mkfifo): Declare replacement.
20385         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20386         Document it.
20387         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
20388         * modules/mkfifo-tests: New test.
20389         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
20390         from test-mkfifoat.c.
20391         * tests/test-mkfifo.c: New file.
20392
20393         readlink: detect FreeBSD bug
20394         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
20395         slash on symlink.
20396         * doc/posix-functions/readlink.texi (readlink): Document the bug.
20397         * tests/test-readlink.h (test_readlink): Enhance test.
20398
20399         symlink: detect FreeBSD bug
20400         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
20401         slash on symlink.
20402         * doc/posix-functions/symlink.texi (symlink): Document the bug.
20403         * tests/test-symlink.h (test_symlink): Enhance test.
20404
20405 2009-11-10  Eric Blake  <ebb9@byu.net>
20406
20407         link: detect FreeBSD bug
20408         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
20409         symlink.
20410         * doc/posix-functions/link.texi (link): Document the bug.
20411         * tests/test-link.h (test_link): Enhance test.
20412         * tests/test-linkat.c (main): Update caller.
20413
20414         unlink, remove: detect FreeBSD bug
20415         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
20416         slash on symlink.
20417         * doc/posix-functions/unlink.texi (unlink): Document the bug.
20418         * doc/posix-functions/remove.texi (remove): Likewise.
20419         * tests/test-unlink.h (test_unlink): Enhance test.
20420         * tests/test-remove.c (main): Likewise.
20421
20422 2009-11-09  Eric Blake  <ebb9@byu.net>
20423
20424         rename: detect FreeBSD bug
20425         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
20426         slash on symlink.
20427         * modules/renameat-tests (Depends-on): Add filenamecat.
20428         * tests/test-rename.h (test_rename): Allow one more errno.
20429         * tests/test-renameat.c (main): Likewise.
20430         * doc/posix-functions/rename.texi (rename): Document the bug.
20431
20432         open: detect FreeBSD bug
20433         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
20434         symlink.
20435         * doc/posix-functions/open.texi (open): Document the bug.
20436         * doc/posix-functions/utimes.texi (utimes): Likewise.
20437         * tests/test-open.h (test_open): Add parameters, and test symlink
20438         handling.
20439         * tests/test-open.c (main): Adjust caller.
20440         * tests/test-fcntl-safer.c (main): Likewise.
20441         * modules/open-tests (Depends-on): Add stdbool, symlink.
20442         * modules/fcntl-safer-tests (Depends-on): Likewise.
20443         * tests/test-openat.c (main): Add test-open tests.
20444
20445         stat: detect FreeBSD bug
20446         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
20447         symlink.
20448         * doc/posix-functions/stat.texi (stat): Document the bug.
20449         * tests/test-stat.h (test_stat_func): Add argument.
20450         * tests/test-stat.c (main): Adjust caller.
20451         * tests/test-fstatat.c (main): Likewise.
20452         * modules/stat-tests (Depends-on): Add stdbool, symlink.
20453         Reported by Jim Meyering.
20454
20455 2009-11-09  James Youngman  <jay@gnu.org>
20456
20457         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
20458         * lib/strftime.c: Correct placement of #include "ignore-value.h".
20459
20460 2009-11-08  Jim Meyering  <meyering@redhat.com>
20461
20462         utimens: remove invalid futimesat call
20463         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
20464         It used the file descriptor of the target file as the DIR_FD
20465         parameter and NULL as the file name.  That caused failure with
20466         errno == EFAULT on FreeBSD-8.0-rc2
20467
20468 2009-11-07  Eric Blake  <ebb9@byu.net>
20469
20470         fflush, freadseek: use fseeko, not fseek
20471         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20472         (clear_ungetc_buffer): Avoid potential problems on large files.
20473         * lib/freadseek.c (freadseek): Likewise.
20474         * modules/freadseek (Depends-on): Add fseeko.
20475         * modules/fseek (configure.ac): Set a witness.
20476         * tests/test-fflush.c (main): Use fseeko.
20477         * tests/test-fpurge.c (fseek): Disable link warning.
20478         * tests/test-freadable.c (fseek): Likewise.
20479         * tests/test-freading.c (fseek): Likewise.
20480         * tests/test-fseeko.c (fseek): Likewise.
20481         * tests/test-ftell.c (fseek): Likewise.
20482         * tests/test-ftello.c (fseek): Likewise.
20483         * tests/test-fwritable.c (fseek): Likewise.
20484         * tests/test-fwriting.c (fseek): Likewise.
20485
20486 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20487
20488         * modules/memchr (Depends-on): Drop getpagesize dependency.
20489
20490 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20491
20492         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20493         Reported by Ludovic Courtès.
20494         * build-aux/pmccabe2html: Improve example usage.
20495         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20496
20497 2009-11-06  Jim Meyering  <meyering@redhat.com>
20498
20499         do-release-commit-and-tag: New module.
20500         Automate the release-commit and tag process.
20501         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20502         * modules/do-release-commit-and-tag: New file.
20503         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20504
20505 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20506
20507         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
20508         because test-select.c uses inet_pton.
20509
20510 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20511
20512         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
20513         GETADDRINFO_LIB.  Bump serial number.
20514         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
20515         Suggested by Eric Blake <ebb9@byu.net>.
20516
20517 2009-11-05  Eric Blake  <ebb9@byu.net>
20518
20519         strtod: detect darwin bug
20520         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
20521         Reported by Leo Davis.
20522
20523         freopen-safer: new module
20524         * modules/freopen-safer: New module.
20525         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
20526         * lib/freopen-safer.c (freopen_safer): New file.
20527         * lib/stdio-safer.h (freopen_safer): New declaration.
20528         * lib/stdio--.h (freopen): New override.
20529         * MODULES.html.sh (File stream based Input/Output): Mention it.
20530         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
20531         freopen-safer module.
20532         * doc/posix-functions/stderr.texi (stderr): Likewise.
20533         * doc/posix-functions/stdin.texi (stdin): Likewise.
20534         * doc/posix-functions/stdout.texi (stdout): Likewise.
20535         * modules/freopen-safer-tests: New test.
20536         * tests/test-reopen-safer.c: New file.
20537
20538 2009-11-05  Jim Meyering  <meyering@redhat.com>
20539
20540         maint.mk: Prohibit inclusion of "close-stream.h" without use.
20541         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20542
20543 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20544
20545         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
20546
20547 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20548
20549         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
20550
20551 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20552
20553         Fix link error.
20554         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20555         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20556
20557 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20558
20559         * tests/test-func.c: Also test value of __func__.
20560
20561 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20562
20563         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
20564         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
20565
20566 2009-11-05  Bruno Haible  <bruno@clisp.org>
20567
20568         Fix link error.
20569         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20570         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20571         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
20572
20573 2009-11-05  Bruno Haible  <bruno@clisp.org>
20574
20575         Tests for module 'inet_pton'.
20576         * modules/inet_pton-tests: New file.
20577         * tests/test-inet_pton.c: New file.
20578
20579 2009-11-05  Bruno Haible  <bruno@clisp.org>
20580
20581         Tests for module 'inet_ntop'.
20582         * modules/inet_ntop-tests: New file.
20583         * tests/test-inet_ntop.c: New file.
20584
20585 2009-11-04  Eric Blake  <ebb9@byu.net>
20586
20587         stdlib-safer: wrap all mkstemp variants
20588         * modules/mkostemp (configure.ac): Set witness.
20589         * modules/mkostemps (configure.ac): Likewise.
20590         * modules/mkstemps (configure.ac): Likewise.
20591         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
20592         (mkstemps_safer): Wrap more functions.
20593         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
20594         wrapping.
20595         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
20596         (mkstemps_safer): Implement the wrappers.
20597
20598         mkstemps, mkostemps: new modules
20599         * modules/mkostemps: New module.
20600         * modules/mkstemps: Likewise.
20601         * lib/mkostemps.c (mkostemps): New file.
20602         * lib/mkstemps.c (mkstemps): Likewise.
20603         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
20604         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
20605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
20606         * modules/stdlib (Makefile.am): Substitute them.
20607         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
20608         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
20609         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20610         * doc/gnulib.texi (Glibc stdlib.h): Include them.
20611         * MODULES.html.sh (File system functions): Mention them.
20612
20613         tempname: resync from glibc
20614         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
20615         same values for __GT_FILE as glibc.  Abort even when assertions
20616         are disabled.
20617         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
20618         match its value otherwise.  Allow idempotent inclusion.
20619         * lib/mkdtemp.c (mkdtemp): Adjust caller.
20620         * lib/mkostemp.c (mkostemp): Likewise.
20621         * lib/mkstemp.c (mkstemp): Likewise.
20622         * lib/tmpfile.c (tmpfile): Likewise.
20623         * NEWS: Document this.
20624
20625         utimens: fix use of futimens on older Linux
20626         * lib/utimens.c (fdutimens): Use updated, rather than original,
20627         timespec to avoid bug in older Linux kernel.
20628         Reported by Simon Josefsson.
20629
20630 2009-11-04  Bruno Haible  <bruno@clisp.org>
20631
20632         Make num_processors more flexible and consistent.
20633         * lib/nproc.h (enum nproc_query): New type.
20634         (num_processors): Add a 'query' argument.
20635         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
20636         (num_processors): Add a 'query' argument. Test the value of the
20637         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
20638         mingw, count the number of CPUs available for the current process.
20639         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
20640         Check for sched_getaffinity and sched_getaffinity_np.
20641         * modules/nproc (Depends-on): Add c-ctype, extensions.
20642         * NEWS: Mention the change.
20643
20644 2009-11-03  Bruno Haible  <bruno@clisp.org>
20645
20646         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
20647
20648 2009-11-03  Jim Meyering  <meyering@redhat.com>
20649
20650         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
20651         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
20652         if it is defined.
20653
20654 2009-11-02  Eric Blake  <ebb9@byu.net>
20655
20656         mktime, timegm: share common declaration
20657         * lib/mktime-internal.h: New file.
20658         * lib/mktime.c: Use it rather than open-coding a declaration.
20659         * lib/timegm.c: Likewise.
20660         * modules/mktime (Files): Ship it.
20661         * modules/timegm (Files): Likewise.
20662         Suggested by Bruno Haible.
20663
20664         test-update-copyright: update test to match script changes
20665         * tests/test-update-copyright.sh: Avoid hard-coding perl
20666         location.  Don't update *.bak created by earlier runs.
20667
20668 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20669             Simon Josefsson  <simon@josefsson.org>
20670             Bruno Haible  <bruno@clisp.org>
20671
20672         Fix link error on Solaris 8.
20673         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
20674         also in libnsl. Define also INET_PTON_LIB.
20675         * modules/inet_pton (Link): New section.
20676
20677 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20678             Bruno Haible  <bruno@clisp.org>
20679
20680         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
20681         * modules/inet_ntop (Link): New section.
20682         Reported by Boyan Kasarov <bkasarov@gmail.com>.
20683
20684 2009-11-02  Eric Blake  <ebb9@byu.net>
20685
20686         maint: avoid compiler warnings in m4 macros
20687         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
20688         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
20689
20690 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20691
20692         * m4/pmccabe2html.m4: Remove file.
20693         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
20694         function.  Change maintainer.
20695         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
20696         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
20697         Courtès).
20698
20699 2009-10-31  Eric Blake  <ebb9@byu.net>
20700
20701         fseeko: fix m4 regression
20702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
20703         regression from 2009-10-27.
20704         Reported by Ralf Wildenhues.
20705
20706 2009-10-31  Jim Meyering  <meyering@redhat.com>
20707
20708         inttostr: aesthetics and improved (compile-time) safety
20709         Define inttype_is_signed rather than inttype_is_unsigned,
20710         since the sole use is via "#if inttype_is_signed".
20711         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
20712         inttype_is_unsigned.
20713         * lib/offtostr.c (inttype_is_signed): Likewise.
20714         * lib/uinttostr.c (inttype_is_signed): Likewise.
20715         * lib/umaxtostr.c (inttype_is_signed): Likewise.
20716         * lib/inttostr.c (inttostr): Use verify to cross-check the
20717         inttype_is_signed value and the signedness of the actual type.
20718         * modules/inttostr (Depends-on): Add verify.
20719
20720 2009-10-30  Eric Blake  <ebb9@byu.net>
20721
20722         build: avoid compiler warnings
20723         * lib/fchmodat.c (lchmod): Mark unused variables.
20724         * lib/getopt.c (_getopt_initialize): Likewise.
20725         * lib/mktime.c (__mktime_internal): Provide prototype.
20726         * lib/inttostr.c (inttostr): Avoid compiler warning even with
20727         older gcc that do not understand #pragma GCC diagnostic.
20728         * lib/uinttostr.c (inttype_is_unsigned): Define.
20729         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
20730
20731 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
20732
20733         stat: fix compilation on AIX
20734         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
20735         only see struct stat64.
20736
20737 2009-10-30  Eric Blake  <ebb9@byu.net>
20738
20739         exclude: make more robust
20740         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
20741         rather than masking a coding bug.
20742         Suggested by Bruno Haible.
20743
20744 2009-10-30  Jim Meyering  <meyering@redhat.com>
20745
20746         perl scripts: remove #!/usr/bin/perl in favor of more portable...
20747         Rather than putting #!/usr/bin/perl on the first line,
20748         start with a variant of what's recommended by "man perlrun" that
20749         invokes the first "perl" program from your shell's search path.
20750         * build-aux/gitlog-to-changelog: Replace #!... as above.
20751         Add a "Local Variables" perl mode setting.
20752         Prompted by a patch from Ludovic Courtès.
20753         Improved by Eric Blake.
20754         * build-aux/useless-if-before-free: Likewise.
20755         * build-aux/announce-gen: Likewise.
20756         * build-aux/update-copyright: Likewise.
20757
20758 2009-10-29  Eric Blake  <ebb9@byu.net>
20759
20760         filenamecat-lgpl: adjust clients
20761         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
20762         filenamecat.
20763         * modules/renameat (Depends-on): Likewise.
20764
20765         filenamecat: split into filenamecat-lgpl
20766         * modules/filenamecat-lgpl: New module.
20767         * modules/filenamecat (Files): Move library-safe files into
20768         filenamecat-lgpl.
20769         (Depends-on): Add filenamecat-lgpl.
20770         (configure.ac): Declare witness.
20771         * lib/filenamecat.h (file_name_concat): Only declare when using
20772         GPL module.
20773         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
20774         Move...
20775         * lib/filenamecat-lgpl.c: ...into new file.
20776         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
20777         (gl_FILE_NAME_CONCAT): Use it.
20778         * MODULES.html.sh (File system functions): Mention new module.
20779
20780         argp: avoid memory leak
20781         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
20782         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
20783         base_name, since the latter malloc()s and can call exit().
20784         Leak introduced 2006-07-03.
20785
20786         dirname-lgpl: adjust clients that don't need full dirname
20787         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
20788         * modules/filenamecat (Depends-on): Likewise.
20789         * modules/linkat (Depends-on): Likewise.
20790         * modules/mkancesdirs (Depends-on): Likewise.
20791         * modules/mkdir (Depends-on): Likewise.
20792         * modules/openat (Depends-on): Likewise.
20793         * modules/savewd (Depends-on): Likewise.
20794         * modules/rename (Depends-on): Likewise.
20795         (License): Relax license.
20796         * modules/mkdir-tests (Depends-on): Drop progname.
20797         (Makefile.am): Delete unneeded LDADD.
20798         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
20799
20800         dirname: split into dirname-lgpl
20801         * modules/dirname-lgpl: New module.
20802         * modules/dirname (Files): Move library-safe files into
20803         dirname-lgpl.
20804         (Depends-on): Add dirname-lgpl.
20805         (configure.ac): Declare witness.
20806         * modules/double-slash-root (License): Relax license.
20807         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
20808         module.
20809         * lib/dirname.c (dir_len, mdir_name): Move...
20810         * lib/dirname-lgpl.c: ...into new file.
20811         * lib/basename.c (last_component, base_len): Move...
20812         * lib/basename-lgpl.c: ...into new file.
20813         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
20814         (gl_DIRNAME): Use it.
20815         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
20816         Mention new module.
20817         * modules/dirname-tests (Depends-on): Add progname.
20818         * tests/test-dirname.c (program_name): Delete.
20819
20820         mkdir: make safe for libraries
20821         * modules/mkdir (Depends-on): Drop xalloc.
20822         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
20823         exit.
20824
20825         tests: avoid some compiler warnings
20826         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
20827         literals.
20828         * tests/test-memchr.c (main): Avoid type mismatch.
20829         * tests/test-arpa_inet.c (main): Avoid unused parameters.
20830         * tests/test-base64.c (main): Likewise.
20831         * tests/test-getdelim.c (main): Likewise.
20832         * tests/test-gethostname.c (main): Likewise.
20833         * tests/test-getline.c (main): Likewise.
20834         * tests/test-netinet_in.c (main): Likewise.
20835         * tests/test-select.c (open_server_socket, main): Likewise.
20836         * tests/test-select-stdin.c (main): Likewise.
20837         * tests/test-sockets.c (main): Likewise.
20838         * tests/test-strsignal.c (main): Likewise.
20839         * tests/test-sys_select.c (main): Likewise.
20840         * tests/test-sys_socket.c (main): Likewise.
20841         * tests/test-u64.c (main): Likewise.
20842         * tests/test-xfprintf-posix.c (main): Likewise.
20843         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
20844
20845         sockets: avoid compiler warning
20846         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
20847
20848         maint: detect usage(1) and other suspicious exits
20849         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
20850
20851 2009-10-29  Jim Meyering  <meyering@redhat.com>
20852
20853         timespec: long-to-int truncation could make timespec_cmp malfunction
20854         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
20855         a multiple of 2^32 nanoseconds as no difference.
20856
20857 2009-10-28  Jim Meyering  <meyering@redhat.com>
20858
20859         fprintftime: wrap macro code argument in "do {...} while(0)"
20860         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
20861         cpy macro must be a statement that can be followed by a semicolon.
20862         Now that the else clause contains a comment and is hence longer
20863         than one line, I require curly braces.  That in turn requires
20864         that we wrap this code block in the standard do...while(0).
20865
20866         fprintftime: remove stray semicolon from previous change
20867         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
20868
20869         fprintftime: avoid a warning about ignored fwrite return value
20870         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
20871         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
20872         that is unsafe.
20873         * modules/fprintftime (Depends-on): Add ignore-value.
20874
20875         exclude: avoid an unwarranted warning
20876         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
20877
20878 2009-10-27  Eric Blake  <ebb9@byu.net>
20879
20880         fseek: avoid compilation failure when fflush is replaced
20881         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
20882         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
20883         module is in use.
20884         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
20885         module is not in use; since REPLACE_FSEEK worked otherwise.
20886         (GNULIB_FTELLO): Likewise for ftell.
20887         Reported by Ian Beckwith and others.
20888
20889 2009-10-27  Bruno Haible  <bruno@clisp.org>
20890
20891         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
20892         Reported by Jim Meyering.
20893
20894 2009-10-27  Jim Meyering  <jim@meyering.net>
20895             Bruno Haible  <bruno@clisp.org>
20896
20897         Avoid warning despite dropping the return value of fwrite.
20898         * lib/unicodeio.c: Include ignore-value.h.
20899         (fwrite_success_callback): Explicitly ignore fwrite's return value.
20900         * modules/unicodeio (Depends-on): Add ignore-value.
20901
20902 2009-10-26  Eric Blake  <ebb9@byu.net>
20903
20904         areadlinkat: fix fallback path
20905         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
20906         pointer and zero.
20907
20908 2009-10-22  Pádraig Brady  <P@draigBrady.com>
20909
20910         Use a better IO block size for modern systems
20911         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
20912         * lib/md2.c: Likewise.
20913         * lib/md4.c: Likewise.
20914         * lib/md5.c: Likewise.
20915         * lib/sha1.c: Likewise.
20916         * lib/sha256.c: Likewise.
20917         * lib/sha512.c: Likewise.
20918
20919 2009-10-22  Eric Blake  <ebb9@byu.net>
20920
20921         tests: avoid several compiler warnings
20922         * tests/test-getcwd.c (main): Avoid buffer underflow.
20923         * tests/test-getdate.c (main): String literals are not safe with
20924         putenv, so use setenv.  Declare unused argument.
20925         * modules/getdate-tests (Depends-on): Add setenv.
20926         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
20927         problems with string literals in char *.
20928         * tests/test-hash.c (main): Avoid shadowing declaration.
20929         (insert_new): Treat string literals as char const *.
20930         * tests/test-getopt.h (test_getopt): Likewise.
20931         (getopt_loop): Alter types to minimize casting elsewhere.
20932         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
20933         (test_getopt_long_posix): Likewise.
20934         (do_getopt_long): Add wrapper to minimize casting.
20935         * tests/test-atexit.c (clear_temp_file): Use void.
20936         * tests/test-areadlink-with-size.c (main): Declare unused
20937         arguments.
20938         * tests/test-areadlink.c (main): Likewise.
20939         * tests/test-areadlinkat-with-size.c (main): Likewise.
20940         * tests/test-areadlinkat.c (main): Likewise.
20941         * tests/test-canonicalize-lgpl.c (main): Likewise.
20942         * tests/test-canonicalize.c (main): Likewise.
20943         * tests/test-dirent-safer.c (main): Likewise.
20944         * tests/test-dirname.c (main): Likewise.
20945         * tests/test-dup2.c (main): Likewise.
20946         * tests/test-fchdir.c (main): Likewise.
20947         * tests/test-fcntl-h.c (main): Likewise.
20948         * tests/test-fcntl-safer.c (main): Likewise.
20949         * tests/test-fdopendir.c (main): Likewise.
20950         * tests/test-fdutimensat.c (main): Likewise.
20951         * tests/test-fflush.c (main): Likewise.
20952         * tests/test-filenamecat.c (main): Likewise.
20953         * tests/test-filevercmp.c (main): Likewise.
20954         * tests/test-fopen-safer.c (main): Likewise.
20955         * tests/test-fopen.c (main): Likewise.
20956         * tests/test-fpending.c (main): Likewise.
20957         * tests/test-fpurge.c (main): Likewise.
20958         * tests/test-freading.c (main): Likewise.
20959         * tests/test-fstatat.c (main): Likewise.
20960         * tests/test-fsync.c (main): Likewise.
20961         * tests/test-futimens.c (main): Likewise.
20962         * tests/test-getndelim2.c (main): Likewise.
20963         * tests/test-gettimeofday.c (main): Likewise.
20964         * tests/test-getopt.c (main): Likewise.
20965         * tests/test-i-ring.c (main): Likewise.
20966         * tests/test-inttypes.c (main): Likewise.
20967         * tests/test-link.c (main): Likewise.
20968         * tests/test-lstat.c (main): Likewise.
20969         * tests/test-math.c (main): Likewise.
20970         * tests/test-md5.c (main): Likewise.
20971         * tests/test-memchr2.c (main): Likewise.
20972         * tests/test-memrchr.c (main): Likewise.
20973         * tests/test-mkdir.c (main): Likewise.
20974         * tests/test-mkdirat.c (main): Likewise.
20975         * tests/test-mkfifoat.c (main): Likewise.
20976         * tests/test-open.c (main): Likewise.
20977         * tests/test-openat-safer.c (main): Likewise.
20978         * tests/test-openat.c (main): Likewise.
20979         * tests/test-quotearg.c (main): Likewise.
20980         * tests/test-rawmemchr.c (main): Likewise.
20981         * tests/test-readlink.c (main): Likewise.
20982         * tests/test-remove.c (main): Likewise.
20983         * tests/test-rename.c (main): Likewise.
20984         * tests/test-renameat.c (main): Likewise.
20985         * tests/test-rmdir.c (main): Likewise.
20986         * tests/test-sha1.c (main): Likewise.
20987         * tests/test-signal.c (main): Likewise.
20988         * tests/test-sigaction.c (main): Likewise.
20989         * tests/test-stat.c (main): Likewise.
20990         * tests/test-stat-time.c (main): Likewise.
20991         * tests/test-stddef.c (main): Likewise.
20992         * tests/test-stdint.c (main): Likewise.
20993         * tests/test-stdio.c (main): Likewise.
20994         * tests/test-stdlib.c (main): Likewise.
20995         * tests/test-strchrnul.c (main): Likewise.
20996         * tests/test-strerror.c (main): Likewise.
20997         * tests/test-string.c (main): Likewise.
20998         * tests/test-strtod.c (main): Likewise.
20999         * tests/test-strverscmp.c (main): Likewise.
21000         * tests/test-symlink.c (main): Likewise.
21001         * tests/test-symlinkat.c (main): Likewise.
21002         * tests/test-sys_stat.c (main): Likewise.
21003         * tests/test-sys_time.c (main): Likewise.
21004         * tests/test-time.c (main): Likewise.
21005         * tests/test-unistd.c (main): Likewise.
21006         * tests/test-unlink.c (main): Likewise.
21007         * tests/test-unlinkat.c (main): Likewise.
21008         * tests/test-utimens.c (main): Likewise.
21009         * tests/test-utimensat.c (main): Likewise.
21010         * tests/test-version-etc.c (main): Likewise.
21011         * tests/test-wchar.c (main): Likewise.
21012         * tests/test-wctype.c (main): Likewise.
21013         * tests/test-xprintf-posix.c (main): Likewise.
21014         * tests/test-posixtm.c (main): Likewise.
21015         (STREQ): Delete unused macro.
21016         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
21017         shadowed variables.
21018         * tests/test-memchr.c (main): Likewise.
21019
21020 2009-10-21  Eric Blake  <ebb9@byu.net>
21021
21022         areadlinkat: avoid failure on older glibc
21023         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
21024         rather than mis-comparing 0 against FUNC_RESULT of char*.
21025
21026 2009-10-21  Bruno Haible  <bruno@clisp.org>
21027
21028         * modules/stpncpy (License): Relicense under LGPLv2+.
21029         Reported by David Lutterkort <lutter@redhat.com>.
21030
21031 2009-10-20  Eric Blake  <ebb9@byu.net>
21032
21033         utimensat: work around Solaris 9 bug
21034         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
21035         has trailing slash bugs.
21036         * tests/test-lutimens.h (test_lutimens): Enhance test.
21037         * tests/test-utimens.h (test_utimens): Likewise.
21038         * doc/posix-functions/utime.texi (utime): Enhance documentation.
21039         * doc/posix-functions/utimes.texi (utimes): Likewise.
21040         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21041         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
21042         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
21043         * doc/posix-functions/futimens.texi (futimens): Likewise.
21044
21045         fdutimensat: new module
21046         * modules/fdutimensat: New file.
21047         * lib/fdutimensat.c (fdutimensat): Likewise.
21048         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
21049         * MODULES.html.sh (File system functions): Mention module.
21050         * modules/fdutimensat-tests: New test.
21051         * tests/test-fdutimensat.c: Likewise.
21052
21053         doc: regenerate INSTALL
21054         * doc/INSTALL: Reflect recent autoconf update.
21055         * doc/INSTALL.ISO: Likewise.
21056         * doc/INSTALL.UTF-8: Likewise.
21057
21058 2009-10-20  Pádraig Brady  <P@draigBrady.com>
21059
21060         acl: warn if ACL support is not detected
21061         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
21062
21063 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
21064
21065         * lib/nproc.h: Add extern "C" block for C++.
21066
21067 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
21068             Bruno Haible  <bruno@clisp.org>
21069
21070         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
21071         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
21072         * doc/posix-functions/isalpha.texi: Likewise.
21073         * doc/posix-functions/isblank.texi: Likewise.
21074         * doc/posix-functions/iscntrl.texi: Likewise.
21075         * doc/posix-functions/isdigit.texi: Likewise.
21076         * doc/posix-functions/isgraph.texi: Likewise.
21077         * doc/posix-functions/islower.texi: Likewise.
21078         * doc/posix-functions/isprint.texi: Likewise.
21079         * doc/posix-functions/ispunct.texi: Likewise.
21080         * doc/posix-functions/isspace.texi: Likewise.
21081         * doc/posix-functions/isupper.texi: Likewise.
21082         * doc/posix-functions/isxdigit.texi: Likewise.
21083
21084 2009-10-18  Bruno Haible  <bruno@clisp.org>
21085
21086         Tests for module 'isblank'.
21087         * modules/isblank-tests: New file.
21088         * tests/test-isblank.c: New file.
21089
21090         New module 'isblank'.
21091         * lib/isblank.c: New file.
21092         * m4/isblank.m4: New file.
21093         * modules/isblank: New file.
21094         * doc/posix-functions/isblank.texi: Mention the new module.
21095
21096 2009-10-18  Bruno Haible  <bruno@clisp.org>
21097
21098         New module 'ctype'.
21099         * lib/ctype.in.h: New file.
21100         * m4/ctype.m4: New file.
21101         * modules/ctype: New file.
21102         * doc/posix-headers/ctype.texi: Mention the new module.
21103
21104 2009-10-18  Jim Meyering  <meyering@redhat.com>
21105
21106         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
21107         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
21108         right after its initialization, rather than farther down.
21109         Keeping these in close proximity makes it easier to ensure
21110         that each such variable is initialized.  E.g.,
21111
21112             LIB_CLOCK_GETTIME=
21113             AC_SUBST([LIB_CLOCK_GETTIME])
21114
21115         This change also increments these serial numbers.
21116         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
21117         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21119
21120 2009-10-18  Bruno Haible  <bruno@clisp.org>
21121
21122         Don't let environment variables perturb build.
21123         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21124         (gl_PREREQ_GETHRXTIME): ... not here.
21125
21126 2009-10-18  Bruno Haible  <bruno@clisp.org>
21127
21128         Avoid symlink attack in localcharset module.
21129         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21130         (O_NOFOLLOW): Define fallback.
21131         (get_charset_aliases): Don't open the file if it is a symbolic link.
21132         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
21133         gl_FCNTL_H.
21134         (gl_FCNTL_H): Require it.
21135         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
21136         * modules/localcharset (Files): Add m4/fcntl_h.m4.
21137         Reported by Fergal Glynn <fglynn@veracode.com>.
21138
21139 2009-10-18  Bruno Haible  <bruno@clisp.org>
21140
21141         Implement nproc for mingw.
21142         * lib/nproc.c: Include <windows.h>
21143         (num_processors): On native Windows platforms, try GetSystemInfo.
21144
21145 2009-10-18  Bruno Haible  <bruno@clisp.org>
21146
21147         Implement nproc for IRIX.
21148         * lib/nproc.c: Include <sys/sysmp.h>.
21149         (num_processors): On IRIX systems, try sysmp.
21150         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
21151
21152 2009-10-18  Bruno Haible  <bruno@clisp.org>
21153
21154         Implement nproc for HP-UX.
21155         * lib/nproc.c: Include <sys/pstat.h>
21156         (num_processors): On HP-UX systems, try pstat_getdynamic.
21157         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
21158         pstat_getdynamic.
21159
21160 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
21161             Bruno Haible  <bruno@clisp.org>
21162
21163         Implement nproc for NetBSD, OpenBSD.
21164         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
21165         (ARRAY_SIZE): New macro.
21166         (num_processors): On BSD systems, try sysctl of HW_NCPU.
21167         * m4/nproc.m4: New file.
21168         * modules/nproc (Files): Add m4/nproc.m4.
21169         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
21170         (Makefile.am): Instead, augment lib_SOURCES.
21171
21172 2009-10-18  Bruno Haible  <bruno@clisp.org>
21173
21174         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
21175         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
21176         sys/param.h.
21177
21178 2009-10-16  Eric Blake  <ebb9@byu.net>
21179
21180         utimensat: new module
21181         * modules/utimensat: New file.
21182         * lib/utimensat.c (utimensat): Likewise.
21183         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21184         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
21185         so we can work around Linux bugs.
21186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21187         * modules/sys_stat (Makefile.am): Substitute them.
21188         * lib/sys_stat.in.h (utimensat): Declare it.
21189         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21190         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21191         * modules/utimensat-tests: New test.
21192         * tests/test-utimensat.c: Likewise.
21193
21194         utimens: let lutimens work on non-symlinks
21195         * lib/utimens.c (lutimens): Fall back to utimens rather than
21196         failing with ENOSYS, when file is not a symlink.
21197         (utimens): Reduce redirection.
21198         * tests/test-lutimens.h (test_lutimens): Update test to cover
21199         non-symlinks.
21200         * tests/test-utimens.h (test_utimens): Update test to cover
21201         symlinks.
21202         * tests/test-utimens.c (main): Update caller.
21203
21204         utimens: cache whether utimensat syscall works
21205         * lib/utimens.c (utimensat_works_really): New cache variable.
21206         (fdutimens, lutimens): Use it to avoid failing syscall.
21207
21208         test-stat-time, test-utimens: improve portability
21209         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
21210         ext4 on alpha, and for cygwin.
21211         * tests/test-utimens-common.h: New file.
21212         (nap): Factor delays into single function.
21213         * tests/test-lutimens.h (test_lutimens): Use new header.
21214         * tests/test-futimens.h (test_futimens): Likewise.
21215         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
21216         timestamps to occur from same machine, as was done previously for
21217         test_utimens.
21218         * modules/utimens-tests (Files): Ship new file.
21219         * modules/futimens-tests (Files): Likewise.
21220         Reported in part by Jim Meyering.
21221
21222         sys_stat: sort replacement declarations
21223         * lib/sys_stat.in.h: Sort declarations.
21224         * lib/futimens.c (futimens): Fix typo.
21225
21226 2009-10-15  Jim Meyering  <meyering@redhat.com>
21227
21228         don't let environment settings perturb build
21229         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
21230         could cause a configure-time and/or build-time malfunction.
21231         Typically, a configure-time function-in-library test is performed
21232         via code like this:
21233
21234           LIB_VAR=
21235           AC_SUBST([LIB_VAR])
21236           prefix_saved_LIBS=$LIBS
21237             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
21238                        [test "$ac_cv_search_FUNC" = "none required" ||
21239                         LIB_VAR=$ac_cv_search_FUNC])
21240           LIBS=$prefix_saved_LIBS
21241
21242         However, in each of the files affected by this change, the LIB_VAR=
21243         initialization was omitted.  Thus, when set in the environment, its
21244         value would propagate into generated Makefiles when FUNC is not found
21245         in LIB_NAME.
21246         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
21247         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21249
21250 2009-10-14  Eric Blake  <ebb9@byu.net>
21251
21252         fchdir: avoid infinite recursion in mingw
21253         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
21254         recursing.
21255
21256         test-stat-time: port to mingw
21257         * tests/test-stat-time.c (force_unlink): Return a value.
21258         (test_ctime) [W32]: Fix compilation error.
21259         (nap): Don't call usleep with too large an argument.  Use
21260         force_unlink.
21261         * doc/pastposix-functions/usleep.texi (usleep): Document the
21262         portability issue.
21263
21264 2009-10-13  Jim Meyering  <meyering@redhat.com>
21265
21266         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
21267         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
21268         * modules/pipe-filter-ii: Likewise.
21269         * modules/sys_socket-tests: Likewise.
21270         * modules/tsearch-tests: Likewise.
21271         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
21272         (check): Depend on it.
21273
21274 2009-10-12  Eric Blake  <ebb9@byu.net>
21275
21276         utimens-tests: port to NFS file systems
21277         * tests/test-utimens.h (test_utimens): Refactor utimecmp
21278         comparisons to avoid spurious failures from timestamp drift
21279         between NFS machines.
21280
21281 2009-10-12  Eric Blake  <ebb9@byu.net>
21282
21283         stat-time-tests: minor cleanups
21284         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
21285         * tests/test-stat-time.c (nap): Separate assignment from call.
21286         Suggested by Paolo Bonzini and Bruno Haible.
21287
21288         sys_stat: guarantee struct timespec
21289         * lib/sys_stat.in.h (includes): Always include <time.h>
21290         * modules/sys_stat (Depends-on): Add time.
21291         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
21292         mode_t permission values.
21293         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
21294         get at subsecond timestamps.
21295
21296 2009-10-10  Eric Blake  <ebb9@byu.net>
21297
21298         futimens: new module
21299         * modules/futimens: New file.
21300         * lib/futimens.c (futimens): Likewise.
21301         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
21302         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
21303         we can work around Linux bugs.
21304         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21305         * modules/sys_stat (Makefile.am): Substitute them.
21306         * lib/sys_stat.in.h (futimens): Declare it.
21307         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21308         * doc/posix-functions/futimens.texi (futimens): Likewise.
21309         * modules/futimens-tests: New test.
21310         * tests/test-futimens.c: Likewise.
21311
21312         utimens: introduce fdutimens
21313         * lib/utimens.h (fdutimens): New prototype.
21314         * lib/utimens.c (gl_futimens): Move guts...
21315         (fdutimens): ...to new interface.
21316         * tests/test-utimens.c (do_fdutimens): Use it.
21317
21318         utimens: add UTIME_NOW and UTIME_OMIT support
21319         * lib/utimens.c (validate_timespec, update_timespec): New helper
21320         functions.
21321         (gl_futimens, lutimens): Use them.
21322         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
21323         stdbool, sys_stat.
21324         (Link): Mention resulting library dependency.
21325         * modules/utimecmp (Link): Likewise.
21326         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
21327         (Makefile.am): Pick up library dependency.
21328         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
21329         definition.
21330         * tests/test-sys_stat.c: Test the definitions.
21331         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
21332         * NEWS: Document library dependency.
21333
21334         utimecmp: support symlink timestamps
21335         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21336         hashing when possible.  Use pathconf when available.
21337         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21338         * modules/utimecmp (Depends-on): Add lstat.
21339
21340         utimens: add lutimens interface
21341         * lib/utimens.c (lutimens): New function.
21342         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21343         * lib/utimens.h (lutimens): Declare new interface.
21344         * tests/test-utimens.c (main): Enhance test.
21345         * tests/test-lutimens.h (test_lutimens): New file.
21346         * modules/utimens-tests (Files): Distribute it.
21347         (Depends-on): Add symlink.
21348         (configure.ac): Check for usleep.
21349
21350         utimens: validate futimens usage
21351         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21352         fewer syscalls on failure later on.  Avoid compiler warning on
21353         mingw.
21354         * modules/utimens (Depends-on): Add dup2.
21355
21356         utimens: add test
21357         * modules/utimens-tests: New test.
21358         * tests/test-utimens.h: New file.
21359         * tests/test-futimens.h: Likewise.
21360         * tests/test-utimens.c: Likewise.
21361
21362         doc: mention timestamp portability issues
21363         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
21364         instead.
21365         * doc/posix-functions/utime.texi (utime): Likewise.
21366         * doc/posix-functions/utimes.texi (utimes): Likewise.
21367         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
21368         instead.
21369         * doc/posix-functions/futimens.texi (futimens): Mention utimens
21370         module.
21371         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21372         Mention weakness with symlink timestamps.
21373         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
21374         to utimensat/futimens instead.
21375         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
21376
21377         test-dup2: enhance test
21378         * tests/test-dup2.c (main): Also check AT_FDCWD.
21379
21380         test-stat-time: avoid more spurious failures
21381         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
21382         xfs; and avoid race if the two timestamps cross quantization edge.
21383
21384         relocatable: prefer 'file system' over 'filesystem'
21385         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
21386         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
21387         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
21388         * doc/relocatable.texi (Enabling Relocatability): Likewise.
21389         * lib/relocatable.c (compute_curr_prefix): Likewise.
21390
21391 2009-10-10  Jim Meyering  <meyering@redhat.com>
21392
21393         stat-time-tests: check for the usleep function
21394         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
21395
21396 2009-10-10  Bruno Haible  <bruno@clisp.org>
21397
21398         * modules/xnanosleep: Put the Link section after the Include section.
21399
21400 2009-10-09  Eric Blake  <ebb9@byu.net>
21401
21402         dup2: work around FreeBSD 6.1 bug
21403         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
21404         * doc/posix-functions/dup2.texi (dup2): Document it.
21405         Reported by Nelson H. F. Beebe and Jim Meyering.
21406
21407         test-stat-time: port to buggy NFS clients
21408         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
21409         (test_ctime): Also skip test if mtime and ctime are skewed.
21410
21411         maint: prefer 'file system' over 'filesystem'
21412         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21413         * doc/posix-functions/lstat.texi (lstat): Likewise.
21414         * lib/file-has-acl.c (file_has_acl): Likewise.
21415         * lib/fwriteerror.c [TEST]: Likewise.
21416         * tests/test-areadlink.h (test_areadlink): Likewise.
21417         * tests/test-areadlinkat-with-size.c (main): Likewise.
21418         * tests/test-areadlinkat.c (main): Likewise.
21419         * tests/test-canonicalize-lgpl.c (main): Likewise.
21420         * tests/test-canonicalize.c (main): Likewise.
21421         * tests/test-fstatat.c (main): Likewise.
21422         * tests/test-linkat.c (main): Likewise.
21423         * tests/test-lstat.h (test_lstat_func): Likewise.
21424         * tests/test-mkdir.h (test_mkdir): Likewise.
21425         * tests/test-readlink.h (test_readlink): Likewise.
21426         * tests/test-remove.c (main): Likewise.
21427         * tests/test-rename.h (test_rename): Likewise.
21428         * tests/test-renameat.c (main): Likewise.
21429         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21430         * tests/test-symlink.h (test_symlink): Likewise.
21431         * tests/test-symlinkat.c (main): Likewise.
21432         * tests/test-unlink.h (test_unlink_func): Likewise.
21433         * tests/test-unlinkat.c (main): Likewise.
21434
21435         maint: make realtime library usage explicit
21436         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
21437         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
21438         * modules/settime (Link): Likewise.
21439         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
21440
21441         test-stat-time: speed up execution
21442         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
21443         warning on mingw.
21444         (nap): New helper function.
21445         (prepare_test): Use it to reduce sleep time.
21446         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
21447         execution.
21448         * modules/stat-time-tests (configure.ac): Check for usleep.
21449
21450 2009-10-09  Jim Meyering  <meyering@redhat.com>
21451
21452         selinux-h: always use getfilecon wrappers
21453         * lib/getfilecon.c: New file.
21454         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
21455         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
21456         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
21457         (fgetfilecon): Provide a stub.
21458         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
21459         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
21460         file unconditionally.
21461         When <selinux/selinux.h> is found, arrange to use wrappers.
21462         * modules/selinux-h (Files): Add getfilecon.c.
21463         (Makefile.am): Substitute include-next-related bits
21464         into the now-always-generated selinux/selinux.h file.
21465         * doc/glibc-functions/lgetfilecon.texi: New file.
21466         * doc/glibc-functions/fgetfilecon.texi: New file.
21467         * doc/glibc-functions/getfilecon.texi: New file.
21468         * doc/glibc-functions/getfilecon-desc.texi: New file.
21469         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21470         which to pull in the new files.
21471         * MODULES.html.sh (Misc): Add selinux-h.
21472
21473 2009-10-08  Jim Meyering  <meyering@redhat.com>
21474
21475         unistd: fix comment typo
21476         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21477
21478 2009-10-08  Eric Blake  <ebb9@byu.net>
21479
21480         areadlink: use SIZE_MAX consistently
21481         * modules/areadlink (Depends-on): Add stdint.
21482         * modules/areadlink-with-size (Depends-on): Likewise.
21483         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21484         gives NULL; drop sys/types, since unistd gives size_t; and add
21485         stdint for SIZE_MAX.
21486         (SIZE_MAX): Rely on headers.
21487         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21488         and add stdint.
21489         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21490         (SIZE_MAX): Likewise.
21491         (INITIAL_BUF_SIZE): Turn into enum.
21492         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21493
21494 2009-10-08  Jim Meyering  <meyering@redhat.com>
21495
21496         areadlinkat: avoid compilation failure
21497         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21498         Fix typo in comment.
21499
21500 2009-10-07  Eric Blake  <ebb9@byu.net>
21501
21502         areadlinkat-with-size: new module
21503         * modules/areadlinkat-with-size: New module.
21504         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21505         * lib/areadlink.h (areadlinkat): Declare it.
21506         * MODULES.html.sh (File system functions): Mention it.
21507         * modules/areadlinkat-with-size-tests: New test.
21508         * tests/test-areadlinkat-with-size.c: New file.
21509
21510         xreadlinkat: new module
21511         * modules/xreadlinkat: New module.
21512         * lib/xreadlinkat.c (xreadlinkat): New file.
21513         * lib/xreadlink.h (xreadlinkat): Declare it.
21514         * MODULES.html.sh (File system functions): Mention it.
21515
21516         areadlinkat: new module
21517         * lib/at-func.c (FUNC_FAIL): New define.
21518         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
21519         * modules/areadlinkat: New module.
21520         * lib/linkat.c (areadlinkat): Move...
21521         * lib/areadlinkat.c (areadlinkat): ...to new file.
21522         * lib/areadlink.h (areadlinkat): Declare it.
21523         * modules/linkat (Depends-on): Add areadlinkat.
21524         * MODULES.html.sh (File system functions): Mention it.
21525         * modules/areadlinkat-tests: New test.
21526         * tests/test-areadlinkat.c: New file.
21527
21528         areadlink, areadlink-with-size: add tests
21529         * modules/areadlink-tests: New test.
21530         * modules/areadlink-with-size-tests: Likewise.
21531         * tests/test-areadlink.h: New file.
21532         * tests/test-areadlink.c: Likewise.
21533         * tests/test-areadlink-with-size.c: Likewise.
21534
21535         maint: minor cleanups
21536         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
21537         _UNUSED_PARAMETER_ instead.
21538         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
21539         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
21540         * modules/linkat-tests (Files): Distribute test-link.h.
21541
21542         openat, utimens: whitespace cleanup
21543         * lib/openat.c: Prefer space throughout, rather than mix of 8
21544         spaces vs. tabs.
21545         * lib/at-func.c: Likewise.
21546         * lib/utimens.c: Likewise.
21547
21548         openat: avoid using wrong fd
21549         * lib/openat.c (openat_permissive): Reject user's fd if saving the
21550         working directory chooses same fd.
21551         * lib/at-func.c (AT_FUNC_NAME): Likewise.
21552
21553         mkdir, mkdirat: fix cygwin 1.5.x bug
21554         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
21555         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
21556         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
21557         bug.
21558         (gl_PREREQ_MKDIR): Delete unused macro.
21559         * modules/mkdir (Files): Track file rename.
21560         (configure.ac): Update macro name.
21561         * modules/openat (Depends-on): Add mkdir.
21562         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
21563
21564         mkdir, mkdirat: add tests
21565         * modules/mkdir-tests: New test.
21566         * tests/test-mkdir.h: New file.
21567         * tests/test-mkdir.c: Likewise.
21568         * tests/test-mkdirat.c: Likewise.
21569         * modules/openat-tests (Files): Add new files.
21570         (Makefile.am): Run new test.
21571
21572 2009-10-06  Eric Blake  <ebb9@byu.net>
21573
21574         doc: tweak *at function documentation
21575         * doc/posix-functions/faccessat.texi (faccessat): Mention
21576         known issue with replacement.
21577         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
21578         * doc/posix-functions/linkat.texi (linkat): Likewise.
21579         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21580         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21581         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21582         * doc/posix-functions/renameat.texi (renameat): Likewise.
21583         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21584
21585         openat: fix GNU/Hurd bug in unlinkat
21586         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
21587         broken.
21588         * doc/posix-functions/unlink.texi (unlink): Document this.
21589         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
21590
21591         fdopendir: fix GNU/Hurd bug
21592         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
21593         allowing non-directory fds.
21594         * lib/fdopendir.c (rpl_fdopendir): Work around it.
21595         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21596         * modules/dirent (Makefile.am): Substitute it.
21597         * lib/dirent.in.h (fdopendir): Declare replacement.
21598         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
21599         * tests/test-fdopendir.c (main): Test something other than
21600         /dev/null, since on Hurd that behaves like a directory.
21601
21602         test-symlink: port to GNU/Hurd
21603         * tests/test-symlink.h (test_symlink): Relax expected errno.
21604
21605         doc: tweak more cygwin information
21606         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
21607         now compatible with glibc.
21608         * doc/posix-functions/getopt.texi (getopt): Likewise.
21609
21610         getopt-gnu: add another test
21611         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
21612         guarantee behavior relied on by m4.
21613         * tests/test-getopt.c (main): Use it.
21614         * modules/getopt-posix-tests (Depends-on): Add setenv.
21615         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
21616
21617         getopt: fix compilation on darwin
21618         * lib/getopt.in.h (includes): Leave breadcrumbs during system
21619         include.
21620         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
21621         Reported by Ludovic Courtès.
21622
21623 2009-10-06  Bruno Haible  <bruno@clisp.org>
21624
21625         * modules/size_max (Description): Discourage its use.
21626         Reported by Simon Josefsson.
21627
21628 2009-10-06  Jim Meyering  <meyering@redhat.com>
21629
21630         linkat: avoid compilation failure
21631         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
21632
21633 2009-10-05  Eric Blake  <ebb9@byu.net>
21634
21635         linkat: support Linux 2.6.17
21636         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
21637         linkat on Linux, but allow cache variable override.
21638         * lib/linkat.c (rpl_linkat): Define override.
21639         * modules/linkat (Depends-on): Add symlinkat.
21640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
21641         * modules/unistd (Makefile.am): Substitute it.
21642         * lib/unistd.in.h (linkat): Declare replacement.
21643         Reported by Pádraig Brady.
21644
21645         quotearg: port test to systems with C.UTF-8 locale
21646         * tests/test-quotearg.c (struct result_strings): Add another
21647         member, differentiating between C.ASCII and C.UTF-8 handling.
21648         (compare_strings): Add parameter.
21649         (main): Adjust all callers.
21650
21651         getopt: avoid clash with FreeBSD _getopt_internal
21652         * lib/getopt.in.h (_getopt_internal): Override the name.
21653         * lib/getopt_int.h (includes): Pick up any overrides.
21654         Reported by Reuben Thomas.
21655
21656         hash: allow C89 compilation
21657         * lib/hash.c (check_tuning): Move declaration before statement.
21658         Reported by Reuben Thomas.
21659
21660 2009-10-05  Karl Berry  <karl@gnu.org>
21661
21662         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
21663
21664 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
21665             Bruno Haible  <bruno@clisp.org>
21666
21667         * lib/uname.c (uname): Use a table-driven algorithm to compute
21668         Windows NT versions.
21669
21670 2009-10-04  Bruno Haible  <bruno@clisp.org>
21671
21672         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
21673         program_invocation_short_name.
21674         * modules/progname (configure.ac): Test for presence of
21675         program_invocation_short_name.
21676         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21677
21678 2009-10-04  Bruno Haible  <bruno@clisp.org>
21679
21680         * lib/progname.c (set_program_name): Fix comment.
21681         Reported by Jim Meyering.
21682
21683 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21684             Bruno Haible  <bruno@clisp.org>
21685
21686         * lib/uname.c: Include <string.h>.
21687         (uname): Do only one call to GetVersionEx in the common case.
21688
21689 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21690             Bruno Haible  <bruno@clisp.org>
21691
21692         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
21693         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
21694         (uname): Add support for Windows CE and various non-x86 CPU types.
21695
21696 2009-10-03  Bruno Haible  <bruno@clisp.org>
21697
21698         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
21699         invocation to tests/configure.ac.
21700         Reported by Ian Beckwith <ianb@erislabs.net>.
21701
21702 2009-10-02  Eric Blake  <ebb9@byu.net>
21703
21704         fchdir: avoid compiler warning
21705         * lib/fchdir.c (canonicalize_file_name)
21706         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
21707
21708         test-open: support mingw errno values
21709         * tests/test-open.h (test_open): Relax test.
21710         * tests/test-fopen.h (test_fopen): Likewise.
21711         * tests/test-openat-safer.c (main): Likewise.
21712
21713         open: fix opening directory on mingw
21714         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
21715
21716         test-open: on GNU/Hurd, /dev/null is a directory
21717         * tests/test-fopen.h (main): Rename...
21718         (test_fopen): ...to this.  Use a guaranteed non-directory when
21719         confirming open behavior on trailing slash.
21720         * tests/test-openat-safer.c (main): Likewise.
21721         * tests/test-open.h (main): Likewise....
21722         (test_open): ...to this.
21723         * tests/test-fopen.c (main): Adjust caller.
21724         * tests/test-fopen-safer.c (main): Likewise.
21725         * tests/test-open.c (main): Likewise.
21726         * tests/test-fcntl-safer.c (main): Likewise.
21727         Reported by Samuel Thibault.
21728
21729         rename, fchdir: don't ignore chdir failure
21730         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
21731         * lib/rename.c (rpl_rename) [W32]: Likewise.
21732         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
21733         an empty destination directory if source cannot be renamed,
21734         although there is still possibility for failure.
21735         * doc/posix-functions/rename.texi (rename): Document the race.
21736         Reported by Jim Meyering.
21737
21738         maint: cleanup whitespace in recent commits
21739         * lib/rename.c (rpl_rename): Remove tabs.
21740         * tests/test-link.h (test_link): Likewise.
21741         * lib/fchdir.c (get_name): Likewise.
21742         Reported by Jim Meyering.
21743
21744 2009-10-02  Ben Pfaff  <blp@gnu.org>
21745
21746         relocatable-prog-wrapper: Add missing dependency on
21747         double-slash-root.
21748         * modules/relocatable-prog-wrapper: Add dependency.
21749         Reported by Ian Beckwith <ianb@erislabs.net>.
21750
21751 2009-10-02  Eric Blake  <ebb9@byu.net>
21752
21753         renameat: fix Solaris bugs
21754         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
21755         needed fixing.
21756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
21757         * modules/stdio (Makefile.am): Substitute it.
21758         * lib/stdio.in.h (renameat): Declare replacement.
21759         * lib/renameat.c (rpl_renameat): Implement fix.
21760
21761         renameat: new module
21762         * modules/renameat: New file.
21763         * lib/renameat.c (renameat): Likewise.
21764         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
21765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21766         * modules/stdio (Makefile.am): Substitute them.
21767         * lib/stdio.in.h (renameat): Declare it.
21768         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21769         * doc/posix-functions/renameat.texi (renameat): Likewise.
21770         * modules/renameat-tests: New test.
21771         * tests/test-renameat.c: Likewise.
21772
21773         rename: fix mingw bugs
21774         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
21775         directory overwrite bugs.
21776
21777         rename: fix another cygwin 1.5 bug
21778         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
21779         checks.
21780         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
21781         unnecessary cygwin workarounds.  Also work around bug with moving
21782         full directory onto an empty one.
21783         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
21784
21785         rename-dest-slash: merge into rename module
21786         * modules/rename-dest-slash (Status): Mark obsolete.
21787         (Depends-on): Add rename.
21788         (Files): Let rename do it all.
21789         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
21790         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
21791         * m4/rename-dest-slash.m4: ...so this file can be deleted.
21792         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
21793         * lib/rename.c (rpl_rename): Update comments.
21794
21795         rename: fix cygwin 1.5.x bugs
21796         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
21797         * lib/rename.c (rpl_rename): Work around them.
21798         * modules/rename (Depends-on): Add same-inode.
21799
21800         rename: fix Solaris 10 bug
21801         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21802         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
21803         was the only bug.
21804
21805         rename: fix Solaris 9 bug
21806         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
21807         on non-directory.  Avoid calling exit.
21808         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
21809         strdup.
21810         * modules/rename-tests (Depends-on): Drop lstat.
21811         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21812         (gl_PREREQ_RENAME): Delete unused macro.
21813
21814         rename-dest-slash: fix NetBSD bug
21815         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
21816         links.
21817         * modules/rename-dest-slash (Depends-on): Add same-inode.
21818
21819         rename-tests: new test, exposes several platform bugs
21820         * modules/rename-tests: New file.
21821         * tests/test-rename.h: Likewise.
21822         * tests/test-rename.c: Likewise.
21823         * doc/posix-functions/rename.texi (rename): Improve documentation,
21824         including bugs that will eventually be fixed in gnulib.
21825
21826 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
21827
21828         * lib/uname.c: Include <stdlib.h>
21829         (uname): Assume version info is available.
21830
21831 2009-10-02  Jim Meyering  <meyering@redhat.com>
21832
21833         gnu-web-doc-update: correct --help output
21834         * build-aux/gnu-web-doc-update: Make --help output relevant.
21835
21836         gnu-web-doc-update: add standard options
21837         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
21838
21839         gnu-web-doc-update: New module.
21840         Use this script to automatically update the on-line web documentation
21841         for your GNU project at http://www.gnu.org/software/$pkg/manual/
21842         * modules/gnu-web-doc-update: New file, from coreutils.
21843         * build-aux/gnu-web-doc-update: New script.
21844
21845 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
21846
21847         link: LoadLibrary is not needed.
21848         * lib/link.c: Use GetModuleHandle.
21849
21850 2009-10-01  Eric Blake  <ebb9@byu.net>
21851
21852         getopt: bump serial number
21853         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
21854         change.
21855
21856         tests: tighten link, rmdir, and remove tests
21857         * tests/test-link.h (includes): No need to use <config.h> here.
21858         Clean up if directory hard link was created, otherwise test for
21859         trailing '.'.
21860         * tests/test-linkat.c (main): Simplify.
21861         * tests/test-remove.c (main): Enhance test for trailing '.'.
21862         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21863
21864 2009-10-01  Jim Meyering  <meyering@redhat.com>
21865
21866         maint.mk: requiring "make major" was annoying, for a "minor" release.
21867         What is intended is "stable", to contrast with alpha and beta,
21868         so require "make stable", not "make major".
21869         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
21870         (get_tool_versions): Likewise.
21871         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
21872
21873 2009-09-30  Ben Pfaff  <blp@gnu.org>
21874
21875         Fix broken build of replacement for Windows tmpfile().
21876         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
21877         flags argument added along with the 'mkostemp' module.
21878
21879 2009-09-28  Bruno Haible  <bruno@clisp.org>
21880
21881         Avoid identifier clash with POSIX function 'remove' defined as a macro.
21882         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
21883         to 'remove_elt'.
21884         (gl_list_remove): Update.
21885         * lib/gl_list.c (gl_list_remove): Update.
21886         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
21887         to 'remove_elt'.
21888         (gl_oset_remove): Update.
21889         * lib/gl_list.c (gl_oset_remove): Update.
21890         Reported by Eric Blake.
21891
21892 2009-09-28  Eric Blake  <ebb9@byu.net>
21893
21894         doc: mention yet more cygwin 1.7 status
21895         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
21896         cygwin.
21897         * doc/glibc-functions/execvpe.texi (execvpe): New file.
21898         * doc/gnulib.texi (Glibc unistd.h): Mention it.
21899
21900         argp: fix test failure
21901         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
21902         that are not upper-case.  Pass correct range to tolower.
21903
21904 2009-09-27  Jim Meyering  <meyering@redhat.com>
21905
21906         test-yesno: work around sparc-dash here-document infelicity
21907         Without this change, the literal \177 byte in a here document
21908         would make dash 0.5.5.1-3 access uninitialized memory.
21909         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
21910         Instead, use a marker, "@", and filter through tr to create the desired
21911         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
21912
21913 2009-09-27  Bruno Haible  <bruno@clisp.org>
21914
21915         Disable untested support for new flavours of ACLs on AIX.
21916         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
21917         progress.
21918         * lib/set-mode-acl.c (qset_acl): Likewise.
21919
21920 2008-12-07  Bruno Haible  <bruno@clisp.org>
21921
21922         Add support for new flavours of ACLs on AIX. (Untested.)
21923         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
21924         (file_has_acl): Add support for newer AIX.
21925         * lib/set-mode-acl.c (qset_acl): Likewise.
21926         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
21927         Rainer Tammer <tammer@tammer.net>.
21928
21929 2009-09-26  Eric Blake  <ebb9@byu.net>
21930
21931         argp: fix compilation of getopt
21932         * lib/getopt.in.h (includes): Use different guard than glibc.
21933         Reported by Sergey Poznyakoff.
21934
21935         doc: mention more cygwin 1.7 status
21936         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
21937         bug.
21938         * doc/posix-functions/execl.texi (execl): Likewise.
21939         * doc/posix-functions/execle.texi (execle): Likewise.
21940         * doc/posix-functions/execlp.texi (execlp): Likewise.
21941         * doc/posix-functions/execv.texi (execv): Likewise.
21942         * doc/posix-functions/execve.texi (execve): Likewise.
21943         * doc/posix-functions/execvp.texi (execvp): Likewise.
21944         * doc/glibc-functions/canonicalize_file_name.texi
21945         (canonicalize_file_name): Cygwin 1.7 now provides this.
21946         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
21947         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
21948         on AT_SYMLINK_NOFOLLOW.
21949
21950 2009-09-24  Eric Blake  <ebb9@byu.net>
21951
21952         test-linkat: make test more robust
21953         * tests/test-linkat.c (main): Avoid collision with EEXIST.
21954
21955         getopt: fix inclusion guards for cygwin
21956         * modules/getopt-posix (Depends-on): Add include-next.
21957         (Makefile.am): Substitute more items in replacement header.
21958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
21959         <getopt.h>.
21960         * lib/getopt.in.h (includes): Use split inclusion guard, and
21961         prefer <getopt.h> over include <unistd.h> when one is present.
21962         (option): Also override name of 'struct option'.
21963
21964         same-inode: revert prior change; it is not yet ready
21965         * NEWS: Undo mention of this change.
21966         * lib/same-inode.h (same-inode.h): Undo tri-state change.
21967         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
21968         * lib/cycle-check.c (cycle_check): Likewise.
21969         * lib/same.c (same_name): Likewise.
21970         * lib/at-func2.c (at_func2): Likewise.
21971
21972 2009-09-23  Eric Blake  <ebb9@byu.net>
21973
21974         linkat: new module
21975         * modules/linkat: New file.
21976         * lib/at-func2.c (at_func2): Likewise.
21977         * lib/linkat.c (linkat): Likewise.
21978         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21979         * lib/openat-priv.h (at_func2): Add declaration.
21980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21981         * modules/unistd (Makefile.am): Substitute them.
21982         * lib/unistd.in.h (linkat): Declare it.
21983         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21984         * doc/posix-functions/linkat.texi (linkat): Likewise.
21985         * doc/posix-functions/link.texi (link): Tweak wording.
21986         * tests/test-link.c (main): Move guts...
21987         * tests/test-link.h (test_link): ...into new file.
21988         * modules/linkat-tests: New test.
21989         * tests/test-linkat.c: Likewise.
21990         * modules/link-tests (Files): Ship new file.
21991         (Depends-on): Add stdbool.
21992
21993         dirname: add library-safe mdir_name
21994         * lib/dirname.h (mdir_name): New prototype.
21995         * lib/dirname.c (dir_name): Move guts...
21996         (mdir_name): ...to new function that avoids xalloc_die.
21997
21998         fchdir: another mingw fix
21999         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
22000         * lib/fchdir.c (get_name): New helper method; skips canonicalize
22001         on mingw (where it has not yet been ported), and make it optional
22002         elsewhere.
22003         (_gl_register_fd): Use it.
22004
22005         same-inode: make SAME_INODE tri-state, to port to mingw
22006         * NEWS: Mention this change.
22007         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
22008         st_ino always being 0.
22009         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22010         * lib/cycle-check.c (cycle_check): Likewise.
22011         * lib/same.c (same_name): Likewise.
22012
22013         lstat: avoid mingw compilation error
22014         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
22015         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
22016         lstat ourselves.
22017         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
22018         was adequate.
22019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
22020         the checks for lstat.
22021         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
22022
22023         link: fix test failure on Solaris 9
22024         * lib/link.c (rpl_link): Don't assume link will catch bogus
22025         trailing slash on source.
22026
22027         test-symlinkat: enhance test
22028         * tests/test-readlink.c (main): Move guts...
22029         * tests/test-readlink.h (test_readlink): ...into new file.
22030         * tests/test-symlink.c (main): Move guts...
22031         * tests/test-symlink.h (test_symlink): ...into new file.
22032         * tests/test-symlinkat.c (main): Use new files for further
22033         coverage.
22034         (do_symlink, do_readlink): New helper functions.
22035         * modules/symlink-tests (Files): Ship new file.
22036         (Depends-on): Add stdbool.
22037         * modules/readlink-tests (Files): Ship new file.
22038         (Depends-on): Add stdbool.
22039         * modules/symlinkat-tests (Files): Use new files.
22040
22041 2009-09-23  Eric Blake  <ebb9@byu.net>
22042
22043         readlink: document portability issue with symlink length
22044         * doc/posix-functions/lstat.texi (lstat): Mention that some file
22045         systems have bogus st_size on symlinks, and mention the
22046         areadlink-with-size module.
22047         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22048         * doc/posix-functions/readlink.texi (readlink): Mention the
22049         areadlink module, and ERANGE failure.
22050         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22051         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
22052
22053         readlink: fix Solaris 9 bug with trailing slash
22054         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
22055         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
22056         * doc/posix-functions/readlink.texi (readlink): Document this.
22057         * modules/readlink-tests: New test.
22058         * tests/test-readlink.c: Likewise.
22059
22060         readlink: fix cygwin 1.5.x bug with return type
22061         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
22062         * lib/unistd.in.h (readlink): Use ssize_t.
22063         * lib/readlink.c (readlink): Likewise.
22064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22065         * modules/unistd (Makefile.am): Substitute it.
22066         * lib/unistd.in.h (readlink): Declare replacement.
22067         * doc/posix-functions/readlink.texi (readlink): Document this.
22068
22069         symlink: use throughout gnulib
22070         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
22071         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
22072         symlink is not used.
22073         * modules/symlinkat (Depends-on): Add symlink.
22074         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22075         * modules/canonicalize-tests (Depends-on): Likewise.
22076         * modules/lstat-tests (Depends-on): Likewise.
22077         * modules/openat-tests (Depends-on): Likewise.
22078         * modules/remove-tests (Depends-on): Likewise.
22079         * modules/rmdir-tests (Depends-on): Likewise.
22080         * modules/unlink-tests (Depends-on): Likewise.
22081         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
22082         * tests/test-canonicalize.c (symlink): Likewise.
22083         * tests/test-fstatat.c (symlink): Likewise.
22084         * tests/test-lstat.c (symlink): Likewise.
22085         * tests/test-remove.c (symlink): Likewise.
22086         * tests/test-rmdir.c (symlink): Likewise.
22087         * tests/test-unlink.c (symlink): Likewise.
22088         * tests/test-unlinkat.c (symlink): Likewise.
22089
22090         symlink: new module, for Solaris 9 bug
22091         * modules/symlink: New file.
22092         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22093         * lib/symlink.c: Likewise.
22094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22095         * modules/unistd (Makefile.am): Substitute them.
22096         * lib/unistd.in.h (symlink): Declare replacement.
22097         * MODULES.html.sh (File system functions): Mention it.
22098         * doc/posix-functions/symlink.texi (symlink): Likewise.
22099         * modules/symlink-tests: New test.
22100         * tests/test-symlink.c: Likewise.
22101
22102 2009-09-23  Bruno Haible  <bruno@clisp.org>
22103
22104         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
22105         when needed.
22106         Test case: gnulib-tool --import --with-tests atexit inttypes.
22107         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
22108
22109 2009-09-23  Bruno Haible  <bruno@clisp.org>
22110
22111         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
22112         subcommand, not in a subshell.
22113
22114 2009-09-22  Eric Blake  <ebb9@byu.net>
22115
22116         unistd: sort replacement declarations
22117         * lib/unistd.in.h: Sort declarations.
22118
22119         open, openat: minor optimization
22120         * lib/open.c (open): If open succeeded, len is non-zero.
22121         * lib/openat.c (rpl_openat): Likewise.
22122
22123         link-follow: ensure correct result
22124         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22125         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22126         distinguish between possible failures.
22127
22128 2009-09-21  Eric Blake  <ebb9@byu.net>
22129
22130         fts: avoid compiler warning
22131         * lib/fts.c (dirent_inode_sort_may_be_useful)
22132         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
22133
22134 2009-09-19  Bruno Haible  <bruno@clisp.org>
22135
22136         * lib/progreloc.c (canonicalize_file_name): New declaration.
22137
22138 2009-09-19  Eric Blake  <ebb9@byu.net>
22139
22140         link: fix quoting
22141         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
22142
22143         openat: fix openat bugs on Solaris 9
22144         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
22145         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
22146         * modules/openat (Depends-on): Add open.
22147         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
22148         * modules/fcntl-h (Makefile.am): Substitute it.
22149         * lib/fcntl.in.h (openat): Declare replacement.
22150         * doc/posix-functions/openat.texi (openat): Document this.
22151
22152         openat: move fstatat and unlinkat into correct files
22153         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
22154         compiled.
22155         * lib/openat.c (fstatat, unlinkat): Move...
22156         * lib/fstatat.c (fstatat): ...into correct files.
22157         * lib/unlinkat.c (unlinkat): Likewise.
22158
22159         openat: fix unlinkat bugs on Solaris 9
22160         * lib/unlinkat.c (unlinkat): New file.
22161         * modules/openat (Depends-on): Add unlink.
22162         (Files): Distribute it.
22163         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
22164         trailing slash behavior is broken.
22165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22166         * modules/unistd (Makefile.am): Substitute it.
22167         * lib/unistd.in.h (unlinkat): Declare replacement.
22168         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
22169
22170         openat: fix fstatat bugs on Solaris 9
22171         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
22172         stat.
22173         * doc/posix-functions/fstatat.texi (fstatat): Document this.
22174
22175         test-unlinkat: enhance test, to expose Solaris 9 bug
22176         * tests/test-unlink.c (main): Factor guts...
22177         * tests/test-unlink.h (test_rmdir_func): ...into new file.
22178         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
22179         * tests/test-rmdir.c (main): Adjust caller.
22180         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
22181         (unlinker): New helper function.
22182         (rmdirat): Enhance check.
22183         * modules/rmdir-tests (Depends-on): Add stdbool.
22184         * modules/unlink-tests (Depends-on): Likewise.
22185         (Files): Add test-unlink.h.
22186         * modules/openat-tests (Files): Likewise.
22187         (Depends-on): Add unlinkdir.
22188
22189         test-fstatat: new test, to expose Solaris 9 bugs
22190         * tests/test-stat.c (main): Factor guts...
22191         * tests/test-stat.h (test_stat_func): ...into new file.
22192         * tests/test-lstat.c (main): Factor guts...
22193         * tests/test-lstat.h (test_lstat_func): ...into new file.
22194         * tests/test-fstatat.c: New file.
22195         * modules/stat-tests (Files): Add test-stat.h.
22196         * modules/lstat-tests (Files): Add test-lstat.h.
22197         (Depends-on): Add stdbool.
22198         * modules/openat-tests (Depends-on): Add pathmax.
22199         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
22200         (Makefile.am): Run new test.
22201
22202         remove: new module, for mingw and Solaris 9 bugs
22203         * modules/remove: New file.
22204         * lib/remove.c: Likewise.
22205         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
22206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22207         * modules/stdio (Makefile.am): Use them.
22208         * lib/stdio.in.h (remove): Declare replacement.
22209         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22210         * doc/posix-functions/remove.texi (remove): Likewise.
22211         * modules/remove-tests: New test.
22212         * tests/test-remove.c: Likewise.
22213
22214         unlink: new module, for Solaris 9 bug
22215         * modules/unlink: New file.
22216         * lib/unlink.c: Likewise.
22217         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22219         * modules/unistd (Makefile.am): Use them.
22220         * lib/unistd.in.h (stat): Declare replacement.
22221         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22222         * doc/posix-functions/unlink.texi (unlink): Likewise.
22223         * modules/unlink-tests: New test.
22224         * tests/test-unlink.c: Likewise.
22225
22226         lstat: fix Solaris 9 bug
22227         * lib/lstat.c (lstat): Also check for trailing slash on
22228         non-symlink, non-directories.  Use stat module to simplify logic.
22229         * doc/posix-functions/lstat.texi (lstat): Document it.
22230         * modules/lstat-tests (Depends-on): Add errno, same-inode.
22231         (configure.ac): Check for symlink.
22232         * tests/test-lstat.c (main): Add more tests.
22233
22234         stat: add as dependency to other modules
22235         * modules/chown (Depends-on): Add stat.
22236         * modules/euidaccess (Depends-on): Likewise.
22237         * modules/fchdir (Depends-on): Likewise.
22238         * modules/isdir (Depends-on): Likewise.
22239         * modules/link (Depends-on): Likewise.
22240         * modules/lstat (Depends-on): Likewise.
22241         * modules/mkdir-p (Depends-on): Likewise.
22242         * modules/modechange (Depends-on): Likewise.
22243         * modules/open (Depends-on): Likewise.
22244         * modules/readlink (Depends-on): Likewise.
22245         * modules/same (Depends-on): Likewise.
22246
22247         stat: fix Solaris 9 bug
22248         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
22249         slash.
22250         * lib/stat.c (rpl_stat): Work around it.
22251         * doc/posix-functions/stat.texi (stat): Update documentation.
22252
22253         stat: new module, for mingw bug
22254         * modules/stat: New file.
22255         * lib/stat.c: Likewise.
22256         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22258         * modules/sys_stat (Makefile.am): Use them.
22259         * lib/sys_stat.in.h (stat): Declare replacement.
22260         * lib/openat.c (fstatat): Deal with lstat and stat being function
22261         macros.
22262         * modules/openat (Depends-on): Add inline.
22263         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22264         * doc/posix-functions/stat.texi (stat): Likewise.
22265         * modules/stat-tests: New test.
22266         * tests/test-stat.c: Likewise.
22267
22268 2009-09-19  Jim Meyering  <meyering@redhat.com>
22269
22270         syntax-check: detect unnecessary inclusion of canonicalize.h
22271         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
22272
22273 2009-09-19  Eric Blake  <ebb9@byu.net>
22274
22275         canonicalize-lgpl: adjust clients to use correct header
22276         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22277         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
22278         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
22279         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
22280         * lib/progreloc.c (includes): Likewise.
22281
22282 2009-09-19  Jim Meyering  <meyering@redhat.com>
22283
22284         test-posixtm.c: correct a comment
22285         * tests/test-posixtm.c: Correct first-line comment.
22286         Spotted by Eric Blake.
22287
22288 2009-09-16  Jim Meyering  <meyering@redhat.com>
22289
22290         posixtm-tests: make T const-correct; add a test case
22291         * tests/test-posixtm.c (T): Declare const.
22292         Add a test for -(2^31+1).
22293         Remove useless can-succeed-only-in-2002 test.
22294
22295         posixtm-tests: adjust the sole failing test
22296         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
22297         expected output matches what mktime now produces.  Cross-checked via
22298         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
22299
22300         posixtm: move #ifdef'd tests into a new module
22301         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
22302         * tests/test-posixtm.c: ... this new file.
22303         * modules/posixtm-tests: New module.
22304
22305 2009-09-19  Eric Blake  <ebb9@byu.net>
22306
22307         openat: simplify use of at-func.c
22308         * lib/at-func.c (includes): Include prerequisites here, to
22309         simplify requirements on client files.
22310         * lib/openat-priv.h: Add double-inclusion guard.
22311         * lib/faccessat.c (includes): Simplify.
22312         * lib/fchmodat.c (includes): Likewise.
22313         * lib/fchownat.c (includes): Likewise.
22314         * lib/mkdirat.c (includes): Likewise.
22315         * lib/mkfifoat.c (includes): Likewise.
22316         * lib/symlinkat.c (includes): Likewise.
22317
22318         openat: allow return of fd 0
22319         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
22320         * modules/save-cwd (Depends-on): Replace fcntl-safer with
22321         unistd-safer.
22322         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
22323         <fcntl.h>; this module does not leak fds.
22324         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
22325         must be allowed to return 0, leaving openat_safer to add the
22326         safety.
22327         (openat_permissive): Avoid writing to just-opened fd 2 if
22328         restoring the current directory fails.
22329         * lib/openat-die.c (openat_restore_fail): Add comment.
22330         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
22331         (save_cwd): Guarantee safe fd, but without use of open_safer.
22332         * tests/test-openat.c: New test.
22333         * modules/openat-tests (Files, Makefile.am): Distribute and build
22334         new file.
22335
22336         relocatable-prog-wrapper: fix build
22337         * modules/relocatable-prog-wrapper (Files): Update name of
22338         canonicalize m4 file, broken on 2009-09-17.
22339         Reported by emad hajjar <aleppos@hotmail.com>.
22340
22341 2009-09-19  Bruno Haible  <bruno@clisp.org>
22342
22343         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22344         * lib/safe-alloc.c: Likewise.
22345         Reported by Ian Beckwith <ianb@erislabs.net>.
22346
22347 2009-09-18  Bruno Haible  <bruno@clisp.org>
22348
22349         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22350         Reported by <erobles@sensacd.com.mx>.
22351
22352 2009-09-17  Eric Blake  <ebb9@byu.net>
22353
22354         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22355         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22356         slashes when checking if last component is missing.
22357         * tests/test-canonicalize.c (main): Test this.
22358
22359         canonicalize, canonicalize-lgpl: honor // if distinct from /
22360         * modules/canonicalize (Files): Add double-slash-root.m4.
22361         * modules/canonicalize-lgpl (Files): Likewise.
22362         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22363         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
22364         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
22365         fallback definition.
22366         (canonicalize_filename_mode): Use it to protect //.
22367         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
22368         (__realpath): Likewise.
22369         * tests/test-canonicalize.c (main): Test this.
22370         * tests/test-canonicalize-lgpl.c (main): Likewise.
22371         * modules/canonicalize-tests (Depends-on): Add same-inode.
22372         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22373
22374         canonicalize-lgpl: fix glibc bug with trailing slash
22375         * m4/canonicalize-lgpl.m4: Move contents...
22376         * m4/canonicalize.m4: ...here.
22377         (gl_CANONICALIZE_LGPL): Factor realpath check...
22378         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
22379         glibc 2.3.5 bug, fixed 2005-04-27.
22380         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
22381         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
22382         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
22383         * modules/canonicalize-lgpl (Files): Manage file rename.
22384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22385         * modules/stdlib (Makefile.am): Substitute witness.
22386         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
22387         is needed.
22388         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
22389         replacement is required.
22390         * lib/canonicalize.c (canonicalize_file_name): Likewise.
22391         * doc/glibc-functions/canonicalize_file_name.texi
22392         (canonicalize_file_name): Document this.
22393         * doc/posix-functions/realpath.texi (realpath): Likewise.
22394
22395         canonicalize-lgpl: reject non-directory with trailing slash
22396         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
22397         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
22398         catches failures in glibc 2.3.5.
22399         * tests/test-canonicalize.c (main): Likewise.
22400
22401         canonicalize-lgpl: use native realpath if it works
22402         * lib/canonicalize-lgpl.c (realpath): Guard with
22403         FUNC_REALPATH_WORKS.
22404         * lib/stdlib.in.h (realpath): Make declaration optional based on
22405         HAVE_REALPATH.
22406         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
22407         native realpath works.
22408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22409         * modules/stdlib (Makefile.am): Substitute witness.
22410
22411         canonicalize, canonicalize-lgpl: use <stdlib.h>
22412         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
22413         (Include): Mention <stdlib.h>.
22414         (configure.ac): Mention functions we provide.
22415         * modules/canonicalize (configure.ac): Likewise.
22416         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
22417         realpath if canonicalize_file_name is missing.
22418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
22419         * modules/stdlib (Makefile.am): Substitute witnesses.
22420         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
22421         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
22422         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
22423         * NEWS: Document this.
22424         * doc/glibc-functions/canonicalize_file_name.texi
22425         (canonicalize_file_name): Likewise.
22426         * doc/posix-functions/realpath.texi (realpath): Likewise.
22427         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
22428
22429         test-canonicalize: consolidate into single C program
22430         * tests/test-canonicalize.sh: Delete; move setup into...
22431         * tests/test-canonicalize.c (main): ...the program, making it
22432         easier to run in debugger.  Add some tests.
22433         * modules/canonicalize-tests (Files): Remove unused file.
22434         (Depends-on): Add progname.
22435         (configure.ac, Makefile.am): Simplify.
22436
22437         test-canonicalize-lgpl: consolidate into single C program
22438         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
22439         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
22440         easier to run in debugger.  Add some tests.
22441         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
22442         (configure.ac, Makefile.am): Simplify.
22443
22444         canonicalize: avoid resolvepath
22445         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
22446         unnecessary checks.
22447         * lib/canonicalize.c (includes): Simplify.
22448         (canonicalize_file_name): Drop resolvepath implementation.
22449         * modules/canonicalize (Depends-on): Drop filenamecat.
22450
22451         canonicalize: don't lose errno
22452         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
22453         over calls to free.
22454
22455         canonicalize: simplify errno handling
22456         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
22457         assignment.
22458
22459         canonicalize, canonicalize-lgpl: update module dependencies
22460         * modules/canonicalize (Depends-on): Add extensions, lstat,
22461         pathmax, stdlib.
22462         (Files): Drop pathmax.h.
22463         (configure.ac): Adjust macro name.
22464         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
22465         lstat, stdlib, sys_stat.
22466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
22467         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22468         extensions.
22469         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22470         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22471         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22472         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22473         declaration, if available.
22474         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22475         we can rely on the readlink module.
22476         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22477         (includes): Use <unistd.h> unconditionally.
22478
22479 2009-09-17  Eric Blake  <ebb9@byu.net>
22480
22481         maint: make Include sections of modules consistent
22482         * modules/alloca: Use only header name; no need to list #include.
22483         * modules/alloca-opt: Likewise.
22484         * modules/arpa_inet: Likewise.
22485         * modules/canon-host: Likewise.
22486         * modules/configmake: Likewise.
22487         * modules/dirent: Likewise.
22488         * modules/eealloc: Likewise.
22489         * modules/environ: Likewise.
22490         * modules/fchdir: Likewise.
22491         * modules/fcntl: Likewise.
22492         * modules/fcntl-h: Likewise.
22493         * modules/gethrxtime: Likewise.
22494         * modules/gettime: Likewise.
22495         * modules/ignore-value: Likewise.
22496         * modules/inet_ntop: Likewise.
22497         * modules/inet_pton: Likewise.
22498         * modules/inttypes: Likewise.
22499         * modules/isnand-nolibm: Likewise.
22500         * modules/isnanf-nolibm: Likewise.
22501         * modules/mbchar: Likewise.
22502         * modules/mbfile: Likewise.
22503         * modules/mbiter: Likewise.
22504         * modules/mbuiter: Likewise.
22505         * modules/netdb: Likewise.
22506         * modules/netinet_in: Likewise.
22507         * modules/nproc: Likewise.
22508         * modules/pagealign_alloc: Likewise.
22509         * modules/poll: Likewise.
22510         * modules/printf-frexp: Likewise.
22511         * modules/pthread: Likewise.
22512         * modules/putenv: Likewise.
22513         * modules/random_r: Likewise.
22514         * modules/relocatable-prog: Likewise.
22515         * modules/search: Likewise.
22516         * modules/select: Likewise.
22517         * modules/selinux-h: Likewise.
22518         * modules/settime: Likewise.
22519         * modules/signal: Likewise.
22520         * modules/size_max: Likewise.
22521         * modules/socklen: Likewise.
22522         * modules/ssize_t: Likewise.
22523         * modules/stdarg: Likewise.
22524         * modules/stdbool: Likewise.
22525         * modules/stddef: Likewise.
22526         * modules/stdint: Likewise.
22527         * modules/stdio: Likewise.
22528         * modules/stdlib: Likewise.
22529         * modules/string: Likewise.
22530         * modules/strings: Likewise.
22531         * modules/sys_file: Likewise.
22532         * modules/sys_ioctl: Likewise.
22533         * modules/sys_select: Likewise.
22534         * modules/sys_socket: Likewise.
22535         * modules/sys_stat: Likewise.
22536         * modules/sys_time: Likewise.
22537         * modules/sys_times: Likewise.
22538         * modules/sys_utsname: Likewise.
22539         * modules/sys_wait: Likewise.
22540         * modules/sysexits: Likewise.
22541         * modules/time: Likewise.
22542         * modules/times: Likewise.
22543         * modules/tmpfile: Likewise.
22544         * modules/trim: Likewise.
22545         * modules/unistd: Likewise.
22546         * modules/wchar: Likewise.
22547         * modules/wctype: Likewise.
22548
22549 2009-09-17  Bruno Haible  <bruno@clisp.org>
22550
22551         Make getdate.y compile on QNX and NetBSD 5 / i386.
22552         * m4/getdate.m4 (gl_GETDATE): Conditionally define
22553         TIME_T_FITS_IN_LONG_INT.
22554         * lib/getdate.y (long_time_t): New type.
22555         (relative_time): Change type of 'seconds' field to long_time_t.
22556         (get_date): Update types of local variables. Check against overflow
22557         during conversion from long_time_t to time_t.
22558         Reported by Matt Kraai <kraai@ftbfs.org>
22559         and Hasso Tepper <hasso@netbsd.org>.
22560
22561 2009-09-17  Bruno Haible  <bruno@clisp.org>
22562
22563         * modules/COPYING: Update copyright years.
22564         * modules/README: Likeiwse.
22565         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
22566         Reported by Ian Beckwith <ianb@erislabs.net>.
22567
22568 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22569
22570         * users.txt: Update references for gnuit package.
22571
22572 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22573
22574         * m4/getdelim.m4: Fix typo in copyright line.
22575
22576 2009-09-17  Bruno Haible  <bruno@clisp.org>
22577
22578         * lib/atoll.c: Use the standard header with GPL copyright.
22579         * lib/argz.in.h: Likewise.
22580         * lib/glob.c: Likewise.
22581         * lib/glob-libc.h: Likewise.
22582         * lib/random_r.c: Likewise.
22583         * lib/siglist.h: Likewise.
22584         * lib/strsignal.c: Likewise.
22585         Reported by Ian Beckwith <ianb@erislabs.net>.
22586
22587 2009-09-17  Eric Blake  <ebb9@byu.net>
22588
22589         rmdir: ensure correct dependency order
22590         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
22591
22592 2009-09-17  Bruno Haible  <bruno@clisp.org>
22593
22594         Disable assertion that fails on NetBSD 5 / i386.
22595         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
22596         Reported by Sam Steingold <sds@gnu.org>
22597         and Hasso Tepper <hasso@netbsd.org>.
22598
22599 2009-09-16  Eric Blake  <ebb9@byu.net>
22600
22601         unlinkdir: port to mingw
22602         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
22603         on which no one can unlink a directory.
22604
22605         stdlib: sort witness names
22606         * modules/stdlib (Makefile.am): Sort replacements.
22607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22608         * lib/stdlib.in.h: Likewise.
22609
22610         parse-duration-tests: avoid link failure
22611         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
22612         LIBINTL.
22613         Reported by Tom G. Christensen.
22614
22615         openat-tests: ensure unlinkat behaves like rmdir
22616         * tests/test-rmdir.c (main): Factor guts...
22617         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
22618         * modules/rmdir-tests (Files): Ship new file.
22619         * modules/openat-tests: New test.
22620         * tests/test-unlinkat.c: Likewise.
22621
22622         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
22623         * modules/rmdir-errno (Status, Notice): Now obsolete.
22624
22625         rmdir: work around cygwin 1.5.x and mingw bugs
22626         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
22627         * lib/rmdir.c (rmdir): Work around it.
22628         * modules/rmdir (Status, Notice): No longer obsolete.
22629         (Files): Add dos.m4.
22630         (Depends-on): Add unistd.
22631         (configure.ac): Set witnesses.
22632         (License): Relax to LGPLv2+.
22633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
22634         * modules/unistd (Makefile.am): Substitute witnesses.
22635         * lib/unistd.in.h (rmdir): Declare replacement.
22636         * doc/posix-functions/rmdir.texi (rmdir): Document this.
22637         * modules/rmdir-tests: New tests.
22638         * tests/test-rmdir.c: Likewise.
22639
22640 2009-09-15  Eric Blake  <ebb9@byu.net>
22641
22642         fchdir: improve use of replacement functions
22643         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
22644         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
22645         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
22646         REPLACE_CLOSEDIR.
22647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
22648         * modules/sys_stat (Makefile.am): Substitute correct witness.
22649         * modules/dirent (Makefile.am): Likewise.
22650         * modules/unistd (Makefile.am): Likewise.
22651         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
22652         * lib/unistd.in.h (dup): Likewise.
22653         * lib/sys_stat.in.h (fstat): Likewise.
22654
22655         maint: ignore gnulib-tool temp files
22656         * .gitignore: Ignore files created during gnulib-tool --test.
22657
22658 2009-09-13  Jim Meyering  <meyering@redhat.com>
22659
22660         posixtm: don't reject a time that specify "60" as the number of seconds
22661         * lib/posixtm.c (posixtime): The code to reject invalid dates
22662         would also reject a time specified with the .60 suffix.
22663         But POSIX allows that, in order to accommodate leap seconds.
22664         So don't reject it.
22665         (main): Adjust tests accordingly.
22666         * modules/posixtm (Depends-on): Add stpcpy.
22667
22668 2009-09-11  Jim Meyering  <meyering@redhat.com>
22669
22670         announce-gen: include [$release_type] in emitted Subject:
22671         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
22672         e.g., [stable] in the emitted Subject: line.
22673
22674 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22675
22676         Remove obsolete macros from several modules.
22677         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
22678         obsolete Autoconf macros with their modern counterparts.
22679         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
22680         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
22681         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22682         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22683         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
22684         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22686         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22687         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22688         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
22689         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22691         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
22692         * m4/sockets.m4 (gl_SOCKETS): Likewise.
22693         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
22694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
22695         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22696         * m4/time_r.m4 (gl_TIME_R): Likewise.
22697         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22698         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
22699         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22700
22701         Fix copyright header in build-aux scripts.
22702         * build-aux/git-version-gen: Fix copyright header to match GPLv3
22703         recommendation.
22704         * build-aux/ncftpput-ftp: Likewise.
22705         * build-aux/update-copyright: Likewise.
22706
22707 2009-09-09  Eric Blake  <ebb9@byu.net>
22708
22709         test-link: allow Linux choice of errno
22710         * tests/test-link.c (main): Relax test for alternate error.
22711
22712         strndup: fix improper m4 caching
22713         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
22714         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
22715         (gl_PREREQ_STRNDUP): Delete.
22716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
22717         * modules/string (Makefile.am): Substitute it.
22718         * lib/string.in.h (strndup): Modernize prototype.
22719
22720         getcwd: port to mingw
22721         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
22722         different from the POSIX assumptions made throughout the getcwd
22723         module; fortunately, the mingw getcwd does not need replacement.
22724         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
22725         * modules/getcwd-tests: New test.
22726         * tests/test-getcwd.c: Likewise.
22727
22728         link: fix platform bugs
22729         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
22730         * lib/link.c (link): Work around them.  Fix related mingw bug.
22731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
22732         * modules/unistd (Makefile.am): Substitute it.
22733         * lib/unistd.in.h (link): Declare replacement.
22734         * doc/posix-functions/link.texi (link): Document this.
22735         * modules/link (Depends-on): Add strdup-posix, sys_stat.
22736
22737         test-link: consolidate into single C program, test more cases
22738         * tests/test-link.sh: Delete.
22739         * tests/test-link.c: Test more error conditions.  Exposes bugs on
22740         at least Cygwin and Solaris.
22741         * modules/link-tests (Files): Remove unused file.
22742         (Depends-on): Add errno, sys_stat.
22743         (Makefile.am): Simplify.
22744
22745 2009-09-08  Bruno Haible  <bruno@clisp.org>
22746
22747         Work around towlower, towupper bug on mingw.
22748         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
22749         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
22750         * doc/posix-functions/towlower.texi: Mention the mingw bug.
22751         * doc/posix-functions/towupper.texi: Likewise.
22752         Reported by Eric Blake.
22753
22754 2009-09-08  Jim Meyering  <meyering@redhat.com>
22755
22756         build: don't try to run autoheader if we don't use it
22757         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
22758         is not used in configure.ac.
22759
22760 2009-09-08  Eric Blake  <ebb9@byu.net>
22761
22762         euidaccess: fix compilation error
22763         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
22764
22765         rawmemchr: relax license
22766         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
22767         okay.
22768         Reported by Jim Meyering.
22769
22770         mkfifoat: new module
22771         * modules/mkfifoat: New file.
22772         * lib/mkfifoat.c: Likewise.
22773         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
22774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22775         * modules/sys_stat (Makefile.am): Use them.
22776         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
22777         * MODULES.html.sh (File system functions): Mention module.
22778         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22779         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22780         * modules/mkfifoat-tests: New test.
22781         * tests/test-mkfifoat.c: Likewise.
22782
22783         strchrnul: relax license
22784         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
22785         okay.
22786         Reported by Jim Meyering.
22787
22788 2009-09-08  Eric Blake  <ebb9@byu.net>
22789
22790         fstatat: fix compilation on Solaris
22791         * lib/fstatat.c (includes): Add fcntl.h.
22792         Reported by Pádraig Brady.
22793
22794 2009-09-07  Eric Blake  <ebb9@byu.net>
22795
22796         rename: modernize replacement
22797         * modules/rename (Depends-on): Add stdio.
22798         (configure.ac): Declare witness.
22799         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
22800         stdio take care of replacement.
22801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22802         * modules/stdio (Makefile.am): Substitute them.
22803         * lib/stdio.in.h (rename): Declare replacement.
22804         * lib/rename.c (includes): Allow cross-compilation to non-windows
22805         machines.
22806         * doc/posix-functions/rename.texi (rename): Improve
22807         documentation.
22808
22809         stdio: sort witness names
22810         * modules/stdio (Makefile.am): Sort replacements.
22811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22812         * lib/stdio.in.h: Likewise.
22813
22814         getcwd: minor cleanups
22815         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
22816         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
22817
22818         openat: provide more convenience names
22819         * modules/faccessat (configure.ac): Add C witness.
22820         * lib/unistd.in.h (readlinkat): Fix typo.
22821         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
22822         convenience wrappers.
22823         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
22824         wrappers in syntax checks.
22825
22826 2009-09-06  Eric Blake  <ebb9@byu.net>
22827
22828         doc: fix comments in recent patches
22829         * lib/faccessat.c: Mention correct function.
22830         * lib/fchmodat.c: Likewise.
22831         * lib/fchownat.c: Likewise.
22832         * lib/symlinkat.c: Likewise.
22833         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
22834         constants.
22835
22836         faccessat, symlinkat: continue cleanup of previous patch
22837         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
22838         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
22839         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
22840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
22841         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
22842         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
22843         set.
22844
22845 2009-09-06  Bruno Haible  <bruno@clisp.org>
22846
22847         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
22848         (fstatat): Declare if GNULIB_FSTATAT is set.
22849         (mkdirat): Declare if GNULIB_MKDIRAT is set.
22850         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
22851         (unlinkat): Declare if GNULIB_UNLINKAT is set.
22852         * modules/fcntl-h (Files): Remove m4/openat.m4.
22853         * modules/sys_stat (Files): Remove m4/openat.m4.
22854         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
22855         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
22856         * modules/unistd (Files): Remove m4/openat.m4.
22857         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
22858         GNULIB_OPENAT.
22859         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
22860         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
22861         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22862         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
22863         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
22864         gl_OPENAT_DEFAULTS.
22865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
22866         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
22867         Don't require gl_OPENAT_DEFAULTS.
22868         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
22869         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
22870         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
22871         (gl_OPENAT_DEFAULTS): Remove macro.
22872
22873 2009-09-06  Bruno Haible  <bruno@clisp.org>
22874
22875         * modules/openat (configure.ac): Remove unneeded witness.
22876
22877 2009-09-06  Bruno Haible  <bruno@clisp.org>
22878
22879         Set errno to ENOSYS when a function is entirely unsupported.
22880         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
22881         EOPNOTSUPP.
22882         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22883         * modules/chown (Depends-on): Remove errno.
22884
22885 2009-09-06  Bruno Haible  <bruno@clisp.org>
22886
22887         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
22888
22889 2009-09-06  Bruno Haible  <bruno@clisp.org>
22890
22891         * lib/sys_stat.in.h: Fix preprocessor command indentation.
22892
22893 2009-09-06  Ben Pfaff  <blp@gnu.org>
22894             Bruno Haible  <bruno@clisp.org>
22895
22896         Work around a glibc bug in strtok_r.
22897         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
22898         Undefine if UNDEFINE_STRTOK_R is set.
22899         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
22900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22901         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
22902         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
22903         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
22904         UNDEFINE_STRTOK_R.
22905         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
22906
22907 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22908
22909         exclude: minor fix
22910         * lib/exclude.c: Include wctype.h
22911
22912 2009-09-06  Akim Demaille  <demaille@gostai.com>
22913
22914         bootstrap: improve error message
22915         * build-aux/bootstrap (find_tool): Upon failure, report the list
22916         of candidates.
22917         Honor the initial value of the envvar.
22918
22919 2009-09-05  Eric Blake  <ebb9@byu.net>
22920
22921         symlinkat: new module
22922         * modules/symlinkat: New file.
22923         * lib/symlinkat.c: Likewise.
22924         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22926         * modules/unistd (Makefile.am): Use them.
22927         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
22928         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
22929         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
22930         * MODULES.html.sh (File system functions): Mention module.
22931         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22932         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22933         * modules/symlinkat-tests: New test.
22934         * tests/test-symlinkat.c: Likewise.
22935
22936         test-openat-safer: add more checks
22937         * tests/test-openat-safer.c (main): Check more code paths.
22938
22939 2009-09-05  Jim Meyering  <meyering@redhat.com>
22940
22941         syntax-check: detect unnecessary inclusion of openat.h
22942         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
22943
22944 2009-09-05  Bruno Haible  <bruno@clisp.org>
22945
22946         Support towlower, towupper.
22947         * doc/posix-functions/towlower.texi: Mention module wctype.
22948         * doc/posix-functions/towupper.texi: Likewise.
22949         * lib/wctype.in.h (towlower, towupper): New functions.
22950         * tests/test-wctype.c: Include stdio.h, stdlib.h.
22951         (ASSERT): New macro.
22952         (e): New variable.
22953         (main): Test also towlower, towupper. Test WEOF argument.
22954         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22955
22956 2009-09-05  Bruno Haible  <bruno@clisp.org>
22957
22958         Fix conversion behaviour when the input is invalid.
22959         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
22960         mark occurring in first pass of indirect conversion.
22961         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
22962         input.
22963         Found by clang's static analyzer.
22964
22965 2009-09-05  Bruno Haible  <bruno@clisp.org>
22966
22967         * tests/test-striconveh.c (main): Test indirect conversion on platforms
22968         where direct conversion is possible.
22969
22970 2009-09-04  Eric Blake  <ebb9@byu.net>
22971
22972         openat: fail with ENOENT on empty name
22973         * lib/openat-proc.c (openat_proc_name): Special-case the empty
22974         buffer.
22975
22976         link-follow: fix logic bug in prior patch
22977         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
22978         reversed sense of yes and no in prior patch.  Avoid confusing
22979         compilation failure with desired semantics.
22980
22981         link-follow: accomodate mingw and cross-compilation
22982         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
22983         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
22984         cross-compilation results to -1, to make linkat easier to
22985         implement when cross-compiling.  Trivially support mingw.
22986         * modules/link-follow (configure.ac): Call new name.
22987         * NEWS: Mention this.
22988
22989 2009-09-03  Eric Blake  <ebb9@byu.net>
22990
22991         faccessat: compile replacement
22992         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
22993         needed.
22994
22995         fts: fix compilation error
22996         * lib/fts.c (includes): Re-add "openat.h", for
22997         openat_needs_fchdir.
22998
22999         faccessat: new module
23000         * modules/faccessat: New file.
23001         * lib/faccessat.c: Likewise.
23002         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23004         * modules/unistd (Makefile.am): Use it.
23005         * lib/unistd.in.h (faccessat): Declare it.
23006         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
23007         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
23008         * MODULES.html.sh (File system functions): Mention it.
23009         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
23010         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23011
23012         euidaccess: prefer POSIX over non-standard implementation
23013         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
23014         * lib/euidaccess.c (euidaccess): Use it if available.
23015
23016         openat: make template easier to use
23017         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
23018         AT_FUNC_F2 to be undefined.
23019         (VALIDATE_FLAG): New macro; use it to reject bad flags.
23020         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
23021         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
23022         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
23023         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
23024         Likewise.
23025         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
23026         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
23027         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
23028         Likewise.
23029
23030         openat: declare in POSIX headers
23031         * NEWS: Mention this.
23032         * modules/openat (configure.ac): Declare witnesses.
23033         (Depends-on): Add fcntl-h, sys_stat, unistd.
23034         (Include): Mention correct headers.
23035         * modules/fcntl-h (Depends-on): Add link-warning.
23036         (Files): Add openat.m4.
23037         (Makefile.am): Substitute witnesses.
23038         * modules/sys_stat (Files, Makefile.am): Likewise.
23039         * modules/unistd (Files, Makefile.am): Likewise.
23040         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
23041         (gl_OPENAT_DEFAULTS): New macro.
23042         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
23043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
23044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
23045         (SYS_STAT_H): Remove unused variable.
23046         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
23047         * lib/fcntl--.h (includes): Remove unneeded header.
23048         * lib/openat-safer.c (includes): Likewise.
23049         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
23050         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
23051         appropriate headers.
23052         (__OPENAT_PREFIX): Delete.
23053         * lib/fcntl.in.h (openat): Provide declaration.
23054         (AT_FDCWD): Fix Solaris bug.
23055         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
23056         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
23057         * lib/fchmodat.c (includes):  Adjust to find declaration.
23058         * lib/fchownat.c (includes): Likewise.
23059         * lib/mkdirat.c (includes): Likewise.
23060         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
23061         still visible.
23062
23063 2009-09-02  Eric Blake  <ebb9@byu.net>
23064
23065         errno: use consistently
23066         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
23067         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
23068         * lib/canonicalize.c (ELOOP): Likewise.
23069         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
23070         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
23071         * lib/lchown.c (EOPNOTSUPP): Likewise.
23072         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
23073         * lib/savewd.c (ESTALE): Likewise.
23074         * lib/settime.c (ENOSYS): Likewise.
23075         * lib/utimens.c (ENOSYS): Likewise.
23076         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
23077         * lib/chdir-safer.c (ELOOP): Likewise.
23078         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
23079         * modules/c-stack (Depends-on): Add errno.
23080         * modules/canonicalize (Depends-on): Likewise.
23081         * modules/chdir-safer (Depends-on): Likewise.
23082         * modules/fdopendir (Depends-on): Likewise.
23083         * modules/inet_ntop (Depends-on): Likewise.
23084         * modules/inet_pton (Depends-on): Likewise.
23085         * modules/lchown (Depends-on): Likewise.
23086         * modules/openat (Depends-on): Likewise.
23087         * modules/savewd (Depends-on): Likewise.
23088         * modules/settime (Depends-on): Likewise.
23089         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
23090
23091         fts: avoid leaking fds
23092         * modules/fts (Depends-on): Add cloexec.
23093         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
23094         flag.
23095
23096         fts: make directory fds more robust
23097         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
23098         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
23099
23100         backupfile, chdir-long, fts, savedir: make safer
23101         * lib/backupfile.c (includes): Use "dirent--.h", since
23102         numbered_backup can write to stderr during readdir.
23103         * lib/savedir.c (includes): Likewise.
23104         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
23105         emulation can write to stderr on failure.
23106         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
23107         * lib/getcwd.c: Document why opendir_safer is unused.
23108         * lib/glob.c: Likewise.
23109         * lib/scandir.c: Likewise.
23110         * lib/openat-proc.c: Likewise, for open_safer.
23111         * modules/backupfile (Depends-on): Add dirent-safer.
23112         * modules/savedir (Depends-on): Likewise.
23113         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
23114         * modules/chdir-long (Depends-on): Add openat-safer.
23115
23116         openat-safer: new module
23117         * modules/openat-safer: New file.
23118         * lib/openat-safer.c: Likewise.
23119         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
23120         * lib/fcntl-safer.h (openat_safer): Declare.
23121         * lib/fcntl--.h (openat): Override.
23122         * MODULES.html.sh (File descriptor based I/O): Mention it.
23123         * lib/openat.h: Add double-inclusion guards.
23124         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23125         "fcntl--.h", so we can implement openat.
23126         * modules/openat-safer-tests: New test.
23127         * tests/test-openat-safer.c: New file.
23128
23129         dirent-safer: new module
23130         * modules/dirent-safer: New file.
23131         * lib/dirent--.h: Likewise.
23132         * lib/dirent-safer.h: Likewise.
23133         * lib/opendir-safer.c: Likewise.
23134         * m4/dirent-safer.m4: Likewise.
23135         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23136         * modules/dirent-safer-tests: New test.
23137         * tests/test-dirent-safer.c: New file.
23138         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
23139
23140         fdopendir: optimize on mingw
23141         * lib/unistd.in.h (_gl_directory_name): New prototype.
23142         * lib/fchdir.c (_gl_directory_name): Implement it.
23143         (fchdir): Use it to simplify implementation.
23144         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
23145         fchdir, when available, to avoid calling [f]chdir().
23146
23147         fdopendir: split into its own module
23148         * lib/openat.c (fdopendir): Move...
23149         * lib/fdopendir.c: ...into new file.
23150         * modules/fdopendir: New module.
23151         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
23152         * modules/openat (Depends-on): Add fdopendir.
23153         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
23154         fdopendir here.
23155         * modules/savedir (Depends-on): Only need fdopendir, not full
23156         openat.
23157         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
23158         * lib/openat.h (fdopendir): Drop prototype.
23159         * lib/dirent.in.h (fdopendir): Provide prototype.
23160         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
23161         * modules/dirent (Makefile.am): Substitute them.
23162         * MODULES.html.sh (File system functions): Mention it.
23163         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
23164         * modules/fdopendir-tests: New file.
23165         * tests/test-fdopendir.c: Likewise.
23166
23167         fchdir: use more consistent macro convention
23168         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
23169         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
23170         REPLACE_FCHDIR, rather than relying on config.h macros.
23171         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
23172         inside a single make-time REPLACE_FCHDIR block, rather than using
23173         the config.h FCHDIR_REPLACEMENT.
23174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
23175         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
23176         Manage fstat replacement.
23177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
23178         REPLACE_FCHDIR.
23179         * modules/sys_stat (Files): Add m4/unistd_h.m4.
23180         (Makefile.am): Substitute REPLACE_FCHDIR.
23181         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
23182         FCHDIR_REPLACEMENT.
23183         * lib/dup-safer.c (dup_safer): Likewise.
23184         * lib/dup2.c (rpl_dup2): Likewise.
23185         * lib/dup3.c (rpl_dup3): Likewise.
23186         * lib/open.c (rpl_open): Likewise.
23187
23188         fchdir: simplify error handling, and support dup3
23189         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
23190         stdbool, malloc-posix, realloc-posix.
23191         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
23192         (ensure_dirs_slot): Return false on allocation failure.
23193         (rpl_dup2): Delete.
23194         (_gl_register_dup): New function.
23195         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
23196         (_gl_register_fd): Close fd on allocation failure.
23197         * lib/fcntl.in.h (_gl_register_fd): Update signature.
23198         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
23199         prototype.
23200         (rpl_dup2_fchdir): Delete prototype.
23201         * lib/open.c (open): Update caller.
23202         * lib/dup2.c (dup2): Track fchdir metadata.
23203         * lib/dup3.c (dup3): Likewise.
23204         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
23205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
23206
23207 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23208
23209         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
23210         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
23211         don't pass arguments to AC_OUTPUT.
23212
23213 2009-09-02  Bruno Haible  <bruno@clisp.org>
23214
23215         * modules/mkdtemp (License): Relicense under LGPLv2+.
23216         Reported by Paolo Bonzini.
23217
23218 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23219
23220         Replace uses of obsolete autoconf macros in Jim's modules.
23221         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
23222         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
23223         can evoke a warning from autoconf when run with -Wobsolete
23224         enabled.  They were declared obsolete for good reasons (see
23225         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
23226         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
23227         should not continue using the deprecated macros.
23228         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23229         obsolete Autoconf macros with modern counterparts.
23230         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23231         * m4/dos.m4 (gl_AC_DOS): Likewise.
23232         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
23233         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23234         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
23235         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
23236         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
23237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23238         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
23239         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
23240         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23241         Likewise.
23242         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23243         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23244         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
23245         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
23246         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23247         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23248
23249 2009-09-01  Eric Blake  <ebb9@byu.net>
23250
23251         fchdir: fix off-by-one bug in previous patch
23252         * lib/fchdir.c (rpl_fstat): Use correct bounds.
23253         (_gl_unregister_fd): Delete useless if.
23254
23255 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
23256
23257         maint.mk: sort the list of syntax-check rules
23258         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
23259         easier to get a sense of progress when the rules are run sequentially
23260         and take a long time.
23261
23262 2009-09-01  Simon Josefsson  <simon@josefsson.org>
23263
23264         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
23265         * modules/netinet_in: Likewise.
23266         * modules/sys_file: Likewise.
23267         * modules/sys_ioctl: Likewise.
23268         * modules/sys_select: Likewise.
23269         * modules/sys_socket: Likewise.
23270         * modules/sys_stat: Likewise.
23271         * modules/sys_time: Likewise.
23272         * modules/sys_times: Likewise.
23273         * modules/sys_utsname: Likewise.
23274         * modules/sys_wait: Likewise.
23275
23276 2009-09-01  Jim Meyering  <meyering@redhat.com>
23277
23278         fts: help ensure that return values are not ignored
23279         * lib/fts_.h (__GNUC_PREREQ): Define.
23280         (__attribute_warn_unused_result__): Define.
23281         (fts_children, fts_close, fts_open, fts_read): Declare with
23282         __attribute_warn_unused_result__.
23283
23284         fts: fts_close now fails also when closing a dir file descriptor fails
23285         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
23286         and propagate to caller, along with errno.
23287
23288         announce-gen: correct formatting in --help output
23289         * build-aux/announce-gen (usage): Move the one-line description in
23290         --help output "up", to where it belongs, just after Usage:.
23291
23292 2009-08-31  Eric Blake  <ebb9@byu.net>
23293
23294         fchdir: port to mingw
23295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
23296         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
23297         opened, then use a substitute.
23298         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
23299         replacement.
23300         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
23301         (_gl_register_fd): No need to check stat if open already filters
23302         all directories.
23303         (fchdir): Fix error condition to match POSIX.
23304         * modules/fchdir (Depends-on): Add sys_stat.
23305         * doc/posix-functions/open.texi (open): Document the limitation.
23306         * modules/fchdir-tests: New file.
23307         * tests/test-fchdir.c: Likewise.
23308
23309         canonicalize: allow cross-testing from cygwin to mingw
23310         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
23311         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
23312         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
23313         Likewise.
23314         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
23315         target does not support symlinks.
23316         * tests/test-canonicalize-lgpl.sh: Likewise.
23317
23318         chown: avoid compilation warning on mingw
23319         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
23320         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
23321         mingw.
23322         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23323         * modules/chown (Depends-on): Add errno.
23324
23325 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23326
23327         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
23328         command.
23329
23330 2009-08-31  Jim Meyering  <meyering@redhat.com>
23331
23332         canonicalize: remove useless initialization
23333         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23334         initialization of local, "end".
23335
23336 2009-08-30  Bruno Haible  <bruno@clisp.org>
23337
23338         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23339         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23340         ENOSYS.
23341
23342 2009-08-30  Bruno Haible  <bruno@clisp.org>
23343
23344         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23345         /usr/xpg4/bin/tr when it exists.
23346         * tests/test-pipe-filter-gi1.sh: Likewise.
23347
23348 2009-08-30  Bruno Haible  <bruno@clisp.org>
23349
23350         Work around deficient /usr/bin/id program on Solaris.
23351         * tests/test-file-has-acl.sh (ID): New variable.
23352         * tests/test-set-mode-acl.sh (ID): Likewise.
23353         * tests/test-copy-acl.sh (ID): Likewise.
23354         * tests/test-copy-file.sh (ID): Likewise.
23355
23356 2009-08-30  Bruno Haible  <bruno@clisp.org>
23357
23358         New module 'xstriconveh'.
23359         * lib/xstriconveh.h: New file.
23360         * lib/xstriconveh.c: New file.
23361         * modules/xstriconveh: New file.
23362
23363 2009-08-30  Bruno Haible  <bruno@clisp.org>
23364
23365         Make it easier to use mem_cd_iconveh.
23366         * lib/striconveh.h (iconveh_t): New type.
23367         (iconveh_open, iconveh_close): New declarations.
23368         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23369         with a single 'const iconveh_t *' argument.
23370         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
23371         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23372         with a single 'const iconveh_t *' argument.
23373         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
23374         * tests/test-striconveh.c (main): Update.
23375         * NEWS: Mention the change.
23376
23377 2009-08-30  Bruno Haible  <bruno@clisp.org>
23378
23379         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
23380         problem.
23381
23382 2009-08-30  Bruno Haible  <bruno@clisp.org>
23383
23384         Work around iconv_open problem on Solaris.
23385         * lib/iconv_open-solaris.gperf: New file.
23386         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
23387         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
23388         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
23389         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
23390         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
23391         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
23392
23393 2009-08-29  Jim Meyering  <meyering@redhat.com>
23394
23395         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
23396         * top/maint.mk (cvs-check): Remove target; it was just an alias
23397         to the better-named vc-diff-check.
23398         (maintainer-distcheck): Remove rule.  It was used only from
23399         the (alpha/beta/major) target, and all of its commands but one
23400         were coreutils-specific.
23401         (vc-dist): Remove rule.
23402         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
23403         Run vc-diff-check, not vc-dist.
23404         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
23405
23406 2009-08-27  Bruno Haible  <bruno@clisp.org>
23407
23408         * tests/test-bitrotate.c (main): Remove test that uses a shift count
23409         of 0.
23410
23411 2009-08-27  Bruno Haible  <bruno@clisp.org>
23412
23413         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
23414         compilers.
23415         * doc/func.texi: Document the SunPRO C bug.
23416
23417 2009-08-27  Bruno Haible  <bruno@clisp.org>
23418
23419         Fix link error on Solaris.
23420         * tests/test-parse-duration.c (xstrdup): Remove function.
23421
23422 2009-08-26  Pádraig Brady  <P@draigbrady.com>
23423
23424         ignore-value: handle pointer types, too
23425         * lib/ignore-value.h (__attribute__): Remove definition.
23426         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
23427         of a more concise and more-often effective "(void) i" statement.
23428         (ignore_ptr): New function to suppress warnings from functions that
23429         return pointers, and to make it explicit that one function doesn't
23430         handle all cases.
23431
23432 2009-08-25  Bruno Haible  <bruno@clisp.org>
23433
23434         dup2: work around a Linux bug.
23435         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
23436         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
23437         * doc/posix-functions/dup2.texi: Mention the Linux bug.
23438         Reported by Simon Josefsson.
23439
23440 2009-08-25  Jim Meyering  <meyering@redhat.com>
23441
23442         libguestfs uses gnulib
23443         * users.txt: Add libguestfs.
23444
23445 2009-08-24  Eric Blake  <ebb9@byu.net>
23446
23447         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
23448         * lib/pipe2.c (includes): Add binary-io.h.
23449         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
23450
23451 2009-08-24  Bruno Haible  <bruno@clisp.org>
23452
23453         Tolerate declared but missing accept4 syscall.
23454         * lib/accept4.c (accept4): Invoke original accept4 function first, if
23455         available.
23456         * lib/sys_socket.in.h (accept4): If the function is already present,
23457         override it.
23458         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
23459         * modules/accept4 (Makefile.am): Compile accept4.c always.
23460         Reported by Paolo Bonzini and Eric Blake.
23461
23462 2009-08-23  Bruno Haible  <bruno@clisp.org>
23463
23464         New module 'accept4'.
23465         * lib/sys_socket.in.h (accept4): New declaration.
23466         * lib/accept4.c: New file.
23467         * m4/accept4.m4: New file.
23468         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23469         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23470         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23471         HAVE_ACCEPT4.
23472         * modules/accept4: New file.
23473         * doc/glibc-functions/accept4.texi: Mention the new module.
23474
23475 2009-08-24  Jim Meyering  <meyering@redhat.com>
23476
23477         progname: also set global program_invocation_name, when possible
23478         Before this change, a libtool-enabled program that calls glibc's
23479         error function would report the program name as
23480         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23481         * modules/progname (configure.ac): Check for a declaration of
23482         program_invocation_name.
23483         * lib/progname.c:  Include <errno.h>.
23484         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23485         Set program_invocation_name.
23486
23487 2009-08-23  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/dup3.c: Include <string.h>.
23490
23491 2009-08-23  Bruno Haible  <bruno@clisp.org>
23492
23493         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23494         * lib/pipe2.c (pipe2): Likewise.
23495         Suggested by Eric Blake.
23496
23497 2009-08-23  Bruno Haible  <bruno@clisp.org>
23498
23499         Tolerate declared but missing dup3 syscall.
23500         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23501         * lib/unistd.in.h (dup3): If the function is already present,
23502         override it.
23503         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23504         * modules/dup3 (Makefile.am): Compile dup3.c always.
23505         Reported by Paolo Bonzini.
23506
23507 2009-08-23  Bruno Haible  <bruno@clisp.org>
23508
23509         Tolerate declared but missing pipe2 syscall.
23510         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
23511         available.
23512         * lib/unistd.in.h (pipe2): If the function is already present,
23513         override it.
23514         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
23515         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
23516         Reported by Paolo Bonzini.
23517
23518 2009-08-23  Bruno Haible  <bruno@clisp.org>
23519
23520         * lib/pipe2.c (pipe2): Move #ifs inside function.
23521
23522 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23523
23524         quotearg: document limitations of quote_these_too
23525         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
23526         those limitations are created.
23527         * lib/quotearg.h (set_char_quoting): Document that digits and
23528         letters that are special after backslash are not permitted.
23529         (quotearg_char): Cross-reference set_char_quoting documentation.
23530
23531 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
23532
23533         quotearg: implement custom_quoting_style
23534         * lib/quotearg.c: (struct quoting_options): Add left_quote and
23535         right_quote fields.
23536         (set_custom_quoting): New public function.
23537         (quotearg_buffer_restyled): Add left_quote and right_quote
23538         arguments, handle them very much like locale quoting, and update
23539         all uses.
23540         (quotearg_n_custom): New public function.
23541         (quotearg_n_custom_mem): New public function.
23542         (quotearg_custom): New public function.
23543         (quotearg_custom_mem): New public function.
23544         * lib/quotearg.h: Prototype and document new public functions.
23545         (enum quoting_style): For escape_quoting_style and
23546         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
23547         ignored even though they're otherwise like c_quoting_style.
23548         Add custom_quoting_style member and document with comparison to
23549         clocale_quoting_style.
23550         * tests/test-quotearg.c (custom_quotes): New array.
23551         (custom_results): New array.
23552         (main): Extend to test custom quoting.
23553
23554 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23555
23556         quotearg: fix right quote escaping when it's in quote_these_too
23557         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
23558         quote, be sure to prepend only one backslash.
23559         * tests/test-quotearg.c (use_quote_double_quotes): New function.
23560         (main): Test it.
23561
23562 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23563
23564         quotearg-tests: test escaping of embedded locale quotes
23565         * tests/test-quotearg.c (struct result_strings): Add member for
23566         new input.
23567         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
23568         (inputs): Add new input.
23569         (results_g): Add expected results.
23570         (flag_results): Likewise.
23571         (locale_results): Likewise.
23572         (compare_strings): Check those.
23573
23574 2009-08-23  Bruno Haible  <bruno@clisp.org>
23575
23576         Tests for module 'dup3'.
23577         * modules/dup3-tests: New file.
23578         * tests/test-dup3.c: New file.
23579
23580         New module 'dup3'.
23581         * lib/unistd.in.h (dup3): New declaration.
23582         * lib/dup3.c: New file.
23583         * m4/dup3.m4: New file.
23584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
23585         HAVE_DUP3.
23586         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
23587         * modules/dup3: New file.
23588         * doc/glibc-functions/dup3.texi: Mention the new module.
23589
23590 2009-08-23  Bruno Haible  <bruno@clisp.org>
23591
23592         Tweak the dup2 test.
23593         * tests/test-dup2.c (main): Create the test file empty. Verify that an
23594         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
23595         the test file is still empty. Fix argument order of lseek.
23596
23597 2009-08-23  Bruno Haible  <bruno@clisp.org>
23598
23599         Avoid test link errors when the modules getopt-gnu, gettext are used.
23600         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
23601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23602
23603 2009-08-23  Bruno Haible  <bruno@clisp.org>
23604
23605         Fix getdtablesize() on mingw.
23606         * lib/getdtablesize.c (getdtablesize): Implement differently.
23607         * lib/unistd.in.h (getdtablesize): Improve comment.
23608
23609 2009-08-23  Bruno Haible  <bruno@clisp.org>
23610
23611         New module 'mkostemp'.
23612         Based on Ulrich Drepper's 2007-08-10 change in glibc.
23613         * lib/stdlib.in.h (mksotemp): New declaration.
23614         * lib/mkostemp.c: New file, from glibc with modifications.
23615         * lib/tempname.h (GT_FILE): Remove outdated comment.
23616         (gen_tempname): Add flags argument.
23617         * lib/tempname.c (__GT_BIGFILE): Remove macro.
23618         (__GT_FILE): Map to 1.
23619         (small_open, large_open): Remove macros.
23620         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
23621         * lib/mkstemp.c (mkstemp): Update.
23622         * lib/mkdtemp.c (mkdtemp): Likewise.
23623         * m4/mkostemp.m4: New file.
23624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
23625         HAVE_MKOSTEMP.
23626         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
23627         HAVE_MKOSTEMP.
23628         * modules/mkostemp: New file, based on modules/mkstemp.
23629         * doc/glibc-functions/mkostemp.texi: Mention the new module.
23630         * NEWS: Mention the change.
23631
23632 2009-08-23  Bruno Haible  <bruno@clisp.org>
23633
23634         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
23635         Reported by Eric Blake.
23636
23637 2009-08-23  Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
23640         Reported by Eric Blake.
23641
23642 2009-08-23  Bruno Haible  <bruno@clisp.org>
23643
23644         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
23645         * modules/pipe2 (Depends-on): Likewise.
23646
23647 2009-08-23  Eric Blake  <ebb9@byu.net>
23648
23649         fcntl-h: add O_TTY_INIT support
23650         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
23651         * tests/test-fcntl-h.c (o): Test it.
23652         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23653
23654         fcntl-h: rename from fcntl, in preparation for fcntl(2)
23655         * modules/fcntl: Move <fcntl.h> header replacement...
23656         * modules/fcntl-h: ...to new name, so as not to collide with
23657         like-named function.
23658         * tests/test-fcntl.c: Rename...
23659         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
23660         * modules/fcntl-tests: Rename...
23661         * modules/fcntl-h-tests: ...to this.  Update test file name.
23662         * modules/chdir-long (Depends-on): Update clients.
23663         * modules/chdir-safer (Depends-on): Likewise.
23664         * modules/fcntl-safer (Depends-on): Likewise.
23665         * modules/fts (Depends-on): Likewise.
23666         * modules/mkancesdirs (Depends-on): Likewise.
23667         * modules/mkdir-p (Depends-on): Likewise.
23668         * modules/open (Depends-on): Likewise.
23669         * modules/savewd (Depends-on): Likewise.
23670         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
23671         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23672
23673 2009-08-22  Bruno Haible  <bruno@clisp.org>
23674
23675         * modules/binary-io (License): Relicense under LGPL.
23676         * modules/pipe2 (License): Likewise.
23677
23678 2009-08-22  Bruno Haible  <bruno@clisp.org>
23679
23680         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
23681         return value.
23682         * lib/pipe-filter-gi.c (filter_init): Likewise.
23683         Reported by Eric Blake.
23684
23685 2009-08-22  Bruno Haible  <bruno@clisp.org>
23686
23687         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
23688         * modules/pipe (Depends-on): Add pipe2.
23689
23690 2009-08-22  Bruno Haible  <bruno@clisp.org>
23691
23692         Tests for module 'pipe2'.
23693         * modules/pipe2-tests: New file.
23694         * tests/test-pipe2.c: New file.
23695
23696         New module 'pipe2'.
23697         * lib/unistd.in.h (pipe2): New declaration.
23698         * lib/pipe2.c: New file.
23699         * m4/pipe2.m4: New file.
23700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
23701         HAVE_PIPE2.
23702         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
23703         * modules/pipe2: New file.
23704         * doc/glibc-functions/pipe2.texi: Mention the new module.
23705
23706 2009-08-22  Bruno Haible  <bruno@clisp.org>
23707
23708         Reference some new glibc functions.
23709         * doc/glibc-functions/accept4.texi: New file.
23710         * doc/glibc-functions/dup3.texi: New file.
23711         * doc/glibc-functions/mkostemp.texi: New file.
23712         * doc/glibc-functions/pipe2.texi: New file.
23713         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
23714         (Glibc sys/socket.h): Refer to accept4.
23715         (Glibc unistd.h): Refer to dup3, pipe2.
23716         Reported by Eric Blake.
23717
23718 2009-08-22  Jim Meyering  <meyering@redhat.com>
23719             Bruno Haible  <bruno@clisp.org>
23720
23721         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
23722         This makes it so packages using automake-1.11's silent-rules option
23723         can print e.g., a single "GEN    configmake.h" line, rather than
23724         the 30+ statements that perform the job.  If you want to see the
23725         actual commands, you can still run "make V=1".
23726         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
23727         so that make output is abbreviated when those variables are defined
23728         appropriately.
23729         * modules/argz: Likewise.
23730         * modules/arpa_inet: Likewise.
23731         * modules/byteswap: Likewise.
23732         * modules/configmake: Likewise.
23733         * modules/dirent: Likewise.
23734         * modules/errno: Likewise.
23735         * modules/fcntl: Likewise.
23736         * modules/float: Likewise.
23737         * modules/fnmatch: Likewise.
23738         * modules/getopt-posix: Likewise.
23739         * modules/glob: Likewise.
23740         * modules/iconv_open: Likewise.
23741         * modules/inttypes: Likewise.
23742         * modules/localcharset: Likewise.
23743         * modules/locale: Likewise.
23744         * modules/math: Likewise.
23745         * modules/netdb: Likewise.
23746         * modules/netinet_in: Likewise.
23747         * modules/poll: Likewise.
23748         * modules/posix_spawnp-tests: Likewise.
23749         * modules/sched: Likewise.
23750         * modules/search: Likewise.
23751         * modules/selinux-h: Likewise.
23752         * modules/signal: Likewise.
23753         * modules/spawn: Likewise.
23754         * modules/stdarg: Likewise.
23755         * modules/stdbool: Likewise.
23756         * modules/stddef: Likewise.
23757         * modules/stdint: Likewise.
23758         * modules/stdio: Likewise.
23759         * modules/stdlib: Likewise.
23760         * modules/string: Likewise.
23761         * modules/strings: Likewise.
23762         * modules/sys_file: Likewise.
23763         * modules/sys_ioctl: Likewise.
23764         * modules/sys_select: Likewise.
23765         * modules/sys_socket: Likewise.
23766         * modules/sys_stat: Likewise.
23767         * modules/sys_time: Likewise.
23768         * modules/sys_times: Likewise.
23769         * modules/sys_utsname: Likewise.
23770         * modules/sys_wait: Likewise.
23771         * modules/sysexits: Likewise.
23772         * modules/time: Likewise.
23773         * modules/unistd: Likewise.
23774         * modules/wchar: Likewise.
23775         * modules/wctype: Likewise.
23776
23777 2009-08-22  Jim Meyering  <meyering@redhat.com>
23778
23779         announce-gen: detect write failure
23780         * build-aux/announce-gen: Add Coda at end.
23781         Remove equivalent-but-more-verbose block at top.
23782
23783 2009-08-19  Akim Demaille  <demaille@gostai.com>
23784
23785         bootstrap: --help to stdout.
23786         * bootstrap (usage): Don't send --help to stderr.
23787         Use a here doc instead of a long string.
23788
23789 2009-08-21  Eric Blake  <ebb9@byu.net>
23790
23791         test-popen-safer: split from test-popen
23792         * tests/test-popen.c (main): Move...
23793         * tests/test-popen.h: ...into new file.
23794         * tests/test-popen-safer2.c: New file.
23795         * modules/popen-tests (Files): Add test-popen.h.
23796         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
23797         Suggested by Bruno Haible.
23798
23799         test-fcntl-safer: split from test-open
23800         * tests/test-open.c (main): Move...
23801         * tests/test-open.h: ...into new file.
23802         * tests/test-fcntl-safer.c: New file.
23803         * modules/open-tests (Files): Add test-open.h.
23804         * modules/fcntl-safer-tests: New file.
23805         Suggested by Bruno Haible.
23806
23807         test-fopen-safer: split from test-fopen
23808         * tests/test-fopen.c (main): Move...
23809         * tests/test-fopen.h: ...into new file.
23810         * tests/test-fopen-safer.c: New file.
23811         * modules/fopen-tests (Files): Add test-fopen.h.
23812         * modules/fopen-safer-tests: New file.
23813         Suggested by Bruno Haible.
23814
23815 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23816
23817         popen-safer: test O_CLOEXEC at run-time.
23818         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
23819
23820 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23821
23822         fcntl: move more flags to the header
23823         * lib/cloexec.c: Do not define FD_CLOEXEC here.
23824         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
23825         * lib/fcntl.in.h: Do both things here.
23826
23827 2009-08-21  Jim Meyering  <meyering@redhat.com>
23828
23829         consistently remove $@-t before redirecting to it
23830         * modules/argz: Remove $@-t and $@ before redirecting to the former.
23831         * modules/alloca-opt: Likewise.
23832         * modules/byteswap: Likewise.
23833         * modules/fnmatch: Likewise.
23834         * modules/getopt-posix: Likewise.
23835         * modules/glob: Likewise.
23836         * modules/poll: Likewise.
23837         * modules/posix_spawnp-tests: Likewise.
23838         * modules/sys_socket: Likewise.
23839         * modules/sysexits: Likewise.
23840
23841 2009-08-21  Eric Blake  <ebb9@byu.net>
23842
23843         popen: simplify access to original popen
23844         * lib/popen.c (rpl_popen): No need to worry about popen being a
23845         macro.
23846         Reported by Bruno Haible.
23847
23848 2009-08-20  Eric Blake  <ebb9@byu.net>
23849
23850         build: avoid some compiler warnings
23851         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
23852         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
23853         type.
23854         (new_exclude_segment, excluded_file_pattern_p)
23855         (excluded_file_name_p): Reduce scope.
23856         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
23857         old-style declaration.
23858
23859 2009-08-20  Simon Josefsson  <simon@josefsson.org>
23860
23861         * tests/test-exclude1.sh: Handle Windows EOL.
23862         * tests/test-exclude2.sh: Likewise.
23863         * tests/test-exclude3.sh: Likewise.
23864         * tests/test-exclude4.sh: Likewise.
23865         * tests/test-exclude5.sh: Likewise.
23866         * tests/test-exclude6.sh: Likewise.
23867         * tests/test-exclude7.sh: Likewise.
23868
23869 2009-08-19  Akim Demaille  <demaille@gostai.com>
23870
23871         bootstrap: find sha1sum when named gsha1sum.
23872         * bootstrap (find_tool): New.
23873         ($SHA1SUM): New.
23874         Use it.
23875
23876 2009-08-20  Jim Meyering  <meyering@redhat.com>
23877
23878         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
23879         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
23880         expression that converts "." in a file name to "\." in the resulting
23881         regexp.  Start with a dummy statement, so that prior shell variable
23882         definitions are expanded portably.  Reported by Simon Josefsson.
23883
23884 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
23885
23886         Fix polling for writeability of a screen buffer.
23887         * lib/poll.c: Distinguish input and screen buffers for the
23888         Win32 implementation.
23889         * lib/select.c: Likewise.
23890
23891 2009-08-19  Eric Blake  <ebb9@byu.net>
23892
23893         popen-safer: prevent popen from clobbering std descriptors
23894         * modules/popen-safer: New file.
23895         * lib/popen-safer.c: Likewise.
23896         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
23897         * lib/stdio--.h (popen): Provide override.
23898         * lib/stdio-safer.h (popen_safer): Provide declaration.
23899         * tests/test-popen.c (includes): Partially test this.
23900         * modules/popen-safer-tests: New file, for more tests.
23901         * tests/test-popen-safer.c: Likewise.
23902         * MODULES.html.sh (file stream based Input/Output): Mention it.
23903
23904         tests: test some of the *-safer modules
23905         * modules/fopen-safer (Depends-on): Add fopen.
23906         * modules/fcntl-safer (Depends-on): Add fcntl.
23907         * modules/stdlib-safer (Depends-on): Add stdlib.
23908         (configure.ac): Set indicator.
23909         * modules/unistd-safer (configure.ac): Likewise.
23910         * modules/tmpfile-safer (configure.ac): Likewise.
23911         (Depends-on): Add tmpfile.
23912         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
23913         active.
23914         * tests/test-fopen.c (includes): Test safer versions when they are
23915         in use.
23916         * tests/test-open.c (includes): Likewise.
23917
23918         popen: fix cygwin 1.5 bug when stdin closed
23919         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
23920         * modules/popen: New file.
23921         * modules/popen-tests: Likewise.
23922         * tests/test-popen.c: Likewise.
23923         * m4/popen.m4: Likewise.
23924         * lib/popen.c: Likewise.
23925         * lib/stdio.in.h (popen): New declaration.
23926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
23927         * modules/stdio (Makefile.am): Likewise.
23928         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
23929
23930 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
23931
23932         maint.mk: give full control over update-copyright exclusions
23933         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
23934         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
23935         (update-copyright): Don't force inclusion of top-level
23936         ChangeLog.  Don't force exclusion of all COPYING files, but make
23937         them the default exclusion instead.
23938
23939 2009-08-16  Bruno Haible  <bruno@clisp.org>
23940
23941         Fix test failures on Solaris 10.
23942         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
23943         tests when Solaris iconv() is used.
23944         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
23945         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
23946         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
23947         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
23948         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
23949
23950 2009-08-16  Bruno Haible  <bruno@clisp.org>
23951
23952         Fix test failures on Solaris 10.
23953         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
23954         'tr' program and pass it as first argument.
23955         * tests/test-pipe-filter-gi1.sh: Likewise.
23956         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
23957         program as first argument.
23958         * tests/test-pipe-filter-gi1.c (main): Likewise.
23959
23960 2009-08-16  Eric Blake  <ebb9@byu.net>
23961
23962         fpurge: fix previous commits
23963         * modules/fpurge (Makefile.am): Make replacement conditional,
23964         partially reverting 2007-04-29 change; missed in previous
23965         attempt.
23966         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
23967         is missing.
23968
23969 2009-08-16  Bruno Haible  <bruno@clisp.org>
23970
23971         Clarify fpurge's effect on the file position.
23972         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
23973         * tests/test-fpurge.c (main): Make a second pass for checking the file
23974         position.
23975
23976 2009-08-16  Bruno Haible  <bruno@clisp.org>
23977
23978         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
23979         declaration of fpurge is missing.
23980         * tests/test-fpurge.c (main): Check that the file has not more contents
23981         than expected. Close the file before removing it.
23982
23983 2009-08-15  Eric Blake  <ebb9@byu.net>
23984
23985         fpurge: don't wrap working cygwin implementation
23986         * lib/fpurge.c (fpurge): Fix comment typo.
23987         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
23988         1.7 to avoid replacement.
23989         * tests/test-fpurge.c (main): Enhance test.
23990
23991 2009-08-15  Eric Blake  <ebb9@byu.net>
23992         and Jim Meyering  <meyering@redhat.com>
23993
23994         test-update-copyright: skip if perl is insufficient
23995         * tests/test-update-copyright.sh: Failure to run maintainer tool
23996         should not cause testsuite failure on cygwin 1.5.
23997
23998 2009-08-14  Eric Blake  <ebb9@byu.net>
23999
24000         doc: mention more functions added in cygwin 1.7.0
24001         * doc/posix-headers/limits.texi (limits.h): Update for recent
24002         cygwin additions.
24003         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
24004         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
24005         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
24006         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
24007         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
24008
24009 2009-08-14  Eric Blake  <ebb9@byu.net>
24010
24011         maint.mk: simplify update-copyright rule
24012         * top/maint.mk (update-copyright-local): Delete, and document how
24013         to do it in cfg.mk instead.
24014         (update-copyright-exclude-regexp): Delete, and document how to do
24015         it in .x-update-copyright instead.
24016         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
24017         exclude ChangeLog.
24018
24019 2009-08-14  Bruno Haible  <bruno@clisp.org>
24020
24021         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
24022
24023 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24024
24025         maint.mk: support update-copyright-env
24026         * top/maint.mk (update-copyright-env): Define place-holder.
24027         (update-copyright): Expand $(update-copyright-env) before
24028         invoking update-copyright.
24029
24030 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24031
24032         update-copyright: implement forced reformatting
24033         * build-aux/update-copyright: Implement and document
24034         UPDATE_COPYRIGHT_FORCE.
24035         * tests/test-update-copyright.sh: Test it.
24036
24037 2009-08-14  Eric Blake  <ebb9@byu.net>
24038         and Bruno Haible  <bruno@clisp.org>
24039
24040         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
24041         * tests/test-locale.c: Revert previous patch related to NULL.
24042         * tests/test-stdio.c: Likewise.
24043         * tests/test-stdlib.c: Likewise.
24044         * tests/test-string.c: Likewise.
24045         * tests/test-unistd.c: Likewise.
24046         * modules/time-tests (Depends-on): Add verify.
24047         * modules/wchar-tests (Depends-on): Likewise.
24048         * tests/test-time.c: Test for NULL compliance.
24049         * tests/test-wchar.c: Likewise.
24050         * modules/locale (Depends-on): Add stddef.
24051         * modules/stdio (Depends-on): Likewise.
24052         * modules/stdlib (Depends-on): Likewise.
24053         * modules/string (Depends-on): Likewise.
24054         * modules/time (Depends-on): Likewise.
24055         * modules/unistd (Depends-on): Likewise.
24056         * modules/wchar (Depends-on): Likewise.
24057         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
24058         * lib/stdlib.in.h (includes): Likewise.
24059         * lib/string.in.h (includes): Likewise.
24060         * lib/time.in.h (includes): Likewise.
24061         * lib/unistd.in.h (includes): Likewise.
24062         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
24063         replaced.
24064         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24065         * m4/stddef_h.m4: New file.
24066         * modules/stddef: Likewise.
24067         * lib/stddef.in.h: Likewise.
24068         * modules/stddef-tests: Likewise.
24069         * tests/test-stddef.c: Likewise.
24070         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
24071         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
24072         * doc/posix-headers/locale.texi (locale.h): Likewise.
24073         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
24074         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24075         * doc/posix-headers/string.texi (string.h): Likewise.
24076         * doc/posix-headers/time.texi (time.h): Likewise.
24077         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
24078         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
24079
24080 2009-08-14  Eric Blake  <ebb9@byu.net>
24081
24082         doc: improve git diff of texinfo files
24083         * .gitattributes: Add rule for *.texi files, with hint on how to
24084         use it.
24085         Copied from m4, and based on a report by Bruno Haible.
24086
24087 2009-08-14  Bruno Haible  <bruno@clisp.org>
24088
24089         Disable multithread support by default on Cygwin 1.5.x for real.
24090         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
24091
24092 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24093
24094         update-copyright: much ado about intervals
24095         * build-aux/update-copyright: Implement and document
24096         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
24097         of copyright year intervals.
24098         Also, document UPDATE_COPYRIGHT_YEAR.
24099         * tests/test-update-copyright.sh: Test it.
24100
24101         update-copyright: convert 2-digit to 4-digit years
24102         * build-aux/update-copyright: Implement and document.
24103         * tests/test-update-copyright.sh: Update.
24104
24105 2009-08-14  Jim Meyering  <meyering@redhat.com>
24106
24107         test-exclude: avoid coreutils "make check" failure
24108         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
24109         just as in test-argmatch.c.
24110
24111 2009-08-13  Eric Blake  <ebb9@byu.net>
24112
24113         test-dup2: fix bad assumption
24114         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
24115         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
24116
24117         test-version-etc: fix CRLF portability issue
24118         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
24119         recognize \r.
24120         * tests/test-argp-version-etc-1.sh: Likewise.
24121
24122         getopt: update client modules
24123         * modules/argp (Depends-on): Use getopt-gnu.
24124         * modules/git-merge-changelog (Depends-on): Likewise.
24125         * modules/long-options (Depends-on): Likewise.
24126         * modules/xstrtol (Depends-on): Likewise.
24127
24128 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24129
24130         * tests/test-version-etc.sh: Don't fail on different
24131         project/version.  Don't fail on CRLF differences.  Rewrite to use
24132         multiple -e instead of multiple sed forks, suggested by Eric Blake
24133         <ebb9@byu.net>.
24134         * tests/test-argp-version-etc-1.sh: Likewise.
24135
24136 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24137
24138         * tests/test-version-etc.sh: Don't fail on different
24139         project/version.
24140
24141 2009-08-12  Bruno Haible  <bruno@clisp.org>
24142
24143         Tests for modules 'getopt-posix', 'getopt-gnu'.
24144         * modules/getopt-posix-tests: New file.
24145         * tests/test-getopt.c: New file.
24146         * tests/test-getopt.h: New file.
24147         * tests/test-getopt_long.h: New file.
24148
24149         New modules 'getopt-posix', 'getopt-gnu'.
24150         * modules/getopt-gnu: New file, renamed from modules/getopt.
24151         * modules/getopt-posix: New file.
24152         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
24153         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
24154         (gl_GETOPT): Remove macro.
24155         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
24156         Disable the test against BSD systems that declare optreset. Test
24157         against mingw bug. Test against lack of support of optional arguments
24158         on many platforms.
24159         * doc/glibc-headers/getopt.texi: Update module name and list of
24160         relevant platforms.
24161         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
24162         'getopt-gnu' and more portability problems.
24163         * NEWS: Mention the changes.
24164
24165 2009-08-12  Bruno Haible  <bruno@clisp.org>
24166
24167         Ensure that optarg etc. get declared by <unistd.h>.
24168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
24169         AC_USE_SYSTEM_EXTENSIONS.
24170         * modules/getopt (Depends-on): Add 'extensions'.
24171
24172 2009-08-12  Bruno Haible  <bruno@clisp.org>
24173
24174         Avoid test link errors.
24175         * modules/pipe-filter-ii-tests (Makefile.am): Define
24176         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
24177         * modules/pipe-filter-gi-tests (Makefile.am): Define
24178         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
24179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24180
24181 2009-08-12  Bruno Haible  <bruno@clisp.org>
24182
24183         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
24184         gl_GETOPT_SUBSTITUTE before.
24185         (gl_GETOPT): Use it.
24186         * m4/argp.m4 (gl_ARGP): Update.
24187         Reported by Sergey Poznyakoff.
24188
24189         * m4/getopt.m4: Reorder macros.
24190         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
24191         (gl_GETOPT_SUBSTITUTE): Remove macro.
24192
24193 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24194
24195         Minor improvement in gitlog-to-changelog
24196
24197         * build-aux/gitlog-to-changelog: New option `--format' makes
24198         output format string configurable.
24199
24200 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24201
24202         Optimize exclude: use hash tables for non-wildcard patterns.
24203
24204         * lib/exclude.c: Include hash.h and mbuiter.h
24205         (struct exclude_pattern, exclude_segment): New data types.
24206         (struct exclude): Rewrite.
24207         (fnmatch_pattern_has_wildcards): New function.
24208         (new_exclude_segment, free_exclude_segment): New functions.
24209         (excluded_file_pattern_p, excluded_file_name_p): New functions.
24210         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
24211         * lib/exclude.h (is_fnmatch_pattern): New prototype.
24212         * modules/exclude: Depend on hash and mbuiter.
24213
24214         * modules/exclude-tests: New file.
24215         * tests/test-exclude.c: New file.
24216         * tests/test-exclude1.sh: New file.
24217         * tests/test-exclude2.sh: New file.
24218         * tests/test-exclude3.sh: New file.
24219         * tests/test-exclude4.sh: New file.
24220         * tests/test-exclude5.sh: New file.
24221         * tests/test-exclude6.sh: New file.
24222         * tests/test-exclude7.sh: New file.
24223
24224 2009-08-12  Bruno Haible  <bruno@clisp.org>
24225
24226         Ensure that getopt() gets declared by <unistd.h>.
24227         * lib/unistd.in.h: Conditionally include getopt.h.
24228         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
24229         Set GNULIB_UNISTD_H_GETOPT.
24230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24231         GNULIB_UNISTD_H_GETOPT.
24232         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
24233
24234 2009-08-12  Bruno Haible  <bruno@clisp.org>
24235
24236         Clarify logic.
24237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
24238         gl_replace_getopt instead of GETOPT_H.
24239
24240 2009-08-12  Bruno Haible  <bruno@clisp.org>
24241
24242         * m4/getopt.m4: Add comments.
24243
24244 2009-08-12  Bruno Haible  <bruno@clisp.org>
24245
24246         Disable multithread support by default on Cygwin 1.5.x.
24247         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
24248         set gl_use_threads=no if not specified otherwise.
24249
24250 2009-08-11  Bruno Haible  <bruno@clisp.org>
24251
24252         Avoid compilation error on NetBSD 5.0.
24253         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
24254         * tests/test-stdio.c: Likewise.
24255         * tests/test-stdlib.c: Likewise.
24256         * tests/test-string.c: Likewise.
24257         * tests/test-unistd.c: Likewise.
24258         Reported by Greg Troxel <gdt@ir.bbn.com>
24259         at <https://savannah.gnu.org/support/?106973>.
24260
24261 2009-08-11  Bruno Haible  <bruno@clisp.org>
24262
24263         * modules/dup2-tests (Depends-on): Remove close.
24264
24265         Undo 2009-07-19 commit.
24266         * modules/acl-tests (Depends-on): Remove close.
24267         * modules/binary-io-tests (Depends-on): Likewise.
24268         * modules/closein-tests (Depends-on): Likewise.
24269         * modules/flock-tests (Depends-on): Likewise.
24270         * modules/fsync-tests (Depends-on): Likewise.
24271         * modules/lseek-tests (Depends-on): Likewise.
24272         * modules/pipe-tests (Depends-on): Likewise.
24273         * modules/posix_spawn-tests (Depends-on): Likewise.
24274         * modules/posix_spawnp-tests (Depends-on): Likewise.
24275         * modules/stat-time-tests (Depends-on): Likewise.
24276         * modules/yesno-tests (Depends-on): Likewise.
24277
24278 2009-08-10  Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
24281
24282 2009-08-10  Bruno Haible  <bruno@clisp.org>
24283
24284         Fix a gcc warning.
24285         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
24286
24287 2009-08-10  Bruno Haible  <bruno@clisp.org>
24288
24289         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
24290         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
24291         not only the first time.
24292         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
24293         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
24294         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
24295         is 1, not only the the first time.
24296
24297 2009-08-10  Bruno Haible  <bruno@clisp.org>
24298
24299         Make it possible to use module 'gethostname' without module 'close'.
24300         * lib/unistd.in.h (close): Evoke a link error only if
24301         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24303         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24304         * modules/unistd (Makefile.am): Substitute
24305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24306         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
24307         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24308         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24310         * modules/sys_ioctl (Makefile.am): Substitute
24311         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24312         * modules/socket (configure.ac): On native Windows, set
24313         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
24314         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24315         Reported by Sam Steingold <sds@gnu.org>.
24316
24317 2009-08-10  Bruno Haible  <bruno@clisp.org>
24318
24319         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
24320         * modules/ioctl (configure.ac): Likewise.
24321
24322 2009-08-10  Bruno Haible  <bruno@clisp.org>
24323
24324         Avoid collision between gnulib wrapper and libintl wrapper.
24325         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
24326         already defined in intl/printf.c.
24327         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
24328         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
24329
24330 2009-08-09  Bruno Haible  <bruno@clisp.org>
24331
24332         Make <sys/select.h> really self-contained, also on Solaris 10.
24333         * lib/sys_select.in.h: Include <string.h>.
24334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24335         Solaris 10 problem.
24336         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24337         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24338         Reported by Jim Meyering.
24339
24340 2009-08-09  Bruno Haible  <bruno@clisp.org>
24341
24342         Avoid warnings from 'aclocal' that are due to a use of macro name
24343         AM_XGETTEXT_OPTION that is not defined in automake.
24344         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24345         automake.
24346         * modules/error (configure.ac): Likewise.
24347         * modules/propername (configure.ac): Likewise.
24348         * modules/vasprintf (configure.ac): Likewise.
24349         * modules/verror (configure.ac): Likewise.
24350         * modules/xprintf (configure.ac): Likewise.
24351         * modules/xvasprintf (configure.ac): Likewise.
24352
24353 2009-08-08  Bruno Haible  <bruno@clisp.org>
24354
24355         Avoid compilation error in C++ mode.
24356         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24357         Reported by Sam Steingold <sds@gnu.org>.
24358
24359 2009-08-08  Bruno Haible  <bruno@clisp.org>
24360
24361         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
24362         for the various Unix platforms.
24363         * doc/posix-headers/limits.texi: Update platforms list regarding
24364         HOST_NAME_MAX.
24365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24366
24367 2009-08-07  Jim Meyering  <meyering@redhat.com>
24368
24369         selinux-at: fix typo in a comment
24370         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
24371         Spotted by Paolo Bonzini.
24372
24373         selinux-at: remove redundant m4 code, add documentation
24374         * modules/selinux-at (configure.ac): Remove redundant code.
24375         LIB_SELINUX is already set via the dependent module, selinux-h.
24376         (Include): Add quotes around selinux-at.h.
24377         * lib/selinux-at.h: Add documentation.
24378         Reported by Bruno Haible in
24379         http://marc.info/?l=gnulib-bug&m=124958988300749
24380
24381 2009-08-07  Bruno Haible  <bruno@clisp.org>
24382
24383         Avoid link error on MacOS X 10.3 and 10.4.
24384         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
24385         on non-ELF systems.
24386         * lib/argp-pv.c (argp_program_version): Likewise.
24387         Reported by Simon Josefsson.
24388
24389 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24390
24391         * tests/test-version-etc.sh: Use $EXEEXT.
24392
24393 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
24394
24395         update-copyright: update documentation to point to maint.mk
24396         * build-aux/update-copyright: Here.
24397
24398 2009-08-06  Jim Meyering  <meyering@redhat.com>
24399
24400         maint.mk: support update-copyright-local
24401         * top/maint.mk (update-copyright-local): Define place-holder.
24402         (update-copyright): Depend on $(update-copyright-local).
24403
24404 2009-08-06  Jim Meyering  <meyering@redhat.com>
24405
24406         selinux-at: new module
24407         Initially written for coreutils, this module will soon be
24408         used by findutils, too.
24409         * MODULES.html.sh [Misc]: Add selinux-at.
24410         * lib/selinux-at.h: New file, from coreutils.
24411         * lib/selinux-at.c: Likewise.
24412         * modules/selinux-at: Likewise.
24413         (License): Change from LGPL to GPL, since it depends
24414         on the GPL'd openat module.
24415
24416         doc: update README
24417         * README: Remove references to cogito.
24418         Remove cvs-repo-updating instructions from 2007.
24419         Don't imply that CVS is better if you have limited disk space.
24420
24421 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24422
24423         update-copyright: support C-style comments
24424         * build-aux/update-copyright: Implement and document.
24425         * tests/test-update-copyright.sh: Test.
24426
24427 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24428
24429         update-copyright: support omitted "(C)"
24430         * build-aux/update-copyright: Implement and document.  Also,
24431         allow variable whitespace before "(C)".
24432         * tests/test-update-copyright.sh: Test.
24433
24434 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24435
24436         update-copyright: don't trip on non-FSF copyright statements
24437         * build-aux/update-copyright: Fix so that the first correctly
24438         formatted FSF copyright statement is recognized no matter what
24439         appears before it.  Update documentation.
24440         * tests/test-update-copyright.sh: Test that.
24441
24442 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24443
24444         update-copyright: clean up code a little
24445         * build-aux/update-copyright: Append "_re" to the name of any
24446         variable holding a regular expression.
24447         Replace "old" and "new" with "stmt" in variable names.
24448         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
24449         handled correctly.
24450         Format code more consistently.
24451
24452 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24453
24454         update-copyright-tests: improve portability
24455         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
24456         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24457
24458 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24459
24460         update-copyright: support @copyright{} and &copy;
24461         * build-aux/update-copyright: Implement and document.
24462         * tests/test-update-copyright.sh: Test.
24463
24464 2009-08-04  Jim Meyering  <meyering@redhat.com>
24465
24466         update-copyright-tests: correctly test EOL=\r\n handling
24467         * tests/test-update-copyright.sh: Put \r at the end of some lines
24468         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24469
24470         maint.mk: make update-copyright exclusion list more configurable
24471         * top/maint.mk (update-copyright): Default to excluding COPYING,
24472         but allow an override, in case someone does want to update that file.
24473
24474         maint.mk: don't update copyright date in COPYING
24475         * top/maint.mk (update-copyright): Exclude COPYING.
24476
24477         maint.mk: add a copyright-updating rule
24478         * top/maint.mk (update-copyright): New rule.
24479         Derived from coreutils/Makefile.am.
24480
24481         update-copyright: rename some variables
24482         * build-aux/update-copyright: Rename a few variables for clarity.
24483         Tweak syntax.  List Joel E. Denny as coauthor.
24484
24485 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24486
24487         update-copyright: fix bug for 2-digit last year and add tests
24488         * build-aux/update-copyright: Fix bug.
24489         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24490         specified.
24491         * modules/update-copyright-tests: New
24492         * tests/test-update-copyright.sh: New.
24493
24494 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24495
24496         update-copyright: handle leading tabs in line prefix
24497         * build-aux/update-copyright: Count leading tabs as 8 spaces
24498         when computing margin.  This helps with the formatting of
24499         ChangeLogs, for example.
24500         Fix documentation a little.
24501
24502 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24503
24504         update-copyright: support EOL=\r\n
24505         * build-aux/update-copyright: Implement that.
24506
24507 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24508
24509         update-copyright: automatically format copyright statements
24510         * build-aux/update-copyright: Implement that.
24511         Also, be a little more predictable and safer by always failing
24512         when the full copyright format is not perfectly recognized as an
24513         unbroken whole.  Discussed at
24514         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
24515         Rewrite documentation.
24516
24517 2009-08-03  Bruno Haible  <bruno@clisp.org>
24518
24519         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
24520
24521 2009-08-02  Bruno Haible  <bruno@clisp.org>
24522
24523         Tests for module 'uname'.
24524         * modules/uname-tests: New file.
24525         * tests/test-uname.c: New file.
24526
24527         New module 'uname'.
24528         * lib/uname.c: New file.
24529         * m4/uname.m4: New file.
24530         * modules/uname: New file.
24531         * doc/posix-functions/uname.texi: Mention the new module.
24532
24533 2009-08-02  Bruno Haible  <bruno@clisp.org>
24534
24535         Tests for module 'sys_utsname'.
24536         * modules/sys_utsname-tests: New file.
24537         * tests/test-sys_utsname.c: New file.
24538
24539         New module 'sys_utsname'.
24540         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
24541         * m4/sys_utsname_h.m4: New file.
24542         * modules/sys_utsname: New file.
24543         * doc/posix-headers/sys_utsname.texi: Mention the new module.
24544
24545 2009-08-02  Bruno Haible  <bruno@clisp.org>
24546
24547         Implicitly initialize the sockets library.
24548         * lib/gethostname.c: Include sockets.h.
24549         (rpl_gethostname): Invoke gl_sockets_startup.
24550         * lib/socket.c: Include sockets.h.
24551         (rpl_socket): Invoke gl_sockets_startup.
24552         * modules/gethostname (Depends-on): Add sockets.
24553         * modules/socket (Depends-on): Likewise.
24554         * tests/test-poll.c: Don't include sockets.h.
24555         (main): Don't invoke gl_sockets_startup.
24556         * tests/test-select.c: Don't include sockets.h.
24557         (main): Don't invoke gl_sockets_startup.
24558
24559 2009-08-02  Bruno Haible  <bruno@clisp.org>
24560
24561         Allow multiple calls to gl_sockets_startup.
24562         * lib/sockets.c (initialized_sockets_version): New variable.
24563         (gl_sockets_startup): Do nothing if already called for this or a higher
24564         version.
24565         (gl_sockets_cleanup): Reset initialized_sockets_version.
24566
24567 2009-08-03  Simon Josefsson  <simon@josefsson.org>
24568
24569         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
24570         different project/version.
24571
24572 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
24573             Bruno Haible  <bruno@clisp.org>
24574
24575         Tests for module 'pipe-filter-gi'.
24576         * modules/pipe-filter-gi-tests: New file.
24577         * tests/test-pipe-filter-gi1.sh: New file.
24578         * tests/test-pipe-filter-gi1.c: New file.
24579         * tests/test-pipe-filter-gi2.sh: New file.
24580         * tests/test-pipe-filter-gi2-main.c: New file.
24581         * tests/test-pipe-filter-gi2-child.c: New file.
24582
24583         New module 'pipe-filter-gi'.
24584         * lib/pipe-filter-gi.c: New file.
24585         * modules/pipe-filter-gi: New file.
24586
24587 2009-08-02  Bruno Haible  <bruno@clisp.org>
24588             Paolo Bonzini  <bonzini@gnu.org>
24589
24590         Tests for module 'pipe-filter-ii'.
24591         * modules/pipe-filter-ii-tests: New file.
24592         * tests/test-pipe-filter-ii1.sh: New file.
24593         * tests/test-pipe-filter-ii1.c: New file.
24594         * tests/test-pipe-filter-ii2.sh: New file.
24595         * tests/test-pipe-filter-ii2-main.c: New file.
24596         * tests/test-pipe-filter-ii2-child.c: New file.
24597
24598         New module 'pipe-filter-ii'.
24599         * lib/pipe-filter.h: New file.
24600         * lib/pipe-filter-ii.c: New file.
24601         * lib/pipe-filter-aux.h: New file.
24602         * modules/pipe-filter-ii: New file.
24603
24604 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24605
24606         * lib/gc-libgcrypt.c: Change copyright to FSF.
24607         * lib/gc-gnulib.c: Likewise.
24608
24609 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
24610
24611         * lib/gethostname.c: Include limits.h.
24612
24613 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24614             Bruno Haible  <bruno@clisp.org>
24615
24616         Ensure HOST_NAME_MAX as part of the gethostname module.
24617         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
24618         define also HOST_NAME_MAX.
24619         * tests/test-gethostname.c: Include <limits.h>.
24620         (main): Check also HOST_NAME_MAX.
24621         * doc/posix-headers/limits.texi: Document the mingw problem.
24622
24623 2009-08-02  Bruno Haible  <bruno@clisp.org>
24624
24625         * lib/gethostname.c (gethostname): Fix handling of large len argument.
24626         Add comments.
24627
24628 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24629
24630         * lib/gethostname.c: Add Windows wrapper.
24631         * m4/gethostname.m4: Look for gethostname in -lws2_32.
24632         * modules/gethostname: Depend on sys_socket & errno, for also
24633         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
24634         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
24635
24636 2009-07-31  Jim Meyering  <meyering@redhat.com>
24637
24638         getloadavg: fix symbol name in comment
24639         * lib/getloadavg.c: Correct a typo I introduced when adding
24640         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
24641         Matt Kraai spotted the problem.
24642
24643 2009-07-29  Matt Kraai  <mkraai@beckman.com>
24644
24645         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
24646         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
24647         code also if ! defined N_NAME_POINTER.
24648         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
24649         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
24650         but the n_name member is a 12-byte array.
24651
24652 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
24653
24654         update-copyright: generalize comment handling
24655         * build-aux/update-copyright: Handle copyright statements
24656         within more comment styles.
24657         Document usage.
24658         Report any file with an external copyright holder or parse failure.
24659
24660 2009-07-29  Jim Meyering  <meyering@redhat.com>
24661
24662         mktime: correct setting of REPLACE_MKTIME
24663         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
24664
24665         update-copyright: new module
24666         * modules/update-copyright: New file.
24667         * build-aux/update-copyright: New file.
24668         * MODULES.html.sh (maint+release support): Add update-copyright.
24669
24670 2009-07-27  Bruno Haible  <bruno@clisp.org>
24671
24672         Fix compilation error when <ctime> is used and mktime is replaced.
24673         * lib/time.in.h (mktime): New declaration.
24674         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
24675         REPLACE_MKTIME instead of defining mktime in config.h.
24676         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
24677         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
24678         Reported by Ross McFarland <rwmcfa1@neces.com>.
24679
24680 2009-07-27  Bruno Haible  <bruno@clisp.org>
24681
24682         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
24683         Reported by Matt Kraai <mkraai@beckman.com>.
24684
24685 2009-07-25  Jim Meyering  <meyering@redhat.com>
24686
24687         maint.mk: avoid warnings about missing files
24688         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
24689         diagnostic when .prev-version does not exist.
24690         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
24691         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
24692         nonexistent cfg.mk.
24693         Suggestions from Simon Josefsson.
24694
24695 2009-07-25  Bruno Haible  <bruno@clisp.org>
24696
24697         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
24698         defined as macros. Needed on QNX 6.4.1.
24699         Reported by Matt Kraai <mkraai@beckman.com>.
24700
24701 2009-07-23  Jim Meyering  <meyering@redhat.com>
24702
24703         maint.mk: invoke "make dist" with a working value of XZ_OPT
24704         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
24705
24706 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
24707
24708         Make fseeko.c compile on QNX.
24709         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
24710
24711 2009-07-22  Peter Simons  <simons@cryp.to>
24712
24713         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
24714         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
24715         * lib/md4.h: Likewise.
24716         * lib/md5.h: Likewise.
24717         * lib/sha1.h: Likewise.
24718         * lib/sha256.h: Likewise.
24719         * lib/sha512.h: Likewise.
24720
24721         tests-sha1: don't assign literal string to 'char *' variable
24722         * tests/test-sha1.c (main): Declare locals with "const" to match
24723         attributes of the right hand side.
24724
24725 2009-07-21  Eric Blake  <ebb9@byu.net>
24726
24727         dup2: fix more mingw problems
24728         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
24729         fd to itself.
24730         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24731         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
24732         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
24733         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
24734         care of mingw bugs.
24735
24736 2009-07-21  Jim Meyering  <meyering@redhat.com>
24737
24738         vc-list-files: avoid failure when /bin/sh is dash
24739         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
24740         On some Debian based systems, /bin/sh is a symlink to dash, and running
24741         this command would omit the "/" following each 'tests' prefix:
24742           dash -x build-aux/vc-list-files -C . tests
24743         That is because bash and dash work differently:
24744           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
24745           bash ok
24746           dash odd
24747
24748 2009-07-21  Eric Blake  <ebb9@byu.net>
24749
24750         dup2-tests: test previous patch
24751         * modules/dup2-tests: New file.
24752         * tests/test-dup2.c: Likewise.
24753         * tests/test-open.c (main): Avoid unspecified behavior.
24754         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
24755         test.
24756
24757         dup2: work around mingw and cygwin 1.5 bug
24758         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
24759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24760         * modules/unistd (Makefile.am): Substitute it.
24761         * lib/unistd.in.h (dup2): Declare the replacement.
24762         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
24763         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
24764         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
24765         * modules/execute (Depends-on): Add dup2.
24766         * modules/fseterr (Depends-on): Likewise.
24767         * modules/pipe (Depends-on): Likewise.
24768         * modules/posix_spawn-internal (Depends-on): Likewise.
24769
24770 2009-07-21  Bruno Haible  <bruno@clisp.org>
24771
24772         * modules/.gitattributes: New file.
24773
24774 2009-07-20  Bruno Haible  <bruno@clisp.org>
24775
24776         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
24777         (main): Use it.
24778
24779 2009-07-20  Eric Blake  <ebb9@byu.net>
24780
24781         test-pipe: make a bit more robust.
24782         * tests/test-pipe.c (myerr): Allow error messages regardless of
24783         what we do to stderr.
24784         (test_pipe): Rearrange to avoid deadlock.
24785         (child_main): Try a larger read, to ensure we avoided deadlock.
24786         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
24787         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
24788         if misused.
24789
24790 2009-07-19  Jim Meyering  <meyering@redhat.com>
24791
24792         fts: avoid false-positive cycle-detection
24793         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
24794         for each new command line argument.
24795
24796 2009-07-19  Bruno Haible  <bruno@clisp.org>
24797
24798         Fix build error on mingw with the modules sys_select and unistd.
24799         * modules/acl-tests (Depends-on): Add close.
24800         * modules/binary-io-tests (Depends-on): Likewise.
24801         * modules/closein-tests (Depends-on): Likewise.
24802         * modules/flock-tests (Depends-on): Likewise.
24803         * modules/fsync-tests (Depends-on): Likewise.
24804         * modules/lseek-tests (Depends-on): Likewise.
24805         * modules/pipe-tests (Depends-on): Likewise.
24806         * modules/posix_spawn-tests (Depends-on): Likewise.
24807         * modules/posix_spawnp-tests (Depends-on): Likewise.
24808         * modules/stat-time-tests (Depends-on): Likewise.
24809         * modules/yesno-tests (Depends-on): Likewise.
24810
24811 2009-07-19  Bruno Haible  <bruno@clisp.org>
24812
24813         Unify conditionals.
24814         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
24815         macros, not at the compiler macros.
24816         * lib/pipe.c: Likewise.
24817         * lib/execute.c: Likewise.
24818         * lib/spawni.c: Likewise.
24819
24820 2009-07-19  Bruno Haible  <bruno@clisp.org>
24821
24822         Fix handling of closed stdin/stdout/stderr on mingw.
24823         * lib/w32spawn.h: Include unistd.h.
24824         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
24825         file descriptor with O_NOINHERIT flag.
24826         (fd_safer_noinherit): New function, based on fd-safer.c.
24827         (dup_safer_noinherit): New function, based on dup-safer.c.
24828         (undup_safer_noinherit): New function.
24829         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
24830         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
24831         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
24832         instead of fd_safer.
24833         * tests/test-pipe.c: Include <windows.h>.
24834         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
24835
24836         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
24837         from main.
24838         (test_pipe): Pass an extra argument for disambiguation.
24839         (main): Invoke parent_main or child_main.
24840
24841         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
24842         consistently.
24843
24844 2009-07-18  Eric Blake  <ebb9@byu.net>
24845
24846         test-pipe: fix mingw build
24847         * tests/test-pipe.c (main): Avoid fcntl on mingw.
24848
24849 2009-07-18  Bruno Haible  <bruno@clisp.org>
24850
24851         * modules/pipe-tests (Makefile.am): Fix typo.
24852
24853 2009-07-18  Eric Blake  <ebb9@byu.net>
24854
24855         error: fix mingw build
24856         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
24857         Reported by Bruno Haible.
24858
24859         error: avoid undefined use of stdout
24860         * lib/error.c (error, error_at_line): Check that fd 1 is open
24861         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
24862         is handling faults and the close_stdout module wants to report the
24863         detection of closed stdout as an error.
24864
24865 2009-07-17  Eric Blake  <ebb9@byu.net>
24866
24867         pipe: be robust in face of closed fds
24868         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
24869         should cause child to misbehave.
24870         * modules/pipe-tests: New module.
24871         * tests/test-pipe.c: New file.
24872         * tests/test-pipe.sh: New file.
24873         Reported by Akim Demaille.
24874
24875 2009-07-14  Bruno Haible  <bruno@clisp.org>
24876
24877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
24878         Reported by anonymous kc.
24879
24880 2009-07-07  Jim Meyering  <meyering@redhat.com>
24881
24882         maint.mk: don't look for translatable strings in *.m4 or *.mk
24883         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
24884         when searching for translatable strings.
24885
24886 2009-07-05  Jim Meyering  <meyering@redhat.com>
24887
24888         remove superfluous parentheses in STREQ definition
24889         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
24890         * lib/getugroups.c (STREQ): Likewise.
24891         * lib/fnmatch.c (STREQ): Likewise.
24892         Spotted by Bruno Haible.
24893
24894 2009-07-04  Jim Meyering  <meyering@redhat.com>
24895
24896         argv-iter: new module
24897         * MODULES.html.sh: Add argv-iter.
24898         * lib/argv-iter.c, lib/argv-iter.h: New files.
24899         * modules/argv-iter: New file.
24900         * modules/argv-iter-tests: New file.
24901         * tests/test-argv-iter.c: Test it.
24902
24903 2009-07-04  Bruno Haible  <bruno@clisp.org>
24904
24905         Fix assertion.
24906         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
24907         contains more exact copies of a given entry than file2, leave the extra
24908         copies unpaired rather than aborting.
24909         Reported by Eric Blake.
24910
24911 2009-07-02  Bruno Haible  <bruno@clisp.org>
24912
24913         Speedup git-merge-changelog for git cherry-pick.
24914         * lib/git-merge-changelog.c (struct entries_mapping): New type.
24915         (entries_mapping_get): New function, extracted from compute_mapping.
24916         (entries_mapping_reverse_get): New function.
24917         (compute_mapping): Add a 'full' argument. Return the result in a
24918         'struct entries_mapping'.
24919         (main): Update. Access the mappings through entries_mapping_get.
24920         Reported by Eric Blake.
24921
24922 2009-07-02  Bruno Haible  <bruno@clisp.org>
24923
24924         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
24925         best_i.
24926
24927 2009-07-02  Bruno Haible  <bruno@clisp.org>
24928
24929         Speed up approximate search for matching ChangeLog entries.
24930         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
24931         argument. Call fstrcmp_bounded instead of fstrcmp.
24932         (compute_mapping, try_split_merged_entry, main): Update callers.
24933
24934 2009-07-02  Bruno Haible  <bruno@clisp.org>
24935
24936         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
24937
24938 2009-06-30  Bruno Haible  <bruno@clisp.org>
24939
24940         Reduce the number of uc_is_cased calls.
24941         * lib/unicase.h (casing_suffix_context_t): Add
24942         'first_char_except_ignorable' field.
24943         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
24944         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
24945         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
24946         Update initializer.
24947         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
24948         case-ignorable characters.
24949         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
24950         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
24951         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
24952         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
24953         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
24954
24955 2009-06-30  Bruno Haible  <bruno@clisp.org>
24956
24957         Tests for module 'unicase/ignorable'.
24958         * modules/unicase/ignorable-tests: New file.
24959         * tests/unicase/test-ignorable.c: New file, generated by
24960         gen-uni-tables.
24961
24962         Tests for module 'unicase/cased'.
24963         * modules/unicase/cased-tests: New file.
24964         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
24965         * tests/unicase/test-predicate-part1.h: New file, derived from
24966         tests/unictype/test-predicate-part1.h.
24967         * tests/unicase/test-predicate-part2.h: New file, same as
24968         tests/unictype/test-predicate-part2.h.
24969
24970         Fix evaluation of "Before C" condition of FINAL_SIGMA.
24971         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
24972         (output_casing_properties): New function.
24973         (main): Call it.
24974         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
24975         * lib/unicase/cased.c: Include unictype/bitmap.h.
24976         (uc_is_cased): Define through a bitmap lookup.
24977         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
24978         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
24979         (uc_is_case_ignorable): Define through a bitmap lookup.
24980         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
24981         lib/unictype/bitmap.h.
24982         (Depends-on): Add inline. Clean up.
24983         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
24984         lib/unictype/bitmap.h.
24985         (Depends-on): Add inline. Clean up.
24986         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
24987         recognition.
24988         * tests/unicase/test-u16-tolower.c (main): Likewise.
24989         * tests/unicase/test-u32-tolower.c (main): Likewise.
24990
24991 2009-06-30  Bruno Haible  <bruno@clisp.org>
24992
24993         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
24994         * lib/unicase/u16-casemap.c: Likewise.
24995         * lib/unicase/u32-casemap.c: Likewise.
24996
24997 2009-06-29  Bruno Haible  <bruno@clisp.org>
24998
24999         Define u32_casefold as a wrapper around u32_ct_casefold.
25000         * lib/unicase/u32-casefold.c: Update.
25001         * modules/unicase/u32-casefold (Depends-on): Add
25002         unicase/u32-ct-casefold, unicase/empty-prefix-context,
25003         unicase/empty-suffix-context. Clean up.
25004
25005         Define u16_casefold as a wrapper around u16_ct_casefold.
25006         * lib/unicase/u16-casefold.c: Update.
25007         * modules/unicase/u16-casefold (Depends-on): Add
25008         unicase/u16-ct-casefold, unicase/empty-prefix-context,
25009         unicase/empty-suffix-context. Clean up.
25010
25011         Define u8_casefold as a wrapper around u8_ct_casefold.
25012         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
25013         * lib/unicase/u8-casefold.c: Update.
25014         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
25015         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25016
25017         Define u32_totitle as a wrapper around u32_ct_totitle.
25018         * lib/unicase/u32-totitle.c: Update.
25019         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
25020         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25021
25022         Define u16_totitle as a wrapper around u16_ct_totitle.
25023         * lib/unicase/u16-totitle.c: Update.
25024         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
25025         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25026
25027         Define u8_totitle as a wrapper around u8_ct_totitle.
25028         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
25029         functions.
25030         (FUNC): Delegate to U_CT_TOTITLE.
25031         * lib/unicase/u8-totitle.c: Update.
25032         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
25033         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25034
25035         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
25036         invocation.
25037         * modules/unicase/u32-tolower (Depends-on): Add
25038         unicase/empty-prefix-context, unicase/empty-suffix-context.
25039
25040         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
25041         invocation.
25042         * modules/unicase/u16-tolower (Depends-on): Add
25043         unicase/empty-prefix-context, unicase/empty-suffix-context.
25044
25045         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
25046         * modules/unicase/u8-tolower (Depends-on): Add
25047         unicase/empty-prefix-context, unicase/empty-suffix-context.
25048
25049         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
25050         invocation.
25051         * modules/unicase/u32-toupper (Depends-on): Add
25052         unicase/empty-prefix-context, unicase/empty-suffix-context.
25053
25054         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
25055         invocation.
25056         * modules/unicase/u16-toupper (Depends-on): Add
25057         unicase/empty-prefix-context, unicase/empty-suffix-context.
25058
25059         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
25060         * modules/unicase/u8-toupper (Depends-on): Add
25061         unicase/empty-prefix-context, unicase/empty-suffix-context.
25062
25063         New module 'unicase/u32-ct-casefold'.
25064         * lib/unicase/u32-ct-casefold.c: New file.
25065         * modules/unicase/u32-ct-casefold: New file.
25066
25067         New module 'unicase/u16-ct-casefold'.
25068         * lib/unicase/u16-ct-casefold.c: New file.
25069         * modules/unicase/u16-ct-casefold: New file.
25070
25071         New module 'unicase/u8-ct-casefold'.
25072         * lib/unicase/u8-ct-casefold.c: New file.
25073         * lib/unicase/u-ct-casefold.h: New file, derived from
25074         lib/unicase/u-casefold.h.
25075         * modules/unicase/u8-ct-casefold: New file.
25076
25077         New module 'unicase/u32-ct-totitle'.
25078         * lib/unicase/u32-ct-totitle.c: New file.
25079         * modules/unicase/u32-ct-totitle: New file.
25080
25081         New module 'unicase/u16-ct-totitle'.
25082         * lib/unicase/u16-ct-totitle.c: New file.
25083         * modules/unicase/u16-ct-totitle: New file.
25084
25085         New module 'unicase/u8-ct-totitle'.
25086         * lib/unicase/u8-ct-totitle.c: New file.
25087         * lib/unicase/u-ct-totitle.h: New file, derived from
25088         lib/unicase/u-totitle.h.
25089         * modules/unicase/u8-ct-totitle: New file.
25090
25091         New module 'unicase/u32-ct-tolower'.
25092         * lib/unicase/u32-ct-tolower.c: New file.
25093         * modules/unicase/u32-ct-tolower: New file.
25094
25095         New module 'unicase/u16-ct-tolower'.
25096         * lib/unicase/u16-ct-tolower.c: New file.
25097         * modules/unicase/u16-ct-tolower: New file.
25098
25099         New module 'unicase/u8-ct-tolower'.
25100         * lib/unicase/u8-ct-tolower.c: New file.
25101         * modules/unicase/u8-ct-tolower: New file.
25102
25103         New module 'unicase/u32-ct-toupper'.
25104         * lib/unicase/u32-ct-toupper.c: New file.
25105         * modules/unicase/u32-ct-toupper: New file.
25106
25107         New module 'unicase/u16-ct-toupper'.
25108         * lib/unicase/u16-ct-toupper.c: New file.
25109         * modules/unicase/u16-ct-toupper: New file.
25110
25111         New module 'unicase/u8-ct-toupper'.
25112         * lib/unicase/u8-ct-toupper.c: New file.
25113         * modules/unicase/u8-ct-toupper: New file.
25114
25115         Add context arguments to u*_casemap functions.
25116         * lib/unicase/unicasemap.h: Include unicase.h.
25117         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
25118         suffix_context arguments.
25119         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
25120         functions.
25121         (FUNC): Add prefix_context and suffix_context arguments. Use
25122         uc_is_cased and uc_is_case_ignorable.
25123         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25124         * lib/unicase/u16-casemap.c: Likewise.
25125         * lib/unicase/u32-casemap.c: Likewise.
25126         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25127         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25128         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25129         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25130         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25131         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25132
25133         New module 'unicase/u32-suffix-context'.
25134         * lib/unicase/u32-suffix-context.c: New file.
25135         * modules/unicase/u32-suffix-context: New file.
25136
25137         New module 'unicase/u16-suffix-context'.
25138         * lib/unicase/u16-suffix-context.c: New file.
25139         * modules/unicase/u16-suffix-context: New file.
25140
25141         New module 'unicase/u8-suffix-context'.
25142         * lib/unicase/u8-suffix-context.c: New file.
25143         * lib/unicase/u-suffix-context.h: New file.
25144         * modules/unicase/u8-suffix-context: New file.
25145
25146         New module 'unicase/empty-suffix-context'.
25147         * lib/unicase/empty-suffix-context.c: New file.
25148         * modules/unicase/empty-suffix-context: New file.
25149
25150         New module 'unicase/u32-prefix-context'.
25151         * lib/unicase/u32-prefix-context.c: New file.
25152         * modules/unicase/u32-prefix-context: New file.
25153
25154         New module 'unicase/u16-prefix-context'.
25155         * lib/unicase/u16-prefix-context.c: New file.
25156         * modules/unicase/u16-prefix-context: New file.
25157
25158         New module 'unicase/u8-prefix-context'.
25159         * lib/unicase/u8-prefix-context.c: New file.
25160         * lib/unicase/u-prefix-context.h: New file.
25161         * lib/unicase/context.h: New file.
25162         * modules/unicase/u8-prefix-context: New file.
25163
25164         New module 'unicase/empty-prefix-context'.
25165         * lib/unicase/empty-prefix-context.c: New file.
25166         * modules/unicase/empty-prefix-context: New file.
25167
25168         New module 'unicase/ignorable'.
25169         * lib/unicase/ignorable.c: New file.
25170         * modules/unicase/ignorable: New file.
25171
25172         New module 'unicase/cased'.
25173         * lib/unicase/caseprop.h: New file.
25174         * lib/unicase/cased.c: New file.
25175         * modules/unicase/cased: New file.
25176
25177         New functions for case mapping of substrings.
25178         * lib/unicase.h (casing_prefix_context_t): New type.
25179         (unicase_empty_prefix_context): New variable.
25180         (u8_casing_prefix_context, u16_casing_prefix_context,
25181         u32_casing_prefix_context, u8_casing_prefixes_context,
25182         u16_casing_prefixes_context, u32_casing_prefixes_context): New
25183         declarations.
25184         (casing_suffix_context_t): New type.
25185         (unicase_empty_suffix_context): New variable.
25186         (u8_casing_suffix_context, u16_casing_suffix_context,
25187         u32_casing_suffix_context, u8_casing_suffixes_context,
25188         u16_casing_suffixes_context, u32_casing_suffixes_context,
25189         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
25190         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
25191         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
25192         declarations.
25193
25194 2009-06-28  Jim Meyering  <meyering@redhat.com>
25195
25196         boostrap: indent only with spaces
25197         * build-aux/bootstrap: Indent only with spaces, never TABs.
25198
25199         bootstrap: split long lines
25200         * build-aux/bootstrap: Keep line length < 80.
25201
25202         bootstrap: sync from coreutils
25203         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
25204         just as autoreconf does.  Verify a list of prerequisite
25205         package-name,version-number pairs if defined in bootstrap.conf.
25206         Refer to README-prereq, if prerequisites are not satisfied.
25207
25208 2009-06-27  Eric Blake  <ebb9@byu.net>
25209
25210         tests: add test for bogus NULL definition
25211         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
25212         * tests/test-stdlib.c: Likewise.
25213         * tests/test-string.c: Likewise.
25214         * tests/test-locale.c: Likewise.
25215         * tests/test-unistd.c: Likewise.
25216         * modules/stdio-tests (Depends-on): Add verify.
25217         * modules/stdlib-tests (Depends-on): Likewise.
25218         * modules/string-tests (Depends-on): Likewise.
25219         * modules/locale-tests (Depends-on): Likewise.
25220         * modules/unistd-tests (Depends-on): Likewise.
25221
25222 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
25223
25224         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
25225         self-explaining comment.
25226         * m4/selinux-selinux-h: Update serial.
25227         (gl_LIBSELINUX): New macro, adding a warning for missing development
25228         packages to code extracted from...
25229         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
25230         Add warning for missing development packages here, too.
25231
25232 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
25233
25234         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
25235
25236 2009-06-25  Eric Blake  <ebb9@byu.net>
25237
25238         version-etc: fix regression
25239         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
25240         gcc.
25241         (version_etc): Use it, to catch bugs with trailing NULL.
25242         * lib/version-etc.c (version_etc_arn): Delete unused argument.
25243         (version_etc_va): Fix logic bug.
25244         * modules/version-etc-tests: Add test.
25245         * tests/test-version-etc.c: New file.
25246         * tests/test-version-etc.sh: Likewise.
25247
25248 2009-06-25  Sam Steingold  <sds@gnu.org>
25249
25250         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
25251         mbtowc declaration.
25252
25253 2009-06-25  Eric Blake  <ebb9@byu.net>
25254
25255         fpurge: migrate into <stdio.h>
25256         * lib/fpurge.h: Delete...
25257         * lib/stdio.in.h (fpurge): ...and declare here, instead.
25258         * lib/fpurge.c (fpurge): Change declaring header.
25259         * modules/fpurge (Files): Drop deleted file.
25260         (Depends-on): Add stdio.
25261         (configure.ac): Set witness.
25262         * modules/stdio (Makefile.am): Support fpurge macros.
25263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25264         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
25265         * lib/fflush.c: Update client.
25266         * tests/test-fpurge.c: Likewise.
25267         * NEWS: Mention the change.
25268
25269 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25270
25271         * lib/argp-version-etc.c (program_authors): Add const
25272         qualifier.
25273         * lib/version-etc.c: Fix typos in the comments.
25274         * modules/argp-version-etc: Depends on version-etc.
25275
25276 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25277
25278         argp-version-etc: new module.
25279
25280         * lib/argp-version-etc.c: New file.
25281         * lib/argp-version-etc.h: New file.
25282         * modules/argp-version-etc: New file.
25283         * modules/argp-version-etc-tests: New file.
25284         * tests/test-argp-version-etc.c: New test.
25285         * tests/test-argp-version-etc-1.sh: New test.
25286
25287 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25288
25289         Provide additional interfaces and documentation for version-etc
25290         module.
25291
25292         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
25293         interfaces.
25294         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
25295         prototypes.
25296
25297 2009-06-24  Bruno Haible  <bruno@clisp.org>
25298
25299         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
25300         HAVE_LIB${NAME} macro.
25301         Reported by Sam Steingold <sds@gnu.org>.
25302
25303 2009-06-23  Simon Josefsson  <simon@josefsson.org>
25304
25305         * modules/hash-tests (test_hash_LDADD): Link to libintl when
25306         needed.
25307
25308 2009-06-21  Bruno Haible  <bruno@clisp.org>
25309
25310         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
25311         work.
25312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
25313         together with LIB${NAME}, LTLIB${NAME}.
25314         Reported by Sam Steingold <sds@gnu.org>.
25315
25316 2009-06-20  Jim Meyering  <meyering@redhat.com>
25317
25318         tests: make sc_require_test_exit_idiom more generic
25319         * top/maint.mk (Exit_witness_file): New overridable variable.
25320         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
25321         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
25322
25323 2009-06-19  Jim Meyering  <meyering@redhat.com>
25324
25325         hash: reverse order of src/dst parameters in an internal interface
25326         * lib/hash.c (transfer_entries): Reverse order of parameters to
25327         put DST before SRC.  Adjust callers.
25328
25329         tests: test-hash: avoid wholesale duplication
25330         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
25331         Instead, use a loop and add a single conditional.
25332
25333         tests: test-hash: allow seed selection via a command line argument
25334         * tests/test-hash.c (get_seed): New function.
25335         (main): Use it.
25336
25337 2009-06-19  Eric Blake  <ebb9@byu.net>
25338
25339         hash: avoid memory leak on allocation failure
25340         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25341         failure.  Factor repeated algorithm...
25342         (transfer_entries): ...into new helper routine.
25343         (hash_delete): React to hash_rehash return value.
25344
25345         hash: reduce memory pressure in hash_rehash no-op case
25346         * lib/hash.c (next_prime): Avoid overflow.
25347         (hash_initialize): Factor bucket size computation...
25348         (compute_bucket_size): ...into new helper function.
25349         (hash_rehash): Use new function and open coding to reduce memory
25350         pressure, and avoid a memory leak in USE_OBSTACK code.
25351         Reported by Jim Meyering.
25352
25353 2009-06-18  Eric Blake  <ebb9@byu.net>
25354
25355         hash: make rotation more obvious
25356         * modules/hash (Depends-on): Add bitrotate and stdint.
25357         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25358         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
25359         (SIZE_MAX): Rely on headers for definition.
25360         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
25361         (raw_hasher): Use rotr_sz.
25362         Suggested by Jim Meyering.
25363
25364         hash: fix memory leak in last patch
25365         * lib/hash.c (hash_rehash): Avoid memory leak.
25366
25367         hash: avoid no-op rehashing
25368         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
25369
25370         hash: provide default callback functions
25371         * lib/hash.c (raw_hasher, raw_comparator): New functions.
25372         (hash_initialize): Use them as defaults.
25373         * tests/test-hash.c (main): Test this.
25374
25375         hash: minor optimization
25376         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
25377         when possible.
25378         (hash_initialize): Document this promise.
25379         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
25380         * tests/test-hash.c (hash_compare_strings): Test this.
25381
25382 2009-06-18  Bruno Haible  <bruno@clisp.org>
25383
25384         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
25385         going to be replaced anyway.
25386
25387 2009-06-18  Bruno Haible  <bruno@clisp.org>
25388
25389         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
25390         in one place.
25391         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
25392         be replaced anyway.
25393
25394 2009-06-18  Eric Blake  <ebb9@byu.net>
25395
25396         hash: check for resize before insertion
25397         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
25398         threshold before insertion, so that a pathological hash_rehash
25399         that fills every bucket can still trigger another rehash.
25400
25401 2009-06-18  Jim Meyering  <meyering@redhat.com>
25402
25403         hash-tests: add a loop around the small tests
25404         * tests/test-hash.c (main): Repeat small tests with selected
25405         small initial table sizes.
25406
25407 2009-06-17  Eric Blake  <ebb9@byu.net>
25408
25409         hash: minor cleanups
25410         * lib/hash.h (hash_entry): Make opaque, by moving...
25411         * lib/hash.c (hash_entry): ...here.
25412         (hash_insert): Clarify restrictions on what can be inserted.
25413         (hash_get_next): Clarify when it is safe to remove an element
25414         during traversal.
25415         (check_tuning): Skip verification when tuning is known safe.
25416         (hash_initialize): Clarify restrictions on tuning.
25417
25418 2009-06-17  Jim Meyering  <jim@meyering.net>
25419         and Eric Blake  <ebb9@byu.net>
25420
25421         hash-tests: new module
25422         * modules/hash-tests: New file.
25423         * tests/test-hash.c: New file.
25424
25425 2009-06-17  Eric Blake  <ebb9@byu.net>
25426
25427         strstr-simple: document new module
25428         * MODULES.html.sh: Document new module.
25429
25430         strstr, strcasestr: replace on platforms with broken memchr
25431         * modules/strstr: Split into...
25432         * modules/strstr-simple: ...new module that does not care about
25433         performance, but does care about glibc bug.
25434         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
25435         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
25436         if platform memchr is broken, per Debian bug 521737.
25437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
25438         memchr.
25439         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
25440         * doc/posix-functions/strstr.texi (strstr): Document the fix.
25441         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25442         * modules/mountlist (Depends-on): Add strstr-simple.
25443         * modules/gen-uni-tables (Depends-on): Likewise.
25444         * modules/argz (Depends-on): Add strstr.
25445
25446 2009-06-17  Bruno Haible  <bruno@clisp.org>
25447
25448         * modules/posix_spawn-internal (Depends-on): Add errno.
25449
25450 2009-06-17  Bruno Haible  <bruno@clisp.org>
25451
25452         Define missing ESTALE on Interix 3.5.
25453         * lib/errno.in.h (ESTALE): Assign a value if missing.
25454         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
25455         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
25456         missing.
25457         * doc/posix-headers/errno.texi: Mention the Interix bug.
25458         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
25459
25460 2009-06-15  Eric Blake  <ebb9@byu.net>
25461
25462         memchr, memchr2: add valgrind exception
25463         * lib/memchr.valgrind: New file.
25464         * lib/memchr2.valgrind: New file.
25465         * modules/memchr (Files): Distribute valgrind file.
25466         * modules/memchr2 (Files): Likewise.
25467
25468         docs: memchr is no longer obsolete
25469         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25470         * lib/string.in.h (memchr): Simplify logic.
25471
25472 2009-06-14  Jim Meyering  <meyering@redhat.com>
25473
25474         link-follow: fix the "checking..." message to not mention trailing slash
25475         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25476         never considered trailing slashes.
25477
25478 2009-06-14  Bruno Haible  <bruno@clisp.org>
25479
25480         * m4/memchr.m4: Mention also the bug on IA-64.
25481         * doc/posix-functions/memchr.texi: Likewise.
25482
25483 2009-06-12  Eric Blake  <ebb9@byu.net>
25484
25485         memchr: detect broken x86_64 and alpha implementations
25486         * modules/memchr-tests (Depends-on): Move mmap detection...
25487         * modules/memchr (Depends-on): ...here.
25488         (configure.ac): Set indicator.
25489         * lib/string.in.h (memchr): Declare replacement.
25490         * modules/string (Makefile.am): Trigger replacement.
25491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25492         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25493         bugs.
25494         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25495         * modules/getpagesize (License): Relax license.
25496
25497 2009-06-11  Bruno Haible  <bruno@clisp.org>
25498
25499         * lib/idpriv.h: Add more references.
25500
25501 2009-06-08  Bruno Haible  <bruno@clisp.org>
25502
25503         Tests for module 'idpriv-droptemp'.
25504         * modules/idpriv-droptemp-tests: New file.
25505         * tests/test-idpriv-droptemp.sh: New file.
25506         * tests/test-idpriv-droptemp.su.sh: New file.
25507         * tests/test-idpriv-droptemp.c: New file.
25508
25509         New module 'idpriv-droptemp'.
25510         * lib/idpriv-droptemp.c: New file.
25511         * modules/idpriv-droptemp: New file.
25512
25513 2009-06-08  Bruno Haible  <bruno@clisp.org>
25514
25515         Tests for module 'idpriv-drop'.
25516         * modules/idpriv-drop-tests: New file.
25517         * tests/test-idpriv-drop.sh: New file.
25518         * tests/test-idpriv-drop.su.sh: New file.
25519         * tests/test-idpriv-drop.c: New file.
25520
25521         New module 'idpriv-drop'.
25522         * lib/idpriv.h: New file.
25523         * lib-idpriv-drop.c: New file.
25524         * m4/idpriv.m4: New file.
25525         * modules/idpriv-drop: New file.
25526
25527 2009-06-08  Bruno Haible  <bruno@clisp.org>
25528
25529         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
25530         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25531         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25532         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25533         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25534         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25535         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25536
25537 2009-06-08  Eric Blake  <ebb9@byu.net>
25538
25539         test-strstr: use memory fence, when possible
25540         * tests/test-strstr.c (main): Use memory fence, in order to be
25541         more likely to trigger Debian bug 521737.
25542         * modules/strstr-tests (Files): Pull in additional files.
25543
25544         memchr: no longer obsolete, for wider field testing
25545         * modules/memchr (Status, Notice): Delete, this module is no
25546         longer obsolete.
25547         * modules/vasnprintf (Depends-on): Add memchr.
25548
25549 2009-06-07  Jim Meyering  <meyering@redhat.com>
25550
25551         hash: declare some functions with the warn_unused_result attribute
25552         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
25553
25554 2009-06-07  Bruno Haible  <bruno@clisp.org>
25555
25556         * tests/test-alignof.c: Don't test int64_t if it does not exist.
25557         Reported by Eric Blake.
25558
25559 2009-06-06  Eric Blake  <ebb9@byu.net>
25560
25561         test-alignof: fix typo with long double
25562         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
25563         compiler error.
25564
25565 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
25566
25567         Escape non-texinfo { and }s.
25568         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
25569         markup error.
25570
25571 2009-06-04  Jim Meyering  <meyering@redhat.com>
25572
25573         gitlog-to-changelog: don't infloop on an empty commit log
25574         * build-aux/gitlog-to-changelog: Warn about an empty log message.
25575         Reported by Boris Petersen <transacid@centerim.org>.
25576
25577 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
25578
25579         version-etc: extend for packagers
25580         Add three new configure options, intended for packagers:
25581           --with-packager="packager name"
25582           --with-packager-version="packager-specific version"
25583           --with-packager-bug-reports="packager bug reporting"
25584         An example with coreutils:
25585           $ ./configure \
25586             --with-packager=Gentoo \
25587             --with-packager-bug-report=http://bugs.gentoo.org/ \
25588             --with-packager-version="patchset 1.6"
25589           $ ./src/ls --version | head -n2
25590           ls (GNU coreutils) 7.1-dirty
25591           Packaged by Gentoo (patchset 1.6)
25592         Note that the bug reporting info via --help doesn't show up because
25593         coreutils uses its own custom emit_bug_reporting_address() implementation
25594         in src/system.h.  If it didn't, it'd look like:
25595           $ ./src/ls --help | tail -n4
25596           Report bugs to <bug-coreutils@gnu.org>.
25597           Report Gentoo bugs to <http://bugs.gentoo.org/>.
25598           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
25599           General help using GNU software: <http://www.gnu.org/gethelp/>.
25600         * lib/version-etc.c: Print new information, if provided.
25601         * m4/version-etc.m4: New file.
25602         * modules/version-etc (Files): Add m4/version-etc.m4.
25603         (configure.ac): Add gl_VERSION_ETC.
25604
25605 2009-05-31  Bruno Haible  <bruno@clisp.org>
25606
25607         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
25608         and 'int64_t'.
25609         * modules/alignof-tests (Dependencies): Add stdint.
25610         Reported by Eric Blake.
25611
25612 2009-05-31  Bruno Haible  <bruno@clisp.org>
25613
25614         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
25615         restriction due to compiler bugs.
25616         Reported by Eric Blake.
25617
25618 2009-05-31  Simon Josefsson  <simon@josefsson.org>
25619             Bruno Haible  <bruno@clisp.org>
25620
25621         Fix test-alignof failure.
25622         * lib/alignof.h (alignof_slot): New macro.
25623         (alignof_type): New macro, with the same semantics as the previous
25624         'alignof'.
25625         (alignof): Alias to alignof_slot.
25626         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
25627         check that the results are usable as constant expressions.
25628
25629 2009-05-31  Bruno Haible  <bruno@clisp.org>
25630
25631         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
25632         * tests/test-memchr.c (main): Check that memchr does not read past the
25633         first occurrence of the byte.
25634         * tests/test-strstr.c (main): Update comment.
25635         Suggested by Eric Blake.
25636
25637 2009-05-30  Bruno Haible  <bruno@clisp.org>
25638
25639         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
25640         detail how to use dumpbin.
25641         Reported by David Byron <dbyron@dbyron.com>.
25642
25643 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25644
25645         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
25646
25647 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25648
25649         * m4/manywarnings.m4: Add GCC 4.4 warnings.
25650
25651 2009-05-28  Bruno Haible  <bruno@clisp.org>
25652
25653         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
25654         build-aux/ files.
25655
25656 2009-05-28  Simon Josefsson  <simon@josefsson.org>
25657
25658         * gnulib-tool (func_import): Transform license on build-aux/ files too.
25659
25660 2009-05-27  Simon Josefsson  <simon@josefsson.org>
25661
25662         * gnulib-tool (sed_transform_main_lib_file)
25663         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
25664         regexps.
25665
25666 2009-05-26  Simon Josefsson  <simon@josefsson.org>
25667
25668         * tests/test-strstr.c: Add another self-test.
25669         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
25670         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
25671
25672 2009-05-23  Bruno Haible  <bruno@clisp.org>
25673
25674         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
25675         change.
25676
25677 2009-05-21  Bruno Haible  <bruno@clisp.org>
25678
25679         Simplify use of mode_t varargs.
25680         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
25681         uses 'mode_t' or 'int'.
25682         * lib/openat.c (openat): Likewise.
25683         * lib/open-safer.c (open_safer): Likewise.
25684         * m4/mode_t.m4: New file.
25685         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
25686         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
25687         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
25688         * modules/open (Files): Add m4/mode_t.m4.
25689         * modules/openat (Files): Likewise.
25690         * modules/fcntl-safer (Files): Likewise.
25691         Suggested by Eric Blake.
25692
25693 2009-05-21  Pádraig Brady  <P@draigbrady.com>
25694
25695         * doc/glibc-functions/fallocate.texi: New file.
25696         * doc/gnulib.texi: Include it.
25697
25698 2009-05-21  Eric Blake  <ebb9@byu.net>
25699             Bruno Haible  <bruno@clisp.org>
25700
25701         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
25702         invocations.
25703         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25704
25705 2009-05-21  Eric Blake  <ebb9@byu.net>
25706             Bruno Haible  <bruno@clisp.org>
25707
25708         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
25709         include_next. Fix of 2008-11-20 commit.
25710         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
25711         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
25712         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
25713         NEXT_MATH_H.
25714         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
25715         instead of NEXT_MATH_H.
25716
25717 2009-05-21  Bruno Haible  <bruno@clisp.org>
25718
25719         Avoid redefinition warnings for SIZE_MAX.
25720         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
25721         Reported by Simon Josefsson.
25722
25723 2009-05-21  Bruno Haible  <bruno@clisp.org>
25724
25725         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
25726         AC_CACHE_VAL.
25727
25728 2009-05-20  Bruno Haible  <bruno@clisp.org>
25729
25730         Make zeroptr.h work on mingw.
25731         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
25732         mprotect.
25733         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
25734         * modules/memchr2-tests (configure.ac): Likewise.
25735         * modules/memcmp-tests (configure.ac): Likewise.
25736         * modules/memmem-tests (configure.ac): Likewise.
25737         * modules/memrchr-tests (configure.ac): Likewise.
25738         Reported by Simon Josefsson.
25739
25740 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25741
25742         * tests/test-glob.c: Include string.h for strcmp prototype.
25743
25744 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25745
25746         * modules/getdelim (Depends-on): Add explicit stdint, although it
25747         was implicitly already pulled in via realloc-posix.
25748         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
25749
25750 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25751
25752         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
25753         G. Christensen" <tgc@jupiterrise.com>.
25754         * m4/sys_socket_h.m4: Check for sa_family_t.
25755         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
25756         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
25757         * tests/test-sys_socket.c: Check that sa_family_t works.
25758
25759 2009-05-18  Eric Blake  <ebb9@byu.net>
25760
25761         maint.mk: allow gnulib_dir in VPATH build
25762         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
25763
25764 2009-05-15  Jim Meyering  <meyering@redhat.com>
25765
25766         maint.mk: Give gnulib_dir a default definition.
25767         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
25768         Thus, most packages no longer need to specify this variable in cfg.mk
25769
25770 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
25771
25772         rename.m4: fix typos that would make non-mingw cross-configure fail
25773         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
25774
25775 2009-05-13  Eric Blake  <ebb9@byu.net>
25776
25777         mmap-anon: avoid out-of-order autoconf expansion
25778         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
25779         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
25780         * modules/memchr-tests (Depends-on): Add extensions.
25781         * modules/memchr2-tests (Depends-on): Add extensions.
25782         * modules/memcmp-tests (Depends-on): Add extensions.
25783         * modules/memmem-tests (Depends-on): Add extensions.
25784         * modules/memrchr-tests (Depends-on): Add extensions.
25785
25786 2009-05-13  Bruno Haible  <bruno@clisp.org>
25787
25788         Make some tests ISO C 99 compliant.
25789         * tests/zerosize-ptr.h: New file.
25790         * tests/test-memchr.c: Include zerosize-ptr.h.
25791         (main): Use a zero-size object pointer instead of NULL.
25792         * tests/test-memchr2.c: Include zerosize-ptr.h.
25793         (main): Use a zero-size object pointer instead of NULL.
25794         * tests/test-memcmp.c: Include zerosize-ptr.h.
25795         (main): Use a zero-size object pointer instead of NULL.
25796         * tests/test-memmem.c: Include zerosize-ptr.h.
25797         (main): Use a zero-size object pointer instead of NULL.
25798         * tests/test-memrchr.c: Include zerosize-ptr.h.
25799         (main): Use a zero-size object pointer instead of NULL.
25800         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
25801         m4/mmap-anon.m4.
25802         (Depends-on): Add getpagesize.
25803         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25804         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
25805         m4/mmap-anon.m4.
25806         (Depends-on): Add getpagesize.
25807         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25808         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
25809         m4/mmap-anon.m4.
25810         (Depends-on): Add getpagesize.
25811         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25812         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
25813         m4/mmap-anon.m4.
25814         (Depends-on): Add getpagesize.
25815         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25816         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
25817         m4/mmap-anon.m4.
25818         (Depends-on): Add getpagesize.
25819         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25820
25821 2009-05-12  Bruno Haible  <bruno@clisp.org>
25822
25823         Tests for module 'alignof'.
25824         * modules/alignof-tests: New file.
25825         * tests/test-alignof.c: New file.
25826
25827 2009-05-12  Bruno Haible  <bruno@clisp.org>
25828
25829         Fix alignof macro.
25830         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
25831         vendor compilers that are always correct.
25832
25833 2009-05-12  Bruno Haible  <bruno@clisp.org>
25834
25835         Make the MAP_ANONYMOUS detection work on HP-UX 11.
25836         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
25837         not whether its fully works.
25838
25839 2009-05-12  Bruno Haible  <bruno@clisp.org>
25840
25841         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
25842
25843 2009-05-12  Jim Meyering  <meyering@redhat.com>
25844
25845         * top/maint.mk: Adjust backslash alignment.
25846
25847 2009-05-11  Simon Josefsson  <simon@josefsson.org>
25848
25849         * top/maint.mk: Make $(srcdir)/build-aux configurable.
25850
25851 2009-05-11  Eric Blake  <ebb9@byu.net>
25852
25853         argp: avoid undefined behavior
25854         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
25855         macros.
25856
25857 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25858
25859         * tests/test-vc-list-files-git.sh: Do git config of user.email and
25860         user.name to prevent git commit from complaining.
25861
25862 2009-05-10  Bruno Haible  <bruno@clisp.org>
25863
25864         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
25865         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
25866         it rewrites every file name only once.
25867         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
25868
25869 2009-05-08  Bruno Haible  <bruno@clisp.org>
25870
25871         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
25872         instead of 'max'.
25873
25874 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25875
25876         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
25877         sockaddr_storage test.
25878
25879 2009-05-07  Simon Josefsson  <simon@josefsson.org>
25880
25881         * modules/sys_socket (Makefile.am): Substitute
25882         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
25883         * m4/sys_socket_h.m4: Check for sockaddr_storage.
25884         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
25885         * tests/test-sys_socket.c: Check sockaddr_storage.
25886
25887 2009-05-08  Bruno Haible  <bruno@clisp.org>
25888
25889         New module 'alignof'.
25890         * lib/alignof.h: New file.
25891         * modules/alignof: New file.
25892
25893 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25894             Bruno Haible  <bruno@clisp.org>
25895
25896         Fix test-file-has-acl on FreeBSD.
25897         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
25898         mask is implicitly added.
25899         * tests/test-file-has-acl.c: Include <signal.h>.
25900         (main): Terminate the test after 5 seconds.
25901         * modules/acl-tests (configure.ac): Check for alarm function.
25902
25903 2009-05-04  Bruno Haible  <bruno@clisp.org>
25904
25905         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
25906         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
25907         * modules/errno (configure.ac): Drop AC_REQUIRE.
25908         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
25909         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
25910
25911 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25912
25913         * modules/glob-tests: New module.
25914         * tests/test-glob.c: Add.
25915
25916 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25917
25918         * modules/fnmatch-tests: New module.
25919         * tests/test-fnmatch.c: Add.
25920
25921 2009-05-04  Eric Blake  <ebb9@byu.net>
25922
25923         maint: make the new no-submodule-changes rule VPATH-safe
25924         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
25925
25926 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25927             Bruno Haible  <bruno@clisp.org>
25928
25929         acl: Fix infinite loop on FreeBSD.
25930         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
25931         of return value from acl_get_entry.
25932         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
25933         Likewise.
25934
25935 2009-05-03  Bruno Haible  <bruno@clisp.org>
25936
25937         * lib/acl-internal.h (acl_entries): Clarify return value.
25938         * lib/acl_entries.c (acl_entries): Likewise.
25939
25940 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25941
25942         Bug fix in acl module.
25943         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
25944
25945 2009-05-03  Bruno Haible  <bruno@clisp.org>
25946
25947         Create gperf-generated file in the source dir, not in the build dir.
25948         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
25949         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
25950         * modules/unicase/locale-language (unicase/locale-languages.h):
25951         Likewise.
25952         * modules/unicase/special-casing (unicase/special-casing-table.h):
25953         Likewise.
25954         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
25955         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
25956         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
25957         Reported by Ralf Wildenhues.
25958
25959 2009-05-03  Bruno Haible  <bruno@clisp.org>
25960
25961         * modules/fnmatch (Description, configure.ac): Taken from
25962         fnmatch-posix.
25963         * modules/fnmatch-posix: Turn into a symbolic reference to the
25964         'fnmatch' module, and deprecate.
25965         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
25966
25967 2009-05-03  Bruno Haible  <bruno@clisp.org>
25968
25969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
25970         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
25971         Reported by Ralf Wildenhues.
25972
25973 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25974
25975         * m4/fnmatch.m4: Fix fnmatch re-define.
25976
25977 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25978
25979         priv-set: new module and tests; adapt write-any-file
25980         * lib/priv-set.c: New file.
25981         * lib/priv-set.h: New file.
25982         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
25983         * lib/write-any-file.c: Simplify by using priv-set module.
25984         * m4/priv-set.m4: New file.
25985         * modules/priv-set: New file.
25986         * modules/unlinkdir: Add dependency on priv-set module.
25987         * modules/write-any-file: Likewise.
25988
25989         Tests for module 'priv-set'.
25990         * modules/priv-set-tests: New file.
25991         * tests/test-priv-set.c: New file.
25992
25993 2009-05-03  Jim Meyering  <meyering@redhat.com>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
25997         use the converted UTF-8 variant of the name instead.
25998
25999 2009-05-03  Jim Meyering  <meyering@redhat.com>
26000
26001         tests: tighten some getdate tests
26002         * tests/test-getdate.c (main): Tighten tests: require equality,
26003         not just greater than.  Set TZ envvar to UTC0.
26004
26005 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26006
26007         getdate: correctly interpret "next monday" when run on a Monday
26008         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
26009         that e.g., "next tues" (when run on a tuesday) results in a date
26010         that is one week in the future, and not today's date.
26011         I.e., add a week when the wday is the same as the current one.
26012         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
26013         and earlier by Martin Bernreuther and Jan Minář.
26014         * tests/test-getdate.c (main): Check that "next DAY" is always in
26015         the future and that "last DAY" is always in the past.
26016
26017 2009-05-02  Jim Meyering  <meyering@redhat.com>
26018
26019         build: ensure that a release build fails when a submodule is unclean
26020         * top/maint.mk (no-submodule-changes): New rule.
26021         (alpha beta major): Depend on it.
26022
26023 2009-05-02  Bruno Haible  <bruno@clisp.org>
26024
26025         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
26026         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
26027         shell variable gl_fnmatch_required to detect which variant is
26028         requested.
26029         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
26030         gl_FUNC_FNMATCH_POSIX.
26031         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
26032         exclude fnmatch-posix.
26033
26034 2009-05-02  Bruno Haible  <bruno@clisp.org>
26035
26036         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
26037         * modules/mbsrtowcs (License): Change to LGPLv2+.
26038         * modules/strnlen1 (License): Likewise.
26039         Reported by Simon Josefsson.
26040
26041 2009-05-02  Bruno Haible  <bruno@clisp.org>
26042
26043         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
26044         "cross".
26045         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
26046         gnulib-tool was called with option --source-base=lib.
26047
26048 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26049
26050         Use automake *-local hooks without commands, for extensibility.
26051         * modules/localcharset (Makefile.am): Rename install-exec-local
26052         rule to install-exec-localcharset, and make it a prerequisite of
26053         install-exec-local.  Likewise, rename the uninstall-local rule to
26054         uninstall-localcharset, and make it a prerequisite of the former.
26055
26056 2009-05-01  Bruno Haible  <bruno@clisp.org>
26057
26058         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
26059         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26060         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
26061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
26062         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
26063         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26064         m4/locale-zh.m4, m4/codeset.m4.
26065
26066         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26067         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
26068         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26069         m4/locale-zh.m4.
26070
26071         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
26072         REPLACE_WCRTOMB if mbstate_t must be replaced.
26073         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
26074         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
26075
26076 2009-05-01  Bruno Haible  <bruno@clisp.org>
26077
26078         Avoid compiler warnings when redefining macros defined by <libintl.h>.
26079         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
26080         dngettext, dcngettext, textdomain, bindtextdomain,
26081         bind_textdomain_codeset): Undefine before redefining.
26082
26083 2009-04-30  Bruno Haible  <bruno@clisp.org>
26084
26085         Fix bug introduced on 2009-04-25.
26086         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
26087         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
26088         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
26089         is defined.
26090         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
26091         is defined.
26092         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
26093         is defined.
26094         Reported by Elbert_Pol <elbert.pol@gmail.com>.
26095
26096 2009-04-28  Bruno Haible  <bruno@clisp.org>
26097
26098         Comment tweaks.
26099         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
26100         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
26101         * lib/unicase.h (u*_casexfrm): Likewise.
26102         Reported by Paolo Bonzini.
26103
26104 2009-04-28  Bruno Haible  <bruno@clisp.org>
26105
26106         Fix a compilation error.
26107         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26108         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26109         Reported by Jim Meyering.
26110
26111 2009-04-27  Bruno Haible  <bruno@clisp.org>
26112
26113         New module 'libunistring'.
26114         * modules/libunistring: New file.
26115         * m4/libunistring.m4: New file.
26116         * MODULES.html.sh (Unicode string functions): Add it.
26117
26118 2009-04-27  Eric Blake  <ebb9@byu.net>
26119
26120         maint.mk: allow package-specific header to provide <config.h>
26121         * top/maint.mk (sc_require_config_h): New variable.
26122         (sc_require_config_h, sc_require_config_h_first): Use it.
26123
26124 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26125
26126         * top/maint.mk (sc_avoid_if_before_free): Except
26127         useless-if-before-free script.
26128
26129 2009-04-27  Eric Blake  <ebb9@byu.net>
26130
26131         maintainer-makefile: depend on all required helper scripts
26132         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
26133         useless-if-before-free.
26134         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
26135         version, rather than assuming gnulib checkout is available.
26136         Reported by Simen Josefsson.
26137
26138 2009-04-26  Bruno Haible  <bruno@clisp.org>
26139
26140         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
26141         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
26142         "../" or "..".
26143
26144 2009-04-26  Bruno Haible  <bruno@clisp.org>
26145
26146         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
26147         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
26148         AC_LIB_HAVE_LINKFLAGS.
26149
26150 2009-04-26  Bruno Haible  <bruno@clisp.org>
26151
26152         Simplify calling convention of u*_conv_from_encoding.
26153         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
26154         u32_conv_from_encoding): Expect a resultbuf argument and return the
26155         result directly as a pointer.
26156         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
26157         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
26158         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
26159         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
26160         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
26161         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26162         Update.
26163         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
26164         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
26165         * lib/vasnprintf.c (VASNPRINTF): Update.
26166         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
26167         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
26168         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
26169         * NEWS: Mention the change.
26170
26171 2009-04-26  Bruno Haible  <bruno@clisp.org>
26172
26173         Simplify calling convention of u*_conv_to_encoding.
26174         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26175         u32_conv_to_encoding): Expect a resultbuf argument and return the
26176         result directly as a pointer.
26177         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26178         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
26179         freeing scaled_offsets if mem_iconveha failed.
26180         * lib/unicase/u-casexfrm.h (FUNC): Update.
26181         * lib/uninorm/u-normxfrm.h (FUNC): Update.
26182         * lib/vasnprintf.c (VASNPRINTF): Update.
26183         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
26184         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
26185         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
26186         * NEWS: Mention the change.
26187
26188 2009-04-26  Bruno Haible  <bruno@clisp.org>
26189
26190         Avoid test failures on AIX and OSF/1.
26191         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
26192         malloc(0).
26193         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26194         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26195         Likewise.
26196         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
26197         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
26198         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
26199         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
26200         * doc/posix-functions/malloc.texi: Document the portability problem
26201         related to malloc(0).
26202
26203 2009-04-26  Bruno Haible  <bruno@clisp.org>
26204
26205         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
26206         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
26207         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
26208
26209 2009-04-25  Bruno Haible  <bruno@clisp.org>
26210
26211         Avoid link error when creating a namespace clean library.
26212         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
26213         as macro with arguments if already defined as an alias.
26214         * lib/signbitf.c (gl_signbitf): Don't undefine.
26215         * lib/signbitd.c (gl_signbitd): Don't undefine.
26216         * lib/signbitl.c (gl_signbitl): Don't undefine.
26217
26218 2009-04-25  Jim Meyering  <meyering@redhat.com>
26219
26220         vc-list-files: fix another quoting bug
26221         * build-aux/vc-list-files: Avoid sed backslash expansion
26222         of pathological directory names.
26223
26224 2009-04-25  Eric Blake  <ebb9@byu.net>
26225
26226         vc-list-files: fix shell quoting error
26227         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
26228         timestamp.
26229
26230 2009-04-25  Jim Meyering  <meyering@redhat.com>
26231
26232         vc-list-files: restore lost functionality with subdir argument
26233         * build-aux/vc-list-files: When given a non-"." sub-directory
26234         argument, substitute the $dir/ prefix back onto each resulting name.
26235         Otherwise, coreutils' root_tests check would fail.
26236
26237 2009-04-24  Eric Blake  <ebb9@byu.net>
26238
26239         vc-list-files: ignore git symlinks
26240         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
26241         than ls-files, to ignore git symlinks.
26242
26243         maint.mk: import improvements from m4
26244         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
26245         (move_if_change): Delete unused macro.
26246         (news-date-check, vc-diff-check): Support VPATH builds.
26247         (announcement): Likewise.  Split --bootstrap-tools list...
26248         (boostrap-tools): ...into separate list, which can be overridden
26249         in cfg.mk.
26250         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
26251         requiring dependency on useless-if-before-free module.
26252         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
26253         Support VPATH builds.
26254
26255 2009-04-24  Jim Meyering  <meyering@redhat.com>
26256
26257         maint.mk: remove coreutils-specific rules and variables
26258         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
26259         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
26260         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
26261
26262         maint.mk: remove obsolete rule
26263         * top/maint.mk (rel-check): Remove rule.
26264         (WGET, WGETFLAGS): Remove now-unused variables.
26265
26266 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26267
26268         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
26269         consistency.
26270
26271         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
26272         '$(PATH_SEPARATOR)' instead of ':'.
26273
26274 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26275
26276         * lib/getopt1.c (main): Use 'const' for static array.
26277
26278 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26279
26280         * top/maint.mk: Sync with coreutils.
26281         * NEWS: Explain incompatibilities.
26282
26283 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26284             Bruno Haible  <bruno@clisp.org>
26285
26286         Fix cross-compilation results.
26287         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
26288         statement, as third argument of AC_TRY_RUN.
26289         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26290         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26291         Likewise.
26292         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26293         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26294         Likewise.
26295         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26296         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
26297         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
26298
26299 2009-04-20  Bruno Haible  <bruno@clisp.org>
26300
26301         Avoid test failure on mingw.
26302         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
26303
26304 2009-04-20  Bruno Haible  <bruno@clisp.org>
26305
26306         Avoid compilation error on mingw.
26307         * modules/localename-tests (Depends-on): Add locale.
26308
26309 2009-04-19  Bruno Haible  <bruno@clisp.org>
26310
26311         Support for building a shared library on Windows platforms.
26312         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
26313         (main): Test the presence of UNINORM_NFC here.
26314         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
26315         (main): Test the presence of UNINORM_NFD here.
26316         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
26317         (main): Test the presence of UNINORM_NFKC here.
26318         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
26319         (main): Test the presence of UNINORM_NFKD here.
26320
26321 2009-04-19  Bruno Haible  <bruno@clisp.org>
26322
26323         Avoid a compiler warning.
26324         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
26325         Change type of variable 'sequence'.
26326
26327 2009-04-19  Bruno Haible  <bruno@clisp.org>
26328
26329         * modules/configmake (Makefile.am): When the contents of configmake.h
26330         does not change, arrange to preserve its modification time.
26331
26332 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26333
26334         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26335         gettext domain.
26336
26337 2009-04-16  Jim Meyering  <meyering@redhat.com>
26338
26339         useless-if-before-free: improve conversion code
26340         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26341         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26342
26343 2009-04-14  Bruno Haible  <bruno@clisp.org>
26344
26345         * modules/fcntl (Depends-on): Add extensions.
26346         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26347
26348 2009-04-12  Ben Pfaff  <blp@gnu.org>
26349
26350         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26351         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26352
26353 2009-03-20  Ben Pfaff  <blp@gnu.org>
26354
26355         Make rename replace existing destinations on Windows.
26356         * m4/rename.m4: Add test for Mingw.
26357         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26358         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
26359         * doc/posix-functions/rename.texi: Document.
26360
26361 2009-04-10  Bruno Haible  <bruno@clisp.org>
26362
26363         New include file "iconveh.h".
26364         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
26365         * lib/striconveh.h: Include it.
26366         (enum iconv_ilseq_handler): Remove definition.
26367         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26368         striconveh.h.
26369         * lib/striconveha.c: Include striconveh.h.
26370         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
26371         * modules/striconveh (Files): Add lib/iconveh.h.
26372         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
26373         lib/striconveh.h.
26374
26375 2009-04-10  Bruno Haible  <bruno@clisp.org>
26376
26377         * lib/uniconv.h: Update comment.
26378
26379 2009-04-10  Bruno Haible  <bruno@clisp.org>
26380
26381         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
26382         always.
26383         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26384         * lib/unistr/u16-mbtouc-aux.c: Likewise.
26385         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26386         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
26387         "unistring-notinline.h", so that the function gets defined always.
26388         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26389         * lib/unistr/u8-uctomb.c: Likewise.
26390         * lib/unistr/u16-mbtouc.c: Likewise.
26391         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26392         * lib/unistr/u16-uctomb.c: Likewise.
26393         * lib/unistr/u32-mbtouc.c: Likewise.
26394         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26395         * lib/unistr/u32-uctomb.c: Likewise.
26396
26397 2009-04-10  Bruno Haible  <bruno@clisp.org>
26398
26399         Mark 'utime' obsolete.
26400         * modules/utime (Status, Notice): New sections.
26401         Suggested by Jim Meyering.
26402
26403         Fix cross-compile guess for utime test.
26404         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
26405         autoconf.
26406         * doc/posix-functions/utime.texi: Give more precisions.
26407         Reported by Jan <ipif@ymail.com>.
26408
26409 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
26410
26411         filevercmp: correct today's change
26412         * lib/filevercmp.c: Also handle coreutils' test inputs.
26413         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
26414
26415         Fix regression in 'filevercmp' module. Thanks Sven Joachim
26416         for reporting it.
26417         * lib/filevercmp.c: Special handle for "", "." and "..".
26418         * tests/test-filevercmp.c: Enlarge the set suite.
26419
26420 2009-04-07  Jim Meyering  <meyering@redhat.com>
26421
26422         useless-if-before-free: show how to remove braced useless free, too
26423         * build-aux/useless-if-before-free: still only in a comment, though.
26424
26425 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
26426
26427         maint.mk: import changes to syntax-check macros from coreutils
26428         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
26429         Use them in the relevant macros.
26430
26431 2009-04-06  Bruno Haible  <bruno@clisp.org>
26432
26433         Fix unportable use of bit-fields.
26434         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
26435         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
26436         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
26437
26438 2009-04-06  Bruno Haible  <bruno@clisp.org>
26439
26440         Avoid test failures on AIX and OSF/1.
26441         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
26442         that malloc(0) = NULL.
26443         * tests/unicase/test-u8-tolower.c (check): Likewise.
26444         * tests/unicase/test-u8-totitle.c (check): Likewise.
26445         * tests/unicase/test-u8-toupper.c (check): Likewise.
26446         * tests/unicase/test-u16-casefold.c (check): Likewise.
26447         * tests/unicase/test-u16-tolower.c (check): Likewise.
26448         * tests/unicase/test-u16-totitle.c (check): Likewise.
26449         * tests/unicase/test-u16-toupper.c (check): Likewise.
26450         * tests/unicase/test-u32-casefold.c (check): Likewise.
26451         * tests/unicase/test-u32-tolower.c (check): Likewise.
26452         * tests/unicase/test-u32-totitle.c (check): Likewise.
26453         * tests/unicase/test-u32-toupper.c (check): Likewise.
26454         * tests/uninorm/test-u8-nfc.c (check): Likewise.
26455         * tests/uninorm/test-u8-nfd.c (check): Likewise.
26456         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
26457         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
26458         * tests/uninorm/test-u16-nfc.c (check): Likewise.
26459         * tests/uninorm/test-u16-nfd.c (check): Likewise.
26460         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
26461         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
26462         * tests/uninorm/test-u32-nfc.c (check): Likewise.
26463         * tests/uninorm/test-u32-nfd.c (check): Likewise.
26464         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
26465         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
26466
26467 2009-04-05  Bruno Haible  <bruno@clisp.org>
26468
26469         Work around an autoconf limitation.
26470         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26471         comment line if it would be longer than 3 KB.
26472
26473 2009-04-05  Bruno Haible  <bruno@clisp.org>
26474
26475         Avoid test failure with libiconv-1.13.
26476         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26477         of the expected test results.
26478
26479 2009-04-05  Bruno Haible  <bruno@clisp.org>
26480
26481         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26482         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26483         that it should be installed.
26484
26485 2009-04-05  Bruno Haible  <bruno@clisp.org>
26486
26487         * gnulib-tool: New option --copy-file.
26488         (func_usage): Document it.
26489         (func_dest_tmpfilename): Moved out of func_import.
26490         (func_add_file, func_update_file): New functions, extracted from
26491         func_import.
26492         (func_import): Update.
26493
26494 2009-04-05  Karl Berry  <karl@gnu.org>
26495
26496         * README: prominently mention gnulib-tool.
26497         Rearrange sections so getting the code is near the top.
26498
26499 2009-04-05  Bruno Haible  <bruno@clisp.org>
26500
26501         * lib/unicase.h: Mention u*_cmp2.
26502         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26503         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26504         * lib/unicase/ulc-casecmp.c: Likewise.
26505         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26506         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
26507         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
26508         unistr/u8-cmp.
26509         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26510         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
26511         unistr/u16-cmp.
26512         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
26513         unistr/u32-cmp.
26514
26515         * lib/uninorm.h: Mention u*_cmp2.
26516         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26517         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
26518         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
26519         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
26520         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
26521         unistr/u8-cmp.
26522         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
26523         unistr/u16-cmp.
26524         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
26525         unistr/u32-cmp.
26526
26527         New module 'unistr/u32-cmp2'.
26528         * lib/unistr/u32-cmp2.c: New file.
26529         * modules/unistr/u32-cmp2: New file.
26530
26531         New module 'unistr/u16-cmp2'.
26532         * lib/unistr/u16-cmp2.c: New file.
26533         * modules/unistr/u16-cmp2: New file.
26534
26535         New module 'unistr/u8-cmp2'.
26536         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
26537         * lib/unistr/u8-cmp2.c: New file.
26538         * lib/unistr/u-cmp2.h: New file.
26539         * modules/unistr/u8-cmp2: New file.
26540
26541 2009-04-05  Bruno Haible  <bruno@clisp.org>
26542
26543         * lib/unictype.h (uc_property_is_valid): New macro.
26544         * tests/unictype/test-pr_byname.c (main): Use it.
26545
26546         * lib/unistr.h: Doc fixes.
26547         * lib/uniconv.h: Doc fixes.
26548         * lib/unictype.h: Doc fixes.
26549
26550 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26551
26552         Port coreutils 7.2 to Solaris 8.
26553
26554         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
26555         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
26556         for Solaris 8.  This is a bit of a hack, as it means it's the
26557         caller's responsibility to add -lnsl if needed, but most likely it
26558         won't be needed since only getaddrinfo uses this and getaddrinfo
26559         isn't needed on Solaris 8.
26560
26561         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
26562         problem to Solaris 8 encountered with coreutils 7.2, which
26563         resulted in a message "fnmatch.c:292: warning: passing argument 4
26564         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
26565         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
26566
26567 2009-04-03  Simon Josefsson  <simon@josefsson.org>
26568
26569         * m4/ld-version-script.m4: Add FIXME comment.
26570
26571 2009-04-02  Simon Josefsson  <simon@josefsson.org>
26572
26573         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
26574         SOVERSION variable.
26575
26576 2009-04-02  Bruno Haible  <bruno@clisp.org>
26577
26578         * Makefile (info, html, dvi, pdf): Combine the rules.
26579         Suggested by Jim Meyering.
26580
26581 2009-04-01  Bruno Haible  <bruno@clisp.org>
26582
26583         * Makefile (info, html, dvi, pdf): New targets.
26584         Reported by Reuben Thomas <rrt@sc3d.org>.
26585
26586 2009-04-01  Bruno Haible  <bruno@clisp.org>
26587
26588         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
26589         can be put into PATH.
26590         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
26591
26592 2009-04-01  Bruno Haible  <bruno@clisp.org>
26593
26594         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
26595
26596 2009-04-01  Bruno Haible  <bruno@clisp.org>
26597
26598         Rename module 'visibility'.
26599         * modules/lib-symbol-visibility: Renamed from modules/visibility.
26600         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
26601         * doc/gnulib.texi: Update.
26602         * MODULES.html.sh (Misc): Update.
26603         * NEWS: Mention the change.
26604
26605 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26606
26607         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
26608         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
26609         Eric Blake <ebb9@byu.net> for review.
26610         * MODULES.html.sh: Add lib-msvc-compat.
26611         * doc/gnulib.texi: Link to new section.
26612         * m4/ld-output-def.m4: New file.
26613         * doc/ld-output-def.texi: New file.
26614
26615 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26616
26617         Rename ld-version-script to lib-symbol-versions.  Suggested by
26618         Bruno Haible <bruno@clisp.org>.
26619         * modules/ld-version-script: Renamed to lib-symbol-versions.
26620         * doc/ld-version-script.texi: Fix module name.
26621         * MODULES.html.sh: Add lib-symbol-versions.
26622
26623 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26624
26625         * modules/u64-tests: New file.
26626         * tests/test-u64.c: New file.
26627
26628 2009-03-04  Simon Josefsson  <simon@josefsson.org>
26629
26630         * MODULES.html.sh: Mention u64.
26631         * modules/u64: New module.
26632         * modules/crypto/sha512: Depend on u64 module instead of providing
26633         u64.h.
26634
26635 2009-03-27  Eric Blake  <ebb9@byu.net>
26636
26637         test-strerror: make debugging EAI_SYSTEM easier
26638         * modules/getaddrinfo-tests (Depends-on): Add strerror.
26639         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
26640         failure was EAI_SYSTEM.
26641
26642 2009-03-25  Bruno Haible  <bruno@clisp.org>
26643
26644         Fix a problem with --enable-relocatable on Solaris 7.
26645         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
26646         since 2008-02-24.
26647
26648 2009-03-25  Eric Blake  <ebb9@byu.net>
26649
26650         test-sockets: avoid gcc warning
26651         * tests/test-sockets.c (main): Silence compiler warning.
26652
26653 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26654
26655         New modules nproc, pthread, contributed by Glen Lenker.
26656
26657         * MODULES.html.sh: Add pthread, nproc.
26658         * lib/nproc.c: New file.
26659         * lib/nproc.h: New file.
26660         * lib/pthread.in.h: New file.
26661         * m4/pthread.m4: New file.
26662         * modules/nproc: New file.
26663         * modules/pthread: New file.
26664
26665 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26666
26667         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
26668         New variable.
26669
26670 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
26671
26672         filevercmp: handle simple~ and numbered.~3~ backup suffixes
26673         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
26674         * tests/test-filevercmp.c: Add tests for backup suffixes.
26675
26676 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26677
26678         * modules/stdlib (Depends-on): Add stdint, needed when defining
26679         struct random_data on, for example, HP-UX 10.20.  Reported by
26680         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26681
26682 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26683
26684         * lib/readline.c (readline): Call fflush on stdout after printing
26685         prompt.
26686
26687 2009-03-20  Bruno Haible  <bruno@clisp.org>
26688
26689         Remove dependency from 'close' module to -lws2_32 on native Windows.
26690         * lib/close-hook.h: New file.
26691         * lib/close-hook.c: New file.
26692         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
26693         w32sock.h.
26694         (_gl_close_fd_maybe_socket): Remove function.
26695         (rpl_close): Invoke execute_all_close_hooks instead of
26696         _gl_close_fd_maybe_socket.
26697         * lib/sockets.c: Include close-hook.h, w32sock.h.
26698         (close_fd_maybe_socket): New function, essentially from lib/close.c.
26699         (close_sockets_hook): New variable.
26700         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
26701         (gl_sockets_cleanup): Unregister it.
26702         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
26703         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
26704         * modules/close-hook: New file.
26705         * modules/close (Files): Remove lib/w32sock.h.
26706         (Depends-on): Add close-hook.
26707         (Link): Remove section.
26708         * modules/sockets (Files): Add lib/w32sock.h.
26709         (Depends-on): Add close-hook.
26710         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
26711         invocation.
26712         * NEWS: Mention that LIB_CLOSE is gone.
26713
26714 2009-03-23  Eric Blake  <ebb9@byu.net>
26715
26716         signal-tests: test previous patch
26717         * tests/test-signal.c: New file.
26718         * modules/signal-tests: Likewise.
26719
26720         signal.h: always support 'volatile sig_atomic_t'
26721         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
26722         (gl_SIGNAL_H_DEFAULTS): Add a default.
26723         * modules/signal (Makefile.am): Substitute if needed.
26724         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
26725         users can blindly add volatile.
26726         * doc/posix-headers/signal.texi (signal.h): Document it.
26727         Reported by Matthew Woehlke.
26728
26729 2009-03-23  Jim Meyering  <meyering@redhat.com>
26730
26731         pathmax: PATH_MAX: use pathconf only when available
26732         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
26733         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
26734         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
26735         This avoids a link failure in a PSP cross-compilation environment
26736         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
26737
26738         * lib/vasnprintf.c (divide): Fix typo in comment.
26739
26740 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26741
26742         * gnulib-tool (func_filter_filelist): Fix comment.
26743
26744 2009-03-20  Bruno Haible  <bruno@clisp.org>
26745
26746         Make sockets.h self-contained.
26747         * lib/sockets.c: Include sockets.h first.
26748         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
26749
26750 2009-03-19  Eric Blake  <ebb9@byu.net>
26751
26752         doc: mention more functions added in cygwin 1.7.0
26753         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
26754         addition.
26755         * doc/posix-functions/log2f.texi: Likewise.
26756
26757 2009-03-19  Jim Meyering  <meyering@redhat.com>
26758
26759         fsusage: avoid syntax error due to statement-before-declaration
26760         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
26761         after all declarations.  Reported by Matthew Woehlke in
26762         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
26763
26764 2009-03-18  Eric Blake  <ebb9@byu.net>
26765
26766         build-aux/compile: sync from automake
26767         * build-aux/compile: New file, from automake.
26768         * config/srclist.txt: Mention build-aux/compile.
26769
26770 2009-03-17  Bruno Haible  <bruno@clisp.org>
26771
26772         * lib/git-merge-changelog.c: Fix typo in comment.
26773         Reported by Reuben Thomas <rrt@sc3d.org>.
26774
26775 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
26776
26777         * m4/regex.m4: update and improve help for
26778         --without-included-regex.
26779
26780 2009-03-17  Simon Josefsson  <simon@josefsson.org>
26781
26782         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
26783         failure on missing include files.
26784
26785 2009-03-17  Eric Blake  <ebb9@byu.net>
26786
26787         doc: mention more functions added in cygwin 1.7.0
26788         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
26789         addition.
26790         * doc/posix-functions/fwscanf.texi: Likewise.
26791         * doc/posix-functions/swprintf.texi: Likewise.
26792         * doc/posix-functions/swscanf.texi: Likewise.
26793         * doc/posix-functions/vfwprintf.texi: Likewise.
26794         * doc/posix-functions/vfwscanf.texi: Likewise.
26795         * doc/posix-functions/vswprintf.texi: Likewise.
26796         * doc/posix-functions/vswscanf.texi: Likewise.
26797         * doc/posix-functions/vwprintf.texi: Likewise.
26798         * doc/posix-functions/vwscanf.texi: Likewise.
26799         * doc/posix-functions/wcscasecmp.texi: Likewise.
26800         * doc/posix-functions/wcsdup.texi: Likewise.
26801         * doc/posix-functions/wcsftime.texi: Likewise.
26802         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26803         * doc/posix-functions/wprintf.texi: Likewise.
26804         * doc/posix-functions/wscanf.texi: Likewise.
26805         * doc/glibc-functions/gethostbyname2.texi: Likewise.
26806
26807 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26808
26809         maint.mk: really add $(AM_MAKEFLAGS)
26810         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
26811         was inadvertently omitted in the last commit.
26812         Spotted by Bruno Haible.
26813
26814         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
26815         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
26816         $(AM_MAKEFLAGS)' rather than plain `make'.
26817
26818         gnulib-tool: execute $MAKE not make
26819         * gnulib-tool: Default $MAKE to 'make'.
26820         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
26821         than make.  Initialize $MAKE in the do-autobuild script.
26822
26823         gnulib-tool: use $MAKE not make in generated files
26824         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
26825         make, in generated files.  Initialize $MAKE in the do-autobuild
26826         script.
26827
26828         * top/GNUmakefile (_have-git-version-gen): Fix typo.
26829
26830         GNUmakefile: disable parallelism only for multiple, recursive targets
26831         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
26832         additions in the Makefile.
26833         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
26834         by Automake.
26835         (.NOTPARALLEL): Only disable parallel builds if multiple targets
26836         are listed on the command line and at least one of them is
26837         listed in $(ALL_RECURSIVE_TARGETS).
26838
26839 2009-03-14  Bruno Haible  <bruno@clisp.org>
26840
26841         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
26842         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
26843         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
26844         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
26845         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
26846         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
26847         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
26848         unistr/u8-uctomb.
26849         * modules/unistr/u8-strchr (Depends-on): Likewise.
26850         * modules/unistr/u8-strrchr (Depends-on): Likewise.
26851         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
26852         unistr/u16-uctomb.
26853         * modules/unistr/u16-strchr (Depends-on): Likewise.
26854         * modules/unistr/u16-strrchr (Depends-on): Likewise.
26855
26856 2009-03-12  Bruno Haible  <bruno@clisp.org>
26857
26858         Work around select() bug on Interix 3.5.
26859         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
26860         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
26861         * m4/select.m4: New file.
26862         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
26863         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
26864         * modules/select (Files): Add m4/select.m4.
26865         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
26866         * modules/nanosleep (Depends-on): Add select.
26867         * modules/poll (Depends-on): Likewise.
26868         * doc/posix-functions/select.texi: Mention the Interix bug.
26869         Reported by Markus Duft <mduft@gentoo.org>.
26870
26871         * lib/select.c: Renamed from lib/winsock-select.c.
26872         * modules/select (Files): Add lib/select.c, remove
26873         lib/winsock-select.c.
26874         (configure.ac): Update.
26875
26876 2009-03-12  Jim Meyering  <meyering@redhat.com>
26877
26878         avoid gcc warnings about unused macro definitions
26879         * lib/readtokens.c (STREQ): Remove unused definition.
26880         * lib/xmalloc.c (SIZE_MAX): Likewise.
26881         * lib/openat-die.c (N_): Likewise.
26882         * lib/mountlist.c (SIZE_MAX): Remove definition.
26883         Instead, include <stdint.h>.
26884         * lib/readutmp.c: Likewise.
26885         * modules/readutmp (Depends-on): Add stdint.
26886         * modules/mountlist (Depends-on): Add stdint.
26887         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
26888
26889 2009-03-10  Bruno Haible  <bruno@clisp.org>
26890
26891         Tests for module 'mbmemcasecoll'.
26892         * modules/mbmemcasecoll-tests: New file.
26893         * tests/test-mbmemcasecoll1.sh: New file.
26894         * tests/test-mbmemcasecoll2.sh: New file.
26895         * tests/test-mbmemcasecoll3.sh: New file.
26896         * tests/test-mbmemcasecoll.c: New file.
26897
26898         New module 'mbmemcasecoll'.
26899         * lib/mbmemcasecoll.h: New file.
26900         * lib/mbmemcasecoll.c: New file.
26901         * modules/mbmemcasecoll: New file.
26902
26903         * tests/test-mbmemcasecmp.h: New file, extracted from
26904         tests/test-mbmemcasecmp.c.
26905         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
26906         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
26907         (main): Update.
26908         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
26909
26910 2009-03-09  Bruno Haible  <bruno@clisp.org>
26911
26912         Tests for module 'mbmemcasecmp'.
26913         * modules/mbmemcasecmp-tests: New file.
26914         * tests/test-mbmemcasecmp1.sh: New file.
26915         * tests/test-mbmemcasecmp2.sh: New file.
26916         * tests/test-mbmemcasecmp3.sh: New file.
26917         * tests/test-mbmemcasecmp.c: New file.
26918
26919         New module 'mbmemcasecmp'.
26920         * lib/mbmemcasecmp.h: New file.
26921         * lib/mbmemcasecmp.c: New file.
26922         * modules/mbmemcasecmp: New file.
26923
26924 2009-03-09  Bruno Haible  <bruno@clisp.org>
26925
26926         Tests for module 'unicase/ulc-casecoll'.
26927         * modules/unicase/ulc-casecoll-tests: New file.
26928         * tests/unicase/test-ulc-casecoll1.sh: New file.
26929         * tests/unicase/test-ulc-casecoll2.sh: New file.
26930         * tests/unicase/test-ulc-casecoll.c: New file.
26931
26932         New module 'unicase/ulc-casecoll'.
26933         * lib/unicase.h (ulc_casecoll): New declaration.
26934         * lib/unicase/ulc-casecoll.c: New file.
26935         * modules/unicase/ulc-casecoll: New file.
26936
26937         New module 'unicase/ulc-casexfrm'.
26938         * lib/unicase.h (ulc_casexfrm): New declaration.
26939         * lib/unicase/ulc-casexfrm.c: New file.
26940         * modules/unicase/ulc-casexfrm: New file.
26941
26942 2009-03-09  Bruno Haible  <bruno@clisp.org>
26943
26944         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
26945         invocations.
26946
26947         * m4/mbscasecmp.m4: Remove file.
26948         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
26949         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
26950
26951         * m4/mbscasestr.m4: Remove file.
26952         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
26953         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
26954
26955         * m4/mbschr.m4: Remove file.
26956         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
26957         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
26958
26959         * m4/mbscspn.m4: Remove file.
26960         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
26961         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
26962
26963         * m4/mbslen.m4: Remove file.
26964         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
26965         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
26966
26967         * m4/mbsncasecmp.m4: Remove file.
26968         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
26969         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
26970
26971         * m4/mbsnlen.m4: Remove file.
26972         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
26973         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
26974
26975         * m4/mbspbrk.m4: Remove file.
26976         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
26977         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
26978
26979         * m4/mbspcasecmp.m4: Remove file.
26980         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
26981         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
26982
26983         * m4/mbsrchr.m4: Remove file.
26984         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
26985         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
26986
26987         * m4/mbssep.m4: Remove file.
26988         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
26989         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
26990
26991         * m4/mbsspn.m4: Remove file.
26992         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
26993         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
26994
26995         * m4/mbsstr.m4: Remove file.
26996         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
26997         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
26998
26999         * m4/mbstok_r.m4: Remove file.
27000         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
27001         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
27002
27003         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
27004
27005         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
27006         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
27007
27008         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
27009
27010 2009-03-08  Bruno Haible  <bruno@clisp.org>
27011
27012         Tests for module 'unicase/ulc-casecmp'.
27013         * modules/unicase/ulc-casecmp-tests: New file.
27014         * tests/unicase/test-ulc-casecmp1.sh: New file.
27015         * tests/unicase/test-ulc-casecmp2.sh: New file.
27016         * tests/unicase/test-ulc-casecmp.c: New file.
27017
27018         New module 'unicase/ulc-casecmp'.
27019         * lib/unicase.h (ulc_casecmp): New declaration.
27020         * lib/unicase/ulc-casecmp.c: New file.
27021         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
27022         'const SRC_UNIT *'.
27023         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
27024         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
27025         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
27026         * modules/unicase/ulc-casecmp: New file.
27027
27028         Tests for module 'unicase/u32-is-cased'.
27029         * modules/unicase/u32-is-cased-tests: New file.
27030         * tests/unicase/test-u32-is-cased.c: New file.
27031
27032         Tests for module 'unicase/u16-is-cased'.
27033         * modules/unicase/u16-is-cased-tests: New file.
27034         * tests/unicase/test-u16-is-cased.c: New file.
27035
27036         Tests for module 'unicase/u8-is-cased'.
27037         * modules/unicase/u8-is-cased-tests: New file.
27038         * tests/unicase/test-u8-is-cased.c: New file.
27039         * tests/unicase/test-is-cased.h: New file.
27040
27041         New module 'unicase/u32-is-cased'.
27042         * lib/unicase/u32-is-cased.c: New file.
27043         * modules/unicase/u32-is-cased: New file.
27044
27045         New module 'unicase/u16-is-cased'.
27046         * lib/unicase/u16-is-cased.c: New file.
27047         * modules/unicase/u16-is-cased: New file.
27048
27049         New module 'unicase/u8-is-cased'.
27050         * lib/unicase/u8-is-cased.c: New file.
27051         * lib/unicase/u-is-cased.h: New file.
27052         * modules/unicase/u8-is-cased: New file.
27053
27054         Tests for module 'unicase/u32-is-casefolded'.
27055         * modules/unicase/u32-is-casefolded-tests: New file.
27056         * tests/unicase/test-u32-is-casefolded.c: New file.
27057
27058         Tests for module 'unicase/u16-is-casefolded'.
27059         * modules/unicase/u16-is-casefolded-tests: New file.
27060         * tests/unicase/test-u16-is-casefolded.c: New file.
27061
27062         Tests for module 'unicase/u8-is-casefolded'.
27063         * modules/unicase/u8-is-casefolded-tests: New file.
27064         * tests/unicase/test-u8-is-casefolded.c: New file.
27065         * tests/unicase/test-is-casefolded.h: New file.
27066
27067         New module 'unicase/u32-is-casefolded'.
27068         * lib/unicase/u32-is-casefolded.c: New file.
27069         * modules/unicase/u32-is-casefolded: New file.
27070
27071         New module 'unicase/u16-is-casefolded'.
27072         * lib/unicase/u16-is-casefolded.c: New file.
27073         * modules/unicase/u16-is-casefolded: New file.
27074
27075         New module 'unicase/u8-is-casefolded'.
27076         * lib/unicase/u8-is-casefolded.c: New file.
27077         * modules/unicase/u8-is-casefolded: New file.
27078
27079         Tests for module 'unicase/u32-is-titlecase'.
27080         * modules/unicase/u32-is-titlecase-tests: New file.
27081         * tests/unicase/test-u32-is-titlecase.c: New file.
27082
27083         Tests for module 'unicase/u16-is-titlecase'.
27084         * modules/unicase/u16-is-titlecase-tests: New file.
27085         * tests/unicase/test-u16-is-titlecase.c: New file.
27086
27087         Tests for module 'unicase/u8-is-titlecase'.
27088         * modules/unicase/u8-is-titlecase-tests: New file.
27089         * tests/unicase/test-u8-is-titlecase.c: New file.
27090         * tests/unicase/test-is-titlecase.h: New file.
27091
27092         New module 'unicase/u32-is-titlecase'.
27093         * lib/unicase/u32-is-titlecase.c: New file.
27094         * modules/unicase/u32-is-titlecase: New file.
27095
27096         New module 'unicase/u16-is-titlecase'.
27097         * lib/unicase/u16-is-titlecase.c: New file.
27098         * modules/unicase/u16-is-titlecase: New file.
27099
27100         New module 'unicase/u8-is-titlecase'.
27101         * lib/unicase/u8-is-titlecase.c: New file.
27102         * modules/unicase/u8-is-titlecase: New file.
27103
27104         Tests for module 'unicase/u32-is-lowercase'.
27105         * modules/unicase/u32-is-lowercase-tests: New file.
27106         * tests/unicase/test-u32-is-lowercase.c: New file.
27107
27108         Tests for module 'unicase/u16-is-lowercase'.
27109         * modules/unicase/u16-is-lowercase-tests: New file.
27110         * tests/unicase/test-u16-is-lowercase.c: New file.
27111
27112         Tests for module 'unicase/u8-is-lowercase'.
27113         * modules/unicase/u8-is-lowercase-tests: New file.
27114         * tests/unicase/test-u8-is-lowercase.c: New file.
27115         * tests/unicase/test-is-lowercase.h: New file.
27116
27117         New module 'unicase/u32-is-lowercase'.
27118         * lib/unicase/u32-is-lowercase.c: New file.
27119         * modules/unicase/u32-is-lowercase: New file.
27120
27121         New module 'unicase/u16-is-lowercase'.
27122         * lib/unicase/u16-is-lowercase.c: New file.
27123         * modules/unicase/u16-is-lowercase: New file.
27124
27125         New module 'unicase/u8-is-lowercase'.
27126         * lib/unicase/u8-is-lowercase.c: New file.
27127         * modules/unicase/u8-is-lowercase: New file.
27128
27129         Tests for module 'unicase/u32-is-uppercase'.
27130         * modules/unicase/u32-is-uppercase-tests: New file.
27131         * tests/unicase/test-u32-is-uppercase.c: New file.
27132
27133         Tests for module 'unicase/u16-is-uppercase'.
27134         * modules/unicase/u16-is-uppercase-tests: New file.
27135         * tests/unicase/test-u16-is-uppercase.c: New file.
27136
27137         Tests for module 'unicase/u8-is-uppercase'.
27138         * modules/unicase/u8-is-uppercase-tests: New file.
27139         * tests/unicase/test-u8-is-uppercase.c: New file.
27140         * tests/unicase/test-is-uppercase.h: New file.
27141
27142         New module 'unicase/u32-is-uppercase'.
27143         * lib/unicase/u32-is-uppercase.c: New file.
27144         * modules/unicase/u32-is-uppercase: New file.
27145
27146         New module 'unicase/u16-is-uppercase'.
27147         * lib/unicase/u16-is-uppercase.c: New file.
27148         * modules/unicase/u16-is-uppercase: New file.
27149
27150         New module 'unicase/u8-is-uppercase'.
27151         * lib/unicase/u8-is-uppercase.c: New file.
27152         * modules/unicase/u8-is-uppercase: New file.
27153
27154         New module 'unicase/u32-is-invariant'.
27155         * lib/unicase/u32-is-invariant.c: New file.
27156         * modules/unicase/u32-is-invariant: New file.
27157
27158         New module 'unicase/u16-is-invariant'.
27159         * lib/unicase/u16-is-invariant.c: New file.
27160         * modules/unicase/u16-is-invariant: New file.
27161
27162         New module 'unicase/u8-is-invariant'.
27163         * lib/unicase/u8-is-invariant.c: New file.
27164         * lib/unicase/invariant.h: New file.
27165         * lib/unicase/u-is-invariant.h: New file.
27166         * modules/unicase/u8-is-invariant: New file.
27167
27168         Tests for module 'unicase/u32-casecoll'.
27169         * modules/unicase/u32-casecoll-tests: New file.
27170         * tests/unicase/test-u32-casecoll.c: New file.
27171
27172         Tests for module 'unicase/u16-casecoll'.
27173         * modules/unicase/u16-casecoll-tests: New file.
27174         * tests/unicase/test-u16-casecoll.c: New file.
27175
27176         Tests for module 'unicase/u8-casecoll'.
27177         * modules/unicase/u8-casecoll-tests: New file.
27178         * tests/unicase/test-u8-casecoll.c: New file.
27179
27180         New module 'unicase/u32-casecoll'.
27181         * lib/unicase/u32-casecoll.c: New file.
27182         * modules/unicase/u32-casecoll: New file.
27183
27184         New module 'unicase/u16-casecoll'.
27185         * lib/unicase/u16-casecoll.c: New file.
27186         * modules/unicase/u16-casecoll: New file.
27187
27188         New module 'unicase/u8-casecoll'.
27189         * lib/unicase/u8-casecoll.c: New file.
27190         * lib/unicase/u-casecoll.h: New file.
27191         * modules/unicase/u8-casecoll: New file.
27192
27193         New module 'unicase/u32-casexfrm'.
27194         * lib/unicase/u32-casexfrm.c: New file.
27195         * modules/unicase/u32-casexfrm: New file.
27196
27197         New module 'unicase/u16-casexfrm'.
27198         * lib/unicase/u16-casexfrm.c: New file.
27199         * modules/unicase/u16-casexfrm: New file.
27200
27201         New module 'unicase/u8-casexfrm'.
27202         * lib/unicase/u8-casexfrm.c: New file.
27203         * lib/unicase/u-casexfrm.h: New file.
27204         * modules/unicase/u8-casexfrm: New file.
27205
27206         Tests for module 'unicase/u32-casecmp'.
27207         * modules/unicase/u32-casecmp-tests: New file.
27208         * tests/unicase/test-u32-casecmp.c: New file.
27209
27210         Tests for module 'unicase/u16-casecmp'.
27211         * modules/unicase/u16-casecmp-tests: New file.
27212         * tests/unicase/test-u16-casecmp.c: New file.
27213
27214         Tests for module 'unicase/u8-casecmp'.
27215         * modules/unicase/u8-casecmp-tests: New file.
27216         * tests/unicase/test-u8-casecmp.c: New file.
27217         * tests/unicase/test-casecmp.h: New file.
27218
27219         New module 'unicase/u32-casecmp'.
27220         * lib/unicase/u32-casecmp.c: New file.
27221         * modules/unicase/u32-casecmp: New file.
27222
27223         New module 'unicase/u16-casecmp'.
27224         * lib/unicase/u16-casecmp.c: New file.
27225         * modules/unicase/u16-casecmp: New file.
27226
27227         New module 'unicase/u8-casecmp'.
27228         * lib/unicase/u8-casecmp.c: New file.
27229         * lib/unicase/u-casecmp.h: New file.
27230         * modules/unicase/u8-casecmp: New file.
27231
27232         Tests for module 'unicase/u32-casefold'.
27233         * modules/unicase/u32-casefold-tests: New file.
27234         * tests/unicase/test-u32-casefold.c: New file.
27235
27236         Tests for module 'unicase/u16-casefold'.
27237         * modules/unicase/u16-casefold-tests: New file.
27238         * tests/unicase/test-u16-casefold.c: New file.
27239
27240         Tests for module 'unicase/u8-casefold'.
27241         * modules/unicase/u8-casefold-tests: New file.
27242         * tests/unicase/test-u8-casefold.c: New file.
27243
27244         New module 'unicase/u32-casefold'.
27245         * lib/unicase/u32-casefold.c: New file.
27246         * modules/unicase/u32-casefold: New file.
27247
27248         New module 'unicase/u16-casefold'.
27249         * lib/unicase/u16-casefold.c: New file.
27250         * modules/unicase/u16-casefold: New file.
27251
27252         New module 'unicase/u8-casefold'.
27253         * lib/unicase/u8-casefold.c: New file.
27254         * lib/unicase/u-casefold.h: New file.
27255         * modules/unicase/u8-casefold: New file.
27256
27257         New module 'unicase/tocasefold'.
27258         * lib/unicase/casefold.h: New file.
27259         * lib/unicase/tocasefold.c: New file.
27260         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
27261         * modules/unicase/tocasefold: New file.
27262
27263         Tests for module 'unicase/u32-totitle'.
27264         * modules/unicase/u32-totitle-tests: New file.
27265         * tests/unicase/test-u32-totitle.c: New file.
27266
27267         Tests for module 'unicase/u16-totitle'.
27268         * modules/unicase/u16-totitle-tests: New file.
27269         * tests/unicase/test-u16-totitle.c: New file.
27270
27271         Tests for module 'unicase/u8-totitle'.
27272         * modules/unicase/u8-totitle-tests: New file.
27273         * tests/unicase/test-u8-totitle.c: New file.
27274
27275         New module 'unicase/u32-totitle'.
27276         * lib/unicase/u32-totitle.c: New file.
27277         * modules/unicase/u32-totitle: New file.
27278
27279         New module 'unicase/u16-totitle'.
27280         * lib/unicase/u16-totitle.c: New file.
27281         * modules/unicase/u16-totitle: New file.
27282
27283         New module 'unicase/u8-totitle'.
27284         * lib/unicase/u8-totitle.c: New file.
27285         * lib/unicase/u-totitle.h: New file.
27286         * modules/unicase/u8-totitle: New file.
27287
27288         Tests for module 'unicase/u32-tolower'.
27289         * modules/unicase/u32-tolower-tests: New file.
27290         * tests/unicase/test-u32-tolower.c: New file.
27291
27292         Tests for module 'unicase/u16-tolower'.
27293         * modules/unicase/u16-tolower-tests: New file.
27294         * tests/unicase/test-u16-tolower.c: New file.
27295
27296         Tests for module 'unicase/u8-tolower'.
27297         * modules/unicase/u8-tolower-tests: New file.
27298         * tests/unicase/test-u8-tolower.c: New file.
27299
27300         New module 'unicase/u32-tolower'.
27301         * lib/unicase/u32-tolower.c: New file.
27302         * modules/unicase/u32-tolower: New file.
27303
27304         New module 'unicase/u16-tolower'.
27305         * lib/unicase/u16-tolower.c: New file.
27306         * modules/unicase/u16-tolower: New file.
27307
27308         New module 'unicase/u8-tolower'.
27309         * lib/unicase/u8-tolower.c: New file.
27310         * modules/unicase/u8-tolower: New file.
27311
27312         Tests for module 'unicase/u32-toupper'.
27313         * modules/unicase/u32-toupper-tests: New file.
27314         * tests/unicase/test-u32-toupper.c: New file.
27315
27316         Tests for module 'unicase/u16-toupper'.
27317         * modules/unicase/u16-toupper-tests: New file.
27318         * tests/unicase/test-u16-toupper.c: New file.
27319
27320         Tests for module 'unicase/u8-toupper'.
27321         * modules/unicase/u8-toupper-tests: New file.
27322         * tests/unicase/test-u8-toupper.c: New file.
27323
27324         New module 'unicase/u32-toupper'.
27325         * lib/unicase/u32-toupper.c: New file.
27326         * modules/unicase/u32-toupper: New file.
27327
27328         New module 'unicase/u16-toupper'.
27329         * lib/unicase/u16-toupper.c: New file.
27330         * modules/unicase/u16-toupper: New file.
27331
27332         New module 'unicase/u8-toupper'.
27333         * lib/unicase/u8-toupper.c: New file.
27334         * modules/unicase/u8-toupper: New file.
27335
27336         New module 'unicase/u32-casemap'.
27337         * lib/unicase/u32-casemap.c: New file.
27338         * modules/unicase/u32-casemap: New file.
27339
27340         New module 'unicase/u16-casemap'.
27341         * lib/unicase/u16-casemap.c: New file.
27342         * modules/unicase/u16-casemap: New file.
27343
27344         New module 'unicase/u8-casemap'.
27345         * lib/unicase/unicasemap.h: New file.
27346         * lib/unicase/u8-casemap.c: New file.
27347         * lib/unicase/u-casemap.h: New file.
27348         * modules/unicase/u8-casemap: New file.
27349
27350         New module 'unicase/special-casing'.
27351         * lib/unicase/special-casing.h: New file.
27352         * lib/unicase/special-casing.c: New file.
27353         * lib/unicase/special-casing-table.gperf: New file, generated by
27354         gen-uni-tables.c.
27355         * modules/unicase/special-casing: New file.
27356
27357         Tests for module 'unicase/locale-language'.
27358         * modules/unicase/locale-language-tests: New file.
27359         * tests/unicase/test-locale-language.sh: New file.
27360         * tests/unicase/test-locale-language.c: New file.
27361
27362         New module 'unicase/locale-language'.
27363         * lib/unicase/locale-language.c: New file.
27364         * lib/unicase/locale-languages.gperf: New file.
27365         * modules/unicase/locale-language: New file.
27366
27367         Generate more tables for case conversion and case folding.
27368         * lib/gen-uni-tables.c (SCC_*): New enum items.
27369         (struct special_casing_rule): New type.
27370         (casing_rules, num_casing_rules, allocated_casing_rules): New
27371         variables.
27372         (add_casing_rule, fill_casing_rules): New functions.
27373         (struct casefold_rule): New type.
27374         (casefolding_rules, num_casefolding_rules,
27375         allocated_casefolding_rules): New variables.
27376         (fill_casefolding_rules): New function.
27377         (unicode_casefold): New variable.
27378         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
27379         sort_casing_rules, output_casing_rules): New functions.
27380         (main): Accept to more arguments: SpecialCasing.txt and
27381         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
27382         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
27383         Output mapping for casefolding.
27384
27385         * lib/unicase.h: Include stdbool.h, uninorm.h.
27386         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
27387         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
27388         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
27389         arguments.
27390         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
27391         resultp arguments.
27392         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
27393         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
27394         resultp arguments.
27395         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
27396         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
27397         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
27398         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
27399         declarations.
27400         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
27401
27402 2009-03-08  Bruno Haible  <bruno@clisp.org>
27403
27404         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27405         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
27406         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
27407         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27408
27409 2009-03-07  Bruno Haible  <bruno@clisp.org>
27410
27411         Adjust u*_normcmp, u*_normcoll API.
27412         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27413         u16_normcoll, u32_normcoll): Change failure conventions.
27414         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
27415         errno and return -1.
27416         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27417
27418 2009-03-07  Bruno Haible  <bruno@clisp.org>
27419
27420         Tests for module 'uninorm/u32-normcoll'.
27421         * modules/uninorm/u32-normcoll-tests: New file.
27422         * tests/uninorm/test-u32-normcoll.c: New file.
27423
27424         Tests for module 'uninorm/u16-normcoll'.
27425         * modules/uninorm/u16-normcoll-tests: New file.
27426         * tests/uninorm/test-u16-normcoll.c: New file.
27427
27428         Tests for module 'uninorm/u8-normcoll'.
27429         * modules/uninorm/u8-normcoll-tests: New file.
27430         * tests/uninorm/test-u8-normcoll.c: New file.
27431
27432 2009-03-07  Bruno Haible  <bruno@clisp.org>
27433
27434         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
27435         tests/uninorm/test-u32-normcmp.c.
27436         * tests/uninorm/test-u32-normcmp.c: Include it.
27437         (test_nonascii): New function, extracted from main. Add some more
27438         tests.
27439         (main): Invoke test_ascii and test_nonascii.
27440         * modules/uninorm/u32-normcmp-tests (Files): Add
27441         tests/uninorm/test-u32-normcmp.h.
27442         (Depends-on): Remove uninorm/u32-normcmp.
27443
27444         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
27445         tests/uninorm/test-u16-normcmp.c.
27446         * tests/uninorm/test-u16-normcmp.c: Include it.
27447         (test_nonascii): New function, extracted from main. Add some more
27448         tests.
27449         (main): Invoke test_ascii and test_nonascii.
27450         * modules/uninorm/u16-normcmp-tests (Files): Add
27451         tests/uninorm/test-u16-normcmp.h.
27452         (Depends-on): Remove uninorm/u16-normcmp.
27453
27454         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
27455         tests/uninorm/test-u8-normcmp.c.
27456         * tests/uninorm/test-u8-normcmp.c: Include it.
27457         (test_nonascii): New function, extracted from main. Add some more
27458         tests.
27459         (main): Invoke test_ascii and test_nonascii.
27460         * modules/uninorm/u8-normcmp-tests (Files): Add
27461         tests/uninorm/test-u8-normcmp.h.
27462         (Depends-on): Remove uninorm/u8-normcmp.
27463
27464 2009-03-07  Bruno Haible  <bruno@clisp.org>
27465
27466         New module 'uninorm/u32-normcoll'.
27467         * lib/uninorm/u32-normcoll.c: New file.
27468         * modules/uninorm/u32-normcoll: New file.
27469
27470         New module 'uninorm/u16-normcoll'.
27471         * lib/uninorm/u16-normcoll.c: New file.
27472         * modules/uninorm/u16-normcoll: New file.
27473
27474         New module 'uninorm/u8-normcoll'.
27475         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27476         declarations.
27477         * lib/uninorm/u8-normcoll.c: New file.
27478         * lib/uninorm/u-normcoll.h: New file.
27479         * modules/uninorm/u8-normcoll: New file.
27480
27481         New module 'uninorm/u32-normxfrm'.
27482         * lib/uninorm/u32-normxfrm.c: New file.
27483         * modules/uninorm/u32-normxfrm: New file.
27484
27485         New module 'uninorm/u16-normxfrm'.
27486         * lib/uninorm/u16-normxfrm.c: New file.
27487         * modules/uninorm/u16-normxfrm: New file.
27488
27489         New module 'uninorm/u8-normxfrm'.
27490         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27491         declarations.
27492         * lib/uninorm/u8-normxfrm.c: New file.
27493         * lib/uninorm/u-normxfrm.h: New file.
27494         * modules/uninorm/u8-normxfrm: New file.
27495
27496 2009-03-07  Bruno Haible  <bruno@clisp.org>
27497
27498         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27499         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27500         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27501
27502 2009-03-07  Bruno Haible  <bruno@clisp.org>
27503
27504         New module 'memxfrm'.
27505         * lib/memxfrm.h: New file.
27506         * lib/memxfrm.c: New file.
27507         * modules/memxfrm: New file.
27508
27509 2009-03-07  Bruno Haible  <bruno@clisp.org>
27510
27511         New module 'memcmp2'.
27512         * lib/memcmp2.h: New file.
27513         * lib/memcmp2.c: New file.
27514         * modules/memcmp2: New file.
27515
27516 2009-03-07  Bruno Haible  <bruno@clisp.org>
27517
27518         Tests for module 'uninorm/decomposing-form'.
27519         * modules/uninorm/decomposing-form-tests: New file.
27520         * tests/uninorm/test-decomposing-form.c: New file.
27521
27522         New module 'uninorm/decomposing-form'.
27523         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
27524         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
27525         Add 'decomposing_variant' field.
27526         * lib/uninorm/decomposing-form.c: New file.
27527         * lib/uninorm/nfc.c (uninorm_nfc): Update.
27528         * lib/uninorm/nfd.c (uninorm_nfd): Update.
27529         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
27530         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
27531         * modules/uninorm/decomposing-form: New file.
27532         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
27533         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
27534
27535 2009-03-07  Bruno Haible  <bruno@clisp.org>
27536
27537         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
27538         strings.
27539
27540 2009-03-06  Bruno Haible  <bruno@clisp.org>
27541
27542         Tests for module 'uninorm/u32-normcmp'.
27543         * tests/uninorm/test-u32-normcmp.c: New file.
27544         * modules/uninorm/u32-normcmp-tests: New file.
27545
27546         Tests for module 'uninorm/u16-normcmp'.
27547         * tests/uninorm/test-u16-normcmp.c: New file.
27548         * modules/uninorm/u16-normcmp-tests: New file.
27549
27550         Tests for module 'uninorm/u8-normcmp'.
27551         * tests/uninorm/test-u8-normcmp.c: New file.
27552         * modules/uninorm/u8-normcmp-tests: New file.
27553
27554         New module 'uninorm/u32-normcmp'.
27555         * lib/uninorm/u32-normcmp.c: New file.
27556         * modules/uninorm/u32-normcmp: New file.
27557
27558         New module 'uninorm/u16-normcmp'.
27559         * lib/uninorm/u16-normcmp.c: New file.
27560         * modules/uninorm/u16-normcmp: New file.
27561
27562         New module 'uninorm/u8-normcmp'.
27563         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
27564         declarations.
27565         * lib/uninorm/u8-normcmp.c: New file.
27566         * lib/uninorm/u-normcmp.h: New file.
27567         * modules/uninorm/u8-normcmp: New file.
27568
27569 2009-03-06  Bruno Haible  <bruno@clisp.org>
27570
27571         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
27572         Reported by Eric Blake.
27573
27574 2009-03-06  Eric Blake  <ebb9@byu.net>
27575             Bruno Haible  <bruno@clisp.org>
27576
27577         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
27578         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
27579         condition.
27580         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27581         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
27582         condition.
27583         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27584
27585 2009-03-06  Eric Blake  <ebb9@byu.net>
27586
27587         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
27588         to avoid compiler warnings.
27589         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
27590
27591 2009-03-05  Bruno Haible  <bruno@clisp.org>
27592
27593         * tests/test-ftell.c (main): Disable test beyond end of file on
27594         FreeMiNT.
27595         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27596
27597 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
27598
27599         * lib/filevercmp.c: Move hidden files up in ordering.
27600         * tests/test-filevercmp.c: Add tests for hidden files.
27601
27602 2009-03-04  Bruno Haible  <bruno@clisp.org>
27603
27604         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
27605         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
27606         AM_CFLAGS.
27607         Reported by Simon Josefsson.
27608
27609 2009-03-03  Bruno Haible  <bruno@clisp.org>
27610
27611         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
27612         Reported by Simon Josefsson.
27613
27614         * doc/ld-version-script.texi: Update node reference.
27615
27616 2009-03-03  Bruno Haible  <bruno@clisp.org>
27617
27618         * modules/visibility (License): Change to 'unlimited'.
27619         Suggested by Simon Josefsson.
27620
27621 2009-03-03  Jim Meyering  <meyering@redhat.com>
27622
27623         unlinkdir: cannot_unlink_dir may modify process state
27624         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
27625         it's neither thread-safe nor appropriate for use in a library.
27626
27627 2009-03-03  Eric Blake  <ebb9@byu.net>
27628
27629         test-closein: silence test under Darwin
27630         * tests/test-closein.sh: Ignore stderr from cat, since we don't
27631         care if it dies from EPIPE or EBADF.
27632
27633 2009-03-03  Bruno Haible  <bruno@clisp.org>
27634
27635         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
27636         earlier.
27637         * doc/visibility.texi: Fix @node and @section.
27638
27639 2009-03-03  Simon Josefsson  <simon@josefsson.org>
27640
27641         * doc/gnulib.texi: Link to sections for ld version script and
27642         visibility.
27643         * doc/visibility.texi: Add @node and @section.
27644         * modules/ld-version-script: New module.
27645         * m4/ld-version-script.m4: New file.
27646         * doc/ld-version-script.texi: New file.
27647
27648 2009-03-02  David Lutterkort  <lutter@redhat.com>
27649
27650         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
27651         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27652
27653 2009-03-02  Bruno Haible  <bruno@clisp.org>
27654
27655         * doc/visibility.texi: Mention libtool's -export-symbols option.
27656
27657 2009-03-02  Jim Meyering  <meyering@redhat.com>
27658
27659         announce-gen: new option: --no-print-checksums
27660         * build-aux/announce-gen (usage): Describe it.
27661         (print_checksums): Print a newline here, not in the [*] footnote.
27662         (main): Honor it.
27663
27664 2009-03-01  Bruno Haible  <bruno@clisp.org>
27665
27666         Use socklen_t in the native Windows replacements prototypes.
27667         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
27668         instead of 'int'.
27669         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27670         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27671         * modules/getsockopt (Depends-on): Add socklen.
27672         * modules/setsockopt (Depends-on): Add socklen.
27673
27674 2009-03-01  Bruno Haible  <bruno@clisp.org>
27675
27676         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
27677         least 4.2.
27678
27679 2009-03-01  Eric Blake  <ebb9@byu.net>
27680             Bruno Haible  <bruno@clisp.org>
27681
27682         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
27683         error messages.
27684         * lib/wait-process.c (wait_subprocess): Omit error message about
27685         deadly signal sent to the child of termsigp != NULL.
27686
27687 2009-03-01  Eric Blake  <ebb9@byu.net>
27688
27689         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
27690
27691 2009-03-01  Bruno Haible  <bruno@clisp.org>
27692
27693         Avoid a gcc warning.
27694         * tests/test-sched.c (b): Make global.
27695         Reported by Eric Blake.
27696
27697 2009-01-19  Martin Lambers  <marlam@marlam.de>
27698
27699         Provide POSIX semantics for socket timeout options on W32.
27700         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
27701         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
27702         * modules/setsockopt: Depend on sys_time module for struct timeval.
27703         * modules/getsockopt: Depend on sys_time module for struct timeval.
27704
27705 2009-03-01  Simon Josefsson  <simon@josefsson.org>
27706
27707         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
27708         __USE_GNU, for consistency with netdb.in.h.
27709         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27710
27711 2009-03-01  Bruno Haible  <bruno@clisp.org>
27712
27713         More support for FreeMiNT.
27714         * lib/fseeko.c (rpl_fseeko): Complete last commit.
27715         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27716
27717 2009-03-01  Bruno Haible  <bruno@clisp.org>
27718
27719         More support for FreeMiNT.
27720         * lib/fpurge.c (fpurge): Correct last commit.
27721         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27722
27723 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27724
27725         Fix unportable awk script in vc-list-files.
27726         * build-aux/vc-list-files: In the replacement awk script, use
27727         substr with a second argument of 1, not zero.
27728         Report by Simon Josefsson.
27729
27730 2009-02-28  Bruno Haible  <bruno@clisp.org>
27731
27732         More support for FreeMiNT.
27733         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
27734         to FreeMiNT today.
27735         * lib/fwriting.c (fwriting): Likewise.
27736         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
27737
27738 2009-02-28  Bruno Haible  <bruno@clisp.org>
27739
27740         * tests/test-freadseek.c (main): Disable test beyond end of file on
27741         FreeMiNT.
27742         * tests/test-ftello.c (main): Likewise.
27743         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27744
27745 2009-02-28  Bruno Haible  <bruno@clisp.org>
27746
27747         Add tentative support for FreeMiNT.
27748         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
27749         * lib/fpurge.c (fpurge): Likewise.
27750         * lib/freadable.c (freadable): Likewise.
27751         * lib/freading.c (freading): Likewise.
27752         * lib/freadptr.c (freadptr): Likewise.
27753         * lib/freadseek.c (freadptrinc): Likewise.
27754         * lib/fseeko.c (rpl_fseeko): Likewise.
27755         * lib/fseterr.c (fseterr): Likewise.
27756         * lib/fwritable.c (fwritable): Likewise.
27757         * lib/fwriting.c (fwriting): Likewise.
27758         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
27759         Hourihane.
27760         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27761
27762 2009-02-28  Bruno Haible  <bruno@clisp.org>
27763
27764         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
27765         SIGCHLD.
27766         Reported by Jim Meyering.
27767
27768 2009-02-28  Bruno Haible  <bruno@clisp.org>
27769
27770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
27771         Mention the results of these tests on various platforms.
27772         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
27773         order.
27774         * doc/posix-functions/printf.texi: Likewise.
27775         * doc/posix-functions/snprintf.texi: Likewise.
27776         * doc/posix-functions/sprintf.texi: Likewise.
27777         * doc/posix-functions/vfprintf.texi: Likewise.
27778         * doc/posix-functions/vprintf.texi: Likewise.
27779         * doc/posix-functions/vsnprintf.texi: Likewise.
27780         * doc/posix-functions/vsprintf.texi: Likewise.
27781         * doc/glibc-functions/obstack_printf.texi: Likewise.
27782         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27783
27784 2009-02-28  Bruno Haible  <bruno@clisp.org>
27785
27786         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
27787         Reported by Loïc Minier <lool@dooz.org>.
27788
27789 2009-02-27  Bruno Haible  <bruno@clisp.org>
27790
27791         * gnulib-tool (func_import): Make the sed expression used to create the
27792         sed script for updating the .gitignore file POSIX compliant.
27793         Reported by Eric Blake.
27794
27795 2009-02-27  Bruno Haible  <bruno@clisp.org>
27796
27797         * gnulib-tool (sed): Don't alias as "sed --posix".
27798         Reported by Eric Blake.
27799
27800 2009-02-27  Bruno Haible  <bruno@clisp.org>
27801
27802         Avoid test link errors.
27803         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
27804         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
27805         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
27806         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
27807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27808
27809 2009-02-27  Bruno Haible  <bruno@clisp.org>
27810
27811         Avoid spurious "(cached)" in configure output.
27812         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
27813         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
27814         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27815         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27816         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27817         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27818         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27819         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27820         Reported by Eric Blake.
27821
27822 2009-02-27  Eric Blake  <ebb9@byu.net>
27823
27824         printf: fix regression in previous patch
27825         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
27826
27827 2009-02-27  Bruno Haible  <bruno@clisp.org>
27828
27829         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
27830         value.
27831         * lib/stdint.in.h: Likewise.
27832         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
27833
27834 2009-02-27  Eric Blake  <ebb9@byu.net>
27835
27836         doc: mention more functions added in cygwin 1.7.0
27837         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
27838         addition.
27839         * doc/posix-functions/open_wmemstream.texi: Likewise.
27840         * doc/posix-functions/wcsnlen.texi: Likewise.
27841         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27842         * doc/posix-functions/wcstod.texi: Likewise.
27843         * doc/posix-functions/wcstof.texi: Likewise.
27844         * doc/posix-functions/wcstoimax.texi: Likewise.
27845         * doc/posix-functions/wcstok.texi: Likewise.
27846         * doc/posix-functions/wcstoumax.texi: Likewise.
27847
27848         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
27849         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
27850         * doc/posix-functions/fprintf.texi: Update.
27851         * doc/posix-functions/printf.texi: Update.
27852         * doc/posix-functions/snprintf.texi: Update.
27853         * doc/posix-functions/sprintf.texi: Update.
27854         * doc/posix-functions/vfprintf.texi: Update.
27855         * doc/posix-functions/vprintf.texi: Update.
27856         * doc/posix-functions/vsnprintf.texi: Update.
27857         * doc/posix-functions/vsprintf.texi: Update.
27858         * doc/glibc-functions/obstack_printf.texi: Update.
27859         * doc/glibc-functions/obstack_vprintf.texi: Update.
27860
27861 2009-02-26  Eric Blake  <ebb9@byu.net>
27862
27863         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
27864         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
27865         compilation bug by using runtime conversion.
27866         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27867         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
27868         * modules/ceill-tests (Files): Use nan.h.
27869         * modules/floorl-tests (Files): Likewise.
27870         * modules/frexpl-tests (Files): Likewise.
27871         * modules/isnanl-tests (Files): Likewise.
27872         * modules/ldexpl-tests (Files): Likewise.
27873         * modules/roundl-tests (Files): Likewise.
27874         * modules/truncl-tests (Files): Likewise.
27875         * tests/test-ceill.c (main): Use a working NaN.
27876         * tests/test-floorl.c (main): Likewise.
27877         * tests/test-frexpl.c (main): Likewise.
27878         * tests/test-isnan.c (test_long_double): Likewise.
27879         * tests/test-isnanl.h (main): Likewise.
27880         * tests/test-ldexpl.h (main): Likewise.
27881         * tests/test-roundl.h (main): Likewise.
27882         * tests/test-truncl.h (main): Likewise.
27883         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
27884
27885 2009-02-26  Eric Blake  <ebb9@byu.net>
27886             Bruno Haible  <bruno@clisp.org>
27887
27888         Work around a *printf bug with %ls on Solaris.
27889         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
27890         precision is specified, sprintf stops converting the wide string
27891         argument when the number of bytes that have been produced by this
27892         conversion equals or exceeds the precision.
27893         * doc/posix-functions/fprintf.texi: Update.
27894         * doc/posix-functions/printf.texi: Update.
27895         * doc/posix-functions/snprintf.texi: Update.
27896         * doc/posix-functions/sprintf.texi: Update.
27897         * doc/posix-functions/vfprintf.texi: Update.
27898         * doc/posix-functions/vprintf.texi: Update.
27899         * doc/posix-functions/vsnprintf.texi: Update.
27900         * doc/posix-functions/vsprintf.texi: Update.
27901         * doc/glibc-functions/obstack_printf.texi: Update.
27902         * doc/glibc-functions/obstack_vprintf.texi: Update.
27903
27904 2009-02-26  Eric Blake  <ebb9@byu.net>
27905
27906         stdlib: favor compiler check of random.h
27907         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
27908         to avoid an ObjC random.h installed by Swarm.
27909
27910 2009-02-26  Bruno Haible  <bruno@clisp.org>
27911
27912         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
27913         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
27914         Reported by Gary V. Vaughan <gary@gnu.org>.
27915
27916 2009-02-26  Bruno Haible  <bruno@clisp.org>
27917
27918         Fix *printf behaviour regarding the %ls directive.
27919         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
27920         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
27921         NEED_PRINTF_DIRECTIVE_LS.
27922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
27923         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27925         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
27926         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
27927         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
27928         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27933         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
27934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27937         * doc/posix-functions/fprintf.texi: Update.
27938         * doc/posix-functions/printf.texi: Update.
27939         * doc/posix-functions/snprintf.texi: Update.
27940         * doc/posix-functions/sprintf.texi: Update.
27941         * doc/posix-functions/vfprintf.texi: Update.
27942         * doc/posix-functions/vprintf.texi: Update.
27943         * doc/posix-functions/vsnprintf.texi: Update.
27944         * doc/posix-functions/vsprintf.texi: Update.
27945         * doc/glibc-functions/obstack_printf.texi: Update.
27946         * doc/glibc-functions/obstack_vprintf.texi: Update.
27947         Reported by Eric Blake.
27948
27949 2009-02-25  Bruno Haible  <bruno@clisp.org>
27950
27951         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
27952         with known value.
27953         Reported by Gary V. Vaughan <gary@gnu.org>.
27954
27955 2009-02-25  Bruno Haible  <bruno@clisp.org>
27956
27957         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
27958         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
27959         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
27960         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
27961         Reported by Gary V. Vaughan <gary@gnu.org>.
27962
27963 2009-02-25  Bruno Haible  <bruno@clisp.org>
27964
27965         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
27966         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
27967         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
27968         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
27969         Reported by Gary V. Vaughan <gary@gnu.org>.
27970
27971 2009-02-25  Eric Blake  <ebb9@byu.net>
27972
27973         tests: skip fseek/ftell tests if ungetc is broken
27974         * m4/ungetc.m4: New file.
27975         * modules/fseek-tests: Split test, so ungetc dependency is
27976         separate from rest of test.
27977         * modules/fseeko-tests: Likewise.
27978         * modules/ftell-tests: Likewise.
27979         * modules/ftello-tests: Likewise.
27980         * tests/test-fseek.c (main): Isolate ungetc dependency.
27981         * tests/test-fseeko.c (main): Likewise.
27982         * tests/test-ftell.c (main): Likewise.
27983         * tests/test-ftello.c (main): Likewise.
27984         * tests/test-fseek2.sh: New file.
27985         * tests/test-fseeko2.sh: Likewise.
27986         * tests/test-ftell2.sh: Likewise.
27987         * tests/test-ftello2.sh: Likewise.
27988
27989 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
27990
27991         test-getaddrinfo: fix usage of skip return code 77
27992         * tests/test-gettaddrinfo.c: Return skip code 77 only
27993         for first occurance of skip (4x77 is not 77)
27994
27995 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
27996
27997         strtod: avoid C99 decl-after-statement
27998         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
27999
28000 2009-02-24  Eric Blake  <ebb9@byu.net>
28001
28002         strtod: detect HP-UX 11.31 bug
28003         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
28004         Reported by Gary V. Vaughan.
28005
28006 2009-02-23  Bruno Haible  <bruno@clisp.org>
28007
28008         Fix invalid read past end of memory block.
28009         * lib/vasnprintf.c (DCHAR_SET): Define.
28010         (local_wcslen): Define only when needed.
28011         (local_strnlen, local_wcsnlen): New functions.
28012         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
28013         directives that involve a conversion ourselves.
28014         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
28015         wcsnlen, mbrtowc, wcrtomb.
28016         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
28017         * tests/test-vasprintf-posix.c (test_function): Likewise.
28018         * tests/test-snprintf-posix.h (test_function): Likewise.
28019         * tests/test-sprintf-posix.h (test_function): Likewise.
28020         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28021
28022 2009-02-22  Bruno Haible  <bruno@clisp.org>
28023
28024         Implement new clarified decomposition of Hangul syllables.
28025         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
28026         of type LTV, return only a pairwise decomposition.
28027         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
28028         Likewise.
28029         * tests/uninorm/test-decomposition.c (main): Updated expected result.
28030         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
28031         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
28032
28033 2009-02-22  Bruno Haible  <bruno@clisp.org>
28034
28035         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
28036         zero-length results and shrink excess allocated memory.
28037         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
28038         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
28039         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
28040         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
28041         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
28042         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
28043         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
28044         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
28045         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
28046         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
28047         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
28048         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
28049
28050 2009-02-21  Bruno Haible  <bruno@clisp.org>
28051
28052         * doc/gnulib.texi: Include safe-alloc.texi earlier.
28053         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
28054         spaces after a period. Put a space between a macro name and its
28055         argument list. Trivial rewordings.
28056         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
28057         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
28058         (main): Return 0 explicitly.
28059
28060 2009-02-21  Bruno Haible  <bruno@clisp.org>
28061
28062         Tests for module 'uninorm/filter'.
28063         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
28064         * modules/uninorm/filter-tests: New file.
28065
28066         New module 'uninorm/filter'.
28067         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
28068         uninorm_filter_flush, uninorm_filter_free): New declarations.
28069         * lib/uninorm/uninorm-filter.c: New file.
28070         * modules/uninorm/filter: New file.
28071
28072 2009-02-21  Bruno Haible  <bruno@clisp.org>
28073
28074         Tests for module 'uninorm/nfkc'.
28075         * tests/uninorm/test-nfkc.c: New file.
28076         * tests/uninorm/test-u8-nfkc.c: New file.
28077         * tests/uninorm/test-u16-nfkc.c: New file.
28078         * tests/uninorm/test-u32-nfkc.c: New file.
28079         * tests/uninorm/test-u32-nfkc-big.sh: New file.
28080         * tests/uninorm/test-u32-nfkc-big.c: New file.
28081         * modules/uninorm/nfkc-tests: New file.
28082
28083         New module 'uninorm/nfkc'.
28084         * lib/uninorm/nfkc.c: New file.
28085         * modules/uninorm/nfkc: New file.
28086
28087         Tests for module 'uninorm/nfkd'.
28088         * tests/uninorm/test-nfkd.c: New file.
28089         * tests/uninorm/test-u8-nfkd.c: New file.
28090         * tests/uninorm/test-u16-nfkd.c: New file.
28091         * tests/uninorm/test-u32-nfkd.c: New file.
28092         * tests/uninorm/test-u32-nfkd-big.sh: New file.
28093         * tests/uninorm/test-u32-nfkd-big.c: New file.
28094         * modules/uninorm/nfkd-tests: New file.
28095
28096         New module 'uninorm/nfkd'.
28097         * lib/uninorm/nfkd.c: New file.
28098         * modules/uninorm/nfkd: New file.
28099
28100         Tests for module 'uninorm/nfc'.
28101         * tests/uninorm/test-nfc.c: New file.
28102         * tests/uninorm/test-u8-nfc.c: New file.
28103         * tests/uninorm/test-u16-nfc.c: New file.
28104         * tests/uninorm/test-u32-nfc.c: New file.
28105         * tests/uninorm/test-u32-nfc-big.sh: New file.
28106         * tests/uninorm/test-u32-nfc-big.c: New file.
28107         * modules/uninorm/nfc-tests: New file.
28108
28109         New module 'uninorm/nfc'.
28110         * lib/uninorm/nfc.c: New file.
28111         * modules/uninorm/nfc: New file.
28112
28113         Tests for module 'uninorm/nfd'.
28114         * tests/uninorm/test-nfd.c: New file.
28115         * tests/uninorm/test-u8-nfd.c: New file.
28116         * tests/uninorm/test-u16-nfd.c: New file.
28117         * tests/uninorm/test-u32-nfd.c: New file.
28118         * tests/uninorm/test-u32-nfd-big.sh: New file.
28119         * tests/uninorm/test-u32-nfd-big.c: New file.
28120         * tests/uninorm/test-u32-normalize-big.h: New file.
28121         * tests/uninorm/test-u32-normalize-big.c: New file.
28122         * tests/uninorm/NormalizationTest.txt: New file, created from
28123         Unicode 5.1.0 NormalizationTest.txt.
28124         * modules/uninorm/nfd-tests: New file.
28125
28126         New module 'uninorm/nfd'.
28127         * lib/uninorm/nfd.c: New file.
28128         * modules/uninorm/nfd: New file.
28129
28130         New module 'uninorm/u32-normalize'.
28131         * lib/uninorm/u32-normalize.c: New file.
28132         * modules/uninorm/u32-normalize: New file.
28133
28134         New module 'uninorm/u16-normalize'.
28135         * lib/uninorm/u16-normalize.c: New file.
28136         * modules/uninorm/u16-normalize: New file.
28137
28138         New module 'uninorm/u8-normalize'.
28139         * lib/uninorm/u8-normalize.c: New file.
28140         * lib/uninorm/normalize-internal.h: New file.
28141         * lib/uninorm/u-normalize-internal.h: New file.
28142         * modules/uninorm/u8-normalize: New file.
28143
28144         New module 'uninorm/decompose-internal'.
28145         * lib/uninorm/decompose-internal.c: New file.
28146         * modules/uninorm/decompose-internal: New file.
28147
28148         Tests for module 'uninorm/composition'.
28149         * tests/uninorm/test-composition.c: New file.
28150         * modules/uninorm/composition-tests: New file.
28151
28152         New module 'uninorm/composition'.
28153         * lib/uninorm/composition.c: New file.
28154         * lib/uninorm/composition-table.gperf: New file, generated by
28155         gen-uni-tables.
28156         * modules/uninorm/composition: New file.
28157
28158         Tests for module 'uninorm/compat-decomposition'.
28159         * tests/uninorm/test-compat-decomposition.c: New file.
28160         * modules/uninorm/compat-decomposition-tests: New file.
28161
28162         New module 'uninorm/compat-decomposition'.
28163         * lib/uninorm/decompose-internal.h: New file.
28164         * lib/uninorm/compat-decomposition.c: New file.
28165         * modules/uninorm/compat-decomposition: New file.
28166
28167         Tests for module 'uninorm/canonical-decomposition'.
28168         * tests/uninorm/test-canonical-decomposition.c: New file.
28169         * modules/uninorm/canonical-decomposition-tests: New file.
28170
28171         New module 'uninorm/canonical-decomposition'.
28172         * lib/uninorm/canonical-decomposition.c: New file.
28173         * modules/uninorm/canonical-decomposition: New file.
28174
28175         Tests for module 'uninorm/decomposition'.
28176         * tests/uninorm/test-decomposition.c: New file.
28177         * modules/uninorm/decomposition-tests: New file.
28178
28179         New module 'uninorm/decomposition'.
28180         * lib/uninorm/decomposition.c: New file.
28181         * modules/uninorm/decomposition: New file.
28182
28183         New module 'uninorm/decomposition-table'.
28184         * lib/uninorm/decomposition-table.h: New file.
28185         * lib/uninorm/decomposition-table.c: New file.
28186         * lib/uninorm/decomposition-table1.h: New file, generated by
28187         gen-uni-tables.
28188         * lib/uninorm/decomposition-table2.h: New file, generated by
28189         gen-uni-tables.
28190         * modules/uninorm/decomposition-table: New file.
28191
28192         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
28193         (UC_DECOMP_*): New enumeration items.
28194         (get_decomposition): New function.
28195         (struct decomp_table): New type.
28196         (output_decomposition, output_decomposition_tables): New functions.
28197         (unicode_composition_exclusions): New variable.
28198         (fill_composition_exclusions, debug_output_composition_tables): New
28199         functions.
28200         (main): Accept one more argument. Invoke fill_composition_exclusions.
28201         Output decomposition and composition tables.
28202
28203         New module 'uninorm/base'.
28204         * lib/uninorm.h: New file.
28205         * lib/unictype.h: Update comment.
28206         * modules/uninorm/base: New file.
28207
28208 2009-02-21  David Lutterkort  <lutter@redhat.com>
28209
28210         Tests for module 'safe-alloc'.
28211         * tests/test-safe-alloc.c: New file.
28212         * modules/safe-alloc-tests: New file.
28213
28214         New module 'safe-alloc'.
28215         * lib/safe-alloc.h: New file.
28216         * lib/safe-alloc.c: New file.
28217         * m4/safe-alloc.m4: New file.
28218         * modules/safe-alloc: New file.
28219         * doc/safe-alloc.texi: New file.
28220         * doc/gnulib.texi: Include it.
28221         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28222         safe-alloc.
28223
28224 2009-02-18  Bruno Haible  <bruno@clisp.org>
28225
28226         Fix link error on non-glibc systems.
28227         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
28228         variable.
28229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28230
28231 2009-02-18  Jim Meyering  <meyering@redhat.com>
28232
28233         fts: avoid used-uninitialized error due to recent change
28234         * lib/fts.c (fts_read): Guard uses of the new member,
28235         parent->fts_n_dirs_remaining, since it's not relevant for
28236         the parent of a directory specified on the command-line.
28237
28238 2009-02-17  James Youngman  <jay@gnu.org>
28239             Bruno Haible  <bruno@clisp.org>
28240
28241         * m4/include_next.m4: Reformulate comment.
28242
28243 2009-02-16  Jim Meyering  <meyering@redhat.com>
28244
28245         fts: add #if guards so that the fts_lgpl module still builds
28246         * lib/fts.c: Guard just-added hash-table-using parts with
28247         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
28248         Reported by Simon Josefsson.
28249
28250 2009-02-15  Bruno Haible  <bruno@clisp.org>
28251
28252         * modules/array-mergesort-tests: New file.
28253         * tests/test-array-mergesort.c: New file.
28254
28255         New module 'array-mergesort'.
28256         * modules/array-mergesort: New file.
28257         * lib/array-mergesort.h: New file.
28258
28259 2009-02-15  Bruno Haible  <bruno@clisp.org>
28260
28261         Fix 2009-02-07 commit.
28262         * lib/gen-uni-tables.c (output_predicate, output_category,
28263         output_combclass, output_bidi_category, output_decimal_digit,
28264         output_digit, output_numeric, output_mirror, output_scripts,
28265         output_ident_category, output_simple_mapping): Fix format directives.
28266         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
28267
28268 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
28269
28270         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
28271         fixes are available from IBM.
28272
28273 2009-02-13  Jim Meyering  <meyering@redhat.com>
28274
28275         fts: arrange not to stat non-directories in more cases
28276         This makes GNU find (when it doesn't need to stat each file)
28277         *much* more efficient at traversing reiserfs file systems.
28278         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
28279         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
28280         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
28281         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
28282         (leaf_optimization_applies): New function.
28283         (LCO_hash, LCO_compare): New helper functions.
28284         (link_count_optimize_ok): New function.
28285         (fts_stat): Initialize new member (if dir).
28286         (fts_read): Decrement parent's fts_n_dirs_remaining count if
28287         we've just stat'ed a directory.  Skip the stat call when possible.
28288         ---
28289         Note this AFS-related exchange:
28290         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
28291         and note find's pioctl call in find/fstype.c.
28292         But that is necessary only if you want to enable the
28293         optimization for AFS, and for now, I don't.
28294
28295         fts: move a function definition "up" (no semantic change)
28296         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
28297         "up" to precede upcoming use of a related function.
28298
28299 2009-02-11  Jim Meyering  <meyering@redhat.com>
28300
28301         fts: correct internal computation of nlinks (optimization-related)
28302         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
28303         whether the current entry is a directory, so don't test it.
28304
28305 2009-02-10  Bruno Haible  <bruno@clisp.org>
28306
28307         Tests for module 'uniwbrk/ulc-wordbreaks'.
28308         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
28309         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
28310         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
28311
28312         Tests for module 'uniwbrk/u32-wordbreaks'.
28313         * modules/uniwbrk/u32-wordbreaks-tests: New file.
28314         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
28315
28316         Tests for module 'uniwbrk/u16-wordbreaks'.
28317         * modules/uniwbrk/u16-wordbreaks-tests: New file.
28318         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
28319
28320         Tests for module 'uniwbrk/u8-wordbreaks'.
28321         * modules/uniwbrk/u8-wordbreaks-tests: New file.
28322         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
28323
28324 2009-02-10  Bruno Haible  <bruno@clisp.org>
28325
28326         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
28327         property.
28328         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
28329         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
28330         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
28331
28332 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28333
28334         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28335         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28336
28337 2009-02-10  Bruno Haible  <bruno@clisp.org>
28338
28339         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28340         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28341         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28342         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28343         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28344         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28345
28346 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28347
28348         * lib/sockets.h (gl_fd_to_handle): New function.
28349
28350         * tests/test-sockets.c: Call gl_fd_to_handle.
28351
28352 2009-02-09  Bruno Haible  <bruno@clisp.org>
28353
28354         * doc/havelib.texi: Document the conventions on bi-arch systems.
28355
28356 2009-02-08  Bruno Haible  <bruno@clisp.org>
28357
28358         Document the AC_LIB_LINKFLAGS macro.
28359         * doc/havelib.texi: New file, mostly written on 2005-05-24.
28360         * doc/gnulib.texi: Include it.
28361
28362 2009-02-08  Bruno Haible  <bruno@clisp.org>
28363
28364         Fix wrong order of sections, compared to TOC.
28365         * doc/gnulib.texi: Include relocatable-maint.texi after the
28366         "Regular expressions" node, not before.
28367
28368 2009-02-08  Bruno Haible  <bruno@clisp.org>
28369
28370         Tests for module 'unicase/totitle'.
28371         * modules/unicase/totitle-tests: New file.
28372
28373         Tests for module 'unicase/tolower'.
28374         * modules/unicase/tolower-tests: New file.
28375
28376         Tests for module 'unicase/toupper'.
28377         * modules/unicase/toupper-tests: New file.
28378         * tests/unicase/test-mapping-part1.h: New file.
28379         * tests/unicase/test-mapping-part2.h: New file.
28380
28381         New module 'unicase/totitle'.
28382         * modules/unicase/totitle: New file.
28383         * lib/unicase/totitle.c: New file.
28384
28385         New module 'unicase/tolower'.
28386         * modules/unicase/tolower: New file.
28387         * lib/unicase/tolower.c: New file.
28388
28389         New module 'unicase/toupper'.
28390         * modules/unicase/toupper: New file.
28391         * lib/unicase/toupper.c: New file.
28392         * lib/unicase/simple-mapping.h: New file.
28393
28394         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
28395         (mapping_table): New structure.
28396         (output_simple_mapping): New function.
28397         (main): Invoke output_simple_mapping_test and output_simple_mapping.
28398         * modules/gen-uni-tables (Description): Update.
28399         * lib/unicase/toupper.h: New file, automatically generated by
28400         gen-uni-tables.
28401         * lib/unicase/tolower.h: New file, automatically generated by
28402         gen-uni-tables.
28403         * lib/unicase/totitle.h: New file, automatically generated by
28404         gen-uni-tables.
28405         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
28406         gen-uni-tables.
28407         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
28408         gen-uni-tables.
28409         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
28410         gen-uni-tables.
28411
28412         New module 'unicase/base'.
28413         * modules/unicase/base: New file.
28414         * lib/unicase.h: New file.
28415
28416 2009-02-08  Bruno Haible  <bruno@clisp.org>
28417
28418         New module 'uniwbrk/ulc-wordbreaks'.
28419         * modules/uniwbrk/ulc-wordbreaks: New file.
28420         * lib/uniwbrk/ulc-wordbreaks.c: New file.
28421
28422         New module 'uniwbrk/u32-wordbreaks'.
28423         * modules/uniwbrk/u32-wordbreaks: New file.
28424         * lib/uniwbrk/u32-wordbreaks.c: New file.
28425
28426         New module 'uniwbrk/u16-wordbreaks'.
28427         * modules/uniwbrk/u16-wordbreaks: New file.
28428         * lib/uniwbrk/u16-wordbreaks.c: New file.
28429
28430         New module 'uniwbrk/u8-wordbreaks'.
28431         * modules/uniwbrk/u8-wordbreaks: New file.
28432         * lib/uniwbrk/u8-wordbreaks.c: New file.
28433         * lib/uniwbrk/u-wordbreaks.h: New file.
28434
28435         New module 'uniwbrk/table'.
28436         * modules/uniwbrk/table: New file.
28437         * lib/uniwbrk/wbrktable.h: New file.
28438         * lib/uniwbrk/wbrktable.c: New file.
28439
28440         New module 'uniwbrk/wordbreak-property'.
28441         * modules/uniwbrk/wordbreak-property: New file.
28442         * lib/uniwbrk/wordbreak-property.c: New file.
28443
28444         * lib/gen-uni-tables.c (WBP_*): New enum items.
28445         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
28446         (unicode_org_wbp): New variable.
28447         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
28448         New functions.
28449         (wbp_table): New structure.
28450         (output_wbp, output_wbrk_tables): New functions.
28451         (main): Accept additional argument. Invoke fill_org_wbp,
28452         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
28453         output_wbrk_tables.
28454         * modules/gen-uni-tables (Description): Update.
28455         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
28456         gen-uni-tables.
28457
28458         New module 'uniwbrk/base'.
28459         * modules/uniwbrk/base: New file.
28460         * lib/uniwbrk.h: New file.
28461
28462 2009-02-08  Bruno Haible  <bruno@clisp.org>
28463
28464         Update to Unicode 5.1.0.
28465         * lib/gen-uni-tables.c (is_property_alphabetic): Include
28466         U+2185..U+2188.
28467         (is_property_default_ignorable_code_point): Don't include characters
28468         of category Cc or Cs and not-a-characters.
28469         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28470         U+0D79, U+109E, U+109F, U+A60C.
28471         * lib/unictype/bidi_of.h: Regenerated.
28472         * lib/unictype/blocks.h: Regenerated.
28473         * lib/unictype/categ_C.h: Regenerated.
28474         * lib/unictype/categ_Cf.h: Regenerated.
28475         * lib/unictype/categ_Cn.h: Regenerated.
28476         * lib/unictype/categ_L.h: Regenerated.
28477         * lib/unictype/categ_Ll.h: Regenerated.
28478         * lib/unictype/categ_Lm.h: Regenerated.
28479         * lib/unictype/categ_Lo.h: Regenerated.
28480         * lib/unictype/categ_Lu.h: Regenerated.
28481         * lib/unictype/categ_M.h: Regenerated.
28482         * lib/unictype/categ_Mc.h: Regenerated.
28483         * lib/unictype/categ_Me.h: Regenerated.
28484         * lib/unictype/categ_Mn.h: Regenerated.
28485         * lib/unictype/categ_N.h: Regenerated.
28486         * lib/unictype/categ_Nd.h: Regenerated.
28487         * lib/unictype/categ_Nl.h: Regenerated.
28488         * lib/unictype/categ_No.h: Regenerated.
28489         * lib/unictype/categ_P.h: Regenerated.
28490         * lib/unictype/categ_Pd.h: Regenerated.
28491         * lib/unictype/categ_Pe.h: Regenerated.
28492         * lib/unictype/categ_Pf.h: Regenerated.
28493         * lib/unictype/categ_Pi.h: Regenerated.
28494         * lib/unictype/categ_Po.h: Regenerated.
28495         * lib/unictype/categ_Ps.h: Regenerated.
28496         * lib/unictype/categ_S.h: Regenerated.
28497         * lib/unictype/categ_Sk.h: Regenerated.
28498         * lib/unictype/categ_Sm.h: Regenerated.
28499         * lib/unictype/categ_So.h: Regenerated.
28500         * lib/unictype/categ_of.h: Regenerated.
28501         * lib/unictype/combining.h: Regenerated.
28502         * lib/unictype/ctype_alnum.h: Regenerated.
28503         * lib/unictype/ctype_alpha.h: Regenerated.
28504         * lib/unictype/ctype_graph.h: Regenerated.
28505         * lib/unictype/ctype_lower.h: Regenerated.
28506         * lib/unictype/ctype_print.h: Regenerated.
28507         * lib/unictype/ctype_punct.h: Regenerated.
28508         * lib/unictype/ctype_upper.h: Regenerated.
28509         * lib/unictype/decdigit.h: Regenerated.
28510         * lib/unictype/digit.h: Regenerated.
28511         * lib/unictype/mirror.h: Regenerated.
28512         * lib/unictype/numeric.h: Regenerated.
28513         * lib/unictype/pr_alphabetic.h: Regenerated.
28514         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
28515         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
28516         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
28517         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
28518         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
28519         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
28520         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
28521         * lib/unictype/pr_combining.h: Regenerated.
28522         * lib/unictype/pr_dash.h: Regenerated.
28523         * lib/unictype/pr_decimal_digit.h: Regenerated.
28524         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
28525         * lib/unictype/pr_deprecated.h: Regenerated.
28526         * lib/unictype/pr_diacritic.h: Regenerated.
28527         * lib/unictype/pr_extender.h: Regenerated.
28528         * lib/unictype/pr_format_control.h: Regenerated.
28529         * lib/unictype/pr_grapheme_base.h: Regenerated.
28530         * lib/unictype/pr_grapheme_extend.h: Regenerated.
28531         * lib/unictype/pr_grapheme_link.h: Regenerated.
28532         * lib/unictype/pr_id_continue.h: Regenerated.
28533         * lib/unictype/pr_id_start.h: Regenerated.
28534         * lib/unictype/pr_ideographic.h: Regenerated.
28535         * lib/unictype/pr_ignorable_control.h: Regenerated.
28536         * lib/unictype/pr_lowercase.h: Regenerated.
28537         * lib/unictype/pr_math.h: Regenerated.
28538         * lib/unictype/pr_numeric.h: Regenerated.
28539         * lib/unictype/pr_other_alphabetic.h: Regenerated.
28540         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
28541         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
28542         * lib/unictype/pr_other_id_continue.h: Regenerated.
28543         * lib/unictype/pr_other_lowercase.h: Regenerated.
28544         * lib/unictype/pr_other_math.h: Regenerated.
28545         * lib/unictype/pr_punctuation.h: Regenerated.
28546         * lib/unictype/pr_sentence_terminal.h: Regenerated.
28547         * lib/unictype/pr_soft_dotted.h: Regenerated.
28548         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
28549         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
28550         * lib/unictype/pr_unified_ideograph.h: Regenerated.
28551         * lib/unictype/pr_uppercase.h: Regenerated.
28552         * lib/unictype/pr_xid_continue.h: Regenerated.
28553         * lib/unictype/pr_xid_start.h: Regenerated.
28554         * lib/unictype/pr_zero_width.h: Regenerated.
28555         * lib/unictype/scripts.h: Regenerated.
28556         * lib/unictype/scripts_byname.gperf: Regenerated.
28557         * lib/unictype/sy_java_ident.h: Regenerated.
28558         * lib/unilbrk/lbrkprop1.h: Regenerated.
28559         * lib/unilbrk/lbrkprop2.h: Regenerated.
28560         * tests/unictype/test-categ_C.c: Regenerated.
28561         * tests/unictype/test-categ_Cf.c: Regenerated.
28562         * tests/unictype/test-categ_Cn.c: Regenerated.
28563         * tests/unictype/test-categ_L.c: Regenerated.
28564         * tests/unictype/test-categ_Ll.c: Regenerated.
28565         * tests/unictype/test-categ_Lm.c: Regenerated.
28566         * tests/unictype/test-categ_Lo.c: Regenerated.
28567         * tests/unictype/test-categ_Lu.c: Regenerated.
28568         * tests/unictype/test-categ_M.c: Regenerated.
28569         * tests/unictype/test-categ_Mc.c: Regenerated.
28570         * tests/unictype/test-categ_Me.c: Regenerated.
28571         * tests/unictype/test-categ_Mn.c: Regenerated.
28572         * tests/unictype/test-categ_N.c: Regenerated.
28573         * tests/unictype/test-categ_Nd.c: Regenerated.
28574         * tests/unictype/test-categ_Nl.c: Regenerated.
28575         * tests/unictype/test-categ_No.c: Regenerated.
28576         * tests/unictype/test-categ_P.c: Regenerated.
28577         * tests/unictype/test-categ_Pd.c: Regenerated.
28578         * tests/unictype/test-categ_Pe.c: Regenerated.
28579         * tests/unictype/test-categ_Pf.c: Regenerated.
28580         * tests/unictype/test-categ_Pi.c: Regenerated.
28581         * tests/unictype/test-categ_Po.c: Regenerated.
28582         * tests/unictype/test-categ_Ps.c: Regenerated.
28583         * tests/unictype/test-categ_S.c: Regenerated.
28584         * tests/unictype/test-categ_Sk.c: Regenerated.
28585         * tests/unictype/test-categ_Sm.c: Regenerated.
28586         * tests/unictype/test-categ_So.c: Regenerated.
28587         * tests/unictype/test-ctype_alnum.c: Regenerated.
28588         * tests/unictype/test-ctype_alpha.c: Regenerated.
28589         * tests/unictype/test-ctype_graph.c: Regenerated.
28590         * tests/unictype/test-ctype_lower.c: Regenerated.
28591         * tests/unictype/test-ctype_print.c: Regenerated.
28592         * tests/unictype/test-ctype_punct.c: Regenerated.
28593         * tests/unictype/test-ctype_upper.c: Regenerated.
28594         * tests/unictype/test-decdigit.h: Regenerated.
28595         * tests/unictype/test-digit.h: Regenerated.
28596         * tests/unictype/test-numeric.h: Regenerated.
28597         * tests/unictype/test-pr_alphabetic.c: Regenerated.
28598         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
28599         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
28600         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
28601         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
28602         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
28603         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
28604         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
28605         * tests/unictype/test-pr_combining.c: Regenerated.
28606         * tests/unictype/test-pr_dash.c: Regenerated.
28607         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
28608         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
28609         * tests/unictype/test-pr_deprecated.c: Regenerated.
28610         * tests/unictype/test-pr_diacritic.c: Regenerated.
28611         * tests/unictype/test-pr_extender.c: Regenerated.
28612         * tests/unictype/test-pr_format_control.c: Regenerated.
28613         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
28614         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
28615         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
28616         * tests/unictype/test-pr_id_continue.c: Regenerated.
28617         * tests/unictype/test-pr_id_start.c: Regenerated.
28618         * tests/unictype/test-pr_ideographic.c: Regenerated.
28619         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
28620         * tests/unictype/test-pr_lowercase.c: Regenerated.
28621         * tests/unictype/test-pr_math.c: Regenerated.
28622         * tests/unictype/test-pr_numeric.c: Regenerated.
28623         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
28624         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
28625         Regenerated.
28626         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
28627         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
28628         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
28629         * tests/unictype/test-pr_other_math.c: Regenerated.
28630         * tests/unictype/test-pr_punctuation.c: Regenerated.
28631         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
28632         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
28633         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
28634         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
28635         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
28636         * tests/unictype/test-pr_uppercase.c: Regenerated.
28637         * tests/unictype/test-pr_xid_continue.c: Regenerated.
28638         * tests/unictype/test-pr_xid_start.c: Regenerated.
28639         * tests/unictype/test-pr_zero_width.c: Regenerated.
28640
28641         Update to Unicode 5.1.0.
28642         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
28643         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
28644         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
28645         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
28646         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
28647         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
28648         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
28649         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
28650         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
28651         (nonspacing_table_ind): Update.
28652         * tests/uniwidth/test-uc_width2.sh: Update expected result.
28653
28654         Update to Unicode 5.1.0.
28655         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
28656         code transform.
28657         * lib/uniname/uniname.c (unicode_character_name,
28658         unicode_name_character): Add the range 0x1Fxxx to the code transform.
28659         * lib/uniname/uninames.h: Regenerated.
28660         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
28661
28662 2009-02-07  Bruno Haible  <bruno@clisp.org>
28663
28664         Merge gen-ctype and gen-lbrk into a single program.
28665         * lib/gen-uni-tables.c: New file, incorporating
28666         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
28667         Add directory prefixes to the names of the generated files.
28668         * lib/unictype/gen-ctype.c: Remove file.
28669         * lib/unilbrk/gen-lbrk.c: Remove file.
28670         * modules/gen-uni-tables: New file.
28671         * modules/unictype/gen-ctype: Remove file.
28672         * modules/unilbrk/gen-lbrk: Remove file.
28673
28674 2009-02-07  Bruno Haible  <bruno@clisp.org>
28675
28676         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
28677
28678         New module 'unistr/u32-strcoll'.
28679         * modules/unistr/u32-strcoll: New file.
28680         * lib/unistr/u32-strcoll.c: New file.
28681
28682         New module 'unistr/u16-strcoll'.
28683         * modules/unistr/u16-strcoll: New file.
28684         * lib/unistr/u16-strcoll.c: New file.
28685
28686         New module 'unistr/u8-strcoll'.
28687         * modules/unistr/u8-strcoll: New file.
28688         * lib/unistr/u8-strcoll.c: New file.
28689         * lib/unistr/u-strcoll.h: New file.
28690
28691 2009-02-07  Bruno Haible  <bruno@clisp.org>
28692
28693         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
28694         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28695         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28696         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
28697         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
28698         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
28699
28700 2009-02-07  Bruno Haible  <bruno@clisp.org>
28701
28702         Make 64-bit clean.
28703         * lib/unictype/gen-ctype.c (output_predicate, output_category,
28704         output_combclass, output_bidi_category, output_decimal_digit,
28705         output_digit, output_numeric, output_mirror, output_scripts,
28706         output_ident_category): Use proper width specifier in format strings.
28707
28708 2009-02-07  Bruno Haible  <bruno@clisp.org>
28709
28710         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
28711         failure behaviour.
28712
28713 2009-02-07  Jim Meyering  <meyering@redhat.com>
28714
28715         regex: avoid compilation failure with upcoming gcc-4.4
28716         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
28717         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
28718         "... error: integer overflow in preprocessor expression".
28719
28720 2009-02-05  Ben Pfaff  <blp@gnu.org>
28721
28722         Fix link errors on Windows when close module is used.
28723         * modules/close: Add $(LIB_CLOSE) to Link section.
28724         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
28725         $(LIB_CLOSE) on Windows.
28726
28727 2009-02-05  Jim Meyering  <meyering@redhat.com>
28728
28729         still avoid unused-parameter warnings, but do it cleanly
28730         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
28731         (get_fs_usage): Cast to void instead.
28732         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
28733         (dev_from_mount_options, read_file_system_list): Cast to void.
28734         Prompted by Bruno Haible.
28735
28736 2009-02-04  Jim Meyering  <meyering@redhat.com>
28737
28738         fsusage.c: correct copyright year
28739         * lib/fsusage.c: Reflect year in which the change is pushed into
28740
28741         avoid misc. warnings
28742         * lib/fsusage.c (UNUSED_PARAM): Define.
28743         (get_fs_usage): Mark parameter "disk" as unused.
28744         * lib/getugroups.c (getgrent): Use "void" in prototype.
28745         * lib/mountlist.c: Mark unused parameters.
28746         (read_file_system_list): Declare a local with "const".
28747         * lib/nanosleep.c (getnow): Declare static.
28748         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
28749
28750         dirfd: set errno upon failure
28751         * lib/dirfd.c: Include <errno.h>.
28752         Set errno to ENOTSUP when returning -1.
28753         * modules/dirfd (Depends-on): Add errno.
28754         Suggested by John Kodis <kodis@comcast.net>.
28755
28756 2009-02-01  Bruno Haible  <bruno@clisp.org>
28757
28758         Don't assume sizeof (long) >= sizeof (void *).
28759         * lib/memcmp.c: Include stdint.h.
28760         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
28761         srcp2 to 'const byte *'.
28762         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
28763         types to uintptr_t.
28764         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
28765         * modules/memcmp (Depends-on): Add stdint.
28766         Reported by Ozkan Sezer <sezeroz@gmail.com>.
28767
28768 2009-01-30  Eric Blake  <ebb9@byu.net>
28769
28770         fix more require-before-expand issues
28771         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
28772         expand, AC_PROG_AWK.
28773         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
28774
28775 2009-01-28  Eric Blake  <ebb9@byu.net>
28776
28777         version-etc: use consistent URL formatting
28778         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
28779         Improve formatting.  Use fputs for string without %.
28780
28781 2009-01-28  Jim Meyering  <meyering@redhat.com>
28782
28783         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
28784         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
28785         "underquoted definition of NAME" from autoconf-2.59.
28786
28787 2009-01-28  Bruno Haible  <bruno@clisp.org>
28788
28789         * doc/gnulib.texi: Add "Obsolete modules" to index.
28790
28791 2009-01-28  Jim Meyering  <meyering@redhat.com>
28792
28793         useless-if-before-free: recognize more variants
28794         * build-aux/useless-if-before-free: Also recognize e.g.,
28795         if (NULL != p) free (p);
28796
28797 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
28798
28799         test-getaddrinfo: skip (don't fail) this test when there's no network
28800         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
28801         on the presumption that it means you lack network access.
28802
28803 2009-01-26  Jim Meyering  <meyering@redhat.com>
28804
28805         fflush: avoid warnings on modern systems
28806         * lib/fflush.c (rpl_fflush): Move declarations of locals,
28807         pos and result, into scopes where they're used.
28808
28809 2009-01-26  Eric Blake  <ebb9@byu.net>
28810
28811         Silence warning reintroduced by recent extensions patch.
28812         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
28813         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
28814         autoconf.
28815
28816         Backport improved autoconf semantics of AC_DEFUN_ONCE.
28817         * m4/00gnulib.m4: New file.
28818         * gnulib-tool (func_get_filelist): Always use it.
28819         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
28820         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
28821
28822 2009-01-25  Bruno Haible  <bruno@clisp.org>
28823
28824         Make test-quotearg work on MacOS X and AIX.
28825         * tests/test-quotearg.sh: New file.
28826         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
28827         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
28828         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
28829         include <libintl.h>.
28830         (fake_locale): Remove variable.
28831         (gettext, dgettext, dcgettext): Remove functions.
28832         (main): Instead of setting a fake locale, set a real locale. Call
28833         textdomain and bindtextdomain.
28834         * modules/quotearg-tests (Files): Add the new files.
28835         (Depends-on): Add gettext, setenv, unsetenv.
28836         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
28837         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
28838         Augment TESTS_ENVIRONMENT.
28839
28840 2009-01-25  Bruno Haible  <bruno@clisp.org>
28841
28842         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
28843         fr_FR.ISO8859-1 locale on MacOS X.
28844         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
28845         ja_JP.eucJP locale on MacOS X.
28846         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
28847         zh_CN.GB18030 locale on MacOS X.
28848
28849 2009-01-25  Bruno Haible  <bruno@clisp.org>
28850
28851         Avoid link errors on MacOS X 10.3.
28852         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
28853         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28854
28855 2009-01-25  Bruno Haible  <bruno@clisp.org>
28856
28857         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28858         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
28859         * modules/pipe (Files): Remove m4/posix_spawn.m4.
28860         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28861         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
28862         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28863         posix_spawnattr_init, posix_spawnattr_setsigmask,
28864         posix_spawnattr_setflags, posix_spawnattr_destroy.
28865
28866         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28867         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
28868         * modules/execute (Files): Remove m4/posix_spawn.m4.
28869         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28870         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28871         posix_spawnattr_init, posix_spawnattr_setsigmask,
28872         posix_spawnattr_setflags, posix_spawnattr_destroy.
28873
28874 2009-01-25  Bruno Haible  <bruno@clisp.org>
28875
28876         * lib/glthread/threadlib.c: Include <stdlib.h>.
28877
28878 2009-01-25  Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/glthread/threadlib.c (dummy): New declaration.
28881
28882 2009-01-25  Bruno Haible  <bruno@clisp.org>
28883
28884         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
28885         multibyte characters also for the GB18030 encoding. Don't crash when
28886         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
28887
28888 2009-01-25  Bruno Haible  <bruno@clisp.org>
28889
28890         Avoid redefining 'struct random_data' on OSF/1 5.1.
28891         * lib/stdlib.in.h: Include <random.h> if it exists.
28892         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
28893         HAVE_RANDOM_H. Include <random.h> when testing whether
28894         'struct random_data' exists.
28895         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
28896
28897 2009-01-25  Bruno Haible  <bruno@clisp.org>
28898
28899         Don't install charset.alias on MacOS X >= 10.3.
28900         * lib/localcharset.c (DARWIN7): New macro.
28901         (get_charset_aliases): Hardcode the result for Darwin7.
28902         * modules/localcharset (install-exec-local): Don't install
28903         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
28904
28905 2009-01-25  Bruno Haible  <bruno@clisp.org>
28906
28907         Don't install charset.alias on mingw and Cygwin.
28908         * modules/localcharset (install-exec-local): Don't install
28909         charset.alias on mingw and Cygwin, if the file does not yet exist.
28910         The result for these platforms is hardcoded in localcharset.c.
28911
28912 2009-01-25  Bruno Haible  <bruno@clisp.org>
28913
28914         Make it possible again to use AC_GNU_SOURCE together with gnulib.
28915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
28916         before requiring AC_USE_SYSTEM_EXTENSIONS.
28917
28918 2009-01-25  Jim Meyering  <meyering@redhat.com>
28919
28920         c-strtod: avoid warnings
28921         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
28922         "assignment discards qualifiers from pointer target type" warnings.
28923
28924 2009-01-24  Bruno Haible  <bruno@clisp.org>
28925
28926         Add support for non-UTF-8 locales on MacOS X.
28927         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
28928         canonical encodings. For Darwin 7 and newer, don't map traditional
28929         encodings to UTF-8.
28930         Reported by Vincent Lefevre <vincent@vinc17.org>
28931         at <http://savannah.gnu.org/bugs/?25235>.
28932
28933 2009-01-24  Bruno Haible  <bruno@clisp.org>
28934
28935         * doc/gnulib.texi (Obsolete modules): New section.
28936         Reported by Mike Frysinger <vapier@gentoo.org>.
28937
28938 2009-01-24  Bruno Haible  <bruno@clisp.org>
28939
28940         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
28941         (%.dvi): New rule.
28942
28943 2009-01-24  Bruno Haible  <bruno@clisp.org>
28944
28945         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
28946         Reported by Eric Blake.
28947
28948 2009-01-24  Bruno Haible  <bruno@clisp.org>
28949
28950         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
28951         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
28952         Reported by Gary V. Vaughan <gary@gnu.org>.
28953
28954 2009-01-24  Bruno Haible  <bruno@clisp.org>
28955
28956         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
28957
28958 2009-01-23  Bruno Haible  <bruno@clisp.org>
28959
28960         Make c-strtod, c-strtold usable in libraries.
28961         * lib/c-strtod.c: Include string.h instead of xalloc.h.
28962         (C_STRTOD): Call strdup instead of xstrdup.
28963         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
28964         * modules/c-strtold (Depends-on): Likewise.
28965         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
28966         * NEWS: Mention the change.
28967         Reported by Michael Gold <mgold@ncf.ca>.
28968
28969 2009-01-23  Jim Meyering  <meyering@redhat.com>
28970
28971         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
28972         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
28973         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
28974
28975 2009-01-23  Simon Josefsson  <simon@josefsson.org>
28976
28977         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
28978         GNU CoreUtils.
28979         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
28980         * modules/version-etc (Description): Update.
28981
28982 2009-01-22  Bruno Haible  <bruno@clisp.org>
28983
28984         Cache the C locale object.
28985         * lib/c-strtod.c (c_locale_cache): New variable.
28986         (c_locale): New function.
28987         (C_STRTOD): Use it, and don't call freelocale.
28988         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
28989         Suggested by Paolo Bonzini.
28990
28991 2009-01-21  Bruno Haible  <bruno@clisp.org>
28992
28993         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
28994         conditions other than overflow.
28995
28996 2009-01-21  Bruno Haible  <bruno@clisp.org>
28997
28998         * lib/c-strtod.c: Include errno.h.
28999         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
29000         value from STRTOD_L and STRTOD.
29001
29002 2009-01-21  Bruno Haible  <bruno@clisp.org>
29003         and Jim Meyering  <meyering@redhat.com>
29004
29005         nanosleep: skip configure test (fail it) for apple universal builds
29006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
29007         universal builds, assume that nanosleep does not work.
29008         * modules/nanosleep (Depends-on): Add multiarch.
29009
29010         mktime: skip configure test (fail it) for apple universal builds
29011         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
29012         universal builds, assume that mktime does not work.
29013         * modules/mktime (Depends-on): Add multiarch.
29014
29015 2009-01-21  Eric Blake  <ebb9@byu.net>
29016
29017         multiarch: avoid expand-before-require warning
29018         * modules/multiarch (configure.ac): Require, rather than expand,
29019         gl_MULTIARCH.
29020         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
29021         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
29022         enforce that all clients require it.  Partial reversion of
29023         2008-12-29 patch.
29024
29025         error: avoid expand-before-require warning
29026         * modules/errno (configure.ac): Require, rather than expand,
29027         gl_HEADER_ERRNO_H.
29028         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
29029         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
29030         enforce that all clients require it.
29031
29032         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
29033         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
29034         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
29035         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
29036
29037 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
29038
29039         Revert:
29040         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29041
29042         regex: do not depend on obsolete modules.
29043         * modules/regex: Remove memcmp and memmove.
29044
29045 2009-01-20  Bruno Haible  <bruno@clisp.org>
29046
29047         Make the 'link' module link on Windows NT 4.
29048         * lib/link.c (_WIN32_WINNT): Don't define.
29049         (CreateHardLinkFuncType): New type.
29050         (CreateHardLinkFunc, initialized): New variables.
29051         (initialize): New function.
29052         (link): Invoke CreateHardLink indirectly through the function pointer.
29053
29054 2009-01-20  Bruno Haible  <bruno@clisp.org>
29055
29056         Fix compilation failure on mingw.
29057         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
29058
29059 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
29060
29061         * doc/c-strtod.texi: Mention a couple of restrictions.
29062
29063 2009-01-20  Jim Meyering  <meyering@redhat.com>
29064
29065         gettimeofday: move more declarations out of functions
29066         * lib/gettimeofday.c: Move extern declarations of tzset and
29067         gmtime out of containing functions.  Prompted by Bruno Haible.
29068
29069 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29070
29071         regex: do not depend on obsolete modules.
29072         * modules/regex: Remove memcmp and memmove.
29073
29074 2009-01-19  Bruno Haible  <bruno@clisp.org>
29075
29076         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29077         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
29078         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29079         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
29080         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
29081
29082 2009-01-19  Bruno Haible  <bruno@clisp.org>
29083
29084         * tests/test-link.c: Include <errno.h>.
29085         (main): Exit with code 77 when a hard link cannot be created due to
29086         the file system.
29087         * tests/test-link.sh: Skip test when a hard link cannot be created due
29088         to the file system.
29089         Suggested by Eric Blake.
29090
29091 2009-01-19  Martin Lambers  <marlam@marlam.de>
29092
29093         * modules/link-tests: New file.
29094         * tests/test-link.sh: New file.
29095         * tests/test-link.c: New file.
29096
29097 2009-01-19  Eric Blake  <ebb9@byu.net>
29098
29099         doc: mention another function added in cygwin 1.7.0
29100         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
29101         Another new function in cygwin 1.7.
29102
29103 2009-01-19  Bruno Haible  <bruno@clisp.org>
29104
29105         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29106         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
29107         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
29108         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29109         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29110         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29111         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29112         * m4/md4.m4 (gl_MD4): Likewise.
29113         * m4/md5.m4 (gl_MD5): Likewise.
29114         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
29115         * m4/sha1.m4 (gl_SHA1): Likewise.
29116         * m4/sha256.m4 (gl_SHA256): Likewise.
29117         * m4/sha512.m4 (gl_SHA512): Likewise.
29118
29119 2009-01-19  Bruno Haible  <bruno@clisp.org>
29120
29121         * modules/uniname/uniname-tests (Depends-on): Add progname.
29122         * tests/uniname/test-uninames.c: Include progname.h.
29123         (main): Call set_program_name.
29124
29125         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29126         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29127         (main): Call set_program_name.
29128
29129         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29130         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29131         (main): Call set_program_name.
29132
29133         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
29134         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
29135         (main): Call set_program_name.
29136
29137         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
29138         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
29139         (main): Call set_program_name.
29140
29141         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
29142         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
29143         (main): Call set_program_name.
29144
29145         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
29146         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
29147         (main): Call set_program_name.
29148
29149         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
29150         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
29151         (main): Call set_program_name.
29152
29153         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
29154         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
29155         (main): Call set_program_name.
29156
29157 2009-01-19  Eric Blake  <ebb9@byu.net>
29158
29159         test-unistd: test previous patch
29160         * tests/test-unistd.c: Test *_FILENO macros.
29161
29162         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
29163         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29164         Guarantee a definition.
29165         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
29166         * modules/unistd-safer (Depends-on): Add dependency on unistd.
29167         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
29168         * lib/dup-safer.c (STDERR_FILENO): Likewise.
29169         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29170         Likewise.
29171         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
29172         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
29173         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29174         Likewise.
29175         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
29176         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
29177         (STDERR_FILENO): Likewise.
29178         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
29179         (STDERR_FILENO): Likewise.
29180         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
29181         (STDERR_FILENO): Likewise.
29182         Reported by Elbert Pol.
29183
29184 2009-01-19  Eric Blake  <ebb9@byu.net>
29185
29186         doc: mention more functions added in cygwin 1.7.0
29187         * doc/posix-functions/abort.texi (abort): Update wording related
29188         to cygwin.
29189         * doc/posix-functions/daylight.texi (daylight): Likewise.
29190         * doc/posix-functions/optarg.texi (optarg): Likewise.
29191         * doc/posix-functions/optarg.texi (opterr): Likewise.
29192         * doc/posix-functions/optarg.texi (optind): Likewise.
29193         * doc/posix-functions/optarg.texi (optopt): Likewise.
29194         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
29195         worked in 1.5.x, and was withdrawn in 1.7.
29196         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29197         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
29198         cygwin versions.
29199         * doc/posix-functions/perror.texi (perror): Likewise.
29200         * doc/posix-functions/printf.texi (printf): Likewise.
29201         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
29202         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
29203         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29204         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29205         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29206         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
29207         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29208         Likewise.
29209         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29210         Likewise.
29211         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
29212         this function.
29213         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
29214         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
29215         Likewise.
29216         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
29217         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
29218         * doc/posix-functions/confstr.texi (confstr): Likewise.
29219         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
29220         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
29221         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
29222         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
29223         * doc/posix-functions/fputws.texi (fputws): Likewise.
29224         * doc/posix-functions/fwide.texi (fwide): Likewise.
29225         * doc/posix-functions/getwc.texi (getwc): Likewise.
29226         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
29227         * doc/posix-functions/putwc.texi (putwc): Likewise.
29228         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29229         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
29230         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
29231         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29232         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
29233         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
29234         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
29235         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
29236         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
29237         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
29238         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
29239
29240 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29241
29242         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
29243         * lib/ioctl.c: Include <sys/ioctl.h>.
29244
29245 2009-01-19  Simon Josefsson  <simon@josefsson.org>
29246
29247         * modules/getdate-tests (Depends-on): Add progname.
29248         * tests/test-getdate.c: Use progname module, to avoid link errors
29249         on non-glibc systems.
29250
29251 2009-01-18  Simon Josefsson  <simon@josefsson.org>
29252
29253         * modules/filenamecat-tests (Depends-on): Add progname.
29254         * modules/fstrcmp-tests (Depends-on): Likewise.
29255
29256         * tests/test-filenamecat.c: Use progname module, to avoid link
29257         errors on non-glibc systems.
29258         * tests/test-fstrcmp.c: Likewise.
29259
29260 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29261
29262         gettimeofday: avoid warning: nested extern declaration of 'localtime'
29263         * lib/gettimeofday.c: Move extern declaration out of function.
29264
29265 2009-01-18  Bruno Haible  <bruno@clisp.org>
29266
29267         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
29268         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
29269         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
29270
29271 2009-01-18  Bruno Haible  <bruno@clisp.org>
29272
29273         * lib/strftime.c (MEMPCPY): Remove unused macro.
29274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
29275
29276 2009-01-18  Martin Lambers  <marlam@marlam.de>
29277
29278         New module 'link'.
29279         * lib/unistd.in.h (link): New declaration.
29280         * lib/link.c: New file.
29281         * m4/link.m4: New file.
29282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
29283         HAVE_LINK.
29284         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
29285         * modules/link: New file.
29286         * doc/posix-functions/link.texi: Mention the new module.
29287
29288 2009-01-18  Bruno Haible  <bruno@clisp.org>
29289
29290         * tests/test-avltree_list.c (main): Call set_program_name.
29291         * tests/test-avltree_oset.c (main): Likewise.
29292         * tests/test-obstack-printf.c: Include progname.h.
29293         (main): Call set_program_name.
29294         * tests/test-quotearg.c: Include progname.h.
29295         (main): Call set_program_name.
29296         * tests/test-xmemdup0.c: Include progname.h.
29297         (main): Call set_program_name.
29298
29299 2009-01-18  Bruno Haible  <bruno@clisp.org>
29300
29301         New module 'alphasort'.
29302         * lib/dirent.in.h (alphasort): New declaration.
29303         * lib/alphasort.c: New file, from glibc with modifications.
29304         * m4/alphasort.m4: New file.
29305         * modules/alphasort: New file.
29306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
29307         HAVE_ALPHASORT.
29308         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
29309         HAVE_ALPHASORT.
29310         * doc/posix-functions/alphasort.texi: Mention the new module and the
29311         portability problems.
29312
29313 2009-01-18  Bruno Haible  <bruno@clisp.org>
29314
29315         New module 'scandir'.
29316         * lib/dirent.in.h (scandir): New declaration.
29317         * lib/scandir.c: New file, from glibc with modifications.
29318         * m4/scandir.m4: New file.
29319         * modules/scandir: New file.
29320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
29321         HAVE_SCANDIR.
29322         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
29323         HAVE_SCANDIR.
29324         * doc/posix-functions/scandir.texi: Mention the new module and the
29325         portability problems.
29326
29327 2009-01-17  Bruno Haible  <bruno@clisp.org>
29328
29329         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
29330         Update documentation.
29331         (func_remove_suffix): Escape all dots in the suffix. Update
29332         documentation.
29333         (func_filter_filelist): Update documentation.
29334         Reported by Ralf Wildenhues.
29335
29336 2009-01-17  Bruno Haible  <bruno@clisp.org>
29337
29338         * modules/dprintf-posix-tests: New file.
29339         * tests/test-dprintf-posix.sh: New file.
29340         * tests/test-dprintf-posix.c: New file.
29341
29342         New modules 'dprintf', 'dprintf-posix'.
29343         * lib/stdio.in.h (dprintf): New declaration.
29344         * lib/dprintf.c: New file.
29345         * m4/dprintf.m4: New file.
29346         * m4/dprintf-posix.m4: New file.
29347         * modules/dprintf: New file.
29348         * modules/dprintf-posix: New file.
29349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29350         HAVE_DPRINTF, REPLACE_DPRINTF.
29351         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29352         HAVE_DPRINTF, REPLACE_DPRINTF.
29353         * doc/posix-functions/dprintf.texi: Mention the new modules.
29354
29355 2009-01-17  Bruno Haible  <bruno@clisp.org>
29356
29357         * modules/vdprintf-posix-tests: New file.
29358         * tests/test-vdprintf-posix.sh: New file.
29359         * tests/test-vdprintf-posix.c: New file.
29360
29361         New modules 'vdprintf', 'vdprintf-posix'.
29362         * lib/stdio.in.h (vdprintf): New declaration.
29363         * lib/vdprintf.c: New file.
29364         * m4/vdprintf.m4: New file.
29365         * m4/vdprintf-posix.m4: New file.
29366         * modules/vdprintf: New file.
29367         * modules/vdprintf-posix: New file.
29368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
29369         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29370         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
29371         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29372         * doc/posix-functions/vdprintf.texi: Mention the new modules.
29373
29374 2009-01-17  Bruno Haible  <bruno@clisp.org>
29375
29376         Fix replacement of fopen on mingw.
29377         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
29378         mingw.
29379
29380 2009-01-17  Bruno Haible  <bruno@clisp.org>
29381
29382         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
29383         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
29384
29385 2009-01-17  Bruno Haible  <bruno@clisp.org>
29386
29387         Avoid test-fflush2.sh failure on mingw.
29388         * tests/test-fflush2.c: Include binary-io.h.
29389         (main): Put standard input into binary mode.
29390         * modules/fflush-tests (Depends-on): Add binary-io.
29391
29392 2009-01-17  Bruno Haible  <bruno@clisp.org>
29393
29394         * lib/wchar.in.h: In another particular situation, include only the
29395         system's <wchar.h> file.
29396         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
29397         Reported by Albert Chin-A-Young <china@thewrittenword.com>
29398         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
29399
29400 2009-01-17  Bruno Haible  <bruno@clisp.org>
29401
29402         Support for stripping executables in --enable-relocatable.
29403         * build-aux/install-reloc: Expect one more argument, or an environment
29404         variable RELOC_STRIP_PROG. If set, strip the destination program and
29405         its wrapper.
29406         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
29407         RELOC_STRIP_PROG.
29408         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
29409         to set RELOCATABLE_STRIP.
29410         * NEWS: Mention the new Makefile requirement.
29411
29412 2009-01-17  Bruno Haible  <bruno@clisp.org>
29413
29414         * build-aux/install-reloc: Remove debugging information left over by
29415         C compiler on MacOS X.
29416
29417 2009-01-17  Bruno Haible  <bruno@clisp.org>
29418
29419         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
29420         * lib/progreloc.c (find_executable): Fix type of pointer passed to
29421         _NSGetExecutablePath.
29422
29423 2009-01-16  Jim Meyering  <meyering@redhat.com>
29424
29425         strerror: avoid warnings about discarding "const"
29426         * lib/strerror.c (rpl_strerror): Instead of returning a const
29427         string from each and every "case", use a variable, and add a single
29428         cast after the switch.
29429
29430 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
29431
29432         * lib/arpa_inet.in.h: Add extern "C" block for C++.
29433
29434 2009-01-16  Bruno Haible  <bruno@clisp.org>
29435
29436         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
29437         array initializer syntax that also works in C++ mode.
29438         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29439
29440 2009-01-16  Jim Meyering  <meyering@redhat.com>
29441
29442         poll: suppress a warning
29443         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
29444         to ignore "...unsigned expression < 0 is always false" warnings.
29445
29446 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
29447
29448         poll: remove declarations of unused variables
29449         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
29450         sockbuf and optlen.
29451
29452 2009-01-15  Bruno Haible  <bruno@clisp.org>
29453
29454         Make fflush-after-ungetc POSIX compliant on BSD systems.
29455         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
29456         (clear_ungetc_buffer): Implement also for other systems.
29457         (rpl_fflush): On glibc systems, invoke
29458         clear_ungetc_buffer_preserving_position. Otherwise, invoke
29459         clear_ungetc_buffer after fetching the stream's position, not before.
29460
29461 2009-01-15  Bruno Haible  <bruno@clisp.org>
29462
29463         Make fflush-after-ungetc POSIX compliant on glibc systems.
29464         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
29465         after ungetc.
29466         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
29467         (rpl_fflush): On glibc systems, simply call the system's fflush
29468         function after clearing the ungetc buffer.
29469         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29470         Instead, lseek only to the end of file, then use the system's fseeko
29471         for the rest. On glibc systems, reset the EOF indicator bit.
29472
29473 2009-01-15  Jim Meyering  <meyering@redhat.com>
29474
29475         openmp.m4: revert quote-adding change, for portability to older autoconf
29476         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29477         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29478         Simon Josefsson noticed the problem when using autoconf-2.61.
29479
29480 2009-01-15  Bruno Haible  <bruno@clisp.org>
29481
29482         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29483         * tests/test-fflush2.c (ASSERT): Always fail.
29484         (main): Add two tests for fflush() after ungetc(), taking into account
29485         the Austin Group's clarification.
29486         Suggested by Eric Blake.
29487
29488 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29489
29490         mktime.m4: remove K&R-style function prototypes
29491         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29492         for the Sun C++ compiler.
29493
29494 2009-01-14  Bruno Haible  <bruno@clisp.org>
29495
29496         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29497         while including <wchar.h>.
29498         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29499         the system's <wchar.h> file.
29500         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29501
29502 2009-01-14  Bruno Haible  <bruno@clisp.org>
29503
29504         * m4/csharp.m4: Don't mention gettext on the serial number line.
29505         * m4/csharpexec.m4: Likewise.
29506         * m4/eaccess.m4: Likewise.
29507         * m4/javaexec.m4: Likewise.
29508         * m4/sig_atomic_t.m4: Likewise.
29509         * m4/tmpdir.m4: Likewise.
29510         * m4/intldir.m4: Bump gettext version.
29511         * m4/lib-ld.m4: Likewise.
29512
29513 2009-01-14  Bruno Haible  <bruno@clisp.org>
29514
29515         * lib/progname.c (set_program_name): Add more comments.
29516         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29517
29518 2009-01-14  Simon Josefsson  <simon@josefsson.org>
29519
29520         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
29521         were sys/stat.h does not define it.
29522
29523 2009-01-14  Jim Meyering  <meyering@redhat.com>
29524
29525         many *.m4 files: improve m4 quoting
29526         99% of this change was performed by running the following commands:
29527         git ls-files | grep '\.m4$' | xargs perl -pi \
29528           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
29529           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29530           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29531           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
29532         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
29533         The remainder were to add Copyright dates, increment serial numbers,
29534         undo some changes in comments, exclude m4/intl.m4, and add quotes
29535         around the "1" in ",1" where the unusual spacing prohibited the
29536         above regexps from doing the job.  For more details, see
29537         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
29538         * m4/acl.m4: Modified.
29539         * m4/afs.m4: Likewise.
29540         * m4/alloca.m4: Likewise.
29541         * m4/argp.m4: Likewise.
29542         * m4/argz.m4: Likewise.
29543         * m4/atexit.m4: Likewise.
29544         * m4/bison-i18n.m4: Likewise.
29545         * m4/bison.m4: Likewise.
29546         * m4/byteswap.m4: Likewise.
29547         * m4/c-stack.m4: Likewise.
29548         * m4/c-strtod.m4: Likewise.
29549         * m4/calloc.m4: Likewise.
29550         * m4/canonicalize-lgpl.m4: Likewise.
29551         * m4/chown.m4: Likewise.
29552         * m4/clock_time.m4: Likewise.
29553         * m4/codeset.m4: Likewise.
29554         * m4/copy-file.m4: Likewise.
29555         * m4/csharp.m4: Likewise.
29556         * m4/csharpcomp.m4: Likewise.
29557         * m4/csharpexec.m4: Likewise.
29558         * m4/d-ino.m4: Likewise.
29559         * m4/d-type.m4: Likewise.
29560         * m4/dirfd.m4: Likewise.
29561         * m4/double-slash-root.m4: Likewise.
29562         * m4/eaccess.m4: Likewise.
29563         * m4/eealloc.m4: Likewise.
29564         * m4/environ.m4: Likewise.
29565         * m4/errno_h.m4: Likewise.
29566         * m4/euidaccess.m4: Likewise.
29567         * m4/execute.m4: Likewise.
29568         * m4/fatal-signal.m4: Likewise.
29569         * m4/fchdir.m4: Likewise.
29570         * m4/fcntl_h.m4: Likewise.
29571         * m4/fileblocks.m4: Likewise.
29572         * m4/filenamecat.m4: Likewise.
29573         * m4/findprog.m4: Likewise.
29574         * m4/flexmember.m4: Likewise.
29575         * m4/fnmatch.m4: Likewise.
29576         * m4/fopen.m4: Likewise.
29577         * m4/fpending.m4: Likewise.
29578         * m4/fprintf-posix.m4: Likewise.
29579         * m4/free.m4: Likewise.
29580         * m4/frexp.m4: Likewise.
29581         * m4/frexpl.m4: Likewise.
29582         * m4/fsusage.m4: Likewise.
29583         * m4/ftruncate.m4: Likewise.
29584         * m4/gc-camellia.m4: Likewise.
29585         * m4/gc-random.m4: Likewise.
29586         * m4/gc.m4: Likewise.
29587         * m4/getaddrinfo.m4: Likewise.
29588         * m4/getcwd-abort-bug.m4: Likewise.
29589         * m4/getcwd-path-max.m4: Likewise.
29590         * m4/getdate.m4: Likewise.
29591         * m4/getdomainname.m4: Likewise.
29592         * m4/getgroups.m4: Likewise.
29593         * m4/gethostname.m4: Likewise.
29594         * m4/gethrxtime.m4: Likewise.
29595         * m4/getline.m4: Likewise.
29596         * m4/getloadavg.m4: Likewise.
29597         * m4/getndelim2.m4: Likewise.
29598         * m4/getpass.m4: Likewise.
29599         * m4/gettext.m4: Likewise.
29600         * m4/gettime.m4: Likewise.
29601         * m4/gettimeofday.m4: Likewise.
29602         * m4/gnulib-common.m4: Likewise.
29603         * m4/group-member.m4: Likewise.
29604         * m4/host-os.m4: Likewise.
29605         * m4/iconv.m4: Likewise.
29606         * m4/iconv_open.m4: Likewise.
29607         * m4/inet_ntop.m4: Likewise.
29608         * m4/inet_pton.m4: Likewise.
29609         * m4/inline.m4: Likewise.
29610         * m4/intldir.m4: Likewise.
29611         * m4/intlmacosx.m4: Likewise.
29612         * m4/intmax.m4: Likewise.
29613         * m4/intmax_t.m4: Likewise.
29614         * m4/inttypes.m4: Likewise.
29615         * m4/inttypes_h.m4: Likewise.
29616         * m4/inttypes-pri.m4: Likewise.
29617         * m4/isapipe.m4: Likewise.
29618         * m4/isnand.m4: Likewise.
29619         * m4/isnanf.m4: Likewise.
29620         * m4/isnanl.m4: Likewise.
29621         * m4/javacomp.m4: Likewise.
29622         * m4/javaexec.m4: Likewise.
29623         * m4/jm-winsz1.m4: Likewise.
29624         * m4/jm-winsz2.m4: Likewise.
29625         * m4/lchown.m4: Likewise.
29626         * m4/lcmessage.m4: Likewise.
29627         * m4/ldexpl.m4: Likewise.
29628         * m4/lib-ld.m4: Likewise.
29629         * m4/lib-link.m4: Likewise.
29630         * m4/libsigsegv.m4: Likewise.
29631         * m4/link-follow.m4: Likewise.
29632         * m4/localcharset.m4: Likewise.
29633         * m4/locale-fr.m4: Likewise.
29634         * m4/locale-ja.m4: Likewise.
29635         * m4/locale-tr.m4: Likewise.
29636         * m4/locale-zh.m4: Likewise.
29637         * m4/lock.m4: Likewise.
29638         * m4/longlong.m4: Likewise.
29639         * m4/ls-mntd-fs.m4: Likewise.
29640         * m4/lstat.m4: Likewise.
29641         * m4/malloc.m4: Likewise.
29642         * m4/mathl.m4: Likewise.
29643         * m4/mbrtowc.m4: Likewise.
29644         * m4/mbstate_t.m4: Likewise.
29645         * m4/mbswidth.m4: Likewise.
29646         * m4/memchr.m4: Likewise.
29647         * m4/memcmp.m4: Likewise.
29648         * m4/memcpy.m4: Likewise.
29649         * m4/memmem.m4: Likewise.
29650         * m4/memmove.m4: Likewise.
29651         * m4/mempcpy.m4: Likewise.
29652         * m4/memrchr.m4: Likewise.
29653         * m4/memset.m4: Likewise.
29654         * m4/minmax.m4: Likewise.
29655         * m4/mkdir-slash.m4: Likewise.
29656         * m4/mkdtemp.m4: Likewise.
29657         * m4/mktime.m4: Likewise.
29658         * m4/mmap-anon.m4: Likewise.
29659         * m4/mountlist.m4: Likewise.
29660         * m4/nanosleep.m4: Likewise.
29661         * m4/nls.m4: Likewise.
29662         * m4/nocrash.m4: Likewise.
29663         * m4/open.m4: Likewise.
29664         * m4/openat.m4: Likewise.
29665         * m4/openmp.m4: Likewise.
29666         * m4/pathmax.m4: Likewise.
29667         * m4/perl.m4: Likewise.
29668         * m4/physmem.m4: Likewise.
29669         * m4/pipe.m4: Likewise.
29670         * m4/po.m4: Likewise.
29671         * m4/poll.m4: Likewise.
29672         * m4/posixtm.m4: Likewise.
29673         * m4/posixver.m4: Likewise.
29674         * m4/printf-frexp.m4: Likewise.
29675         * m4/printf-frexpl.m4: Likewise.
29676         * m4/printf-posix.m4: Likewise.
29677         * m4/printf-posix-rpl.m4: Likewise.
29678         * m4/printf.m4: Likewise.
29679         * m4/progtest.m4: Likewise.
29680         * m4/putenv.m4: Likewise.
29681         * m4/readline.m4: Likewise.
29682         * m4/readlink.m4: Likewise.
29683         * m4/readutmp.m4: Likewise.
29684         * m4/realloc.m4: Likewise.
29685         * m4/regex.m4: Likewise.
29686         * m4/relocatable.m4: Likewise.
29687         * m4/relocatable-lib.m4: Likewise.
29688         * m4/rename-dest-slash.m4: Likewise.
29689         * m4/rename.m4: Likewise.
29690         * m4/rmdir-errno.m4: Likewise.
29691         * m4/rmdir.m4: Likewise.
29692         * m4/roundf.m4: Likewise.
29693         * m4/roundl.m4: Likewise.
29694         * m4/rpmatch.m4: Likewise.
29695         * m4/save-cwd.m4: Likewise.
29696         * m4/selinux-selinux-h.m4: Likewise.
29697         * m4/setenv.m4: Likewise.
29698         * m4/settime.m4: Likewise.
29699         * m4/sig2str.m4: Likewise.
29700         * m4/sig_atomic_t.m4: Likewise.
29701         * m4/signalblocking.m4: Likewise.
29702         * m4/signbit.m4: Likewise.
29703         * m4/sigpipe.m4: Likewise.
29704         * m4/sockets.m4: Likewise.
29705         * m4/sockpfaf.m4: Likewise.
29706         * m4/st_dm_mode.m4: Likewise.
29707         * m4/stat-time.m4: Likewise.
29708         * m4/stdbool.m4: Likewise.
29709         * m4/stdint.m4: Likewise.
29710         * m4/stdint_h.m4: Likewise.
29711         * m4/stpcpy.m4: Likewise.
29712         * m4/stpncpy.m4: Likewise.
29713         * m4/strcase.m4: Likewise.
29714         * m4/strchrnul.m4: Likewise.
29715         * m4/strcspn.m4: Likewise.
29716         * m4/strdup.m4: Likewise.
29717         * m4/strftime.m4: Likewise.
29718         * m4/strndup.m4: Likewise.
29719         * m4/strnlen.m4: Likewise.
29720         * m4/strpbrk.m4: Likewise.
29721         * m4/strptime.m4: Likewise.
29722         * m4/strsep.m4: Likewise.
29723         * m4/strtod.m4: Likewise.
29724         * m4/strtoimax.m4: Likewise.
29725         * m4/strtok_r.m4: Likewise.
29726         * m4/strtol.m4: Likewise.
29727         * m4/strtoll.m4: Likewise.
29728         * m4/strtoul.m4: Likewise.
29729         * m4/strtoull.m4: Likewise.
29730         * m4/strtoumax.m4: Likewise.
29731         * m4/strverscmp.m4: Likewise.
29732         * m4/threadlib.m4: Likewise.
29733         * m4/timegm.m4: Likewise.
29734         * m4/tm_gmtoff.m4: Likewise.
29735         * m4/tmpdir.m4: Likewise.
29736         * m4/tmpfile.m4: Likewise.
29737         * m4/tzset.m4: Likewise.
29738         * m4/uintmax_t.m4: Likewise.
29739         * m4/unlinkdir.m4: Likewise.
29740         * m4/unlocked-io.m4: Likewise.
29741         * m4/uptime.m4: Likewise.
29742         * m4/userspec.m4: Likewise.
29743         * m4/utimbuf.m4: Likewise.
29744         * m4/utime.m4: Likewise.
29745         * m4/utimes-null.m4: Likewise.
29746         * m4/utimes.m4: Likewise.
29747         * m4/vararrays.m4: Likewise.
29748         * m4/vasnprintf.m4: Likewise.
29749         * m4/vfprintf-posix.m4: Likewise.
29750         * m4/vprintf-posix.m4: Likewise.
29751         * m4/wait-process.m4: Likewise.
29752         * m4/wchar_t.m4: Likewise.
29753         * m4/wint_t.m4: Likewise.
29754         * m4/write-any-file.m4: Likewise.
29755         * m4/yield.m4: Likewise.
29756
29757 2009-01-13  Bruno Haible  <bruno@clisp.org>
29758
29759         Avoid test-copy-file.sh failures when ACL support insufficient.
29760         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
29761         TESTS_ENVIRONMENT.
29762         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
29763         Reported by Jim Meyering.
29764
29765 2009-01-13  Bruno Haible  <bruno@clisp.org>
29766
29767         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
29768         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
29769         * modules/unistdio/u8-printf-parse (Files): Likewise.
29770         * modules/unistdio/u32-printf-parse (Files): Likewise.
29771         * modules/unistdio/ulc-printf-parse (Files): Likewise.
29772
29773 2009-01-13  Simon Josefsson  <simon@josefsson.org>
29774
29775         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
29776         and m4/inttypes_h.m4 too.
29777
29778 2009-01-12  Eric Blake  <ebb9@byu.net>
29779
29780         tests: IRIX 6.2 cc can't compile -0.0 into .data
29781         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
29782         rather than at compile-time.
29783         * tests/test-floorl.c (minus_zero): Likewise.
29784         * tests/test-frexpl.c (minus_zero): Likewise.
29785         * tests/test-isnan.c (minus_zerol): Likewise.
29786         * tests/test-isnanl.h (minus_zero): Likewise.
29787         * tests/test-ldexpl.c (minus_zero): Likewise.
29788         * tests/test-roundl.c (minus_zero): Likewise.
29789         * tests/test-signbit.c (minus_zerol): Likewise.
29790         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29791         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29792         * tests/test-truncl.c (minus_zero): Likewise.
29793         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29794         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29795         Reported by Tom G. Christensen and Nelson H. F. Beebe.
29796
29797 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29798
29799         regex: fix glibc bug 9697
29800         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
29801         handling.
29802
29803 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29804
29805         regex: fix glibc bug 697
29806         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
29807         being NULL also if there are no backreferences.
29808
29809 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29810
29811         regex: merge glibc changes
29812         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
29813         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
29814         re_string_skip_chars, re_string_reconstruct): Likewise.
29815         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
29816
29817 2009-01-07  Jim Meyering  <meyering@redhat.com>
29818
29819         poll: filter through cppi
29820         * lib/poll.c: Indent cpp directives to reflect nesting.
29821
29822 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
29823
29824         poll: don't return uninitialized
29825         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
29826
29827 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
29828
29829         avoid compile failure on AIX 6.1
29830         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
29831         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
29832
29833 2009-01-04  Jim Meyering  <meyering@redhat.com>
29834
29835         remove duplicate inclusion of <stdio.h>
29836         * tests/test-fprintf-posix.c: Likewise.
29837         * tests/test-printf-posix.c: Likewise.
29838         * tests/test-snprintf-posix.c: Likewise.
29839         * tests/test-sprintf-posix.c: Likewise.
29840         * tests/test-vasprintf-posix.c: Likewise.
29841         * tests/test-vfprintf-posix.c: Likewise.
29842         * tests/test-vprintf-posix.c: Likewise.
29843         * tests/test-vsnprintf-posix.c: Likewise.
29844         * tests/test-vsprintf-posix.c: Likewise.
29845
29846 2009-01-03  Jim Meyering  <meyering@redhat.com>
29847
29848         gnulib-tool: fix sed-based filtering
29849         * gnulib-tool (func_filter_filelist): Remove extra backslash
29850         in sed_fff_filter definition.
29851
29852 2009-01-02  Jim Meyering  <meyering@redhat.com>
29853
29854         strftime: avoid compilation failure on Solaris 2.6
29855         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
29856         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
29857         Don't #define mbrlen or mbsinit, since now they're guaranteed to
29858         be available.  Reported by Tom G. Christensen.  Details in
29859         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
29860
29861 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29862             Bruno Haible  <bruno@clisp.org>
29863
29864         Speed up gnulib-tool by doing more string processing through shell
29865         built-ins.
29866         * gnulib-tool (fast_func_append): New variable.
29867         (func_remove_prefix, func_remove_suffix): New functions.
29868         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
29869         (func_filter_filelist): New function.
29870         (func_get_dependencies): Use func_remove_suffix instead of sed.
29871         (func_get_automake_snippet): Use func_filter_filelist instead of a
29872         subshell and sed invocation.
29873
29874 2009-01-01  Bruno Haible  <bruno@clisp.org>
29875
29876         Fix a security bug.
29877         * gnulib-tool (func_import, import, update): Don't allow the characters
29878         '"', '$', '`', '\' in macro arguments that become part of commands that
29879         are evaluated.
29880
29881 2009-01-01  Bruno Haible  <bruno@clisp.org>
29882
29883         * gnulib-tool (func_reset_sigpipe): Add more comments.
29884
29885 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29886
29887         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
29888         func_emit_tests_Makefile_am, func_import): Abort loops early if we
29889         already know the answer.
29890
29891 2009-01-01  Jim Meyering  <meyering@redhat.com>
29892
29893         * lib/version-etc.c (version_etc_va): Update copyright year.
29894
29895 2008-12-30  Bruno Haible  <bruno@clisp.org>
29896
29897         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
29898         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
29899         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
29900
29901 2008-12-29  Eric Blake  <ebb9@byu.net>
29902
29903         multiarch: avoid autoconf AC_REQUIRE bug
29904         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
29905         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
29906         2.63 and older.
29907         Reported by Bruno Haible, and analyzed in
29908         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
29909
29910 2008-12-29  Bruno Haible  <bruno@clisp.org>
29911
29912         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
29913         files in subdirectories correctly.
29914         Reported by Ralf Wildenhues.
29915
29916 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29917
29918         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
29919         rather than 'join FILE -', for Solaris join.
29920
29921 2008-12-29  Bruno Haible  <bruno@clisp.org>
29922
29923         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
29924         quoting.
29925         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29926         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29927         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29928         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
29929         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29930         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29931         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29932         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29933         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29934         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29935         * m4/nls.m4 (AM_NLS): Likewise.
29936         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
29937         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29938         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29939         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29940         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29941         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29942         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
29943         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29944         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29945         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29946         * m4/xsize.m4 (gl_XSIZE): Likewise.
29947         Suggested by Jim Meyering.
29948
29949 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29950
29951         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
29952         * lib/parse-duration.c: use a switch instead of cascading if's.
29953
29954 2008-12-29  Eric Blake  <ebb9@byu.net>
29955
29956         wchar.h: supply WEOF on Irix 5.3
29957         * lib/wchar.in.h (wint_t): Also supply WEOF.
29958         * lib/wctype.in.h (wint_t): Likewise.
29959         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
29960         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
29961         Reported by Tom G. Christensen.
29962
29963 2008-12-26  Bruno Haible  <bruno@clisp.org>
29964
29965         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
29966         i486, i586, i686.
29967
29968 2008-12-26  Bruno Haible  <bruno@clisp.org>
29969
29970         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
29971
29972 2008-12-26  Bruno Haible  <bruno@clisp.org>
29973
29974         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
29975         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
29976         not __STDC_CONSTANT_MACROS.
29977         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29978
29979 2008-12-25  Bruno Haible  <bruno@clisp.org>
29980
29981         Add support for universal builds to vasnprintf.
29982         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
29983         universal builds, guess no.
29984         * modules/vasnprintf-posix (Depends-on): Add multiarch.
29985         * modules/vasprintf-posix (Depends-on): Likewise.
29986         * modules/fprintf-posix (Depends-on): Likewise.
29987         * modules/vfprintf-posix (Depends-on): Likewise.
29988         * modules/snprintf-posix (Depends-on): Likewise.
29989         * modules/vsnprintf-posix (Depends-on): Likewise.
29990         * modules/sprintf-posix (Depends-on): Likewise.
29991         * modules/vsprintf-posix (Depends-on): Likewise.
29992         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29993         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29994         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29995         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29996         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29997         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29998         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29999
30000         Add support for universal builds to <inttypes.h>.
30001         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
30002         _SCNu64_PREFIX): In Apple
30003         universal builds, define directly, using _LP64.
30004         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
30005         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
30006         * modules/inttypes (Depends-on): Add multiarch.
30007         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30008
30009         Add support for universal builds to <stdint.h>.
30010         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
30011         universal builds, define directly, using _LP64.
30012         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
30013         Apple universal builds, don't test for the size and suffix of ptrdiff_t
30014         and size_t.
30015         * modules/stdint (Depends-on): Add multiarch.
30016         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30017
30018         New module 'multiarch'.
30019         * modules/multiarch: New file.
30020         * m4/multiarch.m4: New file.
30021
30022 2008-12-25  Bruno Haible  <bruno@clisp.org>
30023
30024         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
30025
30026 2008-12-25  Bruno Haible  <bruno@clisp.org>
30027
30028         * modules/btowc (License): Relicense under LGPLv2+.
30029         * modules/mbsinit (License): Likewise.
30030         * modules/mbrtowc (License): Likewise.
30031         * modules/wcrtomb (License): Likewise.
30032         * modules/streq (License): Likewise.
30033         Reported by David Lutterkort <lutter@redhat.com>.
30034
30035 2008-12-23  Bruno Haible  <bruno@clisp.org>
30036
30037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
30038
30039 2008-12-23  Bruno Haible  <bruno@clisp.org>
30040
30041         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
30042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
30043         GETADDRINFO_LIB, not in LIBS.
30044         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
30045         * modules/canon-host (Link): Likewise.
30046         * NEWS: Mention the change.
30047         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
30048         GETADDRINFO_LIB.
30049
30050 2008-12-22  Bruno Haible  <bruno@clisp.org>
30051
30052         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
30053         * doc/posix-functions/iswalpha_l.texi: Likewise.
30054         * doc/posix-functions/iswblank_l.texi: Likewise.
30055         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30056         * doc/posix-functions/iswctype_l.texi: Likewise.
30057         * doc/posix-functions/iswdigit_l.texi: Likewise.
30058         * doc/posix-functions/iswgraph_l.texi: Likewise.
30059         * doc/posix-functions/iswlower_l.texi: Likewise.
30060         * doc/posix-functions/iswprint_l.texi: Likewise.
30061         * doc/posix-functions/iswpunct_l.texi: Likewise.
30062         * doc/posix-functions/iswspace_l.texi: Likewise.
30063         * doc/posix-functions/iswupper_l.texi: Likewise.
30064         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30065         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
30066         * doc/posix-functions/open_wmemstream.texi: Likewise.
30067         * doc/posix-functions/swscanf.texi: Likewise.
30068         * doc/posix-functions/towctrans_l.texi: Likewise.
30069         * doc/posix-functions/towlower.texi: Likewise.
30070         * doc/posix-functions/towlower_l.texi: Likewise.
30071         * doc/posix-functions/towupper.texi: Likewise.
30072         * doc/posix-functions/towupper_l.texi: Likewise.
30073         * doc/posix-functions/vfwprintf.texi: Likewise.
30074         * doc/posix-functions/vfwscanf.texi: Likewise.
30075         * doc/posix-functions/vswscanf.texi: Likewise.
30076         * doc/posix-functions/vwprintf.texi: Likewise.
30077         * doc/posix-functions/vwscanf.texi: Likewise.
30078         * doc/posix-functions/wcpcpy.texi: Likewise.
30079         * doc/posix-functions/wcpncpy.texi: Likewise.
30080         * doc/posix-functions/wcscasecmp.texi: Likewise.
30081         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
30082         * doc/posix-functions/wcscoll_l.texi: Likewise.
30083         * doc/posix-functions/wcsdup.texi: Likewise.
30084         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30085         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
30086         * doc/posix-functions/wcsnlen.texi: Likewise.
30087         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30088         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30089         * doc/posix-functions/wctrans_l.texi: Likewise.
30090         * doc/posix-functions/wctype_l.texi: Likewise.
30091         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
30092         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
30093         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
30094         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
30095         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
30096         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
30097         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
30098         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
30099         * doc/glibc-functions/wcschrnul.texi: Likewise.
30100         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30101         * doc/glibc-functions/wcstod_l.texi: Likewise.
30102         * doc/glibc-functions/wcstof_l.texi: Likewise.
30103         * doc/glibc-functions/wcstol_l.texi: Likewise.
30104         * doc/glibc-functions/wcstold_l.texi: Likewise.
30105         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30106         * doc/glibc-functions/wcstoq.texi: Likewise.
30107         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30108         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30109         * doc/glibc-functions/wcstouq.texi: Likewise.
30110         * doc/glibc-functions/wmempcpy.texi: Likewise.
30111
30112 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
30113             Eric Blake  <ebb9@byu.net>
30114             Paolo Bonzini  <bonzini@gnu.org>
30115             Bruno Haible  <bruno@clisp.org>
30116
30117         Make c-stack work on Haiku.
30118         * lib/c-stack.c (SA_ONSTACK): Define fallback.
30119         (c_stack_action): Use SA_ONSTACK flag.
30120
30121 2008-12-22  Bruno Haible  <bruno@clisp.org>
30122
30123         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30124
30125 2008-12-22  Bruno Haible  <bruno@clisp.org>
30126
30127         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30128         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30129         being overridden.
30130         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30131         New macros.
30132         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
30133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
30134         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
30135         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
30136
30137 2008-12-22  Bruno Haible  <bruno@clisp.org>
30138
30139         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
30140         from test code.
30141
30142 2008-12-22  Eric Blake  <ebb9@byu.net>
30143
30144         Avoid gcc warnings on cygwin.
30145         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
30146         Avoid unused variable.
30147         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
30148         Likewise.
30149
30150 2008-12-22  Bruno Haible  <bruno@clisp.org>
30151
30152         Remove HAVE_MBRTOWC conditionals.
30153         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
30154         (mbscasecmp): Assume mbrtowc function.
30155         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
30156         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
30157         * lib/mbschr.c: Include mbuiter.h unconditionally.
30158         (mbschr): Assume mbrtowc function.
30159         * lib/mbscspn.c: Include mbuiter.h unconditionally.
30160         (mbscspn): Assume mbrtowc function.
30161         * lib/mbslen.c: Include mbuiter.h unconditionally.
30162         (mbslen): Assume mbrtowc function.
30163         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
30164         (mbsncasecmp): Assume mbrtowc function.
30165         * lib/mbsnlen.c: Include mbiter.h unconditionally.
30166         (mbsnlen): Assume mbrtowc function.
30167         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
30168         (mbspbrk): Assume mbrtowc function.
30169         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
30170         (mbspcasecmp): Assume mbrtowc function.
30171         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
30172         (mbsrchr): Assume mbrtowc function.
30173         * lib/mbssep.c: Include mbuiter.h unconditionally.
30174         (mbssep): Assume mbrtowc function.
30175         * lib/mbsspn.c: Include mbuiter.h unconditionally.
30176         (mbsspn): Assume mbrtowc function.
30177         * lib/mbsstr.c: Include mbuiter.h unconditionally.
30178         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
30179         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
30180         (mbstok_r): Assume mbrtowc function.
30181         * lib/propername.c: Include mbuiter.h unconditionally.
30182         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
30183         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
30184         (trim2): Assume mbrtowc function.
30185         * lib/mbswidth.c (mbsinit): Remove fallback definition.
30186         (mbsnwidth): Assume mbrtowc function.
30187         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
30188         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
30189         fallback definitions.
30190         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
30191
30192 2008-12-22  Bruno Haible  <bruno@clisp.org>
30193
30194         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
30195
30196 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
30197
30198         * modules/regex: Request emulations for the mb*/wc* functions we need.
30199         * m4/regex.m4: Don't look for those functions here.
30200         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
30201
30202 2008-12-22  Bruno Haible  <bruno@clisp.org>
30203
30204         * modules/fnmatch (Depends-on): Remove duplicated dependency.
30205
30206 2008-12-21  Bruno Haible  <bruno@clisp.org>
30207
30208         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
30209         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
30210         (Include): Remove conditionalization.
30211         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
30212         (Include): Remove conditionalization.
30213         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
30214         (Include): Remove conditionalization.
30215         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
30216         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30217         * NEWS: Mention the change.
30218         Reported by Alan Hourihane <alanh@fairlite.co.uk>
30219         via Sergey Poznyakoff <gray@gnu.org.ua>.
30220
30221 2008-12-21  Bruno Haible  <bruno@clisp.org>
30222
30223         * MODULES.html.sh (Extended multibyte and wide character utilities
30224         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
30225         wcrtomb, wcsrtombs.
30226         (Support for systems lacking POSIX:2008): Add accept, bind, close,
30227         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
30228         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
30229         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
30230
30231 2008-12-21  Bruno Haible  <bruno@clisp.org>
30232
30233         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
30234
30235 2008-12-21  Bruno Haible  <bruno@clisp.org>
30236
30237         * modules/wcsnrtombs-tests: New file.
30238         * tests/test-wcsnrtombs1.sh: New file.
30239         * tests/test-wcsnrtombs2.sh: New file.
30240         * tests/test-wcsnrtombs3.sh: New file.
30241         * tests/test-wcsnrtombs4.sh: New file.
30242         * tests/test-wcsnrtombs.c: New file.
30243
30244         New module 'wcsnrtombs'.
30245         * lib/wchar.in.h (wcsnrtombs): New declaration.
30246         * lib/wcsnrtombs.c: New file.
30247         * lib/wcsrtombs-state.c: New file.
30248         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
30249         (internal_state): Remove variable.
30250         * m4/wcsnrtombs.m4: New file.
30251         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
30252         compilation units.
30253         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
30254         HAVE_WCSNRTOMBS.
30255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
30256         HAVE_WCSNRTOMBS.
30257         * modules/wcsnrtombs: New file.
30258         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
30259         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
30260
30261 2008-12-21  Bruno Haible  <bruno@clisp.org>
30262
30263         * modules/wcsrtombs-tests: New file.
30264         * tests/test-wcsrtombs1.sh: New file.
30265         * tests/test-wcsrtombs2.sh: New file.
30266         * tests/test-wcsrtombs3.sh: New file.
30267         * tests/test-wcsrtombs4.sh: New file.
30268         * tests/test-wcsrtombs.c: New file.
30269
30270         New module 'wcsrtombs'.
30271         * lib/wchar.in.h (wcsrtombs): New declaration.
30272         * lib/wcsrtombs.c: New file.
30273         * m4/wcsrtombs.m4: New file.
30274         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
30275         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
30277         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30278         * modules/wcsrtombs: New file.
30279         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
30280         bugs.
30281
30282 2008-12-21  Bruno Haible  <bruno@clisp.org>
30283
30284         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
30285         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
30286         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
30287         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
30288         if not correct.
30289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
30290         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
30291         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30292         m4/locale-zh.m4, m4/codeset.m4.
30293         * doc/posix-functions/wcrtomb.texi: Document the bug.
30294
30295 2008-12-21  Bruno Haible  <bruno@clisp.org>
30296
30297         Work around a btowc() bug on IRIX 6.5.
30298         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
30299         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
30300         REPLACE_WTOBC if not.
30301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
30302         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
30303         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
30304
30305 2008-12-21  Bruno Haible  <bruno@clisp.org>
30306
30307         * modules/wcrtomb-tests: New file.
30308         * tests/test-wcrtomb.sh: New file.
30309         * tests/test-wcrtomb.c: New file.
30310
30311         New module 'wcrtomb'.
30312         * lib/wchar.in.h (wcrtomb): New declaration.
30313         * lib/wcrtomb.c: New file.
30314         * m4/wcrtomb.m4: New file.
30315         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
30316         HAVE_WCRTOMB.
30317         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
30318         HAVE_WCRTOMB.
30319         * modules/wcrtomb: New file.
30320         * doc/posix-functions/wcrtomb.texi: Mention the new module.
30321
30322 2008-12-21  Bruno Haible  <bruno@clisp.org>
30323
30324         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
30325         * modules/mbsrtowcs (Files): Likewise.
30326         * modules/wctob (Files): Likewise.
30327         * modules/c-strcase-tests (Files): Likewise.
30328         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30329         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30330         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30331         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30332         * modules/vasnprintf-posix-tests (Files): Likewise.
30333
30334 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30335
30336         gitlog-to-changelog: pass all command-line arguments to git-log
30337         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30338         it is sometimes convenient to filter the commits in various ways.
30339         gitlog-to-changelog only allows --since to specify a start date,
30340         but git-log itself supports many other filtering mechanisms.
30341         At the moment, I want to filter by branch name.  Rather than
30342         adding a --branch option to gitlog-to-changelog, it seems more
30343         flexible to simply pass all options directly to git-log and let
30344         git do the work.  Notice that this effectively makes --since a
30345         redundant option for gitlog-to-changelog, but removing it would
30346         require current usage to change since calls would then require
30347         an additional '--'.
30348
30349 2008-12-21  Bruno Haible  <bruno@clisp.org>
30350
30351         * modules/mbsnrtowcs-tests: New file.
30352         * tests/test-mbsnrtowcs1.sh: New file.
30353         * tests/test-mbsnrtowcs2.sh: New file.
30354         * tests/test-mbsnrtowcs3.sh: New file.
30355         * tests/test-mbsnrtowcs4.sh: New file.
30356         * tests/test-mbsnrtowcs.c: New file.
30357
30358         New module 'mbsnrtowcs'.
30359         * lib/wchar.in.h (mbsnrtowcs): New declaration.
30360         * lib/mbsnrtowcs.c: New file.
30361         * lib/mbsrtowcs-state.c: New file.
30362         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
30363         (internal_state): Remove variable.
30364         * m4/mbsnrtowcs.m4: New file.
30365         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
30366         compilation units.
30367         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
30368         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30369         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
30370         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30371         * modules/mbsnrtowcs: New file.
30372         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
30373         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
30374         portability problem.
30375
30376 2008-12-21  Bruno Haible  <bruno@clisp.org>
30377
30378         Work around mbsrtowcs bug.
30379         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
30380         (gl_FUNC_MBSRTOWCS): Invoke it.
30381         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30382         m4/locale-zh.m4.
30383         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
30384
30385 2008-12-21  Bruno Haible  <bruno@clisp.org>
30386
30387         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
30388
30389 2008-12-21  Bruno Haible  <bruno@clisp.org>
30390
30391         Update doc for AIX.
30392         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
30393         16-bit wchar_t type.
30394         * doc/posix-functions/btowc.texi: Likewise.
30395         * doc/posix-functions/fgetwc.texi: Likewise.
30396         * doc/posix-functions/fgetws.texi: Likewise.
30397         * doc/posix-functions/fputwc.texi: Likewise.
30398         * doc/posix-functions/fputws.texi: Likewise.
30399         * doc/posix-functions/fwide.texi: Likewise.
30400         * doc/posix-functions/fwprintf.texi: Likewise.
30401         * doc/posix-functions/fwscanf.texi: Likewise.
30402         * doc/posix-functions/getwchar.texi: Likewise.
30403         * doc/posix-functions/getwc.texi: Likewise.
30404         * doc/posix-functions/iswalnum.texi: Likewise.
30405         * doc/posix-functions/iswalpha.texi: Likewise.
30406         * doc/posix-functions/iswblank.texi: Likewise.
30407         * doc/posix-functions/iswcntrl.texi: Likewise.
30408         * doc/posix-functions/iswctype.texi: Likewise.
30409         * doc/posix-functions/iswdigit.texi: Likewise.
30410         * doc/posix-functions/iswgraph.texi: Likewise.
30411         * doc/posix-functions/iswlower.texi: Likewise.
30412         * doc/posix-functions/iswprint.texi: Likewise.
30413         * doc/posix-functions/iswpunct.texi: Likewise.
30414         * doc/posix-functions/iswspace.texi: Likewise.
30415         * doc/posix-functions/iswupper.texi: Likewise.
30416         * doc/posix-functions/iswxdigit.texi: Likewise.
30417         * doc/posix-functions/mbrtowc.texi: Likewise.
30418         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30419         * doc/posix-functions/mbstowcs.texi: Likewise.
30420         * doc/posix-functions/mbtowc.texi: Likewise.
30421         * doc/posix-functions/putwchar.texi: Likewise.
30422         * doc/posix-functions/putwc.texi: Likewise.
30423         * doc/posix-functions/swprintf.texi: Likewise.
30424         * doc/posix-functions/tolower.texi: Likewise.
30425         * doc/posix-functions/toupper.texi: Likewise.
30426         * doc/posix-functions/towctrans.texi: Likewise.
30427         * doc/posix-functions/ungetwc.texi: Likewise.
30428         * doc/posix-functions/vswprintf.texi: Likewise.
30429         * doc/posix-functions/wcrtomb.texi: Likewise.
30430         * doc/posix-functions/wcscat.texi: Likewise.
30431         * doc/posix-functions/wcschr.texi: Likewise.
30432         * doc/posix-functions/wcscmp.texi: Likewise.
30433         * doc/posix-functions/wcscoll.texi: Likewise.
30434         * doc/posix-functions/wcscpy.texi: Likewise.
30435         * doc/posix-functions/wcscspn.texi: Likewise.
30436         * doc/posix-functions/wcsftime.texi: Likewise.
30437         * doc/posix-functions/wcslen.texi: Likewise.
30438         * doc/posix-functions/wcsncat.texi: Likewise.
30439         * doc/posix-functions/wcsncmp.texi: Likewise.
30440         * doc/posix-functions/wcsncpy.texi: Likewise.
30441         * doc/posix-functions/wcspbrk.texi: Likewise.
30442         * doc/posix-functions/wcsrchr.texi: Likewise.
30443         * doc/posix-functions/wcsrtombs.texi: Likewise.
30444         * doc/posix-functions/wcsspn.texi: Likewise.
30445         * doc/posix-functions/wcsstr.texi: Likewise.
30446         * doc/posix-functions/wcstod.texi: Likewise.
30447         * doc/posix-functions/wcstof.texi: Likewise.
30448         * doc/posix-functions/wcstoimax.texi: Likewise.
30449         * doc/posix-functions/wcstok.texi: Likewise.
30450         * doc/posix-functions/wcstold.texi: Likewise.
30451         * doc/posix-functions/wcstoll.texi: Likewise.
30452         * doc/posix-functions/wcstol.texi: Likewise.
30453         * doc/posix-functions/wcstombs.texi: Likewise.
30454         * doc/posix-functions/wcstoull.texi: Likewise.
30455         * doc/posix-functions/wcstoul.texi: Likewise.
30456         * doc/posix-functions/wcstoumax.texi: Likewise.
30457         * doc/posix-functions/wcswidth.texi: Likewise.
30458         * doc/posix-functions/wcsxfrm.texi: Likewise.
30459         * doc/posix-functions/wctob.texi: Likewise.
30460         * doc/posix-functions/wctomb.texi: Likewise.
30461         * doc/posix-functions/wctrans.texi: Likewise.
30462         * doc/posix-functions/wctype.texi: Likewise.
30463         * doc/posix-functions/wcwidth.texi: Likewise.
30464         * doc/posix-functions/wmemchr.texi: Likewise.
30465         * doc/posix-functions/wmemcmp.texi: Likewise.
30466         * doc/posix-functions/wmemcpy.texi: Likewise.
30467         * doc/posix-functions/wmemmove.texi: Likewise.
30468         * doc/posix-functions/wmemset.texi: Likewise.
30469         * doc/posix-functions/wprintf.texi: Likewise.
30470         * doc/posix-functions/wscanf.texi: Likewise.
30471
30472 2008-12-21  Bruno Haible  <bruno@clisp.org>
30473
30474         Update doc for HP-UX 11.11.
30475         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30476         in HP-UX version 11.00, not in all versions of HP-UX 11.
30477         * doc/posix-functions/fwide.texi: Likewise.
30478         * doc/posix-functions/fwprintf.texi: Likewise.
30479         * doc/posix-functions/fwscanf.texi: Likewise.
30480         * doc/posix-functions/inet_ntop.texi: Likewise.
30481         * doc/posix-functions/inet_pton.texi: Likewise.
30482         * doc/posix-functions/mbrlen.texi: Likewise.
30483         * doc/posix-functions/mbrtowc.texi: Likewise.
30484         * doc/posix-functions/mbsinit.texi: Likewise.
30485         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30486         * doc/posix-functions/swprintf.texi: Likewise.
30487         * doc/posix-functions/swscanf.texi: Likewise.
30488         * doc/posix-functions/towctrans.texi: Likewise.
30489         * doc/posix-functions/vfwprintf.texi: Likewise.
30490         * doc/posix-functions/vswprintf.texi: Likewise.
30491         * doc/posix-functions/vwprintf.texi: Likewise.
30492         * doc/posix-functions/wcrtomb.texi: Likewise.
30493         * doc/posix-functions/wcsrtombs.texi: Likewise.
30494         * doc/posix-functions/wcsstr.texi: Likewise.
30495         * doc/posix-functions/wctob.texi: Likewise.
30496         * doc/posix-functions/wctrans.texi: Likewise.
30497         * doc/posix-functions/wmemchr.texi: Likewise.
30498         * doc/posix-functions/wmemcmp.texi: Likewise.
30499         * doc/posix-functions/wmemcpy.texi: Likewise.
30500         * doc/posix-functions/wmemmove.texi: Likewise.
30501         * doc/posix-functions/wmemset.texi: Likewise.
30502         * doc/posix-functions/wprintf.texi: Likewise.
30503         * doc/posix-functions/wscanf.texi: Likewise.
30504
30505 2008-12-21  Bruno Haible  <bruno@clisp.org>
30506
30507         Work around a portability problem.
30508         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
30509         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
30510
30511 2008-12-20  Bruno Haible  <bruno@clisp.org>
30512
30513         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
30514         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
30515         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
30516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
30517         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
30518
30519         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
30520         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
30521         set.
30522         (GNULIB_defined_mbstate_t): New macro.
30523         (mbsinit): Redefine if REPLACE_MBSINIT is set.
30524         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
30525         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
30526         reuses the system's mbrtowc function but works around the bugs.
30527         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
30528         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
30529         macros.
30530         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
30531         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
30532         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
30533         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
30534         REPLACE_MBSINIT if mbsinit needs to be overridden.
30535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
30536         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30537         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
30538         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30539         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30540         m4/locale-zh.m4.
30541         (Depends): Add mbsinit.
30542         * modules/mbsinit (Depends): Add mbrtowc.
30543         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
30544
30545 2008-12-20  Bruno Haible  <bruno@clisp.org>
30546
30547         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
30548         so that there are no conversion errors on AIX.
30549         * tests/test-mbsrtowcs.c (main): LIkewise.
30550
30551 2008-12-20  Bruno Haible  <bruno@clisp.org>
30552
30553         Work around wctob bug on Solaris <= 9.
30554         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
30555         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
30556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
30557         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
30558         * modules/wctob (Files): Add m4/locale-fr.m4.
30559         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
30560
30561 2008-12-20  Bruno Haible  <bruno@clisp.org>
30562
30563         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
30564         /dev/null.
30565         * tests/test-select-in.sh: Likewise.
30566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30567
30568 2008-12-20  Bruno Haible  <bruno@clisp.org>
30569
30570         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
30571         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
30572         Cygwin 1.5.x.
30573
30574 2008-12-20  Bruno Haible  <bruno@clisp.org>
30575
30576         Ensure mbstate_t is defined on HP-UX 11.11.
30577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
30578         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
30579         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
30580         AC_USE_SYSTEM_EXTENSIONS.
30581         * modules/fnmatch (Depends-on): Add extensions.
30582         * modules/mbrlen (Depends-on): Likewise.
30583         * modules/mbrtowc (Depends-on): Likewise.
30584         * modules/mbsinit (Depends-on): Likewise.
30585         * modules/mbsrtowcs (Depends-on): Likewise.
30586         * modules/mbswidth (Depends-on): Likewise.
30587         * modules/quotearg (Depends-on): Likewise.
30588         * modules/strftime (Depends-on): Likewise.
30589
30590 2008-12-20  Bruno Haible  <bruno@clisp.org>
30591
30592         Ensure wctob is declared on IRIX 6.5.
30593         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
30594         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
30595         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
30596         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
30597         of HAVE_WCTOB.
30598         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
30599         HAVE_WCTOB.
30600         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
30601
30602 2008-12-19  Bruno Haible  <bruno@clisp.org>
30603
30604         * modules/mbsrtowcs-tests: New file.
30605         * tests/test-mbsrtowcs1.sh: New file.
30606         * tests/test-mbsrtowcs2.sh: New file.
30607         * tests/test-mbsrtowcs3.sh: New file.
30608         * tests/test-mbsrtowcs4.sh: New file.
30609         * tests/test-mbsrtowcs.c: New file.
30610
30611         New module 'mbsrtowcs'.
30612         * lib/wchar.in.h (mbsrtowcs): New declaration.
30613         * lib/mbsrtowcs.c: New file.
30614         * m4/mbsrtowcs.m4: New file.
30615         * modules/mbsrtowcs: New file.
30616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
30617         HAVE_MBSRTOWCS.
30618         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
30619         HAVE_MBSRTOWCS.
30620         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
30621
30622 2008-12-19  Bruno Haible  <bruno@clisp.org>
30623
30624         New module 'mbrlen'.
30625         * lib/wchar.in.h (mbrlen): New declaration.
30626         * lib/mbrlen.c: New file.
30627         * m4/mbrlen.m4: New file.
30628         * modules/mbrlen: New file.
30629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
30630         HAVE_MBRLEN.
30631         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
30632         HAVE_MBRLEN.
30633         * doc/posix-functions/mbrlen.texi: Document the new module.
30634
30635 2008-12-19  Bruno Haible  <bruno@clisp.org>
30636
30637         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30638         * modules/mbrtowc (Depends-on): Add verify.
30639         Suggested by Paul Eggert.
30640
30641 2008-12-18  Bruno Haible  <bruno@clisp.org>
30642
30643         * modules/mbsinit-tests: New file.
30644         * tests/test-mbsinit.sh: New file.
30645         * tests/test-mbsinit.c: New file.
30646
30647 2008-12-18  Bruno Haible  <bruno@clisp.org>
30648
30649         * modules/mbrtowc-tests: New file.
30650         * tests/test-mbrtowc1.sh: New file.
30651         * tests/test-mbrtowc2.sh: New file.
30652         * tests/test-mbrtowc3.sh: New file.
30653         * tests/test-mbrtowc4.sh: New file.
30654         * tests/test-mbrtowc.c: New file.
30655
30656         New module 'mbrtowc'.
30657         * lib/wchar.in.h (mbstate_t): Override when the system does not have
30658         mbsinit and mbrtowc.
30659         (mbrtowc): New declaration.
30660         * lib/mbrtowc.c: New file.
30661         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
30662         * modules/mbrtowc: New file.
30663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
30664         HAVE_MBRTOWC.
30665         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
30666         HAVE_MBRTOWC.
30667         * doc/posix-functions/mbrtowc.texi: Document the new module.
30668
30669 2008-12-18  Bruno Haible  <bruno@clisp.org>
30670
30671         New module 'wctob'.
30672         * lib/wchar.in.h (wctob): New declaration.
30673         * lib/wctob.c: New file.
30674         * m4/wctob.m4: New file.
30675         * modules/wctob: New file.
30676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
30677         HAVE_WCTOB.
30678         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
30679         * doc/posix-functions/wctob.texi: Document the new module.
30680
30681 2008-12-18  Bruno Haible  <bruno@clisp.org>
30682
30683         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
30684         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
30685
30686 2008-12-18  Simon Josefsson  <simon@josefsson.org>
30687
30688         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
30689         G. Christensen" <tgc@jupiterrise.com>.
30690
30691         * lib/flock.c: Need to include errno.h.  Reported by "Tom
30692         G. Christensen" <tgc@jupiterrise.com>.
30693
30694         * lib/flock.c: Need to include string.h.  Reported by "Tom
30695         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
30696         <ebb9@byu.net>.
30697
30698 2008-12-18  Bruno Haible  <bruno@clisp.org>
30699
30700         * m4/locale-ja.m4: New file, from GNU gettext.
30701
30702 2008-12-17  Bruno Haible  <bruno@clisp.org>
30703
30704         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
30705         Suggested by Eric Blake.
30706
30707 2008-12-17  Bruno Haible  <bruno@clisp.org>
30708
30709         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
30710
30711 2008-12-17  Bruno Haible  <bruno@clisp.org>
30712
30713         * lib/mbsinit.c: Include verify.h. Verify an assumption.
30714         * modules/mbsinit (Depends-on): Add verify.
30715         Suggested by Paul Eggert.
30716
30717 2008-12-17  Bruno Haible  <bruno@clisp.org>
30718
30719         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
30720         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
30721         gl_FUNC_MBRTOWC.
30722         * m4/mbiter.m4 (gl_MBITER): LIkewise.
30723         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
30724         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
30725         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
30726         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
30727         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
30728         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
30729         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
30730         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
30731         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
30732         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
30733         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
30734         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
30735         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
30736         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
30737         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30738         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
30739         * modules/trim (configure.ac): Likewise.
30740
30741 2008-12-17  Bruno Haible  <bruno@clisp.org>
30742
30743         * modules/btowc-tests: New file.
30744         * tests/test-btowc1.sh: New file.
30745         * tests/test-btowc2.sh: New file.
30746         * tests/test-btowc.c: New file.
30747
30748         New module 'btowc'.
30749         * lib/wchar.in.h (btowc): New declaration.
30750         * lib/btowc.c: New file.
30751         * m4/btowc.m4: New file.
30752         * modules/btowc: New file.
30753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
30754         HAVE_BTOWC.
30755         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
30756         * doc/posix-functions/btowc.texi: Document the new module.
30757
30758 2008-12-17  Bruno Haible  <bruno@clisp.org>
30759
30760         New module 'mbsinit'.
30761         * lib/wchar.in.h (mbsinit): New declaration.
30762         * lib/mbsinit.c: New file.
30763         * m4/mbsinit.m4: New file.
30764         * modules/mbsinit: New file.
30765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
30766         HAVE_MBSINIT.
30767         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
30768         HAVE_MBSINIT.
30769         * doc/posix-functions/mbsinit.texi: Document the new module.
30770
30771 2008-12-16  Bruno Haible  <bruno@clisp.org>
30772
30773         * lib/unistd.in.h: Add comment.
30774         * tests/test-environ.c: Don't include <stdlib.h>.
30775
30776 2008-12-16  Bruno Haible  <bruno@clisp.org>
30777
30778         * lib/parse-duration.h (parse_duration): Document return value
30779         convention.
30780         * lib/parse-duration.c: Include specification header first. Add
30781         comments.
30782         (_): Remove macro.
30783         (parse_year_month_day, parse_hour_minute_second): Move side effects
30784         outside of strchr call.
30785         (parse_non_iso8601): Move side effects outside of isspace call.
30786         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
30787         call.
30788
30789 2008-12-16  Bruno Haible  <bruno@clisp.org>
30790
30791         * tests/test-parse-duration.sh: Produce no output when the test
30792         succeeds.
30793
30794 2008-12-16  Bruno Haible  <bruno@clisp.org>
30795
30796         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
30797         expressions.
30798
30799 2008-12-15  Bruno Haible  <bruno@clisp.org>
30800
30801         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
30802         * doc/glibc-functions/flistxattr.texi: Likewise.
30803         * doc/glibc-functions/fopencookie.texi: Likewise.
30804         * doc/glibc-functions/fremovexattr.texi: Likewise.
30805         * doc/glibc-functions/fsetxattr.texi: Likewise.
30806         * doc/glibc-functions/getxattr.texi: Likewise.
30807         * doc/glibc-functions/lgetxattr.texi: Likewise.
30808         * doc/glibc-functions/listxattr.texi: Likewise.
30809         * doc/glibc-functions/llistxattr.texi: Likewise.
30810         * doc/glibc-functions/lremovexattr.texi: Likewise.
30811         * doc/glibc-functions/lsetxattr.texi: Likewise.
30812         * doc/glibc-functions/removexattr.texi: Likewise.
30813         * doc/glibc-functions/setxattr.texi: Likewise.
30814         * doc/posix-functions/open_memstream.texi: Likewise.
30815
30816 2008-12-15  Eric Blake  <ebb9@byu.net>
30817
30818         Update doc for cygwin 1.7.
30819         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
30820         functions.
30821         * doc/posix-functions/fchmodat.texi: Likewise.
30822         * doc/posix-functions/fchownat.texi: Likewise.
30823         * doc/posix-functions/fdopendir.texi: Likewise.
30824         * doc/posix-functions/fmemopen.texi: Likewise.
30825         * doc/posix-functions/freeaddrinfo.texi: Likewise.
30826         * doc/posix-functions/fstatat.texi: Likewise.
30827         * doc/posix-functions/futimens.texi: Likewise.
30828         * doc/posix-functions/gai_strerror.texi: Likewise.
30829         * doc/posix-functions/getaddrinfo.texi: Likewise.
30830         * doc/posix-functions/getnameinfo.texi: Likewise.
30831         * doc/posix-functions/if_freenameindex.texi: Likewise.
30832         * doc/posix-functions/if_indextoname.texi: Likewise.
30833         * doc/posix-functions/if_nameindex.texi: Likewise.
30834         * doc/posix-functions/if_nametoindex.texi: Likewise.
30835         * doc/posix-functions/insque.texi: Likewise.
30836         * doc/posix-functions/linkat.texi: Likewise.
30837         * doc/posix-functions/llrint.texi: Likewise.
30838         * doc/posix-functions/llrintf.texi: Likewise.
30839         * doc/posix-functions/llrintl.texi: Likewise.
30840         * doc/posix-functions/lockf.texi: Likewise.
30841         * doc/posix-functions/lrintl.texi: Likewise.
30842         * doc/posix-functions/mkdirat.texi: Likewise.
30843         * doc/posix-functions/mkfifoat.texi: Likewise.
30844         * doc/posix-functions/mknodat.texi: Likewise.
30845         * doc/posix-functions/mq_close.texi: Likewise.
30846         * doc/posix-functions/mq_getattr.texi: Likewise.
30847         * doc/posix-functions/mq_notify.texi: Likewise.
30848         * doc/posix-functions/mq_open.texi: Likewise.
30849         * doc/posix-functions/mq_receive.texi: Likewise.
30850         * doc/posix-functions/mq_send.texi: Likewise.
30851         * doc/posix-functions/mq_setattr.texi: Likewise.
30852         * doc/posix-functions/mq_timedreceive.texi: Likewise.
30853         * doc/posix-functions/mq_timedsend.texi: Likewise.
30854         * doc/posix-functions/mq_unlink.texi: Likewise.
30855         * doc/posix-functions/open_memstream.texi: Likewise.
30856         * doc/posix-functions/openat.texi: Likewise.
30857         * doc/posix-functions/posix_fadvise.texi: Likewise.
30858         * doc/posix-functions/posix_fallocate.texi: Likewise.
30859         * doc/posix-functions/posix_madvise.texi: Likewise.
30860         * doc/posix-functions/posix_memalign.texi: Likewise.
30861         * doc/posix-functions/posix_openpt.texi: Likewise.
30862         * doc/posix-functions/readlinkat.texi: Likewise.
30863         * doc/posix-functions/remque.texi: Likewise.
30864         * doc/posix-functions/renameat.texi: Likewise.
30865         * doc/posix-functions/rintl.texi: Likewise.
30866         * doc/posix-functions/sem_unlink.texi: Likewise.
30867         * doc/posix-functions/shm_open.texi: Likewise.
30868         * doc/posix-functions/shm_unlink.texi: Likewise.
30869         * doc/posix-functions/signgam.texi: Likewise.
30870         * doc/posix-functions/sigset.texi: Likewise.
30871         * doc/posix-functions/stpcpy.texi: Likewise.
30872         * doc/posix-functions/stpncpy.texi: Likewise.
30873         * doc/posix-functions/strerror.texi: Likewise.
30874         * doc/posix-functions/strtod.texi: Likewise.
30875         * doc/posix-functions/symlinkat.texi: Likewise.
30876         * doc/posix-functions/unlinkat.texi: Likewise.
30877         * doc/posix-functions/utimensat.texi: Likewise.
30878         * doc/glibc-functions/bindresvport.texi: Likewise.
30879         * doc/glibc-functions/dn_expand.texi: Likewise.
30880         * doc/glibc-functions/exp10.texi: Likewise.
30881         * doc/glibc-functions/exp10f.texi: Likewise.
30882         * doc/glibc-functions/fgetxattr.texi: Likewise.
30883         * doc/glibc-functions/flistxattr.texi: Likewise.
30884         * doc/glibc-functions/fopencookie.texi: Likewise.
30885         * doc/glibc-functions/freeifaddrs.texi: Likewise.
30886         * doc/glibc-functions/fremovexattr.texi: Likewise.
30887         * doc/glibc-functions/fsetxattr.texi: Likewise.
30888         * doc/glibc-functions/getifaddrs.texi: Likewise.
30889         * doc/glibc-functions/getxattr.texi: Likewise.
30890         * doc/glibc-functions/lgetxattr.texi: Likewise.
30891         * doc/glibc-functions/listxattr.texi: Likewise.
30892         * doc/glibc-functions/llistxattr.texi: Likewise.
30893         * doc/glibc-functions/lremovexattr.texi: Likewise.
30894         * doc/glibc-functions/lsetxattr.texi: Likewise.
30895         * doc/glibc-functions/pow10.texi: Likewise.
30896         * doc/glibc-functions/pow10f.texi: Likewise.
30897         * doc/glibc-functions/rcmd_af.texi: Likewise.
30898         * doc/glibc-functions/removexattr.texi: Likewise.
30899         * doc/glibc-functions/res_init.texi: Likewise.
30900         * doc/glibc-functions/res_mkquery.texi: Likewise.
30901         * doc/glibc-functions/res_query.texi: Likewise.
30902         * doc/glibc-functions/res_querydomain.texi: Likewise.
30903         * doc/glibc-functions/res_send.texi: Likewise.
30904         * doc/glibc-functions/rresvport_af.texi: Likewise.
30905         * doc/glibc-functions/setxattr.texi: Likewise.
30906         * doc/glibc-functions/strcasestr.texi: Likewise.
30907
30908 2008-12-15  Bruno Haible  <bruno@clisp.org>
30909
30910         Fix compilation error on OSF/1 4.0.
30911         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
30912         <sys/time.h>, simply delegate to the system header.
30913         Reported by Daniel Richard G. <oss@teragram.com>.
30914
30915 2008-12-15  Bruno Haible  <bruno@clisp.org>
30916
30917         * doc/posix-functions/openat.texi: Mention the 'openat' module.
30918         * doc/posix-functions/fchmodat.texi: Likewise.
30919         * doc/posix-functions/fchownat.texi: Likewise.
30920         * doc/posix-functions/fdopendir.texi: Likewise.
30921         * doc/posix-functions/fstatat.texi: Likewise.
30922         * doc/posix-functions/mkdirat.texi: Likewise.
30923         * doc/posix-functions/unlinkat.texi: Likewise.
30924
30925 2008-12-14  Bruno Haible  <bruno@clisp.org>
30926
30927         Update doc for POSIX:2008.
30928         * doc/posix-functions/faccessat.texi: New file.
30929         * doc/posix-functions/fchmodat.texi: New file.
30930         * doc/posix-functions/fchownat.texi: New file.
30931         * doc/posix-functions/fdopendir.texi: New file.
30932         * doc/posix-functions/fstatat.texi: New file.
30933         * doc/posix-functions/futimens.texi: New file.
30934         * doc/posix-functions/linkat.texi: New file.
30935         * doc/posix-functions/mkdirat.texi: New file.
30936         * doc/posix-functions/mkfifoat.texi: New file.
30937         * doc/posix-functions/mknodat.texi: New file.
30938         * doc/posix-functions/open_wmemstream.texi: New file.
30939         * doc/posix-functions/openat.texi: New file.
30940         * doc/posix-functions/psiginfo.texi: New file.
30941         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
30942         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
30943         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
30944         * doc/posix-functions/readlinkat.texi: New file.
30945         * doc/posix-functions/renameat.texi: New file.
30946         * doc/posix-functions/strerror_l.texi: New file.
30947         * doc/posix-functions/symlinkat.texi: New file.
30948         * doc/posix-functions/unlinkat.texi: New file.
30949         * doc/posix-functions/utimensat.texi: New file.
30950         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30951
30952 2008-12-14  Bruno Haible  <bruno@clisp.org>
30953
30954         Update doc for POSIX:2008.
30955         * doc/posix-functions/alphasort.texi: Renamed from
30956         doc/glibc-functions/alphasort.texi.
30957         * doc/posix-functions/dirfd.texi: Renamed from
30958         doc/glibc-functions/dirfd.texi.
30959         * doc/posix-functions/dprintf.texi: Renamed from
30960         doc/glibc-functions/dprintf.texi.
30961         * doc/posix-functions/duplocale.texi: Renamed from
30962         doc/glibc-functions/duplocale.texi.
30963         * doc/posix-functions/fexecve.texi: Renamed from
30964         doc/glibc-functions/fexecve.texi.
30965         * doc/posix-functions/fmemopen.texi: Renamed from
30966         doc/glibc-functions/fmemopen.texi.
30967         * doc/posix-functions/freelocale.texi: Renamed from
30968         doc/glibc-functions/freelocale.texi.
30969         * doc/posix-functions/getdate_err.texi: Renamed from
30970         doc/glibc-functions/getdate_err.texi.
30971         * doc/posix-functions/isalnum_l.texi: Renamed from
30972         doc/glibc-functions/isalnum_l.texi.
30973         * doc/posix-functions/isalpha_l.texi: Renamed from
30974         doc/glibc-functions/isalpha_l.texi.
30975         * doc/posix-functions/isblank_l.texi: Renamed from
30976         doc/glibc-functions/isblank_l.texi.
30977         * doc/posix-functions/iscntrl_l.texi: Renamed from
30978         doc/glibc-functions/iscntrl_l.texi.
30979         * doc/posix-functions/isdigit_l.texi: Renamed from
30980         doc/glibc-functions/isdigit_l.texi.
30981         * doc/posix-functions/isgraph_l.texi: Renamed from
30982         doc/glibc-functions/isgraph_l.texi.
30983         * doc/posix-functions/islower_l.texi: Renamed from
30984         doc/glibc-functions/islower_l.texi.
30985         * doc/posix-functions/isprint_l.texi: Renamed from
30986         doc/glibc-functions/isprint_l.texi.
30987         * doc/posix-functions/ispunct_l.texi: Renamed from
30988         doc/glibc-functions/ispunct_l.texi.
30989         * doc/posix-functions/isspace_l.texi: Renamed from
30990         doc/glibc-functions/isspace_l.texi.
30991         * doc/posix-functions/isupper_l.texi: Renamed from
30992         doc/glibc-functions/isupper_l.texi.
30993         * doc/posix-functions/iswalnum_l.texi: Renamed from
30994         doc/glibc-functions/iswalnum_l.texi.
30995         * doc/posix-functions/iswalpha_l.texi: Renamed from
30996         doc/glibc-functions/iswalpha_l.texi.
30997         * doc/posix-functions/iswblank_l.texi: Renamed from
30998         doc/glibc-functions/iswblank_l.texi.
30999         * doc/posix-functions/iswcntrl_l.texi: Renamed from
31000         doc/glibc-functions/iswcntrl_l.texi.
31001         * doc/posix-functions/iswctype_l.texi: Renamed from
31002         doc/glibc-functions/iswctype_l.texi.
31003         * doc/posix-functions/iswdigit_l.texi: Renamed from
31004         doc/glibc-functions/iswdigit_l.texi.
31005         * doc/posix-functions/iswgraph_l.texi: Renamed from
31006         doc/glibc-functions/iswgraph_l.texi.
31007         * doc/posix-functions/iswlower_l.texi: Renamed from
31008         doc/glibc-functions/iswlower_l.texi.
31009         * doc/posix-functions/iswprint_l.texi: Renamed from
31010         doc/glibc-functions/iswprint_l.texi.
31011         * doc/posix-functions/iswpunct_l.texi: Renamed from
31012         doc/glibc-functions/iswpunct_l.texi.
31013         * doc/posix-functions/iswspace_l.texi: Renamed from
31014         doc/glibc-functions/iswspace_l.texi.
31015         * doc/posix-functions/iswupper_l.texi: Renamed from
31016         doc/glibc-functions/iswupper_l.texi.
31017         * doc/posix-functions/iswxdigit_l.texi: Renamed from
31018         doc/glibc-functions/iswxdigit_l.texi.
31019         * doc/posix-functions/isxdigit_l.texi: Renamed from
31020         doc/glibc-functions/isxdigit_l.texi.
31021         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
31022         doc/glibc-functions/mbsnrtowcs.texi.
31023         * doc/posix-functions/mkdtemp.texi: Renamed from
31024         doc/glibc-functions/mkdtemp.texi.
31025         * doc/posix-functions/newlocale.texi: Renamed from
31026         doc/glibc-functions/newlocale.texi.
31027         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
31028         doc/glibc-functions/nl_langinfo_l.texi.
31029         * doc/posix-functions/open_memstream.texi: Renamed from
31030         doc/glibc-functions/open_memstream.texi.
31031         * doc/posix-functions/opterr.texi: Renamed from
31032         doc/glibc-functions/opterr.texi.
31033         * doc/posix-functions/optind.texi: Renamed from
31034         doc/glibc-functions/optind.texi.
31035         * doc/posix-functions/optopt.texi: Renamed from
31036         doc/glibc-functions/optopt.texi.
31037         * doc/posix-functions/psignal.texi: Renamed from
31038         doc/glibc-functions/psignal.texi.
31039         * doc/posix-functions/scandir.texi: Renamed from
31040         doc/glibc-functions/scandir.texi.
31041         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
31042         doc/glibc-functions/sched_get_priority_min.texi.
31043         * doc/posix-functions/signgam.texi: Renamed from
31044         doc/glibc-functions/signgam.texi.
31045         * doc/posix-functions/stpcpy.texi: Renamed from
31046         doc/glibc-functions/stpcpy.texi.
31047         * doc/posix-functions/stpncpy.texi: Renamed from
31048         doc/glibc-functions/stpncpy.texi.
31049         * doc/posix-functions/strcasecmp_l.texi: Renamed from
31050         doc/glibc-functions/strcasecmp_l.texi.
31051         * doc/posix-functions/strcoll_l.texi: Renamed from
31052         doc/glibc-functions/strcoll_l.texi.
31053         * doc/posix-functions/strfmon_l.texi: Renamed from
31054         doc/glibc-functions/strfmon_l.texi.
31055         * doc/posix-functions/strftime_l.texi: Renamed from
31056         doc/glibc-functions/strftime_l.texi.
31057         * doc/posix-functions/strncasecmp_l.texi: Renamed from
31058         doc/glibc-functions/strncasecmp_l.texi.
31059         * doc/posix-functions/strndup.texi: Renamed from
31060         doc/glibc-functions/strndup.texi.
31061         * doc/posix-functions/strnlen.texi: Renamed from
31062         doc/glibc-functions/strnlen.texi.
31063         * doc/posix-functions/strsignal.texi: Renamed from
31064         doc/glibc-functions/strsignal.texi.
31065         * doc/posix-functions/strxfrm_l.texi: Renamed from
31066         doc/glibc-functions/strxfrm_l.texi.
31067         * doc/posix-functions/timer_gettime.texi: Renamed from
31068         doc/glibc-functions/timer_gettime.texi.
31069         * doc/posix-functions/tolower_l.texi: Renamed from
31070         doc/glibc-functions/tolower_l.texi.
31071         * doc/posix-functions/toupper_l.texi: Renamed from
31072         doc/glibc-functions/toupper_l.texi.
31073         * doc/posix-functions/towctrans_l.texi: Renamed from
31074         doc/glibc-functions/towctrans_l.texi.
31075         * doc/posix-functions/towlower_l.texi: Renamed from
31076         doc/glibc-functions/towlower_l.texi.
31077         * doc/posix-functions/towupper_l.texi: Renamed from
31078         doc/glibc-functions/towupper_l.texi.
31079         * doc/posix-functions/uselocale.texi: Renamed from
31080         doc/glibc-functions/uselocale.texi.
31081         * doc/posix-functions/vdprintf.texi: Renamed from
31082         doc/glibc-functions/vdprintf.texi.
31083         * doc/posix-functions/wcpcpy.texi:
31084         Renamed from doc/glibc-functions/wcpcpy.texi.
31085         * doc/posix-functions/wcpncpy.texi: Renamed from
31086         doc/glibc-functions/wcpncpy.texi.
31087         * doc/posix-functions/wcscasecmp.texi: Renamed from
31088         doc/glibc-functions/wcscasecmp.texi.
31089         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
31090         doc/glibc-functions/wcscasecmp_l.texi.
31091         * doc/posix-functions/wcscoll_l.texi: Renamed from
31092         doc/glibc-functions/wcscoll_l.texi.
31093         * doc/posix-functions/wcsdup.texi: Renamed from
31094         doc/glibc-functions/wcsdup.texi.
31095         * doc/posix-functions/wcsncasecmp.texi: Renamed from
31096         doc/glibc-functions/wcsncasecmp.texi.
31097         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
31098         doc/glibc-functions/wcsncasecmp_l.texi.
31099         * doc/posix-functions/wcsnlen.texi: Renamed from
31100         doc/glibc-functions/wcsnlen.texi.
31101         * doc/posix-functions/wcsnrtombs.texi: Renamed from
31102         doc/glibc-functions/wcsnrtombs.texi.
31103         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
31104         doc/glibc-functions/wcsxfrm_l.texi.
31105         * doc/posix-functions/wctrans_l.texi: Renamed from
31106         doc/glibc-functions/wctrans_l.texi.
31107         * doc/posix-functions/wctype_l.texi: Renamed from
31108         doc/glibc-functions/wctype_l.texi.
31109         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31110         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
31111         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
31112         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
31113         these subsections.
31114         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
31115         Remove sections.
31116
31117 2008-12-14  Bruno Haible  <bruno@clisp.org>
31118
31119         Update doc for POSIX:2008.
31120         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31121
31122 2008-12-14  Bruno Haible  <bruno@clisp.org>
31123
31124         Update doc for POSIX:2008.
31125         * doc/pastposix-functions/bcmp.texi: Renamed from
31126         doc/posix-functions/bcmp.texi.
31127         * doc/pastposix-functions/bcopy.texi: Renamed from
31128         doc/posix-functions/bcopy.texi.
31129         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31130         doc/posix-functions/bsd_signal.texi.
31131         * doc/pastposix-functions/bzero.texi: Renamed from
31132         doc/posix-functions/bzero.texi.
31133         * doc/pastposix-functions/ecvt.texi: Renamed from
31134         doc/posix-functions/ecvt.texi.
31135         * doc/pastposix-functions/fcvt.texi: Renamed from
31136         doc/posix-functions/fcvt.texi.
31137         * doc/pastposix-functions/ftime.texi: Renamed from
31138         doc/posix-functions/ftime.texi.
31139         * doc/pastposix-functions/gcvt.texi: Renamed from
31140         doc/posix-functions/gcvt.texi.
31141         * doc/pastposix-functions/getcontext.texi: Renamed from
31142         doc/posix-functions/getcontext.texi.
31143         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
31144         doc/posix-functions/gethostbyaddr.texi.
31145         * doc/pastposix-functions/gethostbyname.texi: Renamed from
31146         doc/posix-functions/gethostbyname.texi.
31147         * doc/pastposix-functions/getwd.texi: Renamed from
31148         doc/posix-functions/getwd.texi.
31149         * doc/pastposix-functions/h_errno.texi: Renamed from
31150         doc/posix-functions/h_errno.texi.
31151         * doc/pastposix-functions/index.texi: Renamed from
31152         doc/posix-functions/index.texi.
31153         * doc/pastposix-functions/makecontext.texi: Renamed from
31154         doc/posix-functions/makecontext.texi.
31155         * doc/pastposix-functions/mktemp.texi: Renamed from
31156         doc/posix-functions/mktemp.texi.
31157         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
31158         doc/posix-functions/pthread_attr_getstackaddr.texi.
31159         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
31160         doc/posix-functions/pthread_attr_setstackaddr.texi.
31161         * doc/pastposix-functions/rindex.texi: Renamed from
31162         doc/posix-functions/rindex.texi.
31163         * doc/pastposix-functions/scalb.texi: Renamed from
31164         doc/posix-functions/scalb.texi.
31165         * doc/pastposix-functions/setcontext.texi: Renamed from
31166         doc/posix-functions/setcontext.texi.
31167         * doc/pastposix-functions/swapcontext.texi: Renamed from
31168         doc/posix-functions/swapcontext.texi.
31169         * doc/pastposix-functions/ualarm.texi: Renamed from
31170         doc/posix-functions/ualarm.texi.
31171         * doc/pastposix-functions/usleep.texi: Renamed from
31172         doc/posix-functions/usleep.texi.
31173         * doc/pastposix-functions/vfork.texi: Renamed from
31174         doc/posix-functions/vfork.texi.
31175         * doc/pastposix-functions/wcswcs.texi: Renamed from
31176         doc/posix-functions/wcswcs.texi.
31177         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
31178         (Function Substitutes): Update.
31179
31180 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31181
31182         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
31183         m4/strerror.m4.
31184
31185 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31186             Bruno Haible  <bruno@clisp.org>
31187
31188         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
31189
31190 2008-12-13  Bruno Haible  <bruno@clisp.org>
31191
31192         * modules/strtoull (Depends-on): Remove unistd.
31193
31194 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31195
31196         * modules/strtoull (Depends-on): Add stdlib.
31197
31198 2008-12-11  Simon Josefsson  <simon@josefsson.org>
31199
31200         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
31201
31202 2008-12-10  Jim Meyering  <meyering@redhat.com>
31203
31204         gl_ASSERT: don't say assertions are disabled when they're not
31205         * m4/assert.m4 (gl_ASSERT): Do not make configure report
31206         "checking whether to enable assertions... no", when they are in
31207         fact enabled.  This is solely a bug in the output of configure.
31208         In spite of saying "no", NDEBUG was not defined in that case.
31209         Also, as noted by Eric Blake, leave assertions enabled upon
31210         --enable-assert=INVALID.
31211
31212 2008-12-10  Bruno Haible  <bruno@clisp.org>
31213
31214         Change MODULES.html to refer to POSIX:2008 where possible.
31215         * MODULES.html.sh (POSIX2008_URL): New variable.
31216         (posix_headers): Remove sys/timeb, ucontext.
31217         (posix2001_headers): New variable.
31218         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
31219         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
31220         index, makecontext, mktemp, pthread_attr_getstackaddr,
31221         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
31222         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
31223         (posix2001_functions): New variable.
31224         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
31225         otherwise.
31226
31227 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31228
31229         add missing include to parse-duration.c
31230         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
31231         * modules/parse-duration (Depends-on): Add xalloc.
31232
31233         fix sed script reading maint.mk
31234         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
31235         (syntax-check-rules): Use it.
31236
31237 2008-12-09  Bruno Haible  <bruno@clisp.org>
31238
31239         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
31240         MacOS X 10.4/PowerPC.
31241         Reported by Simon Josefsson.
31242
31243 2008-12-08  Jim Meyering  <meyering@redhat.com>
31244
31245         work around mingw's lack of some S_IF definitions
31246         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
31247         Reported by Simon Josefsson.
31248
31249 2008-12-08  Bruno Haible  <bruno@clisp.org>
31250
31251         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
31252         applied to variables. Needed on MacOS X 10.4/PowerPC.
31253         Reported by Simon Josefsson.
31254
31255 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
31256         and Eric Blake  <ebb9@byu.net>
31257
31258         assert: honor --enable-assert
31259         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
31260         order to honor --enable-assert, rather than treating it as a
31261         synonym for --disable-assert.
31262
31263 2008-12-08  Jim Meyering  <meyering@redhat.com>
31264
31265         * lib/posixtm.c: Remove now-useless declaration of mktime.
31266
31267         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
31268
31269 2008-12-07  Bruno Haible  <bruno@clisp.org>
31270
31271         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
31272         test_once): Mark functions as static.
31273         * tests/test-tls.c (test_tls): Likewise.
31274
31275 2008-12-07  Bruno Haible  <bruno@clisp.org>
31276
31277         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
31278         iconv_register_autodetect.
31279
31280 2008-12-07  Jim Meyering  <meyering@redhat.com>
31281
31282         posixtm.c: avoid a warning
31283         * lib/posixtm.c (posixtime): Don't initialize tm0.
31284         It's no longer needed to placate gcc4's -Wuninitialized,
31285         and the attempt to placate would elicit a new warning.
31286
31287         unicodeio.c: mark unused parameters
31288         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31289         (fallback_failure_callback): Likewise.
31290
31291 2008-12-07  Bruno Haible  <bruno@clisp.org>
31292
31293         * gnulib-tool (func_create_testdir): When building the tests
31294         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
31295         Reported by Simon Josefsson.
31296
31297 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31298
31299         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
31300
31301 2008-12-06  Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
31304         Suggested by Eric Blake.
31305
31306 2008-12-06  Bruno Haible  <bruno@clisp.org>
31307
31308         Fix a c-stack test failure on MacOS X.
31309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
31310         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
31311         handler for SIGBUS as well.
31312         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
31313         install a signal handler for SIGBUS as well.
31314         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
31315
31316 2008-12-06  Bruno Haible  <bruno@clisp.org>
31317
31318         Advocacy documentation.
31319         * doc/gnulib-intro.texi (Benefits): New section.
31320         * doc/gnulib.texi: Update.
31321
31322 2008-12-06  Bruno Haible  <bruno@clisp.org>
31323
31324         Document the 'manywarnings' module.
31325         * doc/manywarnings.texi: New file.
31326         * doc/gnulib.texi: Include it.
31327
31328 2008-12-05  Eric Blake  <ebb9@byu.net>
31329
31330         tests: silence some gcc warnings
31331         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
31332         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31333         type mismatches.
31334
31335 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31336             Bruno Haible  <bruno@clisp.org>
31337
31338         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31339
31340 2008-11-29  Jim Meyering  <meyering@redhat.com>
31341
31342         unicodeio.c: mark unused parameters
31343         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31344         (fallback_failure_callback): Likewise.
31345
31346         fts: fix a thinko
31347         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31348         (set_stat_type): Return S_IF*-valued "type" directly.
31349         Prompted by James Youngman's spotting a related bug.
31350         Confirmed by further testing through find.
31351
31352         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31353         * lib/fts.c (D_TYPE): Define.
31354         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31355         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31356         (s_ifmt_shift_bits): New function.
31357         (set_stat_type): New function.
31358         (fts_build): When not calling fts_stat, call set_stat_type
31359         to propagate dirent.d_type info to fts_read caller.
31360         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
31361         fts_statp->st_mode type information may be valid.
31362
31363 2008-11-28  Simon Josefsson  <simon@josefsson.org>
31364
31365         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
31366         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
31367         <sds@gnu.org>.
31368
31369 2008-11-20  Bruno Haible  <bruno@clisp.org>
31370
31371         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
31372         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
31373         INCLUDE_NEXT.
31374         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
31375         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
31376         * modules/math (Makefile.am): Substitute
31377         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
31378         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31379
31380 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31381             Bruno Haible  <bruno@clisp.org>
31382
31383         * lib/stdint.in.h: Define all type macros so that their expansion is
31384         a single typedef'ed token. Fixes a compilation failure in Boost which
31385         does "using ::int8_t;".
31386
31387 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31388
31389         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
31390         gl_MANYWARN_ALL_GCC.
31391         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
31392         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
31393         * modules/manywarnings: New file.
31394         * MODULES.html.sh: Mention manywarnings module.
31395
31396 2008-11-18  Bruno Haible  <bruno@clisp.org>
31397
31398         * doc/gnulib-tool.texi (Unit tests): New section.
31399
31400 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31401
31402         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
31403         paths like 'lib/po/foo.po'.
31404
31405 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31406
31407         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
31408         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
31409
31410 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31411
31412         * m4/warnings.m4: Use CPPFLAGS to really check whether the
31413         parameter works.
31414
31415 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31416
31417         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
31418
31419 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31420
31421         * modules/parse-duration-tests: New file.
31422         * tests/test-parse-duration.sh: New file.
31423         * tests/test-parse-duration.c: New file.
31424
31425         New module 'parse-duration'.
31426         * lib/parse-duration.h: New file.
31427         * lib/parse-duration.c: New file.
31428         * modules/parse-duration: New file.
31429
31430 2008-11-17  Bruno Haible  <bruno@clisp.org>
31431
31432         * tests/test-select-out.sh: Comment out the first pipe test.
31433         Reported by Simon Josefsson.
31434
31435 2008-11-17  Bruno Haible  <bruno@clisp.org>
31436
31437         * modules/getaddrinfo (Depends-on): Add servent, hostent.
31438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
31439         gl_HOSTENT.
31440
31441 2008-11-17  Bruno Haible  <bruno@clisp.org>
31442
31443         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
31444         -lnetwork and -lnet. Needed for Haiku and BeOS.
31445
31446 2008-11-16  Bruno Haible  <bruno@clisp.org>
31447
31448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
31449
31450 2008-11-16  Bruno Haible  <bruno@clisp.org>
31451
31452         Avoid test failure on Haiku.
31453         * tests/test-fsync.c: Include <errno.h>.
31454         (main): Don't require that fsync (0) fails.
31455
31456 2008-11-15  Bruno Haible  <bruno@clisp.org>
31457
31458         New module 'hostent'.
31459         * modules/hostent: New file.
31460         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
31461
31462 2008-11-15  Bruno Haible  <bruno@clisp.org>
31463
31464         New module 'servent'.
31465         * modules/servent: New file.
31466         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
31467
31468 2008-11-15  Bruno Haible  <bruno@clisp.org>
31469
31470         Avoid generating same test program with two different rules.
31471         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31472         test-frexp to test-frexp-nolibm.
31473         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31474         test-frexpl to test-frexpl-nolibm.
31475
31476 2008-11-15  Bruno Haible  <bruno@clisp.org>
31477
31478         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31479         $(FREXPL_LIBM).
31480
31481 2008-11-15  Bruno Haible  <bruno@clisp.org>
31482
31483         * lib/netdb.in.h: Activate the definitions also when the system's
31484         <netdb.h> has 'struct addrinfo'.
31485         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31486         EAI_OVERFLOW or AI_NUMERICSERV.
31487         * doc/posix-headers/netdb.texi: Document the problem.
31488
31489 2008-11-15  Bruno Haible  <bruno@clisp.org>
31490
31491         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31492
31493         Make the 'sched' module work on platforms where <sched.h> exists but
31494         is incomplete (such as Haiku).
31495         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31496         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31497         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31498         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31499         HAVE_STRUCT_SCHED_PARAM.
31500         * modules/sched (Depends-on): Add include_next.
31501         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31502         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31503         * doc/posix-headers/sched.texi: Document the issue.
31504
31505 2008-11-13  Jim Meyering  <meyering@redhat.com>
31506
31507         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
31508         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
31509         test would fail due to the difference in the Report bugs to ...
31510         line.  The expected address is empty, "<>", while the actual
31511         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
31512
31513 2008-11-12  Bruno Haible  <bruno@clisp.org>
31514
31515         lstat: don't compile lstat.c on systems lacking lstat
31516         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
31517         which don't have lstat; this is handled by lib/sys_stat.in.h already.
31518         Reported by Daniel P. Berrange via Jim Meyering.
31519
31520 2008-11-12  Jim Meyering  <meyering@redhat.com>
31521
31522         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
31523
31524 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31525
31526         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
31527         instead.
31528
31529 2008-11-12  Bruno Haible  <bruno@clisp.org>
31530
31531         * lib/unicodeio.c: Include unistr.h.
31532         (utf8_wctomb): Remove function.
31533         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
31534
31535 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31536
31537         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
31538         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
31539         <bruno@clisp.org>.
31540         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
31541
31542 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31543
31544         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
31545         * doc/gnulib.texi: Add section for warnings.
31546
31547 2008-11-11  Bruno Haible  <bruno@clisp.org>
31548
31549         * lib/sockets.h: Add a comment.
31550
31551 2008-11-11  Karl Berry  <karl@gnu.org>
31552
31553         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
31554
31555 2008-11-11  Eric Blake  <ebb9@byu.net>
31556
31557         fdl.texi: avoid git symlinks
31558         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
31559
31560 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31561
31562         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
31563
31564 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31565
31566         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
31567         (gl_WARN_ADD): Substitute $2 if literal.
31568
31569 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31570
31571         * m4/warning.m4: Remove.
31572
31573 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31574
31575         * m4/warnings.m4: Almost complete rewrite. :-)
31576
31577 2008-11-10  Simon Josefsson  <simon@josefsson.org>
31578
31579         * modules/warnings: New module.
31580         * m4/warnings.m4: New file.
31581         * MODULES.html.sh: Mention warnings module.
31582         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
31583         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31584
31585 2008-11-10  Eric Blake  <ebb9@byu.net>
31586
31587         fdl.texi: make a symlink to the latest version
31588         * doc/standards.texi: Revert today's earlier change.
31589         * doc/fdl-1.2.texi: Rename from old fdl.texi...
31590         * doc/fdl.texi: ...and replace this with a symlink to the newer
31591         fdl-1.3.texi.
31592
31593 2008-11-10  Bruno Haible  <bruno@clisp.org>
31594
31595         * tests/test-select-fd.c (main): Accept the result file name as fourth
31596         argument.
31597         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
31598         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
31599
31600 2008-11-10  Bruno Haible  <bruno@clisp.org>
31601
31602         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
31603         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
31604         as autoconf-substituted macros.
31605         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
31606         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
31607         gl_NETDB_H_DEFAULTS. Set these variables.
31608         * modules/netdb (Makefile.am): Substitute these variables.
31609
31610 2008-11-10  Eric Blake  <ebb9@byu.net>
31611
31612         standards.texi: include correct file for FDL 1.3
31613         * doc/standards.texi (GNU Free Documentation License): Change
31614         include file to pull in FDL 1.3, not 1.2.
31615
31616         fdl.texi: revert accidental change to license
31617         * doc/fdl.texi: This is FDL 1.2, not 1.3.
31618
31619 2008-11-10  Bruno Haible  <bruno@clisp.org>
31620
31621         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
31622         cross-compiling guesses also when the native compile gives no result.
31623
31624 2008-11-10  Bruno Haible  <bruno@clisp.org>
31625
31626         * lib/spawni.c (__spawni): Force variable into the stack.
31627
31628 2008-11-10  Bruno Haible  <bruno@clisp.org>
31629
31630         Add support for Haiku.
31631         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
31632         glibc and BeOS, but also on Haiku.
31633         * lib/fpurge.c (fpurge): Likewise.
31634         * lib/freadable.c (freadable): Likewise.
31635         * lib/freadahead.c (freadahead): Likewise.
31636         * lib/freading.c (freading): Likewise.
31637         * lib/freadptr.c (freadptr): Likewise.
31638         * lib/freadseek.c (freadptrinc): Likewise.
31639         * lib/fseeko.c (rpl_fseeko): Likewise.
31640         * lib/fseterr.c (fseterr): Likewise.
31641         * lib/fwritable.c (fwritable): Likewise.
31642         * lib/fwriting.c (fwriting): Likewise.
31643         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
31644
31645 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31646
31647         * lib/config.charset: Treat Haiku like BeOS.
31648
31649 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31650
31651         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
31652         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
31653
31654 2008-11-08  Bruno Haible  <bruno@clisp.org>
31655
31656         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
31657         AC_CACHE_CHECK.
31658
31659 2008-11-08  Bruno Haible  <bruno@clisp.org>
31660
31661         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
31662
31663 2008-11-08  Bruno Haible  <bruno@clisp.org>
31664
31665         * tests/test-select-fd.c: New file.
31666         * tests/test-select-in.sh: New file.
31667         * tests/test-select-out.sh: New file.
31668         * tests/test-select-stdin.c: New file.
31669         * modules/select-tests (Files): Add the new files.
31670         (Depends-on): Add gettimeofday.
31671         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
31672         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
31673         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
31674
31675 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
31676             Bruno Haible  <bruno@clisp.org>
31677
31678         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
31679
31680 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
31681
31682         * build-aux/pmccabe2html: Added support for C++ source files.
31683
31684 2008-11-05  Ben Pfaff  <blp@gnu.org>
31685
31686         Fix lib/close.c build on Windows.
31687         * modules/close (Files): Add lib/w32sock.h.
31688
31689 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
31690
31691         Accept Bison's NEWS format.
31692         * build-aux/announce-gen (print_news_deltas): Tweak
31693         $re_prefix.
31694
31695 2008-11-04  Bruno Haible  <bruno@clisp.org>
31696
31697         * modules/random_r (Maintainer): Add glibc.
31698
31699 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31700
31701         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
31702         by karl@freefriends.org (Karl Berry).
31703         * doc/alloca.texi: Likewise.
31704         * doc/c-ctype.texi: Likewise.
31705         * doc/c-strcase.texi: Likewise.
31706         * doc/c-strcaseeq.texi: Likewise.
31707         * doc/c-strcasestr.texi: Likewise.
31708         * doc/c-strstr.texi: Likewise.
31709         * doc/c-strtod.texi: Likewise.
31710         * doc/c-strtold.texi: Likewise.
31711         * doc/ctime.texi: Likewise.
31712         * doc/error.texi: Likewise.
31713         * doc/fdl.texi: Likewise.
31714         * doc/gcd.texi: Likewise.
31715         * doc/getdate.texi: Likewise.
31716         * doc/gnulib-intro.texi: Likewise.
31717         * doc/gnulib-tool.texi: Likewise.
31718         * doc/gnulib.texi: Likewise.
31719         * doc/inet_ntoa.texi: Likewise.
31720         * doc/maintain.texi: Likewise.
31721         * doc/make-stds.texi: Likewise.
31722         * doc/quote.texi: Likewise.
31723         * doc/regexprops-generic.texi: Likewise.
31724         * doc/standards.texi: Likewise.
31725         * doc/verify.texi: Likewise.
31726         * doc/visibility.texi: Likewise.
31727         * doc/gnulib.texi (GNU Free Documentation License): Include
31728         fdl-1.3.texi instead of fdl.texi.
31729
31730 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31731
31732         * doc/fdl-1.3.texi: New file, from
31733         <http://www.gnu.org/licenses/fdl-1.3.texi>.
31734         * modules/fdl-1.3: Add.
31735         * MODULES.html.sh: Add fdl-1.3.
31736
31737 2008-11-03  Bruno Haible  <bruno@clisp.org>
31738
31739         Make determination of absolute name of header file work with AIX xlc.
31740         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
31741         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
31742         preprocessing.
31743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31744         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31745
31746 2008-11-03  Simon Josefsson  <simon@josefsson.org>
31747
31748         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
31749         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
31750         <ludo@gnu.org>.
31751
31752 2008-11-02  Bruno Haible  <bruno@clisp.org>
31753
31754         Mark 'strpbrk' obsolete.
31755         * modules/strpbrk (Status, Notice): New sections.
31756         * modules/strtok_r (Depends-on): Add strpbrk.
31757
31758 2008-11-02  Bruno Haible  <bruno@clisp.org>
31759
31760         Mark 'strdup' obsolete.
31761         * modules/strdup (Status, Notice): New sections.
31762         * modules/findprog (Depends-on): Add strdup.
31763         * modules/getaddrinfo (Depends-on): Likewise.
31764         * modules/localename (Depends-on): Likewise.
31765         * modules/relocatable-lib (Depends-on): Likewise.
31766         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
31767         * modules/relocatable-prog (Depends-on): Likewise.
31768         * modules/trim (Depends-on): Likewise.
31769         * modules/unictype/gen-ctype (Depends-on): Likewise.
31770         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31771
31772 2008-11-02  Bruno Haible  <bruno@clisp.org>
31773
31774         Mark 'strcspn' obsolete.
31775         * modules/strcspn (Status, Notice): New sections.
31776
31777 2008-11-02  Bruno Haible  <bruno@clisp.org>
31778
31779         Mark 'rmdir' obsolete.
31780         * modules/rmdir (Status, Notice): New sections.
31781         * modules/clean-temp (Depends-on): Add rmdir.
31782         * modules/openat (Depends-on): Likewise.
31783
31784 2008-11-02  Bruno Haible  <bruno@clisp.org>
31785
31786         Mark 'raise' obsolete.
31787         * modules/raise (Status, Notice): New sections.
31788         (Include): Specify <signal.h>.
31789         * modules/stdio (Depends-on): Add raise.
31790         * modules/write (Depends-on): Likewise.
31791
31792 2008-11-02  Bruno Haible  <bruno@clisp.org>
31793
31794         Mark 'memset' obsolete.
31795         * modules/memset (Status, Notice): New sections.
31796
31797 2008-11-02  Bruno Haible  <bruno@clisp.org>
31798
31799         Mark 'memmove' obsolete.
31800         * modules/memmove (Status, Notice): New sections.
31801         * modules/argp (Depends-on): Add memmove.
31802         * modules/argz (Depends-on): Likewise.
31803         * modules/canonicalize (Depends-on): Likewise.
31804         * modules/canonicalize-lgpl (Depends-on): Likewise.
31805         * modules/fts (Depends-on): Likewise.
31806         * modules/getcwd (Depends-on): Likewise.
31807         * modules/human (Depends-on): Likewise.
31808         * modules/regex (Depends-on): Likewise.
31809         * modules/striconveh (Depends-on): Likewise.
31810         * modules/trim (Depends-on): Likewise.
31811         * modules/unistr/u8-move (Depends-on): Likewise.
31812         * modules/unistr/u16-move (Depends-on): Likewise.
31813         * modules/unistr/u32-move (Depends-on): Likewise.
31814
31815 2008-11-02  Bruno Haible  <bruno@clisp.org>
31816
31817         Mark 'memcpy' obsolete.
31818         * modules/memcpy (Status, Notice): New sections.
31819
31820 2008-11-02  Bruno Haible  <bruno@clisp.org>
31821
31822         Mark 'memcmp' obsolete.
31823         * modules/memcmp (Status, Notice): New sections.
31824         * modules/argmatch (Depends-on): Add memchr.
31825         * modules/backupfile (Depends-on): Likewise.
31826         * modules/c-strcasestr (Depends-on): Likewise.
31827         * modules/crypto/des (Depends-on): Likewise.
31828         * modules/csharpcomp (Depends-on): Likewise.
31829         * modules/fnmatch (Depends-on): Likewise.
31830         * modules/git-merge-changelog (Depends-on): Likewise.
31831         * modules/isnand (Depends-on): Likewise.
31832         * modules/isnand-nolibm (Depends-on): Likewise.
31833         * modules/isnanf (Depends-on): Likewise.
31834         * modules/isnanf-nolibm (Depends-on): Likewise.
31835         * modules/isnanl (Depends-on): Likewise.
31836         * modules/isnanl-nolibm (Depends-on): Likewise.
31837         * modules/mbchar (Depends-on): Likewise.
31838         * modules/memcoll (Depends-on): Likewise.
31839         * modules/quotearg (Depends-on): Likewise.
31840         * modules/regex (Depends-on): Likewise.
31841         * modules/relocatable-prog (Depends-on): Likewise.
31842         * modules/same (Depends-on): Likewise.
31843         * modules/signbit (Depends-on): Likewise.
31844         * modules/strcasestr-simple (Depends-on): Likewise.
31845         * modules/unictype/gen-ctype (Depends-on): Likewise.
31846         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31847         * modules/uniname/uniname (Depends-on): Likewise.
31848         * modules/unistr/u8-cmp (Depends-on): Likewise.
31849
31850 2008-11-02  Bruno Haible  <bruno@clisp.org>
31851
31852         Mark 'memchr' obsolete.
31853         * modules/memchr (Status, Notice): New sections.
31854         * modules/argp (Depends-on): Add memchr.
31855         * modules/base64 (Depends-on): Likewise.
31856         * modules/c-strcasestr (Depends-on): Likewise.
31857         * modules/chdir-long (Depends-on): Likewise.
31858         * modules/fnmatch (Depends-on): Likewise.
31859         * modules/getsubopt (Depends-on): Likewise.
31860         * modules/git-merge-changelog (Depends-on): Likewise.
31861         * modules/glob (Depends-on): Likewise.
31862         * modules/strcasestr-simple (Depends-on): Likewise.
31863         * modules/strnlen (Depends-on): Likewise.
31864
31865 2008-11-02  Bruno Haible  <bruno@clisp.org>
31866
31867         Mark 'atexit' obsolete.
31868         * modules/atexit (Status, Notice): New sections.
31869         * modules/chdir-long (Depends-on): Add atexit.
31870         * modules/wait-process (Depends-on): Likewise.
31871
31872 2008-11-02  Bruno Haible  <bruno@clisp.org>
31873
31874         * gnulib-tool: New option --with-obsolete.
31875         (func_usage): Document it.
31876         (func_modules_transitive_closure): Drop obsolete dependencies if
31877         incobsolete is not true.
31878         (func_import): Read and save the incobsolete variable to the cache.
31879
31880 2008-11-02  Bruno Haible  <bruno@clisp.org>
31881
31882         * modules/TEMPLATE-EXTENDED: New field 'Status'.
31883         * gnulib-tool: New option --extract-status.
31884         (func_usage): Document it.
31885         (sed_extract_prog): Recognize it.
31886         (func_get_status): New function.
31887
31888 2008-10-30  Simon Josefsson  <simon@josefsson.org>
31889
31890         * modules/sockets (License): Change from LGPL to LGPLv2+.
31891
31892 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31893
31894         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
31895
31896 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31897
31898         * MODULES.html.sh (Support for systems lacking POSIX:2001):
31899         Mention times and sys_times.
31900         * modules/sys_times, modules/sys_times-tests: New modules.
31901         * modules/times, modules/times-tests: Likewise
31902         * m4/sys_times_h.m4: New file.
31903         * lib/sys_times.in.h: Likewise
31904         * lib/times.c: Likewise.
31905         * tests/test-sys_times.c: Likewise.
31906         * tests/test-times.c: Likewise.
31907         * doc/posix-headers/sys_times.texi: Update.
31908         * doc/posix-functions/times.texi: Update.
31909
31910 2008-10-28  Jim Meyering  <meyering@redhat.com>
31911
31912         * modules/tempname (Depends-on): Add lstat.
31913
31914         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
31915
31916 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31917
31918         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
31919         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
31920         using idiom used elsewhere in gnulib.
31921
31922 2008-10-27  Jim Meyering  <meyering@redhat.com>
31923
31924         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
31925
31926 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31927
31928         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
31929         TESTS_ENVIRONMENT, for shell scripts that needs to call built
31930         programs.
31931         * tests/test-argp-2.sh: Use $EXEEXT when needed.
31932
31933 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31934
31935         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
31936
31937 2008-10-27  Bruno Haible  <bruno@clisp.org>
31938
31939         * tests/test-lstat.c: Include <stdio.h>.
31940
31941 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31942
31943         * modules/lstat-tests: New module.
31944         * tests/test-lstat.c: New file.
31945
31946 2008-10-26  Jim Meyering  <meyering@redhat.com>
31947
31948         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
31949
31950 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31951             Bruno Haible  <bruno@clisp.org>
31952
31953         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
31954         * modules/configmake (Include): Add a note that the include must come
31955         after all system headers.
31956         * lib/javaversion.c: Include configmake.h after all other includes.
31957
31958 2008-10-26  Bruno Haible  <bruno@clisp.org>
31959
31960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
31961         HAVE_STRUCT_RANDOM_DATA to 1.
31962         (gl_STDLIB_H): Simplify.
31963
31964 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31965
31966         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
31967         substitute HAVE_STRUCT_RANDOM_DATA.
31968         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
31969         random_data.
31970         * modules/stdlib (Makefile.am): Substitute
31971         HAVE_STRUCT_RANDOM_DATA.
31972
31973 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31974
31975         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
31976         * doc/gnulib-intro.texi (Copyright): Likewise.
31977
31978 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31979
31980         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
31981         findings.
31982
31983 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
31984             Bruno Haible  <bruno@clisp.org>
31985
31986         * lib/unistd.in.h: Include <winsock2.h>.
31987         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
31988         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
31989         Provide dummy declarations.
31990         (gethostname): Override.
31991         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
31992         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
31993         gl_PREREQ_SYS_H_WINSOCK2.
31994         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
31995         * doc/posix-functions/gethostname.texi: More details.
31996
31997 2008-10-25  Bruno Haible  <bruno@clisp.org>
31998
31999         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32000         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
32001         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
32002
32003         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
32004         here ...
32005         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
32006         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
32007         gl_UNISTD_H_DEFAULTS.
32008
32009 2008-10-25  Eric Blake  <ebb9@byu.net>
32010
32011         signbit: avoid spurious compiler failure
32012         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
32013         declarations inside function.
32014
32015 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32016             Bruno Haible  <bruno@clisp.org>
32017
32018         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
32019         * modules/random_r (Depends-on): Add stdint.
32020
32021 2008-10-24  Bruno Haible  <bruno@clisp.org>
32022
32023         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
32024         Eggert.
32025         * modules/strerror (License): Likewise.
32026
32027 2008-10-24  Jim Meyering  <meyering@redhat.com>
32028
32029         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
32030         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
32031
32032 2008-10-24  Eric Blake  <ebb9@byu.net>
32033
32034         getgroups: fix compilation when getgroups is available
32035         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
32036         but with <config.h> override of getgroups disabled.
32037
32038 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32039
32040         * doc/gnulib.texi (Header files): Add note about C++ problems.
32041         Explained by Bruno Haible <bruno@clisp.org>.
32042
32043 2008-10-23  Bruno Haible  <bruno@clisp.org>
32044
32045         Define a dummy SA_NODEFER macro on Interix.
32046         * lib/signal.in.h (SA_NODEFER): Define fallback.
32047         Reported by Aleksey Cheusov <cheusov@tut.by> via
32048         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
32049
32050 2008-10-23  Bruno Haible  <bruno@clisp.org>
32051
32052         * modules/freadahead (License): Change to LGPLv2+.
32053         Suggested by Simon Josefsson.
32054
32055 2008-10-23  Jim Meyering  <meyering@redhat.com>
32056
32057         random_r: new module
32058         * modules/random_r: New file.
32059         * m4/random_r.m4: New file.
32060         * lib/random_r.c: New file, from glibc.
32061         * modules/random_r-tests: New file.
32062         * tests/test-random_r.c: New file.
32063         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
32064          Declare.
32065         (RAND_MAX): Define.
32066         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
32067         * modules/stdlib: Substitute them, too.
32068         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
32069         * doc/glibc-functions/initstate_r.texi: Mention the new module.
32070         * doc/glibc-functions/random_r.texi: Likewise.
32071         * doc/glibc-functions/setstate_r.texi: Likewise.
32072         * doc/glibc-functions/srandom_r.texi: Likewise.
32073         * config/srclist.txt: Mention it.
32074
32075 2008-10-23  David Lutterkort  <lutter@redhat.com>
32076
32077         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
32078         link requirement
32079
32080 2008-10-23  Jim Meyering  <meyering@redhat.com>
32081
32082         selinux-h: mark parameters of stub functions as intentionally unused
32083         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
32084         * lib/se-context.in.h: Likewise.
32085
32086 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32087
32088         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
32089
32090 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32091
32092         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
32093
32094 2008-10-22  Eric Blake  <ebb9@byu.net>
32095
32096         glthread/thread: avoid compiler warning
32097         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
32098         Add unreachable abort to silence compiler.
32099
32100 2008-10-22  Eric Blake  <ebb9@byu.net>
32101
32102         netdb: also supply struct addrinfo for cygwin 1.5.x
32103         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
32104         older cygwin.
32105         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
32106         cygwin.
32107         * doc/posix-headers/netdb.texi (netdb.h): Document this.
32108
32109 2008-10-22  Bruno Haible  <bruno@clisp.org>
32110
32111         * users.txt: Update entry about pspp.
32112
32113 2008-10-21  Bruno Haible  <bruno@clisp.org>
32114
32115         Simplification.
32116         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
32117         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
32118
32119         Simplification.
32120         * lib/ioctl.c (ioctl): Don't undefine.
32121         * lib/socket.c (socket): Don't undefine.
32122
32123         Remove unused module indicator macros.
32124         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32125         GNULIB_$1 as a C macro.
32126
32127         * doc/posix-functions/close.texi: Undo last change.
32128         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32129         Windows platforms.
32130
32131 2008-10-21  Bruno Haible  <bruno@clisp.org>
32132
32133         Add gethostname() declaration to <unistd.h>.
32134         * lib/unistd.in.h (gethostname): New declaration.
32135         * lib/gethostname.c: Include <unistd.h>.
32136         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
32137         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
32138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
32139         and HAVE_GETHOSTNAME.
32140         * modules/gethostname (Depends-on): Add unistd.
32141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32142         (Include): Specify <unistd.h>.
32143         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
32144         HAVE_GETHOSTNAME.
32145         * tests/test-gethostname.c: Include <unistd.h> first.
32146
32147 2008-10-21  Bruno Haible  <bruno@clisp.org>
32148
32149         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
32150         * modules/select-tests (Depends-on): Likewise.
32151         Reported by Simon Josefsson.
32152
32153 2008-10-21  Simon Josefsson  <simon@josefsson.org>
32154
32155         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
32156         * lib/accept.c: New file, based on winsock.c.
32157         * lib/bind.c: New file, based on winsock.c.
32158         * lib/connect.c: New file, based on winsock.c.
32159         * lib/getpeername.c: New file, based on winsock.c.
32160         * lib/getsockname.c: New file, based on winsock.c.
32161         * lib/getsockopt.c: New file, based on winsock.c.
32162         * lib/ioctl.c: New file, based on winsock.c.
32163         * lib/listen.c: New file, based on winsock.c.
32164         * lib/recv.c: New file, based on winsock.c.
32165         * lib/recvfrom.c: New file, based on winsock.c.
32166         * lib/send.c: New file, based on winsock.c.
32167         * lib/sendto.c: New file, based on winsock.c.
32168         * lib/setsockopt.c: New file, based on winsock.c.
32169         * lib/shutdown.c: New file, based on winsock.c.
32170         * lib/socket.c: New file, based on winsock.c.
32171         * lib/w32sock.h: New file, based on winsock.c.
32172         * lib/winsock.c: Remove file.
32173         * modules/accept: Likewise.
32174         * modules/bind: Likewise.
32175         * modules/connect: Likewise.
32176         * modules/getpeername: Likewise.
32177         * modules/getsockname: Likewise.
32178         * modules/getsockopt: Likewise.
32179         * modules/ioctl: Likewise.
32180         * modules/listen: Likewise.
32181         * modules/recv: Likewise.
32182         * modules/recvfrom: Likewise.
32183         * modules/send: Likewise.
32184         * modules/sendto: Likewise.
32185         * modules/setsockopt: Likewise.
32186         * modules/shutdown: Likewise.
32187         * modules/socket: Use socket.c instead of winsock.c.
32188         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
32189         * doc/posix-functions/accept.texi: Doc fix.
32190         * doc/posix-functions/bind.texi: Doc fix.
32191         * doc/posix-functions/close.texi: Doc fix.
32192         * doc/posix-functions/connect.texi: Doc fix.
32193         * doc/posix-functions/getpeername.texi: Doc fix.
32194         * doc/posix-functions/getsockname.texi: Doc fix.
32195         * doc/posix-functions/getsockopt.texi: Doc fix.
32196         * doc/posix-functions/ioctl.texi: Doc fix.
32197         * doc/posix-functions/listen.texi: Doc fix.
32198         * doc/posix-functions/recv.texi: Doc fix.
32199         * doc/posix-functions/recvfrom.texi: Doc fix.
32200         * doc/posix-functions/send.texi: Doc fix.
32201         * doc/posix-functions/sendto.texi: Doc fix.
32202         * doc/posix-functions/setsockopt.texi: Doc fix.
32203         * doc/posix-functions/shutdown.texi: Doc fix.
32204         * doc/posix-functions/socket.texi: Doc fix.
32205
32206 2008-10-20  Bruno Haible  <bruno@clisp.org>
32207
32208         Take into account the role of SIGABRT_COMPAT on Windows 2008.
32209         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
32210         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
32211         as an alias for SIGABRT.
32212         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
32213         (sigaction): Map it to SIGABRT.
32214         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
32215
32216 2008-10-20  Bruno Haible  <bruno@clisp.org>
32217
32218         * lib/fts.c: Don't include lstat.h.
32219         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
32220
32221         Move the lstat() declaration to <sys/stat.h>.
32222         * lib/lstat.h: Remove file.
32223         * lib/sys_stat.in.h: Add special invocation convention.
32224         (lstat): New declaration.
32225         * lib/lstat.c (orig_lstat): New function.
32226         (rpl_lstat): Use orig_lstat instead of lstat.
32227         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
32228         AC_C_INLINE. Set REPLACE_LSTAT.
32229         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
32230         and REPLACE_LSTAT.
32231         * modules/lstat (Files): Remove lib/lstat.h.
32232         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32233         (Include): Specify <sys/stat.h> instead of lstat.h.
32234         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
32235         REPLACE_LSTAT.
32236         * NEWS: Mention the change.
32237
32238 2008-10-20  Bruno Haible  <bruno@clisp.org>
32239
32240         * modules/posix_spawn-tests: New file.
32241         * tests/test-posix_spawn3.c: New file.
32242
32243 2008-10-20  Bruno Haible  <bruno@clisp.org>
32244
32245         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
32246         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32247         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
32248         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32249         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
32250
32251 2008-10-20  Bruno Haible  <bruno@clisp.org>
32252
32253         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
32254         of posix_spawn on AIX 5.3.
32255
32256 2008-10-20  Bruno Haible  <bruno@clisp.org>
32257
32258         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
32259
32260 2008-10-20  Bruno Haible  <bruno@clisp.org>
32261
32262         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
32263         of AC_LANG_PROGRAM.
32264
32265 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32266
32267         * lib/netdb.in.h: Don't define GNU specific constants until they
32268         are supported or needed.  Reported by Bruno Haible
32269         <bruno@clisp.org>.
32270
32271 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32272
32273         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
32274
32275 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32276
32277         * lib/getaddrinfo.h: Remove file.
32278         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
32279         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
32280         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
32281         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
32282         * modules/netdb: Substitute GNULIB_GETADDRINFO.
32283         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
32284         * tests/test-getaddrinfo.c: Likewise.
32285         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
32286         * NEWS: Mention change.
32287
32288 2008-10-19  Bruno Haible  <bruno@clisp.org>
32289
32290         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
32291
32292 2008-10-19  Bruno Haible  <bruno@clisp.org>
32293
32294         * lib/wait-process.c: Include simply <sys/wait.h>.
32295         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
32296         WIFSTOPPED): Remove fallback definitions.
32297         * modules/wait-process (Depends-on): Add sys_wait.
32298
32299         New module 'sys_wait'.
32300         * modules/sys_wait: New file.
32301         * lib/sys_wait.in.h: New file, partially copied from
32302         lib/wait-process.c.
32303         * m4/sys_wait_h.m4: New file.
32304         * doc/posix-headers/sys_wait.texi: Mention the new module.
32305
32306 2008-10-19  Bruno Haible  <bruno@clisp.org>
32307
32308         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
32309
32310 2008-10-19  Bruno Haible  <bruno@clisp.org>
32311
32312         Assume that waitpid() fills an 'int' status, not a 'union wait'.
32313         * lib/wait-process.c (WAIT_T): Remove type.
32314         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
32315         (wait_subprocess): Update.
32316
32317 2008-10-19  Bruno Haible  <bruno@clisp.org>
32318
32319         New module 'atoll'.
32320         * modules/atoll: New file.
32321         * lib/stdlib.in.h (atoll): New declaration.
32322         * lib/atoll.c: New file, from glibc with modifications.
32323         * m4/atoll.m4: New file.
32324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
32325         HAVE_ATOLL.
32326         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
32327         * doc/posix-functions/atoll.texi: Mention the new module.
32328
32329 2008-10-19  Bruno Haible  <bruno@clisp.org>
32330
32331         Add strtoull() declaration to <stdlib.h>.
32332         * lib/stdlib.in.h (strtoull): New declaration.
32333         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32334         Set HAVE_STRTOULL.
32335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32336         HAVE_STRTOULL.
32337         * modules/strtoull (Depends-on): Add stdlib.
32338         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32339         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32340         HAVE_STRTOULL.
32341
32342 2008-10-19  Bruno Haible  <bruno@clisp.org>
32343
32344         Add strtoll() declaration to <stdlib.h>.
32345         * lib/stdlib.in.h (strtoll): New declaration.
32346         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32347         Set HAVE_STRTOLL.
32348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32349         HAVE_STRTOLL.
32350         * modules/strtoll (Depends-on): Add stdlib.
32351         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32352         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32353
32354 2008-10-19  Bruno Haible  <bruno@clisp.org>
32355
32356         * modules/bcopy (Depends-on): Add strings.
32357         (Include): Specify <strings.h>.
32358
32359 2008-10-19  Bruno Haible  <bruno@clisp.org>
32360
32361         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
32362
32363 2008-10-19  Bruno Haible  <bruno@clisp.org>
32364
32365         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
32366         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
32367         mingw.
32368
32369 2008-10-19  Bruno Haible  <bruno@clisp.org>
32370
32371         * lib/atanl.c: Don't include isnanl.h.
32372         * lib/cosl.c: Likewise.
32373         * lib/ldexpl.c: Likewise.
32374         * lib/logl.c: Likewise.
32375         * lib/sinl.c: Likewise.
32376         * lib/sqrtl.c: Likewise.
32377         * lib/tanl.c: Likewise.
32378
32379         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
32380         * lib/isnanf.h: Remove file.
32381         * lib/isnand.h: Remove file.
32382         * lib/isnanl.h: Remove file.
32383         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
32384         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
32385         macros.
32386         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
32387         HAVE_ISNANF, don't define it as a C macro.
32388         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
32389         HAVE_ISNAND, don't define it as a C macro.
32390         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
32391         HAVE_ISNANL, don't define it as a C macro.
32392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
32393         HAVE_ISNAN[FDL].
32394         * modules/isnanf (Files): Remove lib/isnanf.h.
32395         (Depends-on): Add math.
32396         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32397         (Include): Specify <math.h> instead of isnanf.h.
32398         * modules/isnand (Files): Remove lib/isnand.h.
32399         (Depends-on): Add math.
32400         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32401         (Include): Specify <math.h> instead of isnand.h.
32402         * modules/isnanl (Files): Remove lib/isnanl.h.
32403         (Depends-on): Add math.
32404         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32405         (Include): Specify <math.h> instead of isnanl.h.
32406         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
32407         HAVE_ISNAN[FDL].
32408         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
32409         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
32410         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
32411         * NEWS: Mention the change.
32412
32413 2008-10-18  Bruno Haible  <bruno@clisp.org>
32414
32415         Add getusershell(), setusershell(), endusershell() declarations to
32416         <unistd.h>.
32417         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
32418         declarations.
32419         * lib/getusershell.c: Include unistd.h.
32420         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
32421         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32422         HAVE_GETUSERSHELL.
32423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
32424         and HAVE_GETUSERSHELL.
32425         * modules/getusershell (Depends-on): Add unistd, extensions.
32426         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32427         (Include): Specify <unistd.h>.
32428         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
32429         HAVE_GETUSERSHELL.
32430
32431 2008-10-18  Bruno Haible  <bruno@clisp.org>
32432
32433         Add a getloadavg() declaration to <stdlib.h>.
32434         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
32435         getloadavg declaration.
32436         (getloadavg): New declaration.
32437         * lib/getloadavg.c: Include <stdlib.h> first.
32438         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
32439         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
32440         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
32441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
32442         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32443         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32444         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32445         (Include): Specify <stdlib.h>.
32446         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
32447         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32448
32449 2008-10-18  Bruno Haible  <bruno@clisp.org>
32450
32451         * lib/dirchownmod.c: Don't include lchmod.h.
32452
32453         Move the lchmod() declaration to <sys/stat.h>.
32454         * lib/lchmod.h: Remove file.
32455         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
32456         (lchmod): New declaration, moved here from lib/lchown.h.
32457         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
32458         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
32459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
32460         and HAVE_LCHMOD.
32461         * modules/lchmod (Files): Remove lib/lchmod.h.
32462         (Depends-on): Add sys_stat, extensions.
32463         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32464         (Include): Specify <sys/stat.h> instead of lchmod.h.
32465         * modules/sys_stat (Depends-on): Add link-warning.
32466         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
32467         definition of GL_LINK_WARNING.
32468         * NEWS: Mention the change.
32469
32470 2008-10-18  Bruno Haible  <bruno@clisp.org>
32471
32472         * lib/fchdir.c: Don't include dirfd.h.
32473         * lib/fts.c: Likewise.
32474         * lib/getcwd.c: Likewise.
32475         * lib/glob.c: Likewise.
32476
32477         Move the dirfd() declaration to <dirent.h>.
32478         * lib/dirfd.h: Remove file.
32479         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32480         (dirfd): New declaration.
32481         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32482         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32483         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32484         HAVE_DECL_DIRFD.
32485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32486         HAVE_DECL_DIRFD.
32487         * modules/dirfd (Files): Remove lib/dirfd.h.
32488         (Depends-on): Add dirent, extensions.
32489         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32490         (Include): Specify <dirent.h> instead of dirfd.h.
32491         * modules/dirent (Depends-on): Add link-warning.
32492         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32493         definition of GL_LINK_WARNING.
32494         * NEWS: Mention the change.
32495
32496 2008-10-18  Bruno Haible  <bruno@clisp.org>
32497
32498         Move the euidaccess() declaration to <unistd.h>.
32499         * lib/euidaccess.h: Remove file.
32500         * lib/unistd.in.h (euidaccess): New declaration.
32501         * lib/euidaccess.c: Don't include euidaccess.h.
32502         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32503         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32505         and HAVE_EUIDACCESS.
32506         * modules/euidaccess (Files): Remove lib/euidaccess.h.
32507         (Depends-on): Add unistd.
32508         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32509         (Include): Specify <unistd.h> instead of euidaccess.h.
32510         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
32511         HAVE_EUIDACCESS.
32512         * NEWS: Mention the change.
32513
32514 2008-10-18  Bruno Haible  <bruno@clisp.org>
32515
32516         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
32517
32518         Move the getdomainname() declaration to <unistd.h>.
32519         * lib/getdomainname.h: Remove file.
32520         * lib/unistd.in.h (getdomainname): New declaration.
32521         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
32522         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
32523         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32524         HAVE_GETDOMAINNAME.
32525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32526         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
32527         * modules/getdomainname (Files): Remove lib/getdomainname.h.
32528         (Depends-on): Add unistd, extensions.
32529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32530         (Includes): Specify <unistd.h> instead of getdomainname.h.
32531         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
32532         HAVE_GETDOMAINNAME.
32533         * NEWS: Mention the change.
32534
32535 2008-10-18  Bruno Haible  <bruno@clisp.org>
32536
32537         * modules/dirent: New file.
32538         * m4/dirent_h.m4: New file.
32539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
32540         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
32541         * modules/fchdir (Files): Remove lib/dirent.in.h.
32542         (Depends-on): Add dirent.
32543         (Makefile.am): Move rules to modules/dirent.
32544         * doc/posix-headers/dirent.texi: Mention the new module.
32545
32546 2008-10-18  Bruno Haible  <bruno@clisp.org>
32547
32548         Avoid -Wunused-parameter warnings in public gnulib header files.
32549         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
32550         macro.
32551         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
32552
32553 2008-10-18  Bruno Haible  <bruno@clisp.org>
32554
32555         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
32556         * doc/glibc-functions/error.texi: Mention the module 'error'.
32557         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
32558         * doc/glibc-functions/getdomainname.texi: Mention the module
32559         'getdomainname'.
32560         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
32561         * doc/glibc-functions/getpagesize.texi: Mention the module
32562         'getpagesize'.
32563         * doc/glibc-functions/getusershell.texi: Mention the module
32564         'getusershell'.
32565         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32566         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
32567         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
32568         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
32569         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
32570         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
32571         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
32572         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
32573         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
32574         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
32575         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
32576         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
32577         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
32578         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
32579
32580 2008-10-17  Bruno Haible  <bruno@clisp.org>
32581
32582         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
32583         HP-UX and IRIX, use -0.0L.
32584         * tests/test-ceill.c (minus_zero): Likewise.
32585         * tests/test-floorl.c (minus_zero): Likewise.
32586         * tests/test-frexpl.c (minus_zero): Likewise.
32587         * tests/test-isnan.c (minus_zerol): Likewise.
32588         * tests/test-isnanl.h (minus_zero): Likewise.
32589         * tests/test-ldexpl.c (minus_zero): Likewise.
32590         * tests/test-roundl.c (minus_zero): Likewise.
32591         * tests/test-signbit.c (minus_zerol): Likewise.
32592         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32593         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32594         * tests/test-truncl.c (minus_zero): Likewise.
32595         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32596         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32597         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
32598         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32599
32600 2008-10-17  Bruno Haible  <bruno@clisp.org>
32601
32602         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
32603         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
32604         that it gets activated only for gcc >= 3.0.
32605         * lib/dirent.in.h: Likewise.
32606         * lib/errno.in.h: Likewise.
32607         * lib/fcntl.in.h: Likewise.
32608         * lib/float.in.h: Likewise.
32609         * lib/iconv.in.h: Likewise.
32610         * lib/inttypes.in.h: Likewise.
32611         * lib/locale.in.h: Likewise.
32612         * lib/math.in.h: Likewise.
32613         * lib/netdb.in.h: Likewise.
32614         * lib/netinet_in.in.h: Likewise.
32615         * lib/search.in.h: Likewise.
32616         * lib/signal.in.h: Likewise.
32617         * lib/spawn.in.h: Likewise.
32618         * lib/stdarg.in.h: Likewise.
32619         * lib/stdint.in.h: Likewise.
32620         * lib/stdio.in.h: Likewise.
32621         * lib/stdlib.in.h: Likewise.
32622         * lib/string.in.h: Likewise.
32623         * lib/strings.in.h: Likewise.
32624         * lib/sys_file.in.h: Likewise.
32625         * lib/sys_ioctl.in.h: Likewise.
32626         * lib/sys_select.in.h: Likewise.
32627         * lib/sys_socket.in.h: Likewise.
32628         * lib/sys_stat.in.h: Likewise.
32629         * lib/sys_time.in.h: Likewise.
32630         * lib/sysexits.in.h: Likewise.
32631         * lib/time.in.h: Likewise.
32632         * lib/unistd.in.h: Likewise.
32633         * lib/wchar.in.h: Likewise.
32634         * lib/wctype.in.h: Likewise.
32635         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32636
32637 2008-10-17  Jim Meyering  <meyering@redhat.com>
32638
32639         ignore-value: don't depend on inline module
32640         * modules/ignore-value (Depends-on): Remove 'inline'.
32641         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
32642         Suggestion from Bruno Haible.
32643
32644 2008-10-17  Bruno Haible  <bruno@clisp.org>
32645
32646         New implementation of condition variables for Win32.
32647         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
32648         (gl_linked_waitqueue_t): New type.
32649         (gl_cond_t): Use it.
32650         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
32651         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
32652         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
32653         (glthread_cond_init_func, glthread_cond_wait_func,
32654         glthread_cond_timedwait_func, glthread_cond_signal_func,
32655         glthread_cond_broadcast_func, glthread_cond_destroy_func):
32656         Reimplemented on the basis of gl_linked_waitqueue_t.
32657         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
32658         gl_waitqueue_t.
32659         (gl_rwlock_t): Update.
32660         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
32661
32662 2008-10-17  Simon Josefsson  <simon@josefsson.org>
32663
32664         * modules/recvfrom (Depends-on): Add dependency on getpeername.
32665         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32666
32667 2008-10-17  Jim Meyering  <meyering@redhat.com>
32668
32669         ignore-value: new module
32670         * modules/ignore-value: New file.
32671         * lib/ignore-value.h: New file.
32672         * MODULES.html.sh (Compiler warning management): New section,
32673         just for this module.  More to come.
32674
32675 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32676
32677         open-safer.c: avoid 'signed and unsigned in conditional...' warning
32678         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
32679         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
32680
32681 2008-10-16  Jim Meyering  <meyering@redhat.com>
32682
32683         openat-die.c: avoid 'no previous prototype' warning
32684         * lib/openat-die.c: Include "openat.h".
32685         Reported by Reuben Thomas <rrt@sc3d.org>.
32686
32687 2008-10-16  Simon Josefsson  <simon@josefsson.org>
32688
32689         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
32690         * lib/netdb.in.h: Fix typo.
32691         Reported by Bruno Haible  <bruno@clisp.org>
32692
32693         * lib/netdb.in.h: Include sys/socket.h for platforms without
32694         netdb.h, to get structures like hostent on MinGW.
32695         * modules/netdb (Depends-on): Add sys_socket.
32696
32697 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32698
32699         * modules/netdb, modules/netdb-tests: New file.
32700         * m4/netdb_h.m4: New file.
32701         * lib/netdb.in.h: Add, currently just an empty file pending
32702         definitions.
32703         * tests/test-netdb.c: New file.
32704         * doc/posix-headers/netdb.texi: Mention that we replace it if
32705         needed.
32706         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32707         netdb.
32708
32709 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32710
32711         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
32712         with code.
32713
32714 2008-10-13  Bruno Haible  <bruno@clisp.org>
32715
32716         * lib/glthread/cond.c (glthread_cond_wait_func,
32717         glthread_cond_timedwait_func): Add a comment.
32718
32719 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32720
32721         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
32722         * tests/test-select.c: Likewise,
32723
32724 2008-10-13  Bruno Haible  <bruno@clisp.org>
32725
32726         * lib/glthread/cond.c (glthread_cond_wait_func,
32727         glthread_cond_timedwait_func): Fix variable name.
32728         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32729
32730 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
32731
32732         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
32733         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
32734         struct sockaddr.sa_len.
32735         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
32736
32737 2008-10-13  Simon Josefsson  <simon@josefsson.org>
32738
32739         * build-aux/pmccabe2html: Add css and css_url parameters.
32740
32741 2008-10-12  Bruno Haible  <bruno@clisp.org>
32742
32743         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
32744         calling aclx_get.
32745         Reported by Rainer Tammer <tammer@tammer.net>.
32746
32747 2008-10-12  Bruno Haible  <bruno@clisp.org>
32748
32749         Use msvcrt aware primitives for creation/termination of Win32 threads.
32750         * lib/glthread/thread.c: Include <process.h>.
32751         (glthread_create_func): Use _beginthreadex instead of CreateThread.
32752         (wrapper_func): Update signature.
32753         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
32754
32755 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32756             Bruno Haible  <bruno@clisp.org>
32757
32758         Provide a Win32 implementation of the 'cond' module.
32759         * lib/glthread/cond.h [USE_WIN32]: New implementation.
32760         * lib/glthread/cond.c (glthread_cond_init_func,
32761         glthread_cond_wait_func, glthread_cond_timedwait_func,
32762         glthread_cond_signal_func, glthread_cond_broadcast_func,
32763         glthread_cond_destroy_func) [USE_WIN32]: New functions.
32764         * modules/cond (Dependencies): Add gettimeofday.
32765
32766 2008-10-11  Bruno Haible  <bruno@clisp.org>
32767
32768         Make sleep work on older versions of mingw.
32769         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
32770         only whether it exists.
32771         * doc/posix-functions/sleep.texi: Mention the problem with older
32772         versions of mingw.
32773
32774 2008-10-11  Bruno Haible  <bruno@clisp.org>
32775
32776         New module 'shutdown'.
32777         * modules/shutdown: New file.
32778         * lib/sys_socket.in.h (shutdown): New declaration.
32779         * lib/winsock.c (shutdown): New function.
32780         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32781         GNULIB_SHUTDOWN.
32782         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
32783         * doc/posix-functions/shutdown.texi: Document the new module.
32784
32785 2008-10-11  Jim Meyering  <meyering@redhat.com>
32786
32787         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
32788
32789 2008-10-11  Bruno Haible  <bruno@clisp.org>
32790
32791         New module 'fclose'.
32792         * modules/fclose: New file.
32793         * lib/stdio.in.h (fclose): New declaration.
32794         * lib/fclose.c: New file.
32795         * m4/fclose.m4: New file.
32796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
32797         REPLACE_FCLOSE.
32798         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
32799         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
32800         REPLACE_FCLOSE.
32801         * modules/close (Depends-on): fclose.
32802         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
32803
32804 2008-10-11  Bruno Haible  <bruno@clisp.org>
32805
32806         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
32807         set errno and don't call _close.
32808
32809 2008-10-10  Bruno Haible  <bruno@clisp.org>
32810
32811         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
32812         ACL, not afterwards. Fixes test failure on Cygwin.
32813
32814 2008-10-09  Ben Pfaff  <blp@gnu.org>
32815
32816         * build-aux/announce-gen: Fix gnulib version related part of usage
32817         message.  Die with a useful error message if no tarballs are
32818         found.
32819
32820 2008-10-10  Jim Meyering  <meyering@redhat.com>
32821
32822         bootstrap: use git's --depth=N option only if it's supported
32823         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
32824         recognize the --depth option.  Reported by Pádraig Brady.
32825
32826 2008-10-09  Bruno Haible  <bruno@clisp.org>
32827
32828         New module 'ioctl'.
32829         * modules/ioctl: New file.
32830         * lib/sys_socket.in.h (ioctl): Remove declaration.
32831         * lib/winsock.c: Include <sys/ioctl.h>.
32832         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
32833         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32834         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
32835         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
32836         * doc/posix-functions/ioctl.texi: Mention the new module.
32837
32838 2008-10-09  Bruno Haible  <bruno@clisp.org>
32839
32840         New module 'sys_ioctl'.
32841         * lib/sys_ioctl.in.h: New file.
32842         * m4/sys_ioctl_h.m4: New file.
32843         * modules/sys_ioctl: New file.
32844         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
32845
32846 2008-10-09  Bruno Haible  <bruno@clisp.org>
32847
32848         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
32849         * lib/winsock.c: Include <stdarg.h>.
32850         (rpl_ioctl): Change to second argument 'int' and then varargs.
32851
32852 2008-10-09  Bruno Haible  <bruno@clisp.org>
32853
32854         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
32855         when the sys_socket module is present and the system has <winsock2.h>.
32856
32857 2008-10-09  Bruno Haible  <bruno@clisp.org>
32858
32859         * doc/posix-functions/close.texi: Mention module 'close' instead of
32860         module 'sys_socket'.
32861
32862 2008-10-09  Bruno Haible  <bruno@clisp.org>
32863
32864         * doc/glibc-headers/sys_ioctl.texi: New file.
32865         * doc/gnulib.texi: Include it.
32866
32867 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32868             Bruno Haible  <bruno@clisp.org>
32869
32870         Combine the two replacements of 'close'.
32871         * lib/sys_socket.in.h (close): Define to a reminder to include
32872         <unistd.h>.
32873         (_gl_close_fd_maybe_socket): New declaration.
32874         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
32875         * lib/winsock.c (close): Remove undefinition.
32876         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
32877         needed for the gnulib module 'close'.
32878         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
32879         define to an error symbol or to a warning, if suitable.
32880         * lib/close.c: Include <sys/socket.h>.
32881         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
32882         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
32883         UNISTD_H_HAVE_WINSOCK2_H.
32884         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
32885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32886         UNISTD_H_HAVE_WINSOCK2_H.
32887         * modules/sys_socket (Files): Add m4/unistd_h.m4.
32888         (configure.ac): Set a module indicator.
32889         (Makefile.am): Substitute GNULIB_CLOSE.
32890         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
32891         * modules/poll-tests (Depends-on): Add close.
32892         * modules/select-tests (Depends-on): Likewise.
32893
32894 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32895             Bruno Haible  <bruno@clisp.org>
32896
32897         New module 'close'.
32898         * modules/close: New file.
32899         * lib/unistd.in.h (close): Move declaration out of the
32900         FCHDIR_REPLACEMENT scope.
32901         (_gl_unregister_fd): New declaration.
32902         * lib/close.c: New file.
32903         * lib/fchdir.c (rpl_close): Remove function.
32904         * m4/close.m4: New file.
32905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32906         close.
32907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
32908         REPLACE_CLOSE.
32909         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
32910         REPLACE_CLOSE.
32911         * modules/fchdir (Depends-on): Add close.
32912
32913 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32914             Bruno Haible  <bruno@clisp.org>
32915
32916         * lib/fcntl.in.h (open): Simplify conditionals.
32917         (_gl_register_fd): New declaration.
32918         * lib/fchdir.c (rpl_open): Remove function.
32919         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
32920         also.
32921         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
32922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32923         open.
32924
32925 2008-10-09  Jim Meyering  <meyering@redhat.com>
32926
32927         GNUmakefile: use the more name-space-friendly "_version"
32928         * top/GNUmakefile (_dummy): Update.
32929         (_version): Rename from "version".
32930
32931 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32932             Bruno Haible  <bruno@clisp.org>
32933
32934         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
32935         rpl_close.
32936         (_gl_register_fd): New function, extracted from rpl_open.
32937         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
32938         (rpl_open, rpl_opendir): Use _gl_register_fd.
32939
32940 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32941
32942         Fix organization of 'open' replacement.
32943         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
32944         (gl_FUNC_OPEN): Use it.
32945         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
32946
32947 2008-10-08  Bruno Haible  <bruno@clisp.org>
32948
32949         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
32950
32951 2008-10-08  Simon Josefsson  <simon@josefsson.org>
32952
32953         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
32954         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
32955         listen).
32956
32957 2008-10-08  Eric Blake  <ebb9@byu.net>
32958
32959         GNUmakefile: add 'make version' target
32960         * top/GNUmakefile (_curr-ver): Split version update rules...
32961         (version): ...into a target.
32962
32963 2008-10-07  Bruno Haible  <bruno@clisp.org>
32964
32965         Use a more portable replacement expression for -0.0L.
32966         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
32967         instead of -0.0L. Fix m4 quotation.
32968
32969         * tests/test-signbit.c: Include <float.h>.
32970         (minus_zero): New variable.
32971         (test_signbitl): Use minus_zero instead of -zero.
32972         * modules/signbit-tests (Depends-on): Add float.
32973
32974         * tests/test-ceill.c: Include <float.h>.
32975         (zero): Remove variable.
32976         (minus_zero): New variable.
32977         (main): Use minus_zero instead of -zero.
32978         * modules/ceill-tests (Depends-on): Add float.
32979
32980         * tests/test-floorl.c: Include <float.h>.
32981         (zero): Remove variable.
32982         (minus_zero): New variable.
32983         (main): Use minus_zero instead of -zero.
32984         * modules/floorl-tests (Depends-on): Add float.
32985
32986         * tests/test-roundl.c: Include <float.h>.
32987         (zero): Remove variable.
32988         (minus_zero): New variable.
32989         (main): Use minus_zero instead of -zero.
32990         * modules/roundl-tests (Depends-on): Add float.
32991
32992         * tests/test-truncl.c: Include <float.h>.
32993         (zero): Remove variable.
32994         (minus_zero): New variable.
32995         (main): Use minus_zero instead of -zero.
32996         * modules/truncl-tests (Depends-on): Add float.
32997
32998         * tests/test-frexpl.c (zero): Remove variable.
32999         (minus_zero): New variable.
33000         (main): Use minus_zero instead of -zero.
33001         * modules/frexpl-tests (Depends-on): Add float.
33002
33003         * tests/test-isnan.c (zerol): Remove variable.
33004         (minus_zerol): New variable.
33005         (test_long_double): Use minus_zerol instead of -zerol.
33006         * modules/isnan-tests (Depends-on): Add float.
33007
33008         * tests/test-isnanl.h (zero): Remove variable.
33009         (minus_zero): New variable.
33010         (main): Use minus_zero instead of -zero.
33011         * modules/isnanl-nolibm-tests (Depends-on): Add float.
33012         * modules/isnanl-tests (Depends-on): Add float.
33013
33014         * tests/test-ldexpl.c (zero): Remove variable.
33015         (minus_zero): New variable.
33016         (main): Use minus_zero instead of -zero.
33017         * modules/ldexpl-tests (Depends-on): Add float.
33018
33019         * tests/test-snprintf-posix.h (zerol): Remove variable.
33020         (minus_zerol): New variable.
33021         (test_function): Use minus_zerol instead of -zerol.
33022         * modules/snprintf-posix-tests (Depends-on): Add float.
33023         * modules/vsnprintf-posix-tests (Depends-on): Add float.
33024
33025         * tests/test-sprintf-posix.h (zerol): Remove variable.
33026         (minus_zerol): New variable.
33027         (test_function): Use minus_zerol instead of -zerol.
33028         * modules/sprintf-posix-tests (Depends-on): Add float.
33029         * modules/vsprintf-posix-tests (Depends-on): Add float.
33030
33031         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
33032         (minus_zerol): New variable.
33033         (test_function): Use minus_zerol instead of -zerol.
33034         * modules/vasnprintf-posix-tests (Depends-on): Add float.
33035
33036         * tests/test-vasprintf-posix.c (zerol): Remove variable.
33037         (minus_zerol): New variable.
33038         (test_function): Use minus_zerol instead of -zerol.
33039         * modules/vasprintf-posix-tests (Depends-on): Add float.
33040
33041 2008-10-07  Simon Josefsson  <simon@josefsson.org>
33042
33043         * MODULES.html.sh (Support for building documentation): Mention
33044         pmccabe2html.  Sort entries.
33045
33046         Add pmccabe2html module, from gnupdf.
33047         * build-aux/pmccabe.css: New file.
33048         * build-aux/pmccabe2html: New file.
33049         * m4/pmccabe2html.m4: New file.
33050         * modules/pmccabe2html: New file.
33051
33052 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
33053
33054         flock: new module
33055         * MODULES.html.sh: Add to list of modules.
33056         * lib/flock.c: flock implementation for Windows and Unix systems
33057         which have fcntl.
33058         * doc/glibc-functions/flock.texi: Update documentation.
33059         * lib/sys_file.in.h: <sys/file.h> header file.
33060         * m4/flock.m4: M4 macros.
33061         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
33062         * modules/flock: flock module.
33063         * modules/flock-tests: flock tests module.
33064         * modules/sys_file: sys/file.h module.
33065         * tests/test-flock.c: test suite for flock.
33066
33067 2008-10-06  Jim Meyering  <meyering@redhat.com>
33068
33069         bootstrap: check for LT_INIT more portably still ;-)
33070         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
33071         Spotted by Bruno Haible.
33072
33073 2008-10-06  Eric Blake  <ebb9@byu.net>
33074
33075         test-signbit: avoid tripping Irix cc bug on -0.0L
33076         * tests/test-signbit.c (minus_zerol): Delete, and replace with
33077         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
33078         entire testsuite consistent and avoids an Irix 6.2 bug.
33079
33080 2008-10-05  Bruno Haible  <bruno@clisp.org>
33081             Jim Meyering  <jim@meyering.net>
33082
33083         Add an option for ignoring EPIPE during close_stdout.
33084         * lib/closeout.h: Include <stdbool.h>.
33085         (close_stdout_set_ignore_EPIPE): New declaration.
33086         * lib/closeout.c: Include <stdbool.h>.
33087         (ignore_EPIPE): New variable.
33088         (close_stdout_set_ignore_EPIPE): New function.
33089         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
33090         * lib/close-stream.c (close_stream): Mention the possible EPIPE
33091         failure.
33092         * modules/closeout (Depends-on): Add stdbool.
33093
33094 2008-10-05  Bruno Haible  <bruno@clisp.org>
33095
33096         * modules/accept: New file.
33097         * modules/bind: New file.
33098         * modules/connect: New file.
33099         * modules/getpeername: New file.
33100         * modules/getsockname: New file.
33101         * modules/getsockopt: New file.
33102         * modules/listen: New file.
33103         * modules/recv: New file.
33104         * modules/recvfrom: New file.
33105         * modules/send: New file.
33106         * modules/sendto: New file.
33107         * modules/setsockopt: New file.
33108         * modules/socket: New file.
33109         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
33110         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33111         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
33112         the particular module is requested. Add a link warning when the
33113         particular module is not requested.
33114         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
33115         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
33116         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
33117         the particular module is requested.
33118         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
33119         gl_SYS_SOCKET_H_DEFAULTS): New macros.
33120         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33121         * modules/sys_socket (Depends-on): Add link-warning.
33122         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33123         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33124         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33125         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33126         GL_LINK_WARNING.
33127         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33128         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33129         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33130         * doc/posix-functions/getpeername.texi: Mention the new module
33131         'getpeername'.
33132         * doc/posix-functions/getsockname.texi: Mention the new module
33133         'getsockname'.
33134         * doc/posix-functions/getsockopt.texi: Mention the new module
33135         'getsockopt'.
33136         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
33137         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
33138         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
33139         * doc/posix-functions/send.texi: Mention the new module 'send'.
33140         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
33141         * doc/posix-functions/setsockopt.texi: Mention the new module
33142         'setsockopt'.
33143         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
33144         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
33145         listen, connect, accept.
33146         * modules/select-tests (Depends-on): Likewise.
33147
33148 2008-10-05  Bruno Haible  <bruno@clisp.org>
33149
33150         * lib/winsock.c (strerror): Remove unused #undef.
33151         (rpl_close): Remove unused local variable.
33152
33153         * modules/sys_socket (Depends-on); Add errno.
33154
33155 2008-10-05  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
33158         (select): Add a link warning when the 'select' module is not used.
33159         * modules/sys_select (Depends-on): Add link-warning.
33160         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
33161         Suggested by Paolo Bonzini.
33162
33163 2008-10-05  Jim Meyering  <meyering@redhat.com>
33164
33165         bootstrap: check for LT_INIT more portably
33166         * build-aux/bootstrap: Avoid using grep -E, since it's not
33167         portable enough.  Suggestion from Bruno Haible.
33168
33169 2008-10-05  Bruno Haible  <bruno@clisp.org>
33170
33171         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
33172         as being fixed by gnulib.
33173
33174 2008-10-05  Bruno Haible  <bruno@clisp.org>
33175
33176         * modules/select-tests: New file, mostly copied from
33177         modules/sys_select-tests.
33178         * tests/test-select.c: New file, mostly copied from
33179         tests/test-sys_select.c.
33180         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
33181         * modules/sys_select-tests (Depends-on): Remove all dependencies.
33182         (Makefile.am): Remove test_sys_select_LDADD.
33183
33184         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
33185         to an undefined symbol, for an error message.
33186         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
33187         (gl_SYS_SELECT_H_DEFAULTS): New macro.
33188         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
33189         winsock-select.c here.
33190         * modules/sys_select (Files): Remove lib/winsock-select.c.
33191         (Depends-on): Remove alloca.
33192         (Makefile.am): Substitute GNULIB_SELECT.
33193         * modules/select: New file.
33194         * doc/posix-functions/select.texi: Update.
33195
33196 2008-10-05  Bruno Haible  <bruno@clisp.org>
33197
33198         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
33199         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
33200         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
33201         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
33202         getdtablesize.
33203         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33204         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33205
33206 2008-10-05  Bruno Haible  <bruno@clisp.org>
33207
33208         * modules/getdtablesize-tests: New file.
33209         * tests/test-getdtablesize.c: New file.
33210
33211         New module 'getdtablesize'.
33212         * lib/unistd.in.h (getdtablesize): New declaration.
33213         * lib/getdtablesize.c: New file.
33214         * m4/getdtablesize.m4: New file.
33215         * modules/getdtablesize: New file.
33216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33217         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
33218         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
33219         HAVE_GETDTABLESIZE.
33220         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
33221
33222 2008-10-05  Bruno Haible  <bruno@clisp.org>
33223
33224         * modules/sched (Makefile.am): Fix typo.
33225         Reported by Simon Josefsson.
33226
33227 2008-10-05  Jim Meyering  <meyering@redhat.com>
33228
33229         bootstrap: check for LT_INIT, too
33230         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
33231         are deprecated.  Suggestion from Ralf Wildenhues.
33232
33233 2008-10-05  Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
33236         overriding them by ours.
33237         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
33238
33239 2008-10-05  Jim Meyering  <meyering@redhat.com>
33240
33241         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
33242         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
33243         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
33244
33245 2008-10-04  Bruno Haible  <bruno@clisp.org>
33246
33247         * modules/dup2 (License): Change to LGPLv2+.
33248         * modules/sleep (License): Likewise.
33249         * modules/perror (License): Likewise.
33250         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
33251         Blake.
33252         * modules/signal (License): Likewise.
33253         * modules/sigprocmask (License): Likewise.
33254         * modules/raise (License): Change to LGPLv2+, with approval by Jim
33255         Meyering.
33256
33257 2008-10-04  Bruno Haible  <bruno@clisp.org>
33258
33259         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
33260         Reported by Rainer Tammer <tammer@tammer.net>.
33261
33262 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
33263             Bruno Haible  <bruno@clisp.org>
33264
33265         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
33266         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
33267         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
33268
33269 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
33270
33271         filevercmp: new module
33272         * lib/filevercmp.h: New function filevercmp comparing version strings.
33273         * lib/filevercmp.c: Implementation of filevercmp function.
33274         * modules/filevercmp: Module metadata.
33275         * tests/test-filevercmp.c: Unit test for new module.
33276         * modules/filevercmp-tests: Unit test metadata.
33277         * MODULES.html.sh: Add filevercmp module.
33278
33279 2008-10-03  Bruno Haible  <bruno@clisp.org>
33280
33281         * lib/c-ctype.h: Add comment.
33282         Reported by Jim Meyering.
33283
33284 2008-10-02  Bruno Haible  <bruno@clisp.org>
33285
33286         * modules/posix_spawn-internal (Depends-on): Add 'open'.
33287
33288 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33289
33290         * build-aux/bootstrap: Allow renaming bootstrap, and change the
33291         name of bootstrap.conf accordingly.
33292
33293 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33294
33295         * build-aux/bootstrap: Install git-merge-changelog configuration
33296         items into .gitconfig if needed.
33297
33298 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33299
33300         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
33301         git repository, and initialize/update it accordingly.
33302
33303 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
33304
33305         * modules/fsync-tests: New file.
33306         * tests/test-fsync.c: New file.
33307
33308         New module 'fsync'.
33309         * lib/fsync.c: New file.
33310         * m4/fsync.m4: New file.
33311         * modules/fsync: New file.
33312         * lib/unistd.in.h (fsync): New declaration.
33313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
33314         GNULIB_FSYNC and HAVE_FSYNC.
33315         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
33316         * MODULES.html.sh (posix_functions): Add fsync.
33317         * doc/posix-functions/fsync.texi: Mention the new module.
33318
33319 2008-10-02  Jim Meyering  <meyering@redhat.com>
33320
33321         fts.c: sync with similar code from coreutils' remove.c
33322         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
33323         Guard also with "#if defined __linux__", since for now at least,
33324         this code is Linux-kernel-specific.
33325
33326 2008-10-02  Jim Meyering  <meyering@redhat.com>
33327
33328         fts: bug fixes
33329         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
33330         Include <sys/vfs.h>, not <sys/statfs.h>.
33331
33332         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33333         Include <sys/vfs.h>, not <sys/statfs.h>.
33334
33335 2008-10-01  Bruno Haible  <bruno@clisp.org>
33336
33337         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33338         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33339         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33340         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33341         * doc/posix-functions/posix_spawnp.texi: Likewise.
33342         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33343         whether posix_spawn actually works.
33344         * m4/pipe.m4 (gl_PIPE): Likewise.
33345         * modules/execute (Files): Add m4/posix_spawn.m4.
33346         * modules/pipe (Files): Add m4/posix_spawn.m4.
33347         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33348
33349 2008-10-01  Jim Meyering  <meyering@redhat.com>
33350
33351         remove trailing spaces
33352         * NEWS: Likewise.
33353         * lib/poll.c (poll): Likewise.
33354         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33355         * lib/winsock.c (rpl_close): Likewise.
33356         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33357         * modules/yield: Likewise.
33358         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33359         * tests/test-sys_select.c (connect_to_socket): Likewise.
33360
33361         fts.c: adjust a new interface to be more generally useful
33362         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
33363         (fts_build): Adjust caller.
33364
33365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33366
33367         * modules/cond-tests: New file.
33368         * tests/test-cond.c: New file.
33369
33370 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33371             Bruno Haible  <bruno@clisp.org>
33372
33373         * modules/cond (Dependencies): Add errno, time.
33374         * lib/glthread/cond.h: Include <time.h>.
33375         (gl_cond_define, gl_cond_define_initialized): Use the same definition
33376         across platforms.
33377
33378 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33379             Bruno Haible  <bruno@clisp.org>
33380
33381         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
33382
33383 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33384             Bruno Haible  <bruno@clisp.org>
33385
33386         * modules/tls-tests (Depends-on): Add thread, yield.
33387         (configure.ac): Remove all checks.
33388         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
33389         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33390         gl_thread_self): Remove definitions. Include glthread/thread.h and
33391         glthread/yield.h instead.
33392         (test_tls): Pass an additional NULL argument to gl_thread_join.
33393
33394 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33395             Bruno Haible  <bruno@clisp.org>
33396
33397         * modules/lock-tests (Depends-on): Add thread, yield.
33398         (configure.ac): Remove all checks.
33399         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
33400         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33401         gl_thread_self): Remove definitions. Include glthread/thread.h and
33402         glthread/yield.h instead.
33403         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
33404         additional NULL argument to gl_thread_join.
33405
33406 2008-09-30  Bruno Haible  <bruno@clisp.org>
33407
33408         Fix the Win32 implementation of the 'thread' module.
33409         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
33410         pointer type.
33411         (gl_thread_self): Invoke gl_thread_self_func.
33412         (gl_thread_self_func): New declaration.
33413         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
33414         (do_init_self_key, init_self_key): New functions.
33415         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
33416         Remove some fields.
33417         (running_threads, running_lock): Remove variables.
33418         (get_current_thread_handle): New function.
33419         (gl_thread_self_func, wrapper_func, glthread_create_func,
33420         glthread_join_func, gl_thread_exit_func): Largely rewritten and
33421         simplified.
33422
33423 2008-09-30  Bruno Haible  <bruno@clisp.org>
33424
33425         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
33426         files.
33427
33428 2008-09-30  Jim Meyering  <meyering@redhat.com>
33429
33430         fts.m4: correct the test for statfs.f_type
33431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
33432         when checking for statfs.f_type.
33433
33434 2008-09-15  Simon Josefsson  <simon@josefsson.org>
33435
33436         tests: avoid some compiler warnings
33437         * tests/test-memchr.c (main): Pass NULL indirectly.
33438         * tests/test-getdate.c (main): Remove unused variable 'ret'.
33439
33440 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
33441
33442         getdate.y: disallow countable dayshifts like "4 yesterday ago"
33443         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
33444         exactly specified dayshifts.
33445         (dayshift): New rule.
33446         (rel): Add dayshift.
33447         (relative_time_table) [tomorrow, yesterday, today, now]:
33448         Use tDAY_SHIFT in place of tDAY_UNIT.
33449         * tests/test-getdate.c: Add tests for now-disallowed countable
33450         dayshifts, e.g., "4 yesterday ago".
33451
33452 2008-09-29  Bruno Haible  <bruno@clisp.org>
33453
33454         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
33455         * tests/test-posix_spawn1.in.sh: Renamed from
33456         tests/test-posix_spawn.in.sh.
33457         * tests/test-posix_spawn2.c: New file.
33458         * tests/test-posix_spawn2.in.sh: New file.
33459         * modules/posix_spawnp-tests (Files): Update.
33460         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
33461
33462 2008-09-29  Bruno Haible  <bruno@clisp.org>
33463
33464         Propagate effects of putenv/setenv/unsetenv to child processes.
33465         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
33466         * lib/pipe.c (create_pipe): Likewise.
33467
33468 2008-09-29  Bruno Haible  <bruno@clisp.org>
33469
33470         Enable use of shell scripts as executables in mingw.
33471         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33472         run the program as a shell script.
33473         * lib/pipe.c (create_pipe): Likewise.
33474         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33475         resulting array.
33476
33477 2008-09-29  Eric Blake  <ebb9@byu.net>
33478
33479         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33480
33481 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33482
33483         * doc/posix-functions/accept.texi: Update mingw problems.
33484         * doc/posix-functions/bind.texi: Update mingw problems.
33485         * doc/posix-functions/close.texi: Update mingw problems.
33486         * doc/posix-functions/connect.texi: Update mingw problems.
33487         * doc/posix-functions/getpeername.texi: Update mingw problems.
33488         * doc/posix-functions/getsockname.texi: Update mingw problems.
33489         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33490         * doc/posix-functions/ioctl.texi: Update mingw problems.
33491         * doc/posix-functions/listen.texi: Update mingw problems.
33492         * doc/posix-functions/recv.texi: Update mingw problems.
33493         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33494         * doc/posix-functions/select.texi: Update mingw problems.
33495         * doc/posix-functions/send.texi: Update mingw problems.
33496         * doc/posix-functions/sendto.texi: Update mingw problems.
33497         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33498         * doc/posix-functions/socket.texi: Update mingw problems.
33499
33500 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33501             Bruno Haible  <bruno@clisp.org>
33502
33503         * lib/sys_select.in.h: Include sys/time.h.
33504         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33505         * modules/sys_select: Depend on sys_time.
33506         * tests/test-sys_select.c: Test that sys/select.h defines struct
33507         timeval fully.
33508
33509 2008-09-29  Bruno Haible  <bruno@clisp.org>
33510
33511         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
33512         * lib/sys_select.in.h: Likewise.
33513
33514 2008-09-29  Bruno Haible  <bruno@clisp.org>
33515
33516         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
33517
33518 2008-09-29  Bruno Haible  <bruno@clisp.org>
33519
33520         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
33521         Set LIBSOCKET instead of augmenting LIBS.
33522         * modules/sockets (Link): New section.
33523         * modules/sockets-tests (test_sockets_LDADD): New variable.
33524         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
33525         * modules/poll-tests (test_poll_LDADD): New variable.
33526         * NEWS: Document the change.
33527
33528 2008-09-29  Bruno Haible  <bruno@clisp.org>
33529
33530         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
33531         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
33532         ARPA_INET_H directly.
33533         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33534
33535 2008-09-28  Bruno Haible  <bruno@clisp.org>
33536
33537         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
33538         from gl_HEADER_SYS_SOCKET.
33539         (gl_HEADER_SYS_SOCKET): Invoke it.
33540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33541
33542 2008-09-28  Bruno Haible  <bruno@clisp.org>
33543
33544         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
33545         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
33546         Needed on OSF/1 4.0.
33547
33548 2008-09-28  Bruno Haible  <bruno@clisp.org>
33549
33550         Override open more carefully.
33551         * lib/open.c (orig_open): New function.
33552         (rpl_open): Use orig_open instead of open.
33553         * lib/fcntl.in.h: Add special invocation convention.
33554         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
33555         (gl_FUNC_OPEN): Invoke it.
33556
33557         Override freopen more carefully.
33558         * lib/freopen.c (orig_freopen): New function.
33559         (rpl_freopen): Use orig_freopen instead of freopen.
33560         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
33561         (gl_FUNC_FREOPEN): Invoke it.
33562
33563         Override fopen more carefully.
33564         * lib/fopen.c (orig_fopen): New function.
33565         (rpl_fopen): Use orig_fopen instead of fopen.
33566         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
33567         (gl_FUNC_FOPEN): Invoke it.
33568         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
33569
33570 2008-09-28  Bruno Haible  <bruno@clisp.org>
33571
33572         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
33573         SIGPIPE.
33574
33575 2008-09-28  Bruno Haible  <bruno@clisp.org>
33576
33577         * tests/test-sigaction.c (handler, main): Disable the check whether
33578         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
33579         glibc systems with LinuxThreads.
33580
33581 2008-09-28  Bruno Haible  <bruno@clisp.org>
33582
33583         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
33584
33585         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
33586         with AIX xlc.
33587         * lib/fcntl.in.h (open): Likewise.
33588         Reported by Rainer Tammer <tammer@tammer.net>.
33589
33590 2008-09-28  Bruno Haible  <bruno@clisp.org>
33591
33592         * modules/posix_spawnp-tests: New file.
33593         * tests/test-posix_spawn.c: New file.
33594         * tests/test-posix_spawn.in.sh: New file.
33595
33596         New module 'posix_spawnp'.
33597         * modules/posix_spawnp: New file.
33598         * lib/spawnp.c: New file, from GNU libc with modifications.
33599         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
33600
33601         New module 'posix_spawn'.
33602         * modules/posix_spawn: New file.
33603         * lib/spawn.c: New file, from GNU libc with modifications.
33604         * doc/posix-functions/posix_spawn.texi: Mention the new module.
33605
33606         New module 'posix_spawnattr_destroy'.
33607         * modules/posix_spawnattr_destroy: New file.
33608         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
33609         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
33610         module.
33611
33612         New module 'posix_spawnattr_setsigmask'.
33613         * modules/posix_spawnattr_setsigmask: New file.
33614         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
33615         modifications.
33616         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
33617         new module.
33618
33619         New module 'posix_spawnattr_getsigmask'.
33620         * modules/posix_spawnattr_getsigmask: New file.
33621         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
33622         modifications.
33623         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
33624         new module.
33625
33626         New module 'posix_spawnattr_setsigdefault'.
33627         * modules/posix_spawnattr_setsigdefault: New file.
33628         * lib/spawnattr_setdefault.c: New file, from GNU libc with
33629         modifications.
33630         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
33631         new module.
33632
33633         New module 'posix_spawnattr_getsigdefault'.
33634         * modules/posix_spawnattr_getsigdefault: New file.
33635         * lib/spawnattr_getdefault.c: New file, from GNU libc with
33636         modifications.
33637         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
33638         new module.
33639
33640         New module 'posix_spawnattr_setschedpolicy'.
33641         * modules/posix_spawnattr_setschedpolicy: New file.
33642         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
33643         modifications.
33644         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
33645         new module.
33646
33647         New module 'posix_spawnattr_getschedpolicy'.
33648         * modules/posix_spawnattr_getschedpolicy: New file.
33649         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
33650         modifications.
33651         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
33652         new module.
33653
33654         New module 'posix_spawnattr_setschedparam'.
33655         * modules/posix_spawnattr_setschedparam: New file.
33656         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
33657         modifications.
33658         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
33659         new module.
33660
33661         New module 'posix_spawnattr_getschedparam'.
33662         * modules/posix_spawnattr_getschedparam: New file.
33663         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
33664         modifications.
33665         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
33666         new module.
33667
33668         New module 'posix_spawnattr_setpgroup'.
33669         * modules/posix_spawnattr_setpgroup: New file.
33670         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
33671         modifications.
33672         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
33673         module.
33674
33675         New module 'posix_spawnattr_getpgroup'.
33676         * modules/posix_spawnattr_getpgroup: New file.
33677         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
33678         modifications.
33679         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
33680         module.
33681
33682         New module 'posix_spawnattr_setflags'.
33683         * modules/posix_spawnattr_setflags: New file.
33684         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
33685         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
33686         module.
33687
33688         New module 'posix_spawnattr_getflags'.
33689         * modules/posix_spawnattr_getflags: New file.
33690         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
33691         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
33692         module.
33693
33694         New module 'posix_spawnattr_init'.
33695         * modules/posix_spawnattr_init: New file.
33696         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
33697         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
33698         module.
33699
33700         New module 'posix_spawn_file_actions_destroy'.
33701         * modules/posix_spawn_file_actions_destroy: New file.
33702         * lib/spawn_faction_destroy.c: New file, from GNU libc with
33703         modifications.
33704         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
33705         the new module.
33706
33707         New module 'posix_spawn_file_actions_addopen'.
33708         * modules/posix_spawn_file_actions_addopen: New file.
33709         * lib/spawn_faction_addopen.c: New file, from GNU libc with
33710         modifications.
33711         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33712         the new module.
33713
33714         New module 'posix_spawn_file_actions_adddup2'.
33715         * modules/posix_spawn_file_actions_adddup2: New file.
33716         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
33717         modifications.
33718         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33719         the new module.
33720
33721         New module 'posix_spawn_file_actions_addclose'.
33722         * modules/posix_spawn_file_actions_addclose: New file.
33723         * lib/spawn_faction_addclose.c: New file, from GNU libc with
33724         modifications.
33725         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
33726         the new module.
33727
33728         New module 'posix_spawn_file_actions_init'.
33729         * modules/posix_spawn_file_actions_init: New file.
33730         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
33731         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
33732         new module.
33733
33734         New module 'posix_spawn-internal'.
33735         * modules/posix_spawn-internal: New file.
33736         * lib/spawn_int.h: New file, from GNU libc with modifications.
33737         * lib/spawni.c: New file, from GNU libc with modifications.
33738         * m4/posix_spawn.m4: New file.
33739
33740         New module 'spawn'.
33741         * modules/spawn: New file.
33742         * lib/spawn.in.h: New file, from GNU libc with modifications.
33743         * m4/spawn_h.m4: New file.
33744         * doc/posix-headers/spawn.texi: Mention the new module.
33745
33746 2008-09-28  Bruno Haible  <bruno@clisp.org>
33747
33748         * modules/sched-tests: New file.
33749         * tests/test-sched.c: New file.
33750
33751         New module 'sched'.
33752         * modules/sched: New file.
33753         * lib/sched.in.h: New file.
33754         * m4/sched_h.m4: New file.
33755         * doc/posix-headers/sched.texi: Mention the new module.
33756
33757 2008-09-27  Eric Blake  <ebb9@byu.net>
33758
33759         Fix previous patch, and tweak references to $0.
33760         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
33761         (func_version, func_gnulib_dir): Don't call this program
33762         gnulib-tool.
33763         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
33764         with using $0 in function.
33765         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
33766         (func_fatal_error): Reuse the name the user invoked us with.
33767
33768 2008-09-27  Bruno Haible  <bruno@clisp.org>
33769
33770         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
33771         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
33772         (gl_ICONV_H): Not here.
33773         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33774         instead of assigning ICONV_H directly.
33775
33776         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
33777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
33778         WCHAR_H directly.
33779
33780 2008-09-27  Bruno Haible  <bruno@clisp.org>
33781
33782         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
33783         * modules/arpa_inet (Depends-on): Add link-warning.
33784         (Makefile.am): Insert the definition of GL_LINK-WARNING.
33785         * modules/unistd (Makefile.am): Likewise.
33786
33787 2008-09-26  Bruno Haible  <bruno@clisp.org>
33788
33789         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
33790         variables.
33791         (func_version): Essentially copied from gnulib-tool.
33792         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
33793         func_readlink): Copied from gnulib-tool.
33794
33795 2008-09-26  Bruno Haible  <bruno@clisp.org>
33796
33797         * gnulib-tool (func_version): Change directory to $gnulib_dir before
33798         invoking git-version-gen.
33799
33800 2008-09-26  Bruno Haible  <bruno@clisp.org>
33801
33802         * posix-modules: Update to directory names changed on 2008-01-19.
33803         Remove commas in output before splitting into words. No more need to
33804         avoid 'ftruncate' since 2007-02-19.
33805
33806 2008-09-26  Bruno Haible  <bruno@clisp.org>
33807
33808         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
33809
33810 2008-09-26  Bruno Haible  <bruno@clisp.org>
33811
33812         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
33813         * modules/fwriteerror (Depends-on): Add errno.
33814
33815 2008-09-26  Bruno Haible  <bruno@clisp.org>
33816
33817         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
33818         * tests/test-vc-list-files-cvs.sh: Likewise.
33819
33820 2008-09-26  Bruno Haible  <bruno@clisp.org>
33821
33822         * doc/posix-headers/sys_resource.texi: Reorder items.
33823
33824 2008-09-26  Jim Meyering  <meyering@redhat.com>
33825
33826         fts: tweak inode comparison function
33827         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
33828         inode numbers, as documented.
33829
33830         fts: sort dirent entries on inode number before traversing
33831         This avoids a quadratic, seek-related performance penalty when
33832         operating on a directory containing many entries (measurable at 10k;
33833         3.5 hours at 2 million entries with a cold cache) on certain types
33834         of file systems, including ext3 and ext4, but not tmpfs.
33835         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
33836         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
33837         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
33838         (fs_handles_readdir_ordered_dirents_efficiently): New function.
33839         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
33840         (fts_build): Set the stat.st_ino member from D_INO.
33841         If it is likely to be useful, sort dirent entries on inode number.
33842
33843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
33844         and the struct statfs.f_type member.
33845         * modules/fts (Depends-on): Add d-ino.
33846
33847 2008-09-26  Bruno Haible  <bruno@clisp.org>
33848
33849         * modules/sigpipe-die (Depends-on): Add sigpipe.
33850
33851         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
33852         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
33853         and GNULIB_STDIO_H_SIGPIPE are set.
33854         * lib/stdio-write.c: New file.
33855         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
33856         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33857         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33858         REPLACE_STDIO_WRITE_FUNCS.
33859         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
33860         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33861         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33862         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33863         * modules/stdio (Files): Add lib/stdio-write.c.
33864         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
33865         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33866         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33867         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33868         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
33869         REPLACE_FPRINTF_POSIX.
33870         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
33871         REPLACE_PRINTF_POSIX.
33872         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
33873         REPLACE_VFPRINTF_POSIX.
33874         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
33875         REPLACE_VPRINTF_POSIX.
33876         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
33877         SIGPIPE issue.
33878         * doc/posix-functions/fputc.texi: Likewise.
33879         * doc/posix-functions/fputs.texi: Likewise.
33880         * doc/posix-functions/fwrite.texi: Likewise.
33881         * doc/posix-functions/printf.texi: Likewise.
33882         * doc/posix-functions/putc.texi: Likewise.
33883         * doc/posix-functions/putchar.texi: Likewise.
33884         * doc/posix-functions/puts.texi: Likewise.
33885         * doc/posix-functions/vfprintf.texi: Likewise.
33886         * doc/posix-functions/vprintf.texi: Likewise.
33887
33888         * modules/safe-write (Depends-on): Add write.
33889
33890         * modules/sigpipe-tests: New file.
33891         * tests/test-sigpipe.c: New file.
33892         * tests/test-sigpipe.sh: New file.
33893
33894         * modules/write: New file.
33895         * lib/unistd.in.h: Include <sys/types.h>.
33896         (write): New declaration.
33897         * lib/write.c: New file.
33898         * m4/write.m4: New file.
33899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33900         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
33901         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
33902         GNULIB_WRITE, REPLACE_WRITE.
33903         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
33904         and the SIGPIPE issue.
33905
33906         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
33907         (raise): New declaration.
33908         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
33909         (ext_signal): New function.
33910         (rpl_raise): New function.
33911         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33912         GNULIB_SIGNAL_H_SIGPIPE.
33913         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
33914         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
33915
33916         * modules/sigpipe: New file.
33917         * m4/sigpipe.m4: New file.
33918
33919 2008-09-25  Derek Price  <derek@ximbiot.com>
33920             Bruno Haible  <bruno@clisp.org>
33921
33922         * gnulib-tool (func_import): Report all license incompatibilities, not
33923         just the first one.
33924
33925 2008-09-25  Bruno Haible  <bruno@clisp.org>
33926
33927         * gnulib-tool (func_import): When computing the edits, consider not
33928         only the Makefile.ams that exist but also those that will be generated.
33929
33930 2008-09-25  Simon Josefsson  <simon@josefsson.org>
33931
33932         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
33933         fixes gnulib-tool --test warning about duplicate dependency.
33934
33935 2008-09-25  Bruno Haible  <bruno@clisp.org>
33936
33937         * gnulib-tool: Don't ask the user to perform edits in the generated
33938         Makefile.ams.
33939         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
33940         apply to the Makefile.am being generated.
33941         (func_emit_tests_Makefile_am): Execute edits that apply to the
33942         Makefile.am being generated.
33943         (func_import): Setup list of Makefile.am edits before emitting the
33944         Makefile.ams, not at the end.
33945         (func_create_testdir): Update.
33946         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33947
33948 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33949
33950         * gnulib-tool (func_import): Store the --tests-base option in the
33951         comment in gnulib-cache.m4.
33952
33953 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
33954
33955         * NEWS: Document increased portability that sys_select now provides.
33956
33957         * lib/sys_select.in.h: Install select wrapper.
33958         * lib/sys_socket.in.h: Use more descriptive name when there is no
33959         select wrapper.
33960         * lib/winsock-select.c: New.
33961         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
33962         Require gl_HEADER_SYS_SOCKET.
33963         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
33964         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
33965         * tests/test-sys_select.c: Add functional tests.
33966
33967 2008-09-24  Eric Blake  <ebb9@byu.net>
33968
33969         open, fopen: close fd leak in last patch
33970         * lib/open.c (rpl_open): Close fd before returning error.
33971         * lib/fopen.c (rpl_fopen): Close fd before returning error.
33972         * doc/posix-functions/open.texi (open): Document that Irix also
33973         has the bug.
33974         * doc/posix-functions/fopen.texi (fopen): Likewise.
33975         Reported by Paolo Bonzini.
33976
33977 2008-09-24  Bruno Haible  <bruno@clisp.org>
33978
33979         Ensure that a filename ending in a slash cannot be used to access a
33980         non-directory.
33981         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
33982         to check whether it's really a directory.
33983         * lib/fopen.c: Include fcntl.h, unistd.h.
33984         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
33985         and fdopen().
33986         * modules/fopen (Depends-on): Add unistd.
33987         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
33988         * tests/test-fopen.c (main): Likewise.
33989         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
33990         * doc/posix-functions/fopen.texi: Likewise.
33991         Reported by Eric Blake.
33992
33993 2008-09-23  Eric Blake  <ebb9@byu.net>
33994
33995         c-stack: avoid compiler optimizations when provoking overflow
33996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
33997         recursion harder to optimize, to ensure a stack overflow occurs.
33998         * tests/test-c-stack.c (recurse): Likewise.
33999         Borrowed from libsigsegv.
34000
34001         c-stack: work around Irix sigaltstack bug
34002         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
34003         whether sigaltstack uses wrong end of stack_t (copied in part from
34004         libsigsegv).
34005         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
34006         Irix bug, without requiring an over-allocation.
34007         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
34008         bug.
34009
34010         fopen: document mingw bug on directories
34011         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
34012         not allowing a stream visiting a directory, even though reading
34013         from such a stream is not portable.
34014
34015 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34016
34017         * lib/poll.c: Rewrite.
34018         * modules/poll: Depend on alloca.
34019
34020 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34021
34022         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
34023         instead define prototypes for a full set of wrappers.  Ensure
34024         that Cygwin does not use the compatibility code, which is only
34025         for MinGW.
34026         * lib/winsock.c: New.
34027         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
34028         * modules/sys_socket: Add lib/winsock.c.
34029
34030         * modules/poll-tests: Add errno and perror.
34031         * tests/test-poll.c: Use ioctl, not ioctlsocket.
34032
34033 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34034
34035         * tests/test-poll.c: Downgrade minimum needed Winsock version.
34036
34037 2008-09-23  Bruno Haible  <bruno@clisp.org>
34038
34039         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
34040         * doc/glibc-functions/*: Likewise.
34041
34042 2008-09-23  Simon Josefsson  <simon@josefsson.org>
34043
34044         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
34045         success.
34046
34047 2008-09-22  Eric Blake  <ebb9@byu.net>
34048             Bruno Haible  <bruno@clisp.org>
34049
34050         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
34051         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
34052         supply %A but mishandle pseudo-NaN.
34053         Reported by Simon Josefsson.
34054
34055 2008-09-21  Bruno Haible  <bruno@clisp.org>
34056
34057         * tests/test-lock.c (main): Tweak skip message.
34058         * tests/test-tls.c (main): Likewise.
34059
34060 2008-09-21  Bruno Haible  <bruno@clisp.org>
34061
34062         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
34063         whether 'struct sigaction' has sa_sigaction here...
34064         (gl_PREREQ_SIG_HANDLER_H): ... not here.
34065         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
34066
34067 2008-09-21  Bruno Haible  <bruno@clisp.org>
34068
34069         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
34070         section.
34071         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
34072         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
34073         the new section.
34074         (Support for obsolete systems lacking POSIX:2001): New section.
34075         (String handling <string.h>): Move strdup to the new section.
34076         Suggested by Simon Josefsson and Paolo Bonzini.
34077
34078 2008-09-21  Bruno Haible  <bruno@clisp.org>
34079
34080         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
34081         exponents in %e and %g results on 'long double'. Needed for mingw's
34082         improved *printf functions.
34083         * tests/test-vasprintf-posix.c (test_function): Likewise.
34084         * tests/test-snprintf-posix.h (test_function): Likewise.
34085         * tests/test-sprintf-posix.h (test_function): Likewise.
34086         Reported by Eric Blake.
34087
34088 2008-09-21  Bruno Haible  <bruno@clisp.org>
34089
34090         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
34091         * tests/test-sprintf-posix.h (test_function): Likewise.
34092
34093 2008-09-21  Bruno Haible  <bruno@clisp.org>
34094
34095         * modules/getpass (Depends-on): Add strdup-posix.
34096
34097         New module 'strdup-posix'.
34098         * modules/strdup-posix: New file.
34099         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
34100         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
34101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34102         REPLACE_STRDUP.
34103         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
34104         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
34105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34106         strdup-posix.
34107
34108         * modules/strdup (Depends-on): Remove malloc-posix.
34109
34110 2008-09-20  Bruno Haible  <bruno@clisp.org>
34111
34112         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
34113         Wildenhues.
34114
34115 2008-09-20  Bruno Haible  <bruno@clisp.org>
34116
34117         Ensure that wint_t gets defined on IRIX 5.3.
34118         * lib/wchar.in.h (wint_t): Define if not defined by the system.
34119         * lib/wctype.in.h (wint_t): Likewise.
34120         (__wctype_wint_t): Remove type.
34121         (isw*): Use wint_t instead of __wctype_wint_t.
34122         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34123         * modules/wchar (Files): Add m4/wint_t.m4.
34124         (Makefile.am): Substitute HAVE_WINT_T.
34125         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34126         * tests/test-wctype.c: Check that wint_t is defined.
34127         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34128         * doc/posix-headers/wctype.texi: Likewise.
34129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34130
34131 2008-09-18  Bruno Haible  <bruno@clisp.org>
34132
34133         * gnulib-tool (func_exit): Update comment.
34134
34135 2008-09-18  Simon Josefsson  <simon@josefsson.org>
34136
34137         * modules/getaddrinfo (Depends-on): Remove strdup, this module
34138         assumes strdup exists and does not depend on strdup to return
34139         ENOMEM on out of memory conditions.
34140
34141 2008-09-18  Bruno Haible  <bruno@clisp.org>
34142
34143         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
34144         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
34145         digits for the exponent.
34146
34147 2008-09-18  Jim Meyering  <meyering@redhat.com>
34148             Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/vasnprintf.c (decimal_point_char): Define also if
34151         NEED_PRINTF_INFINITE_LONG_DOUBLE.
34152
34153 2008-09-16  Bruno Haible  <bruno@clisp.org>
34154         and Eric Blake  <ebb9@byu.net>
34155
34156         vasnprintf: support Irix 5.3
34157         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
34158         that mishandle long double infinity.
34159         Reported by Tom G. Christensen.
34160
34161 2008-09-16  Bruno Haible  <bruno@clisp.org>
34162
34163         * doc/glibc-functions/scandir.texi: Mention the function is missing on
34164         Solaris 9.
34165         * doc/glibc-functions/alphasort.texi: Likewise.
34166         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
34167
34168 2008-09-16  Jim Meyering  <meyering@redhat.com>
34169
34170         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
34171         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
34172         a umask modification leak out of a subshell.  Otherwise, the
34173         opensolaris /bin/sh would be accepted and thus cause unwarranted
34174         failures in the coreutils test suite.
34175
34176 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
34177
34178         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
34179         to succeed.
34180
34181 2008-09-16  Jim Meyering  <meyering@redhat.com>
34182
34183         avoid spurious test failure when library is built without ACL support
34184         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
34185         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
34186         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
34187         * tests/test-copy-acl.sh: Likewise.
34188
34189 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34190
34191         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
34192         based on character occurrence counts.
34193
34194 2008-09-15  Eric Blake  <ebb9@byu.net>
34195
34196         tests: avoid some compiler warnings
34197         * tests/test-memchr.c (main): Pass NULL indirectly.
34198         * tests/test-closein.c (main): Avoid unused variable.
34199
34200 2008-09-15  Bruno Haible  <bruno@clisp.org>
34201
34202         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
34203         are missing on OpenBSD 4.0 individually.
34204         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34205
34206 2008-09-15  Bruno Haible  <bruno@clisp.org>
34207
34208         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
34209         * doc/posix-functions/strerror.texi: Mention also Cygwin.
34210         * doc/posix-functions/perror.texi: Likewise.
34211         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
34212         is missing.
34213         Reported by Eric Blake.
34214
34215         * lib/errno.in.h: Use replacement values >= 2000.
34216         Reported by Eric Blake.
34217
34218 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34219
34220         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
34221         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
34222         limit.
34223         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
34224         compareseq was aborted.
34225
34226 2008-09-14  Bruno Haible  <bruno@clisp.org>
34227
34228         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
34229         yvec_edit_count.
34230         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
34231         (fstrcmp_bounded): Simplify result computation accordingly.
34232
34233 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34234
34235         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
34236         (fstrcmp): Define in terms of fstrcmp_bounded.
34237         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
34238         lower_bound argument.
34239         Return quickly if the result is certainly < lower_bound.
34240         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
34241
34242 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34243
34244         * lib/diffseq.h (EARLY_ABORT): New macro.
34245         (compareseq): Change return type to bool. Return true when EARLY_ABORT
34246         evaluates to true.
34247
34248 2008-09-14  Bruno Haible  <bruno@clisp.org>
34249
34250         * modules/perror-tests: New file.
34251         * tests/test-perror.sh: New file.
34252         * tests/test-perror.c: New file.
34253
34254         New module 'perror'.
34255         * lib/stdio.in.h (perror): New declaration.
34256         * lib/perror.c: New file.
34257         * m4/perror.m4: New file.
34258         * modules/perror: New file.
34259         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34260         * doc/posix-functions/perror.texi: Mention the perror module.
34261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
34262         REPLACE_PERROR.
34263         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
34264         REPLACE_PERROR.
34265
34266 2008-09-14  Bruno Haible  <bruno@clisp.org>
34267
34268         * modules/stdio (Makefile.am): Reorder to match the order in
34269         lib/stdio.in.h.
34270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34271
34272 2008-09-13  Bruno Haible  <bruno@clisp.org>
34273
34274         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
34275
34276 2008-09-13  Bruno Haible  <bruno@clisp.org>
34277
34278         Extend strerror to cover the added errno values.
34279         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
34280         (rpl_strerror): Provide error messages for the added errno values and
34281         for the WSA* values.
34282         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
34283         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
34284         strerror.
34285         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
34286         * modules/strerror (Depends-on): Add errno.
34287         * doc/posix-functions/strerror.texi: Document the change.
34288         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
34289         and EOVERFLOW.
34290
34291 2008-09-13  Bruno Haible  <bruno@clisp.org>
34292
34293         * modules/EOVERFLOW: Remove file.
34294         * m4/eoverflow.m4: Remove file.
34295         * modules/EOVERFLOW-tests: Remove file.
34296         * tests/test-EOVERFLOW.c: Remove file.
34297         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
34298         * modules/ftell (Depends-on): Likewise.
34299         * modules/getdelim (Depends-on): Likewise.
34300         * modules/getugroups (Depends-on): Likewise.
34301         * modules/poll (Depends-on): Likewise.
34302         * modules/snprintf (Depends-on): Likewise.
34303         * modules/sprintf-posix (Depends-on): Likewise.
34304         * modules/vasnprintf (Depends-on): Likewise.
34305         * modules/vasprintf (Depends-on): Likewise.
34306         * modules/vfprintf-posix (Depends-on): Likewise.
34307         * modules/vsnprintf (Depends-on): Likewise.
34308         * modules/vsprintf-posix (Depends-on): Likewise.
34309         * modules/xvasprintf (Depends-on): Likewise.
34310         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34311         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
34312         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
34313         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
34314         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34315         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
34316         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
34317         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
34318         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34319         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
34320         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
34321         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
34322         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34323         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
34324         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
34325         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
34326         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34327         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
34328         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
34329         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
34330         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34331         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
34332         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34333         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34334         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34335         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34336         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34337         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34338         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34339         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34340         * MODULES.html.sh: Remove EOVERFLOW.
34341         * NEWS: Mention the change.
34342
34343 2008-09-13  Bruno Haible  <bruno@clisp.org>
34344
34345         * modules/errno-tests: New file.
34346         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34347
34348         * lib/errno.in.h: New file.
34349         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34350         * modules/errno: New file.
34351         * doc/posix-headers/errno.texi: Update documentation.
34352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34353
34354 2008-09-13  Bruno Haible  <bruno@clisp.org>
34355
34356         * tests/test-poll.c: Use #if for native Windows, rather than testing
34357         __MSVCRT__.
34358
34359 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34360             Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/glob.c: Don't include <pwd.h> on native Windows.
34363         (WINDOWS32): New macro.
34364         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
34365
34366 2008-09-13  Bruno Haible  <bruno@clisp.org>
34367
34368         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
34369         (ETIMEDOUT): Remove macro.
34370         (glthread_cond_timedwait_multithreaded): New declaration.
34371         (glthread_cond_timedwait): Use it.
34372         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
34373         (glthread_cond_timedwait_multithreaded): New function.
34374
34375 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34376
34377         * modules/poll-tests: Do not check for io.h.
34378         * tests/test-poll.c: Check for __MSVCRT__ instead.
34379
34380 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34381
34382         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
34383         * modules/poll-tests: Add inet_pton, stdbool, sockets.
34384         * tests/test-poll.c: Use them.  Use _pipe on Windows.
34385
34386 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34387
34388         * modules/poll-tests: New.
34389         * tests/test-poll.c: New.
34390
34391 2008-09-12  Eric Blake  <ebb9@byu.net>
34392
34393         frexp: test for NetBSD failure on -0.0
34394         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
34395         not all, bugs from NetBSD 3.0 have been fixed.
34396         * doc/posix-functions/frexp.texi (frexp): Document bug.
34397         Reported by Thomas Klausner.
34398
34399         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
34400         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
34401         literal -0.0.
34402         Reported by Jonathan C. Patschke <jp@centtech.com>.
34403
34404 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34405
34406         * lib/glthread/cond.h: Use dummy implementation also if
34407         USE_WIN32_THREADS.
34408
34409 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34410
34411         * modules/fnmatch-posix (License): Change to LGPLv2+.
34412         * modules/fnmatch-gnu (License): Likewise.
34413
34414 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34415
34416         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
34417
34418 2008-09-11  Jim Meyering  <meyering@redhat.com>
34419
34420         * users.txt: Add gtk-vnc.
34421
34422 2008-09-08  Simon Josefsson  <simon@josefsson.org>
34423
34424         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
34425         rotate amounts.
34426
34427         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
34428         required for 16-bit and 8-bit rotates.
34429         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
34430         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
34431         UINT8_MAX instead of hard-coded constants.
34432         Suggested by Paul Eggert.
34433
34434 2008-09-07  Bruno Haible  <bruno@clisp.org>
34435
34436         * tests/test-striconveh.c (main): Check behaviour when converting from
34437         UTF-7.
34438
34439         Make striconveh work better with stateful encodings.
34440         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
34441         that iconv does not increment the inptr when returning -1/EINVAL.
34442
34443 2008-09-07  Bruno Haible  <bruno@clisp.org>
34444
34445         * build-aux/config.rpath: Update according to libtool-2.2.6.
34446         * build-aux/config.libpath: Likewise.
34447
34448 2008-09-06  Bruno Haible  <bruno@clisp.org>
34449
34450         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
34451         * lib/freadptr.c (freadptr): Likewise.
34452         * lib/freadseek.c (freadptrinc): Likewise.
34453         Reported by Simon Josefsson.
34454
34455 2008-09-06  Bruno Haible  <bruno@clisp.org>
34456
34457         * modules/freadptr (License): Change to LGPLv2+.
34458         * modules/freadseek (License): Likewise.
34459         Suggested by Eric Blake.
34460
34461         * modules/memchr2 (License): Change to LGPLv2+.
34462         Approved by Eric Blake.
34463
34464 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34465             Bruno Haible  <bruno@clisp.org>
34466
34467         Make gnulib-tool work with native 'sed' on AIX.
34468         * gnulib-tool (sed_noop): New variable.
34469         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34470         func_add_or_update, func_create_testdir): Use it to initialize sed
34471         script variables.
34472         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34473
34474 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34475             Bruno Haible  <bruno@clisp.org>
34476
34477         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34478         also works after #include directives.
34479
34480 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
34481
34482         getdate.y: reject an out-of-range timezone value
34483         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34484         the range [-24...+24].  When specified with only one or two digits,
34485         * tests/test-getdate.c: Tests for the fix.
34486         * doc/getdate.texi: Document this change.
34487
34488 2008-09-03  Bruno Haible  <bruno@clisp.org>
34489
34490         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34491
34492 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34493
34494         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34495         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34496         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34497         Blake <ebb9@byu.net>.
34498
34499         * tests/test-bitrotate.c: Add more test vectors.
34500
34501 2008-09-02  Eric Blake  <ebb9@byu.net>
34502
34503         vasnprintf-posix: handle large precision via %.*d
34504         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34505         when handling it ourselves.
34506         * tests/test-vasnprintf-posix.c (test_function): Add test.
34507         * tests/test-snprintf-posix.h (test_function): Likewise.
34508         * tests/test-sprintf-posix.h (test_function): Likewise.
34509         * tests/test-vasprintf-posix.c (test_function): Likewise.
34510         Reported by Alain Guibert.
34511
34512 2008-09-01  Eric Blake  <ebb9@byu.net>
34513
34514         c-stack: make configure-time check more robust
34515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
34516         successful sigaction call.
34517         Reported by Tom G. Christensen.
34518
34519 2008-09-01  Bruno Haible  <bruno@clisp.org>
34520
34521         New module 'findprog-lgpl'.
34522         * modules/findprog-lgpl: New file.
34523         * lib/findprog-lgpl.c: New file.
34524         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
34525         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
34526         to decide whether to use strdup or xstrdup, concatenated_filename or
34527         xconcatenated_filename.
34528
34529 2008-09-01  Bruno Haible  <bruno@clisp.org>
34530
34531         Split module 'concat-filename' into 'concat-filename' (LGPL) and
34532         'xconcat-filename' (GPL).
34533         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
34534         (License): Change to LGPLv2+.
34535         * modules/xconcat-filename: New file.
34536         * lib/concat-filename.h (concatenated_filename): Change specification.
34537         (xconcatenated_filename): New declaration.
34538         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
34539         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
34540         memory situations.
34541         * lib/xconcat-filename.c: New file.
34542         * NEWS: Mention the change.
34543         * lib/findprog.c: Include concat-filename.h, not filename.h.
34544         (find_in_path): Use xconcatenated_filename instead of
34545         concatenated_filename.
34546         * lib/javacomp.c: Include concat-filename.h, not filename.h.
34547         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34548         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34549         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34550         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
34551         instead of concatenated_filename.
34552         * lib/javaexec.c: Include concat-filename.h, not filename.h.
34553         (execute_java_class): Use xconcatenated_filename instead of
34554         concatenated_filename.
34555         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
34556         * modules/javacomp (Depends-on): Likewise.
34557         * modules/javaexec (Depends-on): Likewise.
34558
34559 2008-09-01  Bruno Haible  <bruno@clisp.org>
34560
34561         Split module 'filename' into 'filename' and 'concat-filename'.
34562         * modules/filename: Keep only lib/filename.h.
34563         (License): Change to LGPLv2+.
34564         * modules/concat-filename: New file, extracted from modules/filename.
34565         * lib/filename.h (concatenated_filename): Remove declaration.
34566         * lib/concat-filename.h: New file, extracted from lib/filename.h.
34567         * lib/concat-filename.c: Include concat-filename.h.
34568         * NEWS: Mention the change.
34569
34570 2008-09-01  Simon Josefsson  <simon@josefsson.org>
34571
34572         * lib/bitrotate.h (rotl8, rotr8): Add.
34573
34574         * modules/bitrotate (configure.ac): Need
34575         AC_REQUIRE([AC_C_INLINE]).
34576         (Description): Mention stdint.h.  Reported by Bruno Haible
34577         <bruno@clisp.org>.
34578
34579         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
34580         Paolo Bonzini <bonzini@gnu.org>.
34581
34582 2008-08-31  Bruno Haible  <bruno@clisp.org>
34583
34584         Assume Solaris specific bi-arch conventions on Solaris systems.
34585         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
34586         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
34587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
34588         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
34589         like acl_libdirstem.
34590         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
34591         acl_libdirstem.
34592         * NEWS: Mention the change.
34593         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
34594
34595 2008-08-31  Jim Meyering  <meyering@redhat.com>
34596
34597         * lib/strftime.h: Add comments describing the two added arguments.
34598
34599         remove duplicate #include directives
34600         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
34601         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
34602
34603 2008-08-31  Bruno Haible  <bruno@clisp.org>
34604
34605         New module 'sigpipe-die'.
34606         * modules/sigpipe-die: New file.
34607         * lib/sigpipe-die.h: New file.
34608         * lib/sigpipe-die.c: New file.
34609         * MODULES.html.sh (Signal handling): Add sigpipe-die.
34610
34611 2008-08-31  Bruno Haible  <bruno@clisp.org>
34612
34613         Don't override previously installed signal handlers.
34614         * lib/fatal-signal.c (saved_sigactions): New variable.
34615         (uninstall_handlers): Reset the signal to the saved handler, not
34616         to SIG_DFL (except when ignored).
34617         (install_handlers): Save the previous handlers.
34618
34619 2008-08-30  Bruno Haible  <bruno@clisp.org>
34620
34621         * gnulib-tool (func_reset_sigpipe): New function.
34622         (func_get_automake_snippet, func_modules_transitive_closure,
34623         func_import): Invoke it before a join command that reads from stdin,
34624         to avoid "echo: write error: Broken pipe" error messages on stderr.
34625         Reported by Sam Steingold <sds@gnu.org>.
34626
34627 2008-08-30  Bruno Haible  <bruno@clisp.org>
34628
34629         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
34630         Code copied from m4/open.m4.
34631         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
34632         access and the filename ends in a slash. Code copied from lib/open.c.
34633         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
34634         * tests/test-fopen.c (main): Check against bug with trailing slash.
34635
34636 2008-08-29  Bruno Haible  <bruno@clisp.org>
34637
34638         Avoid some "gcc -pedantic" warnings.
34639         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
34640         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
34641         * lib/dirent.in.h: Likewise.
34642         * lib/fcntl.in.h: Likewise.
34643         * lib/float.in.h: Likewise.
34644         * lib/iconv.in.h: Likewise.
34645         * lib/inttypes.in.h: Likewise.
34646         * lib/locale.in.h: Likewise.
34647         * lib/math.in.h: Likewise.
34648         * lib/netinet_in.in.h: Likewise.
34649         * lib/search.in.h: Likewise.
34650         * lib/signal.in.h: Likewise.
34651         * lib/stdarg.in.h: Likewise.
34652         * lib/stdint.in.h: Likewise.
34653         * lib/stdio.in.h: Likewise.
34654         * lib/stdlib.in.h: Likewise.
34655         * lib/string.in.h: Likewise.
34656         * lib/strings.in.h: Likewise.
34657         * lib/sys_select.in.h: Likewise.
34658         * lib/sys_socket.in.h: Likewise.
34659         * lib/sys_stat.in.h: Likewise.
34660         * lib/sys_time.in.h: Likewise.
34661         * lib/sysexits.in.h: Likewise.
34662         * lib/time.in.h: Likewise.
34663         * lib/unistd.in.h: Likewise.
34664         * lib/wchar.in.h: Likewise.
34665         * lib/wctype.in.h: Likewise.
34666         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
34667         * modules/fchdir (Makefile.am): Likewise.
34668         * modules/fcntl (Makefile.am): Likewise.
34669         * modules/float (Makefile.am): Likewise.
34670         * modules/iconv_open (Makefile.am): Likewise.
34671         * modules/inttypes (Makefile.am): Likewise.
34672         * modules/locale (Makefile.am): Likewise.
34673         * modules/math (Makefile.am): Likewise.
34674         * modules/netinet_in (Makefile.am): Likewise.
34675         * modules/search (Makefile.am): Likewise.
34676         * modules/signal (Makefile.am): Likewise.
34677         * modules/stdarg (Makefile.am): Likewise.
34678         * modules/stdint (Makefile.am): Likewise.
34679         * modules/stdio (Makefile.am): Likewise.
34680         * modules/stdlib (Makefile.am): Likewise.
34681         * modules/string (Makefile.am): Likewise.
34682         * modules/strings (Makefile.am): Likewise.
34683         * modules/sys_select (Makefile.am): Likewise.
34684         * modules/sys_socket (Makefile.am): Likewise.
34685         * modules/sys_stat (Makefile.am): Likewise.
34686         * modules/sys_time (Makefile.am): Likewise.
34687         * modules/sysexits (Makefile.am): Likewise.
34688         * modules/time (Makefile.am): Likewise.
34689         * modules/unistd (Makefile.am): Likewise.
34690         * modules/wchar (Makefile.am): Likewise.
34691         * modules/wctype (Makefile.am): Likewise.
34692         Reported by Reuben Thomas <rrt@sc3d.org>.
34693
34694 2008-08-29  Bruno Haible  <bruno@clisp.org>
34695
34696         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
34697         any more.
34698
34699 2008-08-29  Simon Josefsson  <simon@josefsson.org>
34700
34701         * MODULES.html.sh (Misc): Add bitrotate.
34702
34703         * modules/bitrotate: New file.
34704
34705         * lib/bitrotate.h: New file.
34706
34707         * modules/bitrotate-tests: New file.
34708
34709         * tests/test-bitrotate.c: New file.
34710
34711         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
34712         on the bitrotate module.
34713
34714         * lib/arctwo.c: Use new bitrotate module.
34715
34716 2008-08-29  Jim Meyering  <meyering@redhat.com>
34717
34718         bootstrap: merge changes from coreutils
34719         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
34720         of copied files.  Remove a kludge, now that this is fixed.
34721         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
34722         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
34723         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
34724
34725 2008-08-29  Bruno Haible  <bruno@clisp.org>
34726
34727         * MODULES.html.sh: Remove --cvs-urls option.
34728
34729 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
34730
34731         maint.mk: adjust to file name change
34732         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
34733
34734 2008-08-28  Jim Meyering  <meyering@redhat.com>
34735
34736         * modules/getndelim2 (License): Relicense to LGPLv2+.
34737         Approved by Richard Stallman for the version of 1995, and by
34738         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
34739
34740 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
34741
34742         * lib/getdelim.c (flockfile, funlockfile): Make all of them
34743         dummy if one is not available.  Do not touch them if
34744         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
34745         (getc_maybe_unlocked): New.
34746         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
34747
34748 2008-08-26  Eric Blake  <ebb9@byu.net>
34749
34750         doc/INSTALL: resync from autoconf
34751         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
34752         (INSTALL_PRELUDE): Delete; this is done more efficiently by
34753         moving...
34754         * install.texi [!autoconf]: ...here.  Resync from autoconf.
34755         * INSTALL: Regenerate.
34756         * INSTALL.ISO: New file.
34757         * INSTALL.UTF-8: Likewise.
34758
34759 2008-08-26  Jim Meyering  <meyering@redhat.com>
34760
34761         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
34762         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
34763         these definitions conditional, so that they may be overridden, too.
34764
34765 2008-08-26  Bruno Haible  <bruno@clisp.org>
34766
34767         Generate INSTALL file variants with prettier quotes.
34768         * doc/Makefile (INSTALL_PRELUDE): New macro.
34769         (INSTALL): Use it.
34770         (INSTALL.ISO, INSTALL.UTF-8): New rules.
34771
34772 2008-08-26  Bruno Haible  <bruno@clisp.org>
34773
34774         Run makeinfo in an English locale.
34775         * doc/Makefile (MAKEINFO): New variable.
34776
34777 2008-08-26  Bruno Haible  <bruno@clisp.org>
34778
34779         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
34780         Suggested by Eric Blake.
34781
34782 2008-08-25  Bruno Haible  <bruno@clisp.org>
34783
34784         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
34785
34786 2008-08-25  Eric Blake  <ebb9@byu.net>
34787
34788         c-stack: test that stack overflow can be caught
34789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
34790         that platform allows handling stack overflow; at least OS/2 EMX
34791         has sigaltstack, but crashes before transferring control to
34792         handler on stack overflow.
34793         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
34794         check for HAVE_STACK_OVERFLOW_HANDLING.
34795         Reported by Elbert Pol.
34796
34797 2008-08-25  Bruno Haible  <bruno@clisp.org>
34798
34799         * doc/posix-functions/strftime.texi: Fix description of strftime
34800         module.
34801
34802 2008-08-24  Bruno Haible  <bruno@clisp.org>
34803
34804         * tests/uniwidth/test-uc_width2.c: New file.
34805         * tests/uniwidth/test-uc_width2.sh: New file.
34806         * modules/uniwidth/width-tests (Files): Add the new files.
34807         (TESTS): Add uniwidth/test-uc_width2.sh.
34808         (TESTS_ENVIRONMENT): New variable.
34809         (check_PROGRAMS): Add test-uc_width2.
34810         (test_uc_width2_SOURCES): New variable.
34811
34812         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
34813         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
34814         not 0x00AB.
34815         Reported by Alexander V. Lukyanov <lav@netis.ru>.
34816
34817 2008-08-22  Eric Blake  <ebb9@byu.net>
34818
34819         test-lock, test-tls: mention why a test is skipped
34820         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
34821         skipped.
34822         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
34823
34824         count-one-bits: relax license
34825         * modules/count-one-bits (License): Relicense to LGPLv2+.
34826         Suggested by Ludovic Courtès, approved by Ben Pfaff.
34827
34828 2008-08-22  Andreas Schwab  <schwab@suse.de>
34829
34830         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34831         Remove spurious space in assignment.
34832
34833 2008-08-21  Simon Josefsson  <simon@josefsson.org>
34834
34835         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
34836         Paul Eggert <eggert@CS.UCLA.EDU>.
34837
34838 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
34839
34840         * modules/gettext: Add m4/threadlib.m4.
34841
34842 2008-08-19  Eric Blake  <ebb9@byu.net>
34843
34844         test-c-stack: fix compilation failure on FreeBSD 5.0
34845         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
34846         headers before <sys/resource.h>.
34847         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
34848         the bug.
34849         Reported by Nelson H. F. Beebe.
34850
34851         strverscmp: migrate from "strverscmp.h" to <string.h>
34852         * modules/string (Makefile.am): Add new hooks.
34853         * modules/strverscmp (Files): Remove strverscmp.h.
34854         (Depends-on): Add string.
34855         (configure.ac): Add indicator.
34856         (Include): Mention new header.
34857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
34858         defaults.
34859         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
34860         results.
34861         * lib/strverscmp.h: Delete.
34862         * lib/string.in.h (strverscmp): Provide declaration, when needed.
34863         * tests/test-strverscmp.c (includes): Adjust client.
34864         * lib/check-version.c (includes): Likewise.
34865         * NEWS: Document the change.
34866
34867         strverscmp: add unit test
34868         * modules/strverscmp-tests: New file.
34869         * tests/test-strverscmp.c: Likewise.
34870
34871 2008-08-19  Simon Josefsson  <simon@josefsson.org>
34872
34873         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
34874         regarding Windows crypto stuff, from Mono.
34875
34876 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
34877
34878         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
34879         if present, for intel RND.  Return error on failures.
34880
34881 2008-08-18  Ben Pfaff  <blp@gnu.org>
34882
34883         gitlog-to-changelog: give better diagnostic for failed pipe-open
34884         * build-aux/gitlog-to-changelog: Improve error message: suggest
34885         that the version of Git may be too old.
34886
34887 2008-08-18  Simon Josefsson  <simon@josefsson.org>
34888
34889         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
34890         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
34891
34892 2008-08-18  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
34895         pthread_in_use().
34896
34897 2008-08-18  Bruno Haible  <bruno@clisp.org>
34898
34899         * lib/glthread/threadlib.c: Include <pthread.h>.
34900
34901 2008-08-18  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
34904         glthread_recursive_lock_* macros.
34905         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
34906         Fix syntax error.
34907
34908 2008-08-18  Bruno Haible  <bruno@clisp.org>
34909
34910         * lib/glthread/thread.c: Avoid forcing a context switch right after
34911         thread creation.
34912
34913 2008-08-17  Bruno Haible  <bruno@clisp.org>
34914
34915         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
34916         * lib/glthread/thread.h: Provide Win32 specific implementation.
34917         * modules/thread (Files): Add lib/glthread/thread.c.
34918         (Depends-on): Add lock.
34919         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
34920
34921 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34922
34923         New module 'yield'.
34924         * modules/yield: New file.
34925         * lib/glthread/yield.h: New file.
34926         * m4/yield.m4: New file.
34927         * MODULES.html.sh (Multithreading): Add yield.
34928
34929 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34930
34931         New module 'thread'.
34932         * modules/thread: New file.
34933         * lib/glthread/thread.h: New file.
34934         * m4/thread.m4: New file.
34935         * MODULES.html.sh (Multithreading): Add thread.
34936
34937 2008-08-17  Bruno Haible  <bruno@clisp.org>
34938
34939         * lib/glthread/lock.h: Include <stdlib.h> always.
34940         * lib/glthread/tls.h: Likewise.
34941         * lib/glthread/cond.h: Likewise.
34942
34943 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34944
34945         New module 'cond'.
34946         * modules/cond: New file.
34947         * lib/glthread/cond.h: New file.
34948         * lib/glthread/cond.c: New file.
34949         * m4/cond.m4: New file.
34950         * MODULES.html.sh (Multithreading): Add cond.
34951
34952 2008-08-16  Eric Blake  <ebb9@byu.net>
34953
34954         c-stack: fix regression on Irix 5.3 from 2008-06-21
34955         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
34956         sa_sigaction...
34957         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
34958         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
34959         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
34960         * modules/signal (Makefile.am): Use the value.
34961         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
34962         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
34963         * doc/posix-headers/signal.texi (signal.h): Document this
34964         portability issue.
34965         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
34966         Reported by Tom G. Christensen.
34967
34968 2008-08-17  Bruno Haible  <bruno@clisp.org>
34969
34970         New module 'threadlib'.
34971         * modules/threadlib: New file.
34972         * lib/glthread/threadlib.c: New file, extracted from
34973         lib/glthread/lock.c.
34974         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
34975         functions.
34976         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
34977         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
34978         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
34979         macros.
34980         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
34981         (gl_DISABLE_THREADS): Remove macro.
34982         * modules/lock (Files): Remove build-aux/config.rpath.
34983         (Depends-on): Remove havelib. Add threadlib.
34984         (configure.ac-early): Remove section.
34985         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
34986         * modules/tls (Depends-on): Remove lock. Add threadlib.
34987         (Link): New section, copied from threadlib.
34988         * MODULES.html.sh (Multithreading): Add threadlib.
34989
34990 2008-08-14  Bruno Haible  <bruno@clisp.org>
34991
34992         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
34993         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
34994         glthread_rwlock_unlock, glthread_rwlock_destroy,
34995         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
34996         glthread_recursive_lock_destroy): Define as macros always.
34997         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
34998         glthread_lock_lock.
34999         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
35000         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
35001         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
35002         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
35003         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
35004         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
35005         (glthread_recursive_lock_lock_func): Renamed from
35006         glthread_recursive_lock_lock.
35007         (glthread_recursive_lock_unlock_func): Renamed from
35008         glthread_recursive_lock_unlock.
35009         (glthread_recursive_lock_destroy_func): Renamed from
35010         glthread_recursive_lock_destroy.
35011
35012 2008-08-14  Bruno Haible  <bruno@clisp.org>
35013
35014         * lib/glthread/lock.h: Renamed from lib/lock.h.
35015         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
35016         * lib/glthread/tls.h: Renamed from lib/tls.h.
35017         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
35018         * lib/fstrcmp.c: Update includes.
35019         * lib/strsignal.c: Update includes.
35020         * modules/lock (Files, Makefile.am): Update.
35021         (Include): Change to "glthread/lock.h".
35022         * modules/tls (Files, Makefile.am): Update.
35023         (Include): Change to "glthread/tls.h".
35024         * tests/test-lock.c: Update includes.
35025         * tests/test-tls.c: Update includes.
35026         * NEWS: Mention the renamed header files.
35027
35028 2008-08-11  Jim Meyering  <meyering@redhat.com>
35029
35030         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
35031
35032 2008-08-11  Eric Blake  <ebb9@byu.net>
35033
35034         test-c-stack: avoid C99-ism
35035         * tests/test-c-stack.c (main): Fix whitespace, move declaration
35036         before statement.
35037         Reported by Alain Guibert.
35038
35039 2008-08-10  Jim Meyering  <meyering@redhat.com>
35040
35041         ensure that return value of uinttostr et al are not ignored
35042         * lib/inttostr.h (__GNUC_PREREQ): Define.
35043         (__attribute_warn_unused_result__): Define.
35044         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
35045
35046 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
35047
35048         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
35049         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
35050
35051 2008-08-07  Jim Meyering  <meyering@redhat.com>
35052
35053         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
35054
35055         * modules/mkstemp (License): Relicense under LGPLv2+.
35056         * modules/tempname (License): Likewise.
35057
35058 2008-08-06  Bruno Haible  <bruno@clisp.org>
35059
35060         * lib/poll.c (poll): Further micro-optimization.
35061
35062 2008-08-06  Jim Meyering  <meyering@redhat.com>
35063
35064         inet_pton.c: use locale-independent tolower
35065         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
35066         (inet_pton6): Use c_tolower rather than tolower.
35067         * modules/inet_pton (Depends-on): Add c-ctype.
35068
35069 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
35070
35071         * lib/poll.c (poll): Avoid division when timeout is 0, cache
35072         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
35073
35074 2008-08-06  Jim Meyering  <meyering@redhat.com>
35075
35076         * modules/inet_pton (License): Relicense under LGPLv2+.
35077
35078 2008-08-03  Bruno Haible  <bruno@clisp.org>
35079
35080         Additional non-aborting API for lock and tls.
35081         * lib/lock.h: Include <errno.h>.
35082         (glthread_lock_init): New macro/function.
35083         (gl_lock_init): Define as wrapper around glthread_lock_init.
35084         (glthread_lock_lock): New macro/function.
35085         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
35086         (glthread_lock_unlock): New macro/function.
35087         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
35088         (glthread_lock_destroy): New macro/function.
35089         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
35090         (glthread_rwlock_init): New macro/function.
35091         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
35092         (glthread_rwlock_rdlock): New macro/function.
35093         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
35094         (glthread_rwlock_wrlock): New macro/function.
35095         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
35096         (glthread_rwlock_unlock): New macro/function.
35097         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
35098         (glthread_rwlock_destroy): New macro/function.
35099         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
35100         (glthread_recursive_lock_init): New macro/function.
35101         (gl_recursive_lock_init): Define as wrapper around
35102         glthread_recursive_lock_init.
35103         (glthread_recursive_lock_lock): New macro/function.
35104         (gl_recursive_lock_lock): Define as wrapper around
35105         glthread_recursive_lock_lock.
35106         (glthread_recursive_lock_unlock): New macro/function.
35107         (gl_recursive_lock_unlock): Define as wrapper around
35108         glthread_recursive_lock_unlock.
35109         (glthread_recursive_lock_destroy): New macro/function.
35110         (gl_recursive_lock_destroy): Define as wrapper around
35111         glthread_recursive_lock_destroy.
35112         (glthread_once): New macro/function.
35113         (gl_once): Define as wrapper around glthread_once.
35114         Update function declarations.
35115         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
35116         glthread_rwlock_init. Return error code.
35117         (glthread_rwlock_rdlock_multithreaded): Renamed from
35118         glthread_rwlock_rdlock. Return error code.
35119         (glthread_rwlock_wrlock_multithreaded): Renamed from
35120         glthread_rwlock_wrlock. Return error code.
35121         (glthread_rwlock_unlock_multithreaded): Renamed from
35122         glthread_rwlock_unlock. Return error code.
35123         (glthread_rwlock_destroy_multithreaded): Renamed from
35124         glthread_rwlock_destroy. Return error code.
35125         (glthread_recursive_lock_init_multithreaded): Renamed from
35126         glthread_recursive_lock_init. Return error code.
35127         (glthread_recursive_lock_lock_multithreaded): Renamed from
35128         glthread_recursive_lock_lock. Return error code.
35129         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35130         glthread_recursive_lock_unlock. Return error code.
35131         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35132         glthread_recursive_lock_destroy. Return error code.
35133         (glthread_once_call): Make static.
35134         (glthread_once_multithreaded): Renamed from glthread_once.
35135         * lib/tls.h: Include <errno.h>.
35136         (glthread_tls_key_init): New macro/function.
35137         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
35138         (glthread_tls_set): New macro/function.
35139         (gl_tls_set): Define as wrapper around glthread_tls_set.
35140         (glthread_tls_key_destroy): New macro/function.
35141         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
35142         Update function declarations.
35143         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
35144         glthread_tls_get.
35145         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35146
35147 2008-08-04  Eric Blake  <ebb9@byu.net>
35148
35149         gnumakefile: use space, not TAB, outside of targets
35150         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
35151
35152 2008-08-02  Jim Meyering  <meyering@redhat.com>
35153
35154         getdate.y: avoid locale-dependent date parsing failure
35155         In Turkish locales, getdate would fail to recognize keywords
35156         containing a lowercase "i".  The solution is not to rely on
35157         locale-sensitive case-conversion.
35158         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
35159         (lookup_word): Use c_toupper in place of toupper.
35160         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
35161         Reported by Vefa Bicakci <bicave@superonline.com> in
35162         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
35163         * modules/getdate (Depends-on): Add c-ctype.
35164
35165 2008-08-02  Bruno Haible  <bruno@clisp.org>
35166
35167         * gnulib-tool (func_import): When updating or creating a .gitignore
35168         file, prepend each added line with a slash, and ignore leading slashes
35169         from the existing lines.
35170         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35171
35172 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35173
35174         Portability fix for GNU make 3.79.1.
35175         * top/GNUmakefile: Avoid 'else COND', which older GNU make
35176         versions do not understand.
35177
35178 2008-08-01  Bruno Haible  <bruno@clisp.org>
35179
35180         Work around bug of HP-UX 10.20 cc with -0.0 literal.
35181         * tests/test-isnanf.h (zero): New variable.
35182         (main): Avoid literal -0.0f.
35183         * tests/test-isnand.h (zero): New variable.
35184         (main): Avoid literal -0.0.
35185         * tests/test-isnanl.h (zero): New variable.
35186         (main): Avoid literal -0.0L.
35187         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
35188         (test_float, test_double, test_long_double): Avoid literals -0.0f,
35189         -0.0, -0.0L.
35190         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
35191         (test_signbitd): Avoid literal -0.0.
35192         (test_signbitl): Avoid literal -0.0L.
35193         * tests/test-ceilf1.c (zero): New variable.
35194         (main): Avoid literal -0.0f.
35195         * tests/test-ceill.c (zero): New variable.
35196         (main): Avoid literal -0.0L.
35197         * tests/test-floorf1.c (zero): New variable.
35198         (main): Avoid literal -0.0f.
35199         * tests/test-floorl.c (zero): New variable.
35200         (main): Avoid literal -0.0L.
35201         * tests/test-roundf1.c (zero): New variable.
35202         (main): Avoid literal -0.0f.
35203         * tests/test-round1.c (zero): New variable.
35204         (main): Avoid literal -0.0.
35205         * tests/test-roundl.c (zero): New variable.
35206         (main): Avoid literal -0.0L.
35207         * tests/test-truncf1.c (zero): New variable.
35208         (main): Avoid literal -0.0f.
35209         * tests/test-trunc1.c (zero): New variable.
35210         (main): Avoid literal -0.0.
35211         * tests/test-truncl.c (zero): New variable.
35212         (main): Avoid literal -0.0L.
35213         * tests/test-frexp.c (zero): New variable.
35214         (main): Avoid literal -0.0.
35215         * tests/test-frexpl.c (zero): New variable.
35216         (main): Avoid literal -0.0L.
35217         * tests/test-ldexpl.c (zero): New variable.
35218         (main): Avoid literal -0.0L.
35219         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35220         (zerod, zerol): New variables.
35221         (test_function): Avoid literals -0.0, -0.0L.
35222         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35223         (zerod, zerol): New variables.
35224         (test_function): Avoid literals -0.0, -0.0L.
35225         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35226         (zerod, zerol): New variables.
35227         (test_function): Avoid literals -0.0, -0.0L.
35228         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35229         (zerod, zerol): New variables.
35230         (test_function): Avoid literals -0.0, -0.0L.
35231         * tests/test-strtod.c (zero): New variable.
35232         (main): Avoid literal -0.0.
35233         Reported by Jonathan C. Patschke <jp@centtech.com>.
35234
35235 2008-07-31  Jim Meyering  <meyering@redhat.com>
35236
35237         sha256.h: correct definition of SHA224_DIGEST_SIZE
35238         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
35239         Reported by Paulie Pena IV <paulie4@gmail.com>.
35240         Define as 224 / 8, rather than as a literal.
35241         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
35242         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
35243         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
35244
35245 2008-07-31  Bruno Haible  <bruno@clisp.org>
35246
35247         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
35248         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
35249         Reported by Jonathan Patschke <jp@centtech.com>.
35250
35251 2008-07-31  Bruno Haible  <bruno@clisp.org>
35252
35253         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
35254         Reported by Paolo Bonzini <bonzini@gnu.org>.
35255
35256 2008-07-30  Eric Blake  <ebb9@byu.net>
35257
35258         test-strtod: allow compilation without -lm
35259         * tests/test-strtod.c (main): Avoid link dependence on fabs.
35260         Reported by Dennis Clarke <blastwave@gmail.com>.
35261
35262 2008-07-28  Jim Meyering  <meyering@redhat.com>
35263
35264         bootstrap: work also when there are no .po files in po/
35265         * build-aux/bootstrap (update_po_files): Complete the change
35266         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
35267
35268 2008-07-27  Jim Meyering  <meyering@redhat.com>
35269
35270         * users.txt: Add zile.
35271
35272 2008-07-26  Ben Pfaff  <blp@gnu.org>
35273
35274         Add missing dependencies on new m4/exponent[fdl].m4 files.
35275         * modules/isnanf-nolibm: Add m4/exponentf.m4.
35276         * modules/isnand-nolibm: Add m4/exponentd.m4.
35277         * modules/isnanl-nolibm: Add m4/exponentl.m4.
35278         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
35279         m4/isnan[fdl].m4, because the macros actually used moved.
35280         Reported by Jim Meyering.
35281
35282 2008-07-14  Ben Pfaff  <blp@gnu.org>
35283
35284         Add isinf module.
35285         * lib/isinf.c: New file.
35286         * lib/math.in.h: Define isinf macro if we have decided to replace
35287         it.
35288         * m4/isinf.m4: New file.
35289         * m4/math_h.m4: Initialize and substitute variables for isinf
35290         module.
35291         * modules/isinf: New file.
35292         * modules/isinf-tests: New file.
35293         * modules/math: Add substitutions for new module.
35294         * tests/test-isinf.c: New file.
35295         * doc/posix-functions/isinf.texi: Mention new module.
35296         * MODULES.html.sh: Mention new module.
35297
35298 2008-07-14  Ben Pfaff  <blp@gnu.org>
35299
35300         Factor out some macros for use by additional modules.
35301         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
35302         exponentf.m4.
35303         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
35304         exponentd.m4.
35305         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
35306         file exponentl.m4.
35307         * m4/exponentf.m4: New file.
35308         * m4/exponentd.m4: New file.
35309         * m4/exponentl.m4: New file.
35310         * modules/isnanf: Use new file m4/exponentf.m4.
35311         * modules/isnand: Use new file m4/exponentd.m4.
35312         * modules/isnanl: Use new file m4/exponentl.m4.
35313
35314 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
35315
35316         mktime.c: normalize tp->tm_isdst value to -1/0/1.
35317         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
35318         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
35319         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
35320
35321         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
35322         readlink on platforms without PATH_MAX.
35323
35324 2008-07-21  Eric Blake  <ebb9@byu.net>
35325
35326         Warn, not fail, on stale version.
35327         * top/GNUmakefile (_curr-ver): Tone down previous patch.
35328
35329         Don't allow installation with stale devel version number.
35330         * top/GNUmakefile (_is-install-target): New macro.
35331         (_curr-ver): Forbid installation with stale version number.
35332
35333 2008-07-20  Bruno Haible  <bruno@clisp.org>
35334
35335         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35336         TESTS_ENVIRONMENT.
35337         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35338
35339 2008-07-20  Bruno Haible  <bruno@clisp.org>
35340
35341         * lib/c-stack.h (c_stack_action): Add documentation.
35342         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35343
35344 2008-07-20  Bruno Haible  <bruno@clisp.org>
35345
35346         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35347         * modules/readlink (License): Likewise.
35348
35349 2008-07-17  Eric Blake  <ebb9@byu.net>
35350
35351         * modules/c-stack (Link): Fix typo.
35352
35353         Make c-stack use libsigsegv, when available.
35354         * modules/c-stack (Depends-on): Add libsigsegv.
35355         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35356         needed.
35357         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35358         (segv_handler, overflow_handler, c_stack_action)
35359         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
35360         implementation when libsigsegv is available, but only when using
35361         the library is necessary.
35362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
35363         comment, explaining why XSI check fails on Linux.
35364         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
35365         * tests/test-c-stack2.sh: Tweak skip message.
35366         * NEWS: Document new link-time requirements.
35367
35368 2008-07-16  Eric Blake  <ebb9@byu.net>
35369
35370         c-stack: Expose false positives when not using libsigsegv.
35371         * modules/c-stack-tests (Files): Expand test.
35372         * tests/test-c-stack.c (main): Add means to conditionally trigger
35373         non-overflow SIGSEGV.
35374         * tests/test-c-stack2.sh: New file.
35375
35376 2008-07-14  Bruno Haible  <bruno@clisp.org>
35377
35378         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
35379         Reported by Eric Blake.
35380
35381 2008-07-14  Sam Steingold  <sds@gnu.org>
35382             Bruno Haible  <bruno@clisp.org>
35383
35384         New module libsigsegv.
35385         * modules/libsigsegv: New file.
35386         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
35387         modifications.
35388         * MODULES.html.sh (Signal handling): New section.
35389
35390 2008-07-14  Bruno Haible  <bruno@clisp.org>
35391
35392         * modules/unictype/ctype-* (Description): Add the word "function".
35393         Improves the resulting doc in MODULES.html.
35394
35395 2008-07-12  Ben Pfaff  <blp@gnu.org>
35396
35397         Add longlong module.
35398         * modules/longlong: New file.
35399
35400 2008-07-12  Bruno Haible  <bruno@clisp.org>
35401
35402         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
35403         to empty.
35404
35405 2008-07-10  Ben Pfaff  <blp@gnu.org>
35406
35407         Add isnan module.
35408         * doc/posix-functions/isnan.texi: Mention new module.
35409         * lib/math.in.h: Define isnan macro if we have decided to replace
35410         it.
35411         * m4/isnan.m4: New file.
35412         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
35413         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
35414         also.
35415         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
35416         redundancy.
35417         * m4/math_h.m4: Initialize and substitute variables for isnan
35418         module.
35419         * modules/isnan: New file.
35420         * modules/isnan-tests: New file.
35421         * modules/math: Add substitutions for new module.
35422         * tests/test-isnan.c: New file.
35423         * MODULES.html.sh: Mention new module.
35424
35425 2008-07-10  Ben Pfaff  <blp@gnu.org>
35426
35427         Add isnanf module.
35428         * lib/isnanf.m4: New file.
35429         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
35430         (gl_HAVE_ISNANF_IN_LIBM): New macro.
35431         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
35432         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
35433         * modules/isnanf: New file.
35434         * modules/isnanf-tests: New file.
35435         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
35436         files.
35437         * tests/test-isnanf-nolibm.c: factored most of its contents into
35438         new file tests/test-isnanf.h.
35439         * tests/test-isnanf.h: New file.
35440         * tests/test-isnanf.c: New file.
35441         * MODULES.html.sh: Mention new module.
35442         * doc/glibc-functions/isnanf.texi: Mention new module.
35443
35444 2008-07-10  Ben Pfaff  <blp@gnu.org>
35445
35446         Add isnand module.
35447         * lib/isnand.h: New file.
35448         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
35449         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
35450         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
35451         functionality also.
35452         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
35453         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
35454         (gl_HAVE_ISNAND_IN_LIBM): New macro.
35455         * modules/isnand: New file.
35456         * modules/isnand-tests: New file.
35457         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
35458         files.
35459         * tests/test-isnand-nolibm.c: factored most of its contents into
35460         new file tests/test-isnand.h.
35461         * tests/test-isnand.h: New file.
35462         * tests/test-isnand.c: New file.
35463         * MODULES.html.sh: Mention new module.
35464
35465 2008-07-10  Ben Pfaff  <blp@gnu.org>
35466
35467         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35468         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35469         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35470         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35471         * modules/isnanf-nolibm: Update references to renamed files.
35472         * modules/isnand-nolibm: Likewise.
35473         * modules/isnanf-nolibm-tests: Likewise.
35474         * modules/isnand-nolibm-tests: Likewise.
35475         * lib/frexp.c: Likewise.
35476         * lib/isfinite.c: Likewise.
35477         * lib/signbitd.c: Likewise.
35478         * lib/signbitf.c: Likewise.
35479         * lib/vasnprintf.c: Likewise.
35480         * tests/test-ceilf1.c: Likewise.
35481         * tests/test-ceilf2.c: Likewise.
35482         * tests/test-floorf1.c: Likewise.
35483         * tests/test-floorf2.c: Likewise.
35484         * tests/test-frexp.c: Likewise.
35485         * tests/test-round1.c: Likewise.
35486         * tests/test-round2.c: Likewise.
35487         * tests/test-roundf1.c: Likewise.
35488         * tests/test-strtod.c: Likewise.
35489         * tests/test-trunc1.c: Likewise.
35490         * tests/test-trunc2.c: Likewise.
35491         * tests/test-truncf1.c: Likewise.
35492         * tests/test-truncf2.c: Likewise.
35493         * NEWS: Mention the renamed header files.
35494
35495 2008-07-11  Jim Meyering  <meyering@redhat.com>
35496
35497         vc-list-files: make the last-resort awk code more portable
35498         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35499         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35500         does not support it.
35501
35502 2008-07-10  Eric Blake  <ebb9@byu.net>
35503
35504         Work with tar's bootstrap.
35505         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35506         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
35507         an m4 comment.
35508
35509 2008-07-09  Jim Meyering  <meyering@redhat.com>
35510
35511         posix-shell.m4: fix typo that made this test malfunction
35512         * m4/posix-shell.m4: Remove capitalization in variable name.
35513
35514 2008-07-08  Bruno Haible  <bruno@clisp.org>
35515
35516         * m4/onceonly.m4: Update comments.
35517         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35518
35519 2008-07-04  Jim Meyering  <meyering@redhat.com>
35520
35521         * users.txt: Add vc-dwim.
35522         (bison, coreutils): Use the gitweb URL.
35523
35524 2008-07-03  Jim Meyering  <meyering@redhat.com>
35525
35526         * users.txt: Add libffcall.  From Sam Steingold.
35527
35528 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
35529
35530         getdate.y: do not ignore TZ with relative day, month or year offset
35531         * lib/getdate.y (get_date): Move the tz-handling block to follow the
35532         relative-date-handling, since otherwise, the latter would clobber the
35533         sole output (an updated Start value) of the tz-handling block.
35534         * tests/test-getdate.c: Tests for the fix
35535
35536 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35537
35538         Recognize 'foo_LIBRARIES += libgnu.a'.
35539         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
35540         makefile snippet has already specified an installation location,
35541         also using '+='.
35542
35543 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
35544
35545         getdate.y: factor out common actions
35546         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
35547         Use them in place of open-coded actions.
35548
35549 2008-07-01  Simon Josefsson  <simon@josefsson.org>
35550
35551         Add self-test for getdate module.
35552         * modules/getdate-tests: New file.
35553         * tests/test-getdate.c: New file.
35554
35555 2008-06-29  Bruno Haible  <bruno@clisp.org>
35556
35557         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
35558         .gitignore.
35559         Reported by Sylvain Beucler <beuc@beuc.net>.
35560
35561 2008-06-29  Bruno Haible  <bruno@clisp.org>
35562
35563         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
35564         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
35565
35566 2008-06-29  Bruno Haible  <bruno@clisp.org>
35567
35568         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
35569         EXTRA_DIST.
35570         Reported by Sylvain Beucler <beuc@beuc.net>.
35571
35572 2008-06-26  Jim Meyering  <meyering@redhat.com>
35573
35574         make several modules depend on the "open" module
35575         This provides slightly increased consistency when opening-for-write
35576         the name of a non-directory spelled with a trailing slash.
35577         * modules/chdir-safer: Likewise.
35578         * modules/chown: Likewise.
35579         * modules/clean-temp: Likewise.
35580         * modules/copy-file: Likewise.
35581         * modules/fchdir: Likewise.
35582         * modules/fcntl-safer: Likewise.
35583         * modules/pipe: Likewise.
35584         * modules/utime: Likewise.
35585         Prompted by Eric Blake and Bruno Haible.
35586
35587 2008-06-24  Andreas Schwab  <schwab@suse.de>
35588
35589         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
35590         literals can be used as initializers for global variables.
35591
35592 2008-06-23  Eric Blake  <ebb9@byu.net>
35593
35594         Make gnulib-cache.m4 easier to diff.
35595         * gnulib-tool (func_import): Allow newlines when reading cached
35596         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
35597
35598 2008-06-23  Bruno Haible  <bruno@clisp.org>
35599
35600         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
35601         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
35602         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
35603         m4/signalblocking.m4.
35604         (gl_PREREQ_SIGACTION): Don't invoke it.
35605         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
35606         gl_PREREQ_SIG_HANDLER_H.
35607         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35608         Don't check for sigaction here.
35609
35610 2008-06-23  Bruno Haible  <bruno@clisp.org>
35611
35612         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
35613         (install_handlers): Don't set the SA_RESETHAND flag.
35614
35615 2008-06-23  Bruno Haible  <bruno@clisp.org>
35616
35617         * m4/sigaction.m4: Comment fixes.
35618         * lib/signal.in.h: Likewise.
35619
35620 2008-06-23  Eric Blake  <ebb9@byu.net>
35621
35622         Fix typo.
35623         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
35624
35625         Avoid SA_ namespace.
35626         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
35627         Reported by Ralf Wildenhues.
35628
35629         Avoid test failure due to SA_RESTORER.
35630         * tests/test-sigaction.c (SA_MASK): New macro.
35631         (main): Avoid failing due to extension flags being set.
35632         Reported by Jim Meyering.
35633
35634         Revert use of sig-handler.h in sigprocmask.c.
35635         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
35636         it requires the existence of struct sigaction.
35637         * lib/sigprocmask.c (handler_t): Restore typedef.
35638         (rpl_signal, old_handlers): Use local type.
35639
35640 2008-06-22  Bruno Haible  <bruno@clisp.org>
35641
35642         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
35643         conditionally.
35644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35645
35646 2008-06-22  Bruno Haible  <bruno@clisp.org>
35647
35648         * doc/posix-functions/siginterrupt.texi: Move note.
35649
35650         * lib/signal.in.h (SA_RESTART): New macro.
35651         * lib/sigaction.c: Update comment.
35652
35653         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
35654
35655         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
35656         (gl_PREREQ_SIGPROCMASK): Invoke it.
35657         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
35658
35659         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
35660
35661         * lib/sigprocmask.c: Update a comment.
35662
35663 2008-06-21  Eric Blake  <ebb9@byu.net>
35664
35665         Use sigaction module rather than signal().
35666         * modules/c-stack (Depends-on): Add sigaction.
35667         * modules/fatal-signal (Depends-on): Likewise.
35668         * modules/nanosleep (Depends-on): Likewise.
35669         * modules/sigprocmask (Files): Add sig-handler.h.
35670         * modules/sigaction (Files): Likewise.
35671         * lib/sig-handler.h (get_handler): New file, suggested by Paul
35672         Eggert.
35673         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
35674         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
35675         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
35676         (init_fatal_signals): Likewise.
35677         * lib/nanosleep.c (rpl_nanosleep): Likewise.
35678         (siginterrupt): Delete fallback.
35679         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
35680         instead.
35681         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
35682         siginterrupt.
35683
35684         New module sigaction, for mingw.
35685         * modules/sigaction: New module...
35686         * modules/sigaction-tests: ...and its test.
35687         * m4/sigaction.m4: New file.
35688         * lib/sigaction.c: Likewise.
35689         * tests/test-sigaction.c: Likewise.
35690         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
35691         * modules/signal (Makefile.am): Likewise.
35692         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
35693         needed.
35694         * doc/posix-headers/signal.texi (signal.h): Mention provided
35695         types.
35696         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
35697         that sigaction is preferable.
35698         * doc/posix-functions/sigaction.texi (sigaction): Mention new
35699         module.
35700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35701         sigaction.
35702
35703         Improve robustness of sigprocmask by overriding signal.
35704         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
35705         is in use.
35706         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
35707         (SIGKILL, SIGSTOP): Provide fallbacks.
35708         (rpl_signal): Implement.
35709         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
35710         signal can be called inside handlers.
35711
35712         Fix nanosleep module on mingw.
35713         * modules/nanosleep (Depends-on): Add sys_select.
35714         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
35715
35716         Fix licensing of sigprocmask.
35717         * modules/raise (License): Relicense as LGPL.
35718
35719 2008-06-21  Bruno Haible  <bruno@clisp.org>
35720
35721         * lib/propername.c (proper_name_utf8): Don't use the transliterated
35722         result if it contains question marks.
35723         Reported by Michael Geng <linux@michaelgeng.de>.
35724
35725 2008-06-19  Bruno Haible  <bruno@clisp.org>
35726
35727         Fix CVS-ism.
35728         * doc/gnulib.texi: Include updated-stamp.texi.
35729         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
35730         (updated-stamp.texi): New rule.
35731         (gnulib.info): Depend on it.
35732         * doc/.gitignore: Add updated-stamp.texi.
35733         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
35734
35735 2008-06-19  Bruno Haible  <bruno@clisp.org>
35736
35737         * doc/Makefile (gnulib.info): Update and simplify dependencies.
35738         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35739
35740 2008-06-19  Eric Blake  <ebb9@byu.net>
35741
35742         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
35743         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
35744         Reported by Stepan Kasal.
35745
35746 2008-06-18  Bruno Haible  <bruno@clisp.org>
35747
35748         * lib/fatal-signal.c (init_fatal_signals): Add comment.
35749         Reported by Eric Blake.
35750
35751 2008-06-18  Eric Blake  <ebb9@byu.net>
35752
35753         Work around cygwin 1.5.25 strsignal bug.
35754         * tests/test-strsignal.c: Allow for const char *.
35755         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
35756
35757 2008-06-18  Simon Josefsson  <simon@josefsson.org>
35758
35759         * users.txt: Update URL to article and add author/date
35760         information.
35761
35762 2008-06-17  Bruno Haible  <bruno@clisp.org>
35763
35764         New macro gl_DISABLE_THREADS.
35765         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
35766         if the user did not pass --enable-threads or --disable-threads option.
35767         (gl_DISABLE_THREADS): New macro.
35768         Reported by Eric Blake <ebb9@byu.net>.
35769
35770 2008-06-17  Bruno Haible  <bruno@clisp.org>
35771
35772         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
35773         when the macro ignores it.
35774         Based on a patch by Eric Blake <ebb9@byu.net>.
35775
35776 2008-06-17  Bruno Haible  <bruno@clisp.org>
35777
35778         * modules/tls (License): Change to LGPLv2+.
35779         Reported by Eric Blake.
35780
35781 2008-06-17  Eric Blake  <ebb9@byu.net>
35782
35783         Simplify c-stack prerequisites.
35784         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
35785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
35786         no longer requires <ucontext.h> to exist.  Optimize setrlimit
35787         check.
35788         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
35789         <sys/resource.h>.
35790
35791         Move c-stack test into testsuite.
35792         * modules/c-stack-tests: New file.
35793         * lib/c-stack.c [DEBUG]: Move test program...
35794         * tests/test-c-stack.c: ...into this new file.  Skip rather than
35795         fail test if sigaltstack is lacking.
35796         * tests/test-c-stack.sh: New driver file.
35797
35798 2008-06-16  Eric Blake  <ebb9@byu.net>
35799
35800         Use raise module consistently.
35801         * modules/fatal-signal (Depends-on): Add raise.
35802         * modules/sigprocmask (Depends-on): Likewise.
35803         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
35804         * lib/sigprocmask.c (sigprocmask): Likewise.
35805         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35806         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
35807
35808         Fix compliance bug in sigpending.
35809         * lib/sigprocmask.c (sigpending): Return pending array via
35810         parameter, not return value.
35811
35812 2008-06-14  Eric Blake  <ebb9@byu.net>
35813
35814         Improve obstack-printf test code.
35815         * tests/test-obstack-printf.c (test_function): Fix comment, and
35816         simplify usage of obstack_* in macros.  Add a test for coverage.
35817         Reported by Bruno Haible.
35818
35819 2008-06-14  Bruno Haible  <bruno@clisp.org>
35820
35821         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
35822         array size as a constant, not as a const variable.
35823         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
35824         AC_USE_SYSTEM_EXTENSIONS.
35825         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35826         Test whether the obstack_printf function actually exists.
35827         * modules/obstack-printf (Depends-on): Add extensions.
35828         (Include): Remove obstack.h.
35829         * modules/obstack-printf-posix (Depends-on): Add extensions.
35830         (Include): Remove obstack.h.
35831
35832 2008-06-13  Eric Blake  <ebb9@byu.net>
35833
35834         Add obstack-printf and obstack-printf-posix modules.
35835         * modules/obstack-printf: New file.
35836         * modules/obstack-printf-posix: Likewise.
35837         * MODULES.html.sh (Misc): Mention them.
35838         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35839         Likewise.
35840         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35841         Likewise.
35842         * modules/stdio (Makefile.am): Accomodate new modules.
35843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35844         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
35845         Declare.
35846         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
35847         functions.
35848         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
35849         (gl_REPLACE_OBSTACK_PRINTF): New macros
35850         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
35851         * tests/test-obstack-printf.c: New file.
35852         * modules/obstack-printf-tests: Likewise.
35853         * modules/obstack-printf-posix-tests: Likewise.
35854
35855 2008-06-11  Bruno Haible  <bruno@clisp.org>
35856
35857         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
35858         * lib/open.c: Include errno.h.
35859         (open): Fail when attempting to write to a file that has a trailing
35860         slash.
35861         * tests/test-open.c (main): Test against trailing slash bug.
35862         * doc/posix-functions/open.texi: Mention the trailing slash bug.
35863
35864 2008-06-10  Bruno Haible  <bruno@clisp.org>
35865
35866         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
35867         for $? to work inside the trap command, with various /bin/sh-s.
35868         * tests/test-vc-list-files-cvs.sh: Likewise.
35869
35870 2008-06-10  Bruno Haible  <bruno@clisp.org>
35871
35872         * lib/acl-internal.h: Don't include gettext.h here.
35873         * lib/set-mode-acl.c: Include gettext.h here.
35874         * lib/copy-acl.c: Likewise.
35875
35876 2008-06-10  Bruno Haible  <bruno@clisp.org>
35877
35878         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
35879         * lib/wait-process.c (wait_subprocess): Likewise.
35880         * lib/execute.h (execute): Add termsigp argument.
35881         * lib/execute.c (execute): Likewise.
35882         * lib/csharpcomp.c (compile_csharp_using_pnet,
35883         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
35884         * lib/csharpexec.c (execute_csharp_using_pnet,
35885         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
35886         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
35887         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
35888         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
35889         is_jikes_present): Update.
35890         * lib/javaexec.c (execute_java_class): Update.
35891         * lib/javaversion.c (execute_and_read_line): Update.
35892         * NEWS: Document the changes.
35893         Reported by Eric Blake.
35894
35895 2008-06-10  Eric Blake  <ebb9@byu.net>
35896
35897         Add missing include.
35898         * tests/test-strstr.c (includes): Add <signal.h>.
35899         * tests/test-strcasestr.c (includes): Likewise.
35900         * tests/test-memmem.c (includes): Likewise.
35901
35902 2008-06-10  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/wait-process.c (wait_subprocess): Add an assertion.
35905
35906 2008-06-10  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
35909
35910 2008-06-10  Bruno Haible  <bruno@clisp.org>
35911
35912         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
35913         using alarm().
35914         * tests/test-strcasestr.c (main): Likewise.
35915         * tests/test-strstr.c (main): Likewise.
35916
35917 2008-06-09  Bruno Haible  <bruno@clisp.org>
35918
35919         Work around the Solaris 10 ACE ACLs ABI change.
35920         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
35921         declare if ACL_NO_TRIVIAL is present.
35922         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
35923         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
35924         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
35925         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
35926         define if ACL_NO_TRIVIAL is present.
35927         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
35928         and use the current ABI.
35929         (file_has_acl): Use same #if condition as elsewhere.
35930         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
35931         in use, and use the current ABI.
35932         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
35933         Reported by Jim Meyering.
35934
35935 2008-06-09  Eric Blake  <ebb9@byu.net>
35936
35937         Work around environments that (stupidly) ignore SIGALRM.
35938         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
35939         before using alarm().
35940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35941         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35942         Reported by Ian Beckwith <ianb@erislabs.net>.
35943
35944         Produce autobuild blurb earlier in log.
35945         * modules/autobuild (configure.ac-early): Move AB_INIT here.
35946
35947 2008-06-09  Jim Meyering  <meyering@redhat.com>
35948         and OndÅ™ej Vašík  <ovasik@redhat.com>
35949
35950         utimens.c: correct kernel bug work-around
35951         OndÅ™ej Vašík found that the invalid return value of 280 indicates
35952         failure, not success, and the kernel bug we're trying to work
35953         around affects not just the utimensat call, but also the fallback
35954         futimens call.
35955         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
35956         not success.
35957         [HAVE_FUTIMENS]: Use the same work-around, here.
35958
35959 2008-06-09  Jim Meyering  <meyering@redhat.com>
35960
35961         add more guards around definition of ACE_-related code
35962         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
35963         ALLOW and ACE_OWNER are also defined.
35964
35965 2008-06-08  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/acl-internal.h: Add me as co-author.
35968         * lib/file-has-acl.c: Likewise.
35969         * lib/set-mode-acl.c: Likewise.
35970         * lib/copy-acl.c: Likewise.
35971
35972 2008-06-08  Bruno Haible  <bruno@clisp.org>
35973
35974         Add support for AIX ACLs.
35975         * lib/acl-internal.h (acl_nontrivial): New declaration.
35976         * lib/file-has-acl.c (acl_nontrivial): New function.
35977         (file_has_acl): Add implementation using AIX 4 ACL API.
35978         * lib/set-mode-acl.c (qset_acl): Likewise.
35979         * lib/copy-acl.c (qcopy_acl): Likewise.
35980
35981 2008-06-08  Bruno Haible  <bruno@clisp.org>
35982
35983         Add support for HP-UX ACLs.
35984         * lib/acl-internal.h (acl_nontrivial): New declaration.
35985         * lib/file-has-acl.c (acl_nontrivial): New function.
35986         (file_has_acl): Add implementation using HP-UX 11 ACL API.
35987         * lib/set-mode-acl.c (qset_acl): Likewise.
35988         * lib/copy-acl.c (qcopy_acl): Likewise.
35989
35990 2008-06-08  Bruno Haible  <bruno@clisp.org>
35991
35992         Add support for Cygwin ACLs.
35993         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
35994         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
35995         the chmod_or_fchmod call.
35996         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
35997
35998 2008-06-08  Bruno Haible  <bruno@clisp.org>
35999
36000         Fix bug with setuid modes in Solaris 10+ code.
36001         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
36002         succeeded, when the mode contains some special bits.
36003
36004 2008-06-08  Bruno Haible  <bruno@clisp.org>
36005
36006         Add support for Solaris 7..10 ACLs.
36007         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
36008         declarations.
36009         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
36010         functions.
36011         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
36012         * lib/set-mode-acl.c (qset_acl): Likewise.
36013         * lib/copy-acl.c (qcopy_acl): Likewise.
36014
36015 2008-06-08  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
36018         declaration.
36019         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
36020         (acl_access_nontrivial): Remove MacOS X case.
36021         (file_has_acl): Use acl_extended_nontrivial.
36022         * lib/copy-acl.c (qcopy_acl): Likewise.
36023
36024 2008-06-08  Bruno Haible  <bruno@clisp.org>
36025
36026         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
36027
36028 2008-06-08  Jim Meyering  <meyering@redhat.com>
36029
36030         * modules/acl (Maintainer): Add Bruno Haible.
36031
36032 2008-06-07  Bruno Haible  <bruno@clisp.org>
36033
36034         Improve support for Tru64 ACLs.
36035         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
36036         ACL on OSF/1.
36037
36038 2008-06-07  Bruno Haible  <bruno@clisp.org>
36039
36040         Add support for MacOS X ACLs.
36041         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
36042         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
36043         * lib/set-mode-acl.c (qset_acl): Likewise.
36044         * lib/copy-acl.c (qcopy_acl): Likewise.
36045
36046 2008-06-07  Bruno Haible  <bruno@clisp.org>
36047
36048         Fix memory leak introduced on 2008-05-22.
36049         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
36050         use.
36051
36052 2008-06-07  Bruno Haible  <bruno@clisp.org>
36053
36054         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
36055         to construct an empty ACL.
36056
36057 2008-06-07  Bruno Haible  <bruno@clisp.org>
36058
36059         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
36060         precisely.
36061         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
36062
36063 2008-06-07  Bruno Haible  <bruno@clisp.org>
36064
36065         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
36066         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
36067
36068 2008-06-07  Bruno Haible  <bruno@clisp.org>
36069
36070         * doc/posix-functions/_setjmp.texi: Explain the use of this function
36071         regardless of POSIX.
36072         * doc/posix-functions/_longjmp.texi: Likewise.
36073         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
36074         SystemV platform in this case.
36075
36076 2008-06-06  Eric Blake  <ebb9@byu.net>
36077
36078         Document abort() bugs.
36079         * doc/posix-functions/abort.texi (abort): Mention anomalies.
36080
36081         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
36082         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
36083         sigsetjmp.
36084         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
36085         siglongjmp, but only as a macro.
36086         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
36087         is obsolete.
36088         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
36089
36090         Tweak documentation to cover cygwin argz bugs.
36091         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
36092         argz bug fix; no code change needed since no cygwin releases
36093         occurred between the last fix and the bug being tested.
36094         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
36095         module and recently fixed cygwin bugs.
36096         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
36097         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
36098         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
36099         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
36100         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
36101         Likewise.
36102         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36103         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
36104         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
36105         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
36106         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
36107         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
36108         Likewise.
36109
36110         Avoid gcc warning on cygwin.
36111         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
36112         !ACL_NO_TRIVIAL]: Avoid unused variable.
36113
36114 2008-06-05  Eric Blake  <ebb9@byu.net>
36115
36116         Be tolerant of UNKNOWN version in gnulib-tool test dir.
36117         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
36118         git-version-gen fails to come up with a version.
36119         Reported by Simon Josefsson.
36120
36121 2008-06-05  Jim Meyering  <meyering@redhat.com>
36122             Paul Eggert  <eggert@cs.ucla.edu>
36123
36124         utimens.c: work around a probable Linux kernel bug
36125         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36126         appears to be a kernel bug that causes utimensat to return 280
36127         instead of 0, indicating success.
36128
36129 2008-06-04  Bruno Haible  <bruno@clisp.org>
36130
36131         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36132         2008-06-01 commit.
36133
36134 2008-06-04  Bruno Haible  <bruno@clisp.org>
36135
36136         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
36137         * lib/file-has-acl.c (acl_access_nontrivial): New function.
36138         (file_has_acl): Use it. Save errno afterwards.
36139         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
36140
36141 2008-06-03  Bruno Haible  <bruno@clisp.org>
36142
36143         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
36144         draft code. Simplify #ifs.
36145         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
36146         Put Solaris code after POSIX-draft code. Fix comments regarding
36147         Solaris 10, HP-UX. Mention Cygwin.
36148         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
36149
36150 2008-06-03  Eric Blake  <ebb9@byu.net>
36151
36152         Provide fallback for older kernels.
36153         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
36154         Provide runtime fallback if kernel lacks support.
36155         Reported by Mike Frysinger.
36156
36157 2008-06-02  Bruno Haible  <bruno@clisp.org>
36158
36159         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
36160         it exists.
36161
36162 2008-06-02  Bruno Haible  <bruno@clisp.org>
36163
36164         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
36165         * lib/copy-acl.c (qcopy_acl): Update comment.
36166
36167 2008-06-02  Bruno Haible  <bruno@clisp.org>
36168
36169         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
36170         like ACL APIs.
36171
36172 2008-06-02  Bruno Haible  <bruno@clisp.org>
36173
36174         * tests/test-file-has-acl.sh: Use different code for Cygwin.
36175         * tests/test-set-mode-acl.sh: Likewise.
36176         * tests/test-copy-acl.sh: Likewise.
36177         * tests/test-copy-file.sh: Likewise.
36178
36179 2008-06-02  Bruno Haible  <bruno@clisp.org>
36180
36181         * tests/test-file-has-acl.sh: Remove unused code.
36182
36183 2008-06-01  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
36186         (copy_acl): Just a wrapper around qcopy_acl that emits the error
36187         messages.
36188         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
36189
36190 2008-06-01  Bruno Haible  <bruno@clisp.org>
36191
36192         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
36193         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
36194         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
36195         APIs.
36196         * modules/acl-tests (configure.ac): Remove tests now contained in
36197         m4/acl.m4.
36198
36199 2008-06-02  Jim Meyering  <meyering@redhat.com>
36200
36201         announce-gen: use a better key-server host name
36202         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
36203         it may be more consistently reliable.  Suggested by Werner Koch
36204         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
36205
36206 2008-06-01  Bruno Haible  <bruno@clisp.org>
36207
36208         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
36209         Reported by Voroskoi Andras <voroskoi@gmail.com>.
36210
36211 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
36212
36213         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
36214
36215 2008-06-01  Bruno Haible  <bruno@clisp.org>
36216
36217         New ACL tests.
36218         * tests/test-file-has-acl.sh: New file.
36219         * tests/test-file-has-acl.c: New file.
36220         * tests/test-set-mode-acl.sh: New file.
36221         * tests/test-set-mode-acl.c: New file.
36222         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
36223         * tests/test-copy-acl.c: New file.
36224         * modules/acl-tests: New file, based on modules/copy-file-tests.
36225         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
36226         (Depends-on): Add acl-tests.
36227         (configure.ac): Remove checks.
36228         (Makefile.am): Don't create test-sameacls program here any more.
36229
36230 2008-06-01  Bruno Haible  <bruno@clisp.org>
36231
36232         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
36233         * tests/test-sameacls.c: Include progname.h.
36234         (main): Invoke set_program_name. Portability fixes for MacOS X,
36235         Solaris, HP-UX.
36236
36237 2008-06-01  Bruno Haible  <bruno@clisp.org>
36238
36239         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
36240         function.
36241         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
36242
36243 2008-06-01  Bruno Haible  <bruno@clisp.org>
36244
36245         * modules/rpmatch (Depends-on): Add strdup.
36246
36247 2008-06-01  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/pipe.c: Include unistd-safer.h.
36250         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
36251         * modules/pipe (Depends-on): Add unistd-safer.
36252
36253 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36254
36255         * modules/autobuild (configure.ac): Call AB_INIT.
36256
36257 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36258
36259         * tests/test-getaddrinfo.c: Don't print debug messages by default.
36260         Suggested by Bruno Haible <bruno@clisp.org>.
36261
36262 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36263
36264         * tests/test-base64.c: Cast size_t to unsigned long when invoking
36265         printf.  Use %lu instead of %d.  Reported by Bruno Haible
36266         <bruno@clisp.org>.
36267
36268 2008-05-29  Eric Blake  <ebb9@byu.net>
36269
36270         Prefer new POSIX 200x interfaces over futimesat.
36271         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
36272         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
36273         when available.
36274         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
36275
36276 2008-05-28  Bruno Haible  <bruno@clisp.org>
36277
36278         * modules/stpcpy (License): Change to LGPLv2+.
36279         Requested by David Lutterkort <dlutter@redhat.com>.
36280
36281 2008-05-27  Bruno Haible  <bruno@clisp.org>
36282
36283         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
36284         current mingw.
36285         Reported by Jose E. Marchesi <jemarch@gnu.org>.
36286
36287 2008-05-27  Bruno Haible  <bruno@clisp.org>
36288
36289         * modules/iconv_open (Link): New section, from module 'iconv'.
36290         * modules/striconv (Link): Likewise.
36291         * modules/striconveh (Link): Likewise.
36292         * modules/xstriconv (Link): Likewise.
36293         * modules/unicodeio (Link): Likewise.
36294         * modules/propername (Link): Likewise.
36295         Reported by Jim Meyering.
36296
36297 2008-05-26  Jim Meyering  <meyering@redhat.com>
36298
36299         sha256: do not artificially restrict buffer length to be < 2^32
36300         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
36301         uint32_t to size_t.
36302         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
36303         to match.
36304
36305         avoid unaligned access errors, e.g., on sparc
36306         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
36307         direct access through a possibly-unaligned uint64* pointer.
36308         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
36309         direct access through a possibly-unaligned uint32* pointer.
36310         Prompted by this patch from Tom "spot" Callaway:
36311         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
36312
36313         sha512.c: fix typo in comment
36314         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
36315
36316 2008-05-25  Bruno Haible  <bruno@clisp.org>
36317
36318         * lib/set-mode-acl.c: Renamed from lib/acl.c.
36319         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
36320         (Makefile.am): Update lib_SOURCES.
36321
36322 2008-05-25  Bruno Haible  <bruno@clisp.org>
36323
36324         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
36325
36326 2008-05-25  Jim Meyering  <meyering@redhat.com>
36327
36328         useless-if-before-free: freed expr may have white-space differences
36329         * build-aux/useless-if-before-free: Recognize cases in which the
36330         freed expression differs from the tested one in embedded white
36331         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
36332         $1 was used, so we can't make any regexp shy.  Improved tests now
36333         detect this.
36334
36335         useless-if-before-free: accept white space in the expression.
36336         * build-aux/useless-if-before-free: For now, any white space
36337         in the expression must be identical in the free argument.
36338
36339         useless-if-before-free: efficiency tweak
36340         * build-aux/useless-if-before-free: Make the expression-matching
36341         regexp "shy".
36342         Make the *outer* regexp shy, not the expr-matching one.
36343
36344         update code-in-comment to accept cast of free arg
36345         * build-aux/useless-if-before-free: Update regexp.
36346
36347 2008-05-25  Bruno Haible  <bruno@clisp.org>
36348
36349         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36350         * modules/copy-file-tests (Files, Makefile.am): Update.
36351         * tests/test-copy-file.c (func_test_copy): Update.
36352
36353 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36354
36355         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36356
36357 2008-05-23  Bruno Haible  <bruno@clisp.org>
36358
36359         Improve support for ACLs on OSF/1.
36360         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
36361         Remove fallback for unknown flavors of ACLs.
36362
36363 2008-05-22  Bruno Haible  <bruno@clisp.org>
36364
36365         Add support for ACLs on OSF/1.
36366         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
36367         replacements.
36368         (acl_free_text): New macro fallback.
36369         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
36370         acl_free.
36371         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
36372         acl_free_text function. Require AC_C_INLINE.
36373
36374 2008-05-22  Bruno Haible  <bruno@clisp.org>
36375
36376         Make copy_acl work on MacOS X 10.5.
36377         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
36378         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
36379         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
36380         If MODE_INSIDE_ACL, don't assume that every system has the same text
36381         representation for ACLs as FreeBSD.
36382         * lib/copy-acl.c (copy_acl): Add support for platforms with
36383         !MODE_INSIDE_ACL.
36384         * lib/file-has-acl.c (file_has_acl): Likewise.
36385         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
36386         FreeBSD, MacOS X, or IRIX, respectively.
36387
36388 2008-05-22  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/acl.h: Don't include <sys/acl.h>.
36391         (GETACLCNT): Move fallback to lib/acl-internal.h.
36392         * lib/acl-internal.h: Include <sys/acl.h> here.
36393         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
36394
36395 2008-05-22  Bruno Haible  <bruno@clisp.org>
36396
36397         Split off copy_acl function to separate file.
36398         * lib/copy-acl.c: New file, extracted from lib/acl.c.
36399         * lib/acl.c (copy_acl): Moved function to separate file.
36400         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
36401         * modules/acl (Files): Add lib/copy-acl.c.
36402         (Makefiles.am): Augment lib_SOURCES.
36403
36404 2008-05-22  Bruno Haible  <bruno@clisp.org>
36405
36406         * modules/copy-file-tests: New file.
36407         * tests/test-copy-file.sh: New file.
36408         * tests/test-copy-file.c: New file.
36409         * tests/test-copy-file-sameacls.c: New file.
36410
36411 2008-05-22  Eric Blake  <ebb9@byu.net>
36412
36413         Avoid gcc warning.
36414         * tests/test-memcmp.c (main): Pass NULL indirectly.
36415
36416 2008-05-21  Bruno Haible  <bruno@clisp.org>
36417
36418         Add reference doc about ACLs.
36419         * doc/acl-resources.txt: New file.
36420         * doc/acl-cygwin.txt: New file.
36421
36422 2008-05-21  Bruno Haible  <bruno@clisp.org>
36423
36424         Avoid one more warning from gcc.
36425         * lib/vasnprintf.c (IF_LINT): Update comments.
36426         (VASNPRINTF): Use it also for the 'prefix' array initializer.
36427
36428 2008-05-21  Jim Meyering  <meyering@redhat.com>
36429
36430         avoid a warning from gcc
36431         * lib/vasnprintf.c (IF_LINT): Define.
36432         (scale10_round_decimal_long_double):
36433         Use it to avoid a "may be used uninitialized" warning.
36434         (scale10_round_decimal_double): Likewise.
36435
36436 2008-05-21  Simon Josefsson  <simon@josefsson.org>
36437
36438         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
36439         declared.
36440
36441 2008-05-20  Bruno Haible  <bruno@clisp.org>
36442
36443         * tests/test-memcmp.c (main): Test also the sign of the result. Test
36444         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
36445
36446 2008-05-20  Simon Josefsson  <simon@josefsson.org>
36447
36448         * modules/memcmp-tests: New file.
36449         * tests/test-memcmp.c: New file.
36450
36451 2008-05-19  Bruno Haible  <bruno@clisp.org>
36452
36453         * modules/propername (Notice, configure.ac): Put quoted "..." into
36454         --keyword option.
36455         * lib/propername.h: Update comments accordingly.
36456         Reported by Eric Blake.
36457
36458 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
36459
36460         * modules/getpass-gnu (Depends-on): Add fseeko.
36461
36462 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36463
36464         * modules/base64-tests: New file.
36465
36466 2008-05-19  Bo Borgerson <gigabo@gmail.com>
36467
36468         * lib/base64.c (base64_decode_ctx): If a decode context structure
36469         was passed in use it to ignore newlines.  If a context structure
36470         was _not_ passed in, continue to treat newlines as garbage (this
36471         is the historical behavior).  Formerly base64_decode.
36472         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36473         takes a decode context structure.
36474         * lib/base64.h (base64_decode): Macro for four-argument calls.
36475         (base64_decode_alloc): Likewise.
36476         * lib/base64.c (base64_decode_ctx): If a decode context structure
36477         was passed in use it to ignore newlines.  If a context structure
36478         was _not_ passed in, continue to treat newlines as garbage (this
36479         is the historical behavior).  Formerly base64_decode.
36480         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36481         takes a decode context structure.
36482         * lib/base64.h (base64_decode): Macro for four-argument calls.
36483         (base64_decode_alloc): Likewise.
36484
36485 2008-05-19  Jim Meyering  <meyering@redhat.com>
36486
36487         avoid a warning from gcc
36488         * lib/trim.c (IF_LINT): Define.
36489         (trim2): Use it to avoid a "may be used uninitialized" warning.
36490
36491         Fix doc typo.
36492         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36493
36494 2008-05-19  Bruno Haible  <bruno@clisp.org>
36495
36496         * doc/glibc-functions/getpass.texi: Document limits of other
36497         implementations.
36498
36499 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36500             Bruno Haible <bruno@clisp.org>
36501
36502         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36503
36504 2008-05-18  Bruno Haible  <bruno@clisp.org>
36505
36506         * modules/propername: New file, from GNU gettext.
36507         * lib/propername.h: New file, from GNU gettext.
36508         * lib/propername.c: New file, from GNU gettext.
36509         * MODULES.html.sh (Internationalization functions): Add propername.
36510
36511 2008-05-16  Jim Meyering  <meyering@redhat.com>
36512             Bruno Haible  <bruno@clisp.org>
36513
36514         Avoid some warnings from "gcc -Wshadow".
36515         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
36516
36517 2008-05-15  Eric Blake  <ebb9@byu.net>
36518
36519         Extend previous patch to cygwin 1.7.0.
36520         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
36521         fast implementation in cygwin >= 1.7.0.
36522         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36524
36525 2008-05-15  Bruno Haible  <bruno@clisp.org>
36526
36527         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
36528         implementation in glibc >= 2.9.
36529         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36530         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36531
36532 2008-05-15  Bruno Haible  <bruno@clisp.org>
36533
36534         * MODULES.html.sh (Internationalization functions): Remove linebreak.
36535         (Unicode string functions): Add unilbrk/*.
36536         Reported by Karl Berry.
36537
36538 2008-05-15  Eric Blake  <ebb9@byu.net>
36539
36540         Fix violation of <stdbool.h> replacement in regex.
36541         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
36542         * lib/regexec.c (re_search_internal): Likewise.
36543         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
36544
36545 2008-05-15  Jim Meyering  <meyering@redhat.com>
36546
36547         avoid distracting test output when git or cvs is not found
36548         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
36549         * tests/test-vc-list-files-git.sh: Likewise.
36550
36551 2008-05-15  Eric Blake  <ebb9@byu.net>
36552
36553         Glibc finally accepted the memmem speedup code, bugzilla #5514.
36554         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
36555         glibc version.
36556         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36557         * doc/posix-functions/strstr.texi (strstr): Likewise.
36558         * lib/str-two-way.h (MAX): Sychronize with glibc.
36559
36560 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
36561
36562         * lib/regcomp.c (optimize_utf8): Add a note on why we test
36563         opr.ctx_type.
36564         (calc_first): Initialize constraint field.
36565         (duplicate_node_closure): Use it instead of special casing ANCHORS.
36566         Fix grammar.
36567         (duplicate_node): Merge constraint field for all node types.
36568         (calc_eclosure_iter): Look at constraint field for all node types.
36569         * lib/regex_internal.c (create_cd_newstate): Don't look at
36570         opr.ctx_type.
36571
36572 2008-05-14  Bruno Haible  <bruno@clisp.org>
36573
36574         Help GCC to do better code generation.
36575         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
36576         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
36577         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
36578         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
36579         Declare with attribute 'malloc' if supported.
36580
36581 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
36582
36583         use "echo STR|wc -c" rather than unportable "expr length STR"
36584         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
36585         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
36586
36587 2008-05-14  Jim Meyering  <meyering@redhat.com>
36588
36589         use dd ibs=$n count=1 ... rather than less-portable head -c$n
36590         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
36591         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
36592         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
36593         via Collin Lasse.
36594
36595 2008-05-14  Eric Blake  <ebb9@byu.net>
36596
36597         Avoid quadratic growth in gl_LIBSOURCES.
36598         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
36599         Suggested by Bruno Haible.
36600
36601         Test xmemdup0.
36602         * modules/xmemdup0-tests: New file.
36603         * tests/test-xmemdup0.c: Likewise.
36604
36605 2008-05-13  Eric Blake  <ebb9@byu.net>
36606
36607         Split xmemdup0 into its own module.
36608         * modules/xmemdup0: New file.
36609         * lib/xmemdup0.h: Likewise.
36610         * lib/xmemdup0.c: Likewise.
36611         * MODULES.html.sh (Memory management functions): Add xmemdup0.
36612         * lib/xalloc.h (xmemdup0): Remove.
36613         * lib/xmalloc.c (xmemdup0): Likewise.
36614
36615 2008-05-13  Eric Blake  <ebb9@byu.net>
36616             Bruno Haible  <bruno@clisp.org>
36617
36618         Reduce number of forks required during autoconf.
36619         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
36620         and gl_LIBSOURCES_DIR.
36621         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
36622         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
36623         m4_syscmd per file.
36624         <m4_foreach_w>: Move...
36625         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
36626
36627 2008-05-13  Eric Blake  <ebb9@byu.net>
36628
36629         * gnulib-tool: Fix various comment typos.
36630
36631 2008-05-12  Bruno Haible  <bruno@clisp.org>
36632
36633         Tailor the linebreaking algorithm.
36634         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
36635
36636 2008-05-12  Bruno Haible  <bruno@clisp.org>
36637
36638         Update to Unicode 5.0.0.
36639         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36640         LBP_JV, LBP_JT. Redistribute values.
36641         (unilbrk_table): Change size.
36642         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
36643         Unicode TR#14 rev. 22.
36644         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36645         LBP_JV, LBP_JT. Redistribute values.
36646         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
36647         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
36648         Update.
36649         * lib/unilbrk/lbrkprop1.h: Regenerated.
36650         * lib/unilbrk/lbrkprop2.h: Regenerated.
36651         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
36652         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
36653         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
36654         Likewise.
36655         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
36656         Likewise.
36657         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
36658         result.
36659         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36660         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36661         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36662         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
36663         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
36664         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
36665
36666 2008-05-11  Bruno Haible  <bruno@clisp.org>
36667
36668         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
36669
36670 2008-05-11  Bruno Haible  <bruno@clisp.org>
36671
36672         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
36673         * modules/unilbrk/gen-lbrk: New file.
36674
36675 2008-05-11  Bruno Haible  <bruno@clisp.org>
36676
36677         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
36678         * m4/sha512.m4 (gl_SHA512): Likewise.
36679
36680 2008-05-11  Jim Meyering  <meyering@redhat.com>
36681
36682         New modules: crypto/sha256, crypto/sha512 (from coreutils)
36683         * modules/crypto/sha256: New file.
36684         * modules/crypto/sha512: Likewise.
36685         * lib/sha256.c: Likewise.
36686         * lib/sha256.h: Likewise.
36687         * lib/sha512.c: Likewise.
36688         * lib/sha512.h: Likewise.
36689         * lib/u64.h: Likewise.
36690         * m4/sha256.m4: Likewise.
36691         * m4/sha512.m4: Likewise.
36692         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
36693
36694 2008-05-10  Bruno Haible  <bruno@clisp.org>
36695
36696         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
36697         (Input/Output <stdio.h>): Add xprintf.
36698         (Signal handling <signal.h>): Add strsignal.
36699         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
36700         (Core language properties): Add func.
36701         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
36702         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
36703         strings.
36704         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
36705         (Input/output): New section.
36706         (File system functions): Add openat-die, stat-macros.
36707         (Networking functions): Add sockets.
36708         (Unicode string functions): Add unictype/*.
36709         (Support for building libraries and executables): Add gperf.
36710         (Support for building documentation): Add agpl-3.0.
36711         (Misc): Add nocrash.
36712
36713 2008-05-10  Bruno Haible  <bruno@clisp.org>
36714
36715         * modules/unictype/gen-ctype: New file.
36716
36717 2008-05-10  Jim Meyering  <meyering@redhat.com>
36718
36719         Make chdir-safer.c more efficient on a system with no symlinks.
36720         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
36721         also if ELOOP is zero.  Suggested by Bruno Haible.
36722
36723         Make chdir-safer.c slightly safer.
36724         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
36725         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
36726
36727         Avoid compile failure on systems without ELOOP (like mingw).
36728         * lib/chdir-safer.c (ELOOP): Define if not already defined.
36729         Reported by Bruno Haible.
36730
36731 2008-05-10  Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
36734         (is_utf8_encoding): Use a case-insensitive comparison.
36735         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
36736         streq.
36737
36738 2008-05-10  Bruno Haible  <bruno@clisp.org>
36739
36740         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
36741         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
36742         * lib/unilbrk/ulc-common.h (iconv_string_length,
36743         iconv_string_keeping_offsets): Remove declarations.
36744         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
36745         Don't include <iconv.h>, streq.h, xsize.h.
36746         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
36747         conversion.
36748         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
36749         <iconv.h>, streq.h, xsize.h.
36750         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
36751         conversion.
36752         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
36753         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
36754         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
36755         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
36756
36757 2008-05-10  Bruno Haible  <bruno@clisp.org>
36758
36759         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
36760         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
36761
36762         * modules/unilbrk/u32-width-linebreaks-tests: New file.
36763         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
36764
36765         * modules/unilbrk/u16-width-linebreaks-tests: New file.
36766         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
36767
36768         * modules/unilbrk/u8-width-linebreaks-tests: New file.
36769         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
36770
36771         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
36772         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
36773
36774         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
36775         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
36776
36777         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
36778         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
36779
36780         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
36781         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
36782
36783 2008-05-10  Bruno Haible  <bruno@clisp.org>
36784
36785         Split up 'linebreak' module.
36786         * lib/unilbrk.h: New file, based on lib/linebreak.h.
36787         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
36788         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
36789         modifications.
36790         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
36791         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
36792         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
36793         lib/linebreak.c.
36794         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
36795         lib/linebreak.c.
36796         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
36797         lib/linebreak.c.
36798         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
36799         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
36800         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
36801         lib/linebreak.c.
36802         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
36803         lib/linebreak.c.
36804         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
36805         lib/linebreak.c.
36806         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
36807         lib/linebreak.c.
36808         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
36809         lib/linebreak.c.
36810         * modules/unilbrk/base: New file.
36811         * modules/unilbrk/tables: New file.
36812         * modules/unilbrk/u8-possible-linebreaks: New file.
36813         * modules/unilbrk/u16-possible-linebreaks: New file.
36814         * modules/unilbrk/u32-possible-linebreaks: New file.
36815         * modules/unilbrk/ulc-common: New file.
36816         * modules/unilbrk/ulc-possible-linebreaks: New file.
36817         * modules/unilbrk/u8-width-linebreaks: New file.
36818         * modules/unilbrk/u16-width-linebreaks: New file.
36819         * modules/unilbrk/u32-width-linebreaks: New file.
36820         * modules/unilbrk/ulc-width-linebreaks: New file.
36821         * lib/linebreak.h: Remove file.
36822         * lib/linebreak.c: Remove file.
36823         * m4/linebreak.m4: Remove file.
36824         * modules/linebreak: Remove file.
36825         * NEWS: Mention the changes.
36826
36827 2008-05-09  Eric Blake  <ebb9@byu.net>
36828
36829         Add xmemdup0.
36830         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
36831         implementation.
36832         * lib/xmalloc.c (xmemdup0): New C implementation.
36833
36834 2008-05-08  Bruno Haible  <bruno@clisp.org>
36835
36836         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
36837
36838 2008-05-07  Eric Blake  <ebb9@byu.net>
36839
36840         Support cross-compilation of <wctype.h>.
36841         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
36842         AC_CACHE_CHECK.
36843
36844 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
36845
36846         * build-aux/vc-list-files: Add support for bzr.
36847
36848 2008-05-03  Jim Meyering  <meyering@redhat.com>
36849
36850         avoid failed assertion with tight malloc
36851         * tests/test-getndelim2.c: Correct an off-by-one assertion.
36852
36853 2008-05-03  Simon Josefsson  <simon@josefsson.org>
36854
36855         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
36856         are needed from arpa/inet.h.
36857         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
36858         Reported by Bruno Haible.
36859
36860 2008-05-02  Jim Meyering  <meyering@redhat.com>
36861
36862         avoid compilation error on FreeBSD 6
36863         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
36864
36865 2008-05-01  Jim Meyering  <meyering@redhat.com>
36866
36867         useless-if-before-free: correct --help's exit status description
36868         * build-aux/useless-if-before-free (usage): Like grep, exit 0
36869         for one or more matches, etc.  Reported by Bruno Haible.
36870
36871         vc-list-files: make the stand-alone gnulib test work
36872         * modules/vc-list-files-tests (configure.ac):
36873         Define and AC_SUBST abs_aux_dir.
36874         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
36875         $(abs_top_srcdir) to each script and having each of them
36876         duplicate the work of setting PATH, set PATH here, using
36877         the new variable, abs_aux_dir instead.
36878         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
36879         * tests/test-vc-list-files-git.sh: Likewise.
36880         Reported by Bruno Haible.
36881
36882 2008-05-01  Bruno Haible  <bruno@clisp.org>
36883
36884         * lib/getndelim2.c (getndelim2): Fix newsize computation during
36885         reallocation. Rename 'done' to 'found_delimiter'.
36886
36887 2008-05-01  Jim Meyering  <meyering@redhat.com>
36888
36889         vc-list-files: accommodate /bin/sh like the one from Solaris 10
36890         * build-aux/vc-list-files: Use `...`, not $(...).
36891
36892 2008-04-30  Jim Meyering  <meyering@redhat.com>
36893
36894         add tests for vc-list-files
36895         * modules/vc-list-files-tests: New module.
36896         * tests/test-vc-list-files-cvs.sh: New file.
36897         * tests/test-vc-list-files-git.sh: New file.
36898
36899         avoid a warning from gcc
36900         * lib/getndelim2.c (IF_LINT): Define.
36901         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
36902
36903         vc-list-files: work properly with build-aux/cvsu, too
36904         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
36905         to all cvs-based clauses.
36906
36907         vc-list-files: work properly in the CVS+awk case, too
36908         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
36909
36910         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
36911         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
36912         take more than one file argument, so .  Add quotes, just in case $dir
36913         ever contains a shell meta-character.  Prompted by Soren Hansen in
36914         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
36915
36916 2008-04-29  Eric Blake  <ebb9@byu.net>
36917
36918         Optimize getndelim2 to use block operations when possible.
36919         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
36920         freadseek, and memchr2.
36921         * lib/getndelim2.c (getndelim2): Use them for block reads.
36922
36923 2008-04-29  Bruno Haible  <bruno@clisp.org>
36924
36925         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
36926         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36927         * modules/inet_ntop (Depends-on): Add extensions.
36928         * modules/inet_pton (Depends-on): Likewise.
36929         Reported by Simon Josefsson.
36930
36931 2008-04-29  Jim Meyering  <meyering@redhat.com>
36932
36933         When the is more than one match in a block, match all of them.
36934         * build-aux/useless-if-before-free: Iterate through each block
36935         until there are no more matches.
36936
36937         Fix broken useless-if-before-free script.
36938         * build-aux/useless-if-before-free: Fix typo: missing "?" after
36939         the expression to match cast of argument to free-like function.
36940
36941 2008-04-29  Eric Blake  <ebb9@byu.net>
36942
36943         Use new header.
36944         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
36945
36946 2008-04-29  Jim Meyering  <meyering@redhat.com>
36947
36948         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
36949         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
36950         by gnulib to exist and to declare e.g., inet_ntop.
36951         Don't include "inet_ntop.h", now removed.
36952
36953         * m4/arpa_inet_h.m4: Remove trailing blanks.
36954
36955 2008-04-29  Eric Blake  <ebb9@byu.net>
36956
36957         Silence valgrind on safe reads beyond potential array bounds.
36958         * lib/rawmemchr.valgrind: New file.
36959         * lib/strchrnul.valgrind: Likewise.
36960         * modules/rawmemchr (Files): Distribute new file.
36961         * modules/strchrnul (Files): Likewise.
36962         Suggested by Bruno Haible.
36963
36964 2008-04-29  Bruno Haible  <bruno@clisp.org>
36965
36966         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
36967         (inet_ntop, inet_pton): Change portability warning's wording.
36968         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
36969         Invoke gl_CHECK_NEXT_HEADERS.
36970         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
36971         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
36972         set ARPA_INET_H.
36973         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36974         * modules/arpa_inet (Description): No longer only for systems that
36975         lack it.
36976         (Depends-on): Add include_next.
36977         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
36978         HAVE_ARPA_INET_H.
36979
36980 2008-04-29  Jim Meyering  <meyering@redhat.com>
36981
36982         * modules/mkdir (License): Re-license as LGPLv2+.
36983
36984 2008-04-29  Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/rawmemchr (Maintainer): Set to Eric.
36987         * modules/strchrnul (Maintainer): Likewise.
36988
36989 2008-04-29  Simon Josefsson  <simon@josefsson.org>
36990
36991         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
36992         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
36993
36994         * modules/arpa_inet (arpa/inet.h): Use them.
36995
36996 2008-04-28  Eric Blake  <ebb9@byu.net>
36997
36998         Test getndelim2.
36999         * modules/getndelim2-tests: New file.
37000         * tests/test-getndelim2.c: Likewise.
37001         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
37002         stream.
37003         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
37004
37005         * MODULES.html.sh: Document new module.
37006
37007 2008-04-20  Bruno Haible  <bruno@clisp.org>
37008
37009         * lib/c-stack.c (die): Use raise.
37010         * modules/c-stack (Depends-on): Add raise.
37011
37012 2008-04-28  Bruno Haible  <bruno@clisp.org>
37013
37014         Expect rpmatch to be declared.
37015         * lib/yesno.c (rpmatch): Remove declaration.
37016
37017         Declare rpmatch.
37018         * lib/stdlib.in.h (rpmatch): New declaration.
37019         * lib/rpmatch.c: Include <stdlib.h> first.
37020         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
37021         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
37022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
37023         HAVE_RPMATCH.
37024         * modules/rpmatch (Depends-on): Add stdlib, extensions.
37025         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37026         (Include): Set to <stdlib.h>.
37027         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
37028         HAVE_RPMATCH.
37029         * NEWS: Document the change.
37030
37031 2008-04-28  Bruno Haible  <bruno@clisp.org>
37032
37033         Change rpmatch to use nl_langinfo when appropriate.
37034         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
37035         (N_): New macro.
37036         (localized_pattern): New function/macro.
37037         (try): Remove match, nomatch arguments. Copy the pattern into safe
37038         memory before caching it.
37039         (rpmatch): Use localized_pattern. Add translator comments.
37040         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
37041         Suggested by Eric Blake.
37042         * modules/rpmatch (Depends-on): Add stdbool.
37043
37044 2008-04-28  Eric Blake  <ebb9@byu.net>
37045
37046         Add rawmemchr module, matching glibc.
37047         * modules/string (Makefile.am): New indicator.
37048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
37049         * lib/string.in.h (rawmemchr): Declare when appropriate.
37050         * modules/rawmemchr: New file.
37051         * m4/rawmemchr.m4: Likewise.
37052         * lib/rawmemchr.c: Likewise.
37053         * modules/rawmemchr-tests: Likewise.
37054         * tests/test-rawmemchr.c: Likewise.
37055         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
37056         module.
37057         * modules/strchrnul (Depends-on): Add rawmemchr.
37058         * lib/strchrnul.c (strchrnul): Optimize a corner case.
37059
37060         Whitespace cleanup.
37061         * tests/test-strchrnul.c: Reindent.
37062         * lib/strchrnul.c: Likewise.
37063
37064         Optimize and test strchrnul.
37065         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
37066         * modules/strchrnul-tests: New file.
37067         * tests/test-strchrnul.c: Likewise.
37068
37069         Remove intprops dependency.
37070         * modules/memchr (Depends-on): Remove intprops.
37071         * modules/memrchr (Depends-on): Likewise.
37072         * modules/memchr2 (Depends-on): Likewise.
37073         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
37074         * lib/memrchr.c (__memrchr): Likewise.
37075         * lib/memrchr2.c (memchr2): Likewise.
37076         Reported by Simon Josefsson.
37077
37078 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37079
37080         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
37081         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37082
37083 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37084
37085         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
37086
37087         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
37088
37089         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
37090
37091         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
37092         declarations.
37093         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
37094
37095         * m4/inet_pton.m4: Don't check for header files.
37096
37097         * m4/inet_ntop.m4: Don't check for header files.
37098
37099 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37100
37101         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
37102         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
37103         trigger for cygwin).
37104         Reported by Bruno Haible  <bruno@clisp.org>.
37105
37106 2008-04-28  Bruno Haible  <bruno@clisp.org>
37107
37108         * doc/posix-functions/strdup.texi: Mention mingw problem.
37109
37110 2008-04-27  Bruno Haible  <bruno@clisp.org>
37111
37112         * modules/stat-time-tests (Depends-on): Add sleep.
37113         * tests/test-stat-time.c (force_unlink): New function.
37114         (cleanup): Use it.
37115         (test_mtime): Remove the ctime related tests.
37116         (test_ctime): New function, containing the ctime related tests.
37117         (main): Call test_ctime, except on native Windows platforms.
37118
37119 2008-04-27  Bruno Haible  <bruno@clisp.org>
37120
37121         * lib/rpmatch.c (rpmatch): Add some comments.
37122         Reported by James Youngman <jay@gnu.org>.
37123
37124 2008-04-27  Bruno Haible  <bruno@clisp.org>
37125
37126         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37127         quiet NaNs.
37128
37129 2008-04-27  Bruno Haible  <bruno@clisp.org>
37130
37131         Make test-yesno.sh work on mingw.
37132         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
37133         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
37134         (main): Set stdin to binary mode.
37135         * modules/yesno-tests (Depends-on): Add binary-io.
37136
37137 2008-04-27  Bruno Haible  <bruno@clisp.org>
37138
37139         Fix 'isfinite' on x86, x86_64, ia64 platforms.
37140         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
37141         argument that lie outside the IEEE 854 domain.
37142         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
37143         (gl_ISFINITE): Use it.
37144         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
37145
37146 2008-04-27  Bruno Haible  <bruno@clisp.org>
37147
37148         Allow local renaming in config.h.
37149         * lib/memrchr.c (memrchr): Don't undefine outside libc.
37150
37151 2008-04-27  Bruno Haible  <bruno@clisp.org>
37152
37153         * lib/memchr.c (__memchr): Change type of 'i'.
37154         * lib/memchr2.c (memchr2): Likewise.
37155
37156 2008-04-26  Eric Blake  <ebb9@byu.net>
37157         and Bruno Haible  <bruno@clisp.org>
37158
37159         Optimize and test memrchr.
37160         * modules/memrchr (Depends-on): Add intprops.
37161         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
37162         * modules/memrchr-tests: New file.
37163         * tests/test-memrchr.c: New file.
37164
37165 2008-04-26  Bruno Haible  <bruno@clisp.org>
37166
37167         Add tentative support for DragonFly BSD.
37168         * lib/stdio-impl.h: Add macros for DragonFly BSD.
37169         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
37170         fp.
37171         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37172         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
37173         * lib/fpurge.c (fpurge): Likewise.
37174         * lib/freadable.c (freaadable): Likewise.
37175         * lib/freadahead.c (freadahead): Likewise.
37176         * lib/freading.c (freading): Likewise.
37177         * lib/freadptr.c (freadptr): Likewise.
37178         * lib/freadseek.c (freadptrinc): Likewise.
37179         * lib/fseeko.c (fseeko): Likewise.
37180         * lib/fseterr.c (fseterr): Likewise.
37181         * lib/fwritable.c (fwritable): Likewise.
37182         * lib/fwriting.c (fwriting): Likewise.
37183
37184 2008-04-26  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/stdio-impl.h: New file.
37187         * lib/fbufmode.c: Include stdio-impl.h.
37188         (fbufmode): Use fp_, remove redundant #defines.
37189         * lib/fflush.c: Include stdio-impl.h.
37190         (clear_ungetc_buffer): Remove redundant #defines.
37191         * lib/fpurge.c: Include stdio-impl.h.
37192         (fpurge): Remove redundant #defines.
37193         * lib/freadable.c: Include stdio-impl.h.
37194         (freadable): Remove redundant #defines.
37195         * lib/freadahead.c: Include stdio-impl.h.
37196         (freadahead): Remove redundant #defines.
37197         * lib/freading.c: Include stdio-impl.h.
37198         (freading): Remove redundant #defines.
37199         * lib/freadptr.c: Include stdio-impl.h.
37200         (freadptr): Remove redundant #defines.
37201         * lib/freadseek.c: Include stdio-impl.h.
37202         (freadptrinc): Remove redundant #defines.
37203         * lib/fseeko.c: Include stdio-impl.h.
37204         (rpl_fseeko): Remove redundant #defines.
37205         * lib/fseterr.c: Include stdio-impl.h.
37206         (fseterr): Remove redundant #defines.
37207         * lib/fwritable.c: Include stdio-impl.h.
37208         (fwritable: Remove redundant #defines.
37209         * lib/fwriting.c: Include stdio-impl.h.
37210         (fwriting): Remove redundant #defines.
37211         * modules/fbufmode (Files): Add lib/stdio-impl.h.
37212         * modules/fflush (Files): Likewise.
37213         * modules/fpurge (Files): Likewise.
37214         * modules/freadable (Files): Likewise.
37215         * modules/freadahead (Files): Likewise.
37216         * modules/freading (Files): Likewise.
37217         * modules/freadptr (Files): Likewise.
37218         * modules/freadseek (Files): Likewise.
37219         * modules/fseeko (Files): Likewise.
37220         * modules/fseterr (Files): Likewise.
37221         * modules/fwritable (Files): Likewise.
37222         * modules/fwriting (Files): Likewise.
37223
37224 2008-04-26  Bruno Haible  <bruno@clisp.org>
37225
37226         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37227         restore_seek_optimization, update_fpos_cache): New functions, extracted
37228         from rpl_fflush.
37229         (rpl_fflush): Use them.
37230         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
37231         (gl_REPLACE_FFLUSH): Use it.
37232
37233 2008-04-26  Bruno Haible  <bruno@clisp.org>
37234
37235         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
37236         on Solaris.
37237         * tests/test-xstrtoimax.sh: Likewise.
37238         * tests/test-xstrtoumax.sh: Likewise.
37239         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37240
37241 2008-04-26  Bruno Haible  <bruno@clisp.org>
37242
37243         * modules/memchr-tests: New file.
37244         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
37245
37246 2008-04-26  Eric Blake  <ebb9@byu.net>
37247             Bruno Haible  <bruno@clisp.org>
37248
37249         * lib/memchr.c: Include intprops.h.
37250         (__memchr): Optimize parallel detection of matching bytes. Rename local
37251         variables. Add explanatory comments.
37252
37253 2008-04-26  Bruno Haible  <bruno@clisp.org>
37254
37255         Fix module 'memchr', broken since 2000-10-28.
37256         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
37257
37258 2008-04-26  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
37261         comments.
37262
37263 2008-04-25  Eric Blake  <ebb9@byu.net>
37264
37265         Use native fstatat on cygwin 1.7.0.
37266         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
37267         first.
37268
37269 2008-04-23  Eric Blake  <ebb9@byu.net>
37270
37271         Improve memchr2 performance.
37272         * lib/memchr2.c (memchr2): Further optimize parallel detection of
37273         NUL bytes.
37274         * modules/memchr2 (Depends-on): Use intprops.h.
37275
37276 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37277
37278         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
37279         an inline function instead of a CPP macro.  Patch by Ben Pfaff
37280         <blp@cs.stanford.edu>.
37281
37282 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37283
37284         * lib/arpa_inet.in.h: New file.
37285
37286         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
37287         (Makefile.am): Sed in substitute header file.
37288
37289         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
37290         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
37291
37292         * modules/inet_ntop (configure.ac): Use
37293         gl_ARPA_INET_MODULE_INDICATOR.
37294
37295         * modules/inet_pton (configure.ac): Use
37296         gl_ARPA_INET_MODULE_INDICATOR.
37297
37298 2008-04-22  Jim Meyering  <meyering@redhat.com>
37299
37300         * modules/verify (License): Re-license as LGPLv2+.
37301
37302 2008-04-22  Simon Josefsson  <simon@josefsson.org>
37303
37304         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
37305         parameter to void* as per POSIX standard (MinGW uses char*).
37306
37307 2008-04-21  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37310         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37311         Define to replacements if REPLACE_ISWCNTRL is 1.
37312         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
37313         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
37314         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
37315         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
37316         what it fixes.
37317         * doc/posix-functions/iswalpha.texi: Likewise.
37318         * doc/posix-functions/iswblank.texi: Likewise.
37319         * doc/posix-functions/iswcntrl.texi: Likewise.
37320         * doc/posix-functions/iswdigit.texi: Likewise.
37321         * doc/posix-functions/iswgraph.texi: Likewise.
37322         * doc/posix-functions/iswlower.texi: Likewise.
37323         * doc/posix-functions/iswprint.texi: Likewise.
37324         * doc/posix-functions/iswpunct.texi: Likewise.
37325         * doc/posix-functions/iswspace.texi: Likewise.
37326         * doc/posix-functions/iswupper.texi: Likewise.
37327         * doc/posix-functions/iswxdigit.texi: Likewise.
37328         Reported by Alain Guibert.
37329
37330 2008-04-21  Bruno Haible  <bruno@clisp.org>
37331
37332         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37333         Patch by Alain Guibert.
37334
37335 2008-04-21  Bruno Haible  <bruno@clisp.org>
37336
37337         Fix test failures on mingw.
37338         * tests/test-xstrtol.c (print_no_progname): New function.
37339         (main): Install it in error_print_progname hook.
37340         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37341         * tests/test-xstrtoimax.sh: Likewise.
37342         * tests/test-xstrtoumax.sh: Likewise.
37343
37344 2008-04-21  Bruno Haible  <bruno@clisp.org>
37345
37346         Fix test failure on mingw.
37347         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37348
37349 2008-04-21  Bruno Haible  <bruno@clisp.org>
37350
37351         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37352         Actually assign a value.
37353
37354 2008-04-20  Bruno Haible  <bruno@clisp.org>
37355
37356         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37357         take 2.
37358         * lib/canonicalize.c (canonicalize_file_name): Elide if the
37359         'canonicalize-lgpl' module is also used.
37360         * lib/canonicalize-lgpl.c: Undo last change.
37361         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
37362
37363 2008-04-20  Bruno Haible  <bruno@clisp.org>
37364
37365         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
37366         config.h. Provide _mkdir based fallback for mingw.
37367         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
37368         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
37369         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
37370         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
37371         rather than defining mkdir in config.h.
37372         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
37373         (gl_SYS_STAT_H_DEFAULTS): New macro.
37374         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
37375         HAVE_IO_H any more.
37376         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
37377         HAVE_DECL_MKDIR and HAVE_IO_H.
37378
37379 2008-04-20  Bruno Haible  <bruno@clisp.org>
37380
37381         * lib/isapipe.c: Port to native Windows platforms.
37382
37383 2008-04-20  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
37386
37387 2008-04-21  Eric Blake  <ebb9@byu.net>
37388
37389         Work around preprocessors that don't handle UINTMAX_MAX.
37390         * lib/memchr2.c (memchr2): Avoid embedded #if.
37391         Reported by Alain Guibert, fix suggested by Bruno Haible.
37392
37393 2008-04-21  Simon Josefsson  <simon@josefsson.org>
37394
37395         * doc/posix-functions/strftime.texi (strftime): Explain better
37396         Windows incompatibility.  Suggested by Micah Cowan
37397         <micah@cowan.name>.
37398
37399 2008-04-20  Bruno Haible  <bruno@clisp.org>
37400
37401         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
37402         unistr/u8-mblen.
37403
37404 2008-04-20  Bruno Haible  <bruno@clisp.org>
37405
37406         Fix test failure on platforms with non-GNU iconv.
37407         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
37408         (U_TO_U8): Use it, rather than u16_to_u8.
37409         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
37410         units at the end of the input string.
37411         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
37412
37413 2008-04-20  Bruno Haible  <bruno@clisp.org>
37414
37415         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
37416         when the resulting length is 0.
37417         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
37418
37419 2008-04-20  Bruno Haible  <bruno@clisp.org>
37420
37421         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
37422         works.
37423         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
37424
37425 2008-04-20  Bruno Haible  <bruno@clisp.org>
37426
37427         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
37428         * modules/tsearch-tests (configure.ac): Test for initstate function.
37429
37430 2008-04-20  Bruno Haible  <bruno@clisp.org>
37431
37432         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
37433         for nlink_t if missing.
37434         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
37435
37436 2008-04-19  Bruno Haible  <bruno@clisp.org>
37437
37438         Work around snprintf bug on Linux libc5.
37439         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
37440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37441         gl_SNPRINTF_SIZE1.
37442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37443         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
37444         that test failed.
37445         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
37446         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
37447         * modules/snprintf (Files): Add m4/printf.m4.
37448         * modules/vsnprintf (Files): Likewise.
37449         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
37450         * doc/posix-functions/vsnprintf.texi: Likewise.
37451
37452 2008-04-19  Bruno Haible  <bruno@clisp.org>
37453
37454         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
37455         from 0.0058 to less than 10^-7.
37456
37457 2008-04-19  Bruno Haible  <bruno@clisp.org>
37458
37459         Fix rounding when a precision is given.
37460         * lib/vasnprintf.c (is_borderline): New function.
37461         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
37462         9...9x.
37463         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
37464         %e, %g.
37465         * tests/test-vasprintf-posix.c (test_function): Likewise.
37466         * tests/test-snprintf-posix.h (test_function): Likewise.
37467         * tests/test-sprintf-posix.h (test_function): Likewise.
37468         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37469         * tests/test-printf-posix.h (test_function): Likewise.
37470         * tests/test-printf-posix.output: Update.
37471         Reported by John Darrington <john@darrington.wattle.id.au> via
37472         Ben Pfaff <blp@cs.stanford.edu>.
37473
37474 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37475
37476         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37477         Suggested by Bruno Haible <bruno@clisp.org>.
37478
37479 2008-04-17  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37482         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37483         implementation.
37484         Patch by Bruce Merry <bmerry@gmail.com>.
37485
37486 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37487
37488         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37489         doesn't work under Windows.
37490
37491 2008-04-16  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37494         New macros.
37495         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37496         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37497         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37498         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37499         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37500         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37501         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37502         macros.
37503         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37504         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37505         Northern Sotho, Uighur.
37506
37507 2008-04-16  Bruno Haible  <bruno@clisp.org>
37508
37509         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
37510         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
37511         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
37512         Reported by Daniel Bergström <daniel@octocode.com>.
37513
37514 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
37515             Bruno Haible  <bruno@clisp.org>
37516
37517         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
37518         function.
37519         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
37520         New functions, mostly extracted from gl_locale_name_default.
37521         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
37522
37523 2008-04-16  Eric Blake  <ebb9@byu.net>
37524
37525         Adjust strtod detection to catch glibc 2.7 bug.
37526         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
37527         Reported by John Gatewood Ham.
37528
37529 2008-04-16  Bruno Haible  <bruno@clisp.org>
37530
37531         Add tentative support for Linux libc5.
37532         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
37533         * lib/fpurge.c (fpurge): Likewise.
37534         * lib/freadable.c (freadable): Likewise.
37535         * lib/freadahead.c (freadahead): Likewise.
37536         * lib/freading.c (freading): Likewise.
37537         * lib/freadptr.c (freadptr): Likewise.
37538         * lib/freadseek.c (freadptrinc): Likewise.
37539         * lib/fseeko.c (rpl_fseeko): Likewise.
37540         * lib/fseterr.c (fseterr): Likewise.
37541         * lib/fwritable.c (fwritable): Likewise.
37542         * lib/fwriting.c (fwriting): Likewise.
37543         Reported by Alain Guibert <alguibert+bts@free.fr>.
37544
37545 2008-04-15  Bruno Haible  <bruno@clisp.org>
37546
37547         * modules/mathl (configure.ac): Define module indicator.
37548
37549 2008-04-15  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/logl.c (logl): Remove unused variables.
37552
37553 2008-04-15  Bruno Haible  <bruno@clisp.org>
37554
37555         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
37556         fails.
37557
37558 2008-04-15  Bruno Haible  <bruno@clisp.org>
37559
37560         * lib/trim.c (trim2): Fix argument of isspace() macro.
37561
37562 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
37563
37564         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
37565         to 0.
37566         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
37567
37568 2008-04-14  Bruno Haible  <bruno@clisp.org>
37569
37570         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
37571         AC_LANG_PROGRAM argument.
37572         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
37573         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
37574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37575         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37576         * m4/math_h.m4 (gl_MATH_H): Likewise.
37577         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37578         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37579         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37580         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
37581         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37582         * m4/regex.m4 (gl_REGEX): Likewise.
37583         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
37584         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
37585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
37587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37588         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37590         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37591
37592 2008-04-14  Jim Meyering  <meyering@redhat.com>
37593
37594         test-strtod: fix typos: s/abs/fabs/
37595         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
37596
37597 2008-04-13  Bruno Haible  <bruno@clisp.org>
37598
37599         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
37600         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
37601         module is also used and while not building the reloc-wrapper.
37602
37603 2008-04-13  Bruno Haible  <bruno@clisp.org>
37604
37605         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
37606
37607 2008-04-13  Bruno Haible  <bruno@clisp.org>
37608
37609         Fix AIX compilation failure introduced on 2008-04-02.
37610         * tests/test-frexp.c (exp): Undefine before redefining.
37611         * tests/test-frexpl.c (exp): Likewise.
37612
37613 2008-04-13  Bruno Haible  <bruno@clisp.org>
37614
37615         Work around a HP-UX stdio bug.
37616         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
37617         * tests/test-ftello.c (main): Likewise.
37618         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
37619         * doc/posix-functions/ftello.texi: Likewise.
37620
37621 2008-04-13  Bruno Haible  <bruno@clisp.org>
37622
37623         Make test-signbit pass on HP-UX/hppa.
37624         * tests/test-signbit.c (minus_zerol): New variable.
37625         (test_signbitl): Use it.
37626
37627 2008-04-13  Bruno Haible  <bruno@clisp.org>
37628
37629         Make truncl work on OSF/1 4.0.
37630         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
37631         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37632         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
37634         HAVE_DECL_TRUNCL.
37635         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
37636         HAVE_DECL_TRUNCL.
37637         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
37638
37639 2008-04-13  Bruno Haible  <bruno@clisp.org>
37640
37641         * lib/unictype.h: Remove trailing comma from enumeration definitions.
37642
37643 2008-04-13  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
37646         expression, so as to avoid HP-UX 11 cc compiler bug.
37647
37648 2008-04-13  Bruno Haible  <bruno@clisp.org>
37649
37650         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
37651
37652 2008-04-13  Bruno Haible  <bruno@clisp.org>
37653
37654         * lib/git-merge-changelog.c: Remove empty declaration outside of
37655         functions.
37656
37657 2008-04-13  Bruno Haible  <bruno@clisp.org>
37658
37659         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
37660
37661 2008-04-13  Bruno Haible  <bruno@clisp.org>
37662
37663         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
37664         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
37665         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
37666         also if it exists but lacks definitions of the SHUT_* macros.
37667         * modules/sys_socket (Description): Update.
37668         Reported by Elbert Pol <e.pol@chello.nl>.
37669
37670 2008-04-13  Bruno Haible  <bruno@clisp.org>
37671
37672         * lib/localcharset.c (OS2): Don't redefine if already defined.
37673         Reported by Elbert Pol <e.pol@chello.nl>.
37674
37675 2008-04-13  Bruno Haible  <bruno@clisp.org>
37676
37677         * lib/binary-io.h [__EMX__]: Include <io.h>.
37678         Reported by Elbert Pol <e.pol@chello.nl>.
37679
37680 2008-04-12  Bruno Haible  <bruno@clisp.org>
37681
37682         * lib/fpucw.h: Enable the definitions also for x86_64.
37683         Needed for NetBSD/x86_64.
37684         Reported by Thomas Klausner <tk@giga.or.at>.
37685
37686 2008-04-12  Bruno Haible  <bruno@clisp.org>
37687
37688         * tests/test-strtod.c: Include isnand.h.
37689         (main): Use isnand instead of isnan.
37690         Reported by Jim Meyering.
37691
37692 2008-04-12  Bruno Haible  <bruno@clisp.org>
37693
37694         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
37695         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37696
37697 2008-04-12  Jim Meyering  <meyering@redhat.com>
37698
37699         * m4/math_h.m4 (gl_MATH_H): Fix typos.
37700
37701 2008-04-12  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
37704         Reported by Elbert Pol <e.pol@chello.nl>.
37705
37706 2008-04-12  Eric Blake  <ebb9@byu.net>
37707
37708         Work around Solaris 10 math.h bug.
37709         * m4/math_h.m4 (gl_MATH_H): Check for bug.
37710         (gl_MATH_H_DEFAULTS): Set up default.
37711         * modules/math (Makefile.am): Replace new indicators.
37712         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
37713         * tests/test-math.c (main): Test this.
37714         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
37715         * doc/posix-headers/math.texi (math.h): Mention bug.
37716         Reported by Nelson H. F. Beebe and Jim Meyering.
37717
37718 2008-04-11  Bruno Haible  <bruno@clisp.org>
37719
37720         Adapt to future versions of Apple GCC.
37721         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
37722         Reported by Peter O'Gorman <peter@pogma.com>.
37723
37724 2008-04-11  Bruno Haible  <bruno@clisp.org>
37725
37726         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
37727
37728 2008-04-11  Bruno Haible  <bruno@clisp.org>
37729
37730         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
37731
37732         * modules/getaddrinfo-tests (Makefile.am): Define
37733         test_getaddrinfo_LDADD.
37734
37735 2008-04-11  Bruno Haible  <bruno@clisp.org>
37736
37737         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
37738         (init): Fix syntax error.
37739         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
37740         is declared.
37741
37742 2008-04-11  Bruno Haible  <bruno@clisp.org>
37743
37744         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
37745         * modules/glob (Depends-on): Add stdbool.
37746
37747 2008-04-11  Bruno Haible  <bruno@clisp.org>
37748
37749         * lib/trim.c: Include <string.h>.
37750
37751 2008-04-11  Eric Blake  <ebb9@byu.net>
37752
37753         Avoid compile failure on OS/2.
37754         * lib/regex_internal.h (internal_function): Disable optimization
37755         on OS/2 (__EMX__), where it caused compiler error.
37756         Reported by Elbert Pol.
37757
37758 2008-04-11  Bruno Haible  <bruno@clisp.org>
37759
37760         Flush the standard error stream before aborting. Needed on mingw.
37761         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
37762         * tests/test-array_list.c (ASSERT): Likewise.
37763         * tests/test-array_oset.c (ASSERT): Likewise.
37764         * tests/test-avltree_list.c (ASSERT): Likewise.
37765         * tests/test-avltree_oset.c (ASSERT): Likewise.
37766         * tests/test-avltreehash_list.c (ASSERT): Likewise.
37767         * tests/test-binary-io.c (ASSERT): Likewise.
37768         * tests/test-byteswap.c (ASSERT): Likewise.
37769         * tests/test-c-ctype.c (ASSERT): Likewise.
37770         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
37771         * tests/test-c-strcasestr.c (ASSERT): Likewise.
37772         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
37773         * tests/test-c-strstr.c (ASSERT): Likewise.
37774         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
37775         * tests/test-canonicalize.c (ASSERT): Likewise.
37776         * tests/test-carray_list.c (ASSERT): Likewise.
37777         * tests/test-ceilf1.c (ASSERT): Likewise.
37778         * tests/test-ceilf2.c (ASSERT): Likewise.
37779         * tests/test-ceill.c (ASSERT): Likewise.
37780         * tests/test-count-one-bits.c (ASSERT): Likewise.
37781         * tests/test-fbufmode.c (ASSERT): Likewise.
37782         * tests/test-fflush2.c (ASSERT): Likewise.
37783         * tests/test-floorf1.c (ASSERT): Likewise.
37784         * tests/test-floorf2.c (ASSERT): Likewise.
37785         * tests/test-floorl.c (ASSERT): Likewise.
37786         * tests/test-fopen.c (ASSERT): Likewise.
37787         * tests/test-fpending.c (ASSERT): Likewise.
37788         * tests/test-fprintf-posix.c (ASSERT): Likewise.
37789         * tests/test-fpurge.c (ASSERT): Likewise.
37790         * tests/test-freadable.c (ASSERT): Likewise.
37791         * tests/test-freadahead.c (ASSERT): Likewise.
37792         * tests/test-freading.c (ASSERT): Likewise.
37793         * tests/test-freadptr.c (ASSERT): Likewise.
37794         * tests/test-freadptr2.c (ASSERT): Likewise.
37795         * tests/test-freadseek.c (ASSERT): Likewise.
37796         * tests/test-freopen.c (ASSERT): Likewise.
37797         * tests/test-frexp.c (ASSERT): Likewise.
37798         * tests/test-frexpl.c (ASSERT): Likewise.
37799         * tests/test-fseek.c (ASSERT): Likewise.
37800         * tests/test-fseeko.c (ASSERT): Likewise.
37801         * tests/test-fstrcmp.c (ASSERT): Likewise.
37802         * tests/test-ftell.c (ASSERT): Likewise.
37803         * tests/test-ftello.c (ASSERT): Likewise.
37804         * tests/test-func.c (ASSERT): Likewise.
37805         * tests/test-fwritable.c (ASSERT): Likewise.
37806         * tests/test-fwriting.c (ASSERT): Likewise.
37807         * tests/test-getdelim.c (ASSERT): Likewise.
37808         * tests/test-getline.c (ASSERT): Likewise.
37809         * tests/test-i-ring.c (ASSERT): Likewise.
37810         * tests/test-iconv-utf.c (ASSERT): Likewise.
37811         * tests/test-iconv.c (ASSERT): Likewise.
37812         * tests/test-isfinite.c (ASSERT): Likewise.
37813         * tests/test-isnand.c (ASSERT): Likewise.
37814         * tests/test-isnanf.c (ASSERT): Likewise.
37815         * tests/test-isnanl.h (ASSERT): Likewise.
37816         * tests/test-ldexpl.c (ASSERT): Likewise.
37817         * tests/test-linked_list.c (ASSERT): Likewise.
37818         * tests/test-linkedhash_list.c (ASSERT): Likewise.
37819         * tests/test-localename.c (ASSERT): Likewise.
37820         * tests/test-lseek.c (ASSERT): Likewise.
37821         * tests/test-mbscasecmp.c (ASSERT): Likewise.
37822         * tests/test-mbscasestr1.c (ASSERT): Likewise.
37823         * tests/test-mbscasestr2.c (ASSERT): Likewise.
37824         * tests/test-mbscasestr3.c (ASSERT): Likewise.
37825         * tests/test-mbscasestr4.c (ASSERT): Likewise.
37826         * tests/test-mbschr.c (ASSERT): Likewise.
37827         * tests/test-mbscspn.c (ASSERT): Likewise.
37828         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
37829         * tests/test-mbspbrk.c (ASSERT): Likewise.
37830         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
37831         * tests/test-mbsrchr.c (ASSERT): Likewise.
37832         * tests/test-mbsspn.c (ASSERT): Likewise.
37833         * tests/test-mbsstr1.c (ASSERT): Likewise.
37834         * tests/test-mbsstr2.c (ASSERT): Likewise.
37835         * tests/test-mbsstr3.c (ASSERT): Likewise.
37836         * tests/test-memchr2.c (ASSERT): Likewise.
37837         * tests/test-memmem.c (ASSERT): Likewise.
37838         * tests/test-open.c (ASSERT): Likewise.
37839         * tests/test-printf-frexp.c (ASSERT): Likewise.
37840         * tests/test-printf-frexpl.c (ASSERT): Likewise.
37841         * tests/test-printf-posix.c (ASSERT): Likewise.
37842         * tests/test-quotearg.c (ASSERT): Likewise.
37843         * tests/test-rbtree_list.c (ASSERT): Likewise.
37844         * tests/test-rbtree_oset.c (ASSERT): Likewise.
37845         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
37846         * tests/test-round1.c (ASSERT): Likewise.
37847         * tests/test-roundf1.c (ASSERT): Likewise.
37848         * tests/test-roundl.c (ASSERT): Likewise.
37849         * tests/test-signbit.c (ASSERT): Likewise.
37850         * tests/test-sleep.c (ASSERT): Likewise.
37851         * tests/test-snprintf-posix.c (ASSERT): Likewise.
37852         * tests/test-snprintf.c (ASSERT): Likewise.
37853         * tests/test-sprintf-posix.c (ASSERT): Likewise.
37854         * tests/test-stat-time.c (ASSERT): Likewise.
37855         * tests/test-strcasestr.c (ASSERT): Likewise.
37856         * tests/test-strerror.c (ASSERT): Likewise.
37857         * tests/test-striconv.c (ASSERT): Likewise.
37858         * tests/test-striconveh.c (ASSERT): Likewise.
37859         * tests/test-striconveha.c (ASSERT): Likewise.
37860         * tests/test-strsignal.c (ASSERT): Likewise.
37861         * tests/test-strstr.c (ASSERT): Likewise.
37862         * tests/test-strtod.c (ASSERT): Likewise.
37863         * tests/test-trunc1.c (ASSERT): Likewise.
37864         * tests/test-trunc2.c (ASSERT): Likewise.
37865         * tests/test-truncf1.c (ASSERT): Likewise.
37866         * tests/test-truncf2.c (ASSERT): Likewise.
37867         * tests/test-truncl.c (ASSERT): Likewise.
37868         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
37869         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
37870         * tests/test-vasnprintf.c (ASSERT): Likewise.
37871         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
37872         * tests/test-vasprintf.c (ASSERT): Likewise.
37873         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
37874         * tests/test-vprintf-posix.c (ASSERT): Likewise.
37875         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
37876         * tests/test-vsnprintf.c (ASSERT): Likewise.
37877         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
37878         * tests/test-wcwidth.c (ASSERT): Likewise.
37879         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
37880         * tests/test-xprintf-posix.c (ASSERT): Likewise.
37881         * tests/test-xvasprintf.c (ASSERT): Likewise.
37882         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
37883         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
37884         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
37885         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
37886         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
37887         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
37888         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
37889         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
37890         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
37891         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
37892         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
37893         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
37894         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
37895         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
37896         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
37897         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
37898         * tests/unictype/test-block_list.c (ASSERT): Likewise.
37899         * tests/unictype/test-block_of.c (ASSERT): Likewise.
37900         * tests/unictype/test-block_test.c (ASSERT): Likewise.
37901         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
37902         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
37903         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
37904         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
37905         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
37906         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
37907         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
37908         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
37909         * tests/unictype/test-combining.c (ASSERT): Likewise.
37910         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
37911         * tests/unictype/test-digit.c (ASSERT): Likewise.
37912         * tests/unictype/test-mirror.c (ASSERT): Likewise.
37913         * tests/unictype/test-numeric.c (ASSERT): Likewise.
37914         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
37915         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
37916         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
37917         * tests/unictype/test-scripts.c (ASSERT): Likewise.
37918         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
37919         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
37920         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
37921         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
37922         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
37923         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
37924         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
37925         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
37926         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
37927         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
37928         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
37929         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
37930         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
37931         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
37932         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
37933         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
37934         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
37935         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
37936         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
37937         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
37938         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
37939         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
37940         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
37941         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
37942         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
37943         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
37944         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
37945         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
37946         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
37947         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
37948         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
37949         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
37950         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
37951         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
37952         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
37953         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
37954         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
37955         Reported by Eric Blake.
37956
37957 2008-04-11  Bruno Haible  <bruno@clisp.org>
37958
37959         * lib/wchar.in.h: Tweak comment.
37960
37961 2008-04-11  Bruno Haible  <bruno@clisp.org>
37962
37963         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
37964         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
37965         gl_COMMON.
37966         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
37967
37968 2008-04-11  Bruno Haible  <bruno@clisp.org>
37969
37970         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
37971
37972 2008-04-11  Simon Josefsson  <simon@josefsson.org>
37973
37974         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
37975         of attempting to use non-existing /dev/*random.  Based on patch
37976         from Adam Strzelecki <ono@java.pl> in
37977         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
37978
37979 2008-04-08  Bruno Haible  <bruno@clisp.org>
37980
37981         Add tentative support for emx+gcc.
37982         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
37983         * lib/fpurge.c (fpurge): Likewise.
37984         * lib/freadable.c (freadable): Likewise.
37985         * lib/freadahead.c (freadahead): Likewise.
37986         * lib/freading.c (freading): Likewise.
37987         * lib/freadptr.c (freadptr): Likewise.
37988         * lib/freadseek.c (freadptrinc): Likewise.
37989         * lib/fseeko.c (rpl_fseeko): Likewise.
37990         * lib/fseterr.c (fseterr): Likewise.
37991         * lib/fwritable.c (fwritable): Likewise.
37992         * lib/fwriting.c (fwriting): Likewise.
37993         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
37994
37995 2008-04-09  Eric Blake  <ebb9@byu.net>
37996
37997         Avoid some autoconf warnings.
37998         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
37999         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
38000         * m4/afs.m4 (gl_AFS): Likewise.
38001         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
38002         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
38003         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38004         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
38005         (gl_INTEGER_TYPE_SUFFIX): Likewise.
38006         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
38007         (AC_CHECK_DECLS_ONCE): Likewise.
38008         Rename file...
38009         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
38010         gnulib-tool requires autoconf 2.59 or better.
38011         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
38012
38013 2008-04-08  Eric Blake  <ebb9@byu.net>
38014
38015         Use 'git describe --match' if present (added in git 1.5.5).
38016         * build-aux/git-version-gen: Limit result to tags that match 'v*'
38017         if possible.
38018
38019 2008-04-08  Bruno Haible  <bruno@clisp.org>
38020
38021         Add tentative support for OpenServer.
38022         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
38023         _ptr, _cnt.
38024         * lib/fpurge.c (fpurge): Likewise.
38025         * lib/freadable.c (freadable): Likewise.
38026         * lib/freadahead.c (freadahead): Likewise.
38027         * lib/freading.c (freading): Likewise.
38028         * lib/freadptr.c (freadptr): Likewise.
38029         * lib/freadseek.c (freadptrinc): Likewise.
38030         * lib/fseeko.c (rpl_fseeko): Likewise.
38031         * lib/fseterr.c (fseterr): Likewise.
38032         * lib/fwritable.c (fwritable): Likewise.
38033         * lib/fwriting.c (fwriting): Likewise.
38034         Reported by Roger Cornelius <rac@tenzing.org> and
38035         Brian K. White <brian@aljex.com>.
38036
38037 2008-04-06  Jim Meyering  <meyering@redhat.com>
38038
38039         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
38040
38041 2008-04-06  Bruno Haible  <bruno@clisp.org>
38042
38043         Avoid possible error with non-ASCII bytes in UTF-8 locales.
38044         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
38045         * tests/test-printf-posix.sh: Likewise.
38046         * tests/test-vfprintf-posix.sh: Likewise.
38047         * tests/test-vprintf-posix.sh: Likewise.
38048         * tests/test-xprintf-posix.sh: Likewise.
38049
38050 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38051
38052         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
38053         hide error from 'ls', needed on OS/2.
38054         Report by Elbert Pol <elbert.pol@gmail.com>.
38055
38056 2008-04-04  Eric Blake  <ebb9@byu.net>
38057
38058         Make test-fseeko.c failures meaningful.
38059         * tests/test-fseeko.c: Print line number on failure.
38060         * tests/test-fseek.c: Likewise.
38061         Reported by Nelson H. F. Beebe.
38062
38063         Improve strtod bug detection check.
38064         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
38065         required for Solaris 10.
38066         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
38067
38068 2008-04-04  Bruno Haible  <bruno@clisp.org>
38069
38070         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
38071         by m4/setenv.m4.
38072
38073 2008-04-03  Eric Blake  <ebb9@byu.net>
38074
38075         Ensure sane .version contents.
38076         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
38077         version string.
38078         * build-aux/git-version-gen: Improve documentation.
38079
38080         Make GNU make output nicer.
38081         * top/GNUmakefile [!_have-Makefile]: Add dependency on
38082         MAKECMDGOALS to enforce message for all command line targets.  Set
38083         srcdir for use in maint.mk.
38084
38085         Another maintainer tweak.
38086         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
38087         a target that regenerates version.
38088
38089 2008-04-03  Jim Meyering  <meyering@redhat.com>
38090
38091         vc-list-files: don't cause coreutils "make po-check" failure
38092         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38093
38094 2008-04-03  Eric Blake  <ebb9@byu.net>
38095
38096         Allow VPATH usage of vc-list-files.
38097         * build-aux/vc-list-files (scriptversion): Add timestamp.
38098         (options): Add --help, --version, -C.
38099         (CVS): Support installed cvsu.
38100
38101 2008-04-02  Bruno Haible  <bruno@clisp.org>
38102
38103         Avoid some "statement with no effect" warnings from gcc.
38104         * tests/test-wctype.c (main): Explicitly ignore unused values.
38105         Reported by Jim Meyering.
38106
38107 2008-04-02  Jim Meyering  <meyering@redhat.com>
38108
38109         Avoid some warnings from "gcc -Wshadow".
38110         * tests/test-frexp.c (exp): Define to a different identifier.
38111         * tests/test-frexpl.c (exp): Likewise.
38112
38113 2008-04-03  Jim Meyering  <meyering@redhat.com>
38114
38115         bootstrap: remove dangling *.[ch] symlinks from lib
38116         * build-aux/bootstrap [dangling symlink removal]: Move find's
38117         -depth option to precede all others, to avoid a warning.
38118         Remove *.[ch] files too, and from "$source_base" (usually lib/).
38119
38120 2008-04-02  Bruno Haible  <bruno@clisp.org>
38121
38122         Avoid some warnings from "gcc -Wshadow".
38123         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38124         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38125         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38126         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38127         Reported by Jim Meyering.
38128
38129 2008-04-01  Bruno Haible  <bruno@clisp.org>
38130
38131         Fix test to work on IRIX 6.5 with cc.
38132         * tests/test-math.c (numeric_equal): New function.
38133         (main): Use it.
38134
38135 2008-04-01  Bruno Haible  <bruno@clisp.org>
38136
38137         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
38138
38139 2008-04-01  Bruno Haible  <bruno@clisp.org>
38140
38141         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
38142         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38143         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
38144         (Depends-on): Remove math.
38145
38146         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
38147         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38148         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
38149         (Depends-on): Remove math.
38150
38151         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
38152         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38153         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
38154         (Depends-on): Remove math.
38155         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
38156         (Depends-on): Remove math.
38157
38158         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
38159         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38160         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
38161         (Depends-on): Remove math.
38162         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
38163         (Depends-on): Remove math.
38164
38165         * tests/test-round1.c: Include nan.h.
38166         (main): Use NaNd instead of NAN.
38167         * modules/round-tests (Files): Add tests/nan.h.
38168
38169         * tests/test-trunc1.c: Include nan.h.
38170         (main): Use NaNd instead of NAN.
38171         * modules/trunc-tests (Files): Add tests/nan.h.
38172
38173         * tests/test-roundf1.c: Include nan.h.
38174         (main): Use NaNf instead of NAN.
38175         * modules/roundf-tests (Files): Add tests/nan.h.
38176
38177         * tests/test-truncf1.c: Include nan.h.
38178         (main): Use NaNf instead of NAN.
38179         * modules/truncf-tests (Files): Add tests/nan.h.
38180
38181         * tests/test-ceilf1.c: Include nan.h.
38182         (main): Use NaNf instead of NAN.
38183         * modules/ceilf-tests (Files): Add tests/nan.h.
38184
38185         * tests/test-floorf1.c: Include nan.h.
38186         (main): Use NaNf instead of NAN.
38187         * modules/floorf-tests (Files): Add tests/nan.h.
38188
38189         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
38190         (main): Use NaNf instead of NAN.
38191         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
38192
38193         * tests/test-isnand.c: Include nan.h instead of <math.h>.
38194         (main): Use NaNd instead of NAN.
38195         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
38196
38197         * tests/test-frexp.c: Include nan.h.
38198         (main): Use NaNd instead of NAN.
38199         * modules/frexp-tests (Files): Add tests/nan.h.
38200
38201         * lib/isnan.c: Don't include <math.h>.
38202         (FUNC): Don't use NAN macro.
38203         * modules/isnand-nolibm (Depends-on): Remove math.
38204         * modules/isnanf-nolibm (Depends-on): Remove math.
38205         * modules/isnanl (Depends-on): Remove math.
38206         * modules/isnanl-nolibm (Depends-on): Remove math.
38207
38208         * tests/nan.h: New file.
38209
38210 2008-04-01  Eric Blake  <ebb9@byu.net>
38211
38212         Fix typos.
38213         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
38214         values to be the right type.
38215
38216         For now, cater to gnulib strtod inaccuracies.
38217         * tests/test-strtod.c (main): Allow 1-ulp error on expected
38218         fractional results.  While not as nice from a QoI perspective, it
38219         is a quicker patch than correctly implementing decimal to binary
38220         rounding.
38221
38222 2008-03-31  Eric Blake  <ebb9@byu.net>
38223
38224         Guarantee a definition of NAN.
38225         * lib/math.in.h (NAN): Define if missing.
38226         * tests/test-math.c (main): Test it.
38227         * doc/posix-headers/math.texi (math.h): Document this.
38228         * lib/isnan.c (rpl_isnand): Use it.
38229         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
38230         * tests/test-floorf1.c (NaN): Likewise.
38231         * tests/test-frexp.c (NaN): Likewise.
38232         * tests/test-isnand.c (NaN): Likewise.
38233         * tests/test-isnanf.c (NaN): Likewise.
38234         * tests/test-round1.c (NaN): Likewise.
38235         * tests/test-roundf1.c (NaN): Likewise.
38236         * tests/test-snprintf-posix.h (NaN): Likewise.
38237         * tests/test-sprintf-posix.h (NaN): Likewise.
38238         * tests/test-trunc1.c (NaN): Likewise.
38239         * tests/test-truncf1.c (NaN): Likewise.
38240         * tests/test-vasnprintf-posix.c (NaN): Likewise.
38241         * tests/test-vasprintf-posix.c (NaN): Likewise.
38242         * modules/isnand-nolibm (Depends-on): Add math.
38243         * modules/isnanf-nolibm (Depends-on): Likewise.
38244         * modules/isnanl (Depends-on): Likewise.
38245         * modules/isnanl-nolibm (Depends-on): Likewise.
38246         * modules/snprintf-posix-tests (Depends-on): Likewise.
38247         * modules/sprintf-posix-tests (Depends-on): Likewise.
38248         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
38249         * modules/vsprintf-posix-tests (Depends-on): Likewise.
38250         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
38251         * modules/vasprintf-posix-tests (Depends-on): Likewise.
38252
38253 2008-03-31  Bruno Haible  <bruno@clisp.org>
38254
38255         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
38256         * doc/posix-functions/strtod.texi: Likewise.
38257
38258 2008-03-31  Bruno Haible  <bruno@clisp.org>
38259
38260         * tests/test-strtod.c (main): Don't use C99 syntax.
38261
38262 2008-03-31  Bruno Haible  <bruno@clisp.org>
38263
38264         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
38265         Reported by Eric Blake.
38266
38267 2008-03-31  Jim Meyering  <meyering@redhat.com>
38268
38269         Don't compare actual signbit return values.
38270         * tests/test-strtod.c (main): Rather, compare only their
38271         zero/non-zero nature.
38272
38273 2008-03-31  Eric Blake  <ebb9@byu.net>
38274
38275         More strtod documentation.
38276         * doc/posix-functions/strtod.texi (strtod): Interpret more test
38277         failures as distinct bugs.
38278
38279 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38280
38281         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
38282         Problem reported by Erik Benada in
38283         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
38284
38285 2008-03-30  Bruno Haible  <bruno@clisp.org>
38286
38287         * tests/test-strtod.c: Add comments about which assertion fails on which
38288         platform.
38289         * doc/posix-functions/strtod.texi: Add info about many more platforms.
38290
38291 2008-03-30  Eric Blake  <ebb9@byu.net>
38292
38293         Test signbit behavior on zeros.
38294         * tests/test-signbit.c (test_signbitf): Add tests for zero.
38295         (test_signbitd, test_signbitl): Likewise.
38296
38297         More strtod touchups.
38298         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
38299         sign of negative underflow, for now.  Use .5, not .1.
38300         * doc/posix-functions/strtod.texi (strtod): Mention these
38301         limitations.
38302         Reported by Jim Meyering.
38303
38304 2008-03-30  Bruno Haible  <bruno@clisp.org>
38305
38306         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
38307         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
38308
38309 2008-03-30  Bruno Haible  <bruno@clisp.org>
38310
38311         Avoid failure when attempting to return empty iconv results on some
38312         platforms.
38313         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
38314         allocation, don't report ENOMEM when the resulting string is empty.
38315
38316 2008-03-30  Bruno Haible  <bruno@clisp.org>
38317
38318         Fix buffer overrun.
38319         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
38320         Don't consider the width for tmp_length. Check count against tmp_length
38321         before doing the padding. Ensure enough allocation during padding.
38322
38323 2008-03-30  Eric Blake  <ebb9@byu.net>
38324
38325         strtod touchups.
38326         * lib/strtod.c (strtod): Avoid compiler warnings.
38327         Reported by Jim Meyering.
38328
38329 2008-03-30  Bruno Haible  <bruno@clisp.org>
38330
38331         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
38332         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38333         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38334         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38335         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38336         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38337         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38338         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38339
38340         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38341         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38342         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38343         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38344         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38345         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38346         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38347         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38348
38349         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38350         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38351         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38352         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38353         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38354         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38355         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38356         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38357
38358         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
38359         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
38360
38361         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
38362         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
38363
38364         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
38365         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
38366
38367         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
38368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
38369         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
38370
38371         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
38372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
38373         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
38374
38375         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
38376         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
38377         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
38378
38379         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
38380         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
38381         * modules/vasprintf (Depends-on): Add EOVERFLOW.
38382
38383         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
38384         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
38385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
38386         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
38387         (Depends-on): Add EOVERFLOW.
38388         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
38389         (Depends-on): Add EOVERFLOW.
38390         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38391         (Depends-on): Add EOVERFLOW.
38392         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38393         (Depends-on): Add EOVERFLOW.
38394         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38395         (Depends-on): Add EOVERFLOW.
38396         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38397         (Depends-on): Add EOVERFLOW.
38398         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38399         (Depends-on): Add EOVERFLOW.
38400         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38401         (Depends-on): Add EOVERFLOW.
38402
38403         * lib/sprintf.c (EOVERFLOW): Remove fallback.
38404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
38405         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
38406
38407         * lib/snprintf.c (EOVERFLOW): Remove fallback.
38408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
38409         * modules/snprintf (Depends-on): Add EOVERFLOW.
38410
38411         * lib/poll.c (EOVERFLOW): Remove fallback.
38412         * modules/poll (Depends-on): Add EOVERFLOW.
38413
38414         * lib/getugroups.c (EOVERFLOW): Remove fallback.
38415         * modules/getugroups (Depends-on): Add EOVERFLOW.
38416
38417         * lib/getdelim.c (EOVERFLOW): Remove fallback.
38418         * modules/getdelim (Depends-on): Add EOVERFLOW.
38419
38420         * lib/ftell.c (EOVERFLOW): Remove fallback.
38421         * modules/ftell (Depends-on): Add EOVERFLOW.
38422
38423         * lib/fprintf.c (EOVERFLOW): Remove fallback.
38424         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
38425         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
38426
38427         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
38428
38429         * modules/EOVERFLOW-tests: New file.
38430         * tests/test-EOVERFLOW.c: New file.
38431
38432         * modules/EOVERFLOW: New file.
38433         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
38434
38435 2008-03-30  Bruno Haible  <bruno@clisp.org>
38436
38437         Fix bug introduced on 2007-06-10.
38438         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
38439         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
38440
38441 2008-03-30  Bruno Haible  <bruno@clisp.org>
38442
38443         Improve freadseek's efficiency after ungetc.
38444         * lib/freadseek.c: Include freadahead.h.
38445         (freadptrinc): New function, extracted from freadseek.
38446         (freadseek): Use it in a loop. Use freadahead to determine the number
38447         of loop iterations.
38448         * modules/freadseek (Depends-on): Add freadahead.
38449         (configure.ac): Require AC_C_INLINE.
38450
38451 2008-03-30  Bruno Haible  <bruno@clisp.org>
38452
38453         * lib/freadseek.c (freadseek): Don't ignore the return value of
38454         freadptr.
38455
38456 2008-03-29  Eric Blake  <ebb9@byu.net>
38457
38458         Add hex float support.
38459         * modules/strtod (Depends-on): Add c-ctype.
38460         (Link): Mention POW_LIB.
38461         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
38462         whitespace between 'e' and exponent.
38463         * tests/test-strtod.c (main): Enable hex float tests.
38464         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
38465         now provides.
38466
38467         Document various strtod bugs, with some fixes.
38468         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38469         "-0x", "inf", "nan", and hex constants.
38470         * doc/posix-functions/atof.texi (atof): Likewise.
38471         * modules/stdlib (Makefile.am): Support strtod.
38472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38473         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38474         detect additional strtod bugs.
38475         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38476         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38477         bool where appropriate.  Parse 'inf' and 'nan'.
38478         * tests/test-strtod.c: New file.
38479         * modules/strtod (Depends-on): Add stdbool, stdlib.
38480         (configure.ac): Turn on module indicator.
38481         * modules/strtod-tests: New module.
38482
38483 2008-03-29  Eric Blake  <ebb9@byu.net>
38484
38485         Fix ftell on mingw.
38486         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38487         * modules/ftell-tests (Depends-on): Add binary-io.
38488         * modules/ftello-tests (Depends-on): Likewise.
38489         * tests/test-ftell.c (main): Enhance test to cover behavior after
38490         ungetc.  Enforce binary mode.
38491         * tests/test-ftello.c (main): Likewise.
38492
38493         Pass test-freadseek on cygwin.
38494         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38495         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38496         ungetc buffer.
38497
38498         * tests/test-fflush2.c (main): Fix typo.
38499
38500 2008-03-29  Bruno Haible  <bruno@clisp.org>
38501
38502         * tests/test-fflush2.c (main): Temporarily disable the contents of
38503         this test.
38504         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38505         Reported by Eric Blake.
38506
38507 2008-03-28  Simon Josefsson  <simon@josefsson.org>
38508
38509         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
38510         (GC_SHA224_DIGEST_SIZE): Add.
38511
38512         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
38513         (gc_hash_digest_length): Likewise.
38514         (gc_hash_buffer): Likewise.
38515
38516 2008-03-25  Bruno Haible  <bruno@clisp.org>
38517
38518         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
38519         detail which gettext release to use.
38520         Reported by Simon Josefsson.
38521
38522 2008-03-26  Jim Meyering  <meyering@redhat.com>
38523
38524         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
38525         * modules/gnumakefile (clean-GNUmakefile): Also, use
38526         test ... && ... || : syntax rather than if-then ... fi.
38527
38528         gnumakefile: Don't double-quote-expand $(VPATH) value.
38529         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
38530
38531 2008-03-24  Eric Blake  <ebb9@byu.net>
38532
38533         Alter GNUmakefile to install into top directory.
38534         * modules/maintainer-makefile: Split, and add dependency...
38535         * modules/gnumakefile: to this new module.
38536         * build-aux/GNUmakefile: Move...
38537         * top/GNUmakefile: ...here.
38538         * build-aux/maint.mk: Move...
38539         * top/maint.mk: ...here.
38540         * MODULES.html.sh (Support for maintaining...): Document new
38541         module.
38542
38543 2008-03-23  Bruno Haible  <bruno@clisp.org>
38544
38545         * gnulib-tool: New options --vc-files, --no-vc-files.
38546         (func_usage): Document them.
38547         (vc_files): New variable.
38548         (func_import): Consider vc_files.
38549         (func_create_testdir): Set vc_files to empty.
38550         Suggested by Jim Meyering and Karl Berry.
38551
38552 2008-03-23  Bruno Haible  <bruno@clisp.org>
38553
38554         Fix regex compilation error on HP-UX 11.
38555         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
38556         * modules/regex (Files): Add m4/mbstate_t.m4.
38557         Reported by Ton Voon <ton.voon@altinity.com>.
38558
38559 2008-03-23  Bruno Haible  <bruno@clisp.org>
38560
38561         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
38562
38563 2008-03-23  Eric Blake  <ebb9@byu.net>
38564             Bruno Haible  <bruno@clisp.org>
38565
38566         Install files from top/ in the destination directory.
38567         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38568         augmentation also for the files from top/.
38569         (func_import, func_create_testdir): Rewrite file names:
38570         top/filename -> filename.
38571
38572 2008-03-23  Bruno Haible  <bruno@clisp.org>
38573
38574         Tweak "gnulib --version" output.
38575         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
38576
38577 2008-03-23  Bruno Haible  <bruno@clisp.org>
38578
38579         Tweak "gnulib --version" output.
38580         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
38581         rather than contents of ChangeLog, when possible.
38582
38583 2008-03-21  Eric Blake  <ebb9@byu.net>
38584
38585         More --version tweaks.
38586         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
38587         date of last ChangeLog entry.
38588
38589 2008-03-21  Jim Meyering  <meyering@redhat.com>
38590
38591         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
38592
38593 2008-03-20  Eric Blake  <ebb9@byu.net>
38594
38595         VPATH fix.
38596         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
38597
38598 2008-03-20  Simon Josefsson  <simon@josefsson.org>
38599
38600         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
38601         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
38602
38603 2008-03-20  Eric Blake  <ebb9@byu.net>
38604
38605         Sync GNUmakefile with coreutils.
38606         * build-aux/GNUmakefile (have-Makefile): Rename...
38607         (_have-Makefile): ...to this, for namespace consideration.
38608         (GNUmakefile.cfg): Include, if present.
38609         (_autoreconf): Define a default.
38610         (_is-dist-target): New rule for rebuilds to pick up intra-release
38611         version.
38612         (maint-cfg.mk): Rename...
38613         (cfg.mk): ...to this.
38614
38615 2008-03-18  Jim Meyering  <meyering@redhat.com>
38616
38617         New script and module: mktempd
38618         * MODULES.html.sh (maint+release support): Add mktempd.
38619         * build-aux/mktempd: New file.
38620         * modules/mktempd: New file.
38621
38622 2008-03-15  Jim Meyering  <meyering@redhat.com>
38623
38624         Undo last change.
38625         * lib/sha1.c, lib/md5.c: 63 != ~63.
38626         Reported by Andreas Schwab.
38627
38628         sha1.c, md5.c: Hoist a redundant expression.
38629         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
38630         "ctx->buflen" only once, before calling *_process_block.
38631         * lib/md5.c (md5_process_bytes): Likewise.
38632
38633 2008-03-14  Eric Blake  <ebb9@byu.net>
38634
38635         Bump copyright year in files generated by gnulib-tool.
38636         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
38637         gnulib-tool, rather than hard-coding it.
38638
38639         Fix 'gnulib-tool --version' output to work with git.
38640         * gnulib-tool (func_gnulib_dir): New function, extracted from...
38641         (startup): ...here.
38642         (func_version): Use it to invoke git-version-gen, rather than
38643         relying on CVS keyword expansion.  Modernize wording.
38644         (cvsdatestamp, last_checkin_date, version): Kill unused
38645         variables.
38646
38647 2008-03-12  Jim Meyering  <meyering@redhat.com>
38648
38649         Recognize optional cast of the argument to free.
38650         * build-aux/useless-if-before-free: Update regexps.
38651
38652         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
38653
38654 2008-03-11  Bruno Haible  <bruno@clisp.org>
38655
38656         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
38657         by a single package.
38658         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
38659         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
38660         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
38661         Reported by Sam Steingold <sds@gnu.org>.
38662
38663 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38664
38665         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
38666         repositories.
38667
38668 2008-03-11  Bruno Haible  <bruno@clisp.org>
38669
38670         Avoid conflicts between local macro definitions.
38671         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38672         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
38673
38674 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
38675             Bruno Haible  <bruno@clisp.org>
38676
38677         Make va_copy work with some version of xlc on AIX 5.1.
38678         * lib/stdarg.in.h: New file.
38679         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
38680         On AIX, use a <stdarg.h> file substitute.
38681         * modules/stdarg (Files): Add lib/stdarg.in.h.
38682         (Depends-on): Add include_next.
38683         (Makefile.am): Build a stdarg.h substitute if requested.
38684         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
38685
38686 2008-03-10  Bruno Haible  <bruno@clisp.org>
38687
38688         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
38689         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38690         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38691
38692 2008-03-10  Bruno Haible  <bruno@clisp.org>
38693
38694         * modules/stdlib (Depends-on): Add include_next, remove
38695         absolute-header.
38696
38697 2008-03-09  Bruno Haible  <bruno@clisp.org>
38698
38699         * lib/freadahead.h (freadahead): Document more precisely.
38700         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
38701         the sum of both buffer sizes.
38702         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
38703         * NEWS: Document the change.
38704
38705 2008-03-09  Bruno Haible  <bruno@clisp.org>
38706
38707         Extend freadptr to return also the buffer size.
38708         * lib/freadptr.h (freadptr): Add sizep argument.
38709         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
38710         (freadptr): Add sizep argument. Determine buffer size like freadahead
38711         does.
38712         * tests/test-freadptr.c: Don't include freadahead.h.
38713         (main): Adapt for new calling convention of freadptr.
38714         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
38715         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
38716         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
38717         tests/test-freadptr2.sh.
38718         (Depends): Remove freadahead.
38719         (TESTS): Add test-freadptr2.sh.
38720         (check_PROGRAMS): Add test-freadptr2.
38721
38722 2008-03-09  Bruno Haible  <bruno@clisp.org>
38723
38724         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
38725         Report and solution by Simon Josefsson.
38726
38727 2008-03-06  Bruno Haible  <bruno@clisp.org>
38728
38729         Make fflush after ungetc work on BSD platforms.
38730         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
38731         * tests/test-fflush2.c: New file.
38732         * tests/test-fflush2.sh: New file.
38733         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
38734         tests/test-fflush2.c.
38735         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
38736         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
38737
38738 2008-03-06  Eric Blake  <ebb9@byu.net>
38739
38740         Likewise for ftello.
38741         * modules/ftello (Dependencies): Add extensions.
38742         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
38743
38744 2008-03-06  Bruno Haible  <bruno@clisp.org>
38745
38746         * modules/fseeko (Dependencies): Add extensions.
38747         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
38748         Needed on glibc systems.
38749
38750 2008-03-06  Bruno Haible  <bruno@clisp.org>
38751
38752         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
38753         email address.
38754         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38755
38756 2008-03-06  Bruno Haible  <bruno@clisp.org>
38757
38758         * users.txt: Add libgnupdf.
38759
38760 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38761
38762         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
38763         (Header File Substitutes, Function Substitutes,
38764         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
38765         (Build robot for gnulib): Fix typo.
38766
38767 2008-03-06  Bruno Haible  <bruno@clisp.org>
38768
38769         * doc/gnulib-tool.texi (VCS Issues): Small updates.
38770         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38771
38772 2008-03-06  Bruno Haible  <bruno@clisp.org>
38773
38774         * doc/func.texi: New file, extracted from doc/gnulib.texi.
38775         * doc/gnulib.texi: Include it.
38776
38777 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38778
38779         * modules/func (License): Change license to unlimited; there was
38780         no LGPL parts in the module anyway.
38781
38782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38783
38784         * modules/__func__: Renamed to modules/func.
38785         * modules/__func__-tests: Renamed to modules/func-tests.
38786         * tests/test-__func__.c: Renamed to tests/test-func.c.
38787         * m4/__func__.m4: Renamed to m4/func.m4.
38788         * doc/gnulib.texi (__func__): Section renamed to func.
38789         Suggested by Eric Blake <ebb9@byu.net>.
38790
38791 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38792
38793         * doc/gnulib.texi (__func__): Use C99 terminology when talking
38794         about __func__.  Make example self-contained.  Suggested by Eric
38795         Blake <ebb9@byu.net>.
38796
38797         * tests/test-__func__.c (main): Avoid extraneous () around __func.
38798         Suggested by Eric Blake <ebb9@byu.net>.
38799
38800 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38801
38802         * modules/__func__: New file.
38803         * modules/__func__-tests: New file.
38804         * tests/test-__func__.c: New file.
38805         * m4/__func__.m4: New file.
38806         * doc/gnulib.texi (__func__): Document __func__ module.
38807
38808 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38809
38810         * modules/byteswap (License): Re-license as LGPLv2+.
38811
38812 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38813
38814         * doc/Makefile: Add pdf target.
38815
38816 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38817
38818         * modules/inline (License): Use 'unlimited', since there are only
38819         *.m4 files in this module.
38820
38821 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38822             Bruno Haible  <bruno@clisp.org>
38823
38824         Add support for HP C 7.1 on OpenVMS 8.3.
38825         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
38826
38827 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38828
38829         Update VMS specifics.
38830         * lib/getopt.c [VMS]: Remove include of unixlib.h.
38831
38832 2008-03-02  Jim Meyering  <meyering@redhat.com>
38833
38834         Remove the last dependency on the "free" module.
38835         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
38836         Reported by Bob Proulx.
38837
38838         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
38839
38840         Remove useless "if" tests before free.  Deprecate "free" module.
38841         * doc/posix-functions/free.texi: Mention that this
38842         module is no longer useful.
38843         * modules/free (Notice): Say this module is obsolete.
38844         * modules/readutmp (Depends-on): Remove free.
38845         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
38846         * lib/putenv.c (putenv): Likewise.
38847         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
38848         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
38849         * tests/test-c-strcasestr.c (main): Likewise.
38850         * tests/test-c-strstr.c (main): Likewise.
38851         * tests/test-mbscasestr1.c (main): Likewise.
38852         * tests/test-mbscasestr2.c (main): Likewise.
38853         * tests/test-mbsstr1.c (main): Likewise.
38854         * tests/test-mbsstr2.c (main): Likewise.
38855         * tests/test-memmem.c (main): Likewise.
38856         * tests/test-strcasestr.c (main): Likewise.
38857         * tests/test-striconv.c (main): Likewise.
38858         * tests/test-striconveh.c (main): Likewise.
38859         * tests/test-striconveha.c (main): Likewise.
38860         * tests/test-strstr.c (main): Likewise.
38861
38862         * build-aux/git-version-gen: Adjust a comment and the Usage string.
38863
38864         bootstrap: sync from coreutils again
38865         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
38866
38867 2008-03-01  Jim Meyering  <meyering@redhat.com>
38868
38869         bootstrap: sync from coreutils
38870         * build-aux/bootstrap (update_po_files): Copy a .po file into place
38871         also when the target doesn't exist.
38872
38873 2008-03-01  Eric Blake  <ebb9@byu.net>
38874
38875         Fix bugs in last patch.
38876         * lib/memchr2.c (memchr2): Fix typo.
38877         * tests/test-memchr2.c: Test previous bug, and don't use GNU
38878         extension.
38879         Reported by Bruce Korb.
38880
38881         New module 'memchr2'.
38882         * modules/memchr2: New file.
38883         * modules/memchr2-tests: Likewise.
38884         * lib/memchr2.h: Likewise.
38885         * lib/memchr2.c: Likewise, based on memchr.c.
38886         * tests/test-memchr2.c: New test.
38887         * MODULES.html.sh (String handling): Add memchr2.
38888
38889 2008-02-29  Bruno Haible  <bruno@clisp.org>
38890
38891         * modules/freadseek-tests: New file.
38892         * tests/test-freadseek.sh: New file.
38893         * tests/test-freadseek.c: New file.
38894
38895         New module 'freadseek'.
38896         * modules/freadseek: New file.
38897         * lib/freadseek.h: New file.
38898         * lib/freadseek.c: New file.
38899         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
38900
38901 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38902
38903         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
38904         wydawca.
38905
38906         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
38907         program_invocation_name and program_invocation_short_name are
38908         present.
38909
38910 2008-02-28  Bruno Haible  <bruno@clisp.org>
38911
38912         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
38913         * tests/test-freadptr.sh: Also test non-seekable stdin.
38914
38915 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
38916
38917         * build-aux/bootstrap (source_base, m4_base)
38918         (doc_base, tests_base): New variables.
38919         (gnulib_tool_options): Do not hardcode base directories, use
38920         the above variables instead.
38921
38922 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
38923
38924         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
38925
38926 2008-02-28  Bruno Haible  <bruno@clisp.org>
38927
38928         * modules/freadptr-tests: New file.
38929         * tests/test-freadptr.sh: New file.
38930         * tests/test-freadptr.c: New file.
38931
38932         New module 'freadptr'.
38933         * modules/freadptr: New file.
38934         * lib/freadptr.h: New file.
38935         * lib/freadptr.c: New file.
38936         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
38937
38938 2008-02-26  Karl Berry  <karl@freefriends.org>
38939
38940         Sync from Libtool:
38941         * libltdl/argz.c (argz_add, argz_count): New functions.
38942         * libltdl/argz.in.h: Declare them.
38943         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
38944
38945 2008-02-22  Bruno Haible  <bruno@clisp.org>
38946
38947         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
38948         is a pointer type.  Needed for HP-UX 10.
38949         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
38950         * doc/posix-functions/gmtime_r.texi: Likewise.
38951         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38952
38953 2008-02-24  Bruno Haible  <bruno@clisp.org>
38954
38955         * modules/environ-tests: New file.
38956         * tests/test-environ.c: New file.
38957
38958         New module 'environ'.
38959         * modules/environ: New file.
38960         * lib/unistd.in.h (environ): New declaration.
38961         * m4/environ.m4: New file.
38962         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
38963         after use.
38964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
38965         HAVE_DECL_ENVIRON.
38966         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
38967         HAVE_DECL_ENVIRON.
38968         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
38969         wrong claim that 'environ' is missing on some systems.
38970         * modules/execute (Depends-on): Add environ.
38971         * lib/execute.c (environ): Remove fallback declaration.
38972         * modules/pipe (Depends-on): Add environ.
38973         * lib/pipe.c (environ): Remove fallback declaration.
38974         * modules/setenv (Depends-on): Add environ.
38975         * lib/setenv.c (environ): Remove fallback declaration.
38976         * modules/unsetenv (Depends-on): Add environ.
38977         * lib/unsetenv.c (environ): Remove fallback declaration.
38978         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
38979         m4/environ.m4.
38980         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
38981         (gl_PREREQ_UNSETENV): Likewise.
38982
38983 2008-02-24  Bruno Haible  <bruno@clisp.org>
38984
38985         * doc/posix-functions/environ.texi: Document the MacOS X problem.
38986
38987 2008-02-20  Bob Proulx  <bob@proulx.com>
38988
38989         Enable use of older two part flavor 'git describe'.
38990         * build-aux/git-version-gen: If using the older two part flavor of
38991         git version then recreate the third part now present in the
38992         newer three part flavor of git describe.
38993
38994 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
38995
38996         * lib/fts.c (fts_build): Typo correction to comment.
38997
38998 2008-02-17  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
39001         generating no-op conflicts.
39002
39003 2008-02-17  Bruno Haible  <bruno@clisp.org>
39004
39005         Speed up by 10%.
39006         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
39007         result_entries, rather than an index-based loop.
39008
39009 2008-02-17  Bruno Haible  <bruno@clisp.org>
39010
39011         Speed up by 25%.
39012         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
39013         'hashcode_cached'.
39014         (entry_create): New function.
39015         (entry_hashcode): Use the cached hashcode if possible.
39016         (read_changelog_file, try_split_merged_entry): Use entry_create.
39017
39018 2008-02-17  Bruno Haible  <bruno@clisp.org>
39019
39020         Speed up from O(n^2) to O(n) for long ChangeLog files.
39021         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
39022         (read_changelog_file): Change implementation of entries_reversed list
39023         to rbtreehash.
39024         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
39025
39026 2008-02-17  Bruno Haible  <bruno@clisp.org>
39027
39028         New option --split-merged-entry.
39029         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
39030         (find_paragraph_end, try_split_merged_entry): New functions.
39031         (long_options): Add option --split-merged-entry.
39032         (usage): Document option --split-merged-entry.
39033         (main): Implement option --split-merged-entry.
39034         Reported by Eric Blake.
39035
39036 2008-02-17  Bruno Haible  <bruno@clisp.org>
39037
39038         * lib/git-merge-changelog.c: Include c-strstr.h.
39039         (main): Support the "git pull --rebase" situation.
39040         * modules/git-merge-changelog (Depends-on): Add c-strstr.
39041         Reported by Eric Blake.
39042
39043 2008-02-16  Eric Blake  <ebb9@byu.net>
39044
39045         Avoid doubling \ in common case of "c-maybe" quoting style.
39046         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
39047         eliding outer quotes.
39048         * lib/quotearg.h: Document this.
39049         * tests/test-quotearg.c (result_strings, inputs, results_g)
39050         (flag_results, locale_results): Test it by adding a new string to
39051         each test group.
39052         (compare_strings): Test new string.
39053
39054 2008-02-13  Eric Blake  <ebb9@byu.net>
39055
39056         Avoid trigraph quoting in default output.
39057         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
39058         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
39059         unless explicitly requested.
39060         * tests/test-quotearg.c (flag_results, main): Add additional tests.
39061
39062 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
39063
39064         Don't rely on signed integer overflowing to negative value.
39065         * lib/getugroups.c (getugroups): Include <limits.h>.
39066         Instead, compare against INT_MAX, and increment only if the test passes.
39067
39068 2008-02-13  Jim Meyering  <meyering@redhat.com>
39069         and Eric Blake  <ebb9@byu.net>
39070
39071         Avoid shadowing warning and compile errors on Linux.
39072         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
39073         forwarding macros on Linux.
39074         (dcgettext): Define a stub, for Linux.
39075         (results_g, main): Avoid warnings.
39076
39077 2008-02-12  Eric Blake  <ebb9@byu.net>
39078
39079         Silence warning in last patch.
39080         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
39081
39082         Quotearg part 4: add tests, fix c-maybe colon quoting.
39083         * lib/quotearg.h: Improve documentation.
39084         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
39085         escapes when adding outer quotes.  When quoting trigraphs, use
39086         valid C notation.  When quoting NUL, omit extra characters if next
39087         character is not digit.  Alter prototype.
39088         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
39089         callers.
39090         * modules/quotearg-tests: New module.
39091         * tests/test-quotearg.c: New test.
39092
39093 2008-02-07  Eric Blake  <ebb9@byu.net>
39094
39095         Quotearg part 3: add flag to control outer quote elision.
39096         * lib/quotearg.h (c_maybe_quoting_style): New style.
39097         (enum quoting_flags): Better documentation of flags.
39098         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
39099         c-maybe style.
39100         (quotearg_buffer_restyled): Handle new flag to elide outer
39101         quotes.
39102
39103         Quotearg part 2: add flag that can control NUL elision.
39104         * lib/quotearg.h (set_quoting_flags): New prototype.
39105         * lib/quotearg.c (struct quoting_options): Add flag field.
39106         (set_quoting_flags): New function.
39107         (quotearg_buffer_restyled): Add flags parameter.
39108         (quotearg_alloc_mem): Set the flag if length cannot be returned.
39109         (quotearg_n_options): Set the flag, since length cannot be
39110         returned.
39111         (quoting_options_from_style): Default flags correctly.
39112
39113         Quotearg part 1: more wrappers, restore quotearg_char state.
39114         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
39115         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
39116         (quotearg_colon_mem): New wrappers.
39117         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
39118         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
39119         functions.
39120         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39121         (quotearg_colon_mem): New functions.
39122
39123 2008-02-11  Bruno Haible  <bruno@clisp.org>
39124
39125         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39126         library in the current directory: it does not work with parallel make.
39127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39128
39129 2008-02-11  Bruno Haible  <bruno@clisp.org>
39130
39131         * .gitattributes: New file.
39132
39133 2008-02-11  Jim Meyering  <meyering@redhat.com>
39134
39135         useless-if-before-free: Fix reversed exit values.
39136         * build-aux/useless-if-before-free: Use correct values
39137         for EXIT_MATCH and EXIT_NO_MATCH.
39138
39139         * build-aux/useless-if-before-free: Close stdout carefully.
39140
39141 2008-02-10  Bruno Haible  <bruno@clisp.org>
39142
39143         New module 'git-merge-changelog'.
39144         * modules/git-merge-changelog: New file.
39145         * lib/git-merge-changelog.c: New file.
39146
39147 2008-02-10  Jim Meyering  <meyering@redhat.com>
39148
39149         useless-if-before-free: New option: --list (-l).
39150
39151         useless-if-before-free: Don't exit immediately upon open failure.
39152         * build-aux/useless-if-before-free: Exit 2 for errors.
39153         Upon failure to open a file, don't exit immediately.
39154         Rather, just warn and continue with any remaining files.
39155
39156 2008-02-10  Bruno Haible  <bruno@clisp.org>
39157
39158         New abstract list operation 'node_set_value'.
39159         * lib/gl_list.h (gl_list_node_set_value): New function.
39160         (struct gl_list_implementation): New field node_set_value.
39161         * lib/gl_list.c (gl_list_node_set_value): New function.
39162         * lib/gl_array_list.c (gl_array_node_set_value): New function.
39163         (gl_array_list_implementation): Update.
39164         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
39165         (gl_carray_list_implementation): Update.
39166         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
39167         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39168         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39169         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
39170         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39171         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39172         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39173         Update.
39174         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39175         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
39176         (gl_sublist_list_implementation): Update.
39177
39178 2008-02-10  Bruno Haible  <bruno@clisp.org>
39179
39180         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
39181         Needed when ELEMENT is #defined to 'some_type *'.
39182
39183 2008-02-10  Jim Meyering  <meyering@redhat.com>
39184
39185         New script and module: useless-if-before-free
39186         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
39187         * build-aux/useless-if-before-free: New file.
39188         * modules/useless-if-before-free: New file.
39189
39190         * build-aux/gitlog-to-changelog: Use committer date, not author date.
39191
39192         xstrtol_error: Fix typo.
39193         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
39194         s/exit_failure/exit_status/.
39195
39196 2008-02-09  Jim Meyering  <meyering@redhat.com>
39197
39198         New script and module: gitlog-to-changelog
39199         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
39200         * modules/gitlog-to-changelog: New file.
39201         * build-aux/gitlog-to-changelog: New file.
39202
39203 2008-02-08  Jim Meyering  <meyering@redhat.com>
39204
39205         Avoid two "parameter unused" warnings.
39206         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
39207         Mark "st" as used.
39208
39209         Use "git COMMAND", not "git-COMMAND".
39210         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
39211         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
39212         * build-aux/git-version-gen: Use "git status", not "git-status".
39213
39214 2008-02-07  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
39217         Avoids a crash on Windows Vista.
39218         Reported by Adam Strzelecki <ono@java.pl> via
39219         Simon Josefsson <simon@josefsson.org>.
39220
39221 2008-02-06  Bruno Haible  <bruno@clisp.org>
39222
39223         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
39224         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
39225         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
39226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
39227         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39229         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
39230         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
39231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39238         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
39239         left-adjust flag.
39240         * tests/test-snprintf-posix.h (test_function): Likewise.
39241         * tests/test-sprintf-posix.h (test_function): Likewise.
39242         * tests/test-vasprintf-posix.c (test_function): Likewise.
39243         * doc/posix-functions/fprintf.texi: Update.
39244         * doc/posix-functions/printf.texi: Update.
39245         * doc/posix-functions/snprintf.texi: Update.
39246         * doc/posix-functions/sprintf.texi: Update.
39247         * doc/posix-functions/vfprintf.texi: Update.
39248         * doc/posix-functions/vprintf.texi: Update.
39249         * doc/posix-functions/vsnprintf.texi: Update.
39250         * doc/posix-functions/vsprintf.texi: Update.
39251         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39252
39253 2008-02-06  Bruno Haible  <bruno@clisp.org>
39254
39255         Fix bug introduced on 2008-01-26.
39256         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
39257
39258 2008-02-06  Bruno Haible  <bruno@clisp.org>
39259
39260         Fix bug introduced on 2007-06-10.
39261         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
39262         !NEED_PRINTF_FLAG_ZERO.
39263
39264 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
39265
39266         getloadavg: use libperfstat on AIX5
39267         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
39268
39269 2008-02-03  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/diffseq.h: Add comments about required #includes.
39272         Reported by Michael Biggs <gnulib@doubleplum.net>.
39273
39274 2008-02-01  Bruno Haible  <bruno@clisp.org>
39275
39276         * users.txt: Add gnuit.
39277
39278 2008-01-31  Bruno Haible  <bruno@clisp.org>
39279
39280         * lib/md4.c (set_uint32): Mark as inline.
39281         * lib/md5.c (set_uint32): Likewise.
39282         * lib/sha1.c (set_uint32): Likewise.
39283         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
39284         * m4/md5.m4 (gl_MD5): Likewise.
39285         * m4/sha1.m4 (gl_SHA1): Likewise.
39286
39287 2008-01-31  Jim Meyering  <meyering@redhat.com>
39288
39289         Use "sizeof VAR", rather than a literal "4".
39290         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
39291         * lib/md4.c (md4_read_ctx): Likewise.
39292         * lib/sha1.c (sha1_read_ctx): Likewise.
39293
39294 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39295
39296         * tests/test-sha1.c: New file, based on test-md5.c.
39297
39298         * modules/crypto/sha1-tests: New file.
39299
39300 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39301
39302         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
39303
39304 2008-01-31  Jim Meyering  <meyering@redhat.com>
39305
39306         Prefer "sizeof v" over the equivalent "4".
39307         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
39308         * lib/md5.c (set_uint32): Likewise.
39309         * lib/sha1.c (set_uint32): Likewise.
39310
39311 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39312
39313         * lib/sha1.c (set_uint32): Mark function as static.
39314
39315 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39316
39317         md2: clarify comments to say that alignment is not required.
39318         * lib/md2.h: Remove warning about alignment in comment.
39319         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
39320         never been required.
39321
39322 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39323
39324         md4: adapt alignment constraint fix from sha1.
39325         * lib/md4.c (set_uint32): New function, from sha1.c
39326         (md4_read_ctx): Use it.
39327         (md4_finish_ctx): Doc fix.
39328         * lib/md4.h: Doc fix.
39329
39330 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39331
39332         md5: adapt alignment constraint fix from sha1.
39333         * lib/md5.c (set_uint32): New function, from sha1.c
39334         (md5_read_ctx): Use it.
39335         (md5_finish_ctx): Doc fix.
39336         * lib/md5.h: Doc fix.
39337
39338 2008-01-30  Peter Palfrader  <weasel@debian.org>
39339
39340         sha1: remove the result buffer alignment constraint
39341         * lib/sha1.c (set_uint32): New function.
39342         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39343         constraint.
39344         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39345         * lib/sha1.h: Likewise.
39346
39347 2008-01-30  Andreas Schwab  <schwab@suse.de>
39348             Bruno Haible  <bruno@clisp.org>
39349
39350         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39351         correct definition of LDBL_MIN_EXP.
39352
39353 2008-01-30  Karl Berry  <karl@gnu.org>
39354
39355         * config/srclist-update: try to preserve x bit on updates.
39356         * config/srclistvars.sh: update for karl.
39357
39358 2008-01-29  Jim Meyering  <meyering@redhat.com>
39359
39360         vasnprintf.c: Avoid warning about unused label
39361         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
39362         "overflow" label definition and associated code with the
39363         same cpp condition that guards the sole use of that label.
39364
39365 2008-01-26  Bruno Haible  <bruno@clisp.org>
39366
39367         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
39368         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
39369         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
39370         * lib/isnanl-nolibm.h (isnanl): Likewise.
39371         Reported by Paul Eggert <eggert@cs.ucla.edu>.
39372
39373 2008-01-26  Bruno Haible  <bruno@clisp.org>
39374
39375         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
39376         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
39377
39378 2008-01-26  Bruno Haible  <bruno@clisp.org>
39379
39380         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
39381         GCC >= 4.0 built-in.
39382         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
39383
39384 2008-01-26  Bruno Haible  <bruno@clisp.org>
39385
39386         Rename isnan, applicable to 'double' only, to isnand.
39387         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
39388         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
39389         (configure.ac): Update.
39390         (Include): Replace "isnan.h" with "isnand.h".
39391         * m4/isnand.m4: Renamed from m4/isnan.m4.
39392         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
39393         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
39394         instead of isnan.c.
39395         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
39396         instead of HAVE_ISNAN_IN_LIBC.
39397         (isnand): Renamed from isnan.
39398         * lib/isnand.c: New file.
39399         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
39400         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
39401         (Makefile.am): Update.
39402         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
39403         Include isnand.h instead of isnan.h.
39404         (main): Test isnand instead of isnan.
39405         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
39406         isnan-nolibm.
39407         * modules/frexp (Depends-on): Likewise.
39408         * modules/frexp-tests (Depends-on): Likewise.
39409         * modules/frexp-nolibm (Depends-on): Likewise.
39410         * modules/frexp-nolibm-tests (Depends-on): Likewise.
39411         * modules/isfinite (Depends-on): Likewise.
39412         * modules/round-tests (Depends-on): Likewise.
39413         * modules/signbit (Depends-on): Likewise.
39414         * modules/signbit-tests (Depends-on): Likewise.
39415         * modules/snprintf-posix (Depends-on): Likewise.
39416         * modules/sprintf-posix (Depends-on): Likewise.
39417         * modules/trunc-tests (Depends-on): Likewise.
39418         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39419         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39420         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39421         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39422         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39423         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39424         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39425         * modules/vasnprintf-posix (Depends-on): Likewise.
39426         * modules/vasprintf-posix (Depends-on): Likewise.
39427         * modules/vfprintf-posix (Depends-on): Likewise.
39428         * modules/vsnprintf-posix (Depends-on): Likewise.
39429         * modules/vsprintf-posix (Depends-on): Likewise.
39430         * lib/frexp.c: Include isnand.h instead of isnan.h.
39431         (ISNAN): Set to isnand instead of isnan.
39432         * lib/isfinite.c: Include isnand.h instead of isnan.h.
39433         (gl_isfinited): Use isnand instead of isnan.
39434         * lib/signbitd.c: Include isnand.h instead of isnan.h.
39435         (gl_signbitd): Use isnand instead of isnan.
39436         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
39437         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
39438         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
39439         (main): Use isnand instead of isnan.
39440         * tests/test-round1.c: Include isnand.h.
39441         (main): Use isnand instead of isnan.
39442         * tests/test-round2.c: Include isnand.h instead of isnan.h.
39443         (ISNAN): Set to isnand instead of isnan.
39444         * tests/test-trunc1.c: Include isnand.h.
39445         (main): Use isnand instead of isnan.
39446         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
39447         (equal): Use isnand instead of isnan.
39448         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
39449         isnand-nolibm.
39450         * NEWS: Mention the change.
39451
39452 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39453             Bruno Haible  <bruno@clisp.org>
39454
39455         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
39456         the GCC builtins for signbits are present and set
39457         REPLACE_SIGNBIT_USING_GCC if so.
39458         * lib/math.in.h (signbit): Define using GCC builtins if
39459         REPLACE_SIGNBIT_USING_GCC is set.
39460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
39461         REPLACE_SIGNBIT_USING_GCC.
39462         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
39463
39464 2008-01-25  Jim Meyering  <meyering@redhat.com>
39465
39466         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
39467         * lib/poll.c: Include <config.h>, not "config.h".
39468         * tests/test-getaddrinfo.c: Likewise.
39469
39470 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39471
39472         * modules/sockets-tests: New file.
39473
39474 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39475
39476         * modules/sockets: New module, can be used to call WSA_Startup and
39477         WSA_Cleanup when needed.
39478
39479         * lib/sockets.h, lib/sockets.c: New files.
39480
39481         * m4/sockets.m4: New file.
39482
39483         * tests/test-sockets.c: New file.
39484
39485 2008-01-19  Bruno Haible  <bruno@clisp.org>
39486
39487         * doc/posix-headers: Renamed from doc/headers.
39488         * doc/posix-functions: Renamed from doc/functions.
39489         * doc/gnulib.texi: Update.
39490
39491 2008-01-19  Bruno Haible  <bruno@clisp.org>
39492
39493         * doc/glibc-functions/strcasestr.texi: Include contents of
39494         doc/functions/strcasestr.texi, fixing the list of platforms.
39495         * doc/functions/strcasestr.texi: Remove file.
39496
39497 2008-01-19  Bruno Haible  <bruno@clisp.org>
39498
39499         * doc/glibc-functions/memmem.texi: Include contents of
39500         doc/functions/memmem.texi.
39501         * doc/functions/memmem.texi: Remove file.
39502
39503 2008-01-18  Bruno Haible  <bruno@clisp.org>
39504
39505         * doc/glibc-functions/*.texi: New files.
39506         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
39507         to use the new files.
39508
39509 2008-01-17  Bruno Haible  <bruno@clisp.org>
39510
39511         * tests/test-gethostname.c (main): Fix printf statement.
39512
39513 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39514
39515         * modules/gethostname-tests: New file.
39516
39517         * tests/test-gethostname.c: New file.
39518
39519 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39520
39521         * lib/gethostname.c: Include string.h unconditionally, strncpy is
39522         used by the UNAME case.  Reported by Bruno Haible
39523         <bruno@clisp.org>.
39524
39525 2008-01-17  Eric Blake  <ebb9@byu.net>
39526
39527         Convert c-strcasestr to be more efficient.
39528         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
39529         (Depends-on): Add c-strcase, remove malloca, strnlen.
39530         * tests/test-c-strcasestr.c (main): Enhance test.
39531         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
39532
39533 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39534
39535         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
39536         Use it in creating po/Makevars.
39537
39538 2008-01-15  Simon Josefsson  <simon@josefsson.org>
39539
39540         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
39541         Applications that requires it should initialize libgcrypt
39542         manually.
39543
39544 2008-01-16  Simon Josefsson  <simon@josefsson.org>
39545
39546         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
39547
39548 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
39549
39550         Fix problem with getdate on mingw32 reported by Simon Josefsson
39551         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
39552         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
39553         tzname", when deciding whether to declare tzname.
39554         * lib/strftime.c (tzname): Likewise.
39555
39556 2008-01-15  Bruno Haible  <bruno@clisp.org>
39557
39558         Work around a MacOS X 10.5 bug in frexpl().
39559         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
39560         * doc/functions/frexpl.texi: Document the bug.
39561         Reported by Elias Pipping <pipping@gentoo.org>.
39562
39563 2008-01-14  Eric Blake  <ebb9@byu.net>
39564
39565         Touch up previous patch.
39566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
39567         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
39568
39569         Convert strcasestr module to use Two-Way algorithm.
39570         * modules/strcasestr-simple: New module, based on the old
39571         strcasestr, but with Two-Way rather than KMP.
39572         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
39573         * lib/string.in.h (rpl_strcasestr): Declare.
39574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
39575         performance.
39576         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
39577         * modules/string (Makefile.am): Support strcasestr.
39578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39579         * modules/strcasestr-tests (Depends-on): Check for alarm.
39580         * tests/test-strcasestr.c: Augment test.
39581         * lib/str-two-way.h: Clean up stray macro.
39582         * NEWS: Document new module.
39583         * MODULES.html.sh (string handling): Likewise.
39584         * doc/functions/strcasestr.texi: New file.
39585         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39586         here, since it is not a POSIX function.
39587
39588 2008-01-14  Colin Watson  <cjwatson@debian.org>
39589             Bruno Haible  <bruno@clisp.org>
39590
39591         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
39592         works fine; if not, set REPLACE_STRSIGNAL.
39593         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
39594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39595         REPLACE_STRSIGNAL.
39596         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
39597         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
39598         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
39599
39600 2008-01-14  Bruno Haible  <bruno@clisp.org>
39601
39602         * modules/strsignal (Include): Change to <string.h>.
39603
39604 2008-01-14  Colin Watson  <cjwatson@debian.org>
39605
39606         * modules/argp (Notice): Add a notice recommending to change
39607         XGETTEXT_OPTIONS.
39608         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
39609
39610 2008-01-13  Colin Watson  <cjwatson@debian.org>
39611
39612         * modules/strsignal-tests: New file.
39613         * tests/test-strsignal.c: New file.
39614
39615         * lib/strsignal.c: New file, from glibc with modifications.
39616         * lib/siglist.h: New file, from glibc with modifications.
39617         * lib/string.in.h (strsignal): New declaration.
39618         * m4/strsignal.m4: New file.
39619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39620         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
39621         * modules/strsignal: New file.
39622         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
39623         HAVE_DECL_STRSIGNAL.
39624
39625 2008-01-13  Bruno Haible  <bruno@clisp.org>
39626
39627         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
39628         locale encoding is not ASCII. Needed for OpenBSD 4.0.
39629         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39630         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39631
39632 2008-01-13  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
39635         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
39636         * lib/argp.h (__attribute__): Likewise.
39637         * lib/c-stack.c (__attribute__): Likewise.
39638         * lib/error.h (__attribute__): Likewise.
39639         * lib/fts.c (__attribute__): Likewise.
39640         * lib/openat.h (__attribute__): Likewise.
39641         * lib/stdio.in.h (__attribute__): Likewise.
39642         * lib/string.in.h (__attribute__): Likewise.
39643         * lib/utimens.c (__attribute__): Likewise.
39644         * lib/vasnprintf.h (__attribute__): Likewise.
39645         * lib/xalloc.h (__attribute__): Likewise.
39646         * lib/xprintf.h (__attribute__): Likewise.
39647         * lib/xstrtol.h (__attribute__): Likewise.
39648         * lib/xvasprintf.h (__attribute__): Likewise.
39649
39650 2008-01-12  Bruno Haible  <bruno@clisp.org>
39651
39652         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
39653         * doc/glibc-headers/a.out.texi: New file.
39654         * doc/glibc-headers/aliases.texi: New file.
39655         * doc/glibc-headers/alloca.texi: New file.
39656         * doc/glibc-headers/ar.texi: New file.
39657         * doc/glibc-headers/argp.texi: New file.
39658         * doc/glibc-headers/argz.texi: New file.
39659         * doc/glibc-headers/byteswap.texi: New file.
39660         * doc/glibc-headers/crypt.texi: New file.
39661         * doc/glibc-headers/endian.texi: New file.
39662         * doc/glibc-headers/envz.texi: New file.
39663         * doc/glibc-headers/err.texi: New file.
39664         * doc/glibc-headers/error.texi: New file.
39665         * doc/glibc-headers/execinfo.texi: New file.
39666         * doc/glibc-headers/fpu_control.texi: New file.
39667         * doc/glibc-headers/fstab.texi: New file.
39668         * doc/glibc-headers/fts.texi: New file.
39669         * doc/glibc-headers/getopt.texi: New file.
39670         * doc/glibc-headers/ieee754.texi: New file.
39671         * doc/glibc-headers/ifaddrs.texi: New file.
39672         * doc/glibc-headers/libintl.texi: New file.
39673         * doc/glibc-headers/mcheck.texi: New file.
39674         * doc/glibc-headers/mntent.texi: New file.
39675         * doc/glibc-headers/obstack.texi: New file.
39676         * doc/glibc-headers/paths.texi: New file.
39677         * doc/glibc-headers/printf.texi: New file.
39678         * doc/glibc-headers/pty.texi: New file.
39679         * doc/glibc-headers/resolv.texi: New file.
39680         * doc/glibc-headers/shadow.texi: New file.
39681         * doc/glibc-headers/sysexits.texi: New file.
39682         * doc/glibc-headers/ttyent.texi: New file.
39683
39684 2008-01-12  Jim Meyering  <meyering@redhat.com>
39685
39686         announce-gen: emit Gnulib's git-based version string.
39687         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
39688         New option --gnulib-version=V, where V is expected to be
39689         the output of running git describe in the gnulib directory.
39690         (get_tool_versions): Request feedback on xdelta.  I suspect it's
39691         not useful, and plan to stop publishing an xdelta file with each
39692         coreutils release.
39693
39694         * build-aux/announce-gen: Also check for lzma-compressed files.
39695
39696 2008-01-11  Bruno Haible  <bruno@clisp.org>
39697
39698         * tests/test-memmem.c (main): Increase maximum allowed time.
39699         * tests/test-strstr.c (main): Likewise.
39700
39701 2008-01-11  Bruno Haible  <bruno@clisp.org>
39702
39703         * doc/functions/memmem.texi: Add more precisions about platforms.
39704         * doc/functions/strstr.texi: Likewise.
39705
39706 2008-01-10  Eric Blake  <ebb9@byu.net>
39707
39708         * m4/strstr.m4: Delete cruft from copy-n-paste.
39709         Reported by Bruno Haible.
39710
39711 2008-01-10  Bruno Haible  <bruno@clisp.org>
39712
39713         Make c-strstr rely on strstr.
39714         * lib/c-strstr.c: Don't include str-kmp.h.
39715         (c_strstr): Define in terms of strstr.
39716         * modules/c-strstr (Files): Remove lib/str-kmp.h.
39717         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
39718
39719 2008-01-10  Bruno Haible  <bruno@clisp.org>
39720
39721         * doc/gnulib.texi (String Functions in C Locale): New section.
39722         * doc/c-ctype.texi: New file.
39723         * doc/c-strcase.texi: New file.
39724         * doc/c-strcaseeq.texi: New file.
39725         * doc/c-strcasestr.texi: New file.
39726         * doc/c-strstr.texi: New file.
39727         * doc/c-strtod.texi: New file.
39728         * doc/c-strtold.texi: New file.
39729
39730 2008-01-10  Eric Blake  <ebb9@byu.net>
39731
39732         * lib/relocatable.h: Fix a comment.
39733
39734 2008-01-10  Eric Blake  <ebb9@byu.net>
39735
39736         Share two-way algorithm.
39737         * lib/str-two-way.h: New file, merged from...
39738         * lib/memmem.c: ...here...
39739         * lib/strstr.c: ...and here.
39740         * modules/memmem (Files): Use it.
39741         * modules/strstr (Files): Likewise.
39742
39743         Avoid quadratic strstr implementations.
39744         * lib/strstr.c: New file.
39745         * m4/strstr.m4: Likewise.
39746         * modules/strstr: Likewise.
39747         * modules/strstr-tests: Likewise.
39748         * tests/test-strstr.c: Likewise.
39749         * lib/string.in.h (rpl_strstr): Declare.
39750         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
39751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
39752         * modules/string (Makefile.am): Likewise.
39753         * MODULES.html.sh (string handling): Mention new module.
39754         * doc/functions/strstr.texi (strstr): Document the bug.
39755
39756 2008-01-10  Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/relocatable.h (relocate): State whether result is freshly
39759         allocated or not.
39760         * lib/relocatable.c (relocate): Return a freshly allocated string
39761         instead of a pointer to a privately held string.
39762         Reported by Sylvain Beucler <beuc@gnu.org>.
39763
39764 2008-01-10  Colin Watson  <cjwatson@debian.org>
39765
39766         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
39767         s/S_ISNLK/S_ISLNK/.
39768
39769 2008-01-09  Bruno Haible  <bruno@clisp.org>
39770
39771         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
39772         and other files.
39773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
39774         if it's only a guess.
39775         * modules/memmem: Simplify by depending on memmem-simple.
39776
39777 2008-01-09  Bruno Haible  <bruno@clisp.org>
39778
39779         Work around OpenBSD 4.0 tdelete() bug.
39780         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
39781         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
39782         macros and don't redefine the enum values.
39783         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
39784         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
39785         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
39786
39787 2008-01-09  Bruno Haible  <bruno@clisp.org>
39788
39789         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
39790         (main): Don't perform the tests if setlocale did not install a UTF-8
39791         locale. Needed on OpenBSD 4.0.
39792         * modules/wcwidth-tests (Depends-on): Add localcharset.
39793
39794 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39795
39796         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
39797         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
39798         * NEWS: announce this.
39799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
39800
39801 2008-01-09  Simon Josefsson  <simon@josefsson.org>
39802         and Eric Blake  <ebb9@byu.net>
39803
39804         Add memmem-simple module.
39805         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
39806         (gl_FUNC_MEMMEM): Separate performance from presence checks.
39807         * modules/memmem-simple: New file.
39808         * modules/memmem (Description): Tweak.
39809         * MODULES.html.sh (string handling): Mention new module.
39810         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
39811         addressed by memmem-simple.
39812         * NEWS: Document the difference.
39813
39814 2008-01-09  Eric Blake  <ebb9@byu.net>
39815
39816         Give gcc some memmem optimization hints.
39817         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
39818         (strcasestr): Declare as pure.
39819         * modules/memmem (Maintainer): Claim my implementation.
39820
39821 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39822
39823         Support AIX 6.1 and higher.
39824         * build-aux/config.libpath: Likewise.
39825         * build-aux/config.rpath: Likewise.
39826
39827 2008-01-08  Jim Meyering  <meyering@redhat.com>
39828             Bruno Haible  <bruno@clisp.org>
39829
39830         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
39831         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
39832         Reported by Peter Fales in
39833         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
39834
39835 2008-01-08  Bruno Haible  <bruno@clisp.org>
39836
39837         * modules/unictype/category-of (Depends-on): Add
39838         unictype/category-none.
39839         * modules/unictype/category-and-tests (Depends-on): Add
39840         unictype/category-{L,N,Lu,Nd}.
39841         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
39842         * modules/unictype/category-or-tests (Depends-on): Add
39843         unictype/category-{L,N}.
39844         * modules/unictype/category-name-tests (Depends-on): Add
39845         unictype/category-{Z,Nl}.
39846         Reported by Simon Josefsson.
39847
39848 2008-01-08  Bruno Haible  <bruno@clisp.org>
39849
39850         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
39851         convention better.
39852         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
39853         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
39854         Reported by Peter Miller <millerp@canb.auug.org.au>.
39855
39856 2008-01-08  Eric Blake  <ebb9@byu.net>
39857
39858         Rewrite memmem to guarantee linear complexity without malloc.
39859         * lib/memmem.c (memmem): Use Two-Way rather than
39860         Knuth-Morris-Pratt, to allow O(1) space usage.
39861         (critical_factorization, two_way_short_needle)
39862         (two_way_long_needle): New functions.
39863         (knuth_morris_pratt): Delete.
39864         * modules/memmem (Depends-on): No longer need malloca or stdbool.
39865         Add stdint.
39866         * tests/test-memmem.c (main): Add tests for periodic needle and
39867         sublinear performance.
39868         * doc/functions/memmem.texi (memmem): Document other deficiencies
39869         in cygwin and older glibc.
39870
39871 2008-01-08  Bruno Haible  <bruno@clisp.org>
39872
39873         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
39874         augmentation.
39875
39876 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
39877
39878         Add a configure time option: --disable-acl.
39879         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
39880         AC_ARG_ENABLE(acl).
39881
39882 2008-01-06  Simon Josefsson  <simon@josefsson.org>
39883
39884         * tests/test-localename.c: Don't include obsolete "setenv.h".
39885
39886         * modules/localename-tests (Depends-on): Need unsetenv.
39887
39888 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39889
39890         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
39891
39892 2008-01-06  Colin Watson  <cjwatson@debian.org>
39893
39894         * users.txt: Add man-db.
39895
39896 2008-01-07  Bruno Haible  <bruno@clisp.org>
39897
39898         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
39899         previous section name.
39900
39901 2008-01-07  Bruno Haible  <bruno@clisp.org>
39902
39903         * lib/progname.c (set_program_name): Don't strip off a leading
39904         "lt-" prefix outside a .libs directory.
39905         Suggested by Paul Eggert.
39906
39907 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
39908             Bruno Haible  <bruno@clisp.org>
39909
39910         Improve memory cleanup in 'relocatable' module.
39911         * lib/relocatable.h (compute_curr_prefix): Change return type to
39912         'char *'.
39913         * lib/relocatable.c (compute_curr_prefix): Change return type to
39914         'char *'. Free curr_installdir after use.
39915         (relocate): Free curr_prefix_better after use.
39916         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
39917
39918 2008-01-01  Bruno Haible  <bruno@clisp.org>
39919
39920         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
39921         failure on older glibc systems.
39922         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39923
39924 2008-01-05  Eric Blake  <ebb9@byu.net>
39925
39926         Avoid quadratic system memmem.
39927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
39928         Reported by Ralf Wildenhues.
39929
39930         Fix memmem test for mingw.
39931         * modules/memmem-tests (configure.ac): Check for alarm.
39932         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
39933         it.
39934         * doc/functions/memmem.texi: New file.
39935         * doc/gnulib.texi (Function Substitutes): Add memmem.
39936         Reported by Bruno Haible.
39937
39938 2008-01-04  Bruno Haible  <bruno@clisp.org>
39939
39940         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
39941         Require gl_HEADER_STRINGS_H_DEFAULTS, not
39942         gl_HEADER_STRING_H_DEFAULTS.
39943
39944 2008-01-04  Eric Blake  <ebb9@byu.net>
39945
39946         Shorten duration of memmem test.
39947         * tests/test-memmem.c (main): Use alarm to declare failure if test
39948         is taking too long.
39949         Reported by Ralf Wildenhues.
39950
39951 2007-12-21  Simon Josefsson  <simon@josefsson.org>
39952
39953         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
39954         string, needed by strerror.
39955
39956 2008-01-03  Colin Watson  <cjwatson@debian.org>
39957             Bruno Haible  <bruno@clisp.org>
39958
39959         * doc/gnulib-tool.texi (Localization): New section.
39960
39961 2008-01-02  Bruno Haible  <bruno@clisp.org>
39962
39963         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
39964         variables to 'unsigned char *' type.
39965         Reported by Paul Eggert.
39966
39967 2008-01-02  Jim Meyering  <jim@meyering.net>
39968
39969         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
39970
39971 2007-12-31  Jim Meyering  <jim@meyering.net>
39972
39973         Avoid use of private FTS type name.
39974         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
39975
39976 2007-12-30  Karl Berry  <karl@gnu.org>
39977
39978         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
39979         work around defect in Texinfo and/or the standalone Info browser.
39980
39981 2007-12-30  Bruno Haible  <bruno@clisp.org>
39982
39983         Unify 5 copies of the KMP code.
39984         * lib/str-kmp.h: New file.
39985         * lib/c-strcasestr.c: Include str-kmp.h.
39986         (knuth_morris_pratt): Remove function.
39987         (c_strcasestr): Update.
39988         * lib/c-strstr.c: Include str-kmp.h.
39989         (knuth_morris_pratt): Remove function.
39990         (c_strcasestr): Update.
39991         * lib/mbscasestr.c: Include str-kmp.h.
39992         (knuth_morris_pratt_unibyte): Remove function.
39993         * lib/mbsstr.c: Include str-kmp.h.
39994         (knuth_morris_pratt_unibyte): Remove function.
39995         * lib/strcasestr.c: Include str-kmp.h.
39996         (knuth_morris_pratt): Remove function.
39997         (strcasestr): Update.
39998         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
39999         * modules/c-strstr (Files): Likewise.
40000         * modules/mbscasestr (Files): Likewise.
40001         * modules/mbsstr (Files): Likewise.
40002         * modules/strcasestr (Files): Likewise.
40003         Suggested by Paul Eggert.
40004
40005 2007-12-30  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
40008         defined.
40009
40010 2007-12-30  Bruno Haible  <bruno@clisp.org>
40011
40012         * lib/xmalloca.h: Include xalloc.h.
40013         (xnmalloca): New macro.
40014
40015 2007-12-30  Bruno Haible  <bruno@clisp.org>
40016
40017         * lib/malloca.h (nmalloca): New macro.
40018         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
40019         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
40020         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
40021         knuth_morris_pratt_multibyte): Likewise.
40022         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
40023         knuth_morris_pratt_multibyte): Likewise.
40024         * lib/memmem.c (knuth_morris_pratt): Likewise.
40025         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
40026
40027 2007-12-25  Bruno Haible  <bruno@clisp.org>
40028
40029         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
40030         * lib/glob.c: Don't include openat.h.
40031         (link_exists2_p): Add back the code that deals with the
40032         !GLOB_ALTDIRFUNC case.
40033         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
40034         let it do the filename concatenation.
40035         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
40036         * modules/glob (Depends-on): Remove openat.
40037
40038 2007-12-31  Bruno Haible  <bruno@clisp.org>
40039
40040         * modules/dirfd (License): Change to LGPLv2+.
40041         Approved by Jim Meyering.
40042
40043 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40044
40045         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
40046         when multiplying M by sizeof (size_t).
40047
40048 2007-12-10  Martin Lambers  <marlam@marlam.de>
40049
40050         Override getpagesize on mingw.
40051         * lib/getpagesize.c: New file.
40052         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
40053         * modules/getpagesize (Files): Add lib/getpagesize.c.
40054         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
40055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40056         REPLACE_GETPAGESIZE.
40057         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
40058
40059 2007-12-25  Bruno Haible  <bruno@clisp.org>
40060
40061         * modules/localcharset (Notice): New field.
40062         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
40063         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40064
40065 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40066             Bruno Haible  <bruno@clisp.org>
40067
40068         Avoid using the syntax symbol() in formatted documentation.
40069         * MODULES.html.sh (func_module): When replacing symbol() with a
40070         hyperlink, remove the parentheses. Show an error if some remain.
40071         Recognize and render the '...' syntax.
40072         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
40073         Rework. Add paragraph about GCC's inlining.
40074         * doc/alloca.texi: Likewise.
40075         * doc/error.texi: Remove parentheses from symbol reference.
40076         * doc/gnulib-intro.texi: Likewise.
40077         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
40078         * modules/fnmatch (Description): Reword to say "the ... function".
40079         * modules/full-read (Description): Likewise.
40080         * modules/full-write (Description): Likewise.
40081         * modules/safe-read (Description): Likewise.
40082         * modules/safe-write (Description): Likewise.
40083         * modules/strchrnul (Description): Likewise.
40084         * modules/trim (Description): Likewise.
40085         * modules/error (Description): Remove parentheses from symbol
40086         references.
40087         * modules/verror (Description): Likewise.
40088         Reported by Karl Berry.
40089
40090 2007-12-25  Bruno Haible  <bruno@clisp.org>
40091
40092         Fixup after 2007-10-16 commit.
40093         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
40094
40095 2007-12-24  Bruno Haible  <bruno@clisp.org>
40096
40097         Make --enable-relocatable work with DESTDIR.
40098         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
40099         to compute installdir from destprog.
40100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
40101         also set the RELOC_DESTDIR variable.
40102         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40103
40104 2007-12-24  Bruno Haible  <bruno@clisp.org>
40105
40106         Fix link error due to xalloc_die().
40107         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
40108         of xreadlink.
40109         * lib/relocwrapper.c: Update comments.
40110         * build-aux/install-reloc: Remove xreadlink.c from file list.
40111         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
40112         xreadlink.c.
40113         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40114
40115 2007-12-24  Bruno Haible  <bruno@clisp.org>
40116
40117         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
40118         * lib/setenv.h: Remove file.
40119         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
40120         lib/setenv.h.
40121         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40122         (Depends-on): Add stdlib.
40123         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40124         gl_FUNC_UNSETENV.
40125         (Include): Replace setenv.h with <stdlib.h>.
40126         * modules/unsetenv: New file.
40127         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40128         * lib/unsetenv.c: Include <stdlib.h> first.
40129         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40130         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40131         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40132         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
40133         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
40134         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
40136         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40137         * doc/functions/unsetenv.texi: Update.
40138         * modules/xsetenv (Depends-on): Add unsetenv.
40139         * modules/getdate (Depends-on): Likewise.
40140         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
40141         * lib/xsetenv.c: Don't include setenv.h.
40142         * lib/getdate.y: Likewise.
40143         * lib/relocwrapper.c: Likewise.
40144         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
40145         (Depends-on): Add stdlib.
40146         * NEWS: Mention the changes.
40147         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40148
40149 2007-12-23  Bruno Haible  <bruno@clisp.org>
40150
40151         * lib/memmem.c (memmem): Use lowercase variable names. Tab
40152         indentation.
40153
40154 2007-12-23  Bruno Haible  <bruno@clisp.org>
40155
40156         * lib/c-strcasestr.c: Add more comments.
40157         * lib/c-strstr.c: Likewise.
40158         * lib/mbscasestr.c: Likewise.
40159         * lib/mbsstr.c: Likewise.
40160         * lib/strcasestr.c: Likewise.
40161         * lib/memmem.c: Likewise.
40162
40163 2007-12-23  Bruno Haible  <bruno@clisp.org>
40164
40165         * tests/test-memmem.c: Include <string.h> first.
40166
40167 2007-12-22  Bruno Haible  <bruno@clisp.org>
40168
40169         * gnulib-tool (func_create_testdir): Change $auxdir while generating
40170         the contents of $testsbase.
40171         Reported by Ralf Wildenhues.
40172
40173 2007-12-22  Bruno Haible  <bruno@clisp.org>
40174
40175         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
40176         two variables local_ldadd_before, local_ldadd_last.
40177
40178 2007-12-20  Eric Blake  <ebb9@byu.net>
40179
40180         Work around circular library issue when cross-compiling.
40181         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
40182         that progname.o does not need to pull in rpl_memcmp.
40183
40184 2007-12-19  Eric Blake  <ebb9@byu.net>
40185
40186         Fix memmem to avoid O(n^2) worst-case complexity.
40187         * lib/memmem.c (knuth_morris_pratt): New function.
40188         (memmem): Use it if first few naive iterations fail.
40189         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
40190         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
40191         * modules/memchr (License): Likewise.
40192         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
40193         malloca.
40194         * tests/test-memmem.c: Rewrite, borrowing ideas from
40195         test-mbsstr1.c; the old version wouldn't even compile!
40196         * modules/memmem-tests: New file.
40197         * lib/string.in.h (rpl_memmem): Add declaration.
40198         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
40199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
40200         REPLACE_MEMMEM.
40201
40202 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40203
40204         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
40205         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
40206         before any system include files, and undef after them all.  This
40207         should fix a problem on VMS reported by John E. Malmberg in
40208         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
40209
40210 2007-12-17  Eric Blake  <ebb9@byu.net>
40211
40212         Revert addition of verify, for BSD/OS.
40213         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
40214         can't handle large files, for the sake of obsolete platforms.
40215         * modules/fseeko (Depends-on): Remove verify.
40216         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
40217         * doc/functions/ftello.texi (ftello): Likewise.
40218         * doc/functions/fgetpos.texi (fgetpos): Likewise.
40219         Reported by Larry Jones.
40220
40221 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
40222
40223         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
40224         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
40225
40226 2007-12-17  Jim Meyering  <meyering@redhat.com>
40227
40228         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
40229         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
40230         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
40231         * modules/getcwd (Depends-on): Add openat.
40232         Reported by Petr Salinger.
40233
40234 2007-12-17  Bruno Haible  <bruno@clisp.org>
40235
40236         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
40237         avoid a segmentation fault of the configure test on x86_64 systems.
40238
40239 2007-12-15  Jim Meyering  <meyering@redhat.com>
40240
40241         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
40242
40243 2007-12-13  Eric Blake  <ebb9@byu.net>
40244
40245         Another fseek test.
40246         * tests/test-fseek.c (main): Also test ungetc handling.
40247         * tests/test-fseeko.c (main): Likewise.
40248         * modules/fseeko (Depends-on): Add verify.
40249         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
40250         large.
40251         Reported by Larry Jones.
40252
40253         Fix fseeko on mingw.
40254         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
40255         seek.
40256
40257         Beef up fseek tests.
40258         * tests/test-fseek.c (main): Also test eof handling.
40259         * tests/test-fseeko.c (main): Likewise.
40260         Reported by Larry Jones.
40261
40262 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
40263
40264         Fix fseeko on BSD-based platforms.
40265         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
40266         successful seek.
40267
40268 2007-12-12  Eric Blake  <ebb9@byu.net>
40269
40270         Allow circular dependency of separate libtests.a
40271         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
40272         when use_libtests.
40273
40274 2007-12-11  Eric Blake  <ebb9@byu.net>
40275
40276         Fix bug with -0.0L in previous patch.
40277         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
40278         * tests/test-isnan.c (main): Also test on zeroes.
40279         * tests/test-isnanf.c (main): Likewise.
40280         * tests/test-isnanl.h (main): Likewise.
40281
40282         Detect pseudo-denormals on x86 even when cross-compiling.
40283         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
40284         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
40285         invalid bit patterns that happen to satisfy ==.
40286
40287         Avoid link failures with separate libtests.a.
40288         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
40289         last, to satisfy circular dependencies.
40290
40291 2007-12-11  Eric Blake  <ebb9@byu.net>
40292         and Bruno Haible  <bruno@clisp.org>
40293
40294         Fix OpenBSD 4.0 <float.h> handling of long double.
40295         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
40296         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
40297         * doc/headers/float.texi (float.h): Document OpenBSD bug.
40298
40299 2007-12-11  Jim Meyering  <meyering@redhat.com>
40300
40301         * users.txt: Add libvirt.
40302
40303         Support versions of autoconf prior to 2.59c.
40304         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
40305         if it is not already defined.
40306
40307 2007-12-09  Bruno Haible  <bruno@clisp.org>
40308
40309         Let 'gnulib-tool --import' collect sources needed for the tests in
40310         tests/ rather than in lib/.
40311         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
40312         argument. If true, add rules to generate libtests.a, and put libtests.a
40313         into $(LDADD). Consider source files in subdirectories and set
40314         uses_subdirs.
40315         (func_emit_initmacro_start, func_emit_initmacro_end,
40316         func_emit_initmacro_done): Pass all arguments explicitly.
40317         (func_import): Determine two module lists main_modules,
40318         testsrelated_modules. Determine use_libtests. Determine two variables
40319         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
40320         instead of just sed_transform_lib_file. Determine two variables
40321         main_files and testsrelated_files. Compute 'files' as the union of
40322         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
40323         func_add_or_update. In the generated gnulib-comp.m4, collect the
40324         object files for tests/ in different variables than those for lib/.
40325         Substitute LIBTESTS_LIBDEPS.
40326         (func_create_testdir): Combine the uses_subdirs results from
40327         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
40328
40329 2007-12-09  Bruno Haible  <bruno@clisp.org>
40330
40331         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
40332         the build-aux directory.
40333
40334 2007-12-09  Bruno Haible  <bruno@clisp.org>
40335
40336         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40337         introduced on 2006-09-09.
40338
40339 2007-12-07  Jim Meyering  <meyering@redhat.com>
40340
40341         Let these macros work also with autoconf-2.59.
40342         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40343         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40344         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40345
40346 2007-12-06  Jim Meyering  <meyering@redhat.com>
40347
40348         Avoid a configure-time syntax error in gl_FUNC_ACL.
40349         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40350         function in each branch, before testing the cache variable.
40351
40352 2007-12-04  Eric Blake  <ebb9@byu.net>
40353
40354         Make scripts executable.
40355         * build-aux/config.guess: Add execute permissions.
40356         * build-aux/config.sub: Likewise.
40357         * build-aux/gendocs.sh: Likewise.
40358
40359         Fix frexp on mingw.
40360         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
40361         cross-compiling.
40362         * doc/functions/frexp.texi (frexp): Document the bug.
40363
40364         Make cygwin fseeko check more reliable.
40365         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
40366         version numbers, rather than unrelated feature check.
40367         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
40368         * doc/functions/ftello.texi (ftello): Likewise.
40369         Reported by Bruno Haible.
40370
40371         * m4/strerror.m4: Bump version number.
40372
40373 2007-12-03  Bruno Haible  <bruno@clisp.org>
40374
40375         * doc/functions/mprotect.texi: Mention the mingw problem.
40376
40377 2007-12-03  Eric Blake  <ebb9@byu.net>
40378
40379         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
40380         REPLACE_STRERROR is initialized before this macro.
40381
40382 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40383
40384         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40385         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
40386         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
40387         put -lsec in even for programs other than 'ls'.  This fixes a problem
40388         for gettext reported by Bruno Haible in
40389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
40390         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
40391         Add support for Solaris 10.  This isn't efficient, but should get the
40392         job done for now.
40393
40394 2007-12-03  James Youngman  <jay@gnu.org>
40395
40396         * doc/regexprops-generic.texi: change "an close-group" to "a
40397         close-group" and "illegal" to "not allowed".
40398
40399 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40400
40401         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
40402         pr_byname.h. Needed for the rare case when the maintainer has done
40403         "make maintainer-clean" in the source directory and then attempts a
40404         build outside the source directory.
40405         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
40406         scripts_byname.h.
40407
40408 2007-12-02  Martin Lambers <marlam@marlam.de>
40409             Bruno Haible  <bruno@clisp.org>
40410
40411         * lib/getpagesize.h: Remove file.
40412         * lib/unistd.in.h: Include declaration of getpagesize here.
40413         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
40414         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
40415         HAVE_SYS_PARAM_H.
40416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
40417         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40418         * modules/getpagesize (Files): Remove lib/getpagesize.h.
40419         (Depends-on): Add unistd.
40420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40421         (Include): Use <unistd.h> instead of getpagesize.h.
40422         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
40423         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40424         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
40425         gl_GETPAGESIZE invocation, already handled by module dependency.
40426         * lib/pagealign_alloc.c: Don't include getpagesize.h.
40427
40428 2007-12-02  Bruno Haible  <bruno@clisp.org>
40429
40430         * modules/strings-tests: New file.
40431         * tests/test-strings.c: New file.
40432
40433         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
40434         * lib/strings.in.h: New file.
40435         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
40436         * m4/strings_h.m4: New file.
40437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
40438         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
40439         * modules/strings: New file.
40440         * modules/string (Makefile.am): Update.
40441         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
40442         Reported by Karl Berry.
40443
40444 2007-12-01  Eric Blake  <ebb9@byu.net>
40445
40446         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
40447         accomodate fix in cygwin 1.5.25.
40448
40449 2007-12-01  Jim Meyering  <meyering@redhat.com>
40450
40451         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
40452         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
40453         that would inhibit utf8-optimization of a regexp containing line-
40454         or buffer-anchors, e.g., `^', `$'.
40455
40456 2007-11-30  Bruno Haible  <bruno@clisp.org>
40457
40458         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
40459         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
40460         glthread_recursive_lock_init.
40461         * lib/lock.c (glthread_recursive_lock_init)
40462         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
40463         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40464
40465 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
40466
40467         New function qset_acl, like set_acl but with syscall semantics.
40468         * lib/acl.h (qset_acl): New decl.
40469         * lib/acl.c (qset_acl): New function.
40470         (set_acl): Use new function.  Use more-consistent diagnostics.
40471
40472 2007-11-28  Jim Meyering  <meyering@redhat.com>
40473
40474         * modules/physmem (License): Change from GPL to LGPLv2+.
40475
40476 2007-11-26  Bruno Haible  <bruno@clisp.org>
40477
40478         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40479         'long double' type has excess precision.
40480         Reported by Jim Meyering in
40481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40482
40483 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40484
40485         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40486         Sync from <http://gnu.org/licenses>.
40487         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40488         with license text from same location.
40489         * doc/maintain.texi, doc/standards.texi:  Sync from
40490         <http://savannah.gnu.org/projects/gnustandards>.
40491
40492 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
40493         and Jim Meyering  <meyering@redhat.com>
40494
40495         Adjust getdate' grammar to accept a slightly more regular language.
40496         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40497         Before, the former was rejected.
40498         * lib/getdate.y (digits_to_date_time): New function, factored
40499         out of ...
40500         (number): ...here.  Just call digits_to_date_time.
40501         (hybrid): New non-terminal to handle an <unsigned number,
40502         signed relative offset> sequence consistently.
40503
40504 2007-11-18  Jim Meyering  <meyering@redhat.com>
40505
40506         Pull my changes from coreutils:
40507         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
40508         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
40509         use of $gnulib_tool_option_extras, so that it's separated from the
40510         preceding argument.
40511
40512         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
40513         * build-aux/bootstrap (cp_mark_as_generated): Create any required
40514         parent destination directories before copying a file into place.
40515
40516 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40517
40518         bootstrap: work also with 4-argument variant of AC_INIT
40519         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
40520
40521 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40522
40523         Port test-getaddrinfo to Solaris.
40524         Problem reported by Bruno Haible in
40525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
40526         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
40527         explanation of setting 'hints'.
40528         Don't reject an implementation merely because it returns EAI_SERVICE.
40529         (EAI_SERVICE): Define to 0 if not defined.
40530
40531 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40532
40533         The license of gnu-make and posix-shell is now "GPLed build tool".
40534         * modules/gnu-make (License): Likewise.
40535         * modules/posix-shell (License): Likewise.
40536
40537         New module posix-shell, for determining a POSIX shell
40538         or perhaps something that is close enough to a POSIX shell.
40539         * m4/posix-shell.m4: New file.
40540         * modules/posix-shell: New file.
40541
40542         * MODULES.html.sh: Mention new module.
40543
40544         New module gnu-make, for determining whether we're using GNU Make.
40545         * m4/gnu-make.m4: New file.
40546         * modules/gnu-make: New file.
40547         * MODULES.html.sh: Mention new module.
40548
40549 2007-11-14  Jim Meyering  <meyering@redhat.com>
40550
40551         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
40552         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
40553         use this macro to create a function _definition_.
40554         Remove useless "#undef ARGMATCH_DIE".
40555
40556 2007-11-14  Bruno Haible  <bruno@clisp.org>
40557
40558         * lib/config.charset: Update for OpenBSD 4.1.
40559         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
40560
40561 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
40562
40563         Document 64-bit #if problems in stdint.texi.
40564         * doc/headers/stdint.texi (stdint.h): Mention problems with
40565         64-bit-#if, and how to work around them.
40566
40567         Don't insist on 'long long int' support in the preprocessor.  It
40568         breaks too many things.  For example, PRIdMAX still uses a 'long
40569         long int' format with the latest Sun compiler, even though
40570         HAVE_LONG_LONG_INT isn't defined due to that compiler's
40571         preprocessor problem.  This causes the latest coreutils to dump
40572         core on Solaris 10 sparc with the Sun C compiler.
40573         Instead, fix the 2007-10-16 problem in a different way, by evaluating
40574         the troublesome expressions at configure-time, not at #if-time.
40575         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
40576         preprocessor.
40577         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
40578         compile-time C checks, done at 'configure'-time.
40579         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
40580         * modules/inttypes (Makefile): Substitute the new symbols that
40581         gl_INTTYPES_H now generates.
40582         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
40583
40584 2007-11-12  Bruno Haible  <bruno@clisp.org>
40585
40586         Tests for Unicode character classification functions.
40587
40588         * modules/unictype/bidicategory-byname-tests: New file.
40589         * modules/unictype/bidicategory-name-tests: New file.
40590         * modules/unictype/bidicategory-of-tests: New file.
40591         * modules/unictype/bidicategory-test-tests: New file.
40592         * modules/unictype/block-list-tests: New file.
40593         * modules/unictype/block-of-tests: New file.
40594         * modules/unictype/block-test-tests: New file.
40595         * modules/unictype/category-C-tests: New file.
40596         * modules/unictype/category-Cc-tests: New file.
40597         * modules/unictype/category-Cf-tests: New file.
40598         * modules/unictype/category-Cn-tests: New file.
40599         * modules/unictype/category-Co-tests: New file.
40600         * modules/unictype/category-Cs-tests: New file.
40601         * modules/unictype/category-L-tests: New file.
40602         * modules/unictype/category-Ll-tests: New file.
40603         * modules/unictype/category-Lm-tests: New file.
40604         * modules/unictype/category-Lo-tests: New file.
40605         * modules/unictype/category-Lt-tests: New file.
40606         * modules/unictype/category-Lu-tests: New file.
40607         * modules/unictype/category-M-tests: New file.
40608         * modules/unictype/category-Mc-tests: New file.
40609         * modules/unictype/category-Me-tests: New file.
40610         * modules/unictype/category-Mn-tests: New file.
40611         * modules/unictype/category-N-tests: New file.
40612         * modules/unictype/category-Nd-tests: New file.
40613         * modules/unictype/category-Nl-tests: New file.
40614         * modules/unictype/category-No-tests: New file.
40615         * modules/unictype/category-P-tests: New file.
40616         * modules/unictype/category-Pc-tests: New file.
40617         * modules/unictype/category-Pd-tests: New file.
40618         * modules/unictype/category-Pe-tests: New file.
40619         * modules/unictype/category-Pf-tests: New file.
40620         * modules/unictype/category-Pi-tests: New file.
40621         * modules/unictype/category-Po-tests: New file.
40622         * modules/unictype/category-Ps-tests: New file.
40623         * modules/unictype/category-S-tests: New file.
40624         * modules/unictype/category-Sc-tests: New file.
40625         * modules/unictype/category-Sk-tests: New file.
40626         * modules/unictype/category-Sm-tests: New file.
40627         * modules/unictype/category-So-tests: New file.
40628         * modules/unictype/category-Z-tests: New file.
40629         * modules/unictype/category-Zl-tests: New file.
40630         * modules/unictype/category-Zp-tests: New file.
40631         * modules/unictype/category-Zs-tests: New file.
40632         * modules/unictype/category-and-not-tests: New file.
40633         * modules/unictype/category-and-tests: New file.
40634         * modules/unictype/category-byname-tests: New file.
40635         * modules/unictype/category-name-tests: New file.
40636         * modules/unictype/category-none-tests: New file.
40637         * modules/unictype/category-of-tests: New file.
40638         * modules/unictype/category-or-tests: New file.
40639         * modules/unictype/category-test-withtable-tests: New file.
40640         * modules/unictype/combining-class-tests: New file.
40641         * modules/unictype/ctype-alnum-tests: New file.
40642         * modules/unictype/ctype-alpha-tests: New file.
40643         * modules/unictype/ctype-blank-tests: New file.
40644         * modules/unictype/ctype-cntrl-tests: New file.
40645         * modules/unictype/ctype-digit-tests: New file.
40646         * modules/unictype/ctype-graph-tests: New file.
40647         * modules/unictype/ctype-lower-tests: New file.
40648         * modules/unictype/ctype-print-tests: New file.
40649         * modules/unictype/ctype-punct-tests: New file.
40650         * modules/unictype/ctype-space-tests: New file.
40651         * modules/unictype/ctype-upper-tests: New file.
40652         * modules/unictype/ctype-xdigit-tests: New file.
40653         * modules/unictype/decimal-digit-tests: New file.
40654         * modules/unictype/digit-tests: New file.
40655         * modules/unictype/mirror-tests: New file.
40656         * modules/unictype/numeric-tests: New file.
40657         * modules/unictype/property-alphabetic-tests: New file.
40658         * modules/unictype/property-ascii-hex-digit-tests: New file.
40659         * modules/unictype/property-bidi-arabic-digit-tests: New file.
40660         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
40661         * modules/unictype/property-bidi-block-separator-tests: New file.
40662         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
40663         * modules/unictype/property-bidi-common-separator-tests: New file.
40664         * modules/unictype/property-bidi-control-tests: New file.
40665         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
40666         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
40667         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
40668         * modules/unictype/property-bidi-european-digit-tests: New file.
40669         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
40670         * modules/unictype/property-bidi-left-to-right-tests: New file.
40671         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
40672         * modules/unictype/property-bidi-other-neutral-tests: New file.
40673         * modules/unictype/property-bidi-pdf-tests: New file.
40674         * modules/unictype/property-bidi-segment-separator-tests: New file.
40675         * modules/unictype/property-bidi-whitespace-tests: New file.
40676         * modules/unictype/property-byname-tests: New file.
40677         * modules/unictype/property-combining-tests: New file.
40678         * modules/unictype/property-composite-tests: New file.
40679         * modules/unictype/property-currency-symbol-tests: New file.
40680         * modules/unictype/property-dash-tests: New file.
40681         * modules/unictype/property-decimal-digit-tests: New file.
40682         * modules/unictype/property-default-ignorable-code-point-tests: New file.
40683         * modules/unictype/property-deprecated-tests: New file.
40684         * modules/unictype/property-diacritic-tests: New file.
40685         * modules/unictype/property-extender-tests: New file.
40686         * modules/unictype/property-format-control-tests: New file.
40687         * modules/unictype/property-grapheme-base-tests: New file.
40688         * modules/unictype/property-grapheme-extend-tests: New file.
40689         * modules/unictype/property-grapheme-link-tests: New file.
40690         * modules/unictype/property-hex-digit-tests: New file.
40691         * modules/unictype/property-hyphen-tests: New file.
40692         * modules/unictype/property-id-continue-tests: New file.
40693         * modules/unictype/property-id-start-tests: New file.
40694         * modules/unictype/property-ideographic-tests: New file.
40695         * modules/unictype/property-ids-binary-operator-tests: New file.
40696         * modules/unictype/property-ids-trinary-operator-tests: New file.
40697         * modules/unictype/property-ignorable-control-tests: New file.
40698         * modules/unictype/property-iso-control-tests: New file.
40699         * modules/unictype/property-join-control-tests: New file.
40700         * modules/unictype/property-left-of-pair-tests: New file.
40701         * modules/unictype/property-line-separator-tests: New file.
40702         * modules/unictype/property-logical-order-exception-tests: New file.
40703         * modules/unictype/property-lowercase-tests: New file.
40704         * modules/unictype/property-math-tests: New file.
40705         * modules/unictype/property-non-break-tests: New file.
40706         * modules/unictype/property-not-a-character-tests: New file.
40707         * modules/unictype/property-numeric-tests: New file.
40708         * modules/unictype/property-other-alphabetic-tests: New file.
40709         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
40710         * modules/unictype/property-other-grapheme-extend-tests: New file.
40711         * modules/unictype/property-other-id-continue-tests: New file.
40712         * modules/unictype/property-other-id-start-tests: New file.
40713         * modules/unictype/property-other-lowercase-tests: New file.
40714         * modules/unictype/property-other-math-tests: New file.
40715         * modules/unictype/property-other-uppercase-tests: New file.
40716         * modules/unictype/property-paired-punctuation-tests: New file.
40717         * modules/unictype/property-paragraph-separator-tests: New file.
40718         * modules/unictype/property-pattern-syntax-tests: New file.
40719         * modules/unictype/property-pattern-white-space-tests: New file.
40720         * modules/unictype/property-private-use-tests: New file.
40721         * modules/unictype/property-punctuation-tests: New file.
40722         * modules/unictype/property-quotation-mark-tests: New file.
40723         * modules/unictype/property-radical-tests: New file.
40724         * modules/unictype/property-sentence-terminal-tests: New file.
40725         * modules/unictype/property-soft-dotted-tests: New file.
40726         * modules/unictype/property-space-tests: New file.
40727         * modules/unictype/property-terminal-punctuation-tests: New file.
40728         * modules/unictype/property-test-tests: New file.
40729         * modules/unictype/property-titlecase-tests: New file.
40730         * modules/unictype/property-unassigned-code-value-tests: New file.
40731         * modules/unictype/property-unified-ideograph-tests: New file.
40732         * modules/unictype/property-uppercase-tests: New file.
40733         * modules/unictype/property-variation-selector-tests: New file.
40734         * modules/unictype/property-white-space-tests: New file.
40735         * modules/unictype/property-xid-continue-tests: New file.
40736         * modules/unictype/property-xid-start-tests: New file.
40737         * modules/unictype/property-zero-width-tests: New file.
40738         * modules/unictype/scripts-tests: New file.
40739         * modules/unictype/syntax-c-ident-tests: New file.
40740         * modules/unictype/syntax-c-whitespace-tests: New file.
40741         * modules/unictype/syntax-java-ident-tests: New file.
40742         * modules/unictype/syntax-java-whitespace-tests: New file.
40743         * tests/unictype/test-bidi_byname.c: New file.
40744         * tests/unictype/test-bidi_name.c: New file.
40745         * tests/unictype/test-bidi_of.c: New file.
40746         * tests/unictype/test-bidi_test.c: New file.
40747         * tests/unictype/test-block_list.c: New file.
40748         * tests/unictype/test-block_of.c: New file.
40749         * tests/unictype/test-block_test.c: New file.
40750         * tests/unictype/test-categ_and.c: New file.
40751         * tests/unictype/test-categ_and_not.c: New file.
40752         * tests/unictype/test-categ_byname.c: New file.
40753         * tests/unictype/test-categ_name.c: New file.
40754         * tests/unictype/test-categ_none.c: New file.
40755         * tests/unictype/test-categ_of.c: New file.
40756         * tests/unictype/test-categ_or.c: New file.
40757         * tests/unictype/test-categ_test_withtable.c: New file.
40758         * tests/unictype/test-combining.c: New file.
40759         * tests/unictype/test-decdigit.c: New file.
40760         * tests/unictype/test-digit.c: New file.
40761         * tests/unictype/test-mirror.c: New file.
40762         * tests/unictype/test-numeric.c: New file.
40763         * tests/unictype/test-pr_byname.c: New file.
40764         * tests/unictype/test-pr_test.c: New file.
40765         * tests/unictype/test-predicate-part1.h: New file.
40766         * tests/unictype/test-predicate-part2.h: New file.
40767         * tests/unictype/test-scripts.c: New file.
40768         * tests/unictype/test-sy_c_ident.c: New file.
40769         * tests/unictype/test-sy_java_ident.c: New file.
40770
40771         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
40772         for Unicode 5.0.0.
40773         * tests/unictype/test-categ_Cc.c: Likewise.
40774         * tests/unictype/test-categ_Cf.c: Likewise.
40775         * tests/unictype/test-categ_Cn.c: Likewise.
40776         * tests/unictype/test-categ_Co.c: Likewise.
40777         * tests/unictype/test-categ_Cs.c: Likewise.
40778         * tests/unictype/test-categ_L.c: Likewise.
40779         * tests/unictype/test-categ_Ll.c: Likewise.
40780         * tests/unictype/test-categ_Lm.c: Likewise.
40781         * tests/unictype/test-categ_Lo.c: Likewise.
40782         * tests/unictype/test-categ_Lt.c: Likewise.
40783         * tests/unictype/test-categ_Lu.c: Likewise.
40784         * tests/unictype/test-categ_M.c: Likewise.
40785         * tests/unictype/test-categ_Mc.c: Likewise.
40786         * tests/unictype/test-categ_Me.c: Likewise.
40787         * tests/unictype/test-categ_Mn.c: Likewise.
40788         * tests/unictype/test-categ_N.c: Likewise.
40789         * tests/unictype/test-categ_Nd.c: Likewise.
40790         * tests/unictype/test-categ_Nl.c: Likewise.
40791         * tests/unictype/test-categ_No.c: Likewise.
40792         * tests/unictype/test-categ_P.c: Likewise.
40793         * tests/unictype/test-categ_Pc.c: Likewise.
40794         * tests/unictype/test-categ_Pd.c: Likewise.
40795         * tests/unictype/test-categ_Pe.c: Likewise.
40796         * tests/unictype/test-categ_Pf.c: Likewise.
40797         * tests/unictype/test-categ_Pi.c: Likewise.
40798         * tests/unictype/test-categ_Po.c: Likewise.
40799         * tests/unictype/test-categ_Ps.c: Likewise.
40800         * tests/unictype/test-categ_S.c: Likewise.
40801         * tests/unictype/test-categ_Sc.c: Likewise.
40802         * tests/unictype/test-categ_Sk.c: Likewise.
40803         * tests/unictype/test-categ_Sm.c: Likewise.
40804         * tests/unictype/test-categ_So.c: Likewise.
40805         * tests/unictype/test-categ_Z.c: Likewise.
40806         * tests/unictype/test-categ_Zl.c: Likewise.
40807         * tests/unictype/test-categ_Zp.c: Likewise.
40808         * tests/unictype/test-categ_Zs.c: Likewise.
40809         * tests/unictype/test-ctype_alnum.c: Likewise.
40810         * tests/unictype/test-ctype_alpha.c: Likewise.
40811         * tests/unictype/test-ctype_blank.c: Likewise.
40812         * tests/unictype/test-ctype_cntrl.c: Likewise.
40813         * tests/unictype/test-ctype_digit.c: Likewise.
40814         * tests/unictype/test-ctype_graph.c: Likewise.
40815         * tests/unictype/test-ctype_lower.c: Likewise.
40816         * tests/unictype/test-ctype_print.c: Likewise.
40817         * tests/unictype/test-ctype_punct.c: Likewise.
40818         * tests/unictype/test-ctype_space.c: Likewise.
40819         * tests/unictype/test-ctype_upper.c: Likewise.
40820         * tests/unictype/test-ctype_xdigit.c: Likewise.
40821         * tests/unictype/test-decdigit.h: Likewise.
40822         * tests/unictype/test-digit.h: Likewise.
40823         * tests/unictype/test-numeric.h: Likewise.
40824         * tests/unictype/test-pr_alphabetic.c: Likewise.
40825         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
40826         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40827         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40828         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
40829         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40830         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
40831         * tests/unictype/test-pr_bidi_control.c: Likewise.
40832         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
40833         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
40834         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40835         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
40836         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40837         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40838         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40839         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40840         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
40841         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
40842         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
40843         * tests/unictype/test-pr_combining.c: Likewise.
40844         * tests/unictype/test-pr_composite.c: Likewise.
40845         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40846         * tests/unictype/test-pr_dash.c: Likewise.
40847         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40848         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
40849         * tests/unictype/test-pr_deprecated.c: Likewise.
40850         * tests/unictype/test-pr_diacritic.c: Likewise.
40851         * tests/unictype/test-pr_extender.c: Likewise.
40852         * tests/unictype/test-pr_format_control.c: Likewise.
40853         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40854         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40855         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40856         * tests/unictype/test-pr_hex_digit.c: Likewise.
40857         * tests/unictype/test-pr_hyphen.c: Likewise.
40858         * tests/unictype/test-pr_id_continue.c: Likewise.
40859         * tests/unictype/test-pr_id_start.c: Likewise.
40860         * tests/unictype/test-pr_ideographic.c: Likewise.
40861         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
40862         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
40863         * tests/unictype/test-pr_ignorable_control.c: Likewise.
40864         * tests/unictype/test-pr_iso_control.c: Likewise.
40865         * tests/unictype/test-pr_join_control.c: Likewise.
40866         * tests/unictype/test-pr_left_of_pair.c: Likewise.
40867         * tests/unictype/test-pr_line_separator.c: Likewise.
40868         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
40869         * tests/unictype/test-pr_lowercase.c: Likewise.
40870         * tests/unictype/test-pr_math.c: Likewise.
40871         * tests/unictype/test-pr_non_break.c: Likewise.
40872         * tests/unictype/test-pr_not_a_character.c: Likewise.
40873         * tests/unictype/test-pr_numeric.c: Likewise.
40874         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40875         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
40876         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
40877         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40878         * tests/unictype/test-pr_other_id_start.c: Likewise.
40879         * tests/unictype/test-pr_other_lowercase.c: Likewise.
40880         * tests/unictype/test-pr_other_math.c: Likewise.
40881         * tests/unictype/test-pr_other_uppercase.c: Likewise.
40882         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
40883         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
40884         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
40885         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
40886         * tests/unictype/test-pr_private_use.c: Likewise.
40887         * tests/unictype/test-pr_punctuation.c: Likewise.
40888         * tests/unictype/test-pr_quotation_mark.c: Likewise.
40889         * tests/unictype/test-pr_radical.c: Likewise.
40890         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40891         * tests/unictype/test-pr_soft_dotted.c: Likewise.
40892         * tests/unictype/test-pr_space.c: Likewise.
40893         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40894         * tests/unictype/test-pr_titlecase.c: Likewise.
40895         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40896         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40897         * tests/unictype/test-pr_uppercase.c: Likewise.
40898         * tests/unictype/test-pr_variation_selector.c: Likewise.
40899         * tests/unictype/test-pr_white_space.c: Likewise.
40900         * tests/unictype/test-pr_xid_continue.c: Likewise.
40901         * tests/unictype/test-pr_xid_start.c: Likewise.
40902         * tests/unictype/test-pr_zero_width.c: Likewise.
40903         * tests/unictype/test-sy_c_whitespace.c: Likewise.
40904         * tests/unictype/test-sy_java_whitespace.c: Likewise.
40905
40906 2007-11-12  Bruno Haible  <bruno@clisp.org>
40907
40908         Unicode character classification functions.
40909         * lib/unictype.h: New file.
40910         * modules/unictype/base: New file.
40911         * modules/unictype/category-L: New file.
40912         * modules/unictype/category-Lu: New file.
40913         * modules/unictype/category-Ll: New file.
40914         * modules/unictype/category-Lt: New file.
40915         * modules/unictype/category-Lm: New file.
40916         * modules/unictype/category-Lo: New file.
40917         * modules/unictype/category-M: New file.
40918         * modules/unictype/category-Mn: New file.
40919         * modules/unictype/category-Mc: New file.
40920         * modules/unictype/category-Me: New file.
40921         * modules/unictype/category-N: New file.
40922         * modules/unictype/category-Nd: New file.
40923         * modules/unictype/category-Nl: New file.
40924         * modules/unictype/category-No: New file.
40925         * modules/unictype/category-P: New file.
40926         * modules/unictype/category-Pc: New file.
40927         * modules/unictype/category-Pd: New file.
40928         * modules/unictype/category-Ps: New file.
40929         * modules/unictype/category-Pe: New file.
40930         * modules/unictype/category-Pi: New file.
40931         * modules/unictype/category-Pf: New file.
40932         * modules/unictype/category-Po: New file.
40933         * modules/unictype/category-S: New file.
40934         * modules/unictype/category-Sm: New file.
40935         * modules/unictype/category-Sc: New file.
40936         * modules/unictype/category-Sk: New file.
40937         * modules/unictype/category-So: New file.
40938         * modules/unictype/category-Z: New file.
40939         * modules/unictype/category-Zs: New file.
40940         * modules/unictype/category-Zl: New file.
40941         * modules/unictype/category-Zp: New file.
40942         * modules/unictype/category-C: New file.
40943         * modules/unictype/category-Cc: New file.
40944         * modules/unictype/category-Cf: New file.
40945         * modules/unictype/category-Cs: New file.
40946         * modules/unictype/category-Co: New file.
40947         * modules/unictype/category-Cn: New file.
40948         * modules/unictype/category-or: New file.
40949         * modules/unictype/category-of: New file.
40950         * modules/unictype/category-test: New file.
40951         * modules/unictype/category-test-withtable: New file.
40952         * modules/unictype/category-byname: New file.
40953         * modules/unictype/category-none: New file.
40954         * modules/unictype/category-and: New file.
40955         * modules/unictype/category-and-not: New file.
40956         * modules/unictype/category-name: New file.
40957         * modules/unictype/combining-class: New file.
40958         * modules/unictype/category-all: New file.
40959         * modules/unictype/bidicategory-all: New file.
40960         * modules/unictype/bidicategory-byname: New file.
40961         * modules/unictype/bidicategory-name: New file.
40962         * modules/unictype/bidicategory-of: New file.
40963         * modules/unictype/bidicategory-test: New file.
40964         * modules/unictype/decimal-digit: New file.
40965         * modules/unictype/digit: New file.
40966         * modules/unictype/numeric: New file.
40967         * modules/unictype/mirror: New file.
40968         * modules/unictype/property-white-space: New file.
40969         * modules/unictype/property-alphabetic: New file.
40970         * modules/unictype/property-other-alphabetic: New file.
40971         * modules/unictype/property-not-a-character: New file.
40972         * modules/unictype/property-default-ignorable-code-point: New file.
40973         * modules/unictype/property-other-default-ignorable-code-point: New
40974         file.
40975         * modules/unictype/property-deprecated: New file.
40976         * modules/unictype/property-logical-order-exception: New file.
40977         * modules/unictype/property-variation-selector: New file.
40978         * modules/unictype/property-private-use: New file.
40979         * modules/unictype/property-unassigned-code-value: New file.
40980         * modules/unictype/property-uppercase: New file.
40981         * modules/unictype/property-other-uppercase: New file.
40982         * modules/unictype/property-lowercase: New file.
40983         * modules/unictype/property-other-lowercase: New file.
40984         * modules/unictype/property-titlecase: New file.
40985         * modules/unictype/property-soft-dotted: New file.
40986         * modules/unictype/property-id-start: New file.
40987         * modules/unictype/property-other-id-start: New file.
40988         * modules/unictype/property-id-continue: New file.
40989         * modules/unictype/property-other-id-continue: New file.
40990         * modules/unictype/property-xid-start: New file.
40991         * modules/unictype/property-xid-continue: New file.
40992         * modules/unictype/property-pattern-white-space: New file.
40993         * modules/unictype/property-pattern-syntax: New file.
40994         * modules/unictype/property-join-control: New file.
40995         * modules/unictype/property-grapheme-base: New file.
40996         * modules/unictype/property-grapheme-extend: New file.
40997         * modules/unictype/property-other-grapheme-extend: New file.
40998         * modules/unictype/property-grapheme-link: New file.
40999         * modules/unictype/property-bidi-control: New file.
41000         * modules/unictype/property-bidi-left-to-right: New file.
41001         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
41002         * modules/unictype/property-bidi-arabic-right-to-left: New file.
41003         * modules/unictype/property-bidi-european-digit: New file.
41004         * modules/unictype/property-bidi-eur-num-separator: New file.
41005         * modules/unictype/property-bidi-eur-num-terminator: New file.
41006         * modules/unictype/property-bidi-arabic-digit: New file.
41007         * modules/unictype/property-bidi-common-separator: New file.
41008         * modules/unictype/property-bidi-block-separator: New file.
41009         * modules/unictype/property-bidi-segment-separator: New file.
41010         * modules/unictype/property-bidi-whitespace: New file.
41011         * modules/unictype/property-bidi-non-spacing-mark: New file.
41012         * modules/unictype/property-bidi-boundary-neutral: New file.
41013         * modules/unictype/property-bidi-pdf: New file.
41014         * modules/unictype/property-bidi-embedding-or-override: New file.
41015         * modules/unictype/property-bidi-other-neutral: New file.
41016         * modules/unictype/property-hex-digit: New file.
41017         * modules/unictype/property-ascii-hex-digit: New file.
41018         * modules/unictype/property-ideographic: New file.
41019         * modules/unictype/property-unified-ideograph: New file.
41020         * modules/unictype/property-radical: New file.
41021         * modules/unictype/property-ids-binary-operator: New file.
41022         * modules/unictype/property-ids-trinary-operator: New file.
41023         * modules/unictype/property-zero-width: New file.
41024         * modules/unictype/property-space: New file.
41025         * modules/unictype/property-non-break: New file.
41026         * modules/unictype/property-iso-control: New file.
41027         * modules/unictype/property-format-control: New file.
41028         * modules/unictype/property-dash: New file.
41029         * modules/unictype/property-hyphen: New file.
41030         * modules/unictype/property-punctuation: New file.
41031         * modules/unictype/property-line-separator: New file.
41032         * modules/unictype/property-paragraph-separator: New file.
41033         * modules/unictype/property-quotation-mark: New file.
41034         * modules/unictype/property-sentence-terminal: New file.
41035         * modules/unictype/property-terminal-punctuation: New file.
41036         * modules/unictype/property-currency-symbol: New file.
41037         * modules/unictype/property-math: New file.
41038         * modules/unictype/property-other-math: New file.
41039         * modules/unictype/property-paired-punctuation: New file.
41040         * modules/unictype/property-left-of-pair: New file.
41041         * modules/unictype/property-combining: New file.
41042         * modules/unictype/property-composite: New file.
41043         * modules/unictype/property-decimal-digit: New file.
41044         * modules/unictype/property-numeric: New file.
41045         * modules/unictype/property-diacritic: New file.
41046         * modules/unictype/property-extender: New file.
41047         * modules/unictype/property-ignorable-control: New file.
41048         * modules/unictype/property-test: New file.
41049         * modules/unictype/property-byname: New file.
41050         * modules/unictype/property-all: New file.
41051         * modules/unictype/scripts: New file.
41052         * modules/unictype/scripts-all: New file.
41053         * modules/unictype/block-of: New file.
41054         * modules/unictype/block-test: New file.
41055         * modules/unictype/block-list: New file.
41056         * modules/unictype/block-all: New file.
41057         * modules/unictype/syntax-c-whitespace: New file.
41058         * modules/unictype/syntax-java-whitespace: New file.
41059         * modules/unictype/syntax-c-ident: New file.
41060         * modules/unictype/syntax-java-ident: New file.
41061         * modules/unictype/ctype-alnum: New file.
41062         * modules/unictype/ctype-alpha: New file.
41063         * modules/unictype/ctype-cntrl: New file.
41064         * modules/unictype/ctype-digit: New file.
41065         * modules/unictype/ctype-graph: New file.
41066         * modules/unictype/ctype-lower: New file.
41067         * modules/unictype/ctype-print: New file.
41068         * modules/unictype/ctype-punct: New file.
41069         * modules/unictype/ctype-space: New file.
41070         * modules/unictype/ctype-upper: New file.
41071         * modules/unictype/ctype-xdigit: New file.
41072         * modules/unictype/ctype-blank: New file.
41073         * lib/unictype/bidi_byname.c: New file.
41074         * lib/unictype/bidi_name.c: New file.
41075         * lib/unictype/bidi_of.c: New file.
41076         * lib/unictype/bidi_test.c: New file.
41077         * lib/unictype/bitmap.h: New file.
41078         * lib/unictype/block_test.c: New file.
41079         * lib/unictype/blocks.c: New file.
41080         * lib/unictype/categ_C.c: New file.
41081         * lib/unictype/categ_Cc.c: New file.
41082         * lib/unictype/categ_Cf.c: New file.
41083         * lib/unictype/categ_Cn.c: New file.
41084         * lib/unictype/categ_Co.c: New file.
41085         * lib/unictype/categ_Cs.c: New file.
41086         * lib/unictype/categ_L.c: New file.
41087         * lib/unictype/categ_Ll.c: New file.
41088         * lib/unictype/categ_Lm.c: New file.
41089         * lib/unictype/categ_Lo.c: New file.
41090         * lib/unictype/categ_Lt.c: New file.
41091         * lib/unictype/categ_Lu.c: New file.
41092         * lib/unictype/categ_M.c: New file.
41093         * lib/unictype/categ_Mc.c: New file.
41094         * lib/unictype/categ_Me.c: New file.
41095         * lib/unictype/categ_Mn.c: New file.
41096         * lib/unictype/categ_N.c: New file.
41097         * lib/unictype/categ_Nd.c: New file.
41098         * lib/unictype/categ_Nl.c: New file.
41099         * lib/unictype/categ_No.c: New file.
41100         * lib/unictype/categ_P.c: New file.
41101         * lib/unictype/categ_Pc.c: New file.
41102         * lib/unictype/categ_Pd.c: New file.
41103         * lib/unictype/categ_Pe.c: New file.
41104         * lib/unictype/categ_Pf.c: New file.
41105         * lib/unictype/categ_Pi.c: New file.
41106         * lib/unictype/categ_Po.c: New file.
41107         * lib/unictype/categ_Ps.c: New file.
41108         * lib/unictype/categ_S.c: New file.
41109         * lib/unictype/categ_Sc.c: New file.
41110         * lib/unictype/categ_Sk.c: New file.
41111         * lib/unictype/categ_Sm.c: New file.
41112         * lib/unictype/categ_So.c: New file.
41113         * lib/unictype/categ_Z.c: New file.
41114         * lib/unictype/categ_Zl.c: New file.
41115         * lib/unictype/categ_Zp.c: New file.
41116         * lib/unictype/categ_Zs.c: New file.
41117         * lib/unictype/categ_and.c: New file.
41118         * lib/unictype/categ_and_not.c: New file.
41119         * lib/unictype/categ_byname.c: New file.
41120         * lib/unictype/categ_name.c: New file.
41121         * lib/unictype/categ_none.c: New file.
41122         * lib/unictype/categ_of.c: New file.
41123         * lib/unictype/categ_or.c: New file.
41124         * lib/unictype/categ_test.c: New file.
41125         * lib/unictype/combining.c: New file.
41126         * lib/unictype/ctype_alnum.c: New file.
41127         * lib/unictype/ctype_alpha.c: New file.
41128         * lib/unictype/ctype_blank.c: New file.
41129         * lib/unictype/ctype_cntrl.c: New file.
41130         * lib/unictype/ctype_digit.c: New file.
41131         * lib/unictype/ctype_graph.c: New file.
41132         * lib/unictype/ctype_lower.c: New file.
41133         * lib/unictype/ctype_print.c: New file.
41134         * lib/unictype/ctype_punct.c: New file.
41135         * lib/unictype/ctype_space.c: New file.
41136         * lib/unictype/ctype_upper.c: New file.
41137         * lib/unictype/ctype_xdigit.c: New file.
41138         * lib/unictype/decdigit.c: New file.
41139         * lib/unictype/digit.c: New file.
41140         * lib/unictype/identsyntaxmap.h: New file.
41141         * lib/unictype/mirror.c: New file.
41142         * lib/unictype/numeric.c: New file.
41143         * lib/unictype/pr_alphabetic.c: New file.
41144         * lib/unictype/pr_ascii_hex_digit.c: New file.
41145         * lib/unictype/pr_bidi_arabic_digit.c: New file.
41146         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
41147         * lib/unictype/pr_bidi_block_separator.c: New file.
41148         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
41149         * lib/unictype/pr_bidi_common_separator.c: New file.
41150         * lib/unictype/pr_bidi_control.c: New file.
41151         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
41152         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
41153         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
41154         * lib/unictype/pr_bidi_european_digit.c: New file.
41155         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
41156         * lib/unictype/pr_bidi_left_to_right.c: New file.
41157         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
41158         * lib/unictype/pr_bidi_other_neutral.c: New file.
41159         * lib/unictype/pr_bidi_pdf.c: New file.
41160         * lib/unictype/pr_bidi_segment_separator.c: New file.
41161         * lib/unictype/pr_bidi_whitespace.c: New file.
41162         * lib/unictype/pr_byname.c: New file.
41163         * lib/unictype/pr_byname.gperf: New file.
41164         * lib/unictype/pr_combining.c: New file.
41165         * lib/unictype/pr_composite.c: New file.
41166         * lib/unictype/pr_currency_symbol.c: New file.
41167         * lib/unictype/pr_dash.c: New file.
41168         * lib/unictype/pr_decimal_digit.c: New file.
41169         * lib/unictype/pr_default_ignorable_code_point.c: New file.
41170         * lib/unictype/pr_deprecated.c: New file.
41171         * lib/unictype/pr_diacritic.c: New file.
41172         * lib/unictype/pr_extender.c: New file.
41173         * lib/unictype/pr_format_control.c: New file.
41174         * lib/unictype/pr_grapheme_base.c: New file.
41175         * lib/unictype/pr_grapheme_extend.c: New file.
41176         * lib/unictype/pr_grapheme_link.c: New file.
41177         * lib/unictype/pr_hex_digit.c: New file.
41178         * lib/unictype/pr_hyphen.c: New file.
41179         * lib/unictype/pr_id_continue.c: New file.
41180         * lib/unictype/pr_id_start.c: New file.
41181         * lib/unictype/pr_ideographic.c: New file.
41182         * lib/unictype/pr_ids_binary_operator.c: New file.
41183         * lib/unictype/pr_ids_trinary_operator.c: New file.
41184         * lib/unictype/pr_ignorable_control.c: New file.
41185         * lib/unictype/pr_iso_control.c: New file.
41186         * lib/unictype/pr_join_control.c: New file.
41187         * lib/unictype/pr_left_of_pair.c: New file.
41188         * lib/unictype/pr_line_separator.c: New file.
41189         * lib/unictype/pr_logical_order_exception.c: New file.
41190         * lib/unictype/pr_lowercase.c: New file.
41191         * lib/unictype/pr_math.c: New file.
41192         * lib/unictype/pr_non_break.c: New file.
41193         * lib/unictype/pr_not_a_character.c: New file.
41194         * lib/unictype/pr_numeric.c: New file.
41195         * lib/unictype/pr_other_alphabetic.c: New file.
41196         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
41197         * lib/unictype/pr_other_grapheme_extend.c: New file.
41198         * lib/unictype/pr_other_id_continue.c: New file.
41199         * lib/unictype/pr_other_id_start.c: New file.
41200         * lib/unictype/pr_other_lowercase.c: New file.
41201         * lib/unictype/pr_other_math.c: New file.
41202         * lib/unictype/pr_other_uppercase.c: New file.
41203         * lib/unictype/pr_paired_punctuation.c: New file.
41204         * lib/unictype/pr_paragraph_separator.c: New file.
41205         * lib/unictype/pr_pattern_syntax.c: New file.
41206         * lib/unictype/pr_pattern_white_space.c: New file.
41207         * lib/unictype/pr_private_use.c: New file.
41208         * lib/unictype/pr_punctuation.c: New file.
41209         * lib/unictype/pr_quotation_mark.c: New file.
41210         * lib/unictype/pr_radical.c: New file.
41211         * lib/unictype/pr_sentence_terminal.c: New file.
41212         * lib/unictype/pr_soft_dotted.c: New file.
41213         * lib/unictype/pr_space.c: New file.
41214         * lib/unictype/pr_terminal_punctuation.c: New file.
41215         * lib/unictype/pr_test.c: New file.
41216         * lib/unictype/pr_titlecase.c: New file.
41217         * lib/unictype/pr_unassigned_code_value.c: New file.
41218         * lib/unictype/pr_unified_ideograph.c: New file.
41219         * lib/unictype/pr_uppercase.c: New file.
41220         * lib/unictype/pr_variation_selector.c: New file.
41221         * lib/unictype/pr_white_space.c: New file.
41222         * lib/unictype/pr_xid_continue.c: New file.
41223         * lib/unictype/pr_xid_start.c: New file.
41224         * lib/unictype/pr_zero_width.c: New file.
41225         * lib/unictype/scripts.c: New file.
41226         * lib/unictype/sy_c_ident.c: New file.
41227         * lib/unictype/sy_c_whitespace.c: New file.
41228         * lib/unictype/sy_java_ident.c: New file.
41229         * lib/unictype/sy_java_whitespace.c: New file.
41230
41231         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
41232         Unicode 5.0.0.
41233         * lib/unictype/blocks.h: Likewise.
41234         * lib/unictype/categ_C.h: Likewise.
41235         * lib/unictype/categ_Cc.h: Likewise.
41236         * lib/unictype/categ_Cf.h: Likewise.
41237         * lib/unictype/categ_Cn.h: Likewise.
41238         * lib/unictype/categ_Co.h: Likewise.
41239         * lib/unictype/categ_Cs.h: Likewise.
41240         * lib/unictype/categ_L.h: Likewise.
41241         * lib/unictype/categ_Ll.h: Likewise.
41242         * lib/unictype/categ_Lm.h: Likewise.
41243         * lib/unictype/categ_Lo.h: Likewise.
41244         * lib/unictype/categ_Lt.h: Likewise.
41245         * lib/unictype/categ_Lu.h: Likewise.
41246         * lib/unictype/categ_M.h: Likewise.
41247         * lib/unictype/categ_Mc.h: Likewise.
41248         * lib/unictype/categ_Me.h: Likewise.
41249         * lib/unictype/categ_Mn.h: Likewise.
41250         * lib/unictype/categ_N.h: Likewise.
41251         * lib/unictype/categ_Nd.h: Likewise.
41252         * lib/unictype/categ_Nl.h: Likewise.
41253         * lib/unictype/categ_No.h: Likewise.
41254         * lib/unictype/categ_P.h: Likewise.
41255         * lib/unictype/categ_Pc.h: Likewise.
41256         * lib/unictype/categ_Pd.h: Likewise.
41257         * lib/unictype/categ_Pe.h: Likewise.
41258         * lib/unictype/categ_Pf.h: Likewise.
41259         * lib/unictype/categ_Pi.h: Likewise.
41260         * lib/unictype/categ_Po.h: Likewise.
41261         * lib/unictype/categ_Ps.h: Likewise.
41262         * lib/unictype/categ_S.h: Likewise.
41263         * lib/unictype/categ_Sc.h: Likewise.
41264         * lib/unictype/categ_Sk.h: Likewise.
41265         * lib/unictype/categ_Sm.h: Likewise.
41266         * lib/unictype/categ_So.h: Likewise.
41267         * lib/unictype/categ_Z.h: Likewise.
41268         * lib/unictype/categ_Zl.h: Likewise.
41269         * lib/unictype/categ_Zp.h: Likewise.
41270         * lib/unictype/categ_Zs.h: Likewise.
41271         * lib/unictype/categ_of.h: Likewise.
41272         * lib/unictype/combining.h: Likewise.
41273         * lib/unictype/ctype_alnum.h: Likewise.
41274         * lib/unictype/ctype_alpha.h: Likewise.
41275         * lib/unictype/ctype_blank.h: Likewise.
41276         * lib/unictype/ctype_cntrl.h: Likewise.
41277         * lib/unictype/ctype_digit.h: Likewise.
41278         * lib/unictype/ctype_graph.h: Likewise.
41279         * lib/unictype/ctype_lower.h: Likewise.
41280         * lib/unictype/ctype_print.h: Likewise.
41281         * lib/unictype/ctype_punct.h: Likewise.
41282         * lib/unictype/ctype_space.h: Likewise.
41283         * lib/unictype/ctype_upper.h: Likewise.
41284         * lib/unictype/ctype_xdigit.h: Likewise.
41285         * lib/unictype/decdigit.h: Likewise.
41286         * lib/unictype/digit.h: Likewise.
41287         * lib/unictype/mirror.h: Likewise.
41288         * lib/unictype/numeric.h: Likewise.
41289         * lib/unictype/pr_alphabetic.h: Likewise.
41290         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41291         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41292         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41293         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41294         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41295         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41296         * lib/unictype/pr_bidi_control.h: Likewise.
41297         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41298         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41299         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41300         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41301         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41302         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41303         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41304         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41305         * lib/unictype/pr_bidi_pdf.h: Likewise.
41306         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41307         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41308         * lib/unictype/pr_combining.h: Likewise.
41309         * lib/unictype/pr_composite.h: Likewise.
41310         * lib/unictype/pr_currency_symbol.h: Likewise.
41311         * lib/unictype/pr_dash.h: Likewise.
41312         * lib/unictype/pr_decimal_digit.h: Likewise.
41313         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41314         * lib/unictype/pr_deprecated.h: Likewise.
41315         * lib/unictype/pr_diacritic.h: Likewise.
41316         * lib/unictype/pr_extender.h: Likewise.
41317         * lib/unictype/pr_format_control.h: Likewise.
41318         * lib/unictype/pr_grapheme_base.h: Likewise.
41319         * lib/unictype/pr_grapheme_extend.h: Likewise.
41320         * lib/unictype/pr_grapheme_link.h: Likewise.
41321         * lib/unictype/pr_hex_digit.h: Likewise.
41322         * lib/unictype/pr_hyphen.h: Likewise.
41323         * lib/unictype/pr_id_continue.h: Likewise.
41324         * lib/unictype/pr_id_start.h: Likewise.
41325         * lib/unictype/pr_ideographic.h: Likewise.
41326         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41327         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41328         * lib/unictype/pr_ignorable_control.h: Likewise.
41329         * lib/unictype/pr_iso_control.h: Likewise.
41330         * lib/unictype/pr_join_control.h: Likewise.
41331         * lib/unictype/pr_left_of_pair.h: Likewise.
41332         * lib/unictype/pr_line_separator.h: Likewise.
41333         * lib/unictype/pr_logical_order_exception.h: Likewise.
41334         * lib/unictype/pr_lowercase.h: Likewise.
41335         * lib/unictype/pr_math.h: Likewise.
41336         * lib/unictype/pr_non_break.h: Likewise.
41337         * lib/unictype/pr_not_a_character.h: Likewise.
41338         * lib/unictype/pr_numeric.h: Likewise.
41339         * lib/unictype/pr_other_alphabetic.h: Likewise.
41340         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41341         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41342         * lib/unictype/pr_other_id_continue.h: Likewise.
41343         * lib/unictype/pr_other_id_start.h: Likewise.
41344         * lib/unictype/pr_other_lowercase.h: Likewise.
41345         * lib/unictype/pr_other_math.h: Likewise.
41346         * lib/unictype/pr_other_uppercase.h: Likewise.
41347         * lib/unictype/pr_paired_punctuation.h: Likewise.
41348         * lib/unictype/pr_paragraph_separator.h: Likewise.
41349         * lib/unictype/pr_pattern_syntax.h: Likewise.
41350         * lib/unictype/pr_pattern_white_space.h: Likewise.
41351         * lib/unictype/pr_private_use.h: Likewise.
41352         * lib/unictype/pr_punctuation.h: Likewise.
41353         * lib/unictype/pr_quotation_mark.h: Likewise.
41354         * lib/unictype/pr_radical.h: Likewise.
41355         * lib/unictype/pr_sentence_terminal.h: Likewise.
41356         * lib/unictype/pr_soft_dotted.h: Likewise.
41357         * lib/unictype/pr_space.h: Likewise.
41358         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41359         * lib/unictype/pr_titlecase.h: Likewise.
41360         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41361         * lib/unictype/pr_unified_ideograph.h: Likewise.
41362         * lib/unictype/pr_uppercase.h: Likewise.
41363         * lib/unictype/pr_variation_selector.h: Likewise.
41364         * lib/unictype/pr_white_space.h: Likewise.
41365         * lib/unictype/pr_xid_continue.h: Likewise.
41366         * lib/unictype/pr_xid_start.h: Likewise.
41367         * lib/unictype/pr_zero_width.h: Likewise.
41368         * lib/unictype/scripts.h: Likewise.
41369         * lib/unictype/scripts_byname.gperf: Likewise.
41370         * lib/unictype/sy_c_ident.h: Likewise.
41371         * lib/unictype/sy_c_whitespace.h: Likewise.
41372         * lib/unictype/sy_java_ident.h: Likewise.
41373         * lib/unictype/sy_java_whitespace.h: Likewise.
41374
41375         * lib/unictype/Makefile: New file.
41376         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
41377         glibc.
41378         * lib/unictype/3level.h: New file, copied from glibc.
41379         * lib/unictype/3levelbit.h: New file.
41380
41381 2007-11-11  Bruno Haible  <bruno@clisp.org>
41382
41383         * modules/gperf: New file.
41384         * modules/iconv_open (Depends-on): Add it.
41385         (Makefile.am): Remove the GPERF definition.
41386
41387 2007-11-11  Bruno Haible  <bruno@clisp.org>
41388
41389         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
41390         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
41391
41392 2007-11-11  Bruno Haible  <bruno@clisp.org>
41393
41394         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
41395         (usage): Remove function.
41396
41397 2007-11-11  Bruno Haible  <bruno@clisp.org>
41398
41399         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
41400         gl_FUNC_CEILF_LIBS.
41401         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
41402         gl_FUNC_CEIL_LIBS.
41403         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
41404         gl_FUNC_CEILL_LIBS.
41405         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
41406         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
41407         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
41408
41409 2007-11-11  Bruno Haible  <bruno@clisp.org>
41410
41411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
41412         roundf were declared but do not exist on functions.
41413         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
41414         roundl were declared but do not exist on functions.
41415         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
41416         HAVE_FLOORL_AND_CEILL, respectively.
41417         Needed for Sun C on Solaris 10.
41418
41419 2007-11-11  Bruno Haible  <bruno@clisp.org>
41420
41421         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
41422         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
41423         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
41424         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
41425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
41426         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
41427         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
41428         HAVE_DECL_ROUNDF.
41429         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
41430         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
41431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
41432         of HAVE_DECL_ROUND*.
41433         * modules/math (Makefile.am): Update.
41434
41435 2007-11-10  Bruno Haible  <bruno@clisp.org>
41436
41437         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
41438         ptrdiff_t as m4/intl.m4.
41439
41440 2007-11-10  Jim Meyering  <meyering@redhat.com>
41441
41442         Avoid link failure for the argmatch test.
41443         * tests/test-argmatch.c (usage): Define function to avoid a link
41444         failure: argmatch_die requires a usage function.
41445
41446 2007-11-09  Bruno Haible  <bruno@clisp.org>
41447
41448         * doc/functions/snprintf.texi: Mention BeOS deficiency.
41449         * doc/functions/vsnprintf.texi: Likewise.
41450         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
41451         with a size argument < 2.
41452
41453 2007-11-09  Bruno Haible  <bruno@clisp.org>
41454
41455         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
41456         buffer. Fixes an inefficiency introduced on 2007-11-03.
41457
41458 2007-11-09  Bruno Haible  <bruno@clisp.org>
41459
41460         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
41461         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
41462
41463 2007-11-08  Jim Meyering  <meyering@redhat.com>
41464
41465         Change cache variable name prefix "jm_" to "gl_" everywhere.
41466         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
41467         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41468         * m4/uptime.m4: s/gl_/jm_/
41469
41470 2007-11-07  Bruno Haible  <bruno@clisp.org>
41471
41472         Update to GNU gettext 0.17.
41473         * m4/intl.m4: Update to GNU gettext 0.17.
41474         * m4/po.m4: Likewise.
41475         * modules/gettext (Files): Remove m4/ulonglong.m4.
41476         (configure.ac): Require gettext infrastructure from version 0.17.
41477
41478 2007-11-06  Bruno Haible  <bruno@clisp.org>
41479
41480         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41481         symbolic values are not defined in a public header.
41482         * lib/freadable.c (freadable) [QNX]: Likewise.
41483         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41484         * lib/freading.c (freading) [QNX]: Likewise.
41485         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41486         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41487         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41488         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41489         Reported by Alain Magloire.
41490
41491         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41492
41493 2007-11-05  Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41496         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41497         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41498         Reported by Eric Blake.
41499
41500 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41501             Bruno Haible  <bruno@clisp.org>
41502
41503         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41504         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41505         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41506         (malloc): Undefine also before including <stdlib.h>.
41507         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
41508         Needed on OSF/1 4.0.
41509
41510 2007-11-05  Jim Meyering  <meyering@redhat.com>
41511
41512         git-version-gen: sync from coreutils.
41513         * build-aux/git-version-gen: Add comments.
41514         Change the first '-' to '.' in the snapshot version string,
41515         e.g., 6.9-377-08144 -> 6.9.377-08144
41516         Remove first parameter.
41517         Don't declare a version "-dirty" merely because a time
41518         stamp has changed.
41519
41520 2007-11-04  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/lock.h: Protect all macro definitions containing an 'if'
41523         statement through a "do { ... } while (0)".
41524         * lib/tls.h: Likewise.
41525
41526 2007-11-04  Bruno Haible  <bruno@clisp.org>
41527
41528         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
41529
41530 2007-11-04  Bruno Haible  <bruno@clisp.org>
41531
41532         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
41533         * modules/fprintf-posix (Depends-on): Add nocrash.
41534         * modules/snprintf-posix (Depends-on): Likewise.
41535         * modules/sprintf-posix (Depends-on): Likewise.
41536         * modules/vasnprintf-posix (Depends-on): Likewise.
41537         * modules/vasprintf-posix (Depends-on): Likewise.
41538         * modules/vfprintf-posix (Depends-on): Likewise.
41539         * modules/vsnprintf-posix (Depends-on): Likewise.
41540         * modules/vsprintf-posix (Depends-on): Likewise.
41541         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41542         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41543         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41544         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41545         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41546         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41547         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41548
41549 2007-11-04  Bruno Haible  <bruno@clisp.org>
41550
41551         * modules/nocrash: New file.
41552         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
41553         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
41554
41555 2007-11-04  Bruno Haible  <bruno@clisp.org>
41556
41557         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
41558         precision handling.
41559         * tests/test-vasprintf-posix.c (test_function): Likewise.
41560         * tests/test-snprintf-posix.h (test_function): Likewise.
41561         * tests/test-sprintf-posix.h (test_function): Likewise.
41562
41563         Fix *printf behaviour for large precisions on mingw and BeOS.
41564         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
41565         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
41566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
41567         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41569         gl_PRINTF_PRECISION and test its result. Invoke
41570         gl_PREREQ_VASNPRINTF_PRECISION.
41571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41578         * doc/functions/fprintf.texi: Update.
41579         * doc/functions/printf.texi: Update.
41580         * doc/functions/snprintf.texi: Update.
41581         * doc/functions/sprintf.texi: Update.
41582         * doc/functions/vfprintf.texi: Update.
41583         * doc/functions/vprintf.texi: Update.
41584         * doc/functions/vsnprintf.texi: Update.
41585         * doc/functions/vsprintf.texi: Update.
41586
41587 2007-11-04  Bruno Haible  <bruno@clisp.org>
41588
41589         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
41590
41591 2007-11-04  Bruno Haible  <bruno@clisp.org>
41592
41593         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
41594         Reported by Sylvain Beucler <beuc@gnu.org>.
41595
41596 2007-11-03  Bruno Haible  <bruno@clisp.org>
41597
41598         * tests/test-fprintf-posix2.sh: New file.
41599         * tests/test-fprintf-posix2.c: New file.
41600         * modules/fprintf-posix-tests (Files): Add them.
41601         (TESTS): Add test-fprintf-posix2.sh.
41602         (configure.ac): Check for getrlimit and setrlimit.
41603         (check_PROGRAMS): Add test-fprintf-posix2.
41604
41605         * tests/test-printf-posix2.sh: New file.
41606         * tests/test-printf-posix2.c: New file.
41607         * modules/printf-posix-tests (Files): Add them.
41608         (TESTS): Add test-printf-posix2.sh.
41609         (configure.ac): Check for getrlimit and setrlimit.
41610         (check_PROGRAMS): Add test-printf-posix2.
41611
41612         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
41613         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
41614         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
41615         (decode_double): New function, copied from decode_long_double.
41616         (scale10_round_decimal_decoded): New function, extracted from
41617         scale10_round_decimal_long_double.
41618         (scale10_round_decimal_long_double): Use it.
41619         (scale10_round_decimal_double): New function.
41620         (floorlog10): New function.
41621         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
41622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
41623         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41624         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41625         gl_PRINTF_ENOMEM and test its result. Invoke
41626         gl_PREREQ_VASNPRINTF_ENOMEM.
41627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41629         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41631         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41634         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
41635         * modules/snprintf-posix (Depends-on): Likewise.
41636         * modules/sprintf-posix (Depends-on): Likewise.
41637         * modules/vasnprintf-posix (Depends-on): Likewise.
41638         * modules/vasprintf-posix (Depends-on): Likewise.
41639         * modules/vfprintf-posix (Depends-on): Likewise.
41640         * modules/vsnprintf-posix (Depends-on): Likewise.
41641         * modules/vsprintf-posix (Depends-on): Likewise.
41642         * doc/functions/fprintf.texi: Update.
41643         * doc/functions/printf.texi: Update.
41644         * doc/functions/snprintf.texi: Update.
41645         * doc/functions/sprintf.texi: Update.
41646         * doc/functions/vfprintf.texi: Update.
41647         * doc/functions/vprintf.texi: Update.
41648         * doc/functions/vsnprintf.texi: Update.
41649         * doc/functions/vsprintf.texi: Update.
41650
41651 2007-11-03  Bruno Haible  <bruno@clisp.org>
41652
41653         * modules/frexp-nolibm-tests: New file.
41654
41655         * modules/frexp-nolibm: New file.
41656         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
41657
41658 2007-11-03  Bruno Haible  <bruno@clisp.org>
41659
41660         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
41661         value is C99 compliant.
41662         Needed for OSF/1 5.1.
41663
41664 2007-11-03  Bruno Haible  <bruno@clisp.org>
41665
41666         Fix out-of-memory handling of vasnprintf.
41667         * lib/printf-parse.c: Include <errno.h>.
41668         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
41669         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
41670         is already set.
41671
41672 2007-11-02  Eric Blake  <ebb9@byu.net>
41673
41674         Fix tests on cygwin.
41675         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
41676
41677 2007-11-01  Bruno Haible  <bruno@clisp.org>
41678
41679         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
41680         warning.
41681         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
41682         needed for POSIX compatibility.
41683
41684 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41685
41686         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
41687         for compatibility with GNU.
41688
41689 2007-11-01  Bruno Haible  <bruno@clisp.org>
41690
41691         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
41692         (putenv): Renamed from rpl_putenv. Change argument type from
41693         'const char *' to 'char *'.
41694         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
41695         of defining putenv in config.h, just set REPLACE_PUTENV.
41696         * modules/putenv (Depends-on): Add stdlib.
41697         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41698         (Include): Use <stdlib.h>.
41699         * lib/stdlib.in.h (putenv): New declaration.
41700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
41701         REPLACE_PUTENV.
41702         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
41703         REPLACE_PUTENV.
41704         Needed for MacOS X 10.5.0.
41705         Reported by Peter O'Gorman <peter@pogma.com>.
41706
41707 2007-11-01  Jim Meyering  <meyering@redhat.com>
41708
41709         Treat an empty date string exactly like "0".
41710         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
41711         if the remaining date string (to be parsed) is empty, use "0".
41712         Reported by Mischa Molhoek and discussed in this thread:
41713         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
41714
41715 2007-10-31  Bruno Haible  <bruno@clisp.org>
41716
41717         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
41718         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
41719         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
41720         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
41721         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
41722         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
41723
41724 2007-10-31  Bruno Haible  <bruno@clisp.org>
41725
41726         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
41727         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
41728         (AC_TYPE_LONG_LONG_INT): Use it.
41729         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
41730         it as well.
41731         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
41732         to m4/longlong.m4.
41733         * modules/stdint (Files): Remove m4/ulonglong.m4.
41734         * modules/strtoull (Files): Use m4/longlong.m4 instead of
41735         m4/ulonglong.m4.
41736         * modules/strtoumax (Files): Likewise.
41737
41738 2007-10-30  Bruno Haible  <bruno@clisp.org>
41739
41740         * modules/xvasprintf-posix: New file.
41741         Suggested by Eric Blake.
41742
41743 2007-10-30  Bruno Haible  <bruno@clisp.org>
41744
41745         * modules/xprintf-posix-tests: New file.
41746         * tests/test-xprintf-posix.sh: New file.
41747         * tests/test-xprintf-posix.c: New file.
41748         * tests/test-xfprintf-posix.c: New file.
41749
41750         * modules/xprintf-posix: New file.
41751
41752 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41753
41754         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
41755         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
41756         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
41757
41758 2007-10-29  Bruno Haible  <bruno@clisp.org>
41759
41760         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
41761         contain the special marker '_cv_'.
41762         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41763         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41764         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41765         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
41766         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41767         Reported by Ralf Wildenhues.
41768
41769 2007-10-29  Bruno Haible  <bruno@clisp.org>
41770
41771         * gnulib-tool (func_import): When --lgpl is not specified, set
41772         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
41773         GPLv3.
41774         Reported by Simon Josefsson.
41775
41776 2007-10-28  Bruno Haible  <bruno@clisp.org>
41777
41778         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
41779         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
41780         HAVE_DECL_ISFINITE.
41781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41782         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
41783         HAVE_DECL_ISFINITE.
41784
41785 2007-10-28  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
41788         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
41789
41790 2007-10-28  Bruno Haible  <bruno@clisp.org>
41791
41792         Fix link errors with Sun C 5.0 on Solaris 10.
41793         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
41794         function is declared but not present in the compiler's libm.
41795         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
41796         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
41797         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
41798         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
41799         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
41800         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
41801         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
41802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41803         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
41804         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
41805         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
41806         HAVE_DECL_FLOORL.
41807
41808 2007-10-28  Bruno Haible  <bruno@clisp.org>
41809
41810         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
41811         gl_FUNC_FLOORL. Cache the result.
41812         (gl_FUNC_FLOORL): Use it.
41813         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
41814         gl_FUNC_CEILL. Cache the result.
41815         (gl_FUNC_CEILL): Use it.
41816
41817         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
41818         gl_FUNC_FLOOR. Cache the result.
41819         (gl_FUNC_FLOOR): Use it.
41820         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
41821         gl_FUNC_CEIL. Cache the result.
41822         (gl_FUNC_CEIL): Use it.
41823
41824         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
41825         gl_FUNC_FLOORF. Cache the result.
41826         (gl_FUNC_FLOORF): Use it.
41827         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
41828         gl_FUNC_CEILF. Cache the result.
41829         (gl_FUNC_CEILF): Use it.
41830
41831 2007-10-28  Bruno Haible  <bruno@clisp.org>
41832
41833         * gnulib-tool: Allow specifying the LGPL version number through
41834         --lgpl=2 or --lgpl=3.
41835         (func_usage): Document --lgpl with argument.
41836         Handle --lgpl=... arguments.
41837         (func_import): Recognize also gl_LGPL calls with an argument. When
41838         --lgpl=2 is used and the module's license is just LGPL, report an
41839         error. Set sed_transform_lib_file according to the lgpl variable. In
41840         the generated files, use --lgpl or gl_LGPL invocations with argument,
41841         if necessary.
41842         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
41843         an LGPv2+ license.
41844         * doc/gnulib-tool.texi (Modified imports): Update explanation of
41845         gl_LGPL macro.
41846
41847 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41848             Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
41851         (u16_uctomb_aux): Likewise.
41852         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
41853         !HAVE_INLINE.
41854         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
41855
41856 2007-10-28  Bruno Haible  <bruno@clisp.org>
41857
41858         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
41859         Invoke AM_GETTEXT_OPTION if it exists.
41860         * modules/vasprintf: Likewise.
41861         * modules/verror: Likewise.
41862         * modules/xprintf: Likewise.
41863         * modules/xvasprintf: Likewise.
41864
41865 2007-10-27  Ben Pfaff  <blp@gnu.org>
41866
41867         * lib/math.in.h: Define isfinite macro and prototypes for
41868         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
41869         implementations.
41870         * m4/math_h.m4: New substitutions for isfinite module.
41871         * lib/isfinite.c: New file.
41872         * m4/isfinite.m4: New file.
41873         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
41874         * modules/isfinite: New file.
41875         * modules/isfinite-tests: New file.
41876         * tests/tests-isfinite.c: New file.
41877         * doc/functions/isfinite.texi: Mention isfinite module.
41878         * MODULES.html.sh: Mention new module.
41879
41880 2007-10-27  Ben Pfaff  <blp@gnu.org>
41881
41882         Ralf Wildenhues reported that Tru64 4.0D declares the round
41883         functions but does not have definitions.
41884         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
41885         cannot be found in any library, set the output variable to
41886         "missing" instead of "".
41887         * m4/round.m4: Also use our substitute if we cannot find round in
41888         any library, even if it is declared.
41889         * m4/roundf.m4: Likewise for roundf.
41890         * m4/roundl.m4: Likewise for roundl.
41891         * lib/math.in.h: Undefine roundf, round, roundl before defining
41892         their replacements, to allow for hypothetical systems where these
41893         may be defined as macros but not available in libraries.
41894
41895 2007-10-27  Bruno Haible  <bruno@clisp.org>
41896
41897         * doc/gnulib.texi: Invoke @firstparagraphindent.
41898         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
41899         changes in gnulib.
41900         (Source changes): New section.
41901
41902 2007-10-26  Bruno Haible  <bruno@clisp.org>
41903
41904         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
41905         borrowed from autoconf.
41906
41907 2007-10-26  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
41910         strerror returned the empty string. Needed on HP-UX 11.00.
41911
41912 2007-10-24  Micah Cowan  <micah@cowan.name>
41913
41914         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
41915         * build-aux/bootstrap: Remove support for now-unnecessary option,
41916         --cvs-user, and envvars CVS_USER, CVS_RSH.
41917
41918 2007-10-24  Jim Meyering  <meyering@redhat.com>
41919
41920         Avoid diagnostics from sha1sum when there is no cached checksum.
41921         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
41922         if the po.s1 file hasn't been created yet.
41923
41924         * build-aux/bootstrap: Sync from coreutils:
41925         2007-10-24  Jim Meyering  <meyering@redhat.com>
41926         Get gnulib from the git repository, not from an obsolete cvs one.
41927         * build-aux/bootstrap: Suggestion from Micah Cowan.
41928         2007-10-04  Jim Meyering  <jim@meyering.net>
41929         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
41930         (update_po_files): Work also when there are no .po files in po/.
41931
41932 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41933
41934         * README: Append ".git" to git and cg examples.
41935         Problem reported by Benoit Sigoure.
41936
41937 2007-10-23  Micah Cowan  <micah@cowan.name>
41938
41939         * users.txt: Add wget.
41940
41941 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41942
41943         Fix linking of some unistdio tests on FreeBSD.
41944         * modules/unistdio/u16-vsnprintf-tests
41945         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
41946         * modules/unistdio/u16-vsprintf-tests
41947         (test_u16_vsnprintf1_LDADD): Likewise.
41948         * modules/unistdio/u32-vsnprintf-tests
41949         (test_u32_vsnprintf1_LDADD): Likewise.
41950         * modules/unistdio/u32-vsprintf-tests
41951         (test_u32_vsprintf1_LDADD): Likewise.
41952         * modules/unistdio/u8-vsnprintf-tests
41953         (test_u8_vsnprintf1_LDADD): Likewise.
41954         * modules/unistdio/u8-vsprintf-tests
41955         (test_u8_vsprintf1_LDADD): Likewise.
41956         * modules/unistdio/ulc-vsnprintf-tests
41957         (test_ulc_vsnprintf1_LDADD): Likewise.
41958         * modules/unistdio/ulc-vsprintf-tests
41959         (test_ulc_vsprintf1_LDADD): Likewise.
41960
41961         Fix linking of some uniconv tests on FreeBSD.
41962         * modules/uniconv/u16-conv-from-enc-tests
41963         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
41964         * modules/uniconv/u16-conv-to-enc-tests
41965         (test_u16_conv_to_enc_LDADD): Likewise.
41966         * modules/uniconv/u16-strconv-from-enc-tests
41967         (test_u16_strconv_from_enc_LDADD): Likewise.
41968         * modules/uniconv/u16-strconv-to-enc-tests
41969         (test_u16_strconv_to_enc_LDADD): Likewise.
41970         * modules/uniconv/u32-conv-from-enc-tests
41971         (test_u32_conv_from_enc_LDADD): Likewise.
41972         * modules/uniconv/u32-conv-to-enc-tests
41973         (test_u32_conv_to_enc_LDADD): Likewise.
41974         * modules/uniconv/u32-strconv-from-enc-tests
41975         (test_u32_strconv_from_enc_LDADD): Likewise.
41976         * modules/uniconv/u32-strconv-to-enc-tests
41977         (test_u32_strconv_to_enc_LDADD): Likewise.
41978         * modules/uniconv/u8-conv-from-enc-tests
41979         (test_u8_conv_from_enc_LDADD): Likewise.
41980         * modules/uniconv/u8-conv-to-enc-tests
41981         (test_u8_conv_to_enc_LDADD): Likewise.
41982         * modules/uniconv/u8-strconv-from-enc-tests
41983         (test_u8_strconv_from_enc_LDADD): Likewise.
41984         * modules/uniconv/u8-strconv-to-enc-tests
41985         (test_u8_strconv_to_enc_LDADD): Likewise.
41986
41987 2007-10-22  Bruno Haible  <bruno@clisp.org>
41988
41989         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
41990         size.
41991
41992 2007-10-22  Eric Blake  <ebb9@byu.net>
41993
41994         Tweak x*printf documentation.
41995         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
41996         variable name and comments.
41997         Suggested by Bruno Haible.
41998
41999 2007-10-22  Bruno Haible  <bruno@clisp.org>
42000
42001         * lib/acl.c (copy_acl): Fix file name in comment.
42002
42003 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42004
42005         Fix Tru64 problem with stdbool.h.
42006         * lib/stdbool.in.h (false, true):
42007         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
42008         Don't declare as an enum in this situation; it runs afoul of Tru64.
42009         Problem reported by Steven M. Schweda in
42010         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
42011
42012 2007-10-22  Eric Blake  <ebb9@byu.net>
42013
42014         Also wrap vf?printf.
42015         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
42016         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
42017         (xvprintf, xvfprintf): New functions.
42018
42019 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42020
42021         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
42022         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
42023
42024         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
42025         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
42026
42027 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42028
42029         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
42030         by Bruno Haible.
42031
42032 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42033
42034         * lib/getloadavg.c
42035         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
42036         Undef `sys' after including sys/table.h, for Tru64 4.0D.
42037
42038         * tests/test-i-ring.c: Work for C89.
42039
42040 2007-10-22  Bruno Haible  <bruno@clisp.org>
42041
42042         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
42043         -1u, in preprocessor expression, so that we don't test for the bug
42044         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
42045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
42046
42047 2007-10-22  Eric Blake  <ebb9@byu.net>
42048
42049         * tests/test-yesno.sh: Silence stderr during test.
42050
42051 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42052
42053         * modules/crypto/gc-camellia: New file.
42054
42055         * m4/gc-camellia.m4: New file.
42056
42057         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
42058
42059         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
42060
42061 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42062
42063         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
42064         --help to stdout.  Reported by sms@antinode.org (Steven
42065         M. Schweda).
42066
42067 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42068
42069         * users.txt: Fix link to libksba.
42070
42071 2007-10-21  Ben Pfaff  <blp@gnu.org>
42072
42073         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
42074         round.c roundf implementation that depends on floorf and ceilf to
42075         be tested unconditionally.
42076
42077 2007-10-21  Ben Pfaff  <blp@gnu.org>
42078
42079         * m4/check-libm-func.m4: Removed.
42080         * m4/check-math-lib.m4: New file.
42081         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
42082         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
42083         definition and lack of AC_LIBOBJ([roundf]).
42084         * m4/roundl.m4: Ditto, and similarly for roundl.
42085         * modules/round: Reference new m4 file.
42086         * modules/roundf: Ditto.
42087         * modules/roundl: Ditto.
42088         * tests/test-round2.c (main): Use ROUND instead of round.
42089         Bug report from Bruno Haible.
42090
42091 2007-10-21  Bruno Haible  <bruno@clisp.org>
42092
42093         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
42094         context.
42095
42096 2007-10-21  Bruno Haible  <bruno@clisp.org>
42097
42098         * tests/test-wcwidth.c (main): Allow negative result for some control
42099         characters.
42100
42101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
42102         Needed on OSF/1 5.1.
42103
42104 2007-10-21  Bruno Haible  <bruno@clisp.org>
42105
42106         * tests/test-floorf1.c: Include isnanf.h.
42107         (main): Use isnanf() instead of isnan().
42108         * tests/test-ceilf1.c: Include isnanf.h.
42109         (main): Use isnanf() instead of isnan().
42110         * tests/test-truncf1.c: Include isnanf.h.
42111         (main): Use isnanf() instead of isnan().
42112         * tests/test-roundf1.c: Include isnanf.h.
42113         (main): Use isnanf() instead of isnan().
42114
42115 2007-10-21  Eric Blake  <ebb9@byu.net>
42116
42117         * users.txt: Update URL for m4.
42118
42119 2007-10-21  Bruno Haible  <bruno@clisp.org>
42120
42121         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42122
42123 2007-10-21  Bruno Haible  <bruno@clisp.org>
42124
42125         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42126         Git's management files if the CVS files are not present.
42127
42128 2007-10-20  Bruno Haible  <bruno@clisp.org>
42129
42130         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42131         gcc-3.4.x.
42132
42133 2007-10-20  Ben Pfaff  <blp@gnu.org>
42134
42135         * lib/math.in.h: Declare round, roundf, roundl if we are providing
42136         implementations.
42137         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
42138         * lib/round.c: New file.
42139         * lib/roundf.c: New file.
42140         * lib/roundl.c: New file.
42141         * m4/round.m4: New file.
42142         * m4/roundf.m4: New file.
42143         * m4/roundl.m4: New file.
42144         * m4/check-libm-func-m4: New file.
42145         * modules/math: Replace round, roundf, roundl related @VARS@ in
42146         math.in.h.
42147         * modules/round: New file.
42148         * modules/round-tests: New file.
42149         * modules/roundf: New file.
42150         * modules/roundf-tests: New file.
42151         * modules/roundl: New file.
42152         * modules/roundl-tests: New file.
42153         * tests/test-round1.c: New file.
42154         * tests/test-round2.c: New file.
42155         * tests/test-roundf1.c: New file.
42156         * tests/test-roundf2.c: New file.
42157         * tests/test-roundl.c: New file.
42158         * doc/functions/round.texi: Mention round module.
42159         * doc/functions/roundf.texi: Mention roundf module.
42160         * doc/functions/roundl.texi: Mention roundl module.
42161         * MODULES.html.sh: Mention new modules.
42162         Thanks to Bruno Haible for suggestions.
42163
42164 2007-10-20  Jim Meyering  <meyering@redhat.com>
42165
42166         * lib/xprintf.c: Include <config.h> unconditionally.
42167
42168         Change xprintf's license to GPL.
42169         * modules/xprintf (License): s/LGPL/GPL/, since this module
42170         depends on modules (exit and exitfail) which are GPL.
42171         Suggestion from Bruno Haible.
42172
42173         xprintf fixes.
42174         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
42175         Use a clearer diagnostic.
42176         Patch from Bruno Haible.
42177
42178 2007-10-20  Bruno Haible  <bruno@clisp.org>
42179
42180         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
42181         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
42182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42183
42184 2007-10-20  Bruno Haible  <bruno@clisp.org>
42185
42186         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
42187         precision in the comparison result > x - 1 or similar.
42188         * tests/test-ceilf2.c (correct_result_p): Likewise.
42189         * tests/test-truncf2.c (correct_result_p): Likewise.
42190         * tests/test-trunc2.c (correct_result_p): Likewise.
42191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42192
42193 2007-10-20  Bruno Haible  <bruno@clisp.org>
42194
42195         * modules/ceil: New file.
42196         * m4/ceil.m4: New file.
42197         * doc/functions/ceil.texi: Mention the 'ceil' module.
42198
42199 2007-10-20  Bruno Haible  <bruno@clisp.org>
42200
42201         * modules/floor: New file.
42202         * m4/floor.m4: New file.
42203         * doc/functions/floor.texi: Mention the 'floor' module.
42204
42205 2007-10-20  Bruno Haible  <bruno@clisp.org>
42206
42207         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
42208         of %a.
42209         * modules/floorf-tests (Depends-on): Likewise.
42210         * modules/truncf-tests (Depends-on): Likewise.
42211         * modules/trunc-tests (Depends-on): Likewise.
42212         Reported by Ben Pfaff.
42213
42214 2007-10-19  Jim Meyering  <meyering@redhat.com>
42215
42216         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
42217         Don't bother testing specific errno values.  Just test ferror.
42218
42219         New module: xprintf
42220         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
42221
42222 2007-10-19  Bruno Haible  <bruno@clisp.org>
42223
42224         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
42225         syntax.
42226         * modules/javaexec (Makefile.am): Likewise.
42227         * modules/relocatable-prog (Makefile.am): Likewise.
42228         Suggested by Jim Meyering.
42229
42230 2007-10-18  Bruno Haible  <bruno@clisp.org>
42231
42232         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
42233         Reported by Jim Meyering.
42234
42235 2007-10-18  Eric Blake  <ebb9@byu.net>
42236
42237         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
42238
42239 2007-10-18  Bruno Haible  <bruno@clisp.org>
42240
42241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
42242         the format string into writable memory. Needed in Fortify conditions.
42243
42244 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
42245             Bruno Haible  <bruno@clisp.org>
42246
42247         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
42248         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
42249         * modules/trim (Depends-on): Add mbchar.
42250         (configure.ac): Add gl_FUNC_MBRTOWC.
42251         (Makefile.am): Augment lib_SOURCES.
42252
42253 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42254
42255         Modify glob.c to use fstatat and dirfd, to simplify it.
42256         Suggested by Eric Blake.
42257         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
42258         Don't include <stdbool.h>; not used.
42259         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
42260         (link_exists_p): Simplify implementation, since we can now assume
42261         dirfd and fstatat.
42262         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
42263
42264 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42265
42266         * gnulib-tool (func_get_dependencies): Fix sed script to
42267         match only tests.
42268
42269 2007-10-17  Bruno Haible  <bruno@clisp.org>
42270
42271         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
42272         allow locale names without encoding suffix.
42273         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42274         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42275
42276 2007-10-16  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
42279         * lib/getgroups.c (getgroups): Likewise.
42280         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
42281
42282 2007-10-16  Bruno Haible  <bruno@clisp.org>
42283
42284         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
42285         * modules/malloc-posix (License): Likewise.
42286         * modules/realloc-posix (License): Likewise.
42287         * modules/calloc-posix (License): Likewise.
42288         * modules/intprops (License): Change from GPL to LGPL, with
42289         Paul Eggert's approval.
42290
42291 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42292
42293         Merge glibc changes into lib/glob.c.
42294
42295         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
42296         2007-10-15 04:59:03 UTC.  Here are the changes:
42297
42298         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
42299
42300         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
42301
42302         * lib/glob.c: Add some branch prediction throughout.
42303
42304         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
42305
42306         [BZ #5103]
42307         * lib/glob.c (glob): Recognize patterns starting \/.
42308
42309         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
42310
42311         [BZ #3996]
42312         * lib/glob.c (attribute_hidden): Define if not defined.
42313         (glob): Unescape dirname, filename or username when needed and not
42314         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
42315         is NULL.  Handle unescaped [ in pattern without closing ].
42316         Don't pass GLOB_CHECK down to recursive glob for directories.
42317         (__glob_pattern_type): New function.
42318         (__glob_pattern_p): Implement using __glob_pattern_type.
42319         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
42320         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
42321         Remove unreachable code.
42322
42323         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
42324
42325         * lib/glob.c (glob_in_dir): Add some comments and asserts to
42326         explain why there are no leaks.
42327
42328         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
42329
42330         [BZ #3253]
42331         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
42332         time, rather allocate increasingly bigger arrays of pointers, if
42333         possible with alloca, if too large with malloc.
42334
42335 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42336
42337         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42338         Problem reported by H.Merijn Brand in
42339         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42340         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42341         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42342
42343 2007-10-15  Bruno Haible  <bruno@clisp.org>
42344
42345         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42346         with explicit rpl_ prefix.
42347         * lib/fopen.c (fopen): Likewise.
42348         * lib/freopen.c (freopen): Likewise.
42349         * lib/iconv.c (iconv): Likewise.
42350         * lib/iconv_close.c (iconv_close): Likewise.
42351
42352 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42353
42354         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42355
42356 2007-10-15  Bruno Haible  <bruno@clisp.org>
42357
42358         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
42359         <stddef.h> instead of <stdlib.h> since we only need NULL.
42360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42361
42362 2007-10-15  Bruno Haible  <bruno@clisp.org>
42363
42364         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
42365         Replace paragraph talking about LIBOBJS.
42366         Reported by Colin Watson <cjwatson@debian.org>.
42367
42368 2007-10-15  Bruno Haible  <bruno@clisp.org>
42369
42370         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
42371         <stdlib.h> before using NULL.
42372
42373 2007-10-15  Simon Josefsson  <simon@josefsson.org>
42374
42375         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
42376         Reported by Albert Chin <china@thewrittenword.com>.
42377
42378 2007-10-14  Bruno Haible  <bruno@clisp.org>
42379
42380         * modules/iconv_open-utf-tests: New file.
42381         * tests/test-iconv-utf.c: New file.
42382
42383         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
42384         * modules/iconv_open-utf: New file.
42385         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
42386         (iconv, iconv_close): New declarations.
42387         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
42388         be defined.
42389         (iconv_open): Add special handling of conversion between UTF-8 and
42390         UTF-{16,32}{BE,LE}.
42391         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
42392         * lib/iconv_close.c: New file.
42393         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
42394         gl_FUNC_ICONV_OPEN.
42395         (gl_FUNC_ICONV_OPEN): Use it.
42396         (gl_FUNC_ICONV_OPEN_UTF): New macro.
42397         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
42398         and REPLACE_ICONV_UTF.
42399         * modules/iconv_open (Depends-on): Add c-strcase.
42400         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
42401         ICONV_CONST.
42402         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
42403
42404 2007-10-13  Albert Chin  <china@thewrittenword.com>
42405             Bruno Haible  <bruno@clisp.org>
42406
42407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
42408         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
42409
42410 2007-10-13  Bruno Haible  <bruno@clisp.org>
42411
42412         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
42413         defined, use the ISO C99 inline semantics.
42414         * lib/argp.h (ARGP_EI): Likewise.
42415
42416 2007-10-13  Bruno Haible  <bruno@clisp.org>
42417
42418         Handle 'inline' change in gcc 4.3.0.
42419         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
42420         argp_fmtstream_write, argp_fmtstream_set_lmargin,
42421         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
42422         argp_fmtstream_point): Disable 'extern' declaration if the function
42423         definition is going to be provided inline.
42424         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
42425         semantics, not the ISO C99 inline semantics.
42426         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
42427         'extern' declaration if the function definition is going to be provided
42428         inline.
42429         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
42430         the GNU C inline semantics, not the ISO C99 inline semantics. With
42431         GCC 4.2, avoid a warning.
42432
42433 2007-10-13  Bruno Haible  <bruno@clisp.org>
42434
42435         * lib/freading.h (freading): Enable the use of __freading for
42436         glibc >= 2.7.
42437         * lib/freading.c (freading): Likewise.
42438
42439 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42440
42441         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
42442         "warning: C99 inline functions are not supported; using GNU89".
42443
42444 2007-10-12  Bruno Haible  <bruno@clisp.org>
42445
42446         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
42447         of 2.
42448         * tests/test-ceilf2.c: New file.
42449         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
42450
42451         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
42452         * modules/ceilf-tests: Update.
42453
42454 2007-10-12  Bruno Haible  <bruno@clisp.org>
42455
42456         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
42457         of 2.
42458         * tests/test-floorf2.c: New file.
42459         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
42460
42461         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
42462         * modules/floorf-tests: Update.
42463
42464 2007-10-12  Bruno Haible  <bruno@clisp.org>
42465
42466         * tests/test-trunc2.c: New file.
42467         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42468
42469         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42470         * modules/trunc-tests: Update.
42471
42472 2007-10-12  Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42475         of 2.
42476         * tests/test-truncf2.c: New file.
42477         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42478
42479         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42480         * modules/truncf-tests: Update.
42481
42482 2007-10-11  Eric Blake  <ebb9@byu.net>
42483
42484         Don't claim strerror is broken on Interix.
42485         * doc/functions/strerror.texi (strerror): Known broken systems are
42486         now Solaris 8, and not Interix.
42487         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42488         Interix on cross-compile.
42489         Reported by Martin Koeppe in
42490         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42491
42492 2007-10-11  Bruno Haible  <bruno@clisp.org>
42493
42494         * modules/i-ring-tests: New file.
42495         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42496         instead of assert.
42497
42498 2007-10-11  Bruno Haible  <bruno@clisp.org>
42499
42500         * modules/filenamecat-tests: New file.
42501         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42502         * lib/filenamecat.c: Remove test code.
42503
42504 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42505
42506         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
42507
42508         * lib/strerror.c: Include <string.h> always, to test interface,
42509         and to remove the need for the dummy.
42510         Include intprops.h to compute width instead of doing it ourselves
42511         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
42512         (strerror): Define it to return NULL if there's no system strerror.
42513         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
42514         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
42515         ancient pre-strerror Unix systems well any more.  Saying "unknown
42516         system error" is enough.
42517         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
42518         simpler strerror.c implementation.
42519         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
42520         Simplify the tests to reflect the simpler strerror implementation.
42521         * modules/strerror (Depends-on): Add intprops.
42522
42523 2007-10-09  Eric Blake  <ebb9@byu.net>
42524
42525         Silence test-fpending.
42526         * modules/fpending-tests (Files): Add wrapper script.
42527         * tests/test-fpending.sh: New file.
42528
42529 2007-10-09  Bruno Haible  <bruno@clisp.org>
42530
42531         * MODULES.html.sh (func_module): Don't create a hyperlink for
42532         function names like 'printf_frexp'.
42533         (Misc): Add crc, memxor.
42534         (Characteristics of floating types): New section.
42535         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
42536         isnanf-nolibm, signbit, trunc, truncf, truncl.
42537         (Enhancements for ISO C 99 functions): New subsection Input/output.
42538         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
42539         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
42540         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
42541         (Compatibility checks for POSIX:2001 functions): Add clock-time.
42542         (Enhancements for POSIX:2001 functions): Add chdir-long.
42543         (File system functions): Add areadlink, chdir-safer, read-file.
42544         Remove cycle-check.
42545         (File system as inode set): New section.
42546         (Date and time): Add gethrxtime.
42547         (Multithreading): Add openmp.
42548         (Internationalization functions): Add localename.
42549         (Unicode string functions): Add unistr/u*-mbsnlen.
42550         (Support for maintaining and releasing projects): Add git-version-gen.
42551         (Lone files): Remove directories.
42552
42553 2007-10-08  Ben Pfaff  <blp@gnu.org>
42554
42555         * lib/xmalloca.h: Fix typo in comment.
42556
42557 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42558
42559         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
42560         when avoiding problems with integer overflow.  Use a portable test
42561         instead.
42562
42563 2007-10-08  Simon Josefsson  <simon@josefsson.org>
42564
42565         * modules/dummy (License): Change to LGPLv2+.
42566         * modules/float (License): Likewise
42567         * modules/realloc (License): Likewise
42568         * modules/stdlib (License): Likewise
42569
42570 2007-10-07  Bruno Haible  <bruno@clisp.org>
42571
42572         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
42573         * floor.c (TWO_MANT_DIG): Likewise.
42574         * ceil.c (TWO_MANT_DIG): Likewise.
42575         Reported by Ben Pfaff.
42576
42577 2007-10-07  Bruno Haible  <bruno@clisp.org>
42578
42579         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
42580         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
42581         * lib/frexp.c (FUNC): Likewise.
42582         * lib/printf-frexp.h (printf_frexp): Likewise.
42583         * lib/printf-frexpl.h (printf_frexpl): Likewise.
42584         * lib/printf-frexp.c (FUNC): Likewise.
42585         Suggested by Jim Meyering.
42586
42587 2007-10-07  Jim Meyering  <meyering@redhat.com>
42588
42589         Make xnanosleep's integer overflow test more robust.
42590         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
42591         so that gcc-4.3.0 doesn't optimize away this test for overflow.
42592
42593 2007-10-07  Bruno Haible  <bruno@clisp.org>
42594
42595         * NEWS: Mention the license change.
42596
42597         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42598         abbreviations in the modules files.
42599
42600         Change copyright notice from GPLv2+ to GPLv3+.
42601         * README: Change copyright notice.
42602         * MODULES.html.sh: Likewise.
42603         * build-aux/bootstrap.conf: Likewise.
42604         * build-aux/config.libpath: Likewise.
42605         * build-aux/csharpcomp.sh.in: Likewise.
42606         * build-aux/csharpexec.sh.in: Likewise.
42607         * build-aux/install-reloc: Likewise.
42608         * build-aux/javacomp.sh.in: Likewise.
42609         * build-aux/javaexec.sh.in: Likewise.
42610         * build-aux/ldd.sh.in: Likewise.
42611         * build-aux/reloc-ldflags: Likewise.
42612         * build-aux/relocatable.sh.in: Likewise.
42613         * build-aux/x-to-1.in: Likewise.
42614         * check-module: Likewise.
42615         * config/srclistvars.sh: Likewise.
42616         * gnulib-tool: Likewise.
42617         * lib/acl-internal.h: Likewise.
42618         * lib/acl.c: Likewise.
42619         * lib/acl.h: Likewise.
42620         * lib/acl_entries.c: Likewise.
42621         * lib/areadlink-with-size.c: Likewise.
42622         * lib/areadlink.c: Likewise.
42623         * lib/areadlink.h: Likewise.
42624         * lib/argmatch.c: Likewise.
42625         * lib/argmatch.h: Likewise.
42626         * lib/argp-ba.c: Likewise.
42627         * lib/argp-eexst.c: Likewise.
42628         * lib/argp-fmtstream.c: Likewise.
42629         * lib/argp-fmtstream.h: Likewise.
42630         * lib/argp-fs-xinl.c: Likewise.
42631         * lib/argp-help.c: Likewise.
42632         * lib/argp-namefrob.h: Likewise.
42633         * lib/argp-parse.c: Likewise.
42634         * lib/argp-pin.c: Likewise.
42635         * lib/argp-pv.c: Likewise.
42636         * lib/argp-pvh.c: Likewise.
42637         * lib/argp-xinl.c: Likewise.
42638         * lib/argp.h: Likewise.
42639         * lib/at-func.c: Likewise.
42640         * lib/atanl.c: Likewise.
42641         * lib/backupfile.c: Likewise.
42642         * lib/backupfile.h: Likewise.
42643         * lib/basename.c: Likewise.
42644         * lib/binary-io.h: Likewise.
42645         * lib/byteswap.in.h: Likewise.
42646         * lib/c-stack.c: Likewise.
42647         * lib/c-stack.h: Likewise.
42648         * lib/c-strcasestr.c: Likewise.
42649         * lib/c-strcasestr.h: Likewise.
42650         * lib/c-strstr.c: Likewise.
42651         * lib/c-strstr.h: Likewise.
42652         * lib/c-strtod.c: Likewise.
42653         * lib/calloc.c: Likewise.
42654         * lib/canon-host.c: Likewise.
42655         * lib/canon-host.h: Likewise.
42656         * lib/canonicalize-lgpl.c: Likewise.
42657         * lib/canonicalize.c: Likewise.
42658         * lib/canonicalize.h: Likewise.
42659         * lib/ceil.c: Likewise.
42660         * lib/ceilf.c: Likewise.
42661         * lib/ceill.c: Likewise.
42662         * lib/chdir-long.c: Likewise.
42663         * lib/chdir-long.h: Likewise.
42664         * lib/chdir-safer.c: Likewise.
42665         * lib/chdir-safer.h: Likewise.
42666         * lib/chown.c: Likewise.
42667         * lib/classpath.c: Likewise.
42668         * lib/classpath.h: Likewise.
42669         * lib/clean-temp.c: Likewise.
42670         * lib/clean-temp.h: Likewise.
42671         * lib/cloexec.c: Likewise.
42672         * lib/close-stream.c: Likewise.
42673         * lib/closein.c: Likewise.
42674         * lib/closein.h: Likewise.
42675         * lib/closeout.c: Likewise.
42676         * lib/closeout.h: Likewise.
42677         * lib/concat-filename.c: Likewise.
42678         * lib/copy-file.c: Likewise.
42679         * lib/copy-file.h: Likewise.
42680         * lib/count-one-bits.h: Likewise.
42681         * lib/crc.c: Likewise.
42682         * lib/crc.h: Likewise.
42683         * lib/creat-safer.c: Likewise.
42684         * lib/csharpcomp.c: Likewise.
42685         * lib/csharpcomp.h: Likewise.
42686         * lib/csharpexec.c: Likewise.
42687         * lib/csharpexec.h: Likewise.
42688         * lib/cycle-check.c: Likewise.
42689         * lib/cycle-check.h: Likewise.
42690         * lib/diacrit.c: Likewise.
42691         * lib/diacrit.h: Likewise.
42692         * lib/diffseq.h: Likewise.
42693         * lib/dirchownmod.c: Likewise.
42694         * lib/dirent.in.h: Likewise.
42695         * lib/dirfd.c: Likewise.
42696         * lib/dirfd.h: Likewise.
42697         * lib/dirname.c: Likewise.
42698         * lib/dirname.h: Likewise.
42699         * lib/dummy.c: Likewise.
42700         * lib/dup-safer.c: Likewise.
42701         * lib/dup2.c: Likewise.
42702         * lib/eealloc.h: Likewise.
42703         * lib/error.c: Likewise.
42704         * lib/error.h: Likewise.
42705         * lib/euidaccess.c: Likewise.
42706         * lib/exclude.c: Likewise.
42707         * lib/exclude.h: Likewise.
42708         * lib/execute.c: Likewise.
42709         * lib/execute.h: Likewise.
42710         * lib/exitfail.c: Likewise.
42711         * lib/exitfail.h: Likewise.
42712         * lib/expl.c: Likewise.
42713         * lib/fatal-signal.c: Likewise.
42714         * lib/fatal-signal.h: Likewise.
42715         * lib/fbufmode.c: Likewise.
42716         * lib/fbufmode.h: Likewise.
42717         * lib/fchdir.c: Likewise.
42718         * lib/fchmodat.c: Likewise.
42719         * lib/fchownat.c: Likewise.
42720         * lib/fcntl--.h: Likewise.
42721         * lib/fcntl-safer.h: Likewise.
42722         * lib/fcntl.in.h: Likewise.
42723         * lib/fd-safer.c: Likewise.
42724         * lib/fflush.c: Likewise.
42725         * lib/file-has-acl.c: Likewise.
42726         * lib/file-set.c: Likewise.
42727         * lib/file-type.c: Likewise.
42728         * lib/file-type.h: Likewise.
42729         * lib/fileblocks.c: Likewise.
42730         * lib/filemode.c: Likewise.
42731         * lib/filemode.h: Likewise.
42732         * lib/filename.h: Likewise.
42733         * lib/filenamecat.c: Likewise.
42734         * lib/filenamecat.h: Likewise.
42735         * lib/findprog.c: Likewise.
42736         * lib/findprog.h: Likewise.
42737         * lib/float.in.h: Likewise.
42738         * lib/floor.c: Likewise.
42739         * lib/floorf.c: Likewise.
42740         * lib/floorl.c: Likewise.
42741         * lib/fopen-safer.c: Likewise.
42742         * lib/fopen.c: Likewise.
42743         * lib/fpending.c: Likewise.
42744         * lib/fpending.h: Likewise.
42745         * lib/fprintf.c: Likewise.
42746         * lib/fprintftime.h: Likewise.
42747         * lib/fpucw.h: Likewise.
42748         * lib/fpurge.c: Likewise.
42749         * lib/fpurge.h: Likewise.
42750         * lib/freadable.c: Likewise.
42751         * lib/freadable.h: Likewise.
42752         * lib/freadahead.c: Likewise.
42753         * lib/freadahead.h: Likewise.
42754         * lib/freading.c: Likewise.
42755         * lib/freading.h: Likewise.
42756         * lib/free.c: Likewise.
42757         * lib/freopen.c: Likewise.
42758         * lib/frexp.c: Likewise.
42759         * lib/frexpl.c: Likewise.
42760         * lib/fseek.c: Likewise.
42761         * lib/fseterr.c: Likewise.
42762         * lib/fseterr.h: Likewise.
42763         * lib/fstatat.c: Likewise.
42764         * lib/fstrcmp.c: Likewise.
42765         * lib/fstrcmp.h: Likewise.
42766         * lib/fsusage.c: Likewise.
42767         * lib/fsusage.h: Likewise.
42768         * lib/ftell.c: Likewise.
42769         * lib/ftello.c: Likewise.
42770         * lib/fts-cycle.c: Likewise.
42771         * lib/fts.c: Likewise.
42772         * lib/fts_.h: Likewise.
42773         * lib/full-read.c: Likewise.
42774         * lib/full-read.h: Likewise.
42775         * lib/full-write.c: Likewise.
42776         * lib/full-write.h: Likewise.
42777         * lib/fwritable.c: Likewise.
42778         * lib/fwritable.h: Likewise.
42779         * lib/fwriteerror.c: Likewise.
42780         * lib/fwriteerror.h: Likewise.
42781         * lib/fwriting.c: Likewise.
42782         * lib/fwriting.h: Likewise.
42783         * lib/gcd.c: Likewise.
42784         * lib/gcd.h: Likewise.
42785         * lib/getcwd.c: Likewise.
42786         * lib/getdate.h: Likewise.
42787         * lib/getdate.y: Likewise.
42788         * lib/getdomainname.c: Likewise.
42789         * lib/getdomainname.h: Likewise.
42790         * lib/getgroups.c: Likewise.
42791         * lib/gethostname.c: Likewise.
42792         * lib/gethrxtime.c: Likewise.
42793         * lib/gethrxtime.h: Likewise.
42794         * lib/getloadavg.c: Likewise.
42795         * lib/getndelim2.c: Likewise.
42796         * lib/getndelim2.h: Likewise.
42797         * lib/getnline.c: Likewise.
42798         * lib/getnline.h: Likewise.
42799         * lib/getopt.c: Likewise.
42800         * lib/getopt.in.h: Likewise.
42801         * lib/getopt1.c: Likewise.
42802         * lib/getopt_int.h: Likewise.
42803         * lib/getpagesize.h: Likewise.
42804         * lib/getsubopt.c: Likewise.
42805         * lib/gettime.c: Likewise.
42806         * lib/getugroups.c: Likewise.
42807         * lib/getugroups.h: Likewise.
42808         * lib/getusershell.c: Likewise.
42809         * lib/gl_anyavltree_list1.h: Likewise.
42810         * lib/gl_anyavltree_list2.h: Likewise.
42811         * lib/gl_anyhash_list1.h: Likewise.
42812         * lib/gl_anyhash_list2.h: Likewise.
42813         * lib/gl_anylinked_list1.h: Likewise.
42814         * lib/gl_anylinked_list2.h: Likewise.
42815         * lib/gl_anyrbtree_list1.h: Likewise.
42816         * lib/gl_anyrbtree_list2.h: Likewise.
42817         * lib/gl_anytree_list1.h: Likewise.
42818         * lib/gl_anytree_list2.h: Likewise.
42819         * lib/gl_anytree_oset.h: Likewise.
42820         * lib/gl_anytreehash_list1.h: Likewise.
42821         * lib/gl_anytreehash_list2.h: Likewise.
42822         * lib/gl_array_list.c: Likewise.
42823         * lib/gl_array_list.h: Likewise.
42824         * lib/gl_array_oset.c: Likewise.
42825         * lib/gl_array_oset.h: Likewise.
42826         * lib/gl_avltree_list.c: Likewise.
42827         * lib/gl_avltree_list.h: Likewise.
42828         * lib/gl_avltree_oset.c: Likewise.
42829         * lib/gl_avltree_oset.h: Likewise.
42830         * lib/gl_avltreehash_list.c: Likewise.
42831         * lib/gl_avltreehash_list.h: Likewise.
42832         * lib/gl_carray_list.c: Likewise.
42833         * lib/gl_carray_list.h: Likewise.
42834         * lib/gl_linked_list.c: Likewise.
42835         * lib/gl_linked_list.h: Likewise.
42836         * lib/gl_linkedhash_list.c: Likewise.
42837         * lib/gl_linkedhash_list.h: Likewise.
42838         * lib/gl_list.c: Likewise.
42839         * lib/gl_list.h: Likewise.
42840         * lib/gl_oset.c: Likewise.
42841         * lib/gl_oset.h: Likewise.
42842         * lib/gl_rbtree_list.c: Likewise.
42843         * lib/gl_rbtree_list.h: Likewise.
42844         * lib/gl_rbtree_oset.c: Likewise.
42845         * lib/gl_rbtree_oset.h: Likewise.
42846         * lib/gl_rbtreehash_list.c: Likewise.
42847         * lib/gl_rbtreehash_list.h: Likewise.
42848         * lib/gl_sublist.c: Likewise.
42849         * lib/gl_sublist.h: Likewise.
42850         * lib/group-member.c: Likewise.
42851         * lib/group-member.h: Likewise.
42852         * lib/hard-locale.c: Likewise.
42853         * lib/hard-locale.h: Likewise.
42854         * lib/hash-pjw.c: Likewise.
42855         * lib/hash-pjw.h: Likewise.
42856         * lib/hash-triple.c: Likewise.
42857         * lib/hash.c: Likewise.
42858         * lib/hash.h: Likewise.
42859         * lib/human.c: Likewise.
42860         * lib/human.h: Likewise.
42861         * lib/i-ring.c: Likewise.
42862         * lib/i-ring.h: Likewise.
42863         * lib/idcache.c: Likewise.
42864         * lib/imaxabs.c: Likewise.
42865         * lib/imaxdiv.c: Likewise.
42866         * lib/inet_pton.c: Likewise.
42867         * lib/inet_pton.h: Likewise.
42868         * lib/intprops.h: Likewise.
42869         * lib/inttostr.c: Likewise.
42870         * lib/inttostr.h: Likewise.
42871         * lib/inttypes.in.h: Likewise.
42872         * lib/isapipe.c: Likewise.
42873         * lib/isdir.c: Likewise.
42874         * lib/isnan.c: Likewise.
42875         * lib/isnan.h: Likewise.
42876         * lib/isnanf.c: Likewise.
42877         * lib/isnanf.h: Likewise.
42878         * lib/isnanl-nolibm.h: Likewise.
42879         * lib/isnanl.c: Likewise.
42880         * lib/isnanl.h: Likewise.
42881         * lib/javacomp.c: Likewise.
42882         * lib/javacomp.h: Likewise.
42883         * lib/javaexec.c: Likewise.
42884         * lib/javaexec.h: Likewise.
42885         * lib/javaversion.c: Likewise.
42886         * lib/javaversion.h: Likewise.
42887         * lib/javaversion.java: Likewise.
42888         * lib/lbrkprop.h: Likewise.
42889         * lib/lchmod.h: Likewise.
42890         * lib/lchown.c: Likewise.
42891         * lib/ldexpl.c: Likewise.
42892         * lib/linebreak.c: Likewise.
42893         * lib/linebreak.h: Likewise.
42894         * lib/linebuffer.c: Likewise.
42895         * lib/linebuffer.h: Likewise.
42896         * lib/locale.in.h: Likewise.
42897         * lib/logl.c: Likewise.
42898         * lib/long-options.c: Likewise.
42899         * lib/long-options.h: Likewise.
42900         * lib/lstat.c: Likewise.
42901         * lib/lstat.h: Likewise.
42902         * lib/math.in.h: Likewise.
42903         * lib/mbchar.c: Likewise.
42904         * lib/mbchar.h: Likewise.
42905         * lib/mbfile.h: Likewise.
42906         * lib/mbiter.h: Likewise.
42907         * lib/mbscasecmp.c: Likewise.
42908         * lib/mbscasestr.c: Likewise.
42909         * lib/mbschr.c: Likewise.
42910         * lib/mbscspn.c: Likewise.
42911         * lib/mbslen.c: Likewise.
42912         * lib/mbsncasecmp.c: Likewise.
42913         * lib/mbsnlen.c: Likewise.
42914         * lib/mbspbrk.c: Likewise.
42915         * lib/mbspcasecmp.c: Likewise.
42916         * lib/mbsrchr.c: Likewise.
42917         * lib/mbssep.c: Likewise.
42918         * lib/mbsspn.c: Likewise.
42919         * lib/mbsstr.c: Likewise.
42920         * lib/mbstok_r.c: Likewise.
42921         * lib/mbswidth.c: Likewise.
42922         * lib/mbswidth.h: Likewise.
42923         * lib/mbuiter.h: Likewise.
42924         * lib/memcasecmp.c: Likewise.
42925         * lib/memcasecmp.h: Likewise.
42926         * lib/memchr.c: Likewise.
42927         * lib/memcmp.c: Likewise.
42928         * lib/memcoll.c: Likewise.
42929         * lib/memcoll.h: Likewise.
42930         * lib/memcpy.c: Likewise.
42931         * lib/memrchr.c: Likewise.
42932         * lib/mkancesdirs.c: Likewise.
42933         * lib/mkdir-p.c: Likewise.
42934         * lib/mkdir-p.h: Likewise.
42935         * lib/mkdir.c: Likewise.
42936         * lib/mkdirat.c: Likewise.
42937         * lib/mkdtemp.c: Likewise.
42938         * lib/mkstemp-safer.c: Likewise.
42939         * lib/mkstemp.c: Likewise.
42940         * lib/modechange.c: Likewise.
42941         * lib/modechange.h: Likewise.
42942         * lib/mountlist.c: Likewise.
42943         * lib/mountlist.h: Likewise.
42944         * lib/mpsort.c: Likewise.
42945         * lib/nanosleep.c: Likewise.
42946         * lib/obstack.c: Likewise.
42947         * lib/obstack.h: Likewise.
42948         * lib/open-safer.c: Likewise.
42949         * lib/open.c: Likewise.
42950         * lib/openat-die.c: Likewise.
42951         * lib/openat-priv.h: Likewise.
42952         * lib/openat-proc.c: Likewise.
42953         * lib/openat.c: Likewise.
42954         * lib/openat.h: Likewise.
42955         * lib/pagealign_alloc.c: Likewise.
42956         * lib/pagealign_alloc.h: Likewise.
42957         * lib/physmem.c: Likewise.
42958         * lib/physmem.h: Likewise.
42959         * lib/pipe-safer.c: Likewise.
42960         * lib/pipe.c: Likewise.
42961         * lib/pipe.h: Likewise.
42962         * lib/posixtm.c: Likewise.
42963         * lib/posixtm.h: Likewise.
42964         * lib/posixver.c: Likewise.
42965         * lib/printf-frexp.c: Likewise.
42966         * lib/printf-frexp.h: Likewise.
42967         * lib/printf-frexpl.c: Likewise.
42968         * lib/printf-frexpl.h: Likewise.
42969         * lib/printf.c: Likewise.
42970         * lib/progname.c: Likewise.
42971         * lib/progname.h: Likewise.
42972         * lib/progreloc.c: Likewise.
42973         * lib/putenv.c: Likewise.
42974         * lib/quote.c: Likewise.
42975         * lib/quote.h: Likewise.
42976         * lib/quotearg.c: Likewise.
42977         * lib/quotearg.h: Likewise.
42978         * lib/raise.c: Likewise.
42979         * lib/readline.c: Likewise.
42980         * lib/readline.h: Likewise.
42981         * lib/readlink.c: Likewise.
42982         * lib/readtokens.c: Likewise.
42983         * lib/readtokens.h: Likewise.
42984         * lib/readtokens0.c: Likewise.
42985         * lib/readtokens0.h: Likewise.
42986         * lib/readutmp.c: Likewise.
42987         * lib/readutmp.h: Likewise.
42988         * lib/realloc.c: Likewise.
42989         * lib/relocwrapper.c: Likewise.
42990         * lib/rename-dest-slash.c: Likewise.
42991         * lib/rename.c: Likewise.
42992         * lib/rmdir.c: Likewise.
42993         * lib/rpmatch.c: Likewise.
42994         * lib/safe-read.c: Likewise.
42995         * lib/safe-read.h: Likewise.
42996         * lib/safe-write.c: Likewise.
42997         * lib/safe-write.h: Likewise.
42998         * lib/same-inode.h: Likewise.
42999         * lib/same.c: Likewise.
43000         * lib/same.h: Likewise.
43001         * lib/save-cwd.c: Likewise.
43002         * lib/save-cwd.h: Likewise.
43003         * lib/savedir.c: Likewise.
43004         * lib/savedir.h: Likewise.
43005         * lib/savewd.c: Likewise.
43006         * lib/savewd.h: Likewise.
43007         * lib/search.in.h: Likewise.
43008         * lib/setenv.c: Likewise.
43009         * lib/setenv.h: Likewise.
43010         * lib/settime.c: Likewise.
43011         * lib/sh-quote.c: Likewise.
43012         * lib/sh-quote.h: Likewise.
43013         * lib/sig2str.c: Likewise.
43014         * lib/sig2str.h: Likewise.
43015         * lib/signal.in.h: Likewise.
43016         * lib/signbitd.c: Likewise.
43017         * lib/signbitf.c: Likewise.
43018         * lib/signbitl.c: Likewise.
43019         * lib/sigprocmask.c: Likewise.
43020         * lib/sincosl.c: Likewise.
43021         * lib/sleep.c: Likewise.
43022         * lib/sprintf.c: Likewise.
43023         * lib/sqrtl.c: Likewise.
43024         * lib/stat-time.h: Likewise.
43025         * lib/stdio--.h: Likewise.
43026         * lib/stdio-safer.h: Likewise.
43027         * lib/stdlib--.h: Likewise.
43028         * lib/stdlib-safer.h: Likewise.
43029         * lib/stdlib.in.h: Likewise.
43030         * lib/stpcpy.c: Likewise.
43031         * lib/stpncpy.c: Likewise.
43032         * lib/strchrnul.c: Likewise.
43033         * lib/strcspn.c: Likewise.
43034         * lib/strerror.c: Likewise.
43035         * lib/strftime.c: Likewise.
43036         * lib/strftime.h: Likewise.
43037         * lib/striconveh.c: Likewise.
43038         * lib/striconveh.h: Likewise.
43039         * lib/striconveha.c: Likewise.
43040         * lib/striconveha.h: Likewise.
43041         * lib/stripslash.c: Likewise.
43042         * lib/strnlen1.c: Likewise.
43043         * lib/strnlen1.h: Likewise.
43044         * lib/strtod.c: Likewise.
43045         * lib/strtoimax.c: Likewise.
43046         * lib/strtok_r.c: Likewise.
43047         * lib/strtol.c: Likewise.
43048         * lib/strtoll.c: Likewise.
43049         * lib/strtoul.c: Likewise.
43050         * lib/strtoull.c: Likewise.
43051         * lib/sysexits.in.h: Likewise.
43052         * lib/tempname.c: Likewise.
43053         * lib/tempname.h: Likewise.
43054         * lib/timespec.h: Likewise.
43055         * lib/tls.c: Likewise.
43056         * lib/tls.h: Likewise.
43057         * lib/tmpdir.c: Likewise.
43058         * lib/tmpdir.h: Likewise.
43059         * lib/tmpfile-safer.c: Likewise.
43060         * lib/tmpfile.c: Likewise.
43061         * lib/trigl.c: Likewise.
43062         * lib/trigl.h: Likewise.
43063         * lib/trim.c: Likewise.
43064         * lib/trim.h: Likewise.
43065         * lib/trunc.c: Likewise.
43066         * lib/truncf.c: Likewise.
43067         * lib/truncl.c: Likewise.
43068         * lib/tsearch.c: Likewise.
43069         * lib/unicodeio.c: Likewise.
43070         * lib/unicodeio.h: Likewise.
43071         * lib/unistd--.h: Likewise.
43072         * lib/unistd-safer.h: Likewise.
43073         * lib/unistdio/ulc-fprintf.c: Likewise.
43074         * lib/unistdio/ulc-vfprintf.c: Likewise.
43075         * lib/unlinkdir.c: Likewise.
43076         * lib/unlinkdir.h: Likewise.
43077         * lib/unlocked-io.h: Likewise.
43078         * lib/unsetenv.c: Likewise.
43079         * lib/userspec.c: Likewise.
43080         * lib/utime.c: Likewise.
43081         * lib/utimecmp.c: Likewise.
43082         * lib/utimecmp.h: Likewise.
43083         * lib/utimens.c: Likewise.
43084         * lib/verify.h: Likewise.
43085         * lib/verror.c: Likewise.
43086         * lib/verror.h: Likewise.
43087         * lib/version-etc-fsf.c: Likewise.
43088         * lib/version-etc.c: Likewise.
43089         * lib/version-etc.h: Likewise.
43090         * lib/vfprintf.c: Likewise.
43091         * lib/vprintf.c: Likewise.
43092         * lib/vsprintf.c: Likewise.
43093         * lib/w32spawn.h: Likewise.
43094         * lib/wait-process.c: Likewise.
43095         * lib/wait-process.h: Likewise.
43096         * lib/wcwidth.c: Likewise.
43097         * lib/write-any-file.c: Likewise.
43098         * lib/xalloc-die.c: Likewise.
43099         * lib/xalloc.h: Likewise.
43100         * lib/xasprintf.c: Likewise.
43101         * lib/xgetcwd.c: Likewise.
43102         * lib/xgetcwd.h: Likewise.
43103         * lib/xgetdomainname.c: Likewise.
43104         * lib/xgetdomainname.h: Likewise.
43105         * lib/xgethostname.c: Likewise.
43106         * lib/xmalloc.c: Likewise.
43107         * lib/xmalloca.c: Likewise.
43108         * lib/xmalloca.h: Likewise.
43109         * lib/xmemcoll.c: Likewise.
43110         * lib/xnanosleep.c: Likewise.
43111         * lib/xreadlink.c: Likewise.
43112         * lib/xreadlink.h: Likewise.
43113         * lib/xsetenv.c: Likewise.
43114         * lib/xsetenv.h: Likewise.
43115         * lib/xstriconv.c: Likewise.
43116         * lib/xstriconv.h: Likewise.
43117         * lib/xstrndup.c: Likewise.
43118         * lib/xstrndup.h: Likewise.
43119         * lib/xstrtod.c: Likewise.
43120         * lib/xstrtod.h: Likewise.
43121         * lib/xstrtol-error.c: Likewise.
43122         * lib/xstrtol.c: Likewise.
43123         * lib/xstrtol.h: Likewise.
43124         * lib/xtime.h: Likewise.
43125         * lib/xvasprintf.c: Likewise.
43126         * lib/xvasprintf.h: Likewise.
43127         * lib/yesno.c: Likewise.
43128         * lib/yesno.h: Likewise.
43129         * posix-modules: Likewise.
43130         * tests/test-alloca-opt.c: Likewise.
43131         * tests/test-arcfour.c: Likewise.
43132         * tests/test-arctwo.c: Likewise.
43133         * tests/test-argmatch.c: Likewise.
43134         * tests/test-argp-2.sh: Likewise.
43135         * tests/test-argp.c: Likewise.
43136         * tests/test-arpa_inet.c: Likewise.
43137         * tests/test-array_list.c: Likewise.
43138         * tests/test-array_oset.c: Likewise.
43139         * tests/test-atexit.c: Likewise.
43140         * tests/test-avltree_list.c: Likewise.
43141         * tests/test-avltree_oset.c: Likewise.
43142         * tests/test-avltreehash_list.c: Likewise.
43143         * tests/test-base64.c: Likewise.
43144         * tests/test-binary-io.c: Likewise.
43145         * tests/test-byteswap.c: Likewise.
43146         * tests/test-c-ctype.c: Likewise.
43147         * tests/test-c-strcasecmp.c: Likewise.
43148         * tests/test-c-strcasestr.c: Likewise.
43149         * tests/test-c-strncasecmp.c: Likewise.
43150         * tests/test-c-strstr.c: Likewise.
43151         * tests/test-canonicalize-lgpl.c: Likewise.
43152         * tests/test-canonicalize.c: Likewise.
43153         * tests/test-carray_list.c: Likewise.
43154         * tests/test-ceilf.c: Likewise.
43155         * tests/test-ceill.c: Likewise.
43156         * tests/test-count-one-bits.c: Likewise.
43157         * tests/test-crc.c: Likewise.
43158         * tests/test-dirname.c: Likewise.
43159         * tests/test-fbufmode.c: Likewise.
43160         * tests/test-fcntl.c: Likewise.
43161         * tests/test-fflush.c: Likewise.
43162         * tests/test-floorf.c: Likewise.
43163         * tests/test-floorl.c: Likewise.
43164         * tests/test-fopen.c: Likewise.
43165         * tests/test-fprintf-posix.c: Likewise.
43166         * tests/test-fprintf-posix.h: Likewise.
43167         * tests/test-fpurge.c: Likewise.
43168         * tests/test-freadable.c: Likewise.
43169         * tests/test-freadahead.c: Likewise.
43170         * tests/test-freading.c: Likewise.
43171         * tests/test-freopen.c: Likewise.
43172         * tests/test-frexp.c: Likewise.
43173         * tests/test-frexpl.c: Likewise.
43174         * tests/test-fseek.c: Likewise.
43175         * tests/test-fseeko.c: Likewise.
43176         * tests/test-fseterr.c: Likewise.
43177         * tests/test-fstrcmp.c: Likewise.
43178         * tests/test-ftell.c: Likewise.
43179         * tests/test-ftello.c: Likewise.
43180         * tests/test-fwritable.c: Likewise.
43181         * tests/test-fwriting.c: Likewise.
43182         * tests/test-getaddrinfo.c: Likewise.
43183         * tests/test-getpass.c: Likewise.
43184         * tests/test-gettimeofday.c: Likewise.
43185         * tests/test-hmac-md5.c: Likewise.
43186         * tests/test-hmac-sha1.c: Likewise.
43187         * tests/test-iconv.c: Likewise.
43188         * tests/test-iconvme.c: Likewise.
43189         * tests/test-inttypes.c: Likewise.
43190         * tests/test-isnan.c: Likewise.
43191         * tests/test-isnanf.c: Likewise.
43192         * tests/test-isnanl-nolibm.c: Likewise.
43193         * tests/test-isnanl.c: Likewise.
43194         * tests/test-isnanl.h: Likewise.
43195         * tests/test-ldexpl.c: Likewise.
43196         * tests/test-linked_list.c: Likewise.
43197         * tests/test-linkedhash_list.c: Likewise.
43198         * tests/test-locale.c: Likewise.
43199         * tests/test-localename.c: Likewise.
43200         * tests/test-lock.c: Likewise.
43201         * tests/test-lseek.c: Likewise.
43202         * tests/test-malloca.c: Likewise.
43203         * tests/test-math.c: Likewise.
43204         * tests/test-mbscasecmp.c: Likewise.
43205         * tests/test-mbscasestr1.c: Likewise.
43206         * tests/test-mbscasestr2.c: Likewise.
43207         * tests/test-mbscasestr3.c: Likewise.
43208         * tests/test-mbscasestr4.c: Likewise.
43209         * tests/test-mbschr.c: Likewise.
43210         * tests/test-mbscspn.c: Likewise.
43211         * tests/test-mbsncasecmp.c: Likewise.
43212         * tests/test-mbspbrk.c: Likewise.
43213         * tests/test-mbspcasecmp.c: Likewise.
43214         * tests/test-mbsrchr.c: Likewise.
43215         * tests/test-mbsspn.c: Likewise.
43216         * tests/test-mbsstr1.c: Likewise.
43217         * tests/test-mbsstr2.c: Likewise.
43218         * tests/test-mbsstr3.c: Likewise.
43219         * tests/test-md5.c: Likewise.
43220         * tests/test-memmem.c: Likewise.
43221         * tests/test-netinet_in.c: Likewise.
43222         * tests/test-open.c: Likewise.
43223         * tests/test-printf-frexp.c: Likewise.
43224         * tests/test-printf-frexpl.c: Likewise.
43225         * tests/test-printf-posix.c: Likewise.
43226         * tests/test-printf-posix.h: Likewise.
43227         * tests/test-rbtree_list.c: Likewise.
43228         * tests/test-rbtree_oset.c: Likewise.
43229         * tests/test-rbtreehash_list.c: Likewise.
43230         * tests/test-read-file.c: Likewise.
43231         * tests/test-rijndael.c: Likewise.
43232         * tests/test-search.c: Likewise.
43233         * tests/test-signbit.c: Likewise.
43234         * tests/test-sleep.c: Likewise.
43235         * tests/test-snprintf-posix.c: Likewise.
43236         * tests/test-snprintf-posix.h: Likewise.
43237         * tests/test-snprintf.c: Likewise.
43238         * tests/test-sprintf-posix.c: Likewise.
43239         * tests/test-sprintf-posix.h: Likewise.
43240         * tests/test-stat-time.c: Likewise.
43241         * tests/test-stdbool.c: Likewise.
43242         * tests/test-stdint.c: Likewise.
43243         * tests/test-stdio.c: Likewise.
43244         * tests/test-stdlib.c: Likewise.
43245         * tests/test-stpncpy.c: Likewise.
43246         * tests/test-strcasestr.c: Likewise.
43247         * tests/test-striconv.c: Likewise.
43248         * tests/test-striconveh.c: Likewise.
43249         * tests/test-striconveha.c: Likewise.
43250         * tests/test-string.c: Likewise.
43251         * tests/test-sys_select.c: Likewise.
43252         * tests/test-sys_socket.c: Likewise.
43253         * tests/test-sys_stat.c: Likewise.
43254         * tests/test-sys_time.c: Likewise.
43255         * tests/test-sysexits.c: Likewise.
43256         * tests/test-time.c: Likewise.
43257         * tests/test-tls.c: Likewise.
43258         * tests/test-trunc.c: Likewise.
43259         * tests/test-truncf.c: Likewise.
43260         * tests/test-truncl.c: Likewise.
43261         * tests/test-unistd.c: Likewise.
43262         * tests/test-vasnprintf-posix.c: Likewise.
43263         * tests/test-vasnprintf-posix2.c: Likewise.
43264         * tests/test-vasnprintf.c: Likewise.
43265         * tests/test-vasprintf-posix.c: Likewise.
43266         * tests/test-vasprintf.c: Likewise.
43267         * tests/test-verify.c: Likewise.
43268         * tests/test-vfprintf-posix.c: Likewise.
43269         * tests/test-vprintf-posix.c: Likewise.
43270         * tests/test-vsnprintf-posix.c: Likewise.
43271         * tests/test-vsnprintf.c: Likewise.
43272         * tests/test-vsprintf-posix.c: Likewise.
43273         * tests/test-wchar.c: Likewise.
43274         * tests/test-wctype.c: Likewise.
43275         * tests/test-wcwidth.c: Likewise.
43276         * tests/test-xstrtol.c: Likewise.
43277         * tests/test-xvasprintf.c: Likewise.
43278         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
43279         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
43280         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43281         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43282         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43283         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
43284         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43285         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43286         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43287         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
43288         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43289         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43290         * tests/uniname/test-uninames.c: Likewise.
43291         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
43292         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
43293         * tests/unistdio/test-u16-printf1.h: Likewise.
43294         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
43295         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
43296         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
43297         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
43298         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
43299         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
43300         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
43301         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
43302         * tests/unistdio/test-u32-printf1.h: Likewise.
43303         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
43304         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
43305         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
43306         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
43307         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
43308         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
43309         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
43310         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
43311         * tests/unistdio/test-u8-printf1.h: Likewise.
43312         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
43313         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
43314         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
43315         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
43316         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
43317         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
43318         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
43319         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
43320         * tests/unistdio/test-ulc-printf1.h: Likewise.
43321         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
43322         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
43323         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
43324         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
43325         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
43326         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
43327         * tests/uniwidth/test-u16-strwidth.c: Likewise.
43328         * tests/uniwidth/test-u16-width.c: Likewise.
43329         * tests/uniwidth/test-u32-strwidth.c: Likewise.
43330         * tests/uniwidth/test-u32-width.c: Likewise.
43331         * tests/uniwidth/test-u8-strwidth.c: Likewise.
43332         * tests/uniwidth/test-u8-width.c: Likewise.
43333         * tests/uniwidth/test-uc_width.c: Likewise.
43334         * config/srclist-update: Likewise.
43335         (fixlicense): Update to GPLv3+.
43336
43337         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43338         * tests/test-tsearch.c: Change copyright notice.
43339
43340         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43341         * lib/c-strcaseeq.h: Change copyright notice.
43342         * lib/streq.h: Likewise.
43343         * lib/uniconv.h: Likewise.
43344         * lib/uniconv/u-conv-from-enc.h: Likewise.
43345         * lib/uniconv/u-conv-to-enc.h: Likewise.
43346         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43347         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43348         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43349         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43350         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43351         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43352         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43353         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43354         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43355         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43356         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43357         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43358         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
43359         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
43360         * lib/uniconv/u8-conv-from-enc.c: Likewise.
43361         * lib/uniconv/u8-conv-to-enc.c: Likewise.
43362         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
43363         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
43364         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
43365         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
43366         * lib/uniname.h: Likewise.
43367         * lib/uniname/uniname.c: Likewise.
43368         * lib/unistdio.h: Likewise.
43369         * lib/unistdio/u-asnprintf.h: Likewise.
43370         * lib/unistdio/u-asprintf.h: Likewise.
43371         * lib/unistdio/u-printf-args.c: Likewise.
43372         * lib/unistdio/u-printf-args.h: Likewise.
43373         * lib/unistdio/u-printf-parse.h: Likewise.
43374         * lib/unistdio/u-snprintf.h: Likewise.
43375         * lib/unistdio/u-sprintf.h: Likewise.
43376         * lib/unistdio/u-vasprintf.h: Likewise.
43377         * lib/unistdio/u-vsnprintf.h: Likewise.
43378         * lib/unistdio/u-vsprintf.h: Likewise.
43379         * lib/unistdio/u16-asnprintf.c: Likewise.
43380         * lib/unistdio/u16-asprintf.c: Likewise.
43381         * lib/unistdio/u16-printf-parse.c: Likewise.
43382         * lib/unistdio/u16-snprintf.c: Likewise.
43383         * lib/unistdio/u16-sprintf.c: Likewise.
43384         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
43385         * lib/unistdio/u16-u16-asprintf.c: Likewise.
43386         * lib/unistdio/u16-u16-snprintf.c: Likewise.
43387         * lib/unistdio/u16-u16-sprintf.c: Likewise.
43388         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
43389         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
43390         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
43391         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
43392         * lib/unistdio/u16-vasnprintf.c: Likewise.
43393         * lib/unistdio/u16-vasprintf.c: Likewise.
43394         * lib/unistdio/u16-vsnprintf.c: Likewise.
43395         * lib/unistdio/u16-vsprintf.c: Likewise.
43396         * lib/unistdio/u32-asnprintf.c: Likewise.
43397         * lib/unistdio/u32-asprintf.c: Likewise.
43398         * lib/unistdio/u32-printf-parse.c: Likewise.
43399         * lib/unistdio/u32-snprintf.c: Likewise.
43400         * lib/unistdio/u32-sprintf.c: Likewise.
43401         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
43402         * lib/unistdio/u32-u32-asprintf.c: Likewise.
43403         * lib/unistdio/u32-u32-snprintf.c: Likewise.
43404         * lib/unistdio/u32-u32-sprintf.c: Likewise.
43405         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
43406         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
43407         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
43408         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
43409         * lib/unistdio/u32-vasnprintf.c: Likewise.
43410         * lib/unistdio/u32-vasprintf.c: Likewise.
43411         * lib/unistdio/u32-vsnprintf.c: Likewise.
43412         * lib/unistdio/u32-vsprintf.c: Likewise.
43413         * lib/unistdio/u8-asnprintf.c: Likewise.
43414         * lib/unistdio/u8-asprintf.c: Likewise.
43415         * lib/unistdio/u8-printf-parse.c: Likewise.
43416         * lib/unistdio/u8-snprintf.c: Likewise.
43417         * lib/unistdio/u8-sprintf.c: Likewise.
43418         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
43419         * lib/unistdio/u8-u8-asprintf.c: Likewise.
43420         * lib/unistdio/u8-u8-snprintf.c: Likewise.
43421         * lib/unistdio/u8-u8-sprintf.c: Likewise.
43422         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
43423         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
43424         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
43425         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
43426         * lib/unistdio/u8-vasnprintf.c: Likewise.
43427         * lib/unistdio/u8-vasprintf.c: Likewise.
43428         * lib/unistdio/u8-vsnprintf.c: Likewise.
43429         * lib/unistdio/u8-vsprintf.c: Likewise.
43430         * lib/unistdio/ulc-asnprintf.c: Likewise.
43431         * lib/unistdio/ulc-asprintf.c: Likewise.
43432         * lib/unistdio/ulc-printf-parse.c: Likewise.
43433         * lib/unistdio/ulc-snprintf.c: Likewise.
43434         * lib/unistdio/ulc-sprintf.c: Likewise.
43435         * lib/unistdio/ulc-vasnprintf.c: Likewise.
43436         * lib/unistdio/ulc-vasprintf.c: Likewise.
43437         * lib/unistdio/ulc-vsnprintf.c: Likewise.
43438         * lib/unistdio/ulc-vsprintf.c: Likewise.
43439         * lib/unistr.h: Likewise.
43440         * lib/unistr/u-cpy-alloc.h: Likewise.
43441         * lib/unistr/u-cpy.h: Likewise.
43442         * lib/unistr/u-endswith.h: Likewise.
43443         * lib/unistr/u-move.h: Likewise.
43444         * lib/unistr/u-set.h: Likewise.
43445         * lib/unistr/u-startswith.h: Likewise.
43446         * lib/unistr/u-stpcpy.h: Likewise.
43447         * lib/unistr/u-stpncpy.h: Likewise.
43448         * lib/unistr/u-strcat.h: Likewise.
43449         * lib/unistr/u-strcpy.h: Likewise.
43450         * lib/unistr/u-strcspn.h: Likewise.
43451         * lib/unistr/u-strdup.h: Likewise.
43452         * lib/unistr/u-strlen.h: Likewise.
43453         * lib/unistr/u-strncat.h: Likewise.
43454         * lib/unistr/u-strncpy.h: Likewise.
43455         * lib/unistr/u-strnlen.h: Likewise.
43456         * lib/unistr/u-strpbrk.h: Likewise.
43457         * lib/unistr/u-strspn.h: Likewise.
43458         * lib/unistr/u-strstr.h: Likewise.
43459         * lib/unistr/u-strtok.h: Likewise.
43460         * lib/unistr/u16-check.c: Likewise.
43461         * lib/unistr/u16-chr.c: Likewise.
43462         * lib/unistr/u16-cmp.c: Likewise.
43463         * lib/unistr/u16-cpy-alloc.c: Likewise.
43464         * lib/unistr/u16-cpy.c: Likewise.
43465         * lib/unistr/u16-endswith.c: Likewise.
43466         * lib/unistr/u16-mblen.c: Likewise.
43467         * lib/unistr/u16-mbsnlen.c: Likewise.
43468         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43469         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43470         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43471         * lib/unistr/u16-mbtouc.c: Likewise.
43472         * lib/unistr/u16-mbtoucr.c: Likewise.
43473         * lib/unistr/u16-move.c: Likewise.
43474         * lib/unistr/u16-next.c: Likewise.
43475         * lib/unistr/u16-prev.c: Likewise.
43476         * lib/unistr/u16-set.c: Likewise.
43477         * lib/unistr/u16-startswith.c: Likewise.
43478         * lib/unistr/u16-stpcpy.c: Likewise.
43479         * lib/unistr/u16-stpncpy.c: Likewise.
43480         * lib/unistr/u16-strcat.c: Likewise.
43481         * lib/unistr/u16-strchr.c: Likewise.
43482         * lib/unistr/u16-strcmp.c: Likewise.
43483         * lib/unistr/u16-strcpy.c: Likewise.
43484         * lib/unistr/u16-strcspn.c: Likewise.
43485         * lib/unistr/u16-strdup.c: Likewise.
43486         * lib/unistr/u16-strlen.c: Likewise.
43487         * lib/unistr/u16-strmblen.c: Likewise.
43488         * lib/unistr/u16-strmbtouc.c: Likewise.
43489         * lib/unistr/u16-strncat.c: Likewise.
43490         * lib/unistr/u16-strncmp.c: Likewise.
43491         * lib/unistr/u16-strncpy.c: Likewise.
43492         * lib/unistr/u16-strnlen.c: Likewise.
43493         * lib/unistr/u16-strpbrk.c: Likewise.
43494         * lib/unistr/u16-strrchr.c: Likewise.
43495         * lib/unistr/u16-strspn.c: Likewise.
43496         * lib/unistr/u16-strstr.c: Likewise.
43497         * lib/unistr/u16-strtok.c: Likewise.
43498         * lib/unistr/u16-to-u32.c: Likewise.
43499         * lib/unistr/u16-to-u8.c: Likewise.
43500         * lib/unistr/u16-uctomb-aux.c: Likewise.
43501         * lib/unistr/u16-uctomb.c: Likewise.
43502         * lib/unistr/u32-check.c: Likewise.
43503         * lib/unistr/u32-chr.c: Likewise.
43504         * lib/unistr/u32-cmp.c: Likewise.
43505         * lib/unistr/u32-cpy-alloc.c: Likewise.
43506         * lib/unistr/u32-cpy.c: Likewise.
43507         * lib/unistr/u32-endswith.c: Likewise.
43508         * lib/unistr/u32-mblen.c: Likewise.
43509         * lib/unistr/u32-mbsnlen.c: Likewise.
43510         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43511         * lib/unistr/u32-mbtouc.c: Likewise.
43512         * lib/unistr/u32-mbtoucr.c: Likewise.
43513         * lib/unistr/u32-move.c: Likewise.
43514         * lib/unistr/u32-next.c: Likewise.
43515         * lib/unistr/u32-prev.c: Likewise.
43516         * lib/unistr/u32-set.c: Likewise.
43517         * lib/unistr/u32-startswith.c: Likewise.
43518         * lib/unistr/u32-stpcpy.c: Likewise.
43519         * lib/unistr/u32-stpncpy.c: Likewise.
43520         * lib/unistr/u32-strcat.c: Likewise.
43521         * lib/unistr/u32-strchr.c: Likewise.
43522         * lib/unistr/u32-strcmp.c: Likewise.
43523         * lib/unistr/u32-strcpy.c: Likewise.
43524         * lib/unistr/u32-strcspn.c: Likewise.
43525         * lib/unistr/u32-strdup.c: Likewise.
43526         * lib/unistr/u32-strlen.c: Likewise.
43527         * lib/unistr/u32-strmblen.c: Likewise.
43528         * lib/unistr/u32-strmbtouc.c: Likewise.
43529         * lib/unistr/u32-strncat.c: Likewise.
43530         * lib/unistr/u32-strncmp.c: Likewise.
43531         * lib/unistr/u32-strncpy.c: Likewise.
43532         * lib/unistr/u32-strnlen.c: Likewise.
43533         * lib/unistr/u32-strpbrk.c: Likewise.
43534         * lib/unistr/u32-strrchr.c: Likewise.
43535         * lib/unistr/u32-strspn.c: Likewise.
43536         * lib/unistr/u32-strstr.c: Likewise.
43537         * lib/unistr/u32-strtok.c: Likewise.
43538         * lib/unistr/u32-to-u16.c: Likewise.
43539         * lib/unistr/u32-to-u8.c: Likewise.
43540         * lib/unistr/u32-uctomb.c: Likewise.
43541         * lib/unistr/u8-check.c: Likewise.
43542         * lib/unistr/u8-chr.c: Likewise.
43543         * lib/unistr/u8-cmp.c: Likewise.
43544         * lib/unistr/u8-cpy-alloc.c: Likewise.
43545         * lib/unistr/u8-cpy.c: Likewise.
43546         * lib/unistr/u8-endswith.c: Likewise.
43547         * lib/unistr/u8-mblen.c: Likewise.
43548         * lib/unistr/u8-mbsnlen.c: Likewise.
43549         * lib/unistr/u8-mbtouc-aux.c: Likewise.
43550         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43551         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43552         * lib/unistr/u8-mbtouc.c: Likewise.
43553         * lib/unistr/u8-mbtoucr.c: Likewise.
43554         * lib/unistr/u8-move.c: Likewise.
43555         * lib/unistr/u8-next.c: Likewise.
43556         * lib/unistr/u8-prev.c: Likewise.
43557         * lib/unistr/u8-set.c: Likewise.
43558         * lib/unistr/u8-startswith.c: Likewise.
43559         * lib/unistr/u8-stpcpy.c: Likewise.
43560         * lib/unistr/u8-stpncpy.c: Likewise.
43561         * lib/unistr/u8-strcat.c: Likewise.
43562         * lib/unistr/u8-strchr.c: Likewise.
43563         * lib/unistr/u8-strcmp.c: Likewise.
43564         * lib/unistr/u8-strcpy.c: Likewise.
43565         * lib/unistr/u8-strcspn.c: Likewise.
43566         * lib/unistr/u8-strdup.c: Likewise.
43567         * lib/unistr/u8-strlen.c: Likewise.
43568         * lib/unistr/u8-strmblen.c: Likewise.
43569         * lib/unistr/u8-strmbtouc.c: Likewise.
43570         * lib/unistr/u8-strncat.c: Likewise.
43571         * lib/unistr/u8-strncmp.c: Likewise.
43572         * lib/unistr/u8-strncpy.c: Likewise.
43573         * lib/unistr/u8-strnlen.c: Likewise.
43574         * lib/unistr/u8-strpbrk.c: Likewise.
43575         * lib/unistr/u8-strrchr.c: Likewise.
43576         * lib/unistr/u8-strspn.c: Likewise.
43577         * lib/unistr/u8-strstr.c: Likewise.
43578         * lib/unistr/u8-strtok.c: Likewise.
43579         * lib/unistr/u8-to-u16.c: Likewise.
43580         * lib/unistr/u8-to-u32.c: Likewise.
43581         * lib/unistr/u8-uctomb-aux.c: Likewise.
43582         * lib/unistr/u8-uctomb.c: Likewise.
43583         * lib/unitypes.h: Likewise.
43584         * lib/uniwidth.h: Likewise.
43585         * lib/uniwidth/cjk.h: Likewise.
43586         * lib/uniwidth/u16-strwidth.c: Likewise.
43587         * lib/uniwidth/u16-width.c: Likewise.
43588         * lib/uniwidth/u32-strwidth.c: Likewise.
43589         * lib/uniwidth/u32-width.c: Likewise.
43590         * lib/uniwidth/u8-strwidth.c: Likewise.
43591         * lib/uniwidth/u8-width.c: Likewise.
43592         * lib/uniwidth/width.c: Likewise.
43593
43594 2007-10-07  Bruno Haible  <bruno@clisp.org>
43595
43596         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
43597         The file is still under LGPL (see modules/inttypes).
43598
43599 2007-10-06  Bruno Haible  <bruno@clisp.org>
43600
43601         * modules/trunc (Dependencies): Add 'extensions'.
43602         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
43603         Reported by Ben Pfaff <blp@gnu.org>.
43604
43605 2007-10-06  Bruno Haible  <bruno@clisp.org>
43606
43607         * modules/freopen-tests: New file.
43608         * tests/test-freopen.c: New file.
43609
43610         * modules/fopen-tests: New file.
43611         * tests/test-fopen.c: New file.
43612
43613         * modules/fopen: New file.
43614         * lib/fopen.c: New file.
43615         * m4/fopen.m4: New file.
43616         * modules/freopen: New file.
43617         * lib/freopen.c: New file.
43618         * m4/freopen.m4: New file.
43619         * lib/stdio.in.h (fopen, freopen): New declarations.
43620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
43621         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43622         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
43623         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43624         * doc/functions/fopen.texi: Mention the 'fopen' module.
43625         * doc/functions/freopen.texi: Mention the 'freopen' module.
43626
43627 2007-10-06  Bruno Haible  <bruno@clisp.org>
43628
43629         * modules/open-tests: New file.
43630         * tests/test-open.c: New file.
43631
43632         * modules/open: New file.
43633         * lib/open.c: New file.
43634         * m4/open.m4: New file.
43635         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
43636         lib/open.c does.
43637         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
43638         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
43639         macros.
43640         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
43641         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
43642         REPLACE_OPEN.
43643         * doc/functions/open.texi: Mention the 'open' module.
43644
43645 2007-10-04  Bruno Haible  <bruno@clisp.org>
43646
43647         * modules/ceill-tests: New file.
43648         * tests/test-ceill.c: New file.
43649
43650         * modules/ceill: New file.
43651         * lib/ceill.c: Replace entire file.
43652         * m4/ceill.m4: New file.
43653         * lib/math.in.h (ceill): Replace declaration.
43654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
43655         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
43656         * doc/functions/ceill.texi: Mention the 'ceill' module.
43657         * modules/mathl (Files): Remove lib/ceill.c.
43658         (Depends-on): Add ceill.
43659
43660 2007-10-04  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/ceilf-tests: New file.
43663         * tests/test-ceilf.c: New file.
43664
43665         * modules/ceilf: New file.
43666         * lib/ceil.c: New file.
43667         * lib/ceilf.c: New file.
43668         * m4/ceilf.m4: New file.
43669         * lib/math.in.h (ceilf): New declaration.
43670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
43671         HAVE_DECL_CEILF.
43672         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
43673         HAVE_DECL_CEILF.
43674         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
43675
43676 2007-10-04  Bruno Haible  <bruno@clisp.org>
43677
43678         * modules/floorl-tests: New file.
43679         * tests/test-floorl.c: New file.
43680
43681         * modules/floorl: New file.
43682         * lib/floorl.c: Replace entire file.
43683         * m4/floorl.m4: New file.
43684         * lib/math.in.h (floorl): Replace declaration.
43685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
43686         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
43687         * doc/functions/floorl.texi: Mention the 'floorl' module.
43688         * modules/mathl (Files): Remove lib/floorl.c.
43689         (Depends-on): Add floorl.
43690
43691 2007-10-04  Bruno Haible  <bruno@clisp.org>
43692
43693         * modules/floorf-tests: New file.
43694         * tests/test-floorf.c: New file.
43695
43696         * modules/floorf: New file.
43697         * lib/floor.c: New file.
43698         * lib/floorf.c: New file.
43699         * m4/floorf.m4: New file.
43700         * lib/math.in.h (floorf): New declaration.
43701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
43702         HAVE_DECL_FLOORF.
43703         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
43704         HAVE_DECL_FLOORF.
43705         * doc/functions/floorf.texi: Mention the 'floorf' module.
43706
43707 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
43708             Bruno Haible  <bruno@clisp.org>
43709
43710         Advertise for the Git server instead of the CVS server.
43711         * doc/gnulib-intro.texi (Steady Development): Mention the Git
43712         repository instead of the CVS one.
43713         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
43714         about all VCS systems generically.
43715         * doc/gnulib.texi (Introduction): Capitalize `Git'.
43716
43717 2007-10-04  Bruno Haible  <bruno@clisp.org>
43718
43719         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
43720         means.
43721         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
43722
43723 2007-10-04  Bruno Haible  <bruno@clisp.org>
43724
43725         * modules/truncl-tests: New file.
43726         * tests/test-truncl.c: New file.
43727
43728         * modules/truncl: New file.
43729         * lib/truncl.c: New file.
43730         * m4/truncl.m4: New file.
43731         * lib/math.in.h (truncl): New declaration.
43732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
43733         HAVE_DECL_TRUNCL.
43734         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
43735         HAVE_DECL_TRUNCL.
43736         * doc/functions/truncl.texi: Mention the 'truncl' module.
43737
43738 2007-10-04  Bruno Haible  <bruno@clisp.org>
43739
43740         * modules/truncf-tests: New file.
43741         * tests/test-truncf.c: New file.
43742
43743         * modules/truncf: New file.
43744         * lib/trunc.c: Make paramerizable through USE_* macros.
43745         * lib/truncf.c: New file.
43746         * m4/truncf.m4: New file.
43747         * lib/math.in.h (truncf): New declaration.
43748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
43749         HAVE_DECL_TRUNCF.
43750         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
43751         HAVE_DECL_TRUNCF.
43752         * doc/functions/truncf.texi: Mention the 'truncf' module.
43753
43754 2007-10-03  Bruno Haible  <bruno@clisp.org>
43755
43756         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43757         augmentation also for tests modules.
43758         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
43759         * modules/atexit-tests (Makefile.am): Likewise.
43760         * modules/binary-io-tests (Makefile.am): Likewise.
43761         * modules/c-strcase-tests (Makefile.am): Likewise.
43762         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
43763         * modules/canonicalize-tests (Makefile.am): Likewise.
43764         * modules/closein-tests (Makefile.am): Likewise.
43765         * modules/fprintf-posix-tests (Makefile.am): Likewise.
43766         * modules/freadahead-tests (Makefile.am): Likewise.
43767         * modules/fseek-tests (Makefile.am): Likewise.
43768         * modules/fseeko-tests (Makefile.am): Likewise.
43769         * modules/ftell-tests (Makefile.am): Likewise.
43770         * modules/ftello-tests (Makefile.am): Likewise.
43771         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
43772         * modules/isnanl-tests (Makefile.am): Likewise.
43773         * modules/lseek-tests (Makefile.am): Likewise.
43774         * modules/mbscasecmp-tests (Makefile.am): Likewise.
43775         * modules/mbscasestr-tests (Makefile.am): Likewise.
43776         * modules/mbschr-tests (Makefile.am): Likewise.
43777         * modules/mbscspn-tests (Makefile.am): Likewise.
43778         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
43779         * modules/mbspbrk-tests (Makefile.am): Likewise.
43780         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
43781         * modules/mbsrchr-tests (Makefile.am): Likewise.
43782         * modules/mbsspn-tests (Makefile.am): Likewise.
43783         * modules/mbsstr-tests (Makefile.am): Likewise.
43784         * modules/printf-posix-tests (Makefile.am): Likewise.
43785         * modules/snprintf-posix-tests (Makefile.am): Likewise.
43786         * modules/sprintf-posix-tests (Makefile.am): Likewise.
43787         * modules/tsearch-tests (Makefile.am): Likewise.
43788         * modules/uniname/uniname-tests (Makefile.am): Likewise.
43789         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
43790         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
43791         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
43792         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
43793         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
43794         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
43795         * modules/vprintf-posix-tests (Makefile.am): Likewise.
43796         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
43797         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
43798         * modules/xstrtoimax-tests (Makefile.am): Likewise.
43799         * modules/xstrtol-tests (Makefile.am): Likewise.
43800         * modules/xstrtoumax-tests (Makefile.am): Likewise.
43801         * modules/yesno-tests (Makefile.am): Likewise.
43802
43803 2007-10-03  Bruno Haible  <bruno@clisp.org>
43804
43805         * modules/trunc-tests: New file.
43806         * tests/test-trunc.c: New file.
43807
43808         * modules/trunc: New file.
43809         * lib/trunc.c: New file.
43810         * m4/trunc.m4: New file.
43811         * lib/math.in.h (trunc): New declaration.
43812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
43813         HAVE_DECL_TRUNC.
43814         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
43815         HAVE_DECL_TRUNC.
43816         * doc/functions/trunc.texi: Mention the 'trunc' module.
43817
43818 2007-10-03  Bruno Haible  <bruno@clisp.org>
43819
43820         * tests/test-fpending.c: New file, mostly copied
43821         from coreutils/lib/t-fpending.c.
43822         * modules/fpending-tests: New file.
43823
43824 2007-10-03  Bruno Haible  <bruno@clisp.org>
43825
43826         Port the stdio extensions to QNX (untested).
43827         * lib/fseterr.c (fseterr): Add support for QNX.
43828         * lib/fbufmode.c (fbufmode): Likewise.
43829         * lib/freadable.c (freadable): Likewise.
43830         * lib/fwritable.c (fwritable): Likewise.
43831         * lib/freading.c (freading): Likewise.
43832         * lib/fwriting.c (fwriting): Likewise.
43833         * lib/freadahead.c (freadahed): Likewise.
43834         * lib/fpurge.c (fpurge): Likewise.
43835         * lib/fseeko.c (rpl_fseeko): Likewise.
43836
43837 2007-10-03  Bruno Haible  <bruno@clisp.org>
43838             Jim Meyering  <jim@meyering.net>
43839             Eric Blake  <ebb9@byu.net>
43840
43841         * doc/relocatable.texi: Use @command instead of @program.
43842
43843 2007-10-02  Jim Meyering  <jim@meyering.net>
43844
43845         Perform one more "_.h" -> ".in.h" substitution.
43846         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
43847         instead of unistd_.h here, too.
43848
43849 2007-10-01  Bruno Haible  <bruno@clisp.org>
43850
43851         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
43852         Needed for the alloca-opt module.
43853
43854 2007-09-30  Bruno Haible  <bruno@clisp.org>
43855
43856         * lib/alloca.in.h: Renamed from lib/alloca_.h.
43857         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
43858         alloca_.h.
43859         * lib/argz.in.h: Renamed from lib/argz_.h.
43860         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
43861         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
43862         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
43863         byteswap_.h.
43864         * lib/dirent.in.h: Renamed from lib/dirent_.h.
43865         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
43866         dirent_.h.
43867         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
43868         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
43869         fcntl_.h.
43870         * lib/float.in.h: Renamed from lib/float_.h.
43871         * modules/float (Files, Makefile.am): Use float.in.h instead of
43872         float_.h.
43873         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
43874         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
43875         fnmatch_.h.
43876         * lib/getopt.in.h: Renamed from lib/getopt_.h.
43877         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
43878         getopt_.h.
43879         * lib/glob.in.h: Renamed from lib/glob_.h.
43880         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
43881         * lib/iconv.in.h: Renamed from lib/iconv_.h.
43882         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
43883         iconv_.h.
43884         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
43885         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
43886         inttypes_.h.
43887         * lib/locale.in.h: Renamed from lib/locale_.h.
43888         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
43889         locale_.h.
43890         * lib/math.in.h: Renamed from lib/math_.h.
43891         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
43892         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
43893         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
43894         of netinet_in_.h. Add dependency.
43895         * lib/poll.in.h: Renamed from lib/poll_.h.
43896         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
43897         * lib/search.in.h: Renamed from lib/search_.h.
43898         * modules/search (Files, Makefile.am): Use search.in.h instead of
43899         search_.h.
43900         * lib/signal.in.h: Renamed from lib/signal_.h.
43901         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
43902         _signal.h.
43903         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
43904         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
43905         stdbool_.h.
43906         * lib/stdint.in.h: Renamed from lib/stdint_.h.
43907         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
43908         stdint_.h.
43909         * lib/stdio.in.h: Renamed from lib/stdio_.h.
43910         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
43911         stdio_.h.
43912         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
43913         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
43914         stdlib_.h.
43915         * lib/string.in.h: Renamed from lib/string_.h.
43916         * modules/string (Files, Makefile.am): Use string.in.h instead of
43917         string_.h.
43918         * doc/gnulib-tool.texi (Initial import): Update.
43919         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
43920         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
43921         of sys_select_.h. Add dependency.
43922         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
43923         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
43924         of sys_socket_.h.
43925         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
43926         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
43927         sys_stat_.h.
43928         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
43929         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
43930         sys_time_.h.
43931         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
43932         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
43933         sysexits_.h.
43934         * lib/time.in.h: Renamed from lib/time_.h.
43935         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
43936         * lib/unistd.in.h: Renamed from lib/unistd_.h.
43937         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
43938         unistd_.h.
43939         * lib/wchar.in.h: Renamed from lib/wchar_.h.
43940         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
43941         wchar_.h.
43942         * lib/wctype.in.h: Renamed from lib/wctype_.h.
43943         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
43944         wctype_.h.
43945         * build-aux/bootstrap (slurp): Update.
43946         * lib/.cppi-disable: Update.
43947
43948 2007-09-30  Bruno Haible  <bruno@clisp.org>
43949
43950         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
43951         Needed on BeOS.
43952
43953 2007-09-30  Bruno Haible  <bruno@clisp.org>
43954
43955         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
43956
43957 2007-09-29  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
43960
43961 2007-09-29  Bruno Haible  <bruno@clisp.org>
43962
43963         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
43964         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
43965         * build-aux/install-reloc: Compile also areadlink.c.
43966         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
43967
43968 2007-09-29  Bruno Haible  <bruno@clisp.org>
43969
43970         * gnulib-tool (func_emit_initmacro_done): Indentation.
43971
43972 2007-09-29  Bruno Haible  <bruno@clisp.org>
43973
43974         * README: Add CVS checkout update instructions.
43975         Info from Bob Proulx <bob@proulx.com>.
43976
43977 2007-09-28  Eric Blake  <ebb9@byu.net>
43978
43979         Provide move-if-change.
43980         * build-aux/move-if-change: New file, based on best practice
43981         rather than any canonical upstream location.
43982
43983 2007-09-28  Jim Meyering  <jim@meyering.net>
43984
43985         Fix canonicalize loop-detection corner case.
43986         Do not attempt to stat the symlink values stored via seen_triple.
43987         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
43988         on linux-2.6.18, (but not 2.6.22).
43989         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
43990         triple_compare.  The former compares dev,ino,filename, while the latter
43991         would actually stat dirname(filename) when dev and ino were equal.
43992         * lib/hash-triple.c: Install <string.h>.
43993         (STREQ): Define.
43994         (triple_compare_ino_str): New function.
43995         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
43996
43997 2007-09-28  Eric Blake  <ebb9@byu.net>
43998
43999         Enforce that AC_REPLACE_FUNCS files exist.
44000         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
44001         override check for typos.
44002
44003         Fix test-closein on Solaris 10.
44004         * tests/test-closein.c (main): Don't assume stdin can be inherited
44005         closed on all systems.
44006         * tests/test-closein.sh: Likewise.
44007         Reported by Piotr Tarnowski.
44008
44009 2007-09-28  Jim Meyering  <jim@meyering.net>
44010
44011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
44012
44013 2007-09-27  Jim Meyering  <jim@meyering.net>
44014
44015         canonicalize: Avoid a false-positive cycle failure.
44016         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
44017         Sort.  Remove cycle-check.
44018         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
44019         not cycle-check.h.
44020         (seen_triple): New function.
44021         (canonicalize_filename_mode): Use it instead of cycle-check.
44022         * tests/test-canonicalize.c: Add a test for this bug.
44023         * tests/test-canonicalize.sh: Set up and run the test.
44024
44025         New module, file-set, from coreutils.
44026         * modules/file-set: Define it.
44027         * lib/file-set.c, lib/file-set.h: Implement.
44028
44029         New module, hash-triple, from coreutils.
44030         * modules/hash-triple: Define it.
44031         * lib/hash-triple.c, lib/hash-triple.h: Implement.
44032
44033 2007-09-25  Eric Blake  <ebb9@byu.net>
44034
44035         Fix strerror on Interix.
44036         * lib/string_.h (strerror): Declare replacement.
44037         * doc/functions/strerror.texi (strerror): Document the Interix
44038         shortcoming.
44039         * modules/string (Makefile.am): Support new hooks.
44040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
44041         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
44042         gl_FUNC_STRERROR_SEPARATE.
44043         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
44044         * lib/strerror.c (rpl_strerror): Provide replacement.
44045         * modules/strerror (Depends-on): Add string.
44046         (configure.ac): Detect use of module.
44047         * tests/test-strerror.c: New file.
44048         * modules/strerror-tests: New test module.
44049         * modules/argp (Depends-on): Add strerror.
44050         * modules/error (Depends-on): Likewise.
44051         Reported by Martin Koeppe.
44052
44053 2007-09-24  Bruno Haible  <bruno@clisp.org>
44054
44055         * README: Update git instructions.
44056
44057 2007-09-24  Eric Blake  <ebb9@byu.net>
44058
44059         Revert fpending breakage from 2007-09-08.
44060         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
44061         __fpending.c.
44062
44063 2007-09-24  Jim Meyering  <jim@meyering.net>
44064
44065         filenamecat.c: Add a test.
44066         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
44067         showing how the function works when DIR is the empty string.
44068
44069 2007-09-21  Simon Josefsson  <simon@josefsson.org>
44070
44071         * tests/test-canonicalize.sh: Turn on executable bit.
44072
44073 2007-09-19  Eric Blake  <ebb9@byu.net>
44074
44075         * README: Update CVS instructions.
44076
44077 2007-09-18  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/areadlink: New file.
44080         * lib/areadlink.h (areadlink): New declaration.
44081         * lib/areadlink.c: New file, based on lib/xreadlink.c.
44082
44083 2007-09-17  Jim Meyering  <jim@meyering.net>
44084
44085         * lib/savewd.c (ESTALE) [!defined]: Define.
44086         Reported to be required on Interix by Martin Koeppe.
44087
44088 2007-09-17  Bruno Haible  <bruno@clisp.org>
44089
44090         * gnulib-tool (func_version): Use $version.
44091
44092 2007-09-16  Bruno Haible  <bruno@clisp.org>
44093
44094         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
44095         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
44096         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
44097         Reported by Greg Schafer <gschafer@zip.com.au>.
44098
44099 2007-09-15  Bruno Haible  <bruno@clisp.org>
44100
44101         * gnulib-tool (sed): Try a little harder to make bash understand the
44102         alias.
44103         Reported by Bruce Korb <bruce.korb@gmail.com>.
44104
44105 2007-09-13  Eric Blake  <ebb9@byu.net>
44106
44107         * ChangeLog: Remove conflict markers.
44108
44109 2007-09-13  Simon Josefsson  <simon@josefsson.org>
44110
44111         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
44112         Reported by Bruno Haible <bruno@clisp.org>.
44113
44114 2007-09-12  Bruno Haible  <bruno@clisp.org>
44115
44116         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
44117         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
44118         is not defined.
44119
44120 2007-09-12  Eric Blake  <ebb9@byu.net>
44121
44122         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44123         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44124         Autoconf definition.
44125         * modules/euidaccess (Depends-on): Add extensions, for
44126         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44127         * modules/fnmatch (Depends-on): Likewise.
44128         * modules/getaddrinfo (Depends-on): Likewise.
44129         * modules/getdelim (Depends-on): Likewise.
44130         * modules/getline (Depends-on): Likewise.
44131         * modules/getsubopt (Depends-on): Likewise.
44132         * modules/gettext (Depends-on): Likewise.
44133         * modules/group-member (Depends-on): Likewise.
44134         * modules/mbchar (Depends-on): Likewise.
44135         * modules/memmem (Depends-on): Likewise.
44136         * modules/mempcpy (Depends-on): Likewise.
44137         * modules/memrchr (Depends-on): Likewise.
44138         * modules/pagealign_alloc (Depends-on): Likewise.
44139         * modules/readutmp (Depends-on): Likewise.
44140         * modules/stpcpy (Depends-on): Likewise.
44141         * modules/stpncpy (Depends-on): Likewise.
44142         * modules/strchrnul (Depends-on): Likewise.
44143         * modules/strndup (Depends-on): Likewise.
44144         * modules/strsep (Depends-on): Likewise.
44145         * modules/strverscmp (Depends-on): Likewise.
44146         * modules/vasprintf (Depends-on): Likewise.
44147         * modules/wcwidth (Depends-on): Likewise.
44148         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
44149         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
44150         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
44151         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
44152         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44153         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44154         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
44155         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44156         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
44157         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
44158         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44159         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44160         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44161         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44162         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
44163         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44164         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44165         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44167         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44168         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44169         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44170         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44171         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
44172         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
44173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44174         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
44175         so that lock.m4 can be used in gettext without extensions module.
44176
44177 2007-09-11  Bruno Haible  <bruno@clisp.org>
44178
44179         * m4/isc-posix.m4: Remove file.
44180         Suggested by Eric Blake.
44181
44182 2007-09-11  Eric Blake  <ebb9@byu.net>
44183
44184         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
44185
44186 2007-09-10  Bruno Haible  <bruno@clisp.org>
44187
44188         * posix-modules: Fix typo in error message.
44189         Reported by Matt <mkraai@beckman.com>.
44190
44191 2007-09-09  Bruno Haible  <bruno@clisp.org>
44192
44193         * doc/functions/getdelim.texi: Update list of platforms lacking the
44194         function.
44195         * doc/functions/getline.texi: Likewise.
44196
44197 2007-09-09  Jim Meyering  <jim@meyering.net>
44198
44199         * lib/hash.c (hash_initialize): Detect calloc failure.
44200         Reported by Bruno Haible.
44201
44202 2007-09-09  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
44205         malloc or realloc fails.
44206
44207 2007-09-09  Bruno Haible  <bruno@clisp.org>
44208
44209         * modules/getcwd (Depends-on): Add malloc-posix.
44210         * modules/glob (Depends-on): Likewise.
44211         * modules/putenv (Depends-on): Likewise.
44212         * modules/strdup (Depends-on): Likewise.
44213         * modules/getdelim (Depends-on): Add realloc-posix.
44214         * modules/read-file (Depends-on): Likewise.
44215
44216 2007-09-09  Bruno Haible  <bruno@clisp.org>
44217
44218         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
44219         (gl_FUNC_MALLOC_POSIX): Require it.
44220         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
44221         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
44222         * modules/realloc (Files): Add m4/malloc.m4.
44223         * modules/calloc (Files): Likewise.
44224
44225 2007-09-09  Bruno Haible  <bruno@clisp.org>
44226
44227         * modules/malloc-posix: New file.
44228         * modules/malloc (Depends-on): Add malloc-posix.
44229         * lib/malloc.c: Include errno.h.
44230         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
44231         and a POSIX-compatible malloc into a single function. Set ENOMEM
44232         when returning NULL.
44233         * m4/malloc.m4: New file.
44234         * doc/functions/malloc.texi: Mention the malloc-posix module.
44235         * lib/stdlib_.h (malloc): New declaration.
44236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44237         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
44238         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
44239         and HAVE_MALLOC_POSIX.
44240
44241 2007-09-09  Bruno Haible  <bruno@clisp.org>
44242
44243         * modules/realloc-posix: New file.
44244         * modules/realloc (Depends-on): Add realloc-posix.
44245         * lib/realloc.c: Include errno.h.
44246         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
44247         and a POSIX-compatible realloc into a single function. Set ENOMEM
44248         when returning NULL.
44249         * m4/realloc.m4: New file.
44250         * doc/functions/realloc.texi: Mention the realloc-posix module.
44251         * lib/stdlib_.h (realloc): New declaration.
44252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44253         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
44254         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
44255         and HAVE_REALLOC_POSIX.
44256
44257 2007-09-09  Bruno Haible  <bruno@clisp.org>
44258
44259         * modules/calloc-posix: New file.
44260         * modules/calloc (Depends-on): Add calloc-posix.
44261         * lib/calloc.c: Include errno.h.
44262         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
44263         and a POSIX-compatible calloc into a single function. Set ENOMEM
44264         when returning NULL.
44265         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
44266         * doc/functions/calloc.texi: Mention the calloc-posix module.
44267         * lib/stdlib_.h (calloc): New declaration.
44268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44269         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
44270         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
44271         and HAVE_CALLOC_POSIX.
44272
44273 2007-09-09  Bruno Haible  <bruno@clisp.org>
44274
44275         Allow for modules to show an arbitrary notice.
44276         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
44277         * gnulib-tool: New option --extract-notice.
44278         (func_usage): Document it.
44279         (sed_extract_prog): Update.
44280         (func_get_notice): New function.
44281         (func_modules_notice): New function.
44282         (func_import, func_create_testdir): Invoke it.
44283         Suggested by Jim Meyering.
44284
44285 2007-09-09  Bruno Haible  <bruno@clisp.org>
44286
44287         * gnulib-tool: New options --verbose, --quiet.
44288         (func_usage): Document them.
44289         (verbose): New variable.
44290         (func_execute_command): New function.
44291         (func_import): Don't show the module list and the file list if
44292         $verbose < 0.
44293         (func_create_testdir): Likewise. Use func_execute_command.
44294         (func_create_megatestdir): Use func_execute_command.
44295
44296 2007-09-08  Bruno Haible  <bruno@clisp.org>
44297
44298         * gnulib-tool (func_import): Prefer rsync over wget when available,
44299         for fetching the PO files.
44300
44301 2007-09-08  Bruno Haible  <bruno@clisp.org>
44302
44303         * posix-modules: New file. Portions copied from gnulib-tool.
44304         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
44305
44306 2007-09-08  Jim Meyering  <jim@meyering.net>
44307
44308         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
44309         * lib/fpending.h: Rename from __fpending.h.
44310         * lib/fpending.c: Rename from __fpending.c.
44311         Include "fpending.h", not "__fpending.h".
44312         * lib/__fpending.h, lib/__fpending.c: Remove files.
44313         * modules/fpending (Files): Reflect new file names.
44314         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
44315
44316 2007-09-08  Bruno Haible  <bruno@clisp.org>
44317
44318         * m4/inttypes-h.m4: Remove stub file.
44319
44320 2007-09-07  Simon Josefsson  <simon@josefsson.org>
44321
44322         * doc/headers/stdint.texi: Discuss #include_next issue.
44323
44324 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44325
44326         * build-aux/bootstrap: Remove obsolete comment about wget --help.
44327
44328 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44329
44330         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
44331         in variable name.
44332
44333 2007-09-03  Jim Meyering  <jim@meyering.net>
44334
44335         New module: git-version-gen.
44336         * modules/git-version-gen: New file.
44337
44338         Import changes from coreutils for bootstrap script.
44339
44340         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44341
44342         bootstrap: uses rsync to download the .po files
44343         * build-aux/bootstrap (po_download_command_format): New global.
44344         (download_po_files): Use rsync.
44345         (update_po_files): Don't remove .po files after download,
44346         so future rsync runs can take advantage of the copies.
44347
44348         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44349
44350         Solve the unnecessary-.po-file-regeneration problem once and for all.
44351         * build-aux/bootstrap (download_po_files): New function, renamed from
44352         get_translations.  Now, downloads, but doesn't update LINGUAS.
44353         (update_po_files): New function.
44354
44355         bootstrap: Ignore more.
44356         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44357         uniwidth to e.g., lib/.gitignore.
44358         (slurp): Handle the sys_stat_.h -> sys mapping, too.
44359
44360         * build-aux/bootstrap: New setting: vc_ignore.
44361         (insert_sorted_if_absent): Create $file if absent.
44362         Adapt to new, possibly empty, list: $vc_ignore.
44363
44364         bootstrap: generate more ignorable names
44365         * build-aux/bootstrap (slurp): When generating ignorable names,
44366         also map .sin to .sed, .gperf to .c, and .y to .c.
44367
44368 2007-09-03  Jim Meyering  <jim@meyering.net>
44369
44370         * build-aux/git-version-gen: New file, from coreutils.  For details, see
44371         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
44372
44373 2007-09-02  Bruno Haible  <bruno@clisp.org>
44374
44375         Fix mis-recognition of 'mcs' on QNX 6.
44376         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
44377         output contains the string "Mono".
44378         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
44379         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
44380
44381 2007-09-01  Bruno Haible  <bruno@clisp.org>
44382
44383         Fix collision between uniwidth/* and linebreak modules.
44384         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
44385         u32_width): Remove declarations.
44386         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
44387         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
44388         streq3, streq2, streq1, streq0): Remove functions.
44389         (STREQ): Remove macro.
44390         (is_cjk_encoding): Remove function.
44391         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
44392         (uc_width, u8_width, u16_width, u32_width): Remove functions.
44393         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
44394         * NEWS: Document the change.
44395
44396 2007-09-01  Bruno Haible  <bruno@clisp.org>
44397
44398         * lib/streq.h: Add double-inclusion guard.
44399
44400 2007-09-01  Karl Berry  <karl@gnu.org>
44401
44402         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
44403
44404 2007-08-28  Jim Meyering  <jim@meyering.net>
44405
44406         Rename mreadlink_with_size to areadlink_with_size.
44407         * NEWS: Document the change.
44408         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
44409         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
44410         * lib/mreadlink.h: Rename this to...
44411         * lib/areadlink.h: ...this.
44412         * modules/mreadlink-with-size: Rename this to...
44413         * modules/areadlink-with-size: ...this.
44414         * lib/canonicalize.c: Reflect the renaming.
44415         * modules/canonicalize: Likewise.
44416
44417 2007-08-26  Bruno Haible  <bruno@clisp.org>
44418
44419         * gnulib-tool (func_import): When deciding which files to remove,
44420         consider also dangling symbolic links.
44421         Reported by Eric Blake.
44422
44423 2007-08-26  Bruno Haible  <bruno@clisp.org>
44424
44425         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
44426
44427 2007-08-23  Simon Josefsson  <simon@josefsson.org>
44428
44429         * lib/readline.c: Don't include getline.h, the prototype is now
44430         found in stdio.h.
44431
44432 2007-08-23  Jim Meyering  <jim@meyering.net>
44433
44434         Getdelim touchup.
44435         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
44436         around the funlockfile call, since funlockfile never sets errno.
44437         Don't set errno upon failed realloc.
44438
44439 2007-08-22  Eric Blake  <ebb9@byu.net>
44440
44441         Getline touchups.
44442         * lib/getdelim.c (getdelim): Revert regression that required *n to
44443         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
44444         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
44445         getdelim, rather than whether implementation is missing.
44446         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
44447         * lib/stdio_.h (getline): Also declare if replacement is
44448         required.
44449         * doc/functions/getdelim.texi: New file.
44450         * doc/functions/getline.texi: Likewise.
44451         * doc/gnulib.texi (Function Substitutes): Add new files.
44452         Reported by Bruno Haible.
44453
44454 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
44455
44456         * users.txt: Add Guile.
44457
44458 2007-08-22  Eric Blake  <ebb9@byu.net>
44459
44460         * tests/test-getdelim.c (main): Use remove, not unlink.
44461         * tests/test-getline.c (main): Likewise.
44462
44463         Move getline and getdelim into stdio.h, per POSIX 200x.
44464         * modules/getline (Files): Remove getline.h.
44465         (Depends-on): Add stdio.
44466         (configure.ac): Add module indicator.
44467         * modules/getdelim (Files): Remove getdelim.h.
44468         (Depends-on): Add stdio.
44469         (configure.ac): Add module indicator.
44470         * modules/stdio (Makefile.am): Work with new indicators.
44471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44472         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44473         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44474         * lib/getdelim.h: Delete.
44475         * lib/getline.h: Delete.
44476         * lib/stdio_.h (getdelim, getline): Declare.
44477         * modules/getdelim-tests: New module.
44478         * modules/getline-tests: Likewise.
44479         * tests/test-getdelim.c: New file.
44480         * tests/test-getline.c: Likewise.
44481         * NEWS: Document the change.
44482         * lib/getline.c: Update choice of header.
44483         * lib/csharpcomp.c: Likewise.
44484         * lib/getpass.c: Likewise.
44485         * lib/javacomp.c: Likewise.
44486         * lib/javaversion.c: Likewise.
44487         * lib/yesno.c: Likewise.
44488         * lib/getdelim.c: Likewise.
44489         (getdelim): Set errno on failure, and avoid memory leak.
44490
44491 2007-08-19  Bruno Haible  <bruno@clisp.org>
44492
44493         * modules/closein (Depends-on): Add freadahead.
44494         * lib/closein.c: Include freadahead.h.
44495         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44496         is zero.
44497
44498 2007-08-19  Bruno Haible  <bruno@clisp.org>
44499
44500         * modules/freadahead-tests: New file.
44501         * tests/test-freadahead.sh: New file.
44502         * tests/test-freadahead.c: New file.
44503
44504         * modules/freadahead: New file.
44505         * lib/freadahead.h: New file.
44506         * lib/freadahead.c: New file.
44507         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
44508         fbufmode, fpurge, freadable, fwritable.
44509
44510 2007-08-19  Eric Blake  <ebb9@byu.net>
44511
44512         Test yesno in combination with closein.
44513         * lib/yesno.c (yesno): Document use of stdin.
44514         * modules/yesno-tests (Files): New module.
44515         * tests/test-yesno.c (main): New file.
44516         * tests/test-yesno.sh: Likewise.
44517
44518 2007-08-19  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
44521         * lib/fseeko.c (rpl_fseeko): Likewise.
44522         * lib/fseterr.c (fseterr): Likewise.
44523
44524 2007-08-19  Bruno Haible  <bruno@clisp.org>
44525
44526         * tests/test-lseek.c (main): Disable a test for BeOS.
44527         * doc/functions/lseek.texi: Document the BeOS bug.
44528
44529 2007-08-19  Bruno Haible  <bruno@clisp.org>
44530             Eric Blake  <ebb9@byu.net>
44531
44532         * lib/lseek.c: Include <sys/stat.h>.
44533         (rpl_lseek): Add workaround code also for Unix platforms.
44534         Needed for BeOS.
44535         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
44536         * doc/functions/lseek.texi: Document BeOS definiency.
44537
44538 2007-08-18  Bruno Haible  <bruno@clisp.org>
44539
44540         * modules/fstrcmp-tests: New file.
44541         * tests/test-fstrcmp.c: New file.
44542
44543 2007-08-18  Bruno Haible  <bruno@clisp.org>
44544
44545         * modules/fstrcmp: New file, from GNU gettext with modifications.
44546         * lib/fstrcmp.h: New file, from GNU gettext.
44547         * lib/fstrcmp.c: New file, from GNU gettext.
44548         * MODULES.html.sh (String handling): Add fstrcmp.
44549
44550 2007-08-18  Bruno Haible  <bruno@clisp.org>
44551
44552         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
44553         'bool'.
44554         (diag, compareseq): Remove const from the ctxt argument.
44555         (USE_HEURISTIC): Undefine at the end.
44556
44557 2007-08-18  Jim Meyering  <jim@meyering.net>
44558
44559         New file: lib/idcache.h
44560         * NEWS: Mention the addition.
44561         * modules/idcache (Files): Add lib/idcache.h
44562         * lib/idcache.c: Include "idcache.h".
44563         Don't include <sys/types.h>.
44564         Add a FIXME comment.
44565         Move file-scoped "static" declarations to the top.
44566         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
44567
44568 2007-08-17  Bruno Haible  <bruno@clisp.org>
44569         and Paul Eggert  <eggert@cs.ucla.edu>
44570
44571         * MODULES.html.sh: Add diffseq.
44572         * modules/diffseq: New file.
44573         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
44574         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
44575
44576 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44577
44578         Import changes from coreutils for bootstrap script.
44579
44580         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44581
44582         * build-aux/bootstrap (slurp): Work even in environments where
44583         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
44584         current code does not slurp files whose names start with ".", and
44585         this looks like it might be a troublesome area.
44586
44587         2007-07-11  Jim Meyering  <jim@meyering.net>
44588
44589         If there's a GPL vN copyright comment, require that N == 3.
44590
44591         2007-07-08  Jim Meyering  <jim@meyering.net>
44592
44593         Run the coreutils-specific code only if tests/Makefile.am.in exists.
44594         * build-aux/bootstrap (mam_template): Move definition out of loop.
44595
44596         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
44597
44598         * build-aux/bootstrap (symlink_to_dir): Rename function from
44599         symlink_to_gnulib.  Add a directory parameter.  Update all
44600         callers.
44601         (cp_mark_as_generated): Also check for -- and link to -- files in
44602         gl/.
44603
44604         2007-07-08  Jim Meyering  <jim@meyering.net>
44605
44606         Adapt to deeper hierarchy in gnulib.
44607         * build-aux/bootstrap (symlink_to_dir): If the destination
44608         directory doesn't exist, create it. This is required at least for
44609         "lib/uniwidth/cjk.h".
44610
44611         2007-05-15  Jim Meyering  <jim@meyering.net>
44612
44613         * build-aux/bootstrap: Now that generated Makefile.am files
44614         are no longer under version control, they must be created at
44615         bootstrap time.
44616
44617 2007-08-14  Ben Pfaff  <blp@gnu.org>
44618
44619         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
44620
44621 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44622
44623         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
44624         given the changes below.
44625         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
44626         even on hosts that have padding bits beyond the supported 64.
44627
44628 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44629
44630         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
44631         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
44632         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
44633         depends on it.
44634         (xstrtol_error): Remove.
44635         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
44636         but with a different signature.
44637         (ATTRIBUTE_NORETURN, __attribute__): New macros.
44638         * lib/xstrtol-error.c: Include exitfail.h.
44639         (xstrtol_fatal): New function, with a different signature from the
44640         old xstrtol_error, so that the caller need not worry about passing
44641         in an exit status, or about storage management of the option argument.
44642         (xstrtol_error): Now a static function.  Redo signature to
44643         implement xstrtol_fatal.  Output the correct number of hyphens in
44644         front of the option so that the caller need not worry about
44645         storage management.
44646         (N_): New macro.
44647         (_): Remove; not used now.
44648         * modules/xstrtol: Depend on getopt.
44649         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
44650         of old STRTOL_FATAL_ERROR macro.
44651         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
44652         of test program.
44653         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
44654         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
44655
44656 2007-08-08  Eric Blake  <ebb9@byu.net>
44657
44658         * lib/xstrtol-error.c: Add missing include.
44659
44660         Move xstrtol messages into gnulib domain, when --pobase is used.
44661         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
44662         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
44663         * modules/xstrtol (Files): Distribute new file.
44664         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
44665         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
44666         * tests/test-xstrtol.c: ...into new file.
44667         * tests/test-xstrtoul.c: Also test xstrtoul.
44668         * tests/test-xstrtoimax.c: Also test xstrtoimax.
44669         * tests/test-xstrtoumax.c: Also test xstrtoumax.
44670         * tests/test-xstrtol.sh: Drive the tests.
44671         * tests/test-xstrtoimax.sh: Likewise.
44672         * tests/test-xstrtoumax.sh: Likewise.
44673         * modules/xstrtol-tests: New module.
44674         * modules/xstrtoimax-tests: Likewise.
44675         * modules/xstrtoumax-tests: Likewise.
44676
44677 2007-08-08  Jim Meyering  <jim@meyering.net>
44678
44679         New function: mfile_name_concat.
44680         * lib/filenamecat.c (mfile_name_concat): New function, just like
44681         file_name_concat, but return NULL upon failure rather than exiting
44682         with a diagnostic.
44683         * lib/filenamecat.h: Declare it.
44684
44685 2007-08-07  Bruno Haible  <bruno@clisp.org>
44686
44687         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
44688         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
44689         warning from gcc.
44690         Reported by Eric Blake.
44691
44692 2007-08-07  Simon Josefsson  <simon@josefsson.org>
44693
44694         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
44695         * modules/crypto/arcfour (License): Likewise.
44696         * modules/crypto/des-tests (License): Likewise.
44697         * modules/crypto/gc-arctwo-tests (License): Likewise.
44698         * modules/crypto/gc-des-tests (License): Likewise.
44699         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
44700         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
44701         * modules/crypto/gc-md2-tests (License): Likewise.
44702         * modules/crypto/gc-md4-tests (License): Likewise.
44703         * modules/crypto/gc-md5-tests (License): Likewise.
44704         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
44705         * modules/crypto/gc-rijndael-tests (License): Likewise.
44706         * modules/crypto/gc-sha1-tests (License): Likewise.
44707         * modules/crypto/gc-tests (License): Likewise.
44708         * modules/crypto/hmac-md5 (License): Likewise.
44709         * modules/crypto/hmac-sha1 (License): Likewise.
44710         * modules/crypto/md2-tests (License): Likewise.
44711         * modules/crypto/md4-tests (License): Likewise.
44712         * modules/crypto/md5 (License): Likewise.
44713         * modules/crypto/rijndael (License): Likewise.
44714         * modules/crypto/sha1 (License): Likewise.
44715         * modules/memxor (License): Likewise.
44716
44717 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44718         and Bruno Haible  <bruno@clisp.org>
44719
44720         * NEWS: Describe interface changes to human, xstrtol.
44721         * lib/human.h: Include <xstrtol.h>.
44722         (human_options): Return enum strtol_error, not int.  Remove
44723         bool arg; take int * instead.
44724         * lib/human.c: Don't include "gettext.h".
44725         (_): Remove; no longer used.
44726         Don't include <xstrtol.h>, since human.h does it.
44727         (human_options): Adjust to abovementioned interface changes.
44728         Do not report error to stderr; that's now the caller's
44729         responsibility.
44730         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
44731         interface change.
44732         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
44733         Str, Argument_type_string.  All uses changed.  Put " argument"
44734         in diagnostics to make them clearer.  Change wording of suffix
44735         message for clarity.
44736         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
44737         Argument_type_string.
44738         (STRTOL_FATAL_WARN): Remove; no longer used.
44739         * modules/human (Depends-on): Remove gettext-h.
44740
44741 2007-08-06  Simon Josefsson  <simon@josefsson.org>
44742
44743         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
44744
44745 2007-07-31  Bruno Haible  <bruno@clisp.org>
44746
44747         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
44748         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
44749         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
44750
44751 2007-07-31  Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
44754         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
44755
44756 2007-07-30  Bruno Haible  <bruno@clisp.org>
44757
44758         * modules/base64 (License): Use the synonymous term "LGPLv2+".
44759         * modules/c-ctype (License): Likewise.
44760         * modules/c-strcase (License): Likewise.
44761         * modules/check-version (License): Likewise.
44762         * modules/iconv (License): Likewise.
44763         * modules/iconv_open (License): Likewise.
44764         * modules/read-file (License): Likewise.
44765         * modules/striconv (License): Likewise.
44766         * modules/strverscmp (License): Likewise.
44767         * modules/vasprintf (License): Likewise.
44768         * modules/crypto/des (License): Likewise.
44769         * modules/crypto/gc (License): Likewise.
44770         * modules/crypto/gc-arcfour (License): Likewise.
44771         * modules/crypto/gc-arctwo (License): Likewise.
44772         * modules/crypto/gc-des (License): Likewise.
44773         * modules/crypto/gc-hmac-md5 (License): Likewise.
44774         * modules/crypto/gc-hmac-sha1 (License): Likewise.
44775         * modules/crypto/gc-md2 (License): Likewise.
44776         * modules/crypto/gc-md4 (License): Likewise.
44777         * modules/crypto/gc-md5 (License): Likewise.
44778         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
44779         * modules/crypto/gc-random (License): Likewise.
44780         * modules/crypto/gc-rijndael (License): Likewise.
44781         * modules/crypto/gc-sha1 (License): Likewise.
44782         * modules/crypto/md2 (License): Likewise.
44783         * modules/crypto/md4 (License): Likewise.
44784
44785 2007-07-30  Jim Meyering  <jim@meyering.net>
44786
44787         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
44788         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
44789         it has valid stat data.  This bug would cause du not to count the
44790         sizes of inaccessible directories.
44791         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
44792         in <http://bugzilla.redhat.com/250077>.
44793
44794 2007-07-25  Peter O'Gorman  <peter@pogma.com>
44795             Bruno Haible  <bruno@clisp.org>
44796
44797         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
44798         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
44799         #include_next, gives a diagnostic about it, but reports no error in
44800         the exit code.
44801         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44802
44803 2007-07-24  Ben Pfaff  <blp@gnu.org>
44804
44805         Improve name: "count-one-bits" is better than "popcount".
44806         * MODULES.html.sh: Update name.
44807         * lib/popcount.h: Renamed lib/count-one-bits.h.
44808         (popcount): Renamed count_one_bits.
44809         (popcountl): Renamed count_one_bits_l.
44810         (popcountll): Renamed count_one_bits_ll.
44811         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
44812         * modules/popcount: Renamed module/count-one-bits.
44813         * modules/popcount-tests: Renamed module/count-one-bits-tests.
44814         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
44815
44816 2007-07-23  Ben Pfaff  <blp@gnu.org>
44817
44818         * lib/popcount.h (popcount32): Reduce size of constants, to allow
44819         better code generation, and add U to large constants to avoid
44820         warnings, in non-GCC case.
44821         Suggested by Bruno Haible.
44822
44823 2007-07-23  Ben Pfaff  <blp@gnu.org>
44824
44825         * lib/popcount.h: Use verify_true instead of if...abort.
44826         * modules/popcount: Depend on verify module.
44827         Suggested by Jim Meyering.
44828
44829 2007-07-23  Bruno Haible  <bruno@clisp.org>
44830
44831         * gnulib-tool (func_import): Create a .cvsignore file also when the
44832         directory is not yet in CVS but the toplevel directory is. When
44833         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
44834         Reported by Karl Berry.
44835
44836 2007-07-22  Ben Pfaff  <blp@gnu.org>
44837
44838         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
44839         case.
44840         Suggested by Eric Blake.
44841
44842 2007-07-22  Ben Pfaff  <blp@gnu.org>
44843
44844         New module: popcount.
44845         * MODULES.html.sh: Add popcount.
44846         * modules/popcount: New file.
44847         * modules/popcount-tests: New file.
44848         * tests/test-popcount.c: New file.
44849         * lib/popcount.h: New file.
44850         * m4/popcount.m4: New file.
44851
44852 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44853
44854         * build-aux/announce-gen: Update to GPLv3.
44855
44856         * build-aux/config.guess: Update from config.
44857
44858 2007-07-21  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
44861         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
44862
44863 2007-07-20  Jim Meyering  <jim@meyering.net>
44864
44865         * check-module: Diagnose a self-dependency.
44866
44867 2007-07-19  Bruno Haible  <bruno@clisp.org>
44868
44869         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
44870         empty.
44871         Reported by Eric Blake.
44872
44873 2007-07-18  Bruno Haible  <bruno@clisp.org>
44874
44875         * gnulib-tool: New options --po-base, --po-domain.
44876         (func_usage): Document them.
44877         (pobase, po_domain): New variables.
44878         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
44879         DEFAULT_TEXT_DOMAIN.
44880         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
44881         (func_import): Consider pobase and po_domain. Create a po/ directory.
44882         (func_create_testdir): Set pobase and po_domain to empty.
44883         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
44884         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
44885
44886 2007-07-18  Bruno Haible  <bruno@clisp.org>
44887
44888         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44889         EXTRA_DIST augmentation for files in build-aux/.
44890
44891 2007-07-16  Bruno Haible  <bruno@clisp.org>
44892
44893         * modules/lseek (License): Use the synonymous term "LGPLv2+".
44894         * modules/getdelim (License): Likewise.
44895
44896 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44897
44898         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
44899         * modules/d-type (License): Likewise.
44900         * modules/extensions (License): Likewise.
44901         * modules/fnmatch (License): Likewise.
44902         * modules/fseeko (License): Likewise.
44903         * modules/getaddrinfo (License): Likewise.
44904         * modules/getline (License): Likewise.
44905         * modules/getlogin_r (License): Likewise.
44906         * modules/getpass (License): Likewise.
44907         * modules/gettimeofday (License): Likewise.
44908         * modules/glob (License): Likewise.
44909         * modules/inet_ntop (License): Likewise.
44910         * modules/malloc (License): Likewise.
44911         * modules/malloca (License): Likewise.
44912         * modules/memmem (License): Likewise.
44913         * modules/mempcpy (License): Likewise.
44914         * modules/memset (License): Likewise.
44915         * modules/minmax (License): Likewise.
44916         * modules/mktime (License): Likewise.
44917         * modules/netinet_in (License): Likewise.
44918         * modules/pathmax (License): Likewise.
44919         * modules/poll (License): Likewise.
44920         * modules/regex (License): Likewise.
44921         * modules/snprintf (License): Likewise.
44922         * modules/stdbool (License): Likewise.
44923         * modules/stdint (License): Likewise.
44924         * modules/stdio (License): Likewise.
44925         * modules/strcase (License): Likewise.
44926         * modules/strcasestr (License): Likewise.
44927         * modules/strdup (License): Likewise.
44928         * modules/string (License): Likewise.
44929         * modules/strndup (License): Likewise.
44930         * modules/strnlen (License): Likewise.
44931         * modules/strpbrk (License): Likewise.
44932         * modules/strptime (License): Likewise.
44933         * modules/strsep (License): Likewise.
44934         * modules/sys_select (License): Likewise.
44935         * modules/sys_socket (License): Likewise.
44936         * modules/sys_stat (License): Likewise.
44937         * modules/sys_time (License): Likewise.
44938         * modules/time (License): Likewise.
44939         * modules/time_r (License): Likewise.
44940         * modules/timegm (License): Likewise.
44941         * modules/unistd (License): Likewise.
44942         * modules/vsnprintf (License): Likewise.
44943         * modules/wctype (License): Likewise.
44944
44945 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44946
44947         * modules/argz (License): LGPLv2+.
44948
44949 2007-07-15  Karl Berry  <karl@gnu.org>
44950
44951         * doc/gnulib.texi: revise node structure per new fdl.texi.
44952
44953 2007-07-14  Bruno Haible  <bruno@clisp.org>
44954
44955         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
44956         the output file.
44957         * lib/uniname/uninames.h: Regenerated.
44958
44959 2007-07-14  Karl Berry  <karl@gnu.org>
44960
44961         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
44962         omitting sectioning and index commands.
44963
44964 2007-07-13  Bruno Haible  <bruno@clisp.org>
44965
44966         New gnulib-tool option --more-symlinks.
44967         * gnulib-tool (func_usage): Document --more-symlinks.
44968         (do_copyrights): New variable.
44969         Recognize option --more-symlinks.
44970         (func_import): Don't add a copyright notice transform to
44971         sed_transform_lib_file if do_copyrights is empty.
44972
44973 2007-07-13  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/vasnprintf.c (decimal_point_char): Define also if
44976         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
44977         && !NEED_PRINTF_DIRECTIVE_A.
44978         Reported by Clemens Koller <clemens.koller@anagramm.de> via
44979         Gary V. Vaughan <gary@gnu.org>.
44980
44981 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
44982
44983         * lib/inttypes_.h: Undo previous change, since it was fixed
44984         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
44985
44986 2007-07-13  Bruno Haible  <bruno@clisp.org>
44987
44988         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
44989         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
44990
44991 2007-07-13  Jim Meyering  <jim@meyering.net>
44992
44993         df: Don't fail for Tru64's "file-on-file mount".
44994         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
44995         so we fall through and use statfs instead.  Details here:
44996         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
44997         Reported by Albert Chin.
44998
44999 2007-07-13  Bruno Haible  <bruno@clisp.org>
45000
45001         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
45002         * modules/configmake (License): Likewise.
45003         * modules/gettext (License): Likewise.
45004         * modules/gettext-h (License): Likewise.
45005         * modules/include_next (License): Likewise.
45006         * modules/link-warning (License): Likewise.
45007         * modules/localcharset (License): Likewise.
45008         * modules/localename (License): Likewise.
45009         * modules/lock (License): Likewise.
45010         * modules/relocatable-lib-lgpl (License): Likewise.
45011         * modules/size_max (License): Likewise.
45012         * modules/vasnprintf (License): Likewise.
45013         * modules/wchar (License): Likewise.
45014         * modules/xsize (License): Likewise.
45015
45016 2007-07-13  Bruno Haible  <bruno@clisp.org>
45017
45018         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
45019         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
45020
45021 2007-07-12  Bruno Haible  <bruno@clisp.org>
45022
45023         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
45024         in the modules files.
45025
45026 2007-07-11  Karl Berry  <karl@gnu.org>
45027
45028         * MODULES.html.sh (func_module): use
45029          sed -e '\|^'"${includefile}"'$|d'
45030          instead of /.../d, to avoid errors on $includefile's containing /.
45031
45032 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45033
45034         * gnulib-tool (func_import): Avoid duplication of --avoid
45035         statements
45036         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
45037         names to `_' in variable names.
45038
45039 2007-07-10  Eric Blake  <ebb9@byu.net>
45040
45041         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
45042         * NEWS: Document this change.
45043
45044 2007-07-08  Bruno Haible  <bruno@clisp.org>
45045
45046         Update to Unicode 5.0.
45047         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
45048         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
45049         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
45050         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
45051         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
45052         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
45053         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
45054         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
45055         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
45056         U+10A3F, U+1D242..U+1D244.
45057         (nonspacing_table_ind): Update.
45058         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
45059         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
45060
45061 2007-07-08  Bruno Haible  <bruno@clisp.org>
45062
45063         Update to Unicode 5.0.
45064         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
45065         code transform. Extend the name index field of unicode_name_to_code and
45066         unicode_code_to_name from 16 to 24 bits.
45067         * lib/uniname/uniname.c (unicode_character_name,
45068         unicode_name_character): Add the range 0x12xxx to the code transform.
45069         * lib/uniname/uninames.h: Regenerated.
45070         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
45071
45072 2007-07-07  Bruno Haible  <bruno@clisp.org>
45073
45074         * modules/wcwidth-tests: New file.
45075         * tests/test-wcwidth.c: New file.
45076
45077         Work around MacOS X wcwidth() bug.
45078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
45079         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
45080         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
45081         original wcwidth in non-UTF-8 locales.
45082         * modules/wcwidth (Depends-on): Add localcharset, streq,
45083         uniwidth/width.
45084         * doc/functions/wcwidth.texi: Update.
45085
45086 2007-07-07  Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
45089         (wcwidth): New declaration.
45090         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
45091         macros.
45092         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
45093         here. Prepare for creating <wchar.h> unconditionally.
45094         * modules/wchar (Depends-on): Add link-warning.
45095         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
45096         REPLACE_WCWIDTH, and GL_LINK_WARNING.
45097         * lib/wcwidth.h: Remove file.
45098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
45099         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
45100         * modules/wcwidth (Files): Remove lib/wcwidth.h.
45101         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
45102         (Include): Replace wcwidth.h with <wchar.h>.
45103         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
45104         * lib/mbchar.h: Don't include wcwidth.h.
45105         * lib/mbswidth.c: Likewise.
45106         * NEWS: Mention the change.
45107
45108 2007-07-07  Bruno Haible  <bruno@clisp.org>
45109
45110         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
45111         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
45112         definition with an external declaration.
45113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
45114         defined as a function. Remove AC_C_INLINE requirement.
45115         * modules/wcwidth (Files): Add lib/wcwidth.c.
45116         (Makefile.am): Remove redundant statement.
45117
45118 2007-07-07  Bruno Haible  <bruno@clisp.org>
45119
45120         * MODULES.html.sh (Unicode string functions): Add the new modules.
45121
45122         * tests/uniwidth/test-u32-strwidth.c: New file.
45123         * modules/uniwidth/u32-strwidth-tests: New file.
45124
45125         * lib/uniwidth/u32-strwidth.c: New file.
45126         * modules/uniwidth/u32-strwidth: New file.
45127
45128         * tests/uniwidth/test-u16-strwidth.c: New file.
45129         * modules/uniwidth/u16-strwidth-tests: New file.
45130
45131         * lib/uniwidth/u16-strwidth.c: New file.
45132         * modules/uniwidth/u16-strwidth: New file.
45133
45134         * tests/uniwidth/test-u8-strwidth.c: New file.
45135         * modules/uniwidth/u8-strwidth-tests: New file.
45136
45137         * lib/uniwidth/u8-strwidth.c: New file.
45138         * modules/uniwidth/u8-strwidth: New file.
45139
45140         * tests/uniwidth/test-u32-width.c: New file.
45141         * modules/uniwidth/u32-width-tests: New file.
45142
45143         * lib/uniwidth/u32-width.c: New file.
45144         * modules/uniwidth/u32-width: New file.
45145
45146         * tests/uniwidth/test-u16-width.c: New file.
45147         * modules/uniwidth/u16-width-tests: New file.
45148
45149         * lib/uniwidth/u16-width.c: New file.
45150         * modules/uniwidth/u16-width: New file.
45151
45152         * tests/uniwidth/test-u8-width.c: New file.
45153         * modules/uniwidth/u8-width-tests: New file.
45154
45155         * lib/uniwidth/u8-width.c: New file.
45156         * modules/uniwidth/u8-width: New file.
45157
45158         * tests/uniwidth/test-uc_width.c: New file.
45159         * modules/uniwidth/width-tests: New file.
45160
45161         * lib/uniwidth/width.c: New file, from GNU libiconv.
45162         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
45163         * modules/uniwidth/width: New file.
45164
45165         * lib/uniwidth.h: New file, from GNU libiconv.
45166         * modules/uniwidth/base: New file.
45167
45168 2007-07-07  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/uniname.h: New file, from GNU gettext.
45171         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
45172         * lib/uniname/uninames.h: New file, from GNU gettext.
45173         * lib/uniname/uniname.c: New file, from GNU gettext.
45174         * tests/uniname/test-uninames.sh: New file.
45175         * tests/uniname/test-uninames.c: New file, from GNU gettext.
45176         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
45177         * modules/uniname/base: New file.
45178         * modules/uniname/uniname: New file.
45179         * modules/uniname/uniname-tests: New file.
45180         * MODULES.html.sh (Unicode string functions): Add the new modules.
45181
45182 2007-07-06  Bruno Haible  <bruno@clisp.org>
45183
45184         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
45185
45186 2007-07-06  Bruno Haible  <bruno@clisp.org>
45187
45188         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
45189         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
45190         includes <cygwin/sys_time.h> which includes <sys/select.h> which
45191         include <sys/time.h>.
45192         Reported by Eric Blake.
45193
45194 2007-07-06  Eric Blake  <ebb9@byu.net>
45195
45196         Fix testing canonicalize on cygwin.
45197         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45198         Revert patch from 2007-06-19.
45199         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
45200         canonicalize module is also in use.
45201         * tests/test-canonicalize.c: New file.
45202         * tests/test-canonicalize.sh: Likewise.
45203         * modules/canonicalize-tests: Likewise.
45204
45205 2007-07-06  Jim Meyering  <jim@meyering.net>
45206
45207         * lib/getugroups.c (getugroups): Detect getgrent failure.
45208         Adjust comment to reflect reality: this function may return -1.
45209
45210 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
45211
45212         * build-aux/bootstrap (TP_URL,get_translations): Update to use
45213         the new TP address.
45214         (usage): Fix typo
45215         (gnulib_mk): New variable.
45216
45217 2007-07-05  Jim Meyering  <jim@meyering.net>
45218
45219         Don't let endgrent clobber errno, no matter how improbable.
45220         * lib/getugroups.c (getugroups): Save and restore errno around
45221         endgrent call.
45222
45223         Close the group DB even when failing with 2^31 or more members.
45224         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
45225
45226 2007-07-04  Jim Meyering  <jim@meyering.net>
45227
45228         * lib/getugroups.h: New file.
45229         * lib/getugroups.c: Include "getugroups.h".
45230         Remove uses of "register" keyword.
45231         Move local variable, "cp", down into scope where used.
45232         Give "username" parameter the "const" attribute.
45233         * modules/getugroups (Files): Add lib/getugroups.h
45234
45235 2007-07-04  Karl Berry  <karl@gnu.org>
45236
45237         * MODULES.html.sh (func_all_modules): Complete rename of
45238         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
45239
45240 2007-07-02  Bruno Haible  <bruno@clisp.org>
45241
45242         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
45243         mode, when inttypes.h comes from gnulib.
45244         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45245
45246 2007-07-02  Simon Josefsson  <simon@josefsson.org>
45247
45248         * NEWS: Mention lgpl module name change.
45249
45250         * modules/lgpl-2.1: Renamed from lgpl.
45251
45252         * NEWS: Mention gpl module name change.
45253
45254         * modules/gpl-3.0: New file, based on gpl-2.0.
45255
45256         * modules/gpl-2.0: Renamed from gpl.
45257
45258         * modules/gpl: Fix filename, doc/gpl.texi is now found at
45259         doc/gpl-2.0.texi.
45260
45261 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45262
45263         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
45264         #define __STDC_LIMIT_MACROS temporarily while including
45265         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
45266         Problem reported by Joel E. Denny in
45267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
45268
45269 2007-07-01  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/unistdio.h: New file.
45272         * lib/unistdio/u-asnprintf.h: New file.
45273         * lib/unistdio/u-asprintf.h: New file.
45274         * lib/unistdio/u-printf-args.c: New file.
45275         * lib/unistdio/u-printf-args.h: New file.
45276         * lib/unistdio/u-printf-parse.h: New file.
45277         * lib/unistdio/u-snprintf.h: New file.
45278         * lib/unistdio/u-sprintf.h: New file.
45279         * lib/unistdio/u-vasprintf.h: New file.
45280         * lib/unistdio/u-vsnprintf.h: New file.
45281         * lib/unistdio/u-vsprintf.h: New file.
45282         * lib/unistdio/ulc-asnprintf.c: New file.
45283         * lib/unistdio/ulc-asprintf.c: New file.
45284         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
45285         * lib/unistdio/ulc-printf-parse.c: New file.
45286         * lib/unistdio/ulc-snprintf.c: New file.
45287         * lib/unistdio/ulc-sprintf.c: New file.
45288         * lib/unistdio/ulc-vasnprintf.c: New file.
45289         * lib/unistdio/ulc-vasprintf.c: New file.
45290         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
45291         * lib/unistdio/ulc-vsnprintf.c: New file.
45292         * lib/unistdio/ulc-vsprintf.c: New file.
45293         * lib/unistdio/u8-asnprintf.c: New file.
45294         * lib/unistdio/u8-asprintf.c: New file.
45295         * lib/unistdio/u8-printf-parse.c: New file.
45296         * lib/unistdio/u8-snprintf.c: New file.
45297         * lib/unistdio/u8-sprintf.c: New file.
45298         * lib/unistdio/u8-vasnprintf.c: New file.
45299         * lib/unistdio/u8-vasprintf.c: New file.
45300         * lib/unistdio/u8-vsnprintf.c: New file.
45301         * lib/unistdio/u8-vsprintf.c: New file.
45302         * lib/unistdio/u8-u8-asnprintf.c: New file.
45303         * lib/unistdio/u8-u8-asprintf.c: New file.
45304         * lib/unistdio/u8-u8-snprintf.c: New file.
45305         * lib/unistdio/u8-u8-sprintf.c: New file.
45306         * lib/unistdio/u8-u8-vasnprintf.c: New file.
45307         * lib/unistdio/u8-u8-vasprintf.c: New file.
45308         * lib/unistdio/u8-u8-vsnprintf.c: New file.
45309         * lib/unistdio/u8-u8-vsprintf.c: New file.
45310         * lib/unistdio/u16-asnprintf.c: New file.
45311         * lib/unistdio/u16-asprintf.c: New file.
45312         * lib/unistdio/u16-printf-parse.c: New file.
45313         * lib/unistdio/u16-snprintf.c: New file.
45314         * lib/unistdio/u16-sprintf.c: New file.
45315         * lib/unistdio/u16-vasnprintf.c: New file.
45316         * lib/unistdio/u16-vasprintf.c: New file.
45317         * lib/unistdio/u16-vsnprintf.c: New file.
45318         * lib/unistdio/u16-vsprintf.c: New file.
45319         * lib/unistdio/u16-u16-asnprintf.c: New file.
45320         * lib/unistdio/u16-u16-asprintf.c: New file.
45321         * lib/unistdio/u16-u16-snprintf.c: New file.
45322         * lib/unistdio/u16-u16-sprintf.c: New file.
45323         * lib/unistdio/u16-u16-vasnprintf.c: New file.
45324         * lib/unistdio/u16-u16-vasprintf.c: New file.
45325         * lib/unistdio/u16-u16-vsnprintf.c: New file.
45326         * lib/unistdio/u16-u16-vsprintf.c: New file.
45327         * lib/unistdio/u32-asnprintf.c: New file.
45328         * lib/unistdio/u32-asprintf.c: New file.
45329         * lib/unistdio/u32-printf-parse.c: New file.
45330         * lib/unistdio/u32-snprintf.c: New file.
45331         * lib/unistdio/u32-sprintf.c: New file.
45332         * lib/unistdio/u32-vasnprintf.c: New file.
45333         * lib/unistdio/u32-vasprintf.c: New file.
45334         * lib/unistdio/u32-vsnprintf.c: New file.
45335         * lib/unistdio/u32-vsprintf.c: New file.
45336         * lib/unistdio/u32-u32-asnprintf.c: New file.
45337         * lib/unistdio/u32-u32-asprintf.c: New file.
45338         * lib/unistdio/u32-u32-snprintf.c: New file.
45339         * lib/unistdio/u32-u32-sprintf.c: New file.
45340         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45341         * lib/unistdio/u32-u32-vasprintf.c: New file.
45342         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45343         * lib/unistdio/u32-u32-vsprintf.c: New file.
45344         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45345         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45346         * tests/unistdio/test-ulc-printf1.h: New file.
45347         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45348         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45349         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45350         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45351         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45352         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45353         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45354         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45355         * tests/unistdio/test-u8-asnprintf1.c: New file.
45356         * tests/unistdio/test-u8-asnprintf1.h: New file.
45357         * tests/unistdio/test-u8-printf1.h: New file.
45358         * tests/unistdio/test-u8-vasnprintf1.c: New file.
45359         * tests/unistdio/test-u8-vasnprintf2.c: New file.
45360         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
45361         * tests/unistdio/test-u8-vasnprintf3.c: New file.
45362         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
45363         * tests/unistdio/test-u8-vasprintf1.c: New file.
45364         * tests/unistdio/test-u8-vsnprintf1.c: New file.
45365         * tests/unistdio/test-u8-vsprintf1.c: New file.
45366         * tests/unistdio/test-u16-asnprintf1.c: New file.
45367         * tests/unistdio/test-u16-asnprintf1.h: New file.
45368         * tests/unistdio/test-u16-printf1.h: New file.
45369         * tests/unistdio/test-u16-vasnprintf1.c: New file.
45370         * tests/unistdio/test-u16-vasnprintf2.c: New file.
45371         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
45372         * tests/unistdio/test-u16-vasnprintf3.c: New file.
45373         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
45374         * tests/unistdio/test-u16-vasprintf1.c: New file.
45375         * tests/unistdio/test-u16-vsnprintf1.c: New file.
45376         * tests/unistdio/test-u16-vsprintf1.c: New file.
45377         * tests/unistdio/test-u32-asnprintf1.c: New file.
45378         * tests/unistdio/test-u32-asnprintf1.h: New file.
45379         * tests/unistdio/test-u32-printf1.h: New file.
45380         * tests/unistdio/test-u32-vasnprintf1.c: New file.
45381         * tests/unistdio/test-u32-vasnprintf2.c: New file.
45382         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
45383         * tests/unistdio/test-u32-vasnprintf3.c: New file.
45384         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
45385         * tests/unistdio/test-u32-vasprintf1.c: New file.
45386         * tests/unistdio/test-u32-vsnprintf1.c: New file.
45387         * tests/unistdio/test-u32-vsprintf1.c: New file.
45388         * modules/unistdio/base: New file.
45389         * modules/unistdio/u-printf-args: New file.
45390         * modules/unistdio/ulc-asnprintf: New file.
45391         * modules/unistdio/ulc-asprintf: New file.
45392         * modules/unistdio/ulc-fprintf: New file.
45393         * modules/unistdio/ulc-printf-parse: New file.
45394         * modules/unistdio/ulc-snprintf: New file.
45395         * modules/unistdio/ulc-sprintf: New file.
45396         * modules/unistdio/ulc-vasnprintf: New file.
45397         * modules/unistdio/ulc-vasprintf: New file.
45398         * modules/unistdio/ulc-vfprintf: New file.
45399         * modules/unistdio/ulc-vsnprintf: New file.
45400         * modules/unistdio/ulc-vsprintf: New file.
45401         * modules/unistdio/u8-asnprintf: New file.
45402         * modules/unistdio/u8-asprintf: New file.
45403         * modules/unistdio/u8-printf-parse: New file.
45404         * modules/unistdio/u8-snprintf: New file.
45405         * modules/unistdio/u8-sprintf: New file.
45406         * modules/unistdio/u8-vasnprintf: New file.
45407         * modules/unistdio/u8-vasprintf: New file.
45408         * modules/unistdio/u8-vsnprintf: New file.
45409         * modules/unistdio/u8-vsprintf: New file.
45410         * modules/unistdio/u8-u8-asnprintf: New file.
45411         * modules/unistdio/u8-u8-asprintf: New file.
45412         * modules/unistdio/u8-u8-snprintf: New file.
45413         * modules/unistdio/u8-u8-sprintf: New file.
45414         * modules/unistdio/u8-u8-vasnprintf: New file.
45415         * modules/unistdio/u8-u8-vasprintf: New file.
45416         * modules/unistdio/u8-u8-vsnprintf: New file.
45417         * modules/unistdio/u8-u8-vsprintf: New file.
45418         * modules/unistdio/u16-asnprintf: New file.
45419         * modules/unistdio/u16-asprintf: New file.
45420         * modules/unistdio/u16-printf-parse: New file.
45421         * modules/unistdio/u16-snprintf: New file.
45422         * modules/unistdio/u16-sprintf: New file.
45423         * modules/unistdio/u16-vasnprintf: New file.
45424         * modules/unistdio/u16-vasprintf: New file.
45425         * modules/unistdio/u16-vsnprintf: New file.
45426         * modules/unistdio/u16-vsprintf: New file.
45427         * modules/unistdio/u16-u16-asnprintf: New file.
45428         * modules/unistdio/u16-u16-asprintf: New file.
45429         * modules/unistdio/u16-u16-snprintf: New file.
45430         * modules/unistdio/u16-u16-sprintf: New file.
45431         * modules/unistdio/u16-u16-vasnprintf: New file.
45432         * modules/unistdio/u16-u16-vasprintf: New file.
45433         * modules/unistdio/u16-u16-vsnprintf: New file.
45434         * modules/unistdio/u16-u16-vsprintf: New file.
45435         * modules/unistdio/u32-asnprintf: New file.
45436         * modules/unistdio/u32-asprintf: New file.
45437         * modules/unistdio/u32-printf-parse: New file.
45438         * modules/unistdio/u32-snprintf: New file.
45439         * modules/unistdio/u32-sprintf: New file.
45440         * modules/unistdio/u32-vasnprintf: New file.
45441         * modules/unistdio/u32-vasprintf: New file.
45442         * modules/unistdio/u32-vsnprintf: New file.
45443         * modules/unistdio/u32-vsprintf: New file.
45444         * modules/unistdio/u32-u32-asnprintf: New file.
45445         * modules/unistdio/u32-u32-asprintf: New file.
45446         * modules/unistdio/u32-u32-snprintf: New file.
45447         * modules/unistdio/u32-u32-sprintf: New file.
45448         * modules/unistdio/u32-u32-vasnprintf: New file.
45449         * modules/unistdio/u32-u32-vasprintf: New file.
45450         * modules/unistdio/u32-u32-vsnprintf: New file.
45451         * modules/unistdio/u32-u32-vsprintf: New file.
45452         * modules/unistdio/ulc-asnprintf-tests: New file.
45453         * modules/unistdio/ulc-vasnprintf-tests: New file.
45454         * modules/unistdio/ulc-vasprintf-tests: New file.
45455         * modules/unistdio/ulc-vsnprintf-tests: New file.
45456         * modules/unistdio/ulc-vsprintf-tests: New file.
45457         * modules/unistdio/u8-asnprintf-tests: New file.
45458         * modules/unistdio/u8-vasnprintf-tests: New file.
45459         * modules/unistdio/u8-vasprintf-tests: New file.
45460         * modules/unistdio/u8-vsnprintf-tests: New file.
45461         * modules/unistdio/u8-vsprintf-tests: New file.
45462         * modules/unistdio/u16-asnprintf-tests: New file.
45463         * modules/unistdio/u16-vasnprintf-tests: New file.
45464         * modules/unistdio/u16-vasprintf-tests: New file.
45465         * modules/unistdio/u16-vsnprintf-tests: New file.
45466         * modules/unistdio/u16-vsprintf-tests: New file.
45467         * modules/unistdio/u32-asnprintf-tests: New file.
45468         * modules/unistdio/u32-vasnprintf-tests: New file.
45469         * modules/unistdio/u32-vasprintf-tests: New file.
45470         * modules/unistdio/u32-vsnprintf-tests: New file.
45471         * modules/unistdio/u32-vsprintf-tests: New file.
45472         * MODULES.html.sh (Unicode string functions): Add the new modules.
45473
45474 2007-07-01  Bruno Haible  <bruno@clisp.org>
45475
45476         * lib/sprintf.c (sprintf): Limit the available length estimation,
45477         to avoid address wraparound.
45478         * lib/vsprintf.c (vsprintf): Likewise.
45479         * modules/sprintf-posix (Dependencies): Add stdint.
45480         * modules/vsprintf-posix (Dependencies): Likewise.
45481
45482 2007-07-01  Bruno Haible  <bruno@clisp.org>
45483
45484         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45485         Windows PATH as well. Conservative double-quoting. Comments.
45486
45487 2007-07-01  Bruno Haible  <bruno@clisp.org>
45488             Eric Blake  <ebb9@byu.net>
45489             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45490
45491         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45492         empty components in $PATH, denoting '.'.
45493
45494 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45495
45496         * gnulib-tool: Fix indentation.
45497         (func_create_megatestdir): Likewise.
45498         Report by Bruno Haible.
45499
45500 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45501
45502         Sync from Automake.
45503         * build-aux/gnupload: Fix shell portability issues with for loops.
45504         Report by Karl Berry.
45505
45506 2007-06-29  Simon Josefsson  <simon@josefsson.org>
45507
45508         * build-aux/maint.mk (POURL): Use translationproject.org.
45509
45510 2007-06-27  Simon Josefsson  <simon@josefsson.org>
45511             Bruno Haible  <bruno@clisp.org>
45512
45513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
45514         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
45515         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
45516         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
45517         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
45518
45519 2007-06-27  Bruno Haible  <bruno@clisp.org>
45520
45521         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
45522         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
45523
45524 2007-06-26  Karl Berry  <karl@gnu.org>
45525
45526         * MODULES.html.sh: remove xreadlink-with-size.
45527
45528 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45529
45530         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
45531         method that I hope also handles the double-include problem noted
45532         by Bruno Haible in
45533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
45534
45535 2007-06-23  Bruno Haible  <bruno@clisp.org>
45536
45537         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45538         Don't let the 'mostlyclean' target fail if the last subdirectory could
45539         not be removed.
45540         Reported by Karl Berry.
45541
45542 2007-06-23  Bruno Haible  <bruno@clisp.org>
45543
45544         * gnulib-tool (echo): Add a speedier workaround for ksh.
45545         * tests/test-echo.sh: Likewise.
45546
45547 2007-06-23  Bruno Haible  <bruno@clisp.org>
45548
45549         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
45550         * tests/test-echo.sh: Likewise.
45551
45552 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45553
45554         * gnulib-tool (IFS): Initialize early, so we don't set it to
45555         empty later.
45556         (self_abspathname): Rewrite algorithm to set it, reindent.
45557         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
45558         (func_create_megatestdir): Merge some sed scripts.
45559
45560 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45561
45562         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
45563         exposed by Sun Studio 11 cc on Solaris 8.
45564
45565 2007-06-22  Bruno Haible  <bruno@clisp.org>
45566
45567         * gnulib-tool (echo): Ensure the echo primitive does not interpret
45568         backslashes.
45569         * tests/test-echo.sh: New file.
45570
45571 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45572
45573         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
45574         simplify `sed_replace_build_aux' scripts, they are portable but
45575         echoing them with `echo' is not.
45576         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
45577
45578 2007-06-21  Karl Berry  <karl@gnu.org>
45579
45580         * config/srclist.txt: guess we can't handle the licenses via
45581         srclist at the moment.
45582
45583 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45584
45585         * MODULES.html.sh: Add include_next.
45586         * modules/include_next: New file.
45587
45588 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45589
45590         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
45591         INCLUDE_NEXT.
45592         (gl_CHECK_NEXT_HEADERS): New macro.
45593         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
45594         the obsolescent gl_ABSOLUTE_HEADER.
45595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
45596         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
45597         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
45598         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45599         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45600         * m4/math_h.m4 (gl_MATH_H): Likewise.
45601         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45602         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
45603         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45604         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45605         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
45606         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
45607         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
45608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45611         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
45612         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45613         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45614         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45615         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45616         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45617         * m4/inttypes.m4 (gl_INTTYPES_H): Define
45618         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
45619         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
45620         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
45621         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
45622         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
45623         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
45624         * lib/float_.h: Likewise.
45625         * lib/inttypes_.h: Likewise.
45626         * lib/math_.h: Likewise.
45627         * lib/search_.h: Likewise.
45628         * lib/signal_.h: Likewise.
45629         * lib/stdint_.h: Likewise.
45630         * lib/stdio_.h: Likewise.
45631         * lib/stdlib_.h: Likewise.
45632         * lib/string_.h: Likewise.
45633         * lib/sys_stat_.h: Likewise.
45634         * lib/sys_time_.h: Likewise.
45635         * lib/time_.h: Likewise.
45636         * lib/unistd_.h: Likewise.
45637         * lib/wchar_.h: Likewise.
45638         * lib/wctype_.h: Likewise.
45639         * lib/dirent_.h: Likewise.
45640         * lib/iconv_.h: Likewise.
45641         * lib/locale_.h: Likewise.
45642         * lib/netinet_in_.h: Likewise.
45643         * lib/sys_select_.h: Likewise.
45644         * lib/sys_socket_.h: Likewise.
45645         * lib/sysexits_.h: Likewise.
45646         * modules/fcntl (Depends-on): Depend on include_next, not
45647         absolute_header.
45648         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
45649         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
45650         * modules/fchdir: Likewise.
45651         * modules/float: Likewise.
45652         * modules/iconv_open: Likewise.
45653         * modules/inttypes: Likewise.
45654         * modules/locale: Likewise.
45655         * modules/math: Likewise.
45656         * modules/netinet_in: Likewise.
45657         * modules/search: Likewise.
45658         * modules/signal: Likewise.
45659         * modules/stdint: Likewise.
45660         * modules/stdio: Likewise.
45661         * modules/stdlib: Likewise.
45662         * modules/string: Likewise.
45663         * modules/sys_select: Likewise.
45664         * modules/sys_socket: Likewise.
45665         * modules/sys_stat: Likewise.
45666         * modules/sys_time: Likewise.
45667         * modules/sysexits: Likewise.
45668         * modules/time: Likewise.
45669         * modules/unistd: Likewise.
45670         * modules/wchar: Likewise.
45671         * modules/wctype: Likewise.
45672         * modules/sys_stat: Change maintainer to "all".
45673         * modules/unistd: Likewise.
45674
45675 2007-06-20  Karl Berry  <karl@gnu.org>
45676
45677         * config/srclist.txt: track www changes in license files.
45678
45679 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
45680
45681         * build-aux/bootstrap: Remove stray dot.
45682         Make sure build_aux settings are honored when linking
45683         gnulib_extra_files.
45684
45685 2007-06-19  Eric Blake  <ebb9@byu.net>
45686
45687         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45688         Allow compilation on cygwin.
45689
45690 2007-06-19  Jim Meyering  <jim@meyering.net>
45691
45692         xreadlink-with-size: Remove module.  No longer used.
45693         Ex-callers now use xreadlink or mreadlink-with-size.
45694         * modules/xreadlink-with-size: Remove module.
45695         * lib/xreadlink-with-size.c: Remove file.
45696         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
45697         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
45698         just before the function definition *is* accurate.
45699
45700         Eliminate one way canonicalize_filename_mode could exit.
45701         * lib/canonicalize.c (canonicalize_filename_mode):
45702         Use mreadlink_with_size, not xreadlink_with_size.
45703
45704 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
45705
45706         Detect porting problems to FreeBSD/arm, which has time_t wider than
45707         long int.  Original problem reported for GNU diff by Xin Li in
45708         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
45709         * modules/getdate (Depends-on): Add intprops, verify.
45710         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
45711         is an integer type no wider than long int.
45712
45713 2007-06-18  Jim Meyering  <jim@meyering.net>
45714
45715         New module: mreadlink-with-size.
45716         * MODULES.html.sh: Add mreadlink-with-size.
45717         * modules/mreadlink-with-size: New module
45718         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
45719         not xreadlink-with-size.
45720         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
45721
45722 2007-06-16  Bruno Haible  <bruno@clisp.org>
45723
45724         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
45725         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
45726         Reported by Gary V. Vaughan <gary@gnu.org>.
45727
45728 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
45729
45730         Revamp lchown so that it lives in unistd.h where it belongs.
45731         * lib/lchown.h: Remove.
45732         * lib/dirchownmod.c: Don't include lib/lchown.h.
45733         * lib/fchownat.c: Likewise.
45734         * lib/openat.c: Likewise.
45735         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
45736         does not follow symlinks.
45737         (EOPNOTSUPP): Define if not defined.
45738         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
45739         is defined to 0.
45740         (lchown): New decl.
45741         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
45742         Do not check for lchown decl.
45743         Set REPLACE_LCHOWN.
45744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
45745         REPLACE_LCHOWN.
45746         * modules/chown: Make it clear it follows symlinks.
45747         * modules/lchown: Make it clear it doesn't follow symlinks.
45748         (Files): Remove lib/lchown.h
45749         (Depends-on): Add unistd.
45750         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
45751         (Include): Include <unistd.h>, not "lchown.h".
45752         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
45753         REPLACE_LCHOWN.
45754
45755 2007-06-15  Jim Meyering  <jim@meyering.net>
45756
45757         Change license (GPL to LGPL) of fsusage and dependents.
45758         * modules/fsusage (License): Change to LGPL.
45759         * modules/full-read (License): Likewise.
45760         * modules/full-write (License): Likewise.
45761         * modules/safe-read (License): Likewise.
45762         * modules/safe-write (License): Likewise.
45763
45764 2007-06-14  Ben Pfaff  <blp@gnu.org>
45765
45766         Missing part of allocsa -> malloca transition.
45767         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
45768         gl_MALLOCA.
45769
45770 2007-06-12  Bruno Haible  <bruno@clisp.org>
45771
45772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
45773         to ia64, x86_64, i386.
45774         Reported by Eric Blake.
45775
45776 2007-06-12  Bruno Haible  <bruno@clisp.org>
45777
45778         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
45779         cross-compiling to x86_64.
45780
45781 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
45782
45783         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
45784         glitch reported by Ralf Wildenhues in
45785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
45786
45787         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
45788         Vin Shelton.
45789
45790 2007-06-11  Bruno Haible  <bruno@clisp.org>
45791
45792         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
45793         replacement string.
45794         Reported by Eric Blake.
45795
45796 2007-06-10  Bruno Haible  <bruno@clisp.org>
45797
45798         Prepare vasnprintf code for use with Unicode strings.
45799         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
45800         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
45801         TYPE_U32_STRING.
45802         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
45803         a_u32_string variants.
45804         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45805         * lib/printf-args.c: Don't include config.h and the specification
45806         header if PRINTF_FETCHARGS is already defined.
45807         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45808         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
45809         TYPE_U16_STRING, TYPE_U32_STRING.
45810         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
45811         u16_directive, u16_directives, u32_directive, u32_directives): New
45812         types.
45813         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
45814         New declarations.
45815         * lib/printf-parse.c: Don't include config.h and the specification
45816         header if PRINTF_PARSE is already defined. Eliminate the set of
45817         parameters for WIDE_CHAR_VERSION; the user of this file must provide
45818         them now. Include c-ctype.h.
45819         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
45820         directive and CHAR_T_ONLY_ASCII.
45821         * lib/vasnprintf.c: Don't include config.h and the specification header
45822         if VASNPRINTF is already defined.
45823         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
45824         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
45825         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
45826         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
45827         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
45828         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
45829         code accordingly.
45830         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
45831         pad_ourselves also in this case, with the 'c' and 's' directives, and
45832         with a different notion of "width".
45833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
45834
45835 2007-06-10  Bruno Haible  <bruno@clisp.org>
45836
45837         * modules/unistr/u32-mbsnlen: New file.
45838         * lib/unistr/u32-mbsnlen.c: New file.
45839
45840         * modules/unistr/u16-mbsnlen: New file.
45841         * lib/unistr/u16-mbsnlen.c: New file.
45842
45843         * modules/unistr/u8-mbsnlen: New file.
45844         * lib/unistr/u8-mbsnlen.c: New file.
45845
45846         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
45847         declarations.
45848
45849 2007-06-10  Bruno Haible  <bruno@clisp.org>
45850
45851         * lib/string_.h (mbsnlen): New declaration.
45852         * lib/mbsnlen.c: New file.
45853         * m4/mbsnlen.m4: New file.
45854         * modules/mbsnlen: New file.
45855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
45856         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
45857         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
45858
45859 2007-06-10  Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
45862
45863 2007-06-10  Bruno Haible  <bruno@clisp.org>
45864
45865         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
45866         * lib/mbuiter.h: Likewise.
45867
45868 2007-06-10  Bruno Haible  <bruno@clisp.org>
45869
45870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
45871         declaration.
45872
45873 2007-06-10  Karl Berry  <karl@gnu.org>
45874
45875         * config/srclist.txt: remove gettext entries, Bruno prefers
45876         to update individually.
45877
45878 2007-06-10  Bruno Haible  <bruno@clisp.org>
45879
45880         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
45881         'maxlen'. Ensure only length + width bytes are allocated, not
45882         length + 1 + width.
45883
45884 2007-06-09  Bruno Haible  <bruno@clisp.org>
45885
45886         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
45887         (CHAR_T): Remove macro.
45888         (VASNPRINTF): Update.
45889
45890 2007-06-09  Bruno Haible  <bruno@clisp.org>
45891
45892         * MODULES.html.sh (Unicode string functions): Add the new modules.
45893
45894         * modules/uniconv/u32-conv-to-enc: New file.
45895         * lib/uniconv/u32-conv-to-enc.c: New file.
45896         * modules/uniconv/u32-conv-to-enc-tests: New file.
45897         * tests/uniconv/test-u32-conv-to-enc.c: New file.
45898
45899         * modules/uniconv/u16-conv-to-enc: New file.
45900         * lib/uniconv/u16-conv-to-enc.c: New file.
45901         * lib/uniconv/u-conv-to-enc.h: New file.
45902         * modules/uniconv/u16-conv-to-enc-tests: New file.
45903         * tests/uniconv/test-u16-conv-to-enc.c: New file.
45904
45905         * modules/uniconv/u8-conv-to-enc: New file.
45906         * lib/uniconv/u8-conv-to-enc.c: New file.
45907         * modules/uniconv/u8-conv-to-enc-tests: New file.
45908         * tests/uniconv/test-u8-conv-to-enc.c: New file.
45909
45910         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45911         u32_conv_to_encoding): New declarations.
45912
45913 2007-06-09  Bruno Haible  <bruno@clisp.org>
45914
45915         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
45916
45917 2007-06-09  Bruno Haible  <bruno@clisp.org>
45918
45919         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
45920         * modules/malloca: Renamed from modules/allocsa, updated.
45921         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
45922         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
45923         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
45924         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
45925         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
45926         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
45927         * modules/xmalloca: Renamed from modules/xallocsa, updated.
45928         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
45929         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
45930         * modules/c-strcasestr (Depends-on): Update.
45931         * lib/c-strcasestr.c: Update.
45932         * modules/c-strstr (Depends-on): Update.
45933         * lib/c-strstr.c: Update.
45934         * modules/canonicalize-lgpl (Depends-on): Update.
45935         * lib/canonicalize-lgpl.c: Update.
45936         * modules/clean-temp (Depends-on): Update.
45937         * lib/clean-temp.c: Update.
45938         * modules/csharpcomp (Depends-on): Update.
45939         * lib/csharpcomp.c: Update.
45940         * modules/csharpexec (Depends-on): Update.
45941         * lib/csharpexec.c: Update.
45942         * modules/javacomp (Depends-on): Update.
45943         * lib/javacomp.c: Update.
45944         * modules/javaexec (Depends-on): Update.
45945         * lib/javaexec.c: Update.
45946         * modules/mbscasestr (Depends-on): Update.
45947         * lib/mbscasestr.c: Update.
45948         * modules/mbsstr (Depends-on): Update.
45949         * lib/mbsstr.c: Update.
45950         * modules/setenv (Depends-on): Update.
45951         * lib/setenv.c: Update.
45952         * modules/strcasestr (Depends-on): Update.
45953         * lib/strcasestr.c: Update.
45954         * modules/striconveha (Depends-on): Update.
45955         * lib/striconveha.c: Update.
45956         * modules/relocatable-prog-wrapper (Files): Update.
45957         * lib/relocwrapper.c: Update.
45958         * build-aux/install-reloc: Update.
45959         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
45960
45961 2007-06-08  Bruno Haible  <bruno@clisp.org>
45962
45963         Port to uClibc.
45964         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
45965         * lib/fpurge.c (fpurge): Likewise.
45966         * lib/freading.c (freading): Likewise.
45967         * lib/fseeko.c (rpl_fseeko): Likewise.
45968         * lib/fseterr.c (fseterr): Likewise.
45969         * lib/fwriting.c (fwriting): Likewise.
45970         * tests/test-fflush.c (main): Avoid a failure on uClibc.
45971
45972 2007-06-08  Bruno Haible  <bruno@clisp.org>
45973
45974         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
45975         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
45976         * modules/gettext (Files): Add m4/intlmacosx.m4.
45977
45978 2007-06-07  Bruno Haible  <bruno@clisp.org>
45979
45980         * modules/localename-tests: New file.
45981         * tests/test-localename.c: New file.
45982
45983         New module 'localename'.
45984         * lib/localename.h: New file.
45985         * lib/localename.c: New file, from GNU gettext.
45986         * m4/localename.m4: New file.
45987         * modules/localename: New file.
45988
45989 2007-06-07  Bruno Haible  <bruno@clisp.org>
45990
45991         Work around the lack of <wchar.h> on some builds of uClibc.
45992         * doc/headers/wchar.texi: Update.
45993         * lib/wchar_.h: Include <wchar.h> only if it exists.
45994         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
45995         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
45996         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
45997         doesn't exist.
45998         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
45999         * modules/mbfile (Depends-on): Add wchar.
46000         * modules/mbiter (Depends-on): Likewise.
46001         * modules/mbuiter (Depends-on): Likewise.
46002         Reported by Simon Josefsson.
46003
46004 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46005
46006         Work around problem reported by Steven M. Schweda in
46007         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
46008         Tru64 5.1B with the Compaq compiler environment installed declares
46009         an 'isblank' function but does not define it in the C library.
46010         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
46011         * lib/regex_internal.h (isblank): Likewise.
46012         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
46013         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46014
46015 2007-06-05  Bruno Haible  <bruno@clisp.org>
46016
46017         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
46018         ia64.
46019         * modules/printf-safe: New file.
46020         * modules/fprintf-posix (Depends-on): Add printf-safe.
46021         * modules/printf-posix (Depends-on): Likewise.
46022         * modules/snprintf-posix (Depends-on): Likewise.
46023         * modules/sprintf-posix (Depends-on): Likewise.
46024         * modules/vasnprintf-posix (Depends-on): Likewise.
46025         * modules/vasprintf-posix (Depends-on): Likewise.
46026         * modules/vfprintf-posix (Depends-on): Likewise.
46027         * modules/vprintf-posix (Depends-on): Likewise.
46028         * modules/vsnprintf-posix (Depends-on): Likewise.
46029         * modules/vsprintf-posix (Depends-on): Likewise.
46030         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46031         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
46032         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
46033         "no" on i386, x86_64, ia64.
46034         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
46035         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46036         on i386, x86_64, ia64.
46037         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
46038         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46039         on i386, x86_64, ia64.
46040         * tests/test-vasnprintf-posix.c: Include float.h.
46041         (LDBL80_WORDS): New macro.
46042         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46043         on i386, x86_64, ia64.
46044         * tests/test-vasprintf-posix.c: Include float.h.
46045         (LDBL80_WORDS): New macro.
46046         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46047         on i386, x86_64, ia64.
46048         * tests/test-snprintf-posix.c: Include float.h.
46049         * tests/test-sprintf-posix.c: Likewise.
46050         * tests/test-vsnprintf-posix.c: Likewise.
46051         * tests/test-vsprintf-posix.c: Likewise.
46052
46053 2007-06-05  Bruno Haible  <bruno@clisp.org>
46054
46055         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
46056         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
46057         non-IEEE numbers on i386, x86_64, ia64.
46058         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
46059         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
46060         * tests/test-isnanl.h: Include float.h.
46061         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
46062
46063 2007-06-05  Bruno Haible  <bruno@clisp.org>
46064
46065         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
46066         also the %a / %A. Handle the %a / %A code before this extra handling.
46067
46068 2007-06-05  Bruno Haible  <bruno@clisp.org>
46069
46070         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
46071         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
46072
46073 2007-06-05  Bruno Haible  <bruno@clisp.org>
46074
46075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
46076         typo in variable name.
46077
46078 2007-06-05  Eric Blake  <ebb9@byu.net>
46079
46080         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
46081         Reported by Simon Josefsson.
46082
46083 2007-06-04  Bruno Haible  <bruno@clisp.org>
46084
46085         Avoid test failures on some PowerPC platforms.
46086         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
46087         Define differently for PowerPC.
46088         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
46089         Reported by Gary V. Vaughan <gary@gnu.org>.
46090
46091 2007-06-02  Bruno Haible  <bruno@clisp.org>
46092
46093         Fix test-stdint failure on FreeBSD/ia64.
46094         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
46095         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
46096         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
46097         * doc/headers/stdint.texi: Update.
46098
46099 2007-06-01  Bruno Haible  <bruno@clisp.org>
46100
46101         * tests/test-binary-io.c (main): Pass a third argument to open().
46102         Reported by Gary V. Vaughan <gary@gnu.org>.
46103
46104 2007-06-01  Bruno Haible  <bruno@clisp.org>
46105
46106         * doc/functions/frexpl.texi: Update for mingw.
46107
46108 2007-06-01  Bruno Haible  <bruno@clisp.org>
46109
46110         * tests/test-lseek.c (main): Disable test of errno for invalid third
46111         argument.
46112         * doc/functions/lseek.texi: Update.
46113         Reported by Gary V. Vaughan <gary@gnu.org>.
46114
46115 2007-05-28  Bruno Haible  <bruno@clisp.org>
46116
46117         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
46118
46119 2007-05-31  Eric Blake  <ebb9@byu.net>
46120
46121         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46122         cross compiling.
46123
46124 2007-05-30  Eric Blake  <ebb9@byu.net>
46125         and Bruno Haible  <bruno@clisp.org>
46126
46127         Work around mingw test failures exposed by m4-1.4.9b.
46128         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46129         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46130         moment.
46131
46132 2007-05-30  Bruno Haible  <bruno@clisp.org>
46133
46134         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
46135         assuming that they are closed. Needed on HP-UX 11.
46136
46137 2007-05-29  Bruno Haible  <bruno@clisp.org>
46138
46139         Fix a problem with #include_next.
46140         * lib/dirent_.h: Split the double-inclusion guard.
46141         * lib/fcntl_.h: Likewise.
46142         * lib/float_.h: Likewise.
46143         * lib/iconv_.h: Likewise.
46144         * lib/inttypes_.h: Likewise.
46145         * lib/locale_.h: Likewise.
46146         * lib/math_.h: Likewise.
46147         * lib/netinet_in_.h: Likewise.
46148         * lib/search_.h: Likewise.
46149         * lib/signal_.h: Likewise.
46150         * lib/stdint_.h: Likewise.
46151         * lib/stdio_.h: Likewise.
46152         * lib/stdlib_.h: Likewise.
46153         * lib/string_.h: Likewise.
46154         * lib/sys_select_.h: Likewise.
46155         * lib/sys_socket_.h: Likewise.
46156         * lib/sys_stat_.h: Likewise.
46157         * lib/sys_time_.h: Likewise.
46158         * lib/sysexits_.h: Likewise.
46159         * lib/time_.h: Likewise.
46160         * lib/unistd_.h: Likewise.
46161         * lib/wchar_.h: Likewise.
46162         * lib/wctype_.h: Likewise.
46163
46164 2007-05-29  Bruno Haible  <bruno@clisp.org>
46165
46166         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
46167         for the moment.
46168
46169 2007-05-29  Bruno Haible  <bruno@clisp.org>
46170
46171         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
46172         invocation.
46173         Reported by Eric Blake.
46174
46175 2007-05-29  Bruno Haible  <bruno@clisp.org>
46176
46177         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
46178         compiling case.
46179
46180 2007-05-29  Eric Blake  <ebb9@byu.net>
46181             Bruno Haible  <bruno@clisp.org>
46182
46183         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
46184         cross compiles.
46185
46186 2007-05-28  Eric Blake  <ebb9@byu.net>
46187
46188         * modules/closein-tests (test_closein_LDADD): Support test on
46189         cygwin with libtool.
46190
46191 2007-05-28  Bruno Haible  <bruno@clisp.org>
46192
46193         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
46194         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46195         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46196         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46197         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46198         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46199         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46200         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46201         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46202
46203 2007-05-28  Eric Blake  <ebb9@byu.net>
46204
46205         Unconditionally include <config.h> in unit tests.
46206         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
46207         * tests/test-allocsa.c, tests/test-arcfour.c,
46208         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
46209         tests/test-array_list.c, tests/test-array_oset.c,
46210         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
46211         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
46212         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
46213         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
46214         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
46215         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
46216         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
46217         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
46218         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
46219         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
46220         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
46221         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
46222         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
46223         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
46224         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
46225         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
46226         test-md5.c, test-memmem.c, test-printf-posix.c,
46227         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
46228         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
46229         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
46230         test-strcasestr.c, test-striconv.c, test-striconveh.c,
46231         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
46232         test-vasnprintf-posix2.c, test-vasnprintf.c,
46233         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
46234         test-vfprintf-posix.c, test-vprintf-posix.c,
46235         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
46236         test-xvasprintf.c: Likewise.
46237
46238 2007-05-28  Bruno Haible  <bruno@clisp.org>
46239
46240         * gnulib-tool (func_import): Remember the --with-tests command-line
46241         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
46242         Reported by Eric Blake.
46243
46244 2007-05-28  Bruno Haible  <bruno@clisp.org>
46245
46246         * modules/ftell-tests: New file.
46247         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
46248         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
46249
46250         * lib/ftell.c: New file.
46251         * modules/ftell: New file.
46252         * m4/ftell.m4: New file.
46253         * doc/functions/ftell.texi: Update.
46254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
46255         REPLACE_FTELL.
46256         * lib/stdio_.h (rpl_ftell): New declaration.
46257         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
46258         REPLACE_FTELL.
46259
46260 2007-05-28  Eric Blake  <ebb9@byu.net>
46261
46262         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
46263
46264 2007-05-28  Bruno Haible  <bruno@clisp.org>
46265
46266         * modules/fseek-tests: New file.
46267         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
46268         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
46269
46270         * lib/fseek.c: New file.
46271         * modules/fseek: New file.
46272         * m4/fseek.m4: New file.
46273         * doc/functions/fseek.texi: Update.
46274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
46275         REPLACE_FSEEK.
46276         * lib/stdio_.h (rpl_fseek): New declaration.
46277         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
46278         REPLACE_FSEEK.
46279
46280 2007-05-28  Bruno Haible  <bruno@clisp.org>
46281
46282         * lib/stdio_.h (fflush): More comments.
46283
46284 2007-05-28  Bruno Haible  <bruno@clisp.org>
46285
46286         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
46287         runtime test.
46288
46289 2007-05-28  Eric Blake  <ebb9@byu.net>
46290
46291         Improve lseek module.
46292         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
46293         * lib/unistd_.h (lseek): Scale back link warning message.
46294         * tests/test-lseek.c: Beef up test.
46295         * tests/test-lseek.sh: Exercise more facets of lseek.
46296         Reported by Bruno Haible.
46297
46298 2007-05-28  Bruno Haible  <bruno@clisp.org>
46299
46300         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
46301         to define.
46302
46303 2007-05-27  Bruno Haible  <bruno@clisp.org>
46304
46305         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
46306
46307 2007-05-27  Bruno Haible  <bruno@clisp.org>
46308
46309         * modules/openmp: New file.
46310         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
46311         Noah Misch.
46312
46313 2007-05-26  Bruno Haible  <bruno@clisp.org>
46314
46315         * modules/chdir-long (Depends-on): Add fchdir.
46316         * modules/chdir-safer (Depends-on): Likewise.
46317         * modules/fts (Depends-on): Likewise.
46318         * modules/fts-lgpl (Depends-on): Likewise.
46319         * modules/openat (Depends-on): Likewise.
46320         * modules/savewd (Depends-on): Likewise.
46321
46322 2007-05-24  Eric Blake  <ebb9@byu.net>
46323
46324         Fix lseek on mingw.
46325         * modules/lseek: New module.
46326         * m4/lseek.m4: New file.
46327         * lib/lseek.c: New file.
46328         * modules/lseek-tests: New file.
46329         * tests/test-lseek.c: New file.
46330         * tests/test-lseek.sh: New file.
46331         * MODULES.html.sh: Document lseek module.
46332         * modules/fflush (Depends-on): Add lseek, fseeko.
46333         * modules/fseeko (Depends-on): Likewise.
46334         * modules/ftello (Depends-on): Likewise.
46335         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46336         broken.
46337         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46338         broken.
46339         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46340         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46341         * lib/ftello.c (rpl_ftello): Likewise.
46342         * tests/test-fseeko.c (main): Test this.
46343         * tests/test-fseeko.sh: Likewise.
46344         * tests/test-ftello.c (main): Likewise.
46345         * tests/test-ftello.sh: Likewise.
46346         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46347         implies replacing fseek.
46348         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46349         HAVE_FTELLO.
46350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46351         * modules/unistd (Makefile.am): Likewise.
46352         * lib/unistd_.h (lseek): Declare a replacement.
46353         * doc/functions/lseek.texi (lseek): Document this fix.
46354         * doc/functions/fseek.texi (fseek): Likewise.
46355         * doc/functions/ftell.texi (ftell): Likewise.
46356
46357 2007-05-24  Bruno Haible  <bruno@clisp.org>
46358
46359         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
46360         in the printed representation of a NaN.
46361         * tests/test-vasprintf-posix.c (test_function): Likewise.
46362         * tests/test-snprintf-posix.h (test_function): Likewise.
46363         * tests/test-sprintf-posix.h (test_function): Likewise.
46364         Reported by Eric Blake.
46365
46366 2007-05-23  Eric Blake  <ebb9@byu.net>
46367
46368         Fix fseeko/ftello on cygwin 1.5.24.
46369         * doc/functions/fseeko.texi (fseeko): Document the fix.
46370         * doc/functions/ftello.texi (ftello): Document the fix.
46371         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
46372         * doc/functions/stdout.text (stdout): New file.
46373         * doc/functions/stderr.text (stderr): New file.
46374         * doc/gnulib.texi (Function Substitutes): Use new files.
46375         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
46376         prior to 1.7.0.
46377         * tests/test-ftello.c (main): Likewise for ftello.
46378         * tests/test-fseeko.sh: New file.
46379         * tests/test-ftello.sh: New file.
46380         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
46381         with seekable stdin.
46382         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
46383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
46384         (gl_REPLACE_FSEEKO): New macro.
46385         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
46386         * modules/fseeko (Files): Distribute fseeko.c.
46387         * modules/ftello (Files): Distribute ftello.c.
46388         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
46389         mode.
46390         * lib/ftello.c (rpl_ftello): New file.
46391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
46392         fseeko, ftello.
46393         (gl_STDIN_LARGE_OFFSET): New macro.
46394         * modules/stdio (Makefile.am): Perform the replacement.
46395         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
46396
46397 2007-05-23  Bruno Haible  <bruno@clisp.org>
46398
46399         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
46400         GNULIB_POSIXCHECK is defined.
46401
46402 2007-05-21  Bruno Haible  <bruno@clisp.org>
46403
46404         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
46405         Check also the output for NaN arguments. When cross-compiling, guess
46406         no on IRIX.
46407         * lib/vasnprintf.c: Update comments.
46408         * tests/test-vasnprintf-posix.c (strisnan): New function.
46409         (test_function): Use it.
46410         * tests/test-vasprintf-posix.c (strisnan): New function.
46411         (test_function): Use it.
46412         * tests/test-snprintf-posix.h (strisnan): New function.
46413         (test_function): Use it.
46414         * tests/test-sprintf-posix.h (strisnan): New function.
46415         (test_function): Use it.
46416         Reported by Eric Blake.
46417
46418 2007-05-20  Bruno Haible  <bruno@clisp.org>
46419
46420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
46421         numbers that fails on BeOS.
46422         * doc/functions/frexpl.texi: Update.
46423
46424 2007-05-20  Jim Meyering  <jim@meyering.net>
46425
46426         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
46427         forced upon us by glibc-2.6.
46428
46429 2007-05-20  Bruno Haible  <bruno@clisp.org>
46430
46431         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
46432         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
46433         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
46434         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
46435         NEED_PRINTF_INFINITE.
46436         (is_infinitel): New function.
46437         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
46438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
46439         gl_PREREQ_VASNPRINTF_INFINITE.
46440         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
46441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46442         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
46443         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
46444         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
46445         gl_PREREQ_VASNPRINTF_INFINITE.
46446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46447         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46450         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46451         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46452         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46453         * doc/functions/fprintf.texi: Update.
46454         * doc/functions/printf.texi: Update.
46455         * doc/functions/snprintf.texi: Update.
46456         * doc/functions/sprintf.texi: Update.
46457         * doc/functions/vfprintf.texi: Update.
46458         * doc/functions/vprintf.texi: Update.
46459         * doc/functions/vsnprintf.texi: Update.
46460         * doc/functions/vsprintf.texi: Update.
46461
46462 2007-05-20  Bruno Haible  <bruno@clisp.org>
46463
46464         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
46465         was not found in libc.
46466         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46467
46468 2007-05-20  Bruno Haible  <bruno@clisp.org>
46469
46470         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46471         printed as "-nan" instead of "nan".
46472         * tests/test-vasprintf-posix.c (test_function): Likewise.
46473         * tests/test-snprintf-posix.h (test_function): Likewise.
46474         * tests/test-sprintf-posix.h (test_function): Likewise.
46475         Needed for HP-UX 11.
46476
46477 2007-05-20  Jim Meyering  <jim@meyering.net>
46478
46479         Fix buggy test for the fchownat-deref bug.
46480         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46481         symlink required for the run-test.  Without it, this test would
46482         always declare that fchownat doesn't work, and client code would
46483         unnecessarily use the replacement function with fixed libc.
46484         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46485         Reported by Greg Schafer.
46486
46487 2007-05-19  Bruno Haible  <bruno@clisp.org>
46488
46489         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46490         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46491         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46492         Needed for IRIX 6.5 and Solaris 2.5.1.
46493
46494 2007-05-19  Bruno Haible  <bruno@clisp.org>
46495
46496         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46497         (test_function): Skip tests involving -0.0 on platforms where
46498         -0.0 = 0.0.
46499         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46500         (test_function): Skip tests involving -0.0 on platforms where
46501         -0.0 = 0.0.
46502         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46503         (test_function): Skip tests involving -0.0 on platforms where
46504         -0.0 = 0.0.
46505         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46506         (test_function): Skip tests involving -0.0 on platforms where
46507         -0.0 = 0.0.
46508         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
46509         tests.
46510         * tests/test-printf-posix.h (test_function): Likewise.
46511         * tests/test-printf-posix.output: Remove all -0.0 related results.
46512         Needed for IRIX 6.5.
46513
46514 2007-05-19  Bruno Haible  <bruno@clisp.org>
46515
46516         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46517         printed as "nan0x7fffffff" instead of "nan".
46518         * tests/test-vasprintf-posix.c (test_function): Likewise.
46519         * tests/test-snprintf-posix.h (test_function): Likewise.
46520         * tests/test-sprintf-posix.h (test_function): Likewise.
46521         * tests/test-fprintf-posix.h (NaN): Remove macro.
46522         (test_function): Remove all NaN related tests.
46523         * tests/test-printf-posix.h (NaN): Remove macro.
46524         (test_function): Remove all NaN related tests.
46525         * tests/test-printf-posix.output: Remove all NaN related results.
46526         Needed for IRIX 6.5.
46527
46528 2007-05-19  Bruno Haible  <bruno@clisp.org>
46529
46530         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
46531         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46532
46533 2007-05-19  Bruno Haible  <bruno@clisp.org>
46534
46535         * lib/float_.h: New file.
46536         * m4/float_h.m4: New file.
46537         * modules/float: New file.
46538         * modules/isnanl (Dependencies): Add float.
46539         * modules/isnanl-nolibm (Dependencies): Likewise.
46540         * modules/mathl (Dependencies): Likewise.
46541         * modules/printf-frexpl (Dependencies): Likewise.
46542         * modules/signbit (Dependencies): Likewise.
46543         * modules/vasnprintf (Dependencies): Likewise.
46544         * doc/headers/float.texi: Update.
46545
46546 2007-05-19  Jim Meyering  <jim@meyering.net>
46547
46548         * lib/utimens.c (gl_futimens): Rename from futimens,
46549         now that glibc-2.6 declares futimens.
46550         * lib/utimens.h: Likewise.
46551
46552 2007-05-19  Bruno Haible  <bruno@clisp.org>
46553
46554         Avoid test failures on mingw.
46555         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
46556         * tests/test-printf-posix.sh: Likewise.
46557         * tests/test-vfprintf-posix.sh: Likewise.
46558         * tests/test-vprintf-posix.sh: Likewise.
46559
46560 2007-05-19  Bruno Haible  <bruno@clisp.org>
46561
46562         Fix *printf result for NaN, Inf, -0.0 on mingw.
46563         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
46564         * lib/vasnprintf.c: Include math.h and isnan.h.
46565         (is_infinite_or_zero): New function.
46566         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
46567         values in the %f, %F, %e, %E, %g, %G directives.
46568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
46569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46570         gl_PRINTF_INFINITE and test its result. Invoke
46571         gl_PREREQ_VASNPRINTF_INFINITE.
46572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46579         * doc/functions/fprintf.texi: Update.
46580         * doc/functions/printf.texi: Update.
46581         * doc/functions/snprintf.texi: Update.
46582         * doc/functions/sprintf.texi: Update.
46583         * doc/functions/vfprintf.texi: Update.
46584         * doc/functions/vprintf.texi: Update.
46585         * doc/functions/vsnprintf.texi: Update.
46586         * doc/functions/vsprintf.texi: Update.
46587
46588 2007-05-19  Bruno Haible  <bruno@clisp.org>
46589
46590         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
46591         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
46592         Instead of multiplying with 10^k, set extra_zeroes to k.
46593         (scale10_round_long_double): Remove function.
46594
46595 2007-05-18  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
46598         introduced on 2007-05-06.
46599
46600 2007-05-18  Bruno Haible  <bruno@clisp.org>
46601
46602         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
46603         %g directives.
46604         * tests/test-vasprintf-posix.c (test_function): Likewise.
46605         * tests/test-snprintf-posix.h (test_function): Likewise.
46606         * tests/test-sprintf-posix.h (test_function): Likewise.
46607
46608 2007-05-18  Bruno Haible  <bruno@clisp.org>
46609
46610         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
46611         (strmatch): New function.
46612         (test_function): Test the %f directive on numbers of various exponents.
46613         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
46614         (strmatch): New function.
46615         (test_function): Test the %f directive on numbers of various exponents.
46616         * tests/test-snprintf-posix.h (strmatch): New function.
46617         (test_function): Test the %f directive on numbers of various exponents.
46618         * tests/test-sprintf-posix.h (strmatch): New function.
46619         (test_function): Test the %f directive on numbers of various exponents.
46620         * tests/test-snprintf-posix.c (SIZEOF): New macro.
46621         * tests/test-sprintf-posix.c (SIZEOF): New macro.
46622         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
46623         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
46624
46625 2007-05-18  Bruno Haible  <bruno@clisp.org>
46626
46627         Add support for 'long double' number output.
46628         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
46629         * lib/vasnprintf.c: Include math.h and float+.h.
46630         (mp_limb_t): New type.
46631         (GMP_LIMB_BITS): New macro.
46632         (mp_twolimb_t): New type.
46633         (GMP_TWOLIMB_BITS): New macro.
46634         (mpn_t): New type.
46635         (multiply, divide, convert_to_decimal, decode_long_double,
46636         scale10_round_long_double, scale10_round_decimal_long_double,
46637         floorlog10l): New functions.
46638         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
46639         for the %f, %F, %e, %E, %g, %G directives.
46640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
46641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46642         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
46643         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
46644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46648         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46651         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
46652         * modules/snprintf-posix (Depends-on): Likewise.
46653         * modules/sprintf-posix (Depends-on): Likewise.
46654         * modules/vasnprintf-posix (Depends-on): Likewise.
46655         * modules/vasprintf-posix (Depends-on): Likewise.
46656         * modules/vfprintf-posix (Depends-on): Likewise.
46657         * modules/vsnprintf-posix (Depends-on): Likewise.
46658         * modules/vsprintf-posix (Depends-on): Likewise.
46659         * modules/vasnprintf (Files): Add lib/float+.h.
46660         * doc/functions/fprintf.texi: Update.
46661         * doc/functions/printf.texi: Update.
46662         * doc/functions/snprintf.texi: Update.
46663         * doc/functions/sprintf.texi: Update.
46664         * doc/functions/vfprintf.texi: Update.
46665         * doc/functions/vprintf.texi: Update.
46666         * doc/functions/vsnprintf.texi: Update.
46667         * doc/functions/vsprintf.texi: Update.
46668
46669 2007-05-18  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
46672
46673 2007-05-18  Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
46676         for printing 64-bit integers. Needed for mingw.
46677
46678 2007-05-18  Bruno Haible  <bruno@clisp.org>
46679
46680         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46681         gl_FUNC_FREXPL_WORKS.
46682         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
46683
46684 2007-05-18  Bruno Haible  <bruno@clisp.org>
46685
46686         * modules/frexpl-nolibm-tests: New file.
46687
46688         * modules/frexpl-nolibm: New file.
46689         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
46690
46691 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46692
46693         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
46694         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46695         GCC 4.2, which otherwise issues a lot of warnings.
46696         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
46697         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
46698         Likewise.
46699         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
46700         * modules/iconv_open (iconv.h): Likewise.
46701         * modules/locale (locale.h): Likewise.
46702         * modules/netinet_in (netinet/in.h): Likewise.
46703         * modules/sys_select (sys_select.h): Likewise.
46704         * modules/sys_socket (sys/socket.h): Likewise.
46705         * modules/sys_stat (sys/stat.h): Likewise.
46706         * modules/sysexits (sysexits.h): Likewise.
46707         * modules/unistd (unistd.h): Likewise.
46708
46709 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46710
46711         * modules/closein-tests (Makefile.am): Distribute
46712         `test-closein.sh'.
46713
46714 2007-05-17  Bruno Haible  <bruno@clisp.org>
46715
46716         * tests/test-printf-posix.output: Renamed from
46717         tests/test-fprintf-posix.out.
46718         * modules/fprintf-posix-tests: Update.
46719         * modules/printf-posix-tests: Update.
46720         * modules/vfprintf-posix-tests: Update.
46721         * modules/vprintf-posix-tests: Update.
46722         * tests/test-fprintf-posix.sh: Update.
46723         * tests/test-printf-posix.sh: Update.
46724         * tests/test-vfprintf-posix.sh: Update.
46725         * tests/test-vprintf-posix.sh: Update.
46726         Reported by Ralf Wildenhues.
46727
46728 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46729
46730         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
46731         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46732         GCC 4.2, which otherwise issues a lot of warnings.
46733         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
46734         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
46735         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
46736         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
46737         it should no longer be needed.
46738         * lib/string_.h: Likewise.
46739         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
46740         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
46741         * modules/inttypes (inttypes.h): Likewise.
46742         * modules/math (math.h): Likewise.
46743         * modules/search (search.h): Likewise.
46744         * modules/signal (signal.h): Likewise.
46745         * modules/stdint (stdint.h): Likewise.
46746         * modules/stdio (stdio.h): Likewise.
46747         * modules/stdlib (stdlib.h): Likewise.
46748         * modules/string (string.h): Likewise.
46749         * modules/sys_time (sys/time.h): Likewise.
46750         * modules/time (time.h): Likewise.
46751         * modules/wchar (wchar.h): Likewise.
46752         * modules/wctype (wtype.h): Likewise.
46753
46754 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46755
46756         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
46757
46758 2007-05-13  Bruno Haible  <bruno@clisp.org>
46759
46760         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
46761         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46762         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
46763         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46764         (gl_PREREQ_STRTOK_R): Don't require it here.
46765
46766 2007-05-13  Bruno Haible  <bruno@clisp.org>
46767
46768         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
46769         when used in C++ mode.
46770
46771 2007-05-12  Bruno Haible  <bruno@clisp.org>
46772
46773         * lib/linebuffer.h: Tweak doc.
46774         * lib/linebuffer.c: Likewise.
46775
46776 2007-05-12  James Youngman  <jay@gnu.org>
46777
46778         * lib/linebuffer.c (readlinebuffer_delim): New function,
46779         like readlinebuffer, but use a caller-specified delimiter.
46780         (readlinebuffer): Just call readlinebuffer_delim with '\n'
46781         as the delimiter.
46782         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
46783
46784 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46785
46786         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
46787         * modules/openat (Files): Remove openat-die.c.
46788         (Depends-on): Add openat-die.
46789         * modules/openat-die: New module.
46790
46791 2007-05-06  Bruno Haible  <bruno@clisp.org>
46792
46793         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
46794         Update with info about Cygwin.
46795         * doc/functions/fprintf.texi: Update.
46796         * doc/functions/printf.texi: Update.
46797         * doc/functions/snprintf.texi: Update.
46798         * doc/functions/sprintf.texi: Update.
46799         * doc/functions/vfprintf.texi: Update.
46800         * doc/functions/vprintf.texi: Update.
46801         * doc/functions/vsnprintf.texi: Update.
46802         * doc/functions/vsprintf.texi: Update.
46803         Reported by Eric Blake.
46804
46805 2007-05-06  Bruno Haible  <bruno@clisp.org>
46806
46807         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
46808         padding ourselves for the floating-point directives.
46809         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
46810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
46811         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46812         gl_PRINTF_FLAG_ZERO and test its result. Invoke
46813         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
46814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46816         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46821         * tests/test-snprintf-posix.h (test_function): Also check the width
46822         and some flags in the %f directive.
46823         * tests/test-sprintf-posix.h (test_function): Likewise.
46824         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46825         * tests/test-vasprintf-posix.c (test_function): Likewise.
46826         * doc/functions/fprintf.texi: Update.
46827         * doc/functions/printf.texi: Update.
46828         * doc/functions/snprintf.texi: Update.
46829         * doc/functions/sprintf.texi: Update.
46830         * doc/functions/vfprintf.texi: Update.
46831         * doc/functions/vprintf.texi: Update.
46832         * doc/functions/vsnprintf.texi: Update.
46833         * doc/functions/vsprintf.texi: Update.
46834
46835 2007-05-06  Bruno Haible  <bruno@clisp.org>
46836
46837         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
46838         pass the ' flag character to sprintf or snprintf.
46839         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
46840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
46841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46842         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
46843         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
46844         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46851         * tests/test-snprintf-posix.h (test_function): Also check the grouping
46852         flag.
46853         * tests/test-sprintf-posix.h (test_function): Likewise.
46854         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46855         * tests/test-vasprintf-posix.c (test_function): Likewise.
46856         * doc/functions/fprintf.texi: Update.
46857         * doc/functions/printf.texi: Update.
46858         * doc/functions/snprintf.texi: Update.
46859         * doc/functions/sprintf.texi: Update.
46860         * doc/functions/vfprintf.texi: Update.
46861         * doc/functions/vprintf.texi: Update.
46862         * doc/functions/vsnprintf.texi: Update.
46863         * doc/functions/vsprintf.texi: Update.
46864
46865 2007-05-01  Bruno Haible  <bruno@clisp.org>
46866
46867         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
46868
46869 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
46870
46871         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
46872         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
46873
46874 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46875
46876         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
46877         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
46878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
46879
46880 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
46881
46882         * lib/argp-help.c (struct hol_entry): New member `ord'.
46883         (HOL_ENTRY_PTRCMP): Use ord for comparison
46884         (hol_sort): Initialize ord.
46885
46886 2007-05-01  Bruno Haible  <bruno@clisp.org>
46887
46888         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
46889         Reported by Eric Blake.
46890         * doc/gnulib.texi (Function Substitutes): Update.
46891
46892 2007-05-01  Bruno Haible  <bruno@clisp.org>
46893
46894         * doc/functions.texi: Remove file, now redundant through
46895         doc/functions/*.texi.
46896
46897 2007-05-01  Bruno Haible  <bruno@clisp.org>
46898
46899         * modules/argp (Depends-on): Add sleep.
46900
46901 2007-05-01  Bruno Haible  <bruno@clisp.org>
46902
46903         * modules/sleep-tests: New file.
46904         * tests/test-sleep.c: New file.
46905
46906         * modules/sleep: New file.
46907         * lib/sleep.c: New file.
46908         * m4/sleep.m4: New file.
46909         * lib/unistd_.h (sleep): New declaration.
46910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
46911         HAVE_SLEEP.
46912         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
46913         * doc/functions/sleep.texi: Document the sleep module.
46914
46915 2007-05-01  Bruno Haible  <bruno@clisp.org>
46916
46917         * lib/sigprocmask.h: Remove file.
46918         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
46919         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
46920         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
46921         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
46922         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
46923         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
46924         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
46925         HAVE_SIGSET_T as a shell variable.
46926         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
46927         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
46928         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
46929         (Depends-on): Add signal. Remove verify.
46930         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
46931         (Include): Mention <signal.h> instead of sigprocmask.h.
46932         * NEWS: Mention the change.
46933         * lib/fatal-signal.c: Don't include sigprocmask.h.
46934
46935 2007-05-01  Bruno Haible  <bruno@clisp.org>
46936
46937         * modules/signal: New file.
46938         * lib/signal_.h: New file.
46939         * m4/signal_h.m4: New file.
46940
46941 2007-05-01  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
46944         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
46945         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
46946         HAVE_WCTYPE_CTMP_BUG into wctype.h.
46947
46948 2007-05-01  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
46951         configure time.
46952         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
46953         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
46954         * modules/sys_stat (Makefile.am): Substitute their values into
46955         sys/stat.h.
46956
46957 2007-05-01  Bruno Haible  <bruno@clisp.org>
46958
46959         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
46960         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
46961         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
46962
46963 2007-05-01  Bruno Haible  <bruno@clisp.org>
46964
46965         * doc/header/assert.texi: Undo last change: don't mention the gnulib
46966         'assert' module here.
46967
46968 2007-05-01  Bruno Haible  <bruno@clisp.org>
46969
46970         * doc/functions/*.texi: New files.
46971         * doc/functions/google-ranking.txt: New file.
46972         * doc/gnulib.texi (Function Substitutes): New chapter.
46973         (ctime, inet_ntoa): Remove sections.
46974         * doc/ctime.texi: Remove file.
46975         * doc/inet_ntoa.texi: Remove file.
46976         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
46977         dependencies.
46978         (%.info): New rule, specifying a --reference-limit.
46979
46980 2007-05-01  Bruno Haible  <bruno@clisp.org>
46981
46982         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
46983
46984 2007-05-01  Bruno Haible  <bruno@clisp.org>
46985
46986         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
46987         the portability of 'mkdir' to mingw systems.
46988
46989 2007-05-01  Bruno Haible  <bruno@clisp.org>
46990
46991         * doc/headers/google-ranking.txt: New file.
46992
46993 2007-04-30  Eric Blake  <ebb9@byu.net>
46994
46995         Prefer fseeko to fseek.
46996         * modules/getpass (Depends-on): Add fseeko.
46997         * lib/getpass.c (getpass): Use fseeko, not fseek.
46998
46999 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
47000
47001         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
47002         assumes the sorting is stable, while most qsort implementations
47003         are not.  Use argument addresses to ensure they never compare as
47004         equal.
47005
47006         * tests/test-argp-2.sh (usage-indent test): Fix output
47007         (func_compare): Restore diff options
47008         * tests/test-argp.c: Restore #include "progname.h"
47009
47010 2007-04-29  Bruno Haible  <bruno@clisp.org>
47011
47012         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
47013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47014         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
47015         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47016         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
47017         (configure.ac): Define CHECK_SNPRINTF_POSIX.
47018         (TESTS, check_PROGRAMS): Add test-snprintf.
47019         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
47020         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
47021         (TESTS, check_PROGRAMS): Add test-vsnprintf.
47022         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
47023         assertions that fail on HP-UX, OSF/1, or IRIX.
47024         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
47025
47026 2007-04-29  Bruno Haible  <bruno@clisp.org>
47027
47028         * MODULES.html.sh (posix_functions): Remove 'contents'.
47029
47030 2007-04-29  Karl Berry  <karl@gnu.org>
47031
47032         * config/srclist.txt (gendocs_template_min): new entry.
47033
47034 2007-04-29  Bruno Haible  <bruno@clisp.org>
47035
47036         Work around fpurge bug on BSD systems.
47037         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
47038         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47039         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
47040         fpurge to rpl_fpurge if the system already has this function.
47041         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
47042         the case where the system already has this function. Correct invariants
47043         on BSD systems.
47044         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
47045         BSD systems.
47046
47047 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47048
47049         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
47050         proposed by Sven Verdoolaege.
47051
47052         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
47053         options.
47054         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
47055         (usage and help tests): Update
47056
47057 2007-04-29  Bruno Haible  <bruno@clisp.org>
47058
47059         * tests/test-fflush.c (main): Use a file of size 17, not 10.
47060         Print more information in case of failure. Disable a test on BeOS.
47061
47062 2007-04-29  Bruno Haible  <bruno@clisp.org>
47063
47064         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
47065         This helps debugging on systems on which no gdb is available.
47066
47067 2007-04-29  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/freading.h: Improve comments.
47070         * lib/fwriting.h: Likewise.
47071         * tests/test-freading.c (main): Don't check freading immediately after
47072         repositioning. Needed for glibc.
47073
47074 2007-04-29  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/freading.c (freading): Trivial simplification.
47077
47078 2007-04-28  Bruno Haible  <bruno@clisp.org>
47079
47080         * tests/test-fwriting.c (main): Also test the interaction between
47081         fflush and fwriting.
47082         * modules/fwriting-tests (Depends-on): Add fflush.
47083
47084         * tests/test-freading.c (main): Also test the interaction between
47085         fflush and freading.
47086         * modules/freading-tests (Depends-on): Add fflush.
47087
47088 2007-04-28  Bruno Haible  <bruno@clisp.org>
47089
47090         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
47091         fseeko and ftello.
47092         Suggested by Eric Blake.
47093
47094 2007-04-28  Jim Meyering  <jim@meyering.net>
47095
47096         Avoid false-negative in gl_STDINT_H's C99 conformance test.
47097         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
47098         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
47099
47100 2007-04-27  Eric Blake  <ebb9@byu.net>
47101
47102         * doc/headers/assert.texi (assert.h): Document assert module use.
47103
47104 2007-04-27  Bruno Haible  <bruno@clisp.org>
47105
47106         * doc/headers/*.texi: New files.
47107         * doc/gnulib.texi (Header File Substitutes): New chapter.
47108         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
47109         dependencies.
47110         (standards.info ,standards.html, standards.dvi): Update dependencies.
47111         (mostlyclean, clean): New targets.
47112
47113 2007-04-27  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
47116         * modules/sysexits (Files, Makefile.am): Update.
47117
47118         * lib/sys_socket_.h: Renamed from lib/socket_.h.
47119         * modules/sys_socket (Files, Makefile.am): Update.
47120
47121         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47122         * modules/sys_stat (Files, Makefile.am): Update.
47123
47124 2007-04-27  Eric Blake  <ebb9@byu.net>
47125
47126         * lib/freading.h: Improve comments.
47127         * lib/fwriting.h: Likewise.
47128         * lib/fflush.c: Likewise.
47129
47130         Fix closein for mingw.
47131         * modules/closein-tests: Add tests for closein.
47132         * tests/test-closein.c: New file.
47133         * tests/test-closein.sh: Likewise.
47134         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
47135         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
47136
47137 2007-04-27  Bruno Haible  <bruno@clisp.org>
47138
47139         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
47140         version is < 6.
47141         * lib/math_.h [__DECC]: Likewise.
47142         * lib/stdio_.h [__DECC]: Likewise.
47143         * lib/stdlib_.h [__DECC]: Likewise.
47144         * lib/string_.h [__DECC]: Likewise.
47145         * lib/time_.h [__DECC]: Likewise.
47146         * lib/wchar_.h [__DECC]: Likewise.
47147         * lib/wctype_.h [__DECC]: Likewise.
47148
47149 2007-04-27  Bruno Haible  <bruno@clisp.org>
47150
47151         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
47152
47153 2007-04-27  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/fflush.c: Add comments.
47156         * modules/fpurge-tests (Depends-on): Add fflush.
47157         * modules/freadable-tests (Depends-on): Likewise.
47158         * modules/fwritable-tests (Depends-on): Likewise.
47159
47160 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
47161
47162         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
47163         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
47164         Report by Bruno Haible <bruno@clisp.org>.
47165
47166 2007-04-26  Eric Blake  <ebb9@byu.net>
47167
47168         Fix fflush on mingw.
47169         * modules/fflush (Depends-on): Add freading.
47170         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
47171         but unread data.
47172
47173 2007-04-26  Eric Blake  <ebb9@byu.net>
47174         and Bruno Haible  <bruno@clisp.org>
47175
47176         Implement freading and fwriting.
47177         * lib/freading.c: New file.
47178         * lib/freading.h: Likewise.
47179         * m4/freading.m4: Likewise.
47180         * modules/freading: Likewise.
47181         * modules/freading-tests: Likewise.
47182         * tests/test-freading.c: Likewise.
47183         * lib/fwriting.c: New file.
47184         * lib/fwriting.h: Likewise.
47185         * m4/fwriting.m4: Likewise.
47186         * modules/fwriting: Likewise.
47187         * modules/fwriting-tests: Likewise.
47188         * tests/test-fwriting.c: Likewise.
47189         * MODULES.html.sh (File stream based Input/Output): Mention them.
47190
47191 2007-04-26  Bruno Haible  <bruno@clisp.org>
47192
47193         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
47194         'long' when we assume it.
47195         Suggested by Eric Blake.
47196
47197 2007-04-26  Bruno Haible  <bruno@clisp.org>
47198
47199         Ensure fseeko, ftello are declared on glibc systems.
47200         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
47201         * modules/fseeko (configure.ac-early): Likewise.
47202         * modules/ftello (configure.ac-early): Likewise.
47203         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
47204         AC_FUNC_FSEEKO for this.
47205         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
47206         (gl_CHECK_FSEEKO): Remove macro.
47207
47208 2007-04-26  Bruno Haible  <bruno@clisp.org>
47209
47210         * tests/test-fflush.c (main): Also check the ftell result after
47211         fflush and fseek/fseeko.
47212         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
47213         file descriptor position cache in the stream.
47214         * lib/fseeko.c (rpl_fseeko): Likewise.
47215
47216 2007-04-26  Bruno Haible  <bruno@clisp.org>
47217
47218         * modules/fflush-tests (Depends-on): Add fseeko.
47219
47220 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
47221             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47222
47223         * lib/argz_.h: ensure error_t definition is obtained in same
47224         mechanism system argz.h would have.
47225         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
47226         argz facilities are known bad.  Err on the side of caution if
47227         cross-compiling.
47228
47229 2007-04-25  Eric Blake  <ebb9@byu.net>
47230
47231         * lib/fpurge.c (includes): Use stdlib.h for free.
47232         * tests/test-fflush.c (main): Also test fflush-fseeko.
47233
47234 2007-04-25  Bruno Haible  <bruno@clisp.org>
47235
47236         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
47237         * lib/fseeko.c: New file.
47238         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
47239         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
47240         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
47241         gl_FUNC_FSEEKO.
47242         (gl_FUNC_FSEEKO): Invoke it.
47243         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
47244         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
47245         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
47246
47247 2007-04-25  Bruno Haible  <bruno@clisp.org>
47248
47249         * modules/fflush (Depends-on): Add ftello.
47250
47251 2007-04-25  Bruno Haible  <bruno@clisp.org>
47252
47253         * modules/ftello-tests: New file.
47254         * tests/test-ftello.c: New file.
47255
47256         * modules/ftello: New file.
47257         * m4/ftello.m4: New file.
47258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
47259         HAVE_FTELLO.
47260         * lib/stdio_.h (ftello): New declaration.
47261         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
47262         HAVE_FTELLO.
47263
47264 2007-04-25  Bruno Haible  <bruno@clisp.org>
47265
47266         * modules/fseeko-tests: New file.
47267         * tests/test-fseeko.c: New file.
47268
47269         * modules/fseeko: New file.
47270         * m4/fseeko.m4: New file.
47271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
47272         HAVE_FSEEKO.
47273         * lib/stdio_.h (fseeko): New declaration.
47274         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
47275         HAVE_FSEEKO.
47276
47277 2007-04-25  Bruno Haible  <bruno@clisp.org>
47278
47279         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
47280
47281 2007-04-25  Bruno Haible  <bruno@clisp.org>
47282
47283         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
47284         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
47285         * tests/test-unistd.c: Likewise.
47286         * tests/test-fcntl.c: Likewise.
47287
47288 2007-04-23  Eric Blake  <ebb9@byu.net>
47289
47290         * lib/fflush.c: Fix missing include.
47291         Reported by Bruno Haible.
47292
47293 2007-04-23  Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
47296         Reported by Eric Blake.
47297
47298 2007-04-23  Bruno Haible  <bruno@clisp.org>
47299
47300         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
47301
47302 2007-04-23  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
47305
47306 2007-04-23  Bruno Haible  <bruno@clisp.org>
47307
47308         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
47309         Needed on HP-UX 11.
47310
47311 2007-04-16  Eric Blake  <ebb9@byu.net>
47312
47313         Make fflush rely on fpurge.
47314         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
47315         open coding all variants.
47316         * modules/fflush (Depends-on): Add fpurge and unistd.
47317         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
47318         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
47319
47320         Fix --with-tests compilation on cygwin.
47321         * modules/argmatch-tests (Makefile.am): List gnulib library first
47322         in LDADD.
47323         * modules/argp-tests (Makefile.am): Likewise.
47324         * modules/array-list-tests (Makefile.am): Likewise.
47325         * modules/array-oset-tests (Makefile.am): Likewise.
47326         * modules/avltree-list-tests (Makefile.am): Likewise.
47327         * modules/avltree-oset-tests (Makefile.am): Likewise.
47328         * modules/avltreehash-list-tests (Makefile.am): Likewise.
47329         * modules/carray-list-tests (Makefile.am): Likewise.
47330         * modules/dirname-tests (Makefile.am): Likewise.
47331         * modules/frexp-tests (Makefile.am): Likewise.
47332         * modules/isnanl-tests (Makefile.am): Likewise.
47333         * modules/linked-list-tests (Makefile.am): Likewise.
47334         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47335         * modules/lock-tests (Makefile.am): Likewise.
47336         * modules/rbtree-list-tests (Makefile.am): Likewise.
47337         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47338         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47339         * modules/tls-tests (Makefile.am): Likewise.
47340         * modules/tsearch-tests (Makefile.am): Likewise.
47341         * modules/xvasprintf-tests (Makefile.am): Likewise.
47342
47343         Fix fpurge for cygwin.
47344         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47345         value.
47346         * modules/fpurge-tests (Depends-on): Clean up trash.
47347
47348 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47349
47350         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47351
47352         * m4/autobuild.m4: Re-indent.
47353
47354 2007-04-13  Bruno Haible  <bruno@clisp.org>
47355
47356         * modules/fpurge-tests: New file.
47357         * tests/test-fpurge.c: New file.
47358
47359         * modules/fpurge: New file.
47360         * lib/fpurge.h: New file.
47361         * lib/fpurge.c: New file.
47362         * m4/fpurge.m4: New file.
47363
47364 2007-04-13  Bruno Haible  <bruno@clisp.org>
47365
47366         * modules/fbufmode-tests: New file.
47367         * tests/test-fbufmode.c: New file.
47368
47369         * modules/fbufmode: New file.
47370         * lib/fbufmode.h: New file.
47371         * lib/fbufmode.c: New file.
47372         * m4/fbufmode.m4: New file.
47373
47374 2007-04-13  Bruno Haible  <bruno@clisp.org>
47375
47376         * modules/fwritable-tests: New file.
47377         * tests/test-fwritable.c: New file.
47378
47379         * modules/fwritable: New file.
47380         * lib/fwritable.h: New file.
47381         * lib/fwritable.c: New file.
47382         * m4/fwritable.m4: New file.
47383
47384 2007-04-13  Bruno Haible  <bruno@clisp.org>
47385
47386         * modules/freadable-tests: New file.
47387         * tests/test-freadable.c: New file.
47388
47389         * modules/freadable: New file.
47390         * lib/freadable.h: New file.
47391         * lib/freadable.c: New file.
47392         * m4/freadable.m4: New file.
47393
47394 2007-04-13  Bruno Haible  <bruno@clisp.org>
47395
47396         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
47397         MOSTLYCLEANFILES.
47398
47399 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47400
47401         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
47402         gzip bootstrap.conf to avoid dragging in i18n machinery.
47403         (gnulib_tool_option): Use it.
47404
47405 2007-04-13  Bruno Haible  <bruno@clisp.org>
47406
47407         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
47408         %F directives.
47409         * tests/test-vasprintf-posix.c (test_function): Likewise.
47410         * tests/test-snprintf-posix.h (test_function): Likewise.
47411         * tests/test-sprintf-posix.h (test_function): Likewise.
47412         * tests/test-fprintf-posix.h (test_function): Likewise.
47413         * tests/test-printf-posix.h (test_function): Likewise.
47414         * tests/test-fprintf-posix.out: Likewise.
47415
47416 2007-04-13  Bruno Haible  <bruno@clisp.org>
47417
47418         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
47419         * modules/tls-tests (configure.ac): Likewise.
47420         Reported by Arto C. Nirkko <anirkko@insel.ch>.
47421
47422 2007-04-13  Bruno Haible  <bruno@clisp.org>
47423
47424         * lib/tls.c (glthread_tls_get): Fix return type.
47425         Patch by Arto C. Nirkko <anirkko@insel.ch>.
47426
47427 2007-04-12  Eric Blake  <ebb9@byu.net>
47428
47429         * modules/gettime (Depends-on): Remove gettime.
47430         Reported by Dmitry V. Levin.
47431
47432 2007-04-12  Bruno Haible  <bruno@clisp.org>
47433
47434         * modules/fflush (Include): Mention <stdio.h>.
47435         * modules/strtoimax (Include): Mention <inttypes.h>.
47436         * modules/strtoumax (Include): Likewise.
47437
47438 2007-04-12  Eric Blake  <ebb9@byu.net>
47439
47440         * .cvsignore: New file.
47441         * .gitignore: Likewise.
47442
47443 2007-04-12  Bruno Haible  <bruno@clisp.org>
47444
47445         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
47446         not before, since $(LDADD) often contains libgnu.a.
47447         * modules/striconv-tests (test_striconv_LDADD): Likewise.
47448         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
47449         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
47450         Needed on Cygwin.
47451
47452 2007-04-12  Eric Blake  <ebb9@byu.net>
47453
47454         Work around glibc's failure to flush stdin on fclose.
47455         * lib/closein.c (close_stdin): Flush stdin before closing.
47456
47457         Work around glibc's failure to reset seekable stdin on exit.
47458         * modules/closein: New module.
47459         * lib/closein.c: New file.
47460         * lib/closein.h: Likewise.
47461         * m4/closein.m4: Likewise.
47462         * MODULES.html.sh (File stream based Input/Output): Document it.
47463
47464 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47465
47466         * gnulib-tool: Rename generated 'autobuild' script to
47467         'do-autobuild' in --create-megatestdir output.
47468
47469         * doc/gnulib.texi (Build robot for gnulib): Fix.
47470
47471 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47472
47473         * modules/sysexits (Depends-on): Add absolute-header.
47474
47475 2007-04-12  Eric Blake  <ebb9@byu.net>
47476
47477         No need to preserve errno on success.
47478         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47479         Reported by Bruno Haible.
47480
47481 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47482
47483         * MODULES.html.sh (Support for maintaining and releasing
47484         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47485
47486 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47487
47488         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47489
47490 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47491
47492         * modules/autobuild: New module.
47493
47494         * m4/autobuild.m4: New file.
47495
47496 2007-04-11  Bruno Haible  <bruno@clisp.org>
47497
47498         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47499         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47502         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47503         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47504         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47506         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47507         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
47509         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47510         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
47512         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47513         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
47515         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47516         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
47518         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47519         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
47521         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47522         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
47524         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47525         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47526         Reported by Eric Blake.
47527
47528 2007-04-11  Bruno Haible  <bruno@clisp.org>
47529
47530         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
47531
47532 2007-04-10  Bruno Haible  <bruno@clisp.org>
47533
47534         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
47535         for NaN and Infinity. Needed on FreeBSD 6.1.
47536         * tests/test-vasnprintf-posix.c (test_function): Undo last change
47537         regarding results for "%010a" of Infinity and NaN.
47538         * tests/test-vasprintf-posix.c (test_function): Likewise.
47539         * tests/test-snprintf-posix.h (test_function): Likewise.
47540         * tests/test-sprintf-posix.h (test_function): Likewise.
47541         * tests/test-fprintf-posix.h (test_function): Likewise.
47542         * tests/test-printf-posix.h (test_function): Likewise.
47543         * tests/test-fprintf-posix.out: Likewise.
47544
47545 2007-04-10  Bruno Haible  <bruno@clisp.org>
47546
47547         * modules/locale-tests: New file.
47548         * tests/test-locale.c: New file.
47549
47550         * modules/locale: New file.
47551         * lib/locale_.h: New file.
47552         * m4/locale_h.m4: New file.
47553
47554 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
47555             Bruno Haible  <bruno@clisp.org>
47556
47557         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
47558         be determined, test for availability of the copysignf, copysign,
47559         copysignl functions.
47560         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
47561         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
47562         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
47563
47564 2007-04-09  Eric Blake  <ebb9@byu.net>
47565
47566         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
47567         * modules/stdio (Makefile.am): Support fflush.
47568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47569         * modules/fflush: New file.
47570         * lib/fflush.c: Likewise.
47571         * m4/fflush.m4: Likewise.
47572         * modules/fflush-tests: New test.
47573         * tests/test-fflush.c: Likewise.
47574         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
47575
47576 2007-04-06  Bruno Haible  <bruno@clisp.org>
47577
47578         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
47579         (VASNPRINTF): Use signbit for faster determination whether to print a
47580         minus sign.
47581         * modules/vasnprintf (Files): Remove lib/float+.h.
47582         * modules/fprintf-posix (Depends-on): Add signbit.
47583         * modules/snprintf-posix (Depends-on): Likewise.
47584         * modules/sprintf-posix (Depends-on): Likewise.
47585         * modules/vasnprintf-posix (Depends-on): Likewise.
47586         * modules/vasprintf-posix (Depends-on): Likewise.
47587         * modules/vfprintf-posix (Depends-on): Likewise.
47588         * modules/vsnprintf-posix (Depends-on): Likewise.
47589         * modules/vsprintf-posix (Depends-on): Likewise.
47590
47591 2007-04-06  Bruno Haible  <bruno@clisp.org>
47592
47593         * tests/test-frexp.c (main): Test also the sign bit of zero results.
47594         * tests/test-frexpl.c (main): Likewise.
47595         * tests/test-ldexpl.c (main): Likewise.
47596         * modules/frexp-tests (Depends-on): Add signbit.
47597         * modules/frexpl-tests (Depdends-on): Likewise.
47598         * modules/ldexpl-tests (Depdends-on): Likewise.
47599
47600 2007-04-06  Bruno Haible  <bruno@clisp.org>
47601
47602         * modules/signbit-tests: New file.
47603         * tests/test-signbit.c: New file.
47604
47605         * modules/signbit: New file.
47606         * lib/signbitf.c: New file.
47607         * lib/signbitd.c: New file.
47608         * lib/signbitl.c: New file.
47609         * m4/signbit.m4: New file.
47610         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
47611         (signbit): New macro.
47612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
47613         REPLACE_SIGNBIT.
47614         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
47615         REPLACE_FREXPL into math.h.
47616
47617 2007-04-06  Bruno Haible  <bruno@clisp.org>
47618
47619         * modules/isnanf-nolibm-tests: New file.
47620         * tests/test-isnanf.c: New file.
47621
47622         * modules/isnanf-nolibm: New file.
47623         * lib/isnanf.h: New file.
47624         * lib/isnanf.c: New file.
47625         * lib/isnan.c: Consider the USE_FLOAT macro.
47626         * m4/isnanf.m4: New file.
47627
47628 2007-04-06  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
47631         (Link): New section.
47632
47633         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
47634
47635 2007-04-06  Bruno Haible  <bruno@clisp.org>
47636
47637         Assume the 'long double' type.
47638         * m4/longdouble.m4: Remove file.
47639         * config/srclist.txt: Don't mention longdouble.m4.
47640         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
47641         * lib/float+.h: Likewise.
47642         * lib/frexp.c: Likewise.
47643         * lib/printf-args.h: Likewise.
47644         * lib/printf-args.c: Likewise.
47645         * lib/printf-frexp.c: Likewise.
47646         * lib/printf-parse.c: Likewise.
47647         * lib/vasnprintf.c: Likewise.
47648         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
47649         * m4/intl.m4: Likewise.
47650         * m4/isnanl.m4: Likewise.
47651         * m4/printf.m4: Likewise.
47652         * m4/printf-frexpl.m4: Likewise.
47653         * m4/vasnprintf.m4: Likewise.
47654         * modules/allocsa (Files): Remove m4/longdouble.m4.
47655         * modules/gettext (Files): Likewise.
47656         * modules/relocatable-prog-wrapper (Files): Likewise.
47657         * modules/vasnprintf (Files): Likewise.
47658         * modules/isnanl (Files): Likewise.
47659         (Include): Simplify.
47660         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
47661         (Include): Simplify.
47662         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
47663         (Include): Simplify.
47664         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
47665         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47666         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
47667         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47668         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47669         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47670         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
47671         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47672         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47673         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47674         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
47675         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47676         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
47677         * tests/test-isnanl.c: Likewise.
47678         * tests/test-snprintf-posix.h: Likewise.
47679         * tests/test-sprintf-posix.h: Likewise.
47680         * tests/test-vasnprintf-posix.c: Likewise.
47681         * tests/test-vasnprintf-posix2.c: Likewise.
47682         * tests/test-vasprintf-posix.c: Likewise.
47683
47684 2007-04-06  Bruno Haible  <bruno@clisp.org>
47685
47686         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
47687         * lib/math_.h [__DECC]: Include the overridden include file through
47688         #include_next, outside the double-inclusion guard.
47689         * lib/stdio_.h [__DECC]: Likewise.
47690         * lib/stdlib_.h [__DECC]: Likewise.
47691         * lib/string_.h [__DECC]: Likewise.
47692         * lib/time_.h [__DECC]: Likewise.
47693         * lib/wchar_.h [__DECC]: Likewise.
47694         * lib/wctype_.h [__DECC]: Likewise.
47695         * lib/inttypes_.h [__DECC]: Likewise.
47696         Reported by Albert Chin <china@thewrittenword.com> in
47697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
47698
47699 2007-04-04  Eric Blake  <ebb9@byu.net>
47700
47701         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
47702         1.5.x.
47703
47704 2007-04-04  Bruno Haible  <bruno@clisp.org>
47705
47706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
47707         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
47708
47709 2007-04-04  Bruno Haible  <bruno@clisp.org>
47710
47711         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
47712         results for "%010a" of Infinity and NaN.
47713         * tests/test-vasprintf-posix.c (test_function): Likewise.
47714         * tests/test-snprintf-posix.h (test_function): Likewise.
47715         * tests/test-sprintf-posix.h (test_function): Likewise.
47716         * tests/test-fprintf-posix.h (test_function): Remove these tests.
47717         * tests/test-printf-posix.h (test_function): Likewise.
47718         * tests/test-fprintf-posix.out: Update.
47719         Needed for FreeBSD 6.1.
47720
47721 2007-04-04  Bruno Haible  <bruno@clisp.org>
47722
47723         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
47724         directly used by the gnulib modules nor by gnulib-tool.
47725
47726 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
47727
47728         * DEPENDENCIES: Give overall description of version dependency
47729         desirability.  Use more-typical names for apps.
47730         Add shell, coreutils, diffutils, grep, tar, gzip.
47731
47732 2007-04-04  Simon Josefsson  <simon@josefsson.org>
47733
47734         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
47735
47736 2007-04-04  Karl Berry  <karl@gnu.org>
47737
47738         * MODULES.html.sh (func_module): missing '.
47739
47740 2007-04-03  Bruno Haible  <bruno@clisp.org>
47741
47742         * modules/argmatch-tests (Makefile.am): New variable
47743         test_argmatch_LDADD.
47744         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
47745         * modules/array-list-tests (Makefile.am): New variable
47746         test_array_list_LDADD.
47747         * modules/array-oset-tests (Makefile.am): New variable
47748         test_array_oset_LDADD.
47749         * modules/avltree-list-tests (Makefile.am): New variable
47750         test_avltree_list_LDADD.
47751         * modules/avltree-oset-tests (Makefile.am): New variable
47752         test_avltree_oset_LDADD.
47753         * modules/avltreehash-list-tests (Makefile.am): New variable
47754         test_avltreehash_list_LDADD.
47755         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
47756         test_canonicalize_lgpl_LDADD.
47757         * modules/carray-list-tests (Makefile.am): New variable
47758         test_carray_list_LDADD.
47759         * modules/dirname-tests (Makefile.am): New variable
47760         test_dirname_LDADD.
47761         * modules/linked-list-tests (Makefile.am): New variable
47762         test_linked_list_LDADD.
47763         * modules/linkedhash-list-tests (Makefile.am): New variable
47764         test_linkedhash_list_LDADD.
47765         * modules/rbtree-list-tests (Makefile.am): New variable
47766         test_rbtree_list_LDADD.
47767         * modules/rbtree-oset-tests (Makefile.am): New variable
47768         test_rbtree_oset_LDADD.
47769         * modules/rbtreehash-list-tests (Makefile.am): New variable
47770         test_rbtreehash_list_LDADD.
47771         * modules/xvasprintf-tests (Makefile.am): New variable
47772         test_xvasprintf_LDADD.
47773         Reported by Eric Blake.
47774
47775 2007-04-03  Eric Blake  <ebb9@byu.net>
47776
47777         * DEPENDENCIES: Weaken m4 requirements.
47778
47779 2007-04-03  Bruno Haible  <bruno@clisp.org>
47780
47781         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
47782         * modules/isnanl-tests (configure.ac): Likewise.
47783
47784 2007-04-03  Ben Pfaff  <blp@gnu.org>
47785
47786         * modules/iconv_open: Add $(srcdir)/ to source directory
47787         references in Makefile fragments that call gperf, to fix VPATH
47788         builds.
47789
47790 2007-04-03  Bruno Haible  <bruno@clisp.org>
47791
47792         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
47793         * lib/ldexpl.c: Undo last change.
47794
47795 2007-04-03  Bruno Haible  <bruno@clisp.org>
47796
47797         * modules/printf-frexpl (Depends-on): Undo last change.
47798         (Files): Add m4/ldexpl.m4.
47799
47800 2007-04-03  Bruno Haible  <bruno@clisp.org>
47801
47802         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
47803         * modules/isnanl (Link): New section.
47804
47805         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
47806         * modules/frexp (Link): New section.
47807
47808         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
47809         * modules/frexpl (Link): New section.
47810
47811         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
47812         * modules/ldexpl (Link): New section.
47813
47814 2007-04-03  Bruno Haible  <bruno@clisp.org>
47815
47816         * modules/TEMPLATE-EXTENDED: New file.
47817         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
47818
47819 2007-04-03  Bruno Haible  <bruno@clisp.org>
47820
47821         * DEPENDENCIES: New file.
47822         Suggested by Simon Josefsson.
47823
47824 2007-04-03  Bruno Haible  <bruno@clisp.org>
47825
47826         * doc/gnulib.texi: Escape @.
47827
47828 2007-04-03  James Youngman  <jay@gnu.org>
47829         and Paul Eggert  <eggert@cs.ucla.edu>
47830
47831         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
47832         birthtime on all systems that have birthtime, not just those which
47833         use st_birthtimensec rather than st_birthtim.  Putting zero in
47834         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
47835         that the birth time is not available for files on an NFS mount.
47836
47837 2007-04-03  Simon Josefsson  <simon@josefsson.org>
47838
47839         * modules/memxor: Move back from crypto/, suggested by Bruno.
47840         * modules/crypto/hmac-sha1: Fix memxor dependency.
47841
47842         * modules/crypto/gc: Moved from ../.
47843
47844 2007-04-02  Eric Blake  <ebb9@byu.net>
47845
47846         * lib/ldexpl.c (includes): Avoid libm.
47847
47848         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
47849
47850 2007-04-02  Bruno Haible  <bruno@clisp.org>
47851
47852         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
47853         on IRIX.
47854
47855 2007-04-02  Bruno Haible  <bruno@clisp.org>
47856
47857         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
47858         x86 or x86_64 platforms running MacOS X.
47859         Reported by Ryan Schmidt <@ryandesign.com>.
47860
47861 2007-04-02  Bruno Haible  <bruno@clisp.org>
47862
47863         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
47864         i386.
47865
47866 2007-04-01  Simon Josefsson  <simon@josefsson.org>
47867
47868         * modules/crypto/arcfour: Moved from ../.
47869         * modules/crypto/arcfour-tests: Moved from ../.
47870         * modules/crypto/arctwo: Moved from ../.
47871         * modules/crypto/arctwo-tests: Moved from ../.
47872         * modules/crypto/des: Moved from ../.
47873         * modules/crypto/des-tests: Moved from ../.
47874         * modules/crypto/gc-arcfour: Moved from ../.
47875         * modules/crypto/gc-arcfour-tests: Moved from ../.
47876         * modules/crypto/gc-arctwo: Moved from ../.
47877         * modules/crypto/gc-arctwo-tests: Moved from ../.
47878         * modules/crypto/gc-des: Moved from ../.
47879         * modules/crypto/gc-des-tests: Moved from ../.
47880         * modules/crypto/gc-hmac-md5: Moved from ../.
47881         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
47882         * modules/crypto/gc-hmac-sha1: Moved from ../.
47883         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
47884         * modules/crypto/gc-md2: Moved from ../.
47885         * modules/crypto/gc-md2-tests: Moved from ../.
47886         * modules/crypto/gc-md4: Moved from ../.
47887         * modules/crypto/gc-md4-tests: Moved from ../.
47888         * modules/crypto/gc-md5: Moved from ../.
47889         * modules/crypto/gc-md5-tests: Moved from ../.
47890         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
47891         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
47892         * modules/crypto/gc-random: Moved from ../.
47893         * modules/crypto/gc-rijndael: Moved from ../.
47894         * modules/crypto/gc-rijndael-tests: Moved from ../.
47895         * modules/crypto/gc-sha1: Moved from ../.
47896         * modules/crypto/gc-sha1-tests: Moved from ../.
47897         * modules/crypto/gc-tests: Moved from ../.
47898         * modules/crypto/hmac-md5: Moved from ../.
47899         * modules/crypto/hmac-md5-tests: Moved from ../.
47900         * modules/crypto/hmac-sha1: Moved from ../.
47901         * modules/crypto/hmac-sha1-tests: Moved from ../.
47902         * modules/crypto/md2: Moved from ../.
47903         * modules/crypto/md2-tests: Moved from ../.
47904         * modules/crypto/md4: Moved from ../.
47905         * modules/crypto/md4-tests: Moved from ../.
47906         * modules/crypto/md5: Moved from ../.
47907         * modules/crypto/md5-tests: Moved from ../.
47908         * modules/crypto/memxor: Moved from ../.
47909         * modules/crypto/rijndael: Moved from ../.
47910         * modules/crypto/rijndael-tests: Moved from ../.
47911         * modules/crypto/sha1: Moved from ../.
47912
47913 2007-03-30  James Youngman  <jay@gnu.org>
47914
47915         * tests/test-stat-time.c (prepare_test): use chmod() rather than
47916         rename() to change the ctime of a file (because ctime is unaffected
47917         by rename on jfs2 on AIX 5.1).
47918         (main): Start by doing cleanup, in case a previous run failed leaving
47919         test files behind.
47920
47921 2007-03-31  Bruno Haible  <bruno@clisp.org>
47922
47923         Support old proprietary implementations of iconv.
47924         * modules/iconv_open: New file.
47925         * lib/iconv_.h: New file.
47926         * m4/iconv_h.m4: New file.
47927         * lib/iconv_open.c: New file.
47928         * lib/iconv_open-aix.gperf: New file.
47929         * lib/iconv_open-hpux.gperf: New file.
47930         * lib/iconv_open-irix.gperf: New file.
47931         * lib/iconv_open-osf.gperf: New file.
47932         * m4/iconv_open.m4: New file.
47933         * modules/linebreak (Depends-on): Add iconv_open.
47934         * modules/striconv (Depends-on): Likewise.
47935         * modules/striconveh (Depends-on): Likewise.
47936         * modules/unicodeio (Depends-on): Likewise.
47937         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
47938         (iconv_t)(-1).
47939         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
47940         conversion if cd is (iconv_t)(-1).
47941         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
47942         is not possible.
47943
47944 2007-03-31  Bruno Haible  <bruno@clisp.org>
47945
47946         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47947         work on Solaris either. Protect also second use of "autodetect_jp".
47948
47949 2007-03-31  Bruno Haible  <bruno@clisp.org>
47950
47951         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
47952         the function is not present.
47953
47954 2007-03-31  Bruno Haible  <bruno@clisp.org>
47955
47956         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
47957         the function is not present.
47958
47959 2007-03-31  Bruno Haible  <bruno@clisp.org>
47960
47961         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
47962         a bug in HP-UX iconv_open().
47963
47964 2007-03-31  Bruno Haible  <bruno@clisp.org>
47965
47966         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
47967         (Mathematics <math.h>): New section, add fpieee.
47968         (Input/output <stdio.h>): Add fseterr.
47969         (Mathematics <math.h>): New section, add printf-frexp.
47970         (Container data structures): Add sublist.
47971         (Core language properties): Add fpucw, inline.
47972         (Functions for greatest-width integer types <inttypes.h>): Add
47973         imaxabs, imaxdiv, inttypes.
47974         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
47975         isnanl-nolibm, ldexp.
47976         (Mathematics <math.h>): New section, add printf-frexpl.
47977         (Support for systems lacking POSIX:2001): Add fprintf-posix,
47978         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
47979         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
47980         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
47981         (Unicode string functions): Add unistr/u*-mbtoucr.
47982         (Java): Add javacomp-script, javaexec-script.
47983         (C#): Add csharpcomp-script, csharpexec-script.
47984         (Support for building libraries and executables): Add havelib,
47985         relocatable-*.
47986         (Support for maintaining and releasing projects): Renamed from
47987         'Support for maintaining and release projects'. Add announce-gen.
47988
47989 2007-03-31  Bruno Haible  <bruno@clisp.org>
47990
47991         * README: Talk primarily about git.
47992         (git and CVS): Renamed from CVS.
47993         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
47994         gnulib is available through git.
47995         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
47996
47997 2007-03-30  Bruno Haible  <bruno@clisp.org>
47998
47999         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
48000         * lib/poll_.h: Likewise.
48001         * lib/stat_.h: Likewise.
48002         * lib/sys_time_.h: Likewise.
48003         * lib/sysexit_.h: Likewise.
48004         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
48005         * lib/stdbool_.h: Likewise.
48006         * lib/byteswap_.h: Add double-inclusion guard.
48007
48008 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
48009
48010         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
48011
48012 2007-03-30  Karl Berry  <karl@gnu.org>
48013
48014         * config/srclist-update: double space after USA in the license
48015         substitution, since that's how it's usually (?) written.
48016
48017 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48018
48019         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
48020         reported by Bruno Haible.
48021
48022 2007-03-29  Bruno Haible  <bruno@clisp.org>
48023
48024         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
48025         a bug in AIX iconv().
48026
48027 2007-03-29  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/ldexpl-tests: New file.
48030         * tests/test-ldexpl.c: New file.
48031
48032 2007-03-29  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/ldexpl.c: Include fpucw.h.
48035         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
48036         multiplication.
48037         * modules/ldexpl (Depends-on): Add fpucw.
48038
48039 2007-03-29  Bruno Haible  <bruno@clisp.org>
48040
48041         * modules/ldexpl: New file.
48042         * m4/ldexpl.m4: New file.
48043         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
48044         set.
48045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
48046         REPLACE_LDEXPL.
48047         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
48048         REPLACE_LDEXPL.
48049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48050         gl_FUNC_LDEXPL_WORKS.
48051         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
48052         * modules/mathl (Files): Remove lib/ldexpl.c.
48053         (Depends-on): Add ldexpl.
48054
48055 2007-03-29  Bruno Haible  <bruno@clisp.org>
48056
48057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
48058
48059 2007-03-29  Bruno Haible  <bruno@clisp.org>
48060
48061         * tests/test-striconveh.c (main): Don't assume that a direct conversion
48062         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
48063         and possibly also HP-UX.
48064         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48065         work on AIX, IRIX, HP-UX, OSF/1.
48066         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48067         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48068         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48069         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48070         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
48071         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48072
48073 2007-03-29  Bruno Haible  <bruno@clisp.org>
48074
48075         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
48076
48077 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48078
48079         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
48080         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
48081
48082 2007-03-29  Eric Blake  <ebb9@byu.net>
48083
48084         * lib/acl-internal.h: Remove redundant include.
48085         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
48086         Cygwin when a file is locked.
48087
48088 2007-03-29  Bruno Haible  <bruno@clisp.org>
48089
48090         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
48091         file.
48092         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
48093
48094 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48095
48096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
48097         try to remove a parent directory if the child couldn't be removed
48098         (except for the first rmdir, which could fail because the child
48099         doesn't exist).  Problem reported by Jeff Blaine in
48100         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
48101
48102 2007-03-28  Bruno Haible  <bruno@clisp.org>
48103
48104         * lib/striconveh.c (utf8conv_carefully): New function.
48105         (mem_cd_iconveh_internal): Invoke it.
48106
48107 2007-03-28  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
48110         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
48111         input.
48112         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
48113         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
48114         unistr/u8-uctomb.
48115
48116 2007-03-28  Bruno Haible  <bruno@clisp.org>
48117
48118         * modules/unistr/u8-mbtoucr: New file.
48119         * lib/unistr/u8-mbtoucr.c: New file.
48120         * modules/unistr/u16-mbtoucr: New file.
48121         * lib/unistr/u16-mbtoucr.c: New file.
48122         * modules/unistr/u16-mbtoucr: New file.
48123         * lib/unistr/u16-mbtoucr.c: New file.
48124         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48125
48126 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48127             Bruno Haible  <bruno@clisp.org>
48128
48129         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48130         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48131         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48132
48133         * m4/stdio_h.m4: Add stubs for vasprintf too.
48134
48135         * modules/stdio: Support vasprintf in sed command.
48136
48137         * modules/vasprintf: Depend on stdio for prototypes.  Remove
48138         vasprintf.h.  Add stdio module indicator.
48139
48140         * lib/stdio_.h: Declare asprintf and vasprintf, based on
48141         vasprintf.h.
48142
48143         * lib/vasprintf.h: File removed.
48144
48145         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
48146         * lib/vasprintf.c: Ditto.
48147         * lib/xvasprintf.c: Ditto.
48148         * tests/test-vasprintf-posix.c: Ditto.
48149         * tests/test-vasprintf.c: Ditto.
48150
48151 2007-03-27  Bruno Haible  <bruno@clisp.org>
48152
48153         Make vasnprintf multithread-safe.
48154         * lib/vasnprintf.c (decimal_point_char): New function.
48155         (VASNPRINTF): Use it.
48156         Suggested by Simon Josefsson.
48157
48158 2007-03-27  Eric Blake  <ebb9@byu.net>
48159
48160         Support sub-second birthtime on cygwin.
48161         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
48162         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
48163         (get_stat_birthtime): Also work with st_birthtim.
48164
48165 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
48166
48167         * lib/stat-time.h (USE_BIRTHTIME): Remove.
48168         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
48169         (get_stat_birthtime_ns): Do not try to use "spare" fields.
48170         (get_stat_birthtime_ns): Simplify compile-time tests.
48171         (get_stat_birthtime): Change the API to look like
48172         get_stat_mtime etc., except return a negative tv_nsec on error.
48173         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
48174         Don't check for "spare" fields.
48175         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
48176         or for struct stat.st_birthtime, as these tests aren't used.
48177         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
48178
48179 2007-03-27  Bruno Haible  <bruno@clisp.org>
48180
48181         * lib/stat-time.h: Include <sys/stat.h>.
48182
48183 2007-03-27  James Youngman  <jay@gnu.org>
48184
48185         * lib/stat-time.h (get_stat_birthtime): New function for
48186           retrieving st_birthtime as provided by UFS2 (hence *BSD).
48187         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
48188           and its variants.
48189         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
48190         * modules/stat-time-test: New file.
48191         * tests/test-stat-time.c: New test, devised by Bruno Haible.
48192
48193 2007-03-26  Bruno Haible  <bruno@clisp.org>
48194
48195         Better support of signalling NaNs.
48196         * lib/atanl.c: Include isnanl.h.
48197         (atanl): Perform test for NaN at the beginning of the function and
48198         through a call to isnanl.
48199         * lib/cosl.c: Include isnanl.h.
48200         (cosl): Perform test for NaN at the beginning of the function and
48201         through a call to isnanl.
48202         * lib/ldexpl.c: Include isnanl.h.
48203         (ldexpl): Perform test for NaN through a call to isnanl.
48204         * lib/logl.c: Include isnanl.h.
48205         (logl): Perform test for NaN at the beginning of the function and
48206         through a call to isnanl.
48207         * lib/sinl.c: Include isnanl.h.
48208         (sinl): Perform test for NaN at the beginning of the function and
48209         through a call to isnanl.
48210         * lib/sqrtl.c: Include isnanl.h.
48211         (sqrtl): Perform test for NaN at the beginning of the function and
48212         through a call to isnanl.
48213         * lib/tanl.c: Include isnanl.h.
48214         (tanl): Perform test for NaN at the beginning of the function and
48215         through a call to isnanl.
48216         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
48217         * modules/mathl (Depends-on): Add isnanl.
48218
48219 2007-03-26  Eric Blake  <ebb9@byu.net>
48220
48221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
48222         regression in logic sense of previous patch.
48223
48224 2007-03-26  Bruno Haible  <bruno@clisp.org>
48225
48226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
48227         unportable shell command "if ! ...".
48228         Reported by Ralf Wildenhues.
48229
48230 2007-03-25  Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
48233         <sysexits.h> file, and only add EX_CONFIG.
48234         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
48235         absolute file name and whether it is sufficient. Substitute also
48236         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
48237         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
48238         ABSOLUTE_SYSEXITS_H into sysexits.h.
48239
48240 2007-03-25  Bruno Haible  <bruno@clisp.org>
48241
48242         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
48243         hints is NULL.
48244
48245 2007-03-25  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
48248         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
48249
48250 2007-03-25  Bruno Haible  <bruno@clisp.org>
48251
48252         * lib/vasnprintf.c: Include langinfo.h.
48253         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
48254         multithread-safe.
48255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
48256         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
48257         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48260         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48261         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
48263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48264         Reported by Simon Josefsson.
48265
48266 2007-03-25  Bruno Haible  <bruno@clisp.org>
48267
48268         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
48269         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
48270         * modules/vasnprintf (Depends-on): Add stdint.
48271
48272 2007-03-25  Bruno Haible  <bruno@clisp.org>
48273
48274         * modules/fpieee: New file.
48275         * m4/fpieee.m4: New file.
48276         * modules/isnan-nolibm (Depends-on): Add fpieee.
48277         * modules/isnanl-nolibm (Depends-on): Add fpieee.
48278         * modules/isnanl (Depends-on): Add fpieee.
48279
48280 2007-03-25  Bruno Haible  <bruno@clisp.org>
48281
48282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
48283
48284 2007-03-25  Bruno Haible  <bruno@clisp.org>
48285
48286         Avoid test failures on IRIX 6.5.
48287         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
48288         (main): Use it.
48289         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
48290         macros.
48291         (main): Use them.
48292
48293 2007-03-25  Bruno Haible  <bruno@clisp.org>
48294
48295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
48296         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
48297         exists but doesn't work.
48298         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
48299         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
48300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
48301         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
48302
48303 2007-03-25  Bruno Haible  <bruno@clisp.org>
48304
48305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
48306         returns inf. Needed on IRIX 6.5.
48307
48308 2007-03-25  Bruno Haible  <bruno@clisp.org>
48309
48310         * tests/test-frexpl.c: Include isnanl-nolibm.h.
48311         (main): Use isnanl instead of x != x idiom.
48312         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
48313
48314         * tests/test-frexp.c: Include isnan.h.
48315         (main): Use isnan instead of x != x idiom.
48316         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
48317
48318 2007-03-25  Bruno Haible  <bruno@clisp.org>
48319
48320         * tests/test-frexp.c (NaN): New function/macro.
48321         (main): Use it instead of 0.0 / 0.0.
48322         * tests/test-isnan.c (NaN): New function/macro.
48323         (main): Use it instead of 0.0 / 0.0.
48324         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
48325         (test_function): Use it instead of 0.0 / 0.0.
48326         * tests/test-vasprintf-posix.c (NaN): New function/macro.
48327         (test_function): Use it instead of 0.0 / 0.0.
48328         * tests/test-snprintf-posix.h (NaN): New function/macro.
48329         (test_function): Use it instead of 0.0 / 0.0.
48330         * tests/test-sprintf-posix.h (NaN): New function/macro.
48331         (test_function): Use it instead of 0.0 / 0.0.
48332         * tests/test-fprintf-posix.h (NaN): New function/macro.
48333         (test_function): Use it instead of 0.0 / 0.0.
48334         * tests/test-printf-posix.h (NaN): New function/macro.
48335         (test_function): Use it instead of 0.0 / 0.0.
48336
48337         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48338
48339 2007-03-25  Bruno Haible  <bruno@clisp.org>
48340
48341         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48342
48343 2007-03-25  Bruno Haible  <bruno@clisp.org>
48344
48345         * lib/regexec.c (merge_state_with_log): Make static.
48346
48347 2007-03-25  Bruno Haible  <bruno@clisp.org>
48348
48349         * lib/trigl.c (kernel_rem_pio2): Make static.
48350
48351 2007-03-25  Bruno Haible  <bruno@clisp.org>
48352
48353         * lib/sincosl.c (sincosl_table): Make static.
48354
48355 2007-03-25  Bruno Haible  <bruno@clisp.org>
48356
48357         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48358         if the compiler does not support C99.
48359
48360 2007-03-25  Bruno Haible  <bruno@clisp.org>
48361
48362         * modules/time (Makefile.am): Ensure all rule action lines start with a
48363         tab.
48364
48365 2007-03-24  Bruno Haible  <bruno@clisp.org>
48366
48367         * modules/tsearch-tests: New file.
48368         * tests/test-tsearch.sh: New file.
48369         * tests/test-tsearch.c: New file, mostly copied from glibc.
48370
48371         * modules/search-tests: New file.
48372         * tests/test-search.c: New file.
48373
48374         * modules/search: New file.
48375         * lib/search_.h: New file, incorporating lib/tsearch.h.
48376         * m4/search_h.m4: New file.
48377         * lib/tsearch.h: Remove file.
48378         * lib/tsearch.c: Include search.h instead of tsearch.h.
48379         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
48380         HAVE_TSEARCH.
48381         * modules/tsearch (Files): Remove lib/tsearch.h.
48382         (Depends-on): Add search.
48383         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
48384         (Include): Change tsearch.h into search.h.
48385
48386 2007-03-24  Bruno Haible  <bruno@clisp.org>
48387
48388         * modules/fpucw: New file.
48389         * lib/fpucw.h: New file.
48390         * lib/frexp.c: Include fpucw.h.
48391         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48392         (FUNC): Use them.
48393         * lib/printf-frexp.c: Include fpucw.h.
48394         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48395         (FUNC): Use them.
48396         * lib/vasnprintf.c: Include fpucw.h.
48397         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
48398         'long double' calculations.
48399         * tests/test-frexpl.c: Include fpucw.h.
48400         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48401         * tests/test-printf-frexpl.c: Include fpucw.h.
48402         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48403         * modules/frexpl (Depends-on): Add fpucw.
48404         * modules/printf-frexpl (Depends-on): Likewise.
48405         * modules/fprintf-posix (Depends-on): Likewise.
48406         * modules/snprintf-posix (Depends-on): Likewise.
48407         * modules/sprintf-posix (Depends-on): Likewise.
48408         * modules/vasnprintf-posix (Depends-on): Likewise.
48409         * modules/vasprintf-posix (Depends-on): Likewise.
48410         * modules/vfprintf-posix (Depends-on): Likewise.
48411         * modules/vsnprintf-posix (Depends-on): Likewise.
48412         * modules/vsprintf-posix (Depends-on): Likewise.
48413         * modules/frexpl-tests (Depends-on): Likewise.
48414         * modules/printf-frexpl-tests (Depends-on): Likewise.
48415
48416 2007-03-24  Bruno Haible  <bruno@clisp.org>
48417
48418         * lib/float+.h: New file.
48419         * lib/isnan.c: Include float+.h.
48420         (SIZE): New macro.
48421         (FUNC): Compare only SIZE bytes of the value.
48422         * lib/vasnprintf.c: Include float+.h.
48423         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
48424         SIZEOF_LDBL or SIZEOF_DBL bytes.
48425         * modules/isnan-nolibm (Files): Add lib/float+.h.
48426         * modules/isnanl-nolibm (Files): Add lib/float+.h.
48427         * modules/isnanl (Files): Add lib/float+.h.
48428         * modules/vasnprintf (Files): Add lib/float+.h.
48429
48430 2007-03-24  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
48433         include isnanl-nolibm.h.
48434
48435 2007-03-24  Bruno Haible  <bruno@clisp.org>
48436
48437         * tests/test-read-file.c (main): Don't produce spurious output for
48438         expected situations. Make the test fail if it encountered unexpected
48439         results.
48440
48441 2007-03-24  Bruno Haible  <bruno@clisp.org>
48442
48443         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
48444         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
48445
48446 2007-03-24  Bruno Haible  <bruno@clisp.org>
48447
48448         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
48449
48450 2007-03-24  Bruno Haible  <bruno@clisp.org>
48451
48452         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
48453         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
48454
48455         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
48456         * modules/utf8-ucs4: Turn into a symbolic link to module
48457         unistr/u8-mbtouc.
48458
48459         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
48460         utf8-ucs4-unsafe.
48461         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
48462         unistr/u8-mbtouc-unsafe.
48463
48464         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
48465         * modules/utf16-ucs4: Turn into a symbolic link to module
48466         unistr/u16-mbtouc.
48467
48468         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48469         utf16-ucs4-unsafe.
48470         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48471         unistr/u16-mbtouc-unsafe.
48472
48473         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48474         * modules/ucs4-utf8: Turn into a symbolic link to module
48475         unistr/u8-ubtomb.
48476
48477         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48478         * modules/ucs4-utf16: Turn into a symbolic link to module
48479         unistr/u16-ubtomb.
48480
48481 2007-03-24  Bruno Haible  <bruno@clisp.org>
48482
48483         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48484         Enable the function only if HAVE_INLINE.
48485         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48486         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48487         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48488         Enable the function only if HAVE_INLINE.
48489         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48490         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48491         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48492         Enable the function only if HAVE_INLINE.
48493         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48494         Enable the function only if HAVE_INLINE.
48495         * modules/utf8-ucs4: Update.
48496         * modules/utf8-ucs4-unsafe: Update.
48497         * modules/utf16-ucs4: Update.
48498         * modules/utf16-ucs4-unsafe: Update.
48499         * modules/ucs4-utf8: Update.
48500         * modules/ucs4-utf16: Update.
48501
48502 2007-03-24  Bruno Haible  <bruno@clisp.org>
48503
48504         * lib/utf8-ucs4.h: Remove file.
48505         * lib/utf8-ucs4-unsafe.h: Remove file.
48506         * lib/utf16-ucs4.h: Remove file.
48507         * lib/utf16-ucs4-unsafe.h: Remove file.
48508         * lib/ucs4-utf8.h: Remove file.
48509         * lib/ucs4-utf16.h: Remove file.
48510         * lib/unistr.h: Include their previous contents.
48511         * m4/utf-ucs4.m4: Remove file.
48512         * m4/ucs4-utf.m4: Remove file.
48513         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
48514         (Depends-on): Add unistr/base.
48515         (configure.ac): Remove gl_UTF_UCS4.
48516         (Makefile.am): Update.
48517         (Include): Change to unistr.h.
48518         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
48519         (Depends-on): Add unistr/base.
48520         (configure.ac): Remove gl_UTF_UCS4.
48521         (Makefile.am): Update.
48522         (Include): Change to unistr.h.
48523         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
48524         (Depends-on): Add unistr/base.
48525         (configure.ac): Remove gl_UTF_UCS4.
48526         (Makefile.am): Update.
48527         (Include): Change to unistr.h.
48528         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
48529         (Depends-on): Add unistr/base.
48530         (configure.ac): Remove gl_UTF_UCS4.
48531         (Makefile.am): Update.
48532         (Include): Change to unistr.h.
48533         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
48534         (Depends-on): Add unistr/base.
48535         (configure.ac): Remove gl_UCS4_UTF.
48536         (Makefile.am): Update.
48537         (Include): Change to unistr.h.
48538         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
48539         (Depends-on): Add unistr/base.
48540         (configure.ac): Remove gl_UCS4_UTF.
48541         (Makefile.am): Update.
48542         (Include): Change to unistr.h.
48543         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
48544         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
48545         utf8-ucs4-unsafe.h.
48546         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
48547         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
48548         utf16-ucs4-unsafe.h.
48549         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
48550         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
48551         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
48552         * lib/unistr/u8-strchr.c: Likewise.
48553         * lib/unistr/u8-strrchr.c: Likewise.
48554         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
48555         * lib/unistr/u16-strchr.c: Likewise.
48556         * lib/unistr/u16-strrchr.c: Likewise.
48557         * lib/striconveh.c: Update.
48558         * lib/linebreak.c: Update.
48559
48560 2007-03-24  Bruno Haible  <bruno@clisp.org>
48561
48562         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
48563         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
48564
48565 2007-03-22  Bruno Haible  <bruno@clisp.org>
48566
48567         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
48568
48569 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48570
48571         * MODULES.html.sh (File system functions): New module write-any-file.
48572         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
48573         * m4/write-any-file.m4: New files.
48574
48575 2007-03-23  Eric Blake  <ebb9@byu.net>
48576
48577         * gnulib-tool: Rearrange space-tab sequences, since some editors
48578         like to eat them.
48579
48580 2007-03-23  Eric Blake  <ebb9@byu.net>
48581
48582         * lib/version-etc.c (version_etc_va): Update license wording to
48583         be more concise.  Recommended by Richard Stallman.
48584
48585 2007-03-22  Bruno Haible  <bruno@clisp.org>
48586
48587         * lib/poll.c (MSG_PEEK): New fallback definition.
48588
48589 2007-03-22  Bruno Haible  <bruno@clisp.org>
48590
48591         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
48592         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
48593         (main): Update.
48594         Fixes a compilation error on BeOS.
48595
48596 2007-03-22  Bruno Haible  <bruno@clisp.org>
48597
48598         * modules/frexpl-tests: New file.
48599         * tests/test-frexpl.c: New file.
48600
48601         * modules/frexpl: New file.
48602         * m4/frexpl.m4: New file.
48603         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
48604         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
48605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
48606         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
48607         (Depends-on): Add frexpl. Remove isnanl-nolibm.
48608         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
48609
48610 2007-03-22  Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/frexpl.c: Share code with lib/frexp.c.
48613         * modules/mathl (Files): Add lib/frexp.c.
48614         (Depends-on): Add isnanl-nolibm.
48615
48616 2007-03-22  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/printf-frexp (Files): Add m4/frexp.m4.
48619         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
48620         only if the found frexp function actually works.
48621
48622 2007-03-22  Bruno Haible  <bruno@clisp.org>
48623
48624         * lib/frexp.c: Remove older implementation that uses divisions.
48625
48626 2007-03-21  Bruno Haible  <bruno@clisp.org>
48627
48628         * modules/frexp-tests: New file.
48629         * tests/test-frexp.c: New file.
48630
48631         * modules/frexp: New file.
48632         * lib/frexp.c: New file.
48633         * m4/frexp.m4: New file.
48634         * lib/math_.h (frexp): New declaration.
48635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
48636         REPLACE_FREXP.
48637         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
48638
48639 2007-03-21  Bruno Haible  <bruno@clisp.org>
48640
48641         * modules/isnanl-tests: New file.
48642         * tests/test-isnanl.c: New file.
48643
48644         * modules/isnanl: New file.
48645         * lib/isnanl.h: New file.
48646         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
48647         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
48648         gl_FUNC_ISNANL_WORKS.
48649         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
48650         New macros.
48651
48652 2007-03-21  Bruno Haible  <bruno@clisp.org>
48653
48654         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
48655         lib/isnanl.h.
48656         (Include): Update.
48657         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
48658         * lib/vasnprintf.c: Update.
48659         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
48660         tests/test-isnanl.h, remove tests/test-isnanl.c.
48661         (Makefile.am): Update.
48662         * tests/test-isnanl-nolibm.c: New file.
48663         * tests/test-isnanl.h: New file.
48664         * tests/test-isnanl.c: Remove file.
48665
48666 2007-03-21  Jim Meyering  <jim@meyering.net>
48667
48668         When trying to open ".", treat ESTALE like EACCES.
48669         * lib/savewd.c (savewd_save): Resort to forking not just upon
48670         failure with EACCES, but also when errno is ESTALE.
48671
48672 2007-03-20  Bruno Haible  <bruno@clisp.org>
48673
48674         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
48675         Needed on AIX 5.1. Reported by Matthew Woehlke.
48676
48677 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48678
48679         Suggestions by Bruno Haible:
48680         * lib/acl-internal.h: Include "gettext.h" rather than rolling
48681         our own.
48682         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
48683         * modules/acl (Depends-on): Add gettext.
48684
48685 2007-03-19  Bruno Haible  <bruno@clisp.org>
48686
48687         * modules/iconvme: Remove file.
48688         * lib/iconvme.h: Remove file.
48689         * lib/iconvme.c: Remove file.
48690         * m4/iconvme.m4: Remove file.
48691
48692 2007-03-19  Bruno Haible  <bruno@clisp.org>
48693
48694         * doc/relocatable-maint.texi: Break long shell script line.
48695         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48696
48697 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48698
48699         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
48700         handle file_has_acl.
48701         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
48702         * lib/acl.c: Move header inclusions and related macro defns into
48703         lib/acl-internal.h.
48704         (S_ISLNK): Remove defn, since that's now done for us.
48705         (file_has_acl): Move to lib/file-has-acl.c.
48706         Call acl_trivial if available.  This is the crucial part of the fix.
48707         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
48708         shared within the library.  Rewrite a bit, partly to make it compatible
48709         with the GNU coding style.
48710         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
48711         Remove unnecessary double-quotes.
48712         Don't test for acl_to_text; the build will catch that.
48713         Replace acl_entries if it doesn't exist and it is needed.
48714         Check for -lsec and acl_trivial (as used on Solaris 10).
48715         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
48716         lib/file-has-acl.c.
48717         (Depends-on): Add sys_stat, for S_ISLNK.
48718
48719 2007-03-19  Ben Pfaff  <blp@gnu.org>
48720
48721         * doc/gnulib.texi: Fix typos.
48722         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48723
48724 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48725
48726         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
48727         If size is zero here, buf must be zero.
48728
48729 2007-03-19  Simon Josefsson  <simon@josefsson.org>
48730
48731         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
48732         <bruno@clisp.org>.
48733
48734 2007-03-18  Bruno Haible  <bruno@clisp.org>
48735
48736         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
48737         Suggested by Eric Blake.
48738
48739 2007-03-18  Ben Pfaff  <blp@gnu.org>
48740
48741         * doc/relocatable.texi: Recommend using as prefix a directory
48742         that does not exist and will never be created.  Based on
48743         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
48744         and others.
48745
48746 2007-03-17  Bruno Haible  <bruno@clisp.org>
48747
48748         * lib/fchownat.c: Include lchown.h.
48749
48750 2007-03-17  Bruno Haible  <bruno@clisp.org>
48751
48752         Fix endless loop when the given allocated size was > INT_MAX.
48753         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
48754         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
48755         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
48756         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
48757         * lib/sprintf.c (sprintf): Likewise.
48758
48759 2007-03-17  Bruno Haible  <bruno@clisp.org>
48760
48761         * tests/test-argp-2.sh (func_compare): Output a context diff.
48762
48763 2007-03-17  Bruno Haible  <bruno@clisp.org>
48764
48765         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
48766         locale's decimal-point character.
48767
48768 2007-03-17  Bruno Haible  <bruno@clisp.org>
48769
48770         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
48771         before comparing it. Needed because on some platforms (e.g. x86) a
48772         'long double' occupies less bytes than sizeof (long double).
48773
48774 2007-03-17  Bruno Haible  <bruno@clisp.org>
48775
48776         * tests/test-crc.c (main): Make printf statements 64-bit clean.
48777         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
48778         * tests/test-getaddrinfo.c (simple): Likewise.
48779         * tests/test-read-file.c (main): Likewise.
48780
48781 2007-03-17  Bruno Haible  <bruno@clisp.org>
48782
48783         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
48784
48785 2007-03-17  Bruno Haible  <bruno@clisp.org>
48786
48787         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
48788         unused variable.
48789
48790 2007-03-17  Bruno Haible  <bruno@clisp.org>
48791
48792         * tests/test-c-strcasecmp.c: Include c-strcase.h.
48793         * tests/test-c-strncasecmp.c: Likewise.
48794
48795 2007-03-17  Bruno Haible  <bruno@clisp.org>
48796
48797         * modules/stdlib (Depends-on): Add unistd.
48798         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
48799         Needed for MacOS X 10.3.
48800
48801 2007-03-17  Bruno Haible  <bruno@clisp.org>
48802
48803         * lib/unistr/u-strdup.h: Include <stdlib.h>.
48804
48805 2007-03-17  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
48808
48809 2007-03-17  Bruno Haible  <bruno@clisp.org>
48810
48811         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
48812         to reflect files copied from gnulib (with or without modifications).
48813         Suggested by Jim Meyering.
48814
48815 2007-03-17  Eric Blake  <ebb9@byu.net>
48816
48817         * NEWS: Document stdlib change from 2007-02-18.
48818
48819 2007-03-17  Jim Meyering  <jim@meyering.net>
48820
48821         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
48822         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
48823         someone uses a name containing shell meta-characters.
48824         Reported by Alfred M. Szmidt.
48825
48826         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
48827
48828 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48829
48830         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
48831         and copy gettext configuration files only if configure.ac contains
48832         a use of AM_GNU_GETTEXT_VERSION.
48833
48834 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48835
48836         * build-aux/bootstrap (gnulib_name): New variable.
48837         (gnulib_tool_options): Use it.
48838
48839 2007-03-13  Simon Josefsson  <simon@josefsson.org>
48840
48841         * tests/test-des.c: Use new namespace.
48842
48843 2007-03-15  Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
48846         Reported by James Youngman <jay@gnu.org>.
48847
48848 2007-03-15  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
48851         declared prototype. Needed with cc on OSF/1 5.1.
48852
48853 2007-03-15  Bruno Haible  <bruno@clisp.org>
48854
48855         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
48856         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
48857         (struct gl_list_implementation): Add dispose_fn argument to the
48858         'create_empty', 'create' methods.
48859         (struct gl_list_impl_base): Add field 'dispose_fn'.
48860         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
48861         argument.
48862         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
48863         dispose_fn argument.
48864         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
48865         dispose_fn on the dropped values.
48866         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
48867         dispose_fn argument.
48868         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
48869         dropped values.
48870         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
48871         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48872         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
48873         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48874         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
48875         argument.
48876         (gl_tree_list_free): Call dispose_fn on the dropped values.
48877         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
48878         the dropped values.
48879         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48880         Add dispose_fn argument.
48881         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
48882         Call dispose_fn on the dropped values.
48883         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
48884         Add dispose_fn argument.
48885         (gl_sublist_create): Initialize the 'dispose_fn' field.
48886         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
48887         * tests/test-array_list.c (main): Update.
48888         * tests/test-carray_list.c (main): Update.
48889         * tests/test-avltree_list.c (main): Update.
48890         * tests/test-rbtree_list.c (main): Update.
48891         * tests/test-avltreehash_list.c (main): Update.
48892         * tests/test-rbtreehash_list.c (main): Update.
48893         * tests/test-linked_list.c (main): Update.
48894         * tests/test-linkedhash_list.c (main): Update.
48895         * tests/test-array_oset.c (main): Update.
48896
48897 2007-03-15  Bruno Haible  <bruno@clisp.org>
48898
48899         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
48900         (gl_oset_create_empty): Add dispose_fn argument.
48901         (struct gl_oset_implementation): Add dispose_fn argument to
48902         'create_empty' method.
48903         (struct gl_oset_impl_base): Add dispose_fn field.
48904         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
48905         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
48906         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
48907         values.
48908         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
48909         (gl_tree_oset_free): Call dispose_fn on the dropped values.
48910         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48911         dropped value.
48912         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48913         dropped value.
48914         * tests/test-array_oset.c (main): Update.
48915         * tests/test-avltree_oset.c (main): Update.
48916         * tests/test-rbtree_oset.c (main): Update.
48917         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
48918
48919 2007-03-13  Bruno Haible  <bruno@clisp.org>
48920
48921         * tests/test-stdbool.c (i): Update after last patch.
48922
48923 2007-03-12  Bruno Haible  <bruno@clisp.org>
48924
48925         * lib/quotearg.c: Include <wctype.h> early, before the definition of
48926         the iswprint macro. Needed on Solaris 2.5.1.
48927
48928 2007-03-12  Bruno Haible  <bruno@clisp.org>
48929
48930         * tests/test-printf-frexp.c (main): Declare x as volatile.
48931
48932 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48933
48934         * doc/gnulib.texi (Build robot for gnulib): New section.
48935
48936 2007-03-12  Jim Meyering  <jim@meyering.net>
48937
48938         * build-aux/bootstrap: New file.
48939         * build-aux/bootstrap.conf: New file, from coreutils.
48940
48941 2007-03-11  Bruno Haible  <bruno@clisp.org>
48942
48943         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
48944
48945 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48946
48947         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
48948         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
48949         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
48950
48951 2007-03-11  Bruno Haible  <bruno@clisp.org>
48952
48953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
48954         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
48955
48956 2007-03-11  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
48959         formula. Needed for SunPRO C 5.0.
48960
48961 2007-03-11  Bruno Haible  <bruno@clisp.org>
48962
48963         * modules/long-options (Depends-on): Add getopt.
48964
48965 2007-03-11  Bruno Haible  <bruno@clisp.org>
48966
48967         * modules/modechange (Depends-on): Add stdbool.
48968
48969 2007-03-11  Bruno Haible  <bruno@clisp.org>
48970
48971         * modules/i-ring (Depends-on): Add stdbool.
48972
48973 2007-03-11  Bruno Haible  <bruno@clisp.org>
48974
48975         * modules/gc-des (Depends-on): Add stdbool.
48976
48977 2007-03-11  Bruno Haible  <bruno@clisp.org>
48978
48979         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
48980
48981 2007-03-11  Bruno Haible  <bruno@clisp.org>
48982
48983         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
48984
48985 2007-03-11  Bruno Haible  <bruno@clisp.org>
48986
48987         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
48988
48989 2007-03-11  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/vasnprintf.c (sprintf): Undefine.
48992
48993 2007-03-11  Bruno Haible  <bruno@clisp.org>
48994
48995         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
48996         initializers in SunPRO C and Compaq C compilers.
48997
48998 2007-03-11  Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
49001         decrementing code ANSI C compliant.
49002
49003 2007-03-11  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
49006         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
49007
49008 2007-03-11  Bruno Haible  <bruno@clisp.org>
49009
49010         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
49011         <stdbool.h> substitute doesn't pass.
49012
49013 2007-03-11  Bruno Haible  <bruno@clisp.org>
49014
49015         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
49016
49017 2007-03-11  Bruno Haible  <bruno@clisp.org>
49018
49019         * gnulib-tool (func_create_megatestdir): Create also an autobuild
49020         script, for submission to autobuild.josefsson.org.
49021
49022 2007-03-10  Bruno Haible  <bruno@clisp.org>
49023
49024         * modules/canonicalize-lgpl-tests: New file.
49025         * tests/test-canonicalize-lgpl.sh: New file.
49026         * tests/test-canonicalize-lgpl.c: New file.
49027
49028         * modules/c-strcase-tests: New file.
49029         * tests/test-c-strcase.sh: New file.
49030         * tests/test-c-strcasecmp.c: New file.
49031         * tests/test-c-strncasecmp.c: New file.
49032
49033         * modules/atexit-tests: New file.
49034         * tests/test-atexit.sh: New file.
49035         * tests/test-atexit.c: New file.
49036
49037 2007-03-10  Bruno Haible  <bruno@clisp.org>
49038
49039         * tests/test-binary-io.sh: Use temporary filenames that are not so
49040         likely to clash with those of other tests (in a parallel make).
49041         * tests/test-binary-io.c: Likewise.
49042
49043 2007-03-10  Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
49046         fallback; use #error instead.
49047         Suggested by Simon Josefsson.
49048
49049 2007-03-10  Bruno Haible  <bruno@clisp.org>
49050
49051         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
49052         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
49053         first and the last.
49054
49055 2007-03-10  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
49058
49059 2007-03-10  Bruno Haible  <bruno@clisp.org>
49060
49061         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
49062         "make distcheck".
49063         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
49064         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
49065         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
49066
49067 2007-03-10  Bruno Haible  <bruno@clisp.org>
49068
49069         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
49070         variable.
49071         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
49072         variable.
49073
49074 2007-03-09  Eric Blake  <ebb9@byu.net>
49075         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
49076
49077         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
49078         types are not being provided by gnulib.
49079         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
49080         types are supported.
49081
49082 2007-03-10  Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/stdio_.h (__attribute__): New macro.
49085         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
49086         vsprintf): Specify __attribute__ __format__ for GCC.
49087         Suggested by Eric Blake.
49088
49089 2007-03-09  Bruno Haible  <bruno@clisp.org>
49090
49091         * modules/printf-posix-tests: New file.
49092         * tests/test-printf-posix.sh: New file.
49093         * tests/test-printf-posix.c: New file.
49094
49095         * modules/printf-posix: New file.
49096         * lib/printf.c: New file.
49097         * m4/printf-posix-rpl.m4: New file.
49098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
49099         REPLACE_PRINTF.
49100         * lib/stdio_.h (printf): New declaration.
49101         (format, __format__, ____printf____, ____scanf____, ____strftime____,
49102         ____strfmon____): New macros.
49103         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
49104         REPLACE_PRINTF.
49105
49106 2007-03-09  Bruno Haible  <bruno@clisp.org>
49107
49108         * tests/test-vasnprintf-posix2.sh: New file.
49109         * tests/test-vasnprintf-posix2.c: New file.
49110         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
49111         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49112         (Makefile.am): Activate test-vasnprintf-posix2.sh.
49113
49114         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
49115         a locale dependent decimal point, rather than always '.'.
49116
49117 2007-03-09  Eric Blake  <ebb9@byu.net>
49118
49119         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
49120         spite of platforms like Tandem/NSK that define it to -1.
49121
49122 2007-03-08  Bruno Haible  <bruno@clisp.org>
49123
49124         * modules/vprintf-posix-tests: New file.
49125         * tests/test-vprintf-posix.sh: New file.
49126         * tests/test-vprintf-posix.c: New file.
49127         * tests/test-printf-posix.h: New file.
49128
49129         * modules/vprintf-posix: New file.
49130         * lib/vprintf.c: New file.
49131         * m4/vprintf-posix.m4: New file.
49132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
49133         REPLACE_VPRINTF.
49134         * lib/stdio_.h (vprintf): New declaration.
49135         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
49136         REPLACE_VPRINTF.
49137
49138 2007-03-08  Bruno Haible  <bruno@clisp.org>
49139
49140         * modules/fprintf-posix-tests: New file.
49141         * tests/test-fprintf-posix.sh: New file.
49142         * tests/test-fprintf-posix.c: New file.
49143
49144         * modules/fprintf-posix: New file.
49145         * lib/fprintf.c: New file.
49146         * m4/fprintf-posix.m4: New file.
49147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
49148         REPLACE_FPRINTF.
49149         * lib/stdio_.h (fprintf): New declaration.
49150         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
49151         REPLACE_FPRINTF.
49152
49153 2007-03-08  Bruno Haible  <bruno@clisp.org>
49154
49155         * modules/vfprintf-posix-tests: New file.
49156         * tests/test-vfprintf-posix.sh: New file.
49157         * tests/test-vfprintf-posix.c: New file.
49158         * tests/test-fprintf-posix.h: New file.
49159         * tests/test-fprintf-posix.out: New file.
49160
49161         * modules/vfprintf-posix: New file.
49162         * lib/vfprintf.c: New file.
49163         * m4/vfprintf-posix.m4: New file.
49164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
49165         REPLACE_VFPRINTF.
49166         * lib/stdio_.h (vfprintf): New declaration.
49167         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
49168         REPLACE_VFPRINTF.
49169
49170 2007-03-08  Bruno Haible  <bruno@clisp.org>
49171
49172         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
49173
49174 2007-03-08  Bruno Haible  <bruno@clisp.org>
49175
49176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
49177         instead of 'expr' invocations.
49178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49183         Suggested by Paul Eggert.
49184
49185 2007-03-08  Bruno Haible  <bruno@clisp.org>
49186
49187         * modules/fseterr-tests: New file.
49188         * tests/test-fseterr.c: New file.
49189
49190         * modules/fseterr: New file.
49191         * lib/fseterr.h: New file.
49192         * lib/fseterr.c: New file.
49193
49194 2007-03-08  Bruno Haible  <bruno@clisp.org>
49195
49196         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
49197         * lib/getopt_.h: Likewise.
49198         * lib/mbswidth.h: Likewise.
49199         * lib/setenv.h: Likewise.
49200         * lib/vasnprintf.h: Likewise.
49201         * lib/vasprintf.h: Likewise.
49202         * lib/verror.h: Likewise.
49203         * lib/xsetenv.h: Likewise.
49204         * lib/xvasprintf.h: Likewise.
49205
49206 2007-03-08  Jim Meyering  <jim@meyering.net>
49207
49208         * users.txt: Add parted.
49209
49210         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
49211
49212 2007-03-07  Bruno Haible  <bruno@clisp.org>
49213
49214         * m4/printf.m4: Make the shell script snippets copy&pastable.
49215
49216 2007-03-02  Bruno Haible  <bruno@clisp.org>
49217
49218         * lib/netinet_in_.h: New file.
49219         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
49220         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
49221         * modules/netinet_in (Files): Add lib/netinet_in_.h.
49222         (Depends-on): Add absolute-header.
49223         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
49224         into netinet/in.h.
49225
49226 2007-03-03  Bruno Haible  <bruno@clisp.org>
49227
49228         * lib/sys_select_.h: New file.
49229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
49230         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
49231         * modules/sys_select (Files): Add lib/sys_select_.h.
49232         (Depends-on): Add absolute-header.
49233         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
49234         into sys/select.h.
49235
49236 2007-03-02  Bruno Haible  <bruno@clisp.org>
49237
49238         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
49239         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
49240         values.
49241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
49242         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
49243         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
49244         * modules/sys_socket (Depends-on): Add absolute-header.
49245         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
49246         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
49247         (Include): Remove requirement of inclusion of <sys/types.h>.
49248
49249 2007-03-02  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/byteswap_.h (bswap_32): Fix formula.
49252
49253 2007-03-06  Bruno Haible  <bruno@clisp.org>
49254
49255         * modules/sprintf-posix-tests: New file.
49256         * tests/test-sprintf-posix.c: New file.
49257
49258         * modules/sprintf-posix: New file.
49259         * lib/sprintf.c: New file.
49260         * m4/sprintf-posix.m4: New file.
49261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
49262         REPLACE_SPRINTF.
49263         * lib/stdio_.h (sprintf): New declaration.
49264         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
49265         REPLACE_SPRINTF.
49266
49267 2007-03-06  Bruno Haible  <bruno@clisp.org>
49268
49269         * modules/vsprintf-posix-tests: New file.
49270         * tests/test-vsprintf-posix.c: New file.
49271         * tests/test-sprintf-posix.h: New file.
49272
49273         * modules/vsprintf-posix: New file.
49274         * lib/vsprintf.c: New file.
49275         * m4/vsprintf-posix.m4: New file.
49276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
49277         REPLACE_VSPRINTF.
49278         * lib/stdio_.h (vsprintf): New declaration.
49279         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
49280         REPLACE_VSPRINTF.
49281
49282 2007-03-06  Bruno Haible  <bruno@clisp.org>
49283
49284         * modules/vsnprintf (Depend-on): Remove minmax.
49285
49286 2007-03-06  Bruno Haible  <bruno@clisp.org>
49287
49288         * modules/snprintf-posix-tests: New file.
49289         * tests/test-snprintf-posix.c: New file.
49290
49291         * modules/snprintf-posix: New file.
49292         * m4/snprintf-posix.m4: New file.
49293         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
49294         gl_FUNC_SNPRINTF.
49295         (gl_FUNC_SNPRINTF): Invoke it.
49296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
49297         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
49298         is set.
49299         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
49300
49301 2007-03-06  Bruno Haible  <bruno@clisp.org>
49302
49303         * modules/vsnprintf-posix-tests: New file.
49304         * tests/test-vsnprintf-posix.c: New file.
49305         * tests/test-snprintf-posix.h: New file.
49306
49307         * modules/vsnprintf-posix: New file.
49308         * m4/vsnprintf-posix.m4: New file.
49309         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
49310         gl_FUNC_VSNPRINTF.
49311         (gl_FUNC_VSNPRINTF): Invoke it.
49312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
49313         * lib/stdio_.h (vsnprintf): Define as a replacement if
49314         REPLACE_VSNPRINTF is set.
49315         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
49316
49317 2007-03-06  Bruno Haible  <bruno@clisp.org>
49318
49319         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
49320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
49321
49322 2007-03-06  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
49325         (asinl): Declare also if HAVE_DECL_ASINL is set.
49326         (atanl): Declare also if HAVE_DECL_ATANL is set.
49327         (ceill): Declare also if HAVE_DECL_CEILL is set.
49328         (cosl): Declare also if HAVE_DECL_COSL is set.
49329         (expl): Declare also if HAVE_DECL_EXPL is set.
49330         (floorl): Declare also if HAVE_DECL_FLOORL is set.
49331         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
49332         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49333         (logl): Declare also if HAVE_DECL_LOGL is set.
49334         (sinl): Declare also if HAVE_DECL_SINL is set.
49335         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49336         (tanl): Declare also if HAVE_DECL_TANL is set.
49337         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49340         declaration of frexpl, ldexpl.
49341         * modules/printf-frexpl (Depends-on): Add math.
49342         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49343
49344 2007-03-05  Bruno Haible  <bruno@clisp.org>
49345
49346         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49347         frexpl and ldexpl are declared.
49348         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49349
49350 2007-03-05  Bruno Haible  <bruno@clisp.org>
49351
49352         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49353         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49354
49355 2007-03-05  Bruno Haible  <bruno@clisp.org>
49356
49357         * lib/stdio_.h: Include <stddef.h>.
49358
49359 2007-03-05  Bruno Haible  <bruno@clisp.org>
49360
49361         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
49362
49363 2007-03-05  Bruno Haible  <bruno@clisp.org>
49364
49365         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
49366         NetBSD 4, from Ralf Wildenhues.
49367
49368 2007-03-04  Bruno Haible  <bruno@clisp.org>
49369
49370         * lib/vasprintf.h: Update #if logic for the case when the functions
49371         exist but are overridden.
49372
49373 2007-03-04  Bruno Haible  <bruno@clisp.org>
49374
49375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
49376         implementations: glibc-2.4 and MacOS X 10.3.
49377         * tests/test-vasnprintf-posix.c (test_function): Test also the case
49378         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
49379         * tests/test-vasprintf-posix.c (test_function): Likewise.
49380
49381 2007-03-04  Bruno Haible  <bruno@clisp.org>
49382
49383         * modules/vasprintf-posix-tests: New file.
49384         * tests/test-vasprintf-posix.c: New file.
49385
49386         * modules/vasprintf-posix: New file.
49387         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
49388         defined.
49389         * m4/vasprintf-posix.m4: New file.
49390         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
49391         gl_FUNC_VASPRINTF.
49392         (gl_FUNC_VASPRINTF): Invoke it.
49393         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
49394         here.
49395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
49396
49397 2007-03-04  Bruno Haible  <bruno@clisp.org>
49398
49399         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
49400         REPLACE_GETTIMEOFDAY.
49401         * modules/sys_time (Makefile.am): Likewise.
49402         * m4/sys_time_h.m4: Likewise.
49403         * m4/gettimeofday.m4: Likewise.
49404
49405 2007-03-04  Bruno Haible  <bruno@clisp.org>
49406
49407         * modules/vasnprintf-posix-tests: New file.
49408         * tests/test-vasnprintf-posix.c: New file.
49409
49410         * modules/vasnprintf-posix: New file.
49411         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
49412         printf-frexpl.h.
49413         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
49414         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
49415         REPLACE_VASNPRINTF is defined.
49416         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
49417         gl_FUNC_VASNPRINTF.
49418         (gl_FUNC_VASNPRINTF): Invoke it.
49419         * m4/vasnprintf-posix.m4: New file.
49420         * m4/printf.m4: New file.
49421
49422 2007-03-04  Bruno Haible  <bruno@clisp.org>
49423
49424         Compile progreloc.c only if --enable-relocatable is specified.
49425         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
49426         if --enable-relocatable was specified.
49427         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
49428         lib_SOURCES.
49429
49430 2007-03-04  Jim Meyering  <jim@meyering.net>
49431
49432         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
49433         Use it consistently, rather than enumerating errno constants.
49434
49435 2007-03-04  Bruno Haible  <bruno@clisp.org>
49436
49437         * modules/xvasprintf-tests: New file.
49438         * tests/test-xvasprintf.c: New file.
49439
49440         * modules/vasprintf-tests: New file.
49441         * tests/test-vasprintf.c: New file.
49442
49443         * modules/vasnprintf-tests: New file.
49444         * tests/test-vasnprintf.c: New file.
49445
49446         * modules/vsnprintf-tests: New file.
49447         * tests/test-vsnprintf.c: New file.
49448
49449         * modules/snprintf-tests: New file.
49450         * tests/test-snprintf.c: New file.
49451
49452 2007-03-04  Bruno Haible  <bruno@clisp.org>
49453
49454         Compile relocatable.c only if --enable-relocatable is specified.
49455         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
49456         gl_RELOCATABLE_LIBRARY.
49457         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
49458         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
49459         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
49460         gl_RELOCATABLE_LIBRARY.
49461         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
49462         (Makefile.am): Remove lib_SOURCES.
49463         * modules/relocatable-lib-lgpl (configure.ac): Invoke
49464         gl_RELOCATABLE_LIBRARY.
49465         (Makefile.am): Remove lib_SOURCES.
49466         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
49467         always.
49468         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49469         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49470
49471 2007-03-04  Bruno Haible  <bruno@clisp.org>
49472
49473         * modules/argmatch-tests: New file.
49474         * tests/test-argmatch.c: New file.
49475
49476         * tests/test-allocsa.c (main): Halve the number of loop runs.
49477
49478         * modules/alloca-opt-tests: New file.
49479         * tests/test-alloca-opt.c: New file.
49480
49481 2007-03-04  Jim Meyering  <jim@meyering.net>
49482
49483         Work around difference between Linux ACLs and Solaris 10 ZFS.
49484         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49485         for EINVAL.
49486
49487 2007-03-03  Bruno Haible  <bruno@clisp.org>
49488
49489         * modules/relocatable-prog (Depends-on): Add back progreloc's
49490         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49491
49492 2007-03-03  Bruno Haible  <bruno@clisp.org>
49493
49494         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49495         * modules/relocatable-lib: New file.
49496
49497 2007-03-03  Bruno Haible  <bruno@clisp.org>
49498
49499         * modules/relocatable-prog: Renamed from modules/relocatable.
49500         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49501
49502 2007-03-03  Bruno Haible  <bruno@clisp.org>
49503
49504         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49505         m4/relocatable-lib.m4.
49506         (Depends-on): Remove 'relocatable'.
49507         (configure.ac): Add gl_RELOCATABLE_NOP.
49508
49509 2007-03-03  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/relocatable-prog-wrapper: New file.
49512         * modules/relocatable (Depends-on): Add it. Remove all other
49513         dependencies except progname.
49514         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
49515
49516         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
49517         (gl_FUNC_STRERROR): Nop.
49518         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
49519
49520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
49521         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
49522
49523         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
49524         (gl_FUNC_READLINK): Update.
49525
49526         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
49527
49528 2007-03-03  Bruno Haible  <bruno@clisp.org>
49529
49530         * lib/xreadlink.c: Include <unistd.h> unconditionally.
49531         * modules/xreadlink (Depends-on): Add unistd.
49532         * modules/xreadlink-with-size (Depends-on): Likewise.
49533
49534 2007-03-03  Bruno Haible  <bruno@clisp.org>
49535
49536         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
49537         extracted from gt_FUNC_SETENV.
49538         (gt_FUNC_SETENV): Remove macro.
49539         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
49540         remove gt_FUNC_SETENV.
49541
49542 2007-03-03  Bruno Haible  <bruno@clisp.org>
49543
49544         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
49545         ENABLE_RELOCATABLE here.
49546         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
49547
49548 2007-03-03  Bruno Haible  <bruno@clisp.org>
49549
49550         * modules/rbtreehash-list-tests (Depends-on): Add progname.
49551         * tests/test-rbtreehash_list.c: Include progname.h.
49552         (main): Call set_program_name.
49553
49554         * modules/rbtree-oset-tests (Depends-on): Add progname.
49555         * tests/test-rbtree_oset.c: Include progname.h.
49556         (main): Call set_program_name.
49557
49558         * modules/rbtree-list-tests (Depends-on): Add progname.
49559         * tests/test-rbtree_list.c: Include progname.h.
49560         (main): Call set_program_name.
49561
49562         * modules/linked-list-tests (Depends-on): Add progname.
49563         * tests/test-linked_list.c: Include progname.h.
49564         (main): Call set_program_name.
49565
49566 2007-03-03  Bruno Haible  <bruno@clisp.org>
49567
49568         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
49569         All uses of __restrict changed to _Restrict_.
49570         * lib/glob_.h (__restrict): Remove macro.
49571
49572 2007-03-02  Bruno Haible  <bruno@clisp.org>
49573
49574         * modules/gettext (configure.ac): Require gettext infrastructure
49575         from version 0.16.1.
49576
49577 2007-03-02  Bruno Haible  <bruno@clisp.org>
49578
49579         * modules/linkedhash-list-tests (Depends-on): Add progname.
49580         * tests/test-linkedhash_list.c: Include progname.h.
49581         (main): Call set_program_name.
49582
49583         * modules/carray-list-tests (Depends-on): Add progname.
49584         * tests/test-carray_list.c: Include progname.h.
49585         (main): Call set_program_name.
49586
49587         * modules/avltreehash-list-tests (Depends-on): Add progname.
49588         * tests/test-avltreehash_list.c: Include progname.h.
49589         (main): Call set_program_name.
49590
49591         * modules/avltree-oset-tests (Depends-on): Add progname.
49592         * tests/test-avltree_oset.c: Include progname.h.
49593         (main): Call set_program_name.
49594
49595         * modules/avltree-list-tests (Depends-on): Add progname.
49596         * tests/test-avltree_list.c: Include progname.h.
49597         (main): Call set_program_name.
49598
49599         * modules/array-oset-tests (Depends-on): Add progname.
49600         * tests/test-array_oset.c: Include progname.h.
49601         (main): Call set_program_name.
49602
49603         * modules/array-list-tests (Depends-on): Add progname.
49604         * tests/test-array_list.c: Include progname.h.
49605         (main): Call set_program_name.
49606
49607         * modules/argp-tests (Depends-on): Add progname.
49608         * tests/test-argp.c: Include argp.h first. Include progname.h.
49609         (main): Call set_program_name.
49610
49611 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         * doc/gnulib-tool.texi (Initial import): Reword description of
49614         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
49615         limited effect even if defined after the first system include.
49616
49617 2007-03-01  Bruno Haible  <bruno@clisp.org>
49618
49619         * build-aux/config.libpath: Update to libtool-1.5.22.
49620         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49621
49622 2007-03-01  Bruno Haible  <bruno@clisp.org>
49623
49624         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
49625         foo_CFLAGS.
49626         Reported by Ralf Wildenhues.
49627
49628 2007-03-01  Bruno Haible  <bruno@clisp.org>
49629
49630         * build-aux/install-reloc: Remove object files left over by some
49631         compilers.
49632         Reported by Ralf Wildenhues.
49633
49634 2007-03-01  Bruno Haible  <bruno@clisp.org>
49635
49636         * build-aux/install-reloc: Break long lines.
49637
49638 2007-03-01  Bruno Haible  <bruno@clisp.org>
49639
49640         * doc/relocatable.texi: Document that it may not work on OpenBSD.
49641         Reported by Ralf Wildenhues.
49642
49643 2007-03-01  Bruno Haible  <bruno@clisp.org>
49644
49645         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
49646         include ordering constraints.
49647
49648 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49649
49650         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
49651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
49652         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
49653         as another example.
49654         * lib/time_.h: Fix misspelling.
49655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49656         Require gl_HEADER_TIME_H_DEFAULTS.
49657         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
49658         * m4/time_r.m4 (gl_TIME_R): Likewise.
49659         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
49660
49661 2007-03-01  Bruno Haible  <bruno@clisp.org>
49662
49663         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
49664         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49665
49666 2007-03-01  Jim Meyering  <jim@meyering.net>
49667
49668         * modules/xreadlink (Maintainer): Add my name.
49669         * modules/xreadlink-with-size (Depends-on): Alphabetize.
49670
49671 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
49672             Bruno Haible  <bruno@clisp.org>
49673
49674         * build-aux/install-reloc: Compile also c-ctype.c.
49675         * build-aux/relocatable.sh.in: New file.
49676         * doc/relocatable.texi: New file.
49677         * doc/relocatable-maint.texi: New file.
49678         * doc/gnulib.texi: Include relocatable-maint.texi.
49679         * lib/progreloc.c: Include unistd.h unconditionally.
49680         * lib/relocwrapper.c: Include unistd.h unconditionally.
49681         Include c-ctype.h.
49682         (add_dotbin): Use c_tolower.
49683         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
49684         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
49685         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
49686         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
49687         to m4/relocatable-lib.m4.
49688         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
49689         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
49690         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
49691         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
49692         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
49693         * modules/relocatable: New file.
49694         * modules/relocatable-lib: New file.
49695         * modules/relocatable-script: New file.
49696
49697 2007-02-28  Bruno Haible  <bruno@clisp.org>
49698
49699         Import --enable-relocatable infrastructure.
49700         * build-aux/config.libpath: New file, from GNU gettext.
49701         * build-aux/install-reloc: New file, from GNU gettext.
49702         * build-aux/reloc-ldflags: New file, from GNU gettext.
49703         * lib/relocatable.h: New file, from GNU gettext.
49704         * lib/relocatable.c: New file, from GNU gettext.
49705         * lib/relocwrapper.c: New file, from GNU gettext.
49706         * m4/relocatable.m4: New file, from GNU gettext.
49707
49708 2007-02-28  Bruno Haible  <bruno@clisp.org>
49709
49710         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
49711
49712         * modules/xreadlink: New file, from GNU gettext with modifications.
49713         * lib/xreadlink.c: New file, from GNU gettext.
49714         * lib/xreadlink.h: Add comments.
49715         (xreadlink): New declaration.
49716
49717         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
49718         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
49719         lib/xreadlink-with-size.c.
49720         (configure.ac): Remove gl_XREADLINK invocation.
49721         (Makefile.am): Augment lib_SOURCES.
49722         * m4/xreadlink.m4: Remove file.
49723         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
49724         (xreadlink_with_size): Renamed from xreadink.
49725         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
49726         * modules/canonicalize (Depends-on): Replace xreadlink with
49727         xreadlink-with-size.
49728         * lib/canonicalize.c (canonicalize_filename_mode): Update.
49729
49730 2007-02-25  Jim Meyering  <jim@meyering.net>
49731
49732         * build-aux/announce-gen: When complaining about excess arguments,
49733         list them.
49734
49735 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49736
49737         * README: Document signed integer overflow situation more
49738         accurately.
49739
49740 2007-02-25  Bruno Haible  <bruno@clisp.org>
49741
49742         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
49743         'a' or 'A' conversion.
49744
49745 2007-02-25  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/filename: Renamed from modules/pathname.
49748         (Files): Replace lib/pathname.h with lib/filename.h. Replace
49749         lib/concatpath.c with lib/concat-filename.c.
49750         (Makefile.am): Update.
49751         (Include): Replace pathname.h with filename.h.
49752         * lib/filename.h: Renamed from lib/pathname.h.
49753         (concatenated_filename): Renamed from concatenated_pathname.
49754         * lib/concat-filename.c: Renamed from lib/concatpath.c.
49755         (concatenated_filename): Renamed from concatenated_pathname.
49756         * lib/findprog.c: Include filename.h instead of pathname.h.
49757         (find_in_path): Update.
49758         * lib/javacomp.c: Include filename.h instead of pathname.h.
49759         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49760         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49761         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49762         is_oldgcj_14_13_usable, is_javac_usable): Update.
49763         * lib/javaexec.c: Include filename.h instead of pathname.h.
49764         (execute_java_class): Update.
49765         * modules/findprog: Update.
49766         * modules/javacomp: Update.
49767         * modules/javaexec: Update.
49768         * MODULES.html.sh (File system functions): Add 'filename', remove
49769         'pathname'.
49770
49771 2007-02-25  Bruno Haible  <bruno@clisp.org>
49772
49773         * modules/printf-frexpl-tests: New file.
49774         * tests/test-printf-frexpl.c: New file.
49775
49776         * modules/printf-frexpl: New file.
49777         * lib/printf-frexpl.h: New file.
49778         * lib/printf-frexpl.c: New file.
49779         * m4/printf-frexpl.m4: New file.
49780
49781 2007-02-25  Bruno Haible  <bruno@clisp.org>
49782
49783         * modules/printf-frexp-tests: New file.
49784         * tests/test-printf-frexp.c: New file.
49785
49786         * modules/printf-frexp: New file.
49787         * lib/printf-frexp.h: New file.
49788         * lib/printf-frexp.c: New file.
49789         * m4/printf-frexp.m4: New file.
49790
49791 2007-02-25  Bruno Haible  <bruno@clisp.org>
49792
49793         Assume automake >= 1.10 for the tests.
49794         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
49795         * modules/arctwo-tests: Likewise.
49796         * modules/argp-tests: Likewise.
49797         * modules/avltree-list-tests: Likewise.
49798         * modules/avltree-oset-tests: Likewise.
49799         * modules/avltreehash-list-tests: Likewise.
49800         * modules/carray-list-tests: Likewise.
49801         * modules/crc-tests: Likewise.
49802         * modules/des-tests: Likewise.
49803         * modules/gc-arcfour-tests: Likewise.
49804         * modules/gc-arctwo-tests: Likewise.
49805         * modules/gc-des-tests: Likewise.
49806         * modules/gc-hmac-md5-tests: Likewise.
49807         * modules/gc-hmac-sha1-tests: Likewise.
49808         * modules/gc-md2-tests: Likewise.
49809         * modules/gc-md4-tests: Likewise.
49810         * modules/gc-md5-tests: Likewise.
49811         * modules/gc-pbkdf2-sha1-tests: Likewise.
49812         * modules/gc-rijndael-tests: Likewise.
49813         * modules/gc-sha1-tests: Likewise.
49814         * modules/gc-tests: Likewise.
49815         * modules/getaddrinfo-tests: Likewise.
49816         * modules/hmac-md5-tests: Likewise.
49817         * modules/hmac-sha1-tests: Likewise.
49818         * modules/linked-list-tests: Likewise.
49819         * modules/linkedhash-list-tests: Likewise.
49820         * modules/lock-tests: Likewise.
49821         * modules/md2-tests: Likewise.
49822         * modules/md4-tests: Likewise.
49823         * modules/md5-tests: Likewise.
49824         * modules/rbtree-list-tests: Likewise.
49825         * modules/rbtree-oset-tests: Likewise.
49826         * modules/rbtreehash-list-tests: Likewise.
49827         * modules/read-file-tests: Likewise.
49828         * modules/rijndael-tests: Likewise.
49829         * modules/stdint-tests: Likewise.
49830         * modules/tls-tests: Likewise.
49831
49832 2007-02-24  Bruno Haible  <bruno@clisp.org>
49833
49834         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
49835         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
49836         function; instead check whether isnan with a double argument links.
49837         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
49838         function; instead check whether isnan with a 'long double' argument
49839         links.
49840         Reported by Eric Blake <ebb9@byu.net>.
49841
49842 2007-02-24  Bruno Haible  <bruno@clisp.org>
49843
49844         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
49845         defined.
49846         * lib/isnanl.c: Remove all code. Just include isnan.c.
49847         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
49848
49849 2007-02-25  Jim Meyering  <jim@meyering.net>
49850
49851         Avoid conflicting types for 'unsetenv' on FreeBSD.
49852         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
49853         conflicting with FreeBSD's (5.0 and 6.1) function declaration
49854         in stdlib.h.
49855
49856 2007-02-24  Bruno Haible  <bruno@clisp.org>
49857
49858         * modules/isnanl-nolibm-tests: New file.
49859         * tests/test-isnanl.c: New file.
49860
49861         * modules/isnanl-nolibm: New file.
49862         * lib/isnanl.h: New file.
49863         * lib/isnanl.c: New file.
49864         * m4/isnanl.m4: New file.
49865
49866 2007-02-24  Bruno Haible  <bruno@clisp.org>
49867
49868         * modules/isnan-nolibm-tests: New file.
49869         * tests/test-isnan.c: New file.
49870
49871         * modules/isnan-nolibm: New file.
49872         * lib/isnan.h: New file.
49873         * lib/isnan.c: New file.
49874         * m4/isnan.m4: New file.
49875
49876 2007-02-24  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
49879         assume that an exponent fits in 20 bits.
49880
49881 2007-02-24  Jim Meyering  <jim@meyering.net>
49882
49883         * m4/regex.m4: Update the description of the configure-time option,
49884         --without-included-regex, to state accurately what the defaults are,
49885         and perhaps to give people an idea why using this option is risky.
49886
49887 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
49890         loops on small arguments.  This attempts to avoid the problem
49891         Bruno Haible reported for AIX 4.3.2 in
49892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
49893
49894 2007-02-23  Bruno Haible  <bruno@clisp.org>
49895
49896         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
49897         Needed for help2man.
49898
49899 2007-02-23  Karl Berry  <karl@gnu.org>
49900
49901         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
49902         exists, foo.h should be cvs-ignored, not committed.
49903
49904 2007-02-23  Eric Blake  <ebb9@byu.net>
49905
49906         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
49907         * lib/stat-time.h (includes): Likewise.
49908         * lib/utimecmp.c (includes): Likewise.
49909         * lib/utimens.h (includes): Likewise.
49910         * lib/getdate.y (includes): Also include "timespec.h" for use
49911         internal to the module.
49912         * modules/utimens (Depends-on): Revert yesterday's patch.
49913         * modules/nanosleep (Depends-on): Add missing dependency.
49914
49915 2007-02-22  Bruno Haible  <bruno@clisp.org>
49916
49917         * lib/glob.c: Don't include getlogin_r.h.
49918
49919 2007-02-22  Jim Meyering  <jim@meyering.net>
49920
49921         * modules/utimens (Depends-on): Add timespec, required for
49922         utimens.h's inclusion of timespec.h.
49923
49924 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
49927         long unreadable paths in GNU/Linux.  Problem reported by Andreas
49928         Schwab in
49929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
49930         I'll try to think of a better way to fix the Solaris problem.
49931
49932         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
49933         like glibc; on Solaris 10, it fails with errno == EINVAL.
49934         POSIX says the behavior is unspecified if the first argument is NULL,
49935         so play it safe and never pass NULL to the system getcwd.
49936
49937 2007-02-21  Jim Meyering  <jim@meyering.net>
49938
49939         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
49940         of gettimeofday.  It would conflict with the one now always
49941         provided via sys_time_.h.  Reported by Matthew Woehlke, as
49942         an IRIX 6.5 build failure.
49943
49944 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
49945
49946         Minor fixups to port to Solaris 10 with Sun C 5.8.
49947         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
49948         * modules/getcwd (Depends-on): Add dirfd.
49949         * lib/putenv.c (putenv): #undef it.
49950         (rpl_putenv): New decl.
49951         (malloc, free): Include <stdlib.h> rather than prototyping separately.
49952
49953 2007-02-20  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/stdio-tests: New file.
49956         * tests/test-stdio.c: New file.
49957
49958         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
49959         (Depends-on): Add stdio.
49960         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49961         (Include): Use <stdio.h> instead of vsnprintf.h.
49962         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49963         HAVE_DECL_VSNPRINTF.
49964         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
49965
49966         * modules/snprintf (Files): Remove lib/snprintf.h.
49967         (Depends-on): Add stdio.
49968         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49969         (Include): Use <stdio.h> instead of snprintf.h.
49970         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49971         HAVE_DECL_SNPRINTF.
49972         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
49973         * lib/getaddrinfo.c: Likewise.
49974
49975         * modules/stdio: New file.
49976         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
49977         * lib/snprintf.h: Remove file.
49978         * lib/vsnprintf.h: Remove file.
49979         * lib/.cppi-disable: Remove snprintf.h.
49980         * m4/stdio_h.m4: New file.
49981         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
49982
49983 2007-02-20  Jim Meyering  <jim@meyering.net>
49984
49985         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
49986         used by e.g., mingw.  From Bruno Haible.
49987
49988 2007-02-19  Bruno Haible  <bruno@clisp.org>
49989
49990         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
49991         warnings.
49992         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49993
49994 2007-02-19  Bruno Haible  <bruno@clisp.org>
49995
49996         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
49997         from mingw users.
49998
49999 2007-02-19  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
50002         warnings.
50003         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
50004
50005 2007-02-19  Jim Meyering  <jim@meyering.net>
50006
50007         Don't use FD after a successful "fdopendir (fd)".
50008         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
50009         Reset it by calling dirfd on the just-obtained DIR*.
50010
50011         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
50012         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
50013
50014 2007-02-18  Bruno Haible  <bruno@clisp.org>
50015
50016         * lib/readlink.c: Include <unistd.h>.
50017         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
50018         HAVE_READLINK.
50019         * modules/readlink (Depends-on): Add unistd.
50020         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50021         (Include): Add <unistd.h>.
50022
50023         * lib/getlogin_r.h: Remove file.
50024         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
50025         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
50026         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
50027         HAVE_DECL_GETLOGIN_R.
50028         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
50029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50030         (Include): Use <unistd.h> instead of getlogin_r.h.
50031
50032         * lib/getcwd.h: Remove file.
50033         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
50034         * lib/xgetcwd.c: Likewise.
50035         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
50036         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
50037         * modules/getcwd (Files): Remove lib/getcwd.h.
50038         (Depends-on): Add unistd.
50039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50040         (Include): Use <unistd.h> instad of getcwd.h.
50041
50042         * lib/ftruncate.c: Include <unistd.h> first.
50043         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
50044         Set HAVE_FTRUNCATE.
50045         * modules/ftruncate (Depends-on): Add unistd.
50046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50047
50048         * lib/fchdir.c: Include <unistd.h> first.
50049         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
50050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
50051         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
50052         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50053         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
50054
50055         * lib/dup2.c: Include <unistd.h> first.
50056         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
50057         HAVE_DUP2.
50058         * modules/dup2 (Depends-on): Add unistd.
50059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50060
50061         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
50062         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
50063         REPLACE_CHOWN. Don't define chown as a macro here.
50064         * modules/chown (Depends-on): Add unistd.
50065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50066
50067         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
50068         Add definition for GL_LINK_WARNING.
50069         (chown, dup2): New declarations.
50070         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
50071         link warning.
50072         (ftruncate): New declaration.
50073         (getcwd): New declaration, taken from old getcwd.h.
50074         (getlogin_r): New declaration, taken from old getlogin_r.h.
50075         (readlink): New declaration.
50076         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
50077         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
50078         (gl_PREREQ_UNISTD): Remove macro.
50079         (gl_UNISTD_MODULE_INDICATOR): New macro.
50080         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
50081         many new variables. Don't set UNISTD_H.
50082         * modules/unistd (Description): Change.
50083         (Depends-on): Add link-warning.
50084         (configure.ac): Update.
50085         (Makefile.am): Create unistd.h always. Substitute many new variables
50086         into it.
50087
50088 2007-02-18  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
50091         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
50092         HAVE_GETSUBOPT.
50093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
50094         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
50095         * lib/getsubopt.h: Remove file.
50096         * modules/getsubopt (Files): Remove lib/getsubopt.h.
50097         (Depends-on): Add stdlib.
50098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50099         (Includes): Use <stdlib.h> instead of getsubopt.h.
50100         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
50101         Set HAVE_GETSUBOPT.
50102         * lib/getsubopt.c: Don't include getsubopt.h.
50103
50104 2007-02-18  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/fchdir (Depends-on): Add dup2.
50107
50108 2007-02-18  Bruno Haible  <bruno@clisp.org>
50109
50110         * lib/stdlib_.h: Handle glibc's special invocation convention
50111         specially.
50112
50113 2007-02-18  Bruno Haible  <bruno@clisp.org>
50114
50115         * modules/stdlib-tests: New file.
50116         * tests/test-stdlib.c: New file.
50117
50118         * modules/mkstemp (Files): Remove lib/mkstemp.h.
50119         (Depends-on): Add stdlib.
50120         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50121         (Includes): Use <stdlib.h> instead of mkstemp.h.
50122         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50123         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50124         * lib/mkstemp.c: Don't include mkstemp.h.
50125         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50126         * lib/stdlib--.h: Don't include mkstemp.h.
50127
50128         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50129         (Depends-on): Add stdlib.
50130         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50131         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50132         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50133         HAVE_MKDTEMP.
50134         * lib/mkdtemp.c: Don't include mkdtemp.h.
50135         * lib/clean-temp.c: Don't include mkdtemp.h.
50136
50137         * modules/exit (Files): Remove lib/exit.h.
50138         (Depends-on): Add stdlib.
50139         (Makefile.am): Remove lib_SOURCES.
50140         (Include): Use <stdlib.h> instead of exit.h.
50141         * lib/argmatch.c: Don't include exit.h.
50142         * lib/execute.c: Likewise.
50143         * lib/pagealign_alloc.c: Likewise.
50144         * lib/pipe.c: Likewise.
50145         * lib/wait-process.c: Likewise.
50146         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
50147         * lib/exitfail.c: Likewise.
50148         * lib/savewd.c: Likewise.
50149         * lib/xsetenv.c: Likewise.
50150
50151         * modules/stdlib: New file.
50152         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
50153         and extra comments about mkstemp().
50154         * lib/exit.h: Remove file.
50155         * lib/mkdtemp.h: Remove file.
50156         * lib/mkstemp.h: Remove file.
50157         * m4/stdlib_h.m4: New file.
50158         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
50159
50160 2007-02-18  Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/math-tests: New file.
50163         * tests/test-math.c: New file.
50164
50165         * modules/math: New file.
50166         * modules/mathl (Files): Remove lib/mathl.h.
50167         (Depends-on): Add math.
50168         (Makefile.am): Don't mention mathl.h.
50169         (Include): Use <math.h> instead of mathl.h.
50170         * lib/math_.h: New file.
50171         * lib/mathl.h: Remove file.
50172         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
50173         mathl.h.
50174         * lib/asinl.c: Likewise.
50175         * lib/atanl.c: Likewise.
50176         * lib/ceill.c: Likewise.
50177         * lib/cosl.c: Likewise.
50178         * lib/expl.c: Likewise.
50179         * lib/floorl.c: Likewise.
50180         * lib/frexpl.c: Likewise.
50181         * lib/ldexpl.c: Likewise.
50182         * lib/logl.c: Likewise.
50183         * lib/sincosl.c: Likewise.
50184         * lib/sinl.c: Likewise.
50185         * lib/sqrtl.c: Likewise.
50186         * lib/tanl.c: Likewise.
50187         * lib/trigl.c: Likewise.
50188         * m4/math_h.m4: New file.
50189         * MODULES.html.sh (Mathematics): Add math.
50190
50191 2007-02-17  Bruno Haible  <bruno@clisp.org>
50192
50193         * modules/wctype-tests: New file.
50194         * tests/test-wctype.c: New file.
50195
50196         * modules/wchar-tests: New file.
50197         * tests/test-wchar.c: New file.
50198
50199         * modules/unistd-tests: New file.
50200         * tests/test-unistd.c: New file.
50201
50202         * modules/time-tests: New file.
50203         * tests/test-time.c: New file.
50204
50205         * modules/sysexits-tests: New file.
50206         * tests/test-sysexits.c: New file.
50207
50208         * modules/sys_time-tests: New file.
50209         * tests/test-sys_time.c: New file.
50210
50211         * modules/sys_stat-tests: New file.
50212         * tests/test-sys_stat.c: New file.
50213
50214         * modules/sys_socket-tests: New file.
50215         * tests/test-sys_socket.c: New file.
50216
50217         * modules/sys_select-tests: New file.
50218         * tests/test-sys_select.c: New file.
50219
50220         * modules/string-tests: New file.
50221         * tests/test-string.c: New file.
50222
50223         * modules/stdbool-tests: New file.
50224         * tests/test-stdbool.c: New file.
50225
50226         * modules/netinet_in-tests: New file.
50227         * tests/test-netinet_in.c: New file.
50228
50229         * modules/inttypes-tests: New file.
50230         * tests/test-inttypes.c: New file.
50231
50232         * modules/fcntl-tests: New file.
50233         * tests/test-fcntl.c: New file.
50234
50235         * modules/byteswap-tests: New file.
50236         * tests/test-byteswap.c: New file.
50237
50238         * modules/arpa_inet-tests: New file.
50239         * tests/test-arpa_inet.c: New file.
50240
50241 2007-02-17  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
50244         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
50245         if the corresponding module is not enabled. Emit link warnings if
50246         the function is used nevertheless.
50247         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
50248         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
50249         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
50250         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
50251         * modules/inttypes (Depends-on): Add link-warning.
50252         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50253         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
50254         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
50255         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
50256         * modules/imaxdiv (configure.ac): Likewise.
50257         * modules/strtoimax (configure.ac): Likewise.
50258         * modules/strtoumax (configure.ac): Likewise.
50259
50260 2007-02-17  Bruno Haible  <bruno@clisp.org>
50261
50262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
50263         gl_STRING_MODULE_INDICATOR_DEFAULTS.
50264         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
50265         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
50266
50267 2007-02-17  Bruno Haible  <bruno@clisp.org>
50268
50269         * modules/link-warning: New file.
50270         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
50271         * lib/string_.h (GL_LINK_WARNING): Remove definition.
50272         * modules/string (Depends-on): Add link-warning.
50273         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50274         string.h.
50275         * MODULES.html.sh (Support for building libraries and executables): Add
50276         link-warning.
50277
50278 2007-02-17  Bruno Haible  <bruno@clisp.org>
50279
50280         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
50281         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
50282         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
50283         long lines.
50284
50285 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
50286             Bruno Haible  <bruno@clisp.org>
50287
50288         * modules/tmpfile: New file.
50289         * lib/tmpfile.c: New file.
50290         * m4/tmpfile.m4: New file.
50291         * MODULES.html.sh (func_all_modules): New section "Input/output".
50292
50293 2007-02-15  Bruno Haible  <bruno@clisp.org>
50294
50295         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
50296         (supports_delete_on_close): New function.
50297         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
50298
50299 2007-02-14  Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/mbspcasecmp-tests: New file.
50302         * tests/test-mbspcasecmp.sh: New file.
50303         * tests/test-mbspcasecmp.c: New file.
50304
50305         New module mbspcasecmp.
50306         * modules/mbspcasecmp: New file.
50307         * lib/mbspcasecmp.c: New file.
50308         * lib/string_.h (strncasecmp): Change warning message.
50309         (mbspcasecmp): New declaration.
50310         * m4/mbspcasecmp.m4: New file.
50311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50312         GNULIB_MBSPCASECMP.
50313         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
50314         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
50315
50316 2007-02-14  Bruno Haible  <bruno@clisp.org>
50317
50318         * modules/mbsncasecmp-tests: New file.
50319         * tests/test-mbsncasecmp.sh: New file.
50320         * tests/test-mbsncasecmp.c: New file.
50321
50322         New module mbsncasecmp.
50323         * modules/mbsncasecmp: New file.
50324         * lib/mbsncasecmp.c: New file.
50325         * lib/string_.h (mbsncasecmp): New declaration.
50326         * m4/mbsncasecmp.m4: New file.
50327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50328         GNULIB_MBSNCASECMP.
50329         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
50330         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
50331
50332 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50333
50334         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50335         Verify that it doesn't overlap with our flags.
50336         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50337         do not have the desired effect in multibyte locales; instead, use
50338         mbscasecmp.
50339         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50340         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50341         we don't require GNU fnmatch ourselves (if our users require it, they
50342         should do so explicitly).
50343
50344         Fix regex code so it doesn't rely on strcasecmp.
50345         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50346         Otherwise, include gnulib's langinfo.h.
50347         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50348         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50349         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50350         * modules/regex (FILES): Remove m4/codeset.m4.
50351         (Depends-on): Add localcharset.  Remove strcase.
50352
50353 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50354
50355         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50356         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50357
50358 2007-02-13  Bruno Haible  <bruno@clisp.org>
50359
50360         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
50361         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50362
50363 2007-02-12  Bruno Haible  <bruno@clisp.org>
50364
50365         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50366         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
50367         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
50368         time warning rather than a link error.
50369
50370 2007-02-12  Bruno Haible  <bruno@clisp.org>
50371
50372         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
50373         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50375
50376 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
50379         args, not 2.
50380
50381 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50382
50383         New module 'time', so that apps can include <time.h> as per
50384         POSIX and GNU instead of separate include files like time_r.h
50385         and timegm.h.  This implementation tries out a simpler approach
50386         for replacing decls in standard include files (as compared to
50387         the string module), somewhat as an experiment.
50388
50389         * config/srclist.txt: Comment out mktime.c for now.
50390         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
50391         since it doesn't apply any more.  Use generic wording instead.
50392         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
50393         'time'.
50394         * lib/time_.h, m4/time_h.m4, modules/time: New files.
50395         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
50396         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
50397         Don't include <sys/types.h>; no longer needed since we assume C89.
50398         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
50399         * lib/strftime.c: Likewise.
50400         * lib/time_r.c: Likewise.
50401         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
50402         * lib/nanosleep.c: Include <time.h> first, to check interface.
50403         * lib/strptime.c: Likewise.
50404         * lib/time_r.c: Likewise.
50405         * lib/timegm.c: Likewise.
50406         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
50407         needed.
50408         * lib/timegm.c: Don't include timegm.h; no longer needed.
50409         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
50410         time.h now handles any problems in that area.
50411         (struct timespec, nanosleep): Remove; time.h now arranges for these.
50412         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
50413         that time.h defines struct timespec.
50414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
50415         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
50416         handles that.
50417         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
50418         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
50419         needed.  Set REPLACE_LOCALTIME.
50420         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
50421         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
50422         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
50423         nanosleep; time_h.m4 now does that.  Don't require
50424         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
50425         module handles this now.
50426         * modules/getdate (Depends-on): Remove timespec.  Add time.
50427         * modules/nanosleep (Depends-on): Likewise.
50428         * modules/stat-time (Depends-on): Likewise.
50429         * modules/nanosleep (Include): Include time.h, not timespec.h.
50430         * modules/strptime (Files): Remove lib/strptime.h.
50431         (Depends-on): Add extensions, time.
50432         (Include): Include time.h, not strptime.h.
50433         * modules/time_r (Files): Remove lib/time_r.h.
50434         (Depends-on): Add time.
50435         (Include): Include time.h, not time_r.h.
50436         * modules/timegm: Likewise.
50437         * modules/timespec (Description): Now does timespec-related decls
50438         of our own, instead of struct timespec itself.
50439         (Depends-on): Add time; remove extensions.
50440         (Maintainer): Add self.
50441         * modules/utimecmp (Depends-on): Add time; remove timespec.
50442         * modules/utimens (Depends-on): Likewise.
50443         * modules/xnanosleep (Depends-on): Likewise.
50444
50445 2007-02-11  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/c-strstr.c: Include allocsa.h.
50448         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50449         * lib/c-strcasestr.c: Include allocsa.h.
50450         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50451         * lib/strcasestr.c: Include allocsa.h.
50452         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50453         * lib/mbsstr.c: Include allocsa.h.
50454         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50455         allocsa/freesa instead of malloc/free.
50456         * lib/mbscasestr.c: Include allocsa.h.
50457         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50458         allocsa/freesa instead of malloc/free.
50459         * modules/c-strstr (Depends-on): Add allocsa.
50460         * modules/c-strcasestr (Depends-on): Likewise.
50461         * modules/strcasestr (Depends-on): Likewise.
50462         * modules/mbsstr (Depends-on): Likewise.
50463         * modules/mbscasestr (Depends-on): Likewise.
50464
50465 2007-02-11  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50468
50469         * modules/mbsspn-tests: New file.
50470         * tests/test-mbsspn.sh: New file.
50471         * tests/test-mbsspn.c: New file.
50472
50473 2007-02-11  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50476
50477         * modules/mbspbrk-tests: New file.
50478         * tests/test-mbspbrk.sh: New file.
50479         * tests/test-mbspbrk.c: New file.
50480
50481 2007-02-11  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50484         unneeded cast.
50485
50486         * modules/mbscspn-tests: New file.
50487         * tests/test-mbscspn.sh: New file.
50488         * tests/test-mbscspn.c: New file.
50489
50490 2007-02-11  Bruno Haible  <bruno@clisp.org>
50491
50492         * modules/mbscasecmp-tests: New file.
50493         * tests/test-mbscasecmp.sh: New file.
50494         * tests/test-mbscasecmp.c: New file.
50495
50496 2007-02-11  Bruno Haible  <bruno@clisp.org>
50497
50498         Ensure O(n) worst-case complexity of mbscasestr.
50499         * lib/mbscasestr.c: Include stdbool.h.
50500         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50501         functions.
50502         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50503         the bookkeeping indicates that it's worth it.
50504         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50505
50506         * modules/mbscasestr-tests: New file.
50507         * tests/test-mbscasestr1.c: New file.
50508         * tests/test-mbscasestr2.sh: New file.
50509         * tests/test-mbscasestr2.c: New file.
50510         * tests/test-mbscasestr3.sh: New file.
50511         * tests/test-mbscasestr3.c: New file.
50512         * tests/test-mbscasestr4.sh: New file.
50513         * tests/test-mbscasestr4.c: New file.
50514         * m4/locale-tr.m4: New file.
50515
50516 2007-02-11  Bruno Haible  <bruno@clisp.org>
50517
50518         Ensure O(n) worst-case complexity of mbsstr.
50519         * lib/mbsstr.c: Include stdbool.h.
50520         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50521         functions.
50522         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
50523         bookkeeping indicates that it's worth it.
50524         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
50525
50526         * modules/mbsstr-tests: New file.
50527         * tests/test-mbsstr1.c: New file.
50528         * tests/test-mbsstr2.sh: New file.
50529         * tests/test-mbsstr2.c: New file.
50530         * tests/test-mbsstr3.sh: New file.
50531         * tests/test-mbsstr3.c: New file.
50532         * m4/locale-fr.m4: New file.
50533
50534 2007-02-11  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/mbsrchr.c (mbsrchr): Fix bug.
50537
50538         * modules/mbsrchr-tests: New file.
50539         * tests/test-mbsrchr.sh: New file.
50540         * tests/test-mbsrchr.c: New file.
50541
50542 2007-02-11  Bruno Haible  <bruno@clisp.org>
50543
50544         * lib/mbschr.c (mbschr): Fix bug.
50545
50546         * modules/mbschr-tests: New file.
50547         * tests/test-mbschr.sh: New file.
50548         * tests/test-mbschr.c: New file.
50549         * m4/locale-zh.m4: New file.
50550
50551 2007-02-11  Bruno Haible  <bruno@clisp.org>
50552
50553         Support for copying multibyte string iterators.
50554         * lib/mbiter.h: Include <string.h>.
50555         (mbiter_multi_copy): New function.
50556         (mbi_copy): New macro.
50557         * lib/mbuiter.h: Include <string.h>.
50558         (mbuiter_multi_copy): New function.
50559         (mbui_copy): New macro.
50560
50561 2007-02-11  Bruno Haible  <bruno@clisp.org>
50562
50563         New module mbslen.
50564         * modules/mbslen: New file.
50565         * lib/mbslen.c: New file.
50566         * lib/string_.h (mbslen): New declaration.
50567         * m4/mbslen.m4: New file.
50568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50569         GNULIB_MBSLEN.
50570         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
50571         * MODULES.html.sh (Internationalization functions): Add mbslen.
50572
50573 2007-02-11  Bruno Haible  <bruno@clisp.org>
50574
50575         Ensure O(n) worst-case complexity of strcasestr substitute.
50576         * lib/strcasestr.c: Include stdbool.h.
50577         (knuth_morris_pratt): New function.
50578         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50579         bookkeeping indicates that it's worth it.
50580         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
50581
50582         * modules/strcasestr-tests: New file.
50583         * tests/test-strcasestr.c: New file.
50584
50585 2007-02-11  Bruno Haible  <bruno@clisp.org>
50586
50587         Ensure O(n) worst-case complexity of c_strcasestr.
50588         * lib/c-strcasestr.c: Include stdbool.h, string.h.
50589         (knuth_morris_pratt): New function.
50590         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50591         the bookkeeping indicates that it's worth it.
50592         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
50593
50594         * modules/c-strcasestr-tests: New file.
50595         * tests/test-c-strcasestr.c: New file.
50596
50597 2007-02-11  Bruno Haible  <bruno@clisp.org>
50598
50599         Ensure O(n) worst-case complexity of c_strstr.
50600         * lib/c-strstr.c: Include stdbool.h, string.h.
50601         (knuth_morris_pratt): New function.
50602         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50603         bookkeeping indicates that it's worth it.
50604         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
50605
50606         * lib/c-strstr.c: Complete rewrite for maintainability.
50607
50608         * modules/c-strstr-tests: New file.
50609         * tests/test-c-strstr.c: New file.
50610
50611 2007-02-11  Bruno Haible  <bruno@clisp.org>
50612
50613         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
50614         5.2.1 and earlier, whereby \055 was treated just like the range
50615         delimiter '-'.
50616         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50617
50618 2007-02-08  Bruno Haible  <bruno@clisp.org>
50619
50620         * modules/regex (Depends-on): Add stdbool.
50621         Reported by Dalibor Topic <robilad@kaffe.org>.
50622
50623 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
50626         Prefer returning from main to exiting from it.
50627         Remove unnecessary parens after sizeof.
50628
50629 2007-02-05  Bruno Haible  <bruno@clisp.org>
50630
50631         New module mbssep.
50632         * modules/mbssep: New file.
50633         * lib/mbssep.c: New file.
50634         * lib/string_.h (strsep): Add a conditional link warning.
50635         (mbssep): New declaration.
50636         * m4/mbssep.m4: New file.
50637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50638         GNULIB_MBSSEP.
50639         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
50640         * MODULES.html.sh (Internationalization functions): Add mbssep.
50641
50642 2007-02-05  Bruno Haible  <bruno@clisp.org>
50643
50644         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
50645         Optimize search in case of 1 delimiter.
50646
50647 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50648
50649         * lib/acl.h: Include sys/types.h before sys/acl.h.
50650
50651 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50652
50653         Merge upstream fix for glibc bugzilla #3957:
50654
50655         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
50656
50657         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
50658         bit for RE_HAT_LISTS_NOT_NEWLINE.
50659         (build_charclass_op): Remove bogus comment.
50660
50661 2007-02-05  Simon Josefsson  <simon@josefsson.org>
50662
50663         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
50664
50665 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50666
50667         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
50668         * lib/memmem.c [!defined _LIBC]: Include config.h.
50669
50670 2007-02-04  Bruno Haible  <bruno@clisp.org>
50671
50672         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
50673         warning message.
50674
50675 2007-02-04  Bruno Haible  <bruno@clisp.org>
50676
50677         New module mbstok_r.
50678         * modules/mbstok_r: New file.
50679         * lib/mbstok_r.c: New file.
50680         * lib/string_.h (strtok_r): Change argument names to match the
50681         comments. Add a conditional link warning.
50682         (mbstok_r): New declaration.
50683         * m4/mbstok_r.m4: New file.
50684         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50685         GNULIB_MBSTOK_R.
50686         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
50687         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
50688
50689 2007-02-04  Bruno Haible  <bruno@clisp.org>
50690
50691         New module mbsspn.
50692         * modules/mbsspn: New file.
50693         * lib/mbsspn.c: New file.
50694         * lib/string_.h (strspn): Add a conditional link warning.
50695         (mbsspn): New declaration.
50696         * m4/mbsspn.m4: New file.
50697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50698         GNULIB_MBSSPN.
50699         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
50700         * MODULES.html.sh (Internationalization functions): Add mbsspn.
50701
50702 2007-02-04  Bruno Haible  <bruno@clisp.org>
50703
50704         New module mbspbrk.
50705         * modules/mbspbrk: New file.
50706         * lib/mbspbrk.c: New file.
50707         * lib/string_.h (strpbrk): Add a conditional link warning.
50708         (mbspbrk): New declaration.
50709         * m4/mbspbrk.m4: New file.
50710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50711         GNULIB_MBSPBRK.
50712         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
50713         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
50714
50715 2007-02-04  Bruno Haible  <bruno@clisp.org>
50716
50717         New module mbscspn.
50718         * modules/mbscspn: New file.
50719         * lib/mbscspn.c: New file.
50720         * lib/string_.h (strcspn): Add a conditional link warning.
50721         (mbscspn): New declaration.
50722         * m4/mbscspn.m4: New file.
50723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50724         GNULIB_MBSCSPN.
50725         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
50726         * MODULES.html.sh (Internationalization functions): Add mbscspn.
50727
50728 2007-02-04  Bruno Haible  <bruno@clisp.org>
50729
50730         New module mbscasestr, reduced goal of strcasestr.
50731         * modules/mbscasestr: New file.
50732         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
50733         (mbscasestr): Renamed from strcasestr.
50734         * lib/strcasestr.c: Don't include mbuiter.h.
50735         (strcasestr): Remove support for multibyte locales.
50736         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
50737         Change the conditional link warning.
50738         (mbscasestr): New declaration.
50739         * m4/mbscasestr.m4: New file.
50740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
50741         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
50742         REPLACE_STRCASESTR.
50743         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
50744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50745         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50746         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
50747         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
50748         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50749         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
50750         (Depends-on): Remove mbuiter.
50751         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
50752
50753 2007-02-04  Bruno Haible  <bruno@clisp.org>
50754
50755         Simplify handling of strncasecmp.
50756         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
50757         the conditional link warning.
50758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50759         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
50760         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
50761         * modules/strcase (configure.ac): Don't invoke
50762         gl_STRING_MODULE_INDICATOR.
50763         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
50764
50765 2007-02-04  Bruno Haible  <bruno@clisp.org>
50766
50767         New module mbscasecmp, reduced goal of strcasecmp.
50768         * modules/mbscasecmp: New file.
50769         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
50770         (mbscasecmp): Renamed from strcasecmp.
50771         * lib/strcasecmp.c: Don't include mbuiter.h.
50772         (strcasecmp): Remove support for multibyte locales.
50773         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
50774         Change the conditional link warning.
50775         (mbscasecmp): New declaration.
50776         * m4/mbscasecmp.m4: New file.
50777         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
50778         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
50779         REPLACE_STRCASECMP.
50780         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
50781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50782         GNULIB_MBSCASECMP.
50783         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
50784         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
50785         * modules/strcase (Files): Remove m4/mbrtowc.m4.
50786         (Depends-on): Remove mbuiter.
50787         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
50788
50789 2007-02-04  Bruno Haible  <bruno@clisp.org>
50790
50791         New module mbsstr. Remove module strstr.
50792         * modules/mbsstr: New file.
50793         * modules/strstr: Remove file.
50794         * lib/mbsstr.c: Renamed from lib/strstr.c.
50795         (mbsstr): Renamed from strstr.
50796         * lib/string_.h (strstr): Remove declaration. Change the conditional
50797         link warning.
50798         (mbsstr): New declaration.
50799         * m4/mbsstr.m4: New file.
50800         * m4/strstr.m4: Remove file.
50801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50802         REPLACE_STRSTR.
50803         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
50804         Don't initialize GNULIB_STRSTR.
50805         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
50806         substitute GNULIB_STRSTR and REPLACE_STRSTR.
50807         * MODULES.html.sh (Internationalization functions): Add mbsstr.
50808         (Support for systems lacking ANSI C 89): Remove strstr.
50809
50810 2007-02-04  Bruno Haible  <bruno@clisp.org>
50811
50812         New module mbsrchr.
50813         * modules/mbsrchr: New file.
50814         * lib/mbsrchr.c: New file.
50815         * lib/string_.h (strrchr): Add a conditional link warning.
50816         (mbsrchr): New declaration.
50817         * m4/mbsrchr.m4: New file.
50818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50819         GNULIB_MBSRCHR.
50820         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
50821         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
50822
50823 2007-02-04  Bruno Haible  <bruno@clisp.org>
50824
50825         New module mbschr.
50826         * modules/mbschr: New file.
50827         * lib/mbschr.c: New file.
50828         * lib/string_.h (strchr): Add a conditional link warning.
50829         (mbschr): New declaration.
50830         * m4/mbschr.m4: New file.
50831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50832         GNULIB_MBSCHR.
50833         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
50834         * MODULES.html.sh (Internationalization functions): Add mbschr.
50835
50836 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
50839
50840         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
50841
50842 2007-02-04  Bruno Haible  <bruno@clisp.org>
50843
50844         New module description section 'configure.ac-early'.
50845         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
50846         (func_get_autoconf_early_snippet): New function.
50847         (func_import, func_create_testdir): Use it. Remove special cases for
50848         modules 'extensions' and 'lock'.
50849         * modules/extensions (configure.ac-early): Require
50850         gl_USE_SYSTEM_EXTENSIONS.
50851         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
50852
50853 2007-02-04  Bruno Haible  <bruno@clisp.org>
50854
50855         Make use of gcj-4.3's -fsource and -ftarget option.
50856         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
50857         and if so try the options -fsource and -ftarget.
50858         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
50859         source_version, ftarget_option, target_version arguments.
50860         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
50861         (is_envjavac_oldgcj_14_14_usable): Renamed from
50862         is_envjavac_gcj_14_14_usable.
50863         (is_envjavac_oldgcj_14_13_usable): Renamed from
50864         is_envjavac_gcj_14_13_usable.
50865         (is_gcj_present): Update.
50866         (is_gcj_43, is_gcj43_usable): New functions.
50867         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
50868         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
50869         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
50870         try the options -fsource and -ftarget.
50871
50872 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50873
50874         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
50875         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
50876         larger value.
50877
50878 2007-02-03  Jim Meyering  <jim@meyering.net>
50879
50880         Give tools a better chance to allocate space for very large buffers.
50881         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
50882
50883         Make pwd and readlink work also when run with an unreadable parent dir
50884         on systems with openat support.
50885         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
50886         provided getcwd function, even when we have openat support.
50887         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
50888
50889 2007-02-02  Bruno Haible  <bruno@clisp.org>
50890
50891         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50892         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
50893         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
50894         portability problems if one of these functions is only used on specific
50895         platforms.
50896         Reported by Paul Eggert.
50897
50898 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
50899
50900         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
50901         is causing more trouble than it's curing.
50902         * lib/regex_internal.h (__mempcpy): Remove.
50903         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
50904         (and make the code a tad smaller to boot).
50905         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
50906
50907 2007-02-02  Jim Meyering  <jim@meyering.net>
50908
50909         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
50910         section, not in the Makefile.am: one.
50911
50912 2007-02-02  Eric Blake  <ebb9@byu.net>
50913
50914         * lib/strchrnul.c: Always include config.h first.
50915
50916         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
50917         gnulib strstr is not necessary here.
50918
50919 2007-02-02  Simon Josefsson  <simon@josefsson.org>
50920
50921         * m4/socklen.m4: Fix typo.
50922
50923 2007-02-02  Eric Blake  <ebb9@byu.net>
50924
50925         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
50926         * modules/netinet_in (Makefile.am): Likewise.
50927
50928 2007-02-01  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/string_.h (GL_LINK_WARNING): New macro.
50931         (strcasecmp, strstr, strcasestr): If provided by the system,
50932         conditionally define as a macro that leads to a warning instead of to
50933         an error.
50934         (strncasecmp): Conditionally define as a macro that leads to a warning.
50935
50936 2007-02-01  Karl Berry  <karl@gnu.org>
50937
50938         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
50939
50940 2007-02-01  Bruno Haible  <bruno@clisp.org>
50941
50942         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
50943         renamings.
50944
50945 2007-02-01  Eric Blake  <ebb9@byu.net>
50946
50947         * modules/regex (Depends-on): Revert dependence on mempcpy.
50948         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
50949         module's definition of mempcpy.
50950         Reported by Paul Eggert.
50951
50952 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
50953
50954         * lib/string_.h: If the gnulib module XYZ is not present, undefine
50955         the symbol XYZ before redefining it.  This fixes a problem with
50956         programs that don't use XYZ, when compiled on systems that define
50957         XYZ to something else.
50958
50959 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
50960
50961         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
50962         occurs when "mkdir -m foo" creates a setgid directory that is (1)
50963         writeable to group or other and (2) is intended to have a special
50964         mode bit that is set or cleared.  In such a case, the directory
50965         should be neither group- nor other-writeable until the special
50966         mode bits are right.
50967
50968 2007-01-31  Eric Blake  <ebb9@byu.net>
50969
50970         * modules/mountlist (Depends-on): Add strstr.
50971
50972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
50973         bug.
50974         * modules/string (Makefile.am): Remove redundant replacement.
50975         * modules/regex (Depends-on): Add mempcpy.
50976
50977 2007-01-31  Bruno Haible  <bruno@clisp.org>
50978
50979         New module description field 'Link'.
50980         * gnulib-tool (func_usage): Document --extract-link-directive.
50981         (sed_extract_prog): Recognize 'Link' directive.
50982         (func_get_link_directive): New function.
50983         (func_import): Show summary of link directives.
50984         Handle --extract-link-directive option.
50985         * modules/acl (Link): New section.
50986         * modules/clock-time (Link): New section.
50987         * modules/euidaccess (Link): New section.
50988         * modules/gettext (Link): New section.
50989         * modules/iconv (Link): New section.
50990         * modules/lock (Link): New section.
50991         * modules/nanosleep (Link): New section.
50992         * modules/readline (Link): New section.
50993
50994 2007-01-27  Bruno Haible  <bruno@clisp.org>
50995
50996         Enforce the use of gnulib modules for unportable <string.h> functions.
50997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
50998         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
50999         (gl_HEADER_STRING_H_BODY): Require it.
51000         * lib/string_.h: If the gnulib module XYZ is not present, redefine
51001         the symbol XYZ to one that gives a link error.
51002         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
51003         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
51004         * modules/mempcpy (configure.ac): Likewise.
51005         * modules/memrchr (configure.ac): Likewise.
51006         * modules/stpcpy (configure.ac): Likewise.
51007         * modules/stpncpy (configure.ac): Likewise.
51008         * modules/strcase (configure.ac): Likewise.
51009         * modules/strcasestr (configure.ac): Likewise.
51010         * modules/strchrnul (configure.ac): Likewise.
51011         * modules/strdup (configure.ac): Likewise.
51012         * modules/strndup (configure.ac): Likewise.
51013         * modules/strnlen (configure.ac): Likewise.
51014         * modules/strpbrk (configure.ac): Likewise.
51015         * modules/strsep (configure.ac): Likewise.
51016         * modules/strstr (configure.ac): Likewise.
51017         * modules/strtok_r (configure.ac): Likewise.
51018
51019 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
51020
51021         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
51022
51023 2007-01-30  Jim Meyering  <jim@meyering.net>
51024
51025         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
51026
51027 2007-01-29  Bruno Haible  <bruno@clisp.org>
51028
51029         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
51030         * lib/execute.c: Likewise.
51031         * lib/pipe.c: Likewise.
51032         * lib/printf-args.h: Likewise.
51033         * lib/printf-args.c: Likewise.
51034         * lib/printf-parse.c: Likewise.
51035         * lib/vasnprintf.c: Likewise.
51036
51037 2007-01-29  Eric Blake  <ebb9@byu.net>
51038
51039         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
51040         declaration.
51041
51042 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51043
51044         * lib/strptime.h (strptime): Use 'restrict' for args where
51045         POSIX requires this.
51046         * lib/strptime.c (strptime): Likewise.
51047         Change license notice from LGPL to GPL, since gnulib-tool will
51048         change this as needed.
51049         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
51050         defined.
51051         Include "strptime.h" first, to check interface.
51052         Do not #undef _LIBC and _NL_CURRENT.
51053         Do not include <stdlib.h>; no longer needed.
51054         Include "time_r.h" and declare ptime_locale_status
51055         only if _LIBC is not defined.
51056         (__P): Remove unused macro.
51057         (match_string): Bring back glibc version, but use it only if _LIBC
51058         is defined.
51059         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
51060         Remove unnecessary assertion and abort() call.
51061         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
51062         * m4/strptime.m4: Fix serial number comment.
51063         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
51064         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
51065         (Depends-on): Add time_r.
51066
51067 2007-01-29  Bruno Haible  <bruno@clisp.org>
51068
51069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51070         strptime.
51071         * modules/strptime (Depends-on): Add stdbool.
51072         * lib/strptime.h: Include <time.h> always. Add comments.
51073
51074 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51075
51076         * modules/strptime: New file.
51077         * lib/strptime.h: New file.
51078         * lib/strptime.c: New file.
51079         * m4/strptime.m4: New file.
51080
51081 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51082
51083         * MODULES.html.sh: New module mpsort.
51084         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
51085
51086         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
51087         a circularity problem with HP-UX ia64 reported by Bob Proulx in
51088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
51089         All uses changed.
51090         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
51091         All uses changed.
51092         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
51093         to _Restrict_.
51094         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
51095         the parameter matches the prototype.
51096
51097 2007-01-28  Jim Meyering  <jim@meyering.net>
51098
51099         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
51100         sys/time.h here, reverting that part of the previous patch:
51101         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
51102
51103 2007-01-28  Bruno Haible  <bruno@clisp.org>
51104
51105         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
51106         value of $(SYS_TIME_H).
51107         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
51108         remove it conditionally, too. [added by Jim Meyering]
51109         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
51110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51111         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
51112         GETTIMEOFDAY_REPLACEMENT to 1.
51113
51114 2007-01-28  Bruno Haible  <bruno@clisp.org>
51115
51116         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
51117         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
51118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
51119         Set UNISTD_H instead of UNISTD_H2.
51120         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51121
51122 2007-01-28  Bruno Haible  <bruno@clisp.org>
51123
51124         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51125         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51126
51127 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51128
51129         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51130         (func_create_testdir): Ensure C locale for `grep' and `tr'
51131         character ranges.
51132         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
51133         ACLOCAL_AMFLAGS parsing state machine.
51134
51135 2007-01-27  Bruno Haible  <bruno@clisp.org>
51136
51137         * modules/unistr/base: Update.
51138
51139 2007-01-27  Bruno Haible  <bruno@clisp.org>
51140
51141         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
51142         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
51143         * modules/unistr/u32-mbtouc-unsafe: Renamed from
51144         modules/unistr/u32-mbtouc.
51145         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
51146         * lib/unistr.h: Update.
51147         * lib/linebreak.c: Update.
51148         * modules/unistr/u32-mbtouc: Renamed from
51149         modules/unistr/u32-mbtouc-safe.
51150         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
51151         * lib/unistr.h: Update.
51152         * lib/unistr/u32-to-u8.c: Update.
51153         * lib/unistr/u32-to-u16.c: Update.
51154
51155 2007-01-27  Bruno Haible  <bruno@clisp.org>
51156
51157         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
51158         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
51159         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
51160         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
51161         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
51162         * modules/unistr/u16-mbtouc-unsafe: Renamed from
51163         modules/unistr/u16-mbtouc.
51164         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
51165         * lib/unistr.h: Update.
51166         * lib/linebreak.c: Update.
51167         * modules/linebreak: Update.
51168         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
51169         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
51170         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
51171         * modules/unistr/u16-mbtouc: Renamed from
51172         modules/unistr/u16-mbtouc-safe.
51173         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
51174         * lib/unistr.h: Update.
51175         * lib/unistr/u16-to-u8.c: Update.
51176         * modules/unistr/u16-to-u8: Update.
51177         * lib/unistr/u16-to-u32.c: Update.
51178         * modules/unistr/u16-to-u32: Update.
51179
51180 2007-01-27  Bruno Haible  <bruno@clisp.org>
51181
51182         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
51183         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
51184         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
51185         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
51186         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
51187         * modules/unistr/u8-mbtouc-unsafe: Renamed from
51188         modules/unistr/u8-mbtouc.
51189         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
51190         * lib/unistr.h: Update.
51191         * lib/striconveh.c: Update.
51192         * modules/striconveh: Update.
51193         * lib/linebreak.c: Update.
51194         * modules/linebreak: Update.
51195         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
51196         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
51197         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
51198         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
51199         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
51200         * lib/unistr.h: Update.
51201         * lib/striconveh.c: Update.
51202         * modules/striconveh: Update.
51203         * lib/unistr/u8-to-u16.c: Update.
51204         * modules/unistr/u8-to-u16: Update.
51205         * lib/unistr/u8-to-u32.c: Update.
51206         * modules/unistr/u8-to-u32: Update.
51207
51208 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51209
51210         Sync from Libtool.
51211         * lib/argz.c: Do not include strings.h nor memory.h, include
51212         string.h unconditionally.  Patch by Simon Josefsson.
51213
51214 2007-01-27  Bruno Haible  <bruno@clisp.org>
51215
51216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
51217         from gl_HEADER_STRING_H_BODY.
51218         (gl_HEADER_STRING_H_BODY): Require it.
51219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
51220         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51222         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51224         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
51225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51226         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51227         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
51228         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51229         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51230         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
51231         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51232         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51233         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51234
51235 2007-01-27  Bruno Haible  <bruno@clisp.org>
51236
51237         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
51238         check_PROGRAMS into noinst_PROGRAMS.
51239         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
51240         check_PROGRAMS in this case.
51241         (func_import): Set for_test to false.
51242         (func_create_testdir): Set for_test to true.
51243
51244 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51245             Bruno Haible  <bruno@clisp.org>
51246
51247         * modules/strcasestr (Files): Remove lib/strcasestr.h.
51248         (Depends-on): Add string.
51249         (Includes): Use <string.h> instead of strcasestr.h.
51250         * modules/string (Makefile.am): Also substitute the value of
51251         REPLACE_STRCASESTR.
51252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
51253         assume strcasestr is declared in <string.h> not <strings.h>. Also
51254         set REPLACE_STRCASESTR.
51255         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
51256         REPLACE_STRCASESTR.
51257         * lib/strcasestr.h: Remove file.
51258         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
51259         * lib/string_.h (strcasestr): New declaration.
51260
51261 2007-01-27  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/string_.h: Use 'extern'.
51264
51265 2007-01-27  Jim Meyering  <jim@meyering.net>
51266
51267         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
51268         of set-but-not-used local, "q".
51269
51270         * lib/mempcpy.c: Include <config.h> before <string.h>.
51271         This fixes a compilation error on HP-UX, due to the system's
51272         "restrict"-using mempcpy prototype.
51273
51274 2007-01-26  Bruno Haible  <bruno@clisp.org>
51275
51276         Small optimization.
51277         * lib/javacomp.c: Include c-strstr.h.
51278          (is_envjavac_gcj): Use c_strstr instead of strstr.
51279         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
51280
51281 2007-01-26  Bruno Haible  <bruno@clisp.org>
51282
51283         * MODULES.html.sh (Unicode string functions): Add the new modules.
51284
51285         * modules/uniconv/u32-strconv-to-locale: New file.
51286         * lib/uniconv/u32-strconv-to-locale.c: New file.
51287
51288         * modules/uniconv/u16-strconv-to-locale: New file.
51289         * lib/uniconv/u16-strconv-to-locale.c: New file.
51290
51291         * modules/uniconv/u8-strconv-to-locale: New file.
51292         * lib/uniconv/u8-strconv-to-locale.c: New file.
51293
51294         * modules/uniconv/u32-strconv-from-locale: New file.
51295         * lib/uniconv/u32-strconv-from-locale.c: New file.
51296
51297         * modules/uniconv/u16-strconv-from-locale: New file.
51298         * lib/uniconv/u16-strconv-from-locale.c: New file.
51299
51300         * modules/uniconv/u8-strconv-from-locale: New file.
51301         * lib/uniconv/u8-strconv-from-locale.c: New file.
51302
51303         * modules/uniconv/u32-strconv-to-enc: New file.
51304         * lib/uniconv/u32-strconv-to-enc.c: New file.
51305         * modules/uniconv/u32-strconv-to-enc-tests: New file.
51306         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
51307
51308         * modules/uniconv/u16-strconv-to-enc: New file.
51309         * lib/uniconv/u16-strconv-to-enc.c: New file.
51310         * lib/uniconv/u-strconv-to-enc.h: New file.
51311         * modules/uniconv/u16-strconv-to-enc-tests: New file.
51312         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
51313
51314         * modules/uniconv/u8-strconv-to-enc: New file.
51315         * lib/uniconv/u8-strconv-to-enc.c: New file.
51316         * modules/uniconv/u8-strconv-to-enc-tests: New file.
51317         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
51318
51319         * modules/uniconv/u32-strconv-from-enc: New file.
51320         * lib/uniconv/u32-strconv-from-enc.c: New file.
51321         * modules/uniconv/u32-strconv-from-enc-tests: New file.
51322         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
51323
51324         * modules/uniconv/u16-strconv-from-enc: New file.
51325         * lib/uniconv/u16-strconv-from-enc.c: New file.
51326         * modules/uniconv/u16-strconv-from-enc-tests: New file.
51327         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
51328
51329         * modules/uniconv/u8-strconv-from-enc: New file.
51330         * lib/uniconv/u8-strconv-from-enc.c: New file.
51331         * lib/uniconv/u-strconv-from-enc.h: New file.
51332         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51333         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51334
51335         * modules/uniconv/u32-conv-from-enc: New file.
51336         * lib/uniconv/u32-conv-from-enc.c: New file.
51337         * modules/uniconv/u32-conv-from-enc-tests: New file.
51338         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51339
51340         * modules/uniconv/u16-conv-from-enc: New file.
51341         * lib/uniconv/u16-conv-from-enc.c: New file.
51342         * lib/uniconv/u-conv-from-enc.h: New file.
51343         * modules/uniconv/u16-conv-from-enc-tests: New file.
51344         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51345
51346         * modules/uniconv/u8-conv-from-enc: New file.
51347         * lib/uniconv/u8-conv-from-enc.c: New file.
51348         * modules/uniconv/u8-conv-from-enc-tests: New file.
51349         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51350
51351         * modules/uniconv/base: New file.
51352         * lib/uniconv.h: New file.
51353
51354 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51355
51356         * doc/gnulib-tool.texi (Initial import): Update to match current
51357         behavior with strdup module.
51358         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
51359         * lib/memmem.h: Remove; all uses removed.  This is now done
51360         by <string.h>.
51361         * lib/mempcpy.h: Likewise.
51362         * lib/memrchr.h: Likewise.
51363         * lib/stpcpy.h: Likewise.
51364         * lib/stpncpy.h: Likewise.
51365         * lib/strcase.h: Likewise.
51366         * lib/strchrnul.h: Likewise.
51367         * lib/strdup.h: Likewise.
51368         * lib/strndup.h: Likewise.
51369         * lib/strnlen.h: Likewise.
51370         * lib/strpbrk.h: Likewise.
51371         * lib/strsep.h: Likewise.
51372         * lib/strstr.h: Likewise.
51373         * lib/strtok_r.h: Likewise.
51374         * lib/string_.h: New file.
51375         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
51376         Rely on <string.h> instead.
51377         * lib/canon-host.c: Likewise.
51378         * lib/chdir-long.c: Likewise.
51379         * lib/concatpath.c: Likewise.
51380         * lib/exclude.c: Likewise.
51381         * lib/fchdir.c: Likewise.
51382         * lib/getaddrinfo.c: Likewise.
51383         * lib/getcwd.c: Likewise.
51384         * lib/getsubopt.c: Likewise.
51385         * lib/glob.c: Likewise.
51386         * lib/hard-locale.c: Likewise.
51387         * lib/iconvme.c: Likewise.
51388         * lib/javacomp.c: Likewise.
51389         * lib/mempcpy.c: Likewise.
51390         * lib/memrchr.c: Likewise.
51391         * lib/regex_internal.h: Likewise.
51392         * lib/stpncpy.c: Likewise.
51393         * lib/strcasecmp.c: Likewise.
51394         * lib/strchrnul.c: Likewise.
51395         * lib/strdup.c: Likewise.
51396         * lib/striconv.c: Likewise.
51397         * lib/striconveh.c: Likewise.
51398         * lib/striconveha.c: Likewise.
51399         * lib/strncasecmp.c: Likewise.
51400         * lib/strndup.c: Likewise.
51401         * lib/strnlen.c: Likewise.
51402         * lib/strsep.c: Likewise.
51403         * lib/strstr.c: Likewise.
51404         * lib/strtok_r.c: Likewise.
51405         * lib/userspec.c: Likewise.
51406         * lib/w32spawn.h: Likewise.
51407         * lib/xstrndup.c: Likewise.
51408         * lib/mountlist.c (strstr): Remove decl.
51409         * m4/string_h.m4: New file.
51410         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
51411         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
51412         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
51413         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
51414         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
51415         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
51416         Set REPLACE_STRCASECMP if necessary.
51417         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
51418         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
51419         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
51420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
51421         HAVE_DECL_STRDUP if necessary.
51422         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
51423         since gl_FUNC_STRNDUP does that now.
51424         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
51425         Check for decl here...
51426         (gl_PREREQ_STRNLEN): ... not here.
51427         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
51428         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
51429         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
51430         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
51431         necessary.
51432         * modules/string: New file.
51433         * modules/memmem (Files): Remove special-purpose include file.
51434         (Depends-on): Add string.
51435         (Include): Include <string.h>, not the removed file.
51436         * modules/mempcpy: Likewise.
51437         * modules/memrchr: Likewise.
51438         * modules/stpcpy: Likewise.
51439         * modules/stpncpy: Likewise.
51440         * modules/strcase: Likewise.
51441         * modules/strchrnul: Likewise.
51442         * modules/strdup: Likewise.
51443         * modules/strndup: Likewise.
51444         * modules/strnlen: Likewise.
51445         * modules/strpbrk: Likewise.
51446         * modules/strsep: Likewise.
51447         * modules/strstr: Likewise.
51448         * modules/strtok_r: Likewise.
51449         * tests/test-dirname.c: Don't include "strdup.h", since
51450         <string.h> now suffices.
51451         * tests/test-memmem.c: Don't include "memmem.h", since
51452         <string.h> now suffices.
51453
51454 2007-01-25  Bruno Haible  <bruno@clisp.org>
51455
51456         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
51457         *resultp is 0.
51458
51459         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
51460         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
51461         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
51462         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
51463
51464         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
51465         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
51466         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
51467         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51468         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51469         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51470
51471 2007-01-24  Bruno Haible  <bruno@clisp.org>
51472
51473         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51474         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51475         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51476         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51477         gl_FUNC_FTS_CORE.
51478         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51479         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51480         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51481         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51482         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51483         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51484         gl_FUNC_FCHOWNAT.
51485         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51486         gl_FUNC_STRFTIME.
51487         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51488         Reported by Ralf Wildenhues.
51489
51490 2007-01-24  Bruno Haible  <bruno@clisp.org>
51491
51492         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51493         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51494         gl_GETADDRINFO.
51495         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51496         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51497         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51498
51499 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51500
51501         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51502         Don't use 'exit'; just return from 'main'.
51503         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51504
51505         * lib/fnmatch_.h: Readjust white space and comments to match
51506         glibc, to avoid spurious diffs.
51507
51508 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51509
51510         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
51511         2004-12-01 change by Jakub Jelinek, since this code won't compile
51512         if !LIBC.  Problem reported by Bob Proulx.
51513
51514 2007-01-23  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/striconveh.c: Include c-strcaseeq.h.
51517         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
51518         * modules/striconveh (Depends-on): Add c-strcaseeq.
51519
51520 2007-01-23  Bruno Haible  <bruno@clisp.org>
51521
51522         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
51523
51524         * modules/c-strcaseeq: New file.
51525         * lib/c-strcaseeq.h: New file.
51526
51527         * modules/streq: New file.
51528         * lib/streq.h: New file.
51529
51530 2007-01-23  Bruno Haible  <bruno@clisp.org>
51531
51532         * modules/striconveha-tests: New file.
51533         * tests/test-striconveha.c: New file.
51534
51535         * lib/striconveha.h: Include <stdbool.h>.
51536         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
51537         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
51538         (mem_iconveha_notranslit): Renamed from mem_iconveha.
51539         (mem_iconveha): New function.
51540         (str_iconveha_notranslit): Renamed from str_iconveha.
51541         (str_iconveha): New function.
51542         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
51543         c-strcase.
51544
51545 2007-01-23  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
51548         encodings without forgiving before trying any encoding with handler.
51549         (str_iconveha): Try all encodings without forgiving before trying any
51550         encoding with handler.
51551
51552 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51553
51554         Import the following changes from libc.
51555
51556         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51557
51558         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
51559
51560         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51561
51562         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
51563         normal_bracket label.
51564
51565         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
51566
51567         [BZ #361]
51568         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
51569         to normal_bracket after fetching the next character.
51570
51571 2007-01-22  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
51574         argument.
51575         * lib/striconveh.c (iconv_carefully_1): New function.
51576         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
51577         argument.
51578         (str_cd_iconveh): Update.
51579         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
51580         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
51581         * tests/test-striconveh.c (MAGIC): New macro.
51582         (new_offsets): New function.
51583         (main): Test call with and without offsets.
51584
51585 2007-01-22  Bruno Haible  <bruno@clisp.org>
51586
51587         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
51588         * modules/sys_select (Makefile.am): Likewise.
51589         * modules/sys_socket (Makefile.am): Likewise.
51590         * modules/sys_time (Makefile.am): Likewise.
51591
51592 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51593
51594         * modules/gettimeofday (License): Change from GPL to LGPL, since
51595         gettimeofday is a library function.
51596
51597 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51598
51599         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
51600
51601 2007-01-21  Bruno Haible  <bruno@clisp.org>
51602
51603         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
51604
51605 2007-01-21  Bruno Haible  <bruno@clisp.org>
51606
51607         * modules/striconveha: New file.
51608         * lib/striconveha.h: New file.
51609         * lib/striconveha.c: New file.
51610         * MODULES.html.sh (Internationalization functions): Add striconveha.
51611         * lib/striconv.c (str_iconv): Optimize the case of an empty input
51612         string.
51613         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
51614
51615 2007-01-21  Bruno Haible  <bruno@clisp.org>
51616
51617         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
51618         * lib/striconveh.c (str_iconveh): Likewise.
51619
51620 2007-01-21  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/striconveh.h (mem_iconveh): New declaration.
51623         * lib/striconveh.c (mem_iconveh): New function.
51624         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
51625
51626 2007-01-21  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
51629
51630         * lib/striconveh.h (mem_cd_iconveh): Change specification.
51631         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
51632         original result buffer.
51633         (str_cd_iconveh): Update.
51634         * tests/test-striconveh.c (main): Update.
51635
51636         * lib/striconv.h (mem_cd_iconv): Change specification.
51637         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
51638         result buffer.
51639         (str_cd_iconv): Update.
51640         * tests/test-striconv.c (main): Update.
51641
51642 2007-01-21  Bruno Haible  <bruno@clisp.org>
51643
51644         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
51645
51646 2007-01-20  Jim Meyering  <jim@meyering.net>
51647
51648         * lib/userspec.c (parse_with_separator): If a user or group string
51649         starts with "+", skip the corresponding name-to-ID look-up, since
51650         such a look-up must fail: user and group names may not include "+".
51651
51652 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51653
51654         * lib/poll.c: Include sys/time.h and time.h unconditionally,
51655         since we now assume the sys_time module.
51656         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
51657         check for sys/time.h; no longer needed.
51658         * modules/poll (Depends-on): Depend on sys_time.
51659
51660 2007-01-18  Bruno Haible  <bruno@clisp.org>
51661
51662         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
51663         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51664
51665         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
51666         gettimeofday.
51667
51668         * tests/test-gettimeofday.c: Include <time.h>.
51669         (dummy): Remove variable.
51670
51671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
51672         gl_HEADER_SYS_TIME_H.
51673         (gl_HEADER_SYS_TIME_H): New macro.
51674
51675         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
51676         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51678         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
51679         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
51681         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
51682         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51683         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
51684         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
51685         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51686
51687         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
51688         last change; it caused a compilation error when cross-compiling to
51689         Cygwin.
51690
51691 2007-01-18  Jim Meyering  <jim@meyering.net>
51692
51693         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
51694         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
51695         than the race-prone "test -d sys || mkdir sys".
51696         (configure.ac): Use AC_PROG_MKDIR_P.
51697         * modules/sys_select: Likewise.
51698         * modules/sys_socket: Likewise.
51699         * modules/sys_time: Likewise.
51700
51701 2007-01-18  Eric Blake  <ebb9@byu.net>
51702
51703         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
51704         replace gettimeofday.
51705         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
51706         name, to avoid infinite recursion.
51707
51708 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
51709
51710         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
51711         module sys_time.
51712         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
51713         assume timespec.h defines struct timeval.
51714         * lib/settime.c: Likewise.
51715         * lib/utimens.c: Likewise.
51716         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
51717         since we now assume the gettimeofday module.
51718         * lib/tempname.c (__gen_tempname): Likewise.
51719         * lib/gettimeofday.h: Remove.
51720         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
51721         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
51722         Include <time.h>, for 'time()'.
51723         (localtime_buffer_addr): Also use this workaround if
51724         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
51725         to simplify the uses.  All uses changed.
51726         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
51727         that #undef is inside {}, and 'const' follows type name consistently.
51728         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
51729         (gettimeofday): Do not use the maximum possible value for
51730         tv->tv_usec, since that might break usages other than ls.c.
51731         Instead, we'll leave ls.c alone.  This undoes today's patch
51732         by Bruno.  Add a compile-time warning for 1s-clock resolution;
51733         we've never observed the problem but might as well keep the
51734         canary.
51735         * lib/nanosleep.c: Include timespec.h first, for interface check.
51736         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
51737         now assume the sys_time module.
51738         * lib/tempname.c: Likewise.
51739         * lib/timespec.h: Likewise.
51740         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
51741         needed.
51742         * lib/strftime.c: Likewise.
51743         * lib/timespec.h: Likewise.
51744         * lib/posixtm.c: Include posixtm.h first, for interface check.
51745         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
51746         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
51747         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
51748         * lib/sys_time_.h: New file.
51749         * lib/timespec.h (struct timespec): Use long int, not long.
51750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51751         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
51752         Remove obsolescent call to AC_HEADER_TIME.
51753         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51755         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51756         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
51757         Likewise.
51758         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
51759         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
51760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
51761         into the sys_time module.  Check for gettimeofday just once.
51762         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
51763         for gettimeofday signature to just check the signature.  Merely
51764         compile it, since linking doesn't test signature.  Improve test for
51765         whether gettimeofday.o is actually needed.
51766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
51767         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
51768         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
51769         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51770         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
51771         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
51772         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
51773         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
51774         than worrying about sys/time.h.
51775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51776         Don't bother worrying about TIME_WITH_SYS_TIME.
51777         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
51778         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
51779         * m4/sys_time_h.m4: New file.
51780         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
51781         Don't include sys/time.h.  Return from main rather than exiting.
51782         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
51783         all uses changed.
51784         * modules/gethrxtime (Depends-on): Add sys_time.
51785         * modules/gettime (Depends-on): Likewise.
51786         * modules/gettimeofday (Depends-on): Likewise.
51787         * modules/nanosleep (Depends-on): Likewise.
51788         * modules/settime (Depends-on): Likewise.
51789         * modules/tempname (Depends-on): Likewise.
51790         * modules/utimens (Depends-on): Likewise.
51791         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
51792         (Include:) Change back to <sys/time.h>.
51793         (Maintainer:) Add self.
51794         * modules/sys_time: New file.
51795         * modules/tempname (Depends-on): Add gettimeofday.
51796         * tests/test-gettimeofday.c: Include <sys/time.h>
51797         rather than gettimeofday.h.
51798
51799 2007-01-17  Bruno Haible  <bruno@clisp.org>
51800
51801         * gnulib-tool (func_get_license): Revert last patch. Instead, let
51802         the license default to GPL.
51803         (func_create_testdir): Don't complain if a module is LGPL and its
51804         tests module depends on GPLed modules.
51805
51806 2007-01-17  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/gettimeofday.c (gettimeofday): Add code for the case
51809         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
51810         maximum possible value for tv->tv_usec, rather than the minimum one.
51811
51812 2005-10-08  Martin Lambers  <marlam@marlam.de>
51813 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51814 2007-01-16  Bruno Haible  <bruno@clisp.org>
51815
51816         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
51817         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
51818         gl_FUNC_GETTIMEOFDAY.
51819         (Include): Add gettimeofday.h.
51820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
51821         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
51822         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
51823         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
51824         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
51825         * lib/gettimeofday.h: New file.
51826         * lib/gettimeofday.c: Include <sys/timeb.h>.
51827         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
51828         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51829         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
51830         fall back on time().
51831
51832         * tests/test-gettimeofday.c: New file.
51833         * modules/gettimeofday-tests: New file.
51834
51835 2007-01-16  Eric Blake  <ebb9@byu.net>
51836
51837         * modules/fnmatch (Depends-on): Depend on wchar.
51838         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
51839         * m4/fnmatch.m4: Likewise.
51840         * modules/mbchar (Makefile.am): Assume <wchar.h>.
51841         * m4/mbchar.m4: Likewise.
51842         * modules/mbswidth (Depends-on): Depend on wchar.
51843         * lib/mbswidth.c: Assume <wchar.h>.
51844         * m4/mbswidth.m4: Likewise.
51845         * modules/quotearg (Depends-on): Depend on wchar.
51846         * lib/quotearg.c: Assume <wchar.h>.
51847         * m4/quotearg.m4: Likewise.
51848         * modules/regex (Depends-on): Depend on wchar.
51849         * lib/regex_internal.h: Assume <wchar.h>.
51850         * m4/regex.m4: Likewise.
51851         * modules/stdint (Depends-on): Depend on wchar.
51852         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
51853         * m4/stdint.m4: Likewise.
51854         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
51855         * modules/strftime (Depends-on): Depend on wchar.
51856         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
51857         * modules/strtol (Depends-on): Depend on wchar.
51858         * lib/strtol.c: Assume <wchar.h>.
51859         * modules/wcwidth (Depends-on): Depend on wchar.
51860         * lib/wcwidth.h: Assume <wchar.h>.
51861         * m4/wcwidth.m4: Likewise.
51862
51863 2007-01-16  Bruno Haible  <bruno@clisp.org>
51864
51865         * modules/csharpexec-script: New, created from...
51866         * modules/csharpexec: ... this.
51867
51868 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51869
51870         * modules/javaexec-script: New, created from...
51871         * modules/javaexec: ... this.
51872
51873 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51874
51875         * modules/poll (Dependencies): Add sys_select.
51876
51877 2007-01-15  Jim Meyering  <jim@meyering.net>
51878
51879         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
51880         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
51881         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
51882         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
51883
51884 2007-01-15  Bruno Haible  <bruno@clisp.org>
51885
51886         * modules/striconveh: New file.
51887         * lib/striconveh.h: New file.
51888         * lib/striconveh.c: New file.
51889         * MODULES.html.sh (Internationalization functions): Add striconveh.
51890
51891         * modules/striconveh-tests: New file.
51892         * tests/test-striconveh.c: New file.
51893
51894 2007-01-15  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
51897         not from GNU libiconv or GNU libc.
51898
51899 2007-01-15  Bruno Haible  <bruno@clisp.org>
51900
51901         * doc/gnulib-intro.texi (Copyright): Explain the different license
51902         terms for module descriptions, autoconf macros, tests, documentation.
51903
51904 2007-01-14  Bruno Haible  <bruno@clisp.org>
51905
51906         * modules/striconv-tests: New file.
51907         * tests/test-striconv.c: New file.
51908
51909 2007-01-14  Bruno Haible  <bruno@clisp.org>
51910
51911         * modules/iconv-tests: New file.
51912         * tests/test-iconv.c: New file.
51913
51914 2007-01-14  Bruno Haible  <bruno@clisp.org>
51915
51916         * gnulib-tool (func_get_license): For test modules, use the license of
51917         the main module.
51918
51919 2007-01-14  Bruno Haible  <bruno@clisp.org>
51920
51921         * modules/iconv (Include): Clarify that <iconv.h> can only be included
51922         if iconv is found to exist.
51923
51924 2007-01-14  Bruno Haible  <bruno@clisp.org>
51925
51926         * modules/c-ctype-tests: New file.
51927         * tests/test-c-ctype.c: New file.
51928
51929 2007-01-14  Bruno Haible  <bruno@clisp.org>
51930
51931         * modules/binary-io-tests: New file.
51932         * tests/test-binary-io.sh: New file.
51933         * tests/test-binary-io.c: New file.
51934
51935 2007-01-14  Bruno Haible  <bruno@clisp.org>
51936
51937         * modules/array-oset-tests: New file.
51938         * tests/test-array_oset.c: New file.
51939
51940 2007-01-14  Bruno Haible  <bruno@clisp.org>
51941
51942         * modules/array-list-tests: New file.
51943         * tests/test-array_list.c: New file.
51944
51945 2007-01-14  Bruno Haible  <bruno@clisp.org>
51946
51947         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
51948         and make.
51949         Reported by Simon Josefsson in
51950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
51951
51952 2007-01-14  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/allocsa-tests: New file.
51955         * tests/test-allocsa.c: New file.
51956
51957 2007-01-14  Bruno Haible  <bruno@clisp.org>
51958
51959         * modules/fchdir (Depends-on): Add absolute-header.
51960         * modules/unistd (Depends-on): Likewise.
51961
51962 2006-12-30  Bruno Haible  <bruno@clisp.org>
51963
51964         * modules/fchdir: New file.
51965         * modules/unistd (Files): Add lib/unistd_.h.
51966         (Makefile.am): Generate unistd.h from unistd_.h.
51967         * lib/fchdir.c: New file.
51968         * lib/dirent_.h: New file.
51969         * lib/unistd_.h: New file.
51970         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
51971         * m4/fchdir.m4: New file.
51972         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
51973         (gl_HEADER_UNISTD): Invoke it.
51974         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
51975         function.
51976         * lib/backupfile.c (opendir, closedir): Undefine.
51977         * lib/chown.c (open, close): Undefine.
51978         * lib/clean-temp.c (open, close): Undefine.
51979         * lib/copy-file.c (open, close): Undefine.
51980         * lib/execute.c (open, close): Undefine.
51981         * lib/fsusage.c (open, close): Undefine.
51982         * lib/gc-gnulib.c (open, close): Undefine.
51983         * lib/getcwd.c (opendir, closedir): Undefine.
51984         * lib/glob.c (opendir, closedir): Undefine.
51985         * lib/javacomp.c (open, close): Undefine.
51986         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
51987         * lib/openat-proc.c (open, close): Undefine.
51988         * lib/pagealign_alloc.c (open, close): Undefine.
51989         * lib/pipe.c (open, close): Undefine.
51990         * lib/progreloc.c (open, close): Undefine.
51991         * lib/savedir.c (opendir, closedir): Undefine.
51992         * lib/utime.c (open, close): Undefine.
51993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
51994
51995 2007-01-10  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
51998
51999 2007-01-12  Eric Blake  <ebb9@byu.net>
52000
52001         Provide a robust <wchar.h>.  Further simplifications are now
52002         possible in other modules, but not included here.
52003         * modules/wchar: New module.
52004         * m4/wchar.m4: New file.
52005         * lib/wchar_.h: Likewise.
52006         * modules/mbchar (Depends-on): Depend on wchar, as the first use
52007         of the new module.
52008         * MODULES.html.sh (Extended multibyte and wide character utilities):
52009         New section.
52010
52011 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
52014         to a reasonable default for memory allocation.
52015         (xreadlink): Don't allocate a huge buffer, to work around a buggy
52016         file system that reports garbage st_size values for symlinks.
52017         Problem reported by Liyang Hu.
52018
52019 2007-01-11  Simon Josefsson  <simon@josefsson.org>
52020
52021         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
52022         Emacs .#* auto-save files).
52023
52024 2007-01-11  Bruno Haible  <bruno@clisp.org>
52025
52026         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
52027         directory.
52028
52029 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52030
52031         Use @...@ consistently in lib/wctype_.h.
52032         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
52033         on it being set to 1 or 0.
52034         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
52035         go back to AC_SUBSTing it.
52036         * modules/wctype (Makefile.am): Undo previous change.
52037
52038 2007-01-10  Eric Blake  <ebb9@byu.net>
52039
52040         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
52041         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
52042         * modules/wctype (Makefile.am): Likewise.
52043         Reported by Chris McGuire.
52044
52045 2007-01-10  Jim Meyering  <jim@meyering.net>
52046
52047         fts.c: a small readability/maintainability improvement
52048         * lib/fts.c (fts_read): Make this code slightly more readable and
52049         maintainable by hoisting the "sp->fts_cur = p" assignments to
52050         immediately follow the statements that set P.  Derived from
52051         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
52052
52053 2007-01-10  Eric Blake  <ebb9@byu.net>
52054
52055         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
52056         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
52057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52058         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52059         Reported by Chris McGuire.
52060
52061 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52062
52063         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
52064         in sed script.
52065
52066 2007-01-09  Bruno Haible  <bruno@clisp.org>
52067
52068         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
52069         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
52070         variables.
52071         (func_module): Use them.
52072
52073 2007-01-09  Bruno Haible  <bruno@clisp.org>
52074
52075         * modules/unistr/base: New file.
52076         * lib/unistr.h: New file.
52077
52078         * modules/unistr/u8-to-u16: New file.
52079         * lib/unistr/u8-to-u16.c: New file.
52080
52081         * modules/unistr/u8-to-u32: New file.
52082         * lib/unistr/u8-to-u32.c: New file.
52083
52084         * modules/unistr/u16-to-u8: New file.
52085         * lib/unistr/u16-to-u8.c: New file.
52086
52087         * modules/unistr/u16-to-u32: New file.
52088         * lib/unistr/u16-to-u32.c: New file.
52089
52090         * modules/unistr/u32-to-u8: New file.
52091         * lib/unistr/u32-to-u8.c: New file.
52092
52093         * modules/unistr/u32-to-u16: New file.
52094         * lib/unistr/u32-to-u16.c: New file.
52095
52096         * modules/unistr/u8-check: New file.
52097         * modules/unistr/u16-check: New file.
52098         * modules/unistr/u32-check: New file.
52099         * lib/unistr/u8-check.c: New file.
52100         * lib/unistr/u16-check.c: New file.
52101         * lib/unistr/u32-check.c: New file.
52102
52103         * modules/unistr/u8-chr: New file.
52104         * modules/unistr/u16-chr: New file.
52105         * modules/unistr/u32-chr: New file.
52106         * lib/unistr/u8-chr.c: New file.
52107         * lib/unistr/u16-chr.c: New file.
52108         * lib/unistr/u32-chr.c: New file.
52109
52110         * modules/unistr/u8-cmp: New file.
52111         * modules/unistr/u16-cmp: New file.
52112         * modules/unistr/u32-cmp: New file.
52113         * lib/unistr/u8-cmp.c: New file.
52114         * lib/unistr/u16-cmp.c: New file.
52115         * lib/unistr/u32-cmp.c: New file.
52116
52117         * modules/unistr/u8-cpy: New file.
52118         * modules/unistr/u16-cpy: New file.
52119         * modules/unistr/u32-cpy: New file.
52120         * lib/unistr/u8-cpy.c: New file.
52121         * lib/unistr/u16-cpy.c: New file.
52122         * lib/unistr/u32-cpy.c: New file.
52123         * lib/unistr/u-cpy.h: New file.
52124
52125         * modules/unistr/u8-cpy-alloc: New file.
52126         * modules/unistr/u16-cpy-alloc: New file.
52127         * modules/unistr/u32-cpy-alloc: New file.
52128         * lib/unistr/u8-cpy-alloc.c: New file.
52129         * lib/unistr/u16-cpy-alloc.c: New file.
52130         * lib/unistr/u32-cpy-alloc.c: New file.
52131         * lib/unistr/u-cpy-alloc.h: New file.
52132
52133         * modules/unistr/u8-endswith: New file.
52134         * modules/unistr/u16-endswith: New file.
52135         * modules/unistr/u32-endswith: New file.
52136         * lib/unistr/u8-endswith.c: New file.
52137         * lib/unistr/u16-endswith.c: New file.
52138         * lib/unistr/u32-endswith.c: New file.
52139         * lib/unistr/u-endswith.h: New file.
52140
52141         * modules/unistr/u8-mblen: New file.
52142         * modules/unistr/u16-mblen: New file.
52143         * modules/unistr/u32-mblen: New file.
52144         * lib/unistr/u8-mblen.c: New file.
52145         * lib/unistr/u16-mblen.c: New file.
52146         * lib/unistr/u32-mblen.c: New file.
52147
52148         * modules/unistr/u8-mbtouc: New file.
52149         * modules/unistr/u16-mbtouc: New file.
52150         * modules/unistr/u32-mbtouc: New file.
52151         * lib/unistr/u8-mbtouc.c: New file.
52152         * lib/unistr/u16-mbtouc.c: New file.
52153         * lib/unistr/u32-mbtouc.c: New file.
52154
52155         * modules/unistr/u8-mbtouc-safe: New file.
52156         * modules/unistr/u16-mbtouc-safe: New file.
52157         * modules/unistr/u32-mbtouc-safe: New file.
52158         * lib/unistr/u8-mbtouc-safe.c: New file.
52159         * lib/unistr/u16-mbtouc-safe.c: New file.
52160         * lib/unistr/u32-mbtouc-safe.c: New file.
52161
52162         * modules/unistr/u8-move: New file.
52163         * modules/unistr/u16-move: New file.
52164         * modules/unistr/u32-move: New file.
52165         * lib/unistr/u8-move.c: New file.
52166         * lib/unistr/u16-move.c: New file.
52167         * lib/unistr/u32-move.c: New file.
52168         * lib/unistr/u-move.h: New file.
52169
52170         * modules/unistr/u8-next: New file.
52171         * modules/unistr/u16-next: New file.
52172         * modules/unistr/u32-next: New file.
52173         * lib/unistr/u8-next.c: New file.
52174         * lib/unistr/u16-next.c: New file.
52175         * lib/unistr/u32-next.c: New file.
52176
52177         * modules/unistr/u8-prev: New file.
52178         * modules/unistr/u16-prev: New file.
52179         * modules/unistr/u32-prev: New file.
52180         * lib/unistr/u8-prev.c: New file.
52181         * lib/unistr/u16-prev.c: New file.
52182         * lib/unistr/u32-prev.c: New file.
52183
52184         * modules/unistr/u8-set: New file.
52185         * modules/unistr/u16-set: New file.
52186         * modules/unistr/u32-set: New file.
52187         * lib/unistr/u8-set.c: New file.
52188         * lib/unistr/u16-set.c: New file.
52189         * lib/unistr/u32-set.c: New file.
52190         * lib/unistr/u-set.h: New file.
52191
52192         * modules/unistr/u8-startswith: New file.
52193         * modules/unistr/u16-startswith: New file.
52194         * modules/unistr/u32-startswith: New file.
52195         * lib/unistr/u8-startswith.c: New file.
52196         * lib/unistr/u16-startswith.c: New file.
52197         * lib/unistr/u32-startswith.c: New file.
52198         * lib/unistr/u-startswith.h: New file.
52199
52200         * modules/unistr/u8-stpcpy: New file.
52201         * modules/unistr/u16-stpcpy: New file.
52202         * modules/unistr/u32-stpcpy: New file.
52203         * lib/unistr/u8-stpcpy.c: New file.
52204         * lib/unistr/u16-stpcpy.c: New file.
52205         * lib/unistr/u32-stpcpy.c: New file.
52206         * lib/unistr/u-stpcpy.h: New file.
52207
52208         * modules/unistr/u8-stpncpy: New file.
52209         * modules/unistr/u16-stpncpy: New file.
52210         * modules/unistr/u32-stpncpy: New file.
52211         * lib/unistr/u8-stpncpy.c: New file.
52212         * lib/unistr/u16-stpncpy.c: New file.
52213         * lib/unistr/u32-stpncpy.c: New file.
52214         * lib/unistr/u-stpncpy.h: New file.
52215
52216         * modules/unistr/u8-strcat: New file.
52217         * modules/unistr/u16-strcat: New file.
52218         * modules/unistr/u32-strcat: New file.
52219         * lib/unistr/u8-strcat.c: New file.
52220         * lib/unistr/u16-strcat.c: New file.
52221         * lib/unistr/u32-strcat.c: New file.
52222         * lib/unistr/u-strcat.h: New file.
52223
52224         * modules/unistr/u8-strchr: New file.
52225         * modules/unistr/u16-strchr: New file.
52226         * modules/unistr/u32-strchr: New file.
52227         * lib/unistr/u8-strchr.c: New file.
52228         * lib/unistr/u16-strchr.c: New file.
52229         * lib/unistr/u32-strchr.c: New file.
52230
52231         * modules/unistr/u8-strcmp: New file.
52232         * modules/unistr/u16-strcmp: New file.
52233         * modules/unistr/u32-strcmp: New file.
52234         * lib/unistr/u8-strcmp.c: New file.
52235         * lib/unistr/u16-strcmp.c: New file.
52236         * lib/unistr/u32-strcmp.c: New file.
52237
52238         * modules/unistr/u8-strcpy: New file.
52239         * modules/unistr/u16-strcpy: New file.
52240         * modules/unistr/u32-strcpy: New file.
52241         * lib/unistr/u8-strcpy.c: New file.
52242         * lib/unistr/u16-strcpy.c: New file.
52243         * lib/unistr/u32-strcpy.c: New file.
52244         * lib/unistr/u-strcpy.h: New file.
52245
52246         * modules/unistr/u8-strcspn: New file.
52247         * modules/unistr/u16-strcspn: New file.
52248         * modules/unistr/u32-strcspn: New file.
52249         * lib/unistr/u8-strcspn.c: New file.
52250         * lib/unistr/u16-strcspn.c: New file.
52251         * lib/unistr/u32-strcspn.c: New file.
52252         * lib/unistr/u-strcspn.h: New file.
52253
52254         * modules/unistr/u8-strdup: New file.
52255         * modules/unistr/u16-strdup: New file.
52256         * modules/unistr/u32-strdup: New file.
52257         * lib/unistr/u8-strdup.c: New file.
52258         * lib/unistr/u16-strdup.c: New file.
52259         * lib/unistr/u32-strdup.c: New file.
52260         * lib/unistr/u-strdup.h: New file.
52261
52262         * modules/unistr/u8-strlen: New file.
52263         * modules/unistr/u16-strlen: New file.
52264         * modules/unistr/u32-strlen: New file.
52265         * lib/unistr/u8-strlen.c: New file.
52266         * lib/unistr/u16-strlen.c: New file.
52267         * lib/unistr/u32-strlen.c: New file.
52268         * lib/unistr/u-strlen.h: New file.
52269
52270         * modules/unistr/u8-strmblen: New file.
52271         * modules/unistr/u16-strmblen: New file.
52272         * modules/unistr/u32-strmblen: New file.
52273         * lib/unistr/u8-strmblen.c: New file.
52274         * lib/unistr/u16-strmblen.c: New file.
52275         * lib/unistr/u32-strmblen.c: New file.
52276
52277         * modules/unistr/u8-strmbtouc: New file.
52278         * modules/unistr/u16-strmbtouc: New file.
52279         * modules/unistr/u32-strmbtouc: New file.
52280         * lib/unistr/u8-strmbtouc.c: New file.
52281         * lib/unistr/u16-strmbtouc.c: New file.
52282         * lib/unistr/u32-strmbtouc.c: New file.
52283
52284         * modules/unistr/u8-strncat: New file.
52285         * modules/unistr/u16-strncat: New file.
52286         * modules/unistr/u32-strncat: New file.
52287         * lib/unistr/u8-strncat.c: New file.
52288         * lib/unistr/u16-strncat.c: New file.
52289         * lib/unistr/u32-strncat.c: New file.
52290         * lib/unistr/u-strncat.h: New file.
52291
52292         * modules/unistr/u8-strncmp: New file.
52293         * modules/unistr/u16-strncmp: New file.
52294         * modules/unistr/u32-strncmp: New file.
52295         * lib/unistr/u8-strncmp.c: New file.
52296         * lib/unistr/u16-strncmp.c: New file.
52297         * lib/unistr/u32-strncmp.c: New file.
52298
52299         * modules/unistr/u8-strncpy: New file.
52300         * modules/unistr/u16-strncpy: New file.
52301         * modules/unistr/u32-strncpy: New file.
52302         * lib/unistr/u8-strncpy.c: New file.
52303         * lib/unistr/u16-strncpy.c: New file.
52304         * lib/unistr/u32-strncpy.c: New file.
52305         * lib/unistr/u-strncpy.h: New file.
52306
52307         * modules/unistr/u8-strnlen: New file.
52308         * modules/unistr/u16-strnlen: New file.
52309         * modules/unistr/u32-strnlen: New file.
52310         * lib/unistr/u8-strnlen.c: New file.
52311         * lib/unistr/u16-strnlen.c: New file.
52312         * lib/unistr/u32-strnlen.c: New file.
52313         * lib/unistr/u-strnlen.h: New file.
52314
52315         * modules/unistr/u8-strpbrk: New file.
52316         * modules/unistr/u16-strpbrk: New file.
52317         * modules/unistr/u32-strpbrk: New file.
52318         * lib/unistr/u8-strpbrk.c: New file.
52319         * lib/unistr/u16-strpbrk.c: New file.
52320         * lib/unistr/u32-strpbrk.c: New file.
52321         * lib/unistr/u-strpbrk.h: New file.
52322
52323         * modules/unistr/u8-strrchr: New file.
52324         * modules/unistr/u16-strrchr: New file.
52325         * modules/unistr/u32-strrchr: New file.
52326         * lib/unistr/u8-strrchr.c: New file.
52327         * lib/unistr/u16-strrchr.c: New file.
52328         * lib/unistr/u32-strrchr.c: New file.
52329
52330         * modules/unistr/u8-strspn: New file.
52331         * modules/unistr/u16-strspn: New file.
52332         * modules/unistr/u32-strspn: New file.
52333         * lib/unistr/u8-strspn.c: New file.
52334         * lib/unistr/u16-strspn.c: New file.
52335         * lib/unistr/u32-strspn.c: New file.
52336         * lib/unistr/u-strspn.h: New file.
52337
52338         * modules/unistr/u8-strstr: New file.
52339         * modules/unistr/u16-strstr: New file.
52340         * modules/unistr/u32-strstr: New file.
52341         * lib/unistr/u8-strstr.c: New file.
52342         * lib/unistr/u16-strstr.c: New file.
52343         * lib/unistr/u32-strstr.c: New file.
52344         * lib/unistr/u-strstr.h: New file.
52345
52346         * modules/unistr/u8-strtok: New file.
52347         * modules/unistr/u16-strtok: New file.
52348         * modules/unistr/u32-strtok: New file.
52349         * lib/unistr/u8-strtok.c: New file.
52350         * lib/unistr/u16-strtok.c: New file.
52351         * lib/unistr/u32-strtok.c: New file.
52352         * lib/unistr/u-strtok.h: New file.
52353
52354         * modules/unistr/u8-uctomb: New file.
52355         * modules/unistr/u16-uctomb: New file.
52356         * modules/unistr/u32-uctomb: New file.
52357         * lib/unistr/u8-uctomb.c: New file.
52358         * lib/unistr/u16-uctomb.c: New file.
52359         * lib/unistr/u32-uctomb.c: New file.
52360
52361         * MODULES.html.sh (Unicode string functions): Add the new modules.
52362
52363 2007-01-08  Bruno Haible  <bruno@clisp.org>
52364
52365         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
52366         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
52367         subdirectories.
52368
52369 2007-01-08  Karl Berry  <karl@gnu.org>
52370
52371         * doc/error.texi: mention that main() fns must set program_name
52372         when progname is used.
52373
52374 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
52375
52376         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
52377         WCTYPE_H is empty, for the benefit of builds from non-distclean
52378         directories.  Problem reported by Eric Blake in
52379         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
52380
52381 2007-01-08  Bruno Haible  <bruno@clisp.org>
52382
52383         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
52384         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
52385         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
52386         PROVIDE_CANONICALIZE_FILENAME_MODE.
52387         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
52388
52389 2007-01-08  Bruno Haible  <bruno@clisp.org>
52390
52391         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
52392         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
52393         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
52394         * lib/fts.c: Likewise.
52395         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
52396
52397 2006-12-25  Bruno Haible  <bruno@clisp.org>
52398
52399         * modules/utf8-ucs4-safe: New file.
52400         * lib/utf8-ucs4-safe.h: New file.
52401         * lib/unistr/utf8-ucs4-safe.c: New file.
52402
52403         * modules/utf16-ucs4-safe: New file.
52404         * lib/utf16-ucs4-safe.h: New file.
52405         * lib/unistr/utf16-ucs4-safe.c: New file.
52406
52407         * MODULES.html.sh (Unicode string functions): Add the new modules.
52408
52409 2007-01-08  Bruno Haible  <bruno@clisp.org>
52410
52411         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
52412         (Depends-on): Add unitypes.
52413         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52414         (u8_mbtouc_aux): Move out to separate file.
52415         (u8_mbtouc): Use ucs4_t, uint8_t types.
52416         * lib/unistr/utf8-ucs4.c: New file.
52417
52418         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
52419         (Depends-on): Add unitypes.
52420         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52421         (u16_mbtouc_aux): Move out to separate file.
52422         (u16_mbtouc): Use ucs4_t, uint16_t types.
52423         * lib/unistr/utf16-ucs4.c: New file.
52424
52425         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
52426         (Depends-on): Add unitypes.
52427         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
52428         (u8_uctomb_aux): Move out to separate file.
52429         (u8_uctomb): Use ucs4_t, uint8_t types.
52430         * lib/unistr/ucs4-utf8.c: New file.
52431
52432         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
52433         (Depends-on): Add unitypes.
52434         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
52435         (u16_uctomb_aux): Move out to separate file.
52436         (u16_uctomb): Use ucs4_t, uint16_t types.
52437         * lib/unistr/ucs4-utf16.c: New file.
52438
52439 2006-12-25  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/unitypes: New file.
52442         * lib/unitypes.h: New file.
52443         * MODULES.html.sh (func_all_modules): New section "Unicode string
52444         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
52445         this section. Add unitypes.
52446
52447 2007-01-08  Bruno Haible  <bruno@clisp.org>
52448
52449         Avoid variable names that conflict with those from libtool.
52450         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
52451         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
52452         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
52453         library_names_spec to acl_library_names_spec, hardcode_* to
52454         acl_hardcode_*.
52455         Reported by Ralf Wildenhues.
52456
52457 2007-01-08  Bruno Haible  <bruno@clisp.org>
52458
52459         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
52460         definition.
52461         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
52462         definition.
52463         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
52464         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
52465         definition.
52466         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
52467         definition.
52468         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52469         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52470         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52471         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52472         definition.
52473         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52474         definition.
52475         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52476         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52477         GC_USE_<algorithm>.
52478         * lib/gc-libgcrypt.c: Likewise.
52479         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52480         * modules/gc-arctwo (configure.ac): Likewise.
52481         * modules/gc-des (configure.ac): Likewise.
52482         * modules/gc-hmac-md5 (configure.ac): Likewise.
52483         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52484         * modules/gc-md2 (configure.ac): Likewise.
52485         * modules/gc-md4 (configure.ac): Likewise.
52486         * modules/gc-md5 (configure.ac): Likewise.
52487         * modules/gc-random (configure.ac): Likewise.
52488         * modules/gc-rijndael (configure.ac): Likewise.
52489         * modules/gc-sha1 (configure.ac): Likewise.
52490
52491 2007-01-08  Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52494         macro definition.
52495         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52496         definition.
52497         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52498         definition.
52499         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52500         * modules/fcntl-safer (configure.ac): Likewise.
52501         * modules/fopen-safer (configure.ac): Likewise.
52502         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52503         GNULIB_FWRITEERROR macro definition.
52504
52505 2007-01-08  Bruno Haible  <bruno@clisp.org>
52506
52507         * m4/gnulib-common.m4: New file.
52508         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
52509         (func_get_filelist): Add m4/gnulib-common.m4.
52510
52511 2007-01-08  Bruno Haible  <bruno@clisp.org>
52512
52513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
52514         command.
52515
52516 2007-01-08  Jim Meyering  <jim@meyering.net>
52517
52518         Use a more robust test for a "can't happen" condition.
52519         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
52520         narrowed the st_size value.  Presuming the "can't happen" condition
52521         is true, that narrowing could conceivably convert an invalid st_size
52522         value into a valid one.  Instead, use a change based on Matthew
52523         Woehlke's original patch.
52524
52525         Slight readability improvement: use an assert-like macro
52526         in place of literal "abort ()" uses.
52527         * lib/fts.c (fts_assert): Define.
52528         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
52529         Use this macro instead of a bare 'abort'.
52530
52531 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         Don't worry about using IRIX 5.3's wctype.h broken definitions;
52534         simply work around them.
52535         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
52536         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
52537         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
52538         declaring.
52539         Don't bother to define as macros, since the standard doesn't require it.
52540         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
52541         longer worry about IRIX 5.3.
52542         (HAVE_WCTYPE_CTMP_BUG): Remove.
52543
52544 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52545
52546         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
52547         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
52548         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52549         Problems reported by Georg Schwarz for IRIX 5.3.
52550
52551         * gnulib-tool (autoconf_minversion): Take the maximum version number
52552         found, not the minimum.  Problem reported by James Youngman.
52553
52554 2007-01-03  Karl Berry  <karl@gnu.org>
52555
52556         * doc/error.texi: new file, explaining interaction with progname.
52557         * doc/gnulib.texi: include it.  Update copyright.
52558
52559 2007-01-03  Simon Josefsson  <simon@josefsson.org>
52560
52561         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
52562         AC_CANONICAL_HOST, to improve autobuild outputs.
52563
52564 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
52565             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52566
52567         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
52568         sockets, server sockets, and other file descriptors.  Count errors
52569         to compute the return value.  Reorder the code a bit to be easier
52570         to follow.  Don't set event bits that were not requested (except
52571         POLLERR and POLLHUP).
52572
52573 2007-01-01  Bruno Haible  <bruno@clisp.org>
52574
52575         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
52576
52577 2007-01-03  Jim Meyering  <jim@meyering.net>
52578
52579         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
52580
52581 2007-01-02  Bruno Haible  <bruno@clisp.org>
52582
52583         * modules/settime (Include): Require timespec.h.
52584         * modules/nanosleep (Include): Likewise.
52585
52586 2007-01-01  Bruno Haible  <bruno@clisp.org>
52587
52588         * gnulib-tool (func_emit_copyright_notice): Bump year.
52589         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
52590
52591 2007-01-01  Bruno Haible  <bruno@clisp.org>
52592
52593         Improve support for OpenBSD.
52594         * build-aux/config.rpath (libname_spec): Export.
52595         (library_names_spec): New variable. Export.
52596         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
52597         library_names_spec from the config.rpath output. Locate shared library
52598         through the name pattern in library_names_spec.
52599
52600 2007-01-01  Eric Blake  <ebb9@byu.net>
52601
52602         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
52603
52604 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52605
52606         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
52607         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
52608         assume the C locale, and avoid an "eval" that could cause trouble.
52609         Problem with SORT reported by Bob Proulx.
52610
52611         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
52612         Define.  Trivial patch from Henning Nielsen Lund, originally
52613         sent to bug-grep@gnu.org today.
52614
52615 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52616
52617         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
52618         struct stat.  Problem reported by Henning Nielsen Lund.
52619         * lib/acl.c: Include acl.h first, to check interface.  Don't
52620         bother to include sys/types.h and sys/stat.h again.
52621
52622 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52623
52624         Import the following change from libc; problem reported by
52625         Sven Verdoolaege.
52626
52627         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
52628
52629         [BZ #1373]
52630         * lib/argp.h: Remove __NTH for __argp_usage inline function.
52631
52632 2006-12-28  Jim Meyering  <jim@meyering.net>
52633
52634         * build-aux/announce-gen: Do not assume that the package
52635         builds any of tar.gz, tar.bz2, and .xdelta files.
52636         Suggestion from Simon Josefsson.
52637
52638 2006-12-28  Simon Josefsson  <simon@josefsson.org>
52639
52640         * modules/announce-gen: New file.
52641
52642 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         * lib/mbchar.h: Just include <wctype.h>; the wctype module
52645         handles its gotchas now.
52646         * lib/mbswidth.c: Likewise.
52647         * lib/wcwidth.h: Likewise.
52648         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
52649         and iswcntrl; the wctype module does this stuff now.
52650         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52652         * modules/mbchar (Depends-on): Add wctype.
52653         * modules/mbswidth (Depends-on): Likewise.
52654         * modules/wcwidth (Depends-on): Likewise.
52655
52656 2006-12-27  Eric Blake  <ebb9@byu.net>
52657
52658         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
52659         module uses more than what <wctype.h> is required to provide.
52660
52661 2006-12-26  Eric Blake  <ebb9@byu.net>
52662
52663         * gnulib-tool (sed_extract_prog): Avoid space-tab.
52664
52665 2006-12-26  Eric Blake  <ebb9@byu.net>
52666
52667         * modules/absolute-header: New module.
52668         * modules/fcntl (Depends-on): Depend on it.
52669         * modules/inttypes (Depends-on): Likewise.
52670         * modules/stdint (Depends-on): Likewise.
52671         * modules/sys_stat (Depends-on): Likewise.
52672         * modules/wctype (Depends-on): Likewise.
52673         * MODULES.html.sh (Support for building libraries and
52674         executables): Document it.
52675
52676 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52677
52678         * gnulib-tool (SED): Remove, undoing previous change.
52679         The problem was that it broke coreutils on Solaris, because
52680         "sed --posix" leaked into a makefile.
52681         (sed): New alias, if 'alias' and GNU sed.
52682
52683 2006-12-24  Jim Meyering  <jim@meyering.net>
52684
52685         Work around an fchownat bug in glibc-2.4:
52686         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
52687         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
52688         in spite of the -P option.
52689         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
52690         New macros.
52691         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
52692         * modules/openat (Files): Add lib/fchownat.c.
52693         * lib/openat.c (fchownat): Don't define here.  Move to...
52694         * lib/fchownat.c: ...this new file.
52695
52696 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52697
52698         Fix bug reported by Bruno Haible in
52699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
52700         where quotearg.c didn't compile on Mac OS X 10.2 because it
52701         lacks <wchar.h> and wint_t.
52702         * lib/wctype_.h (__wctype_wint_t): New type.
52703         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
52704         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
52705         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
52706         Arg is now of type __wctype_wint_t, not wint_t.
52707         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
52708         substitute HAVE_WINT_T.
52709         * modules/wctype (Files): Add m4/wint_t.m4.
52710         (wctype.h): Substitute HAVE_WINT_T.
52711
52712 2006-12-23  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
52715
52716 2006-12-23  Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
52719         S_ISLNK.
52720         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
52721         mingw.
52722
52723 2006-12-22  Bruno Haible  <bruno@clisp.org>
52724
52725         * lib/copy-file.c: Include acl.h.
52726         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
52727         Close the file descriptors only after being done with copy_acl.
52728         * modules/copy-file (Depends-on): Add acl.
52729
52730 2006-12-22  Bruno Haible  <bruno@clisp.org>
52731
52732         * gnulib-tool (SED): New variable.
52733         Use $SED instead of sed everywhere.
52734
52735 2006-12-22  Bruno Haible  <bruno@clisp.org>
52736
52737         * modules/no-c++: New file.
52738         * m4/no-c++.m4: New file.
52739         * MODULES.html.sh (Support for building libraries and executables):
52740         Add no-c++.
52741
52742 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52743
52744         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52745         Include <limits.h>, and use its INT_MAX to rewrite the
52746         j loop so that it does not overflow 'int'.  Problem reported by
52747         Ralf Wildenhues in
52748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
52749         Play it safe by shifting left by 1 rather than multiplying by 2,
52750         as GCC is less likely to optimize this away when the value
52751         is signed (when it assumes overflow leads to undefined behavior).
52752         Also, don't assume time_t uses two's complement.
52753
52754 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         * MODULES.html.sh: New module wctype.
52757         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
52758         * lib/fnmatch.c: Don't bother to include <wchar.h> before
52759         <wctype.h>, since the new wctype module should fix this.
52760         * lib/quotearg.c: Include <wctype.h> unconditionally, since
52761         the wctype module should arrange for it.
52762         * lib/regex_internal.h: Likewise.
52763         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
52764         since the wctype module should handle this now.
52765         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
52766         * modules/fnmatch (Depends-on): Add wctype.
52767         * modules/quotearg (Depends-on): Likewise.
52768         * modules/regex (Depends-on): Likewise.
52769
52770 2006-12-19  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/strdup.h [C++]: Wrap definitions in extern "C".
52773         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
52774
52775 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52776
52777         * modules/savewd (Depends-on): Fix dependency on fcntl.
52778
52779 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52780
52781         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
52782         conforms to C99, rather than relying on the user's environment
52783         setting of STDINT_H.
52784
52785 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52786         and Eric Blake  <ebb9@byu.net>
52787
52788         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
52789         This is more consistent with the other defines here.
52790         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
52791         Port to z/OS.  Problem reported by Paul Gilmartin.
52792         Change local vars to use gl_ prefix rather than ac_.
52793         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
52794         with other defines.
52795         * modules/double-slash-root: New module.
52796         * modules/dirname (Files): Remove m4/double-slash-root.m4.
52797         (Depends-on): Add double-slash-root.
52798         * MODULES.html.sh (File system functions): Mention new module.
52799
52800 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
52801
52802         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
52803         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
52804         This is for the benefit of gzip, which doesn't do i18n.
52805
52806 2006-12-12  Jim Meyering  <jim@meyering.net>
52807
52808         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
52809         Reported by Andreas Schwab <schwab@suse.de>.
52810
52811 2006-12-12  Bruno Haible  <bruno@clisp.org>
52812
52813         Merge these changes.
52814         2006-09-05  Bruno Haible  <bruno@clisp.org>
52815         * lib/iconvme.c (iconv_string): No need to save and restore errno when
52816         iconv_alloc succeeded.
52817         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
52818         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
52819         test for " && dest " at the end - dest is always != NULL there. Call
52820         iconv with 4xNULL arguments initially, to reset the state. Call iconv
52821         with 2xNULL arguments, also to flush the state storage. Handle the
52822         IRIX iconv behaviour. Realloc the final result, to throw away unused
52823         memory.
52824
52825 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
52826
52827         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
52828         and fchmodat unconditionally, since glibc 2.4 has them.
52829         Problem reported by Arkadiusz Miskiewicz.
52830
52831 2006-12-10  Bruno Haible  <bruno@clisp.org>
52832
52833         * gnulib-tool (func_import): Show the include files only for those
52834         modules that are copied and specified.
52835         Reported by Karl Berry.
52836
52837 2006-12-08  Jim Meyering  <jim@meyering.net>
52838
52839         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
52840         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
52841
52842         * build-aux/announce-gen: Add two new options, both optional:
52843         --bootstrap-tools=TOOL_LIST
52844               a comma-separated list of tools, e.g.,
52845               autoconf,automake,bison,gnulib
52846         --gnulib-snapshot-date=DATE
52847               if gnulib is in the bootstrap tool list,
52848               then report this as the snapshot date.
52849               If not specified, use the current date/time.
52850               If you specify a date here, be sure it's UTC.
52851
52852 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52853
52854         * tests/test-argp-2.sh: Fix test to match actual output.
52855         (func_compare): Fix sed script to be portable.
52856
52857 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
52858
52859         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
52860         workaround for this case.  It is not autoconfigured now; offhand
52861         it's hard to see how to autoconfigure it.
52862
52863 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52864
52865         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
52866         a directory that is about to be chowned.  Such a directory's
52867         initial file permissions should permit the owner only and this
52868         should not be changed until after the chown, since the group and
52869         other bits would be incorrect if they granted permission before
52870         the chown.
52871
52872         Fix porting problem for iswctype reported by Georg Schwarz in:
52873         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
52874         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
52875         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
52876         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
52877         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52878
52879 2006-12-03  Jim Meyering  <jim@meyering.net>
52880
52881         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
52882         p->fts_statp may not yet be defined.
52883         (fts_read): Instead, set it in the caller, once p->fts_statp is
52884         sure to be defined, and corresponds to a top-level directory.
52885         This bug made du -x fail.  Here's the coreutils test case:
52886         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
52887         Reported by Mike Frysinger.
52888
52889 2006-12-01  Jim Meyering  <jim@meyering.net>
52890
52891         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
52892         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
52893         Reported by Simon Josefsson.
52894
52895 2006-11-30  Jim Meyering  <jim@meyering.net>
52896
52897         * m4/warning.m4: Use the all-permissive copyright notice
52898         recommended by RMS (rather than LGPL).
52899         * m4/vararrays.m4: Likewise.
52900         * m4/flexmember.m4: Likewise.
52901
52902 2006-11-29  Bruno Haible  <bruno@clisp.org>
52903
52904         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52905         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
52906         using +=.
52907         Reported by Simon Josefsson <simon@josefsson.org>.
52908
52909 2006-11-28  James Youngman <jay@gnu.org>
52910
52911         * README: Advise users that they might find the bug-gnulib@gnu.org
52912         and autotools-announce@gnu.org mailing lists useful.
52913
52914 2006-11-28  Bruno Haible  <bruno@clisp.org>
52915
52916         * m4/ptrdiff_max.m4: Remove file.
52917
52918 2006-11-21  Bruno Haible  <bruno@clisp.org>
52919
52920         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
52921         _AC_COMPUTE_INT.
52922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52923         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
52924         _AC_COMPUTE_INT.
52925         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52926         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
52927         _AC_COMPUTE_INT.
52928         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52929
52930 2006-11-28  Jim Meyering  <jim@meyering.net>
52931
52932         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
52933         warning from "gcc -Wshadow" about shadowing the builtin.
52934
52935 2006-11-27  Bruno Haible  <bruno@clisp.org>
52936
52937         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
52938         _AC_COMPUTE_INT.
52939         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52940
52941 2006-11-27  Bruno Haible  <bruno@clisp.org>
52942             Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
52945
52946 2006-11-26  Bruno Haible  <bruno@clisp.org>
52947
52948         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52949         noinst_LTLIBRARIES.
52950
52951 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52952             Bruno Haible  <bruno@clisp.org>
52953
52954         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
52955         if compiling with "gcc -ansi".
52956
52957 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         Fix some incompatibilities with gcc -ansi -pedantic.
52960         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
52961         if compiling pedantically with GCC, unless it's C99 or later.
52962         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
52963         it mishandles gcc -ansi -pedantic as well.
52964         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
52965         if gcc -pedantic.
52966         * lib/regexec.c (check_node_accept_bytes): Don't use auto
52967         initializers for struct if -pedantic, unless it's C99 or later.
52968
52969 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
52970
52971         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
52972         Don't close an fd more than once. Identical atimes indicate
52973         success, not failure.
52974
52975 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
52976
52977         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
52978
52979 2006-11-23  Jim Meyering  <jim@meyering.net>
52980
52981         * build-aux/announce-gen: New file.  From coreutils.
52982
52983 2006-11-22  Jim Meyering  <jim@meyering.net>
52984
52985         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
52986         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
52987         (fts_read): Use a temporary to narrow the overused st_size member
52988         before using it in a switch statement.  Reported by Matthew Woehlke.
52989
52990         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
52991         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
52992
52993 2006-11-20  Bruno Haible  <bruno@clisp.org>
52994
52995         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
52996         changequote instead of pairs of brackets.
52997         Reported by Andreas Schwab <schwab@suse.de>.
52998
52999 2006-11-21  Jim Meyering  <jim@meyering.net>
53000
53001         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
53002         so as to remain compatible with older compilers.
53003         Patch from Michael Deutschmann.
53004
53005 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53006
53007         * MODULES.html.sh (File system functions): Add openat.
53008
53009         * lib/openat.h (rpl_fstatat): New macro, if
53010         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
53011         (fstatat): Define to rpl_fstatat under the same conditions,
53012         unless COMPILING_FSTATAT.
53013         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
53014         seems to have the bug.
53015         * lib/fstatat.c: New file.
53016         * modules/openat (Files): Add it.
53017
53018 2006-11-20  Bruno Haible  <bruno@clisp.org>
53019
53020         * Makefile: New file.
53021
53022 2006-11-20  Jim Meyering  <jim@meyering.net>
53023
53024         The beginnings of syntax-related checks for gnulib.
53025         * lib/Makefile: New file.
53026         * lib/t-idcache: New script.  Ensure that the two halves of
53027         idcache.c stay in sync.
53028
53029         * lib/idcache.c: Adjust comments in user- and group- portions to
53030         be more accurate, and to be consistent with one another.
53031
53032 2006-11-20  Jim Meyering  <jim@meyering.net>
53033
53034         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
53035         continue using the flexible array member (thus, this module performs
53036         half as many malloc calls), with the addition that...
53037         (getgroup, getuser): Consistently record a non-match via an empty
53038         "name" string, and map an empty string match to a NULL return value.
53039         * modules/idcache (Depends-on): Re-add flexmember.
53040
53041         * lib/idcache.c (getuser): Remove all uses of the register keyword.
53042         (getuidbyname, getgroup, getgidbyname): Likewise.
53043
53044         Use cleaner syntax: NULL rather than 0.
53045         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
53046
53047 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
53050         It mishandled the case where the group was missing.
53051         Problem reported by Greg Schafer.
53052         * modules/idcache: Likewise.
53053
53054 2006-11-18  Jim Meyering  <jim@meyering.net>
53055
53056         * check-module (%exempt_header): Add exception for some
53057         conditionally-included headers.
53058
53059         * modules/i-ring (Depends-on): Add verify.
53060         (License): Change to LGPL.
53061
53062 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53063
53064         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
53065         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
53066         and inttostr.h.  Use snprintf rather than uinttostr, so that
53067         LGPLed code doesn't depend on GPLed.
53068
53069 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53070
53071         * modules/inline (License): Change from GPL to LGPL.
53072
53073 2006-11-17  Jim Meyering  <jim@meyering.net>
53074
53075         * modules/d-type (License): Switch to LGPL.
53076
53077 2006-11-15  Bruno Haible  <bruno@clisp.org>
53078
53079         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
53080
53081 2006-11-15  Eric Blake  <ebb9@byu.net>
53082
53083         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
53084         the module dependency.
53085
53086 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53087             Bruno Haible  <bruno@clisp.org>
53088
53089         * gnulib-tool (func_create_testdir): Add license consistency check.
53090
53091 2006-11-15  Eric Blake  <ebb9@byu.net>
53092
53093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
53094         random "(cached)" in configure output.
53095
53096 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53097
53098         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
53099         test for conforming inttypes.h is both announced and cached.
53100
53101         * MODULES.html.sh (seen_modules, seen_files): New variables.
53102         (func_module): Rewrite to use a few less gnulib-tool and sed
53103         invocations.  Avoid a couple of quadratic algorithms for ...
53104         (missed_modules, missed_files): ... these, with ...
53105         (func_append, func_tmpdir): ... these new functions, from
53106         gnulib-tool.  Analogously, install traps for cleanup.
53107
53108         * tests/test-gc.c (main): Remove unused variables.
53109         * tests/test-read-file.c: Include stdlib.h, for 'free'.
53110
53111 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
53112
53113         * modules/inttostr (License): Change to LGPL.
53114
53115 2006-11-14  Eric Blake  <ebb9@byu.net>
53116
53117         * modules/tempname (License): Change to LGPL.
53118
53119 2006-11-14  Eric Blake  <ebb9@byu.net>
53120
53121         * doc/functions.texi (Function Portability): *printf functions on
53122         Cygwin now understand all POSIX size specifiers.
53123
53124 2006-11-14  Bruno Haible  <bruno@clisp.org>
53125
53126         * modules/c-ctype (License): Change to LGPL.
53127
53128 2006-11-12  Bruno Haible  <bruno@clisp.org>
53129
53130         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53131         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53132         for GNOME libraries, for which the include files are installed in
53133         subdirectories of $prefix/include.
53134
53135 2006-11-12  Bruno Haible  <bruno@clisp.org>
53136
53137         * m4/lib-link.m4: Require at least autoconf-2.54.
53138         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
53139         name to underscores for the --with option.
53140
53141 2006-11-13  Bruno Haible  <bruno@clisp.org>
53142
53143         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
53144         the tests directory.
53145         Reported by Ralf Wildenhues.
53146
53147 2006-11-13  Bruno Haible  <bruno@clisp.org>
53148
53149         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
53150         (func_emit_initmacro_end): Undo the override here.
53151         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
53152         Works around the famous automake error in coreutils.
53153
53154 2006-11-13  Eric Blake  <ebb9@byu.net>
53155
53156         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
53157         element, not its node.
53158
53159 2006-11-12  Bruno Haible  <bruno@clisp.org>
53160
53161         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
53162         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
53163
53164 2006-11-12  Bruno Haible  <bruno@clisp.org>
53165
53166         * gnulib-tool: New option --local-symlink.
53167         (func_usage): Document it.
53168         (lsymbolic): New variable.
53169         (func_import, func_create_testdir): If --symlink was not specified,
53170         test whether --local-symlink was specified and the file comes from
53171         the local_gnulib_dir.
53172
53173 2006-11-12  Bruno Haible  <bruno@clisp.org>
53174
53175         * gnulib-tool (func_ln): New function.
53176         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
53177
53178 2006-11-12  Bruno Haible  <bruno@clisp.org>
53179
53180         Finish support for source files in subdirectories.
53181         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
53182         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
53183         AUTOMAKE_OPTIONS.
53184         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
53185
53186 2006-11-12  Bruno Haible  <bruno@clisp.org>
53187
53188         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53189         EXTRA_lib_SOURCES augmentation.
53190         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
53191
53192 2006-11-12  Jim Meyering  <jim@meyering.net>
53193
53194         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
53195         file descriptors.  This also averts a failure on systems with
53196         native openat support when a traversed directory lacks "x" access.
53197         * lib/fts_.h: Include "i-ring.h"
53198         (struct FTS) [fts_fd_ring]: New member.
53199         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
53200         (FCHDIR): Add parentheses.
53201         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
53202         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
53203         When descending, rather than simply closing the previous
53204         fts_cwd_fd value, push that file descriptor onto the ring.
53205         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
53206         (fts_open): Initialize the new fd_ring member.
53207         (fts_close): Clear the ring.
53208         (fts_safe_changedir): When possible, use our new fd_ring to skip
53209         the diropen and fstat and dev/ino comparison that would normally
53210         accompany a virtual `chdir ("..")'.
53211
53212         * modules/fts (Depends-on): Add i-ring.
53213         * modules/i-ring: New module.
53214         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
53215         * m4/i-ring.m4: New file.
53216
53217 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53218
53219         * gnulib-tool (func_create_testdir): Fix replacement of
53220         `build-aux' in configure.ac.  Run autotools in gltests
53221         subdirectory.
53222         (func_create_testdir, func_create_megatestdir, test): There is
53223         no need for '--force' in most autotool invocations in a new
53224         tree.  Actually fail the whole test if any of the tools, or the
53225         configure or make stages fail.
53226
53227         Sync from Automake.
53228         * build-aux/gnupload: Revert last change.  Add pointer to upload
53229         instructions of the GNU Maintenance Instructions.
53230         Suggestion by Karl Berry.
53231
53232 2006-11-10  Jim Meyering  <jim@meyering.net>
53233
53234         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
53235
53236 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53237
53238         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
53239         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
53240         (bind_textdomain_codeset) [! ENABLE_NLS]:
53241         Evaluate all the arguments.  That way, callers get compatible behavior
53242         if the arguments have side effects.  Also, it avoids some GCC
53243         diagnostics in some cases; Joel E. Denny reported problems when Bison
53244         was configured with --enable-gcc-warnigs.
53245
53246 2006-11-10  Jim Meyering  <jim@meyering.net>
53247
53248         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
53249         relevant options in CFLAGS (like -O, -fno-inline) are taken into
53250         account.
53251
53252 2006-11-10  Jim Meyering  <jim@meyering.net>
53253
53254         * modules/inline: New file/module.
53255         * modules/xalloc (Files): Remove m4/inline.m4.
53256         (Depends-on): Add inline, instead.
53257         * modules/oset: Likewise.
53258         * modules/list: Likewise.
53259
53260 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
53263         Problem reported by Matthew Woehlke.
53264
53265 2006-11-09  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/tempname.c (gen_tempname): Remove variant that invokes
53268         __gen_tempname.
53269         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
53270         __gen_tempname.
53271
53272 2006-11-08  Bruno Haible  <bruno@clisp.org>
53273
53274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
53275         to 'yes' instead of 'cross-compiling'.
53276
53277 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         * lib/quotearg.h (quotearg_free): New decl.
53280         * lib/quotearg.c (quotearg_free): New function.
53281         (slot0, nslots, slotvec0, slotvec):
53282         Now file-scope so that quotearg_free can get at them.
53283
53284 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53285
53286         Sync from Automake.
53287         * build-aux/gnupload: Add missing 'gnu' to example URL.
53288         Report by Karl Berry.
53289
53290 2006-11-08  Bruno Haible  <bruno@clisp.org>
53291
53292         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
53293         Suggested by Paul Eggert.
53294
53295 2006-11-08  Jim Meyering  <jim@meyering.net>
53296
53297         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
53298         It's already included if !_LIBC.
53299         (fts_safe_changedir): Add a comment.
53300
53301 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53302
53303         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
53304         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
53305         Matthew Woehlke.
53306
53307         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
53308         definitions up, to avoid colliding with change below.
53309         (static_inline) [HAVE_INLINE]: New macro.
53310         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
53311         Provide extern decls when !HAVE_INLINE.  Do not define unless
53312         static_inline is defined, either by us or by xmalloc.c.  Use
53313         static_inline rather than static inline.
53314         (XCALLOC): Optimize sizeof(T) = 1 case.
53315         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
53316
53317 2006-11-07  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
53320         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
53321         AC_C_INLINE.
53322         * modules/xalloc (Files): Add m4/inline.m4.
53323
53324 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53325
53326         * README: Fix typo.
53327         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
53328         (Miscellanous Notes): ...from this.
53329
53330 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53331
53332         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53333         Mention that offsetof should be used instead of sizeof.
53334         From Bruno Haible.
53335
53336 2006-11-07  Bruno Haible  <bruno@clisp.org>
53337
53338         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53339
53340 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53343         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53344         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53345         (gl_tree_add_before, gl_tree_add_after):
53346         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53347         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53348         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53349         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53350         (gl_linked_add_after, gl_linked_add_at): Likewise.
53351         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53352         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53353         (gl_tree_add_before, gl_tree_add_after): Likewise.
53354         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53355         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53356         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53357
53358 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53359
53360         * lib/gl_oset.h: Use C comment style, not C++ comment style.
53361
53362 2006-11-06  Bruno Haible  <bruno@clisp.org>
53363
53364         * m4/inline.m4: New file.
53365         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
53366         * modules/list (Files): Add m4/inline.m4.
53367         * modules/oset (Files): Likewise.
53368
53369 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53370
53371         * lib/idcache.c: Include <stddef.h>, for offsetof.
53372         (struct userid.name): Change from char * to a flexible array member.
53373         All uses changed.
53374         * modules/idcache (Depends-on): Add flexmember.
53375
53376         * MODULES.html.sh (Core language properties): New module flexmember.
53377         * modules/flexmember, m4/flexmember.m4: New files.
53378
53379         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
53380         inline functions that are identical with the old xnmalloc_inline,
53381         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
53382         that we can avoid some unnecessary integer multiplications and
53383         divisions in the common case where the element size is known at
53384         compile time.
53385         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
53386         needed.
53387         (xnboundedmalloc): Remove.
53388         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
53389         arguments, for consistency with rest of this header.
53390         (xcharalloc): Rewrite using XNMALLOC.
53391         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
53392         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
53393         versions have been moved to lib/xalloc.h and renamed to be the
53394         non-*_inline versions.
53395         (xmalloc, xrealloc): Implement without reference to the xnmalloc
53396         and xnrealloc functions, since those functions are now inline and
53397         now call us.
53398         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
53399         renaming described above.
53400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
53401         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
53402         captures the dependency in AC_C_INLINE.
53403
53404         New module canonicalize-lgpl, proposed by Charles Wilson in
53405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
53406         with a few small changes afterwards.
53407         * MODULES.html.sh (File system functions): New module
53408         canonicalize-lgpl.
53409         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
53410         and canonicalize_file_name.
53411         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
53412         * modules/canonicalize-lgpl: New files.
53413
53414 2006-11-05  Bruno Haible  <bruno@clisp.org>
53415
53416         * gnulib-tool (func_import, func_create_testdir): Create directories
53417         also for files in subdirectories of lib/.
53418
53419 2006-11-05  Bruno Haible  <bruno@clisp.org>
53420
53421         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
53422         ANSI C compliant.
53423
53424 2006-11-03  Bruno Haible  <bruno@clisp.org>
53425
53426         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53427         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
53428         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
53429         (xnboundedmalloc): New inline function.
53430         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
53431         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
53432         xmalloc.
53433         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
53434         xmalloc.
53435         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
53436         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
53437         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
53438         xmalloc.
53439         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53440         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
53441         xmalloc.
53442         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
53443         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53444         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
53445         xmalloc.
53446         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53447         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
53448         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53449         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
53450         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
53451         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
53452         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
53453
53454 2006-11-03  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/c-ctype.h [C++]: Define functions without name mangling.
53457         * lib/fwriteerror.h [C++]: Likewise.
53458         * lib/gcd.h [C++]: Likewise.
53459         * lib/linebreak.h [C++]: Likewise.
53460
53461 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53462
53463         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
53464         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
53465         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
53466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53467         Check for functions and headers just once.
53468         Check for declaration of canonicalize_file_name.
53469         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53470
53471 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53472
53473         * gnulib-tool (func_import): Fix typo in actioncmd.
53474
53475 2006-11-02  Bruno Haible  <bruno@clisp.org>
53476
53477         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53478         newline sequence in the Makefile.am snippet as a space, like "make"
53479         does.
53480         Reported by Roger Persson <perrog@gmail.com>.
53481
53482 2006-11-01  Bruno Haible  <bruno@clisp.org>
53483
53484         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53485         already declared in <string.h>.
53486         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53487
53488 2006-11-01  Bruno Haible  <bruno@clisp.org>
53489
53490         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53491         * lib/strcase.h: Include <string.h>.
53492         (strcasecmp): Define to rpl_strcasecmp here.
53493
53494 2006-11-01  Bruno Haible  <bruno@clisp.org>
53495
53496         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53497
53498 2006-11-01  Eric Blake  <ebb9@byu.net>
53499
53500         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53501
53502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53503
53504 2006-10-29  Bruno Haible  <bruno@clisp.org>
53505
53506         Make it compile in C++ mode.
53507         * lib/full-write.c (full_rw): Add a cast.
53508
53509 2006-11-01  Bruno Haible  <bruno@clisp.org>
53510
53511         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
53512         be POSIX compliant.
53513         Reported by Roger Persson <perrog@gmail.com>.
53514
53515 2006-11-01  Eric Blake  <ebb9@byu.net>
53516
53517         * lib/getopt_.h: Fix comments.
53518
53519 2006-10-31  Eric Blake  <ebb9@byu.net>
53520
53521         * modules/tmpdir (Depends-on): Add sys_stat.
53522         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
53523         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
53524         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
53525         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
53526         tempname.
53527
53528 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         Avoid some C++ diagnostics reported by Bruno Haible.
53531         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
53532         xmalloc.
53533         (quotearg_alloc): Use xcharalloc rather than xmalloc.
53534         (struct slotvec): Move to top level.
53535         (quotearg_n_options): Rewrite to avoid xmalloc.
53536         * lib/xalloc.h (xcharalloc): New function.
53537         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
53538         [defined __cplusplus]: Add function template that provides result
53539         type propagation.  This part of the change is from Bruno Haible.
53540
53541 2006-10-29  Bruno Haible  <bruno@clisp.org>
53542
53543         Make it compile in C++ mode.
53544         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
53545         * lib/strnlen1.c (strnlen1): Cast memchr result.
53546         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
53547         * lib/clean-temp.c (string_equals, string_hash): Add casts.
53548         (create_temp_dir): Rename local variable 'template'.
53549         (compile_csharp_using_sscli): Add cast.
53550         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
53551         * lib/findprog.c (find_in_path): Likewise.
53552         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
53553         * lib/wait-process.c (register_slave_subprocess): Likewise.
53554
53555 2006-10-22  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/tsearch: New file.
53558         * lib/tsearch.h: New file.
53559         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
53560         * m4/tsearch.m4: New file.
53561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
53562
53563 2006-10-29  Eric Blake  <ebb9@byu.net>
53564
53565         * lib/arcfour.c: Assume config.h.
53566         * lib/arctwo.c: Likewise.
53567         * lib/base64.c: Likewise.
53568         * lib/check-version.c: Likewise.
53569         * lib/crc.c: Likewise.
53570         * lib/des.c: Likewise.
53571         * lib/gc-gnulib.c: Likewise.
53572         * lib/gc-libgcrypt.c: Likewise.
53573         * lib/gc-pbkdf2-sha1.c: Likewise.
53574         * lib/getaddrinfo.c: Likewise.
53575         * lib/getdelim.c: Likewise.
53576         * lib/getline.c: Likewise.
53577         * lib/hmac-md5.c: Likewise.
53578         * lib/hmac-sha1.c: Likewise.
53579         * lib/iconvme.c: Likewise.
53580         * lib/md2.c: Likewise.
53581         * lib/md4.c: Likewise.
53582         * lib/memxor.c: Likewise.
53583         * lib/read-file.c: Likewise.
53584         * lib/readline.c: Likewise.
53585         * lib/rijndael-alg-fst.c: Likewise.
53586         * lib/rijndael-api-fst.c: Likewise.
53587         * lib/xgetdomainname.c: Likewise.
53588
53589 2006-10-28  Eric Blake  <ebb9@byu.net>
53590
53591         * lib/xstrndup.c: Assume config.h.
53592
53593 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
53596         stat-macros.h is now for our own macros, whereas stat_h is for
53597         macros in the <sys/stat.h> name space.
53598         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
53599         (STAT_MACROS_H): Remove.
53600         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
53601         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
53602         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
53603         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
53604         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
53605         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
53606         Move these macros to ...
53607         * lib/stat_.h: here.  Don't include stat-macros.h.
53608         * lib/canonicalize.c: Don't include stat-macros.h.
53609         * lib/chown.c: Likewise.
53610         * lib/euidaccess.c: Likewise.
53611         * lib/file-type.c: Likewise.
53612         * lib/filemode.c: Likewise.
53613         * lib/glob.c: Likewise.
53614         * lib/isapipe.c: Likewise.
53615         * lib/lchown.c: Likewise.
53616         * lib/lstat.c: Likewise.
53617         * lib/mkdir-p.c: Likewise.
53618         * lib/rmdir.c: Likewise.
53619         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
53620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
53621         unless mkdir isn't declared, to speed up 'configure'.
53622         Always create sys/stat.h, since it's unlikely any real sys/stat.h
53623         would define all the S_* symbols.
53624         * modules/canonicalize (Depends-on):
53625         Depend on sys_stat, not stat-macros.
53626         * modules/chown: Likewise.
53627         * modules/euidaccess: Likewise.
53628         * modules/filemode: Likewise.
53629         * modules/file-type: Likewise.
53630         * modules/glob: Likewise.
53631         * modules/isapipe: Likewise.
53632         * modules/lchown: Likewise.
53633         * modules/lstat: Likewise.
53634         * modules/mkancesdirs: Likewise.
53635         * modules/rmdir: Likewise.
53636         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
53637         * modules/modechange: Likewise.
53638         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
53639         (configure.ac): Remove gl_STAT_MACROS.
53640         * modules/sys_stat (Depends-on): Remove stat-macros.
53641
53642 2006-10-27  Bruno Haible  <bruno@clisp.org>
53643
53644         * m4/signed.m4: Remove file.
53645         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
53646         invocation.
53647         * modules/vasnprintf (Files): Remove m4/signed.m4.
53648
53649 2006-10-27  Bruno Haible  <bruno@clisp.org>
53650
53651         Update to GNU gettext 0.16.
53652         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
53653         m4/inttypes-h.m4, m4/signed.m4.
53654         * m4/gettext.m4: Update to GNU gettext 0.16.
53655         * m4/intl.m4: New file, from GNU gettext.
53656         * m4/intldir.m4: New file, from GNU gettext.
53657         * config/srclist.txt: Update
53658
53659 2006-10-27  Eric Blake  <ebb9@byu.net>
53660
53661         * MODULES.html.sh: Document tempname.
53662         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
53663         dependencies.
53664         (Files): Move lib/tempname.c...
53665         * modules/tempname: ...to this new module.
53666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
53667         (gl_PREREQ_TEMPNAME): Move...
53668         * m4/tempname.m4: ...to this new file.
53669         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
53670         * modules/sys_stat (Depends-on): Add stat-macros.
53671         * lib/stat_.h (includes): Pick up stat macros.
53672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
53673         if stat macros are broken.
53674         * lib/tempname.c (includes): No need to include "stat-macros.h".
53675         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
53676         (direxists, __path_search) [!_LIBC]: Don't compile these in
53677         gnulib; the tmpdir module covers that.
53678         * lib/tempname.h: New file.
53679
53680 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53681
53682         * COPYING: Explain how gnulib-tool converts licence headers.
53683         Almost all wording by Eric Blake.
53684
53685 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
53686
53687         * lib/mbchar.h (is_basic_table): Make read-only.
53688         * lib/mbchar.c (is_basic_table): Likewise.
53689         Reported by John Darrington.
53690
53691 2006-10-25  Bruno Haible  <bruno@clisp.org>
53692
53693         * lib/progname.h (set_program_name): Undefine before defining.
53694
53695 2006-10-25  Bruno Haible  <bruno@clisp.org>
53696
53697         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
53698         false for non-gcc C++ compilers.
53699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53700
53701 2006-10-24  Bruno Haible  <bruno@clisp.org>
53702
53703         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
53704         iconv implementations like Irix iconv.
53705
53706 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         * modules/vararrays: New file.
53709         * m4/vararrays.m4: New file, taken from diffutils.
53710         * MODULES.html.sh: New module vararrays.
53711
53712 2006-10-24  Karl Berry  <karl@gnu.org>
53713
53714         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
53715         Don't call GNU Unix.
53716
53717 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53718
53719         * users.txt: Add Libtool.
53720
53721         Sync from Libtool:
53722
53723         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53724
53725         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
53726         to gnulib's policy of including config.h unconditionally.
53727
53728 2006-10-24  Bruno Haible  <bruno@clisp.org>
53729
53730         * modules/wcwidth (Files): Add m4/wint_t.m4.
53731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
53732         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
53733
53734 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53735
53736         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
53737         to pacify GCC with some -W flags enabled.  Problem reported by
53738         Bruno Haible.
53739
53740 2006-10-24  Jim Meyering  <jim@meyering.net>
53741
53742         * MODULES.html.sh: Remove uinttostr.  It's not a module.
53743         Reported by Karl Berry.
53744
53745 2006-10-23  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
53748
53749 2006-10-24  Bruno Haible  <bruno@clisp.org>
53750
53751         * lib/gl_list.h: Use C comment style, not C++ comment style.
53752
53753 2006-10-23  Eric Blake  <ebb9@byu.net>
53754
53755         * lib/getaddrinfo.c (includes): Add missing include.
53756
53757 2006-10-23  Bruno Haible  <bruno@clisp.org>
53758             Paul Eggert  <eggert@cs.ucla.edu>
53759
53760         Ability to rename obstack_free.
53761         * lib/obstack.h (__obstack_free): New macro. Declare instead of
53762         obstack_free.
53763         (obstack_free): Invoke the __obstack_free macro.
53764         * lib/obstack.c (obstack_free): Use __obstack_free macro.
53765
53766 2006-10-23  Bruno Haible  <bruno@clisp.org>
53767             Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
53770         __argc, __argv from the declaration. (They are defined as macros on
53771         mingw.)
53772
53773 2006-10-22  Bruno Haible  <bruno@clisp.org>
53774
53775         * doc/gnulib-intro.texi: New file.
53776         * doc/gnulib.texi: Include it.
53777
53778 2006-10-21  Bruno Haible  <bruno@clisp.org>
53779
53780         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
53781         "Introduction", "Miscellanous Notes", "Particular Modules".
53782
53783 2006-10-21  Bruno Haible  <bruno@clisp.org>
53784
53785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53786         Change mostlyclean-local rule to avoid sh syntax error from bash
53787         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
53788
53789 2006-10-23  Jim Meyering  <jim@meyering.net>
53790
53791         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
53792         in place of snprintf.
53793
53794         * modules/inttostr (Files): Add lib/uinttostr.c.
53795         * lib/uinttostr.c (inttostr): New file/function.
53796         * lib/inttostr.h (uinttostr): Declare.
53797         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
53798         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53799         Add uinttostr.
53800         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
53801
53802 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53803
53804         * lib/canonicalize.c (ELOOP): Define if not already defined.
53805         Problem reported by Bruno Haible in
53806         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
53807
53808 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53809
53810         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
53811         Problem reported by Perry Smith and Ville Laurikari.
53812
53813         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
53814         uses.
53815
53816 2006-10-19  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
53819         for mingw.
53820
53821 2006-10-19  Bruno Haible  <bruno@clisp.org>
53822
53823         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
53824         Needed for mingw.
53825
53826 2006-10-19  Bruno Haible  <bruno@clisp.org>
53827
53828         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
53829
53830 2006-10-19  Bruno Haible  <bruno@clisp.org>
53831
53832         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
53833         it.
53834
53835 2006-10-19  Bruno Haible  <bruno@clisp.org>
53836
53837         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
53838         invocation.
53839
53840 2006-10-19  Bruno Haible  <bruno@clisp.org>
53841
53842         * gnulib-tool (func_create_testdir): Don't include ftruncate and
53843         mountlist by default.
53844
53845 2006-10-16  Bruno Haible  <bruno@clisp.org>
53846
53847         * lib/c-strstr.c: Include c-strstr.h.
53848
53849 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53850
53851         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
53852         in a slash.
53853
53854 2006-10-18  Bruno Haible  <bruno@clisp.org>
53855
53856         * lib/lock.h [C++]: Wrap definitions in extern "C".
53857
53858 2006-10-18  Bruno Haible  <bruno@clisp.org>
53859
53860         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
53861         gl_LIBOBJS list.
53862
53863 2006-10-18  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
53866
53867 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * lib/xstrtol.h: Include gettext.h.
53870         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
53871         Problem reported by Eric Blake.
53872         * modules/xstrtol (Depends-on): Add gettext-h.
53873
53874 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
53875
53876         * lib/strftime.c (advance): New macro.
53877         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
53878         incomplete type, so you can't add 0 to it.  Problem and patch
53879         reported by Eelco Dolstra for dietlibc.
53880
53881 2006-10-18  Jim Meyering  <jim@meyering.net>
53882
53883         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
53884         type for a local, and rename it: s/up/user_proc/.
53885
53886 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53887
53888         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
53889         READ_UTMP_USER_PROCESS.
53890         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
53891
53892 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
53895         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
53896
53897 2006-10-17  Eric Blake  <ebb9@byu.net>
53898
53899         * lib/sigprocmask.c (sigprocmask): Fix typo.
53900
53901         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
53902
53903         * modules/clean-temp (Makefile.am): Don't add to make output...
53904         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
53905         config.h.
53906
53907 2006-10-17  Bruno Haible  <bruno@clisp.org>
53908
53909         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
53910         differently if DEFAULT_TEXT_DOMAIN is set.
53911
53912 2006-10-16  Bruno Haible  <bruno@clisp.org>
53913
53914         * lib/clean-temp.c: Include fwriteerror.h.
53915
53916 2006-10-16  Bruno Haible  <bruno@clisp.org>
53917
53918         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
53919
53920 2006-10-16  Bruno Haible  <bruno@clisp.org>
53921
53922         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
53923         * lib/sigprocmask.h: Include <sys/types.h>.
53924         (sigset_t): Use the system's definition if present.
53925
53926 2006-10-17  Eric Blake  <ebb9@byu.net>
53927
53928         * lib/xvasprintf.c (includes): Assume config.h.
53929         * lib/xasprintf.c (includes): Likewise.
53930
53931 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53932
53933         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
53934         at least as wide as intmax_t.
53935
53936 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
53937
53938         (Imported from Automake.)
53939         * build-aux/gnupload: Update to version 1.1 of directive file.
53940
53941 2006-10-16  Eric Blake  <ebb9@byu.net>
53942
53943         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
53944         match Automake 1.10a.
53945
53946 2006-10-14  Bruno Haible  <bruno@clisp.org>
53947
53948         * modules/sigprocmask: New file.
53949         * lib/sigprocmask.h: New file.
53950         * lib/sigprocmask.c: New file.
53951         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
53952         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
53953         request sigprocmask.o.
53954         (gl_PREREQ_SIGPROCMASK): New macro.
53955         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
53956         (Depends-on): Add sigprocmask.
53957         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
53958         gt_SIGNALBLOCKING. Test for 'raise' only once.
53959         * lib/fatal-signal.c: Include sigprocmask.h.
53960         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
53961         unblock_fatal_signals): Define always.
53962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53963         sigprocmask.
53964
53965 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53966
53967         Sync from Automake.
53968         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
53969         which incorrectly sets the mode of an existing destination
53970         directory.  In some cases the unpatched install-sh could do the
53971         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
53972         system.  We hope this is rare in practice, but it's clearly worth
53973         fixing.  Problem reported by Alex Unleashed in
53974         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
53975         Also, don't bother to check for -m bugs unless we're using -m;
53976         suggested by Stepan Kasal.
53977
53978 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53979
53980         Sync from Automake.
53981         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
53982         `-c' flag, so they appear at the same position as in %FASTDEP%
53983         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
53984         which ignores unknown options only after the first non-option.
53985         Bug report against M4 by Nelson H. F. Beebe.
53986
53987 2006-10-13  Jim Meyering  <jim@meyering.net>
53988
53989         Fix a bug in yesterday's change.
53990         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
53991         p->fts_statp->st_dev would be used uninitialized.
53992         Ensures that we always call fts_stat on the very first entry.
53993         Miklos Szeredi reported that find -xdev stopped working.
53994
53995 2006-10-12  Bruno Haible  <bruno@clisp.org>
53996
53997         * gnulib-tool (func_get_automake_snippet): Append an automatically
53998         computed EXTRA_DIST augmentation.
53999         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
54000         * modules/alloca-opt (Makefile.am): Likewise.
54001         * modules/allocsa (Makefile.am): Likewise.
54002         * modules/arcfour (Makefile.am): Likewise.
54003         * modules/arctwo (Makefile.am): Likewise.
54004         * modules/argmatch (Makefile.am): Likewise.
54005         * modules/argz (Makefile.am): Likewise.
54006         * modules/atexit (Makefile.am): Likewise.
54007         * modules/backupfile (Makefile.am): Likewise.
54008         * modules/byteswap (Makefile.am): Likewise.
54009         * modules/c-strtod (Makefile.am): Likewise.
54010         * modules/c-strtold (Makefile.am): Likewise.
54011         * modules/calloc (Makefile.am): Likewise.
54012         * modules/canon-host (Makefile.am): Likewise.
54013         * modules/canonicalize (Makefile.am): Likewise.
54014         * modules/chdir-long (Makefile.am): Likewise.
54015         * modules/chdir-safer (Makefile.am): Likewise.
54016         * modules/check-version (Makefile.am): Likewise.
54017         * modules/chown (Makefile.am): Likewise.
54018         * modules/cloexec (Makefile.am): Likewise.
54019         * modules/close-stream (Makefile.am): Likewise.
54020         * modules/closeout (Makefile.am): Likewise.
54021         * modules/crc (Makefile.am): Likewise.
54022         * modules/csharpexec (Makefile.am): Likewise.
54023         * modules/cycle-check (Makefile.am): Likewise.
54024         * modules/des (Makefile.am): Likewise.
54025         * modules/dev-ino (Makefile.am): Likewise.
54026         * modules/dirfd (Makefile.am): Likewise.
54027         * modules/dirname (Makefile.am): Likewise.
54028         * modules/dup2 (Makefile.am): Likewise.
54029         * modules/eealloc (Makefile.am): Likewise.
54030         * modules/error (Makefile.am): Likewise.
54031         * modules/euidaccess (Makefile.am): Likewise.
54032         * modules/exclude (Makefile.am): Likewise.
54033         * modules/exitfail (Makefile.am): Likewise.
54034         * modules/fcntl-safer (Makefile.am): Likewise.
54035         * modules/fcntl (Makefile.am): Likewise.
54036         * modules/file-type (Makefile.am): Likewise.
54037         * modules/fileblocks (Makefile.am): Likewise.
54038         * modules/filemode (Makefile.am): Likewise.
54039         * modules/filenamecat (Makefile.am): Likewise.
54040         * modules/fnmatch (Makefile.am): Likewise.
54041         * modules/fopen-safer (Makefile.am): Likewise.
54042         * modules/fpending (Makefile.am): Likewise.
54043         * modules/fprintftime (Makefile.am): Likewise.
54044         * modules/free (Makefile.am): Likewise.
54045         * modules/fsusage (Makefile.am): Likewise.
54046         * modules/ftruncate (Makefile.am): Likewise.
54047         * modules/fts (Makefile.am): Likewise.
54048         * modules/gc-arcfour (Makefile.am): Likewise.
54049         * modules/gc-des (Makefile.am): Likewise.
54050         * modules/gc-hmac-md5 (Makefile.am): Likewise.
54051         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
54052         * modules/gc-md4 (Makefile.am): Likewise.
54053         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54054         * modules/gc-sha1 (Makefile.am): Likewise.
54055         * modules/gc (Makefile.am): Likewise.
54056         * modules/getaddrinfo (Makefile.am): Likewise.
54057         * modules/getcwd (Makefile.am): Likewise.
54058         * modules/getdelim (Makefile.am): Likewise.
54059         * modules/getdomainname (Makefile.am): Likewise.
54060         * modules/getgroups (Makefile.am): Likewise.
54061         * modules/gethostname (Makefile.am): Likewise.
54062         * modules/gethrxtime (Makefile.am): Likewise.
54063         * modules/getline (Makefile.am): Likewise.
54064         * modules/getloadavg (Makefile.am): Likewise.
54065         * modules/getlogin_r (Makefile.am): Likewise.
54066         * modules/getndelim2 (Makefile.am): Likewise.
54067         * modules/getopt (Makefile.am): Likewise.
54068         * modules/getpagesize (Makefile.am): Likewise.
54069         * modules/getpass-gnu (Makefile.am): Likewise.
54070         * modules/getpass (Makefile.am): Likewise.
54071         * modules/getsubopt (Makefile.am): Likewise.
54072         * modules/gettime (Makefile.am): Likewise.
54073         * modules/gettimeofday (Makefile.am): Likewise.
54074         * modules/getugroups (Makefile.am): Likewise.
54075         * modules/getusershell (Makefile.am): Likewise.
54076         * modules/glob (Makefile.am): Likewise.
54077         * modules/group-member (Makefile.am): Likewise.
54078         * modules/hard-locale (Makefile.am): Likewise.
54079         * modules/hash (Makefile.am): Likewise.
54080         * modules/hmac-md5 (Makefile.am): Likewise.
54081         * modules/hmac-sha1 (Makefile.am): Likewise.
54082         * modules/human (Makefile.am): Likewise.
54083         * modules/idcache (Makefile.am): Likewise.
54084         * modules/imaxabs (Makefile.am): Likewise.
54085         * modules/imaxdiv (Makefile.am): Likewise.
54086         * modules/inet_ntop (Makefile.am): Likewise.
54087         * modules/inet_pton (Makefile.am): Likewise.
54088         * modules/intprops (Makefile.am): Likewise.
54089         * modules/inttostr (Makefile.am): Likewise.
54090         * modules/inttypes (Makefile.am): Likewise.
54091         * modules/isapipe (Makefile.am): Likewise.
54092         * modules/javaversion (Makefile.am): Likewise.
54093         * modules/lchmod (Makefile.am): Likewise.
54094         * modules/lchown (Makefile.am): Likewise.
54095         * modules/localcharset (Makefile.am): Likewise.
54096         * modules/long-options (Makefile.am): Likewise.
54097         * modules/lstat (Makefile.am): Likewise.
54098         * modules/malloc (Makefile.am): Likewise.
54099         * modules/mathl (Makefile.am): Likewise.
54100         * modules/mbchar (Makefile.am): Likewise.
54101         * modules/md2 (Makefile.am): Likewise.
54102         * modules/md4 (Makefile.am): Likewise.
54103         * modules/md5 (Makefile.am): Likewise.
54104         * modules/memcasecmp (Makefile.am): Likewise.
54105         * modules/memchr (Makefile.am): Likewise.
54106         * modules/memcmp (Makefile.am): Likewise.
54107         * modules/memcoll (Makefile.am): Likewise.
54108         * modules/memcpy (Makefile.am): Likewise.
54109         * modules/memmem (Makefile.am): Likewise.
54110         * modules/memmove (Makefile.am): Likewise.
54111         * modules/mempcpy (Makefile.am): Likewise.
54112         * modules/memrchr (Makefile.am): Likewise.
54113         * modules/memset (Makefile.am): Likewise.
54114         * modules/memxor (Makefile.am): Likewise.
54115         * modules/mkancesdirs (Makefile.am): Likewise.
54116         * modules/mkdir-p (Makefile.am): Likewise.
54117         * modules/mkdir (Makefile.am): Likewise.
54118         * modules/mkdtemp (Makefile.am): Likewise.
54119         * modules/mkstemp (Makefile.am): Likewise.
54120         * modules/mktime (Makefile.am): Likewise.
54121         * modules/modechange (Makefile.am): Likewise.
54122         * modules/mountlist (Makefile.am): Likewise.
54123         * modules/nanosleep (Makefile.am): Likewise.
54124         * modules/obstack (Makefile.am): Likewise.
54125         * modules/openat (Makefile.am): Likewise.
54126         * modules/pagealign_alloc (Makefile.am): Likewise.
54127         * modules/pathmax (Makefile.am): Likewise.
54128         * modules/physmem (Makefile.am): Likewise.
54129         * modules/poll (Makefile.am): Likewise.
54130         * modules/posixtm (Makefile.am): Likewise.
54131         * modules/posixver (Makefile.am): Likewise.
54132         * modules/putenv (Makefile.am): Likewise.
54133         * modules/quote (Makefile.am): Likewise.
54134         * modules/quotearg (Makefile.am): Likewise.
54135         * modules/raise (Makefile.am): Likewise.
54136         * modules/read-file (Makefile.am): Likewise.
54137         * modules/readline (Makefile.am): Likewise.
54138         * modules/readlink (Makefile.am): Likewise.
54139         * modules/readtokens (Makefile.am): Likewise.
54140         * modules/readutmp (Makefile.am): Likewise.
54141         * modules/realloc (Makefile.am): Likewise.
54142         * modules/regex (Makefile.am): Likewise.
54143         * modules/rename-dest-slash (Makefile.am): Likewise.
54144         * modules/rename (Makefile.am): Likewise.
54145         * modules/rijndael (Makefile.am): Likewise.
54146         * modules/rmdir (Makefile.am): Likewise.
54147         * modules/rpmatch (Makefile.am): Likewise.
54148         * modules/safe-read (Makefile.am): Likewise.
54149         * modules/safe-write (Makefile.am): Likewise.
54150         * modules/same-inode (Makefile.am): Likewise.
54151         * modules/same (Makefile.am): Likewise.
54152         * modules/save-cwd (Makefile.am): Likewise.
54153         * modules/savedir (Makefile.am): Likewise.
54154         * modules/setenv (Makefile.am): Likewise.
54155         * modules/settime (Makefile.am): Likewise.
54156         * modules/sha1 (Makefile.am): Likewise.
54157         * modules/sig2str (Makefile.am): Likewise.
54158         * modules/snprintf (Makefile.am): Likewise.
54159         * modules/stat-macros (Makefile.am): Likewise.
54160         * modules/stat-time (Makefile.am): Likewise.
54161         * modules/stdbool (Makefile.am): Likewise.
54162         * modules/stdint (Makefile.am): Likewise.
54163         * modules/stdlib-safer (Makefile.am): Likewise.
54164         * modules/stpcpy (Makefile.am): Likewise.
54165         * modules/stpncpy (Makefile.am): Likewise.
54166         * modules/strcase (Makefile.am): Likewise.
54167         * modules/strcasestr (Makefile.am): Likewise.
54168         * modules/strchrnul (Makefile.am): Likewise.
54169         * modules/strcspn (Makefile.am): Likewise.
54170         * modules/strdup (Makefile.am): Likewise.
54171         * modules/strerror (Makefile.am): Likewise.
54172         * modules/strftime (Makefile.am): Likewise.
54173         * modules/strndup (Makefile.am): Likewise.
54174         * modules/strnlen (Makefile.am): Likewise.
54175         * modules/strpbrk (Makefile.am): Likewise.
54176         * modules/strsep (Makefile.am): Likewise.
54177         * modules/strstr (Makefile.am): Likewise.
54178         * modules/strtod (Makefile.am): Likewise.
54179         * modules/strtoimax (Makefile.am): Likewise.
54180         * modules/strtok_r (Makefile.am): Likewise.
54181         * modules/strtol (Makefile.am): Likewise.
54182         * modules/strtoll (Makefile.am): Likewise.
54183         * modules/strtoul (Makefile.am): Likewise.
54184         * modules/strtoull (Makefile.am): Likewise.
54185         * modules/strtoumax (Makefile.am): Likewise.
54186         * modules/strverscmp (Makefile.am): Likewise.
54187         * modules/sys_socket (Makefile.am): Likewise.
54188         * modules/sys_stat (Makefile.am): Likewise.
54189         * modules/sysexits (Makefile.am): Likewise.
54190         * modules/time_r (Makefile.am): Likewise.
54191         * modules/timegm (Makefile.am): Likewise.
54192         * modules/timespec (Makefile.am): Likewise.
54193         * modules/tmpfile-safer (Makefile.am): Likewise.
54194         * modules/trim (Makefile.am): Likewise.
54195         * modules/unistd-safer (Makefile.am): Likewise.
54196         * modules/unlinkdir (Makefile.am): Likewise.
54197         * modules/unlocked-io (Makefile.am): Likewise.
54198         * modules/userspec (Makefile.am): Likewise.
54199         * modules/utime (Makefile.am): Likewise.
54200         * modules/utimecmp (Makefile.am): Likewise.
54201         * modules/utimens (Makefile.am): Likewise.
54202         * modules/vasnprintf (Makefile.am): Likewise.
54203         * modules/vasprintf (Makefile.am): Likewise.
54204         * modules/vsnprintf (Makefile.am): Likewise.
54205         * modules/xalloc (Makefile.am): Likewise.
54206         * modules/xgetcwd (Makefile.am): Likewise.
54207         * modules/xnanosleep (Makefile.am): Likewise.
54208         * modules/xreadlink (Makefile.am): Likewise.
54209         * modules/xstrtod (Makefile.am): Likewise.
54210         * modules/xstrtol (Makefile.am): Likewise.
54211         * modules/xstrtold (Makefile.am): Likewise.
54212         * modules/yesno (Makefile.am): Likewise.
54213         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
54214
54215 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54216
54217         * modules/error (Makefile.am): Distribute files through
54218         EXTRA_DIST, not lib_SOURCES.
54219
54220 2006-10-12  Eric Blake  <ebb9@byu.net>
54221
54222         * modules/error (Makefile.am): Distribute files in /lib.
54223         * modules/obstack (Makefile.am): Likewise.
54224
54225 2006-10-12  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/acl (Makefile.am): Distribute all files in lib/ through
54228         EXTRA_DIST.
54229         * modules/arcfour (Makefile.am): Likewise.
54230         * modules/arctwo (Makefile.am): Likewise.
54231         * modules/argmatch (Makefile.am): Likewise.
54232         * modules/argz (Makefile.am): Likewise.
54233         * modules/atexit (Makefile.am): Likewise.
54234         * modules/backupfile (Makefile.am): Likewise.
54235         * modules/c-strtod (Makefile.am): Likewise.
54236         * modules/c-strtold (Makefile.am): Likewise.
54237         * modules/calloc (Makefile.am): Likewise.
54238         * modules/canon-host (Makefile.am): Likewise.
54239         * modules/canonicalize (Makefile.am): Likewise.
54240         * modules/chdir-long (Makefile.am): Likewise.
54241         * modules/chdir-safer (Makefile.am): Likewise.
54242         * modules/check-version (Makefile.am): Likewise.
54243         * modules/chown (Makefile.am): Likewise.
54244         * modules/cloexec (Makefile.am): Likewise.
54245         * modules/close-stream (Makefile.am): Likewise.
54246         * modules/closeout (Makefile.am): Likewise.
54247         * modules/crc (Makefile.am): Likewise.
54248         * modules/cycle-check (Makefile.am): Likewise.
54249         * modules/des (Makefile.am): Likewise.
54250         * modules/dirfd (Makefile.am): Likewise.
54251         * modules/dirname (Makefile.am): Likewise.
54252         * modules/dup2 (Makefile.am): Likewise.
54253         * modules/euidaccess (Makefile.am): Likewise.
54254         * modules/exclude (Makefile.am): Likewise.
54255         * modules/exitfail (Makefile.am): Likewise.
54256         * modules/fcntl-safer (Makefile.am): Likewise.
54257         * modules/file-type (Makefile.am): Likewise.
54258         * modules/fileblocks (Makefile.am): Likewise.
54259         * modules/filemode (Makefile.am): Likewise.
54260         * modules/filenamecat (Makefile.am): Likewise.
54261         * modules/fnmatch (Makefile.am): Likewise.
54262         * modules/fopen-safer (Makefile.am): Likewise.
54263         * modules/fpending (Makefile.am): Likewise.
54264         * modules/fprintftime (Makefile.am): Likewise.
54265         * modules/free (Makefile.am): Likewise.
54266         * modules/fsusage (Makefile.am): Likewise.
54267         * modules/ftruncate (Makefile.am): Likewise.
54268         * modules/fts (Makefile.am): Likewise.
54269         * modules/gc (Makefile.am): Likewise.
54270         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54271         * modules/getaddrinfo (Makefile.am): Likewise.
54272         * modules/getcwd (Makefile.am): Likewise.
54273         * modules/getdelim (Makefile.am): Likewise.
54274         * modules/getdomainname (Makefile.am): Likewise.
54275         * modules/getgroups (Makefile.am): Likewise.
54276         * modules/gethostname (Makefile.am): Likewise.
54277         * modules/gethrxtime (Makefile.am): Likewise.
54278         * modules/getline (Makefile.am): Likewise.
54279         * modules/getloadavg (Makefile.am): Likewise.
54280         * modules/getlogin_r (Makefile.am): Likewise.
54281         * modules/getopt (Makefile.am): Likewise.
54282         * modules/getpass (Makefile.am): Likewise.
54283         * modules/getpass-gnu (Makefile.am): Likewise.
54284         * modules/getsubopt (Makefile.am): Likewise.
54285         * modules/gettime (Makefile.am): Likewise.
54286         * modules/gettimeofday (Makefile.am): Likewise.
54287         * modules/getugroups (Makefile.am): Likewise.
54288         * modules/getusershell (Makefile.am): Likewise.
54289         * modules/glob (Makefile.am): Likewise.
54290         * modules/group-member (Makefile.am): Likewise.
54291         * modules/hard-locale (Makefile.am): Likewise.
54292         * modules/hash (Makefile.am): Likewise.
54293         * modules/hmac-md5 (Makefile.am): Likewise.
54294         * modules/hmac-sha1 (Makefile.am): Likewise.
54295         * modules/human (Makefile.am): Likewise.
54296         * modules/idcache (Makefile.am): Likewise.
54297         * modules/imaxabs (Makefile.am): Likewise.
54298         * modules/imaxdiv (Makefile.am): Likewise.
54299         * modules/inet_ntop (Makefile.am): Likewise.
54300         * modules/inet_pton (Makefile.am): Likewise.
54301         * modules/inttostr (Makefile.am): Likewise.
54302         * modules/isapipe (Makefile.am): Likewise.
54303         * modules/lchown (Makefile.am): Likewise.
54304         * modules/long-options (Makefile.am): Likewise.
54305         * modules/lstat (Makefile.am): Likewise.
54306         * modules/malloc (Makefile.am): Likewise.
54307         * modules/mathl (Makefile.am): Likewise.
54308         * modules/mbchar (Makefile.am): Likewise.
54309         * modules/md2 (Makefile.am): Likewise.
54310         * modules/md4 (Makefile.am): Likewise.
54311         * modules/md5 (Makefile.am): Likewise.
54312         * modules/memcasecmp (Makefile.am): Likewise.
54313         * modules/memchr (Makefile.am): Likewise.
54314         * modules/memcmp (Makefile.am): Likewise.
54315         * modules/memcoll (Makefile.am): Likewise.
54316         * modules/memcpy (Makefile.am): Likewise.
54317         * modules/memmem (Makefile.am): Likewise.
54318         * modules/memmove (Makefile.am): Likewise.
54319         * modules/mempcpy (Makefile.am): Likewise.
54320         * modules/memrchr (Makefile.am): Likewise.
54321         * modules/memset (Makefile.am): Likewise.
54322         * modules/memxor (Makefile.am): Likewise.
54323         * modules/mkancesdirs (Makefile.am): Likewise.
54324         * modules/mkdir (Makefile.am): Likewise.
54325         * modules/mkdir-p (Makefile.am): Likewise.
54326         * modules/mkdtemp (Makefile.am): Likewise.
54327         * modules/mkstemp (Makefile.am): Likewise.
54328         * modules/mktime (Makefile.am): Likewise.
54329         * modules/modechange (Makefile.am): Likewise.
54330         * modules/mountlist (Makefile.am): Likewise.
54331         * modules/nanosleep (Makefile.am): Likewise.
54332         * modules/openat (Makefile.am): Likewise.
54333         * modules/pagealign_alloc (Makefile.am): Likewise.
54334         * modules/physmem (Makefile.am): Likewise.
54335         * modules/poll (Makefile.am): Likewise.
54336         * modules/posixtm (Makefile.am): Likewise.
54337         * modules/posixver (Makefile.am): Likewise.
54338         * modules/putenv (Makefile.am): Likewise.
54339         * modules/quote (Makefile.am): Likewise.
54340         * modules/quotearg (Makefile.am): Likewise.
54341         * modules/raise (Makefile.am): Likewise.
54342         * modules/read-file (Makefile.am): Likewise.
54343         * modules/readline (Makefile.am): Likewise.
54344         * modules/readlink (Makefile.am): Likewise.
54345         * modules/readtokens (Makefile.am): Likewise.
54346         * modules/readutmp (Makefile.am): Likewise.
54347         * modules/realloc (Makefile.am): Likewise.
54348         * modules/regex (Makefile.am): Likewise.
54349         * modules/rename (Makefile.am): Likewise.
54350         * modules/rename-dest-slash (Makefile.am): Likewise.
54351         * modules/rijndael (Makefile.am): Likewise.
54352         * modules/rmdir (Makefile.am): Likewise.
54353         * modules/rpmatch (Makefile.am): Likewise.
54354         * modules/safe-read (Makefile.am): Likewise.
54355         * modules/safe-write (Makefile.am): Likewise.
54356         * modules/same (Makefile.am): Likewise.
54357         * modules/save-cwd (Makefile.am): Likewise.
54358         * modules/savedir (Makefile.am): Likewise.
54359         * modules/setenv (Makefile.am): Likewise.
54360         * modules/settime (Makefile.am): Likewise.
54361         * modules/sha1 (Makefile.am): Likewise.
54362         * modules/sig2str (Makefile.am): Likewise.
54363         * modules/snprintf (Makefile.am): Likewise.
54364         * modules/stdlib-safer (Makefile.am): Likewise.
54365         * modules/stpcpy (Makefile.am): Likewise.
54366         * modules/stpncpy (Makefile.am): Likewise.
54367         * modules/strcase (Makefile.am): Likewise.
54368         * modules/strcasestr (Makefile.am): Likewise.
54369         * modules/strchrnul (Makefile.am): Likewise.
54370         * modules/strcspn (Makefile.am): Likewise.
54371         * modules/strdup (Makefile.am): Likewise.
54372         * modules/strerror (Makefile.am): Likewise.
54373         * modules/strftime (Makefile.am): Likewise.
54374         * modules/strndup (Makefile.am): Likewise.
54375         * modules/strnlen (Makefile.am): Likewise.
54376         * modules/strpbrk (Makefile.am): Likewise.
54377         * modules/strsep (Makefile.am): Likewise.
54378         * modules/strstr (Makefile.am): Likewise.
54379         * modules/strtod (Makefile.am): Likewise.
54380         * modules/strtoimax (Makefile.am): Likewise.
54381         * modules/strtok_r (Makefile.am): Likewise.
54382         * modules/strtol (Makefile.am): Likewise.
54383         * modules/strtoll (Makefile.am): Likewise.
54384         * modules/strtoul (Makefile.am): Likewise.
54385         * modules/strtoull (Makefile.am): Likewise.
54386         * modules/strtoumax (Makefile.am): Likewise.
54387         * modules/strverscmp (Makefile.am): Likewise.
54388         * modules/time_r (Makefile.am): Likewise.
54389         * modules/timegm (Makefile.am): Likewise.
54390         * modules/tmpfile-safer (Makefile.am): Likewise.
54391         * modules/unistd-safer (Makefile.am): Likewise.
54392         * modules/unlinkdir (Makefile.am): Likewise.
54393         * modules/userspec (Makefile.am): Likewise.
54394         * modules/utime (Makefile.am): Likewise.
54395         * modules/utimecmp (Makefile.am): Likewise.
54396         * modules/utimens (Makefile.am): Likewise.
54397         * modules/vasnprintf (Makefile.am): Likewise.
54398         * modules/vasprintf (Makefile.am): Likewise.
54399         * modules/vsnprintf (Makefile.am): Likewise.
54400         * modules/xalloc (Makefile.am): Likewise.
54401         * modules/xgetcwd (Makefile.am): Likewise.
54402         * modules/xnanosleep (Makefile.am): Likewise.
54403         * modules/xreadlink (Makefile.am): Likewise.
54404         * modules/xstrtod (Makefile.am): Likewise.
54405         * modules/xstrtol (Makefile.am): Likewise.
54406         * modules/xstrtold (Makefile.am): Likewise.
54407         * modules/yesno (Makefile.am): Likewise.
54408
54409 2006-10-12  Jim Meyering  <jim@meyering.net>
54410
54411         * m4/getloadavg.m4: Revert the change below.
54412
54413         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
54414         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
54415         fail with a symlink, which is what coreutils' ./bootstrap now
54416         creates by default.
54417
54418 2006-10-12  Bruno Haible  <bruno@clisp.org>
54419
54420         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
54421         mingw.
54422         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
54423         MSVC and mingw explicitly.
54424
54425 2006-10-11  Simon Josefsson  <jas@extundo.com>
54426             Bruno Haible  <bruno@clisp.org>
54427
54428         Add support for multiple gnulib-tool invocations in the scope of a
54429         single configure.ac file.
54430         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
54431         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
54432         with the same contents as the _LIBADD variable.
54433         (func_emit_initmacro_start, func_emit_initmacro_end,
54434         func_emit_initmacro_done): New functions.
54435         (func_import, func_create_testdir): Invoke them. Allow the identifiers
54436         gl_LIBOBJS and gl_LTLIBOBJS.
54437
54438 2006-10-11  Bruno Haible  <bruno@clisp.org>
54439
54440         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
54441         (func_create_testdir): Don't create po/Makefile.am, don't invoke
54442         autoreconf. Instead, invoke autopoint explicitly but move back the
54443         *.m4 files from gnulib.
54444
54445 2006-10-11  Bruno Haible  <bruno@clisp.org>
54446
54447         * gnulib-tool (func_usage): Make module names after --create-testdir
54448         optional.
54449         (func_create_testdir): If no module was specified, use nearly all
54450         modules.
54451
54452 2006-10-12  Jim Meyering  <jim@meyering.net>
54453
54454         Big performance improvement for fts-based tools that use FTS_NOSTAT.
54455         Avoid spurious inode-mismatch problems on non-POSIX file systems.
54456         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
54457         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
54458         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
54459         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
54460         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
54461         (fts_set_stat_required): New function.
54462         (fts_open): Defer the calls to fts_stat, if possible or requested.
54463         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
54464         into fts_stat itself.
54465         (fts_read): Perform any required (deferred) fts_stat call.
54466         (fts_build): Likewise, for the directory we're about to open and read.
54467         In the readdir loop, carefully decide whether each entry will require
54468         an eventual call to fts_stat, using dirent.d_type info if available.
54469         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54470         a command line argument into this function.  Update all callers.
54471         Map a return value of FTS_DOT to FTS_D for a command line argument.
54472         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54473         Thanks to Miklos Szeredi for his tenacity and for the initial
54474         bug report about "find" failing on a FUSE-based file system.
54475
54476         * lib/fts.c (fts_open): Use consistent indentation.
54477
54478 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54481         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54482         reported by Jim Meyering.  All uses of cache variables renamed
54483         to match Autoconf's.
54484         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54485         the other one.
54486
54487         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54488         Fix misspelling in diagnostic.
54489
54490 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54493         defined.  Problem reported by Matthew Woehlke.
54494
54495         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54496         Add support for Tandem NonStop R series.
54497         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54498         Use new macro.
54499
54500         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54501         (has_trailing_slash): Omit size arg; all callers changed.
54502         Omit 'inline', since it doesn't help performance and we'd
54503         need to configure it.
54504         Don't count //, ///, etc. as having a trailing slash.
54505         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54506         (rpl_rename_dest_slash): On failure, use rename's errno rather
54507         than (in some cases) an incorrect or junk errno.
54508         Simplify code by removing need to compute length; this does
54509         cause it to make two passes instead of one over the file name,
54510         but it's worth it.
54511
54512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
54513         change, since Autoconf's version may no longer be appropriate now
54514         that we are using CVS Autoconf's version.  Add support for Tandem.
54515
54516 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54517             Bruno Haible  <bruno@clisp.org>
54518
54519         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
54520         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
54521         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
54522         gl_AC_TYPE_LONG_LONG.
54523
54524         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
54525         instead of HAVE_LONG_LONG.
54526         * lib/printf-args.c (printf_fetchargs): Likewise.
54527         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54528         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54529         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
54530         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
54531         gl_AC_TYPE_LONG_LONG.
54532
54533 2006-10-11  Bruno Haible  <bruno@clisp.org>
54534
54535         * m4/longlong.m4: Add comments.
54536         * m4/ulonglong.m4: Likewise.
54537
54538 2006-10-10  Bruno Haible  <bruno@clisp.org>
54539
54540         Make it possible to #define stpcpy, strdup to aliases.
54541         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
54542         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
54543
54544 2006-10-10  Bruno Haible  <bruno@clisp.org>
54545
54546         Make it possible to #define gcd to an alias.
54547         * lib/gcd.c: Include config.h.
54548
54549 2006-10-10  Bruno Haible  <bruno@clisp.org>
54550
54551         Make it possible to #define c_isascii to an alias.
54552         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
54553         defined. Undefine the macros before defining them, to avoid gcc
54554         warnings.
54555         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
54556         define NO_C_CTYPE_MACROS early.
54557
54558 2006-10-10  Bruno Haible  <bruno@clisp.org>
54559
54560         Make it possible to #define set_program_name to an alias.
54561         * lib/progname.c: Don't undefine set_program_name; instead, undefine
54562         ENABLE_RELOCATABLE early.
54563
54564 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         Port to Tandem NSK OSS, which has 64-bit signed int but at most
54567         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
54568         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
54569         More generally, don't assume that 64-bit signed int is available
54570         if unsigned int is, and vice versa.
54571         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
54572         unsigned symbols, not on their signed counterparts.
54573         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
54574         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
54575         (UINT64_C, UINTMAX_C):
54576         Likewise.
54577         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
54578         unsigned counterparts.
54579         (Have_long_long, Unsigned): New macros.
54580         (Int): Renamed from INT.
54581         (strtoimax): Use the new macros.
54582         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
54583         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
54584         * modules/inttypes (inttypes.h): Substitute
54585         HAVE_UNSIGNED_LONG_LONG_INT.
54586         * modules/stdint (stdint.h): Likewise.
54587         (Files): Add m4/ulonglong.m4.
54588
54589 2006-10-10  Bruno Haible  <bruno@clisp.org>
54590
54591         Fix a gcc -Wshadow warning.
54592         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
54593         to 'bucket'.
54594         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
54595         gl_linked_indexof_from_to): Likewise.
54596         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
54597         Likewise.
54598         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
54599         Likewise.
54600         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
54601         Reported by Eric Blake.
54602
54603 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
54604
54605         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
54606         for NetBSD.  Problem reported by Bruno Haible.
54607
54608 2006-10-09  Jim Meyering  <jim@meyering.net>
54609
54610         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
54611         Patch from Bruno Haible.
54612
54613 2006-10-09  Jim Meyering  <jim@meyering.net>
54614
54615         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
54616         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
54617         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
54618
54619 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         Don't include <config.h> twice; this doesn't work in some cases,
54622         e.g., when config.h has "#define intmax_t long long int" and
54623         we include <config.h>, <inttypes.h>, <config.h> in that order.
54624         Problem reported by Matthew Woehlke in:
54625         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
54626         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
54627         * lib/fts-cycle.c: Don't include config.h.
54628         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
54629         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
54630         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
54631         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
54632         inttypes.h.
54633         * lib/xstrtoumax.c: Likewise.
54634         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
54635         __strtol and the like, so that this module is more like its siblings.
54636         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
54637         Remove; no longer needed now that we assume gnulib inttypes.h.
54638
54639 2006-10-08  Bruno Haible  <bruno@clisp.org>
54640
54641         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
54642         option.
54643
54644 2006-10-07  Jim Meyering  <jim@meyering.net>
54645
54646         * modules/inttypes (inttypes.h): Revert what seems to have been
54647         an inadvertent part of today's change: use "|", not "/" in the
54648         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
54649
54650 2006-10-07  Bruno Haible  <bruno@clisp.org>
54651
54652         * modules/sublist: New file.
54653
54654 2006-10-07  Bruno Haible  <bruno@clisp.org>
54655
54656         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54657         * modules/argz (argz.h): Likewise.
54658         * modules/arpa_inet (arpa/inet.h): Likewise.
54659         * modules/byteswap (byteswap.h): Likewise.
54660         * modules/configmake (configmake.h): Likewise.
54661         * modules/fcntl (fcntl.h): Likewise.
54662         * modules/fnmatch (fnmatch.h): Likewise.
54663         * modules/getopt (getopt.h): Likewise.
54664         * modules/glob (glob.h): Likewise.
54665         * modules/inttypes (inttypes.h): Likewise.
54666         * modules/netinet_in (netinet/in.h): Likewise.
54667         * modules/poll (poll.h): Likewise.
54668         * modules/stdbool (stdbool.h): Likewise.
54669         * modules/stdint (stdint.h): Likewise.
54670         * modules/sys_select (sys/select.h): Likewise.
54671         * modules/sys_socket (sys/socket.h): Likewise.
54672         * modules/sys_stat (sys/stat.h): Likewise.
54673         * modules/sysexits (sysexits.h): Likewise.
54674         * modules/unistd (unistd.h): Likewise.
54675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54676         Add a "DO NOT EDIT" comment to the generated file.
54677         (func_import): Likewise for gnulib-comp.m4.
54678
54679 2006-10-07  Bruno Haible  <bruno@clisp.org>
54680
54681         * lib/gl_sublist.h: New file.
54682         * lib/gl_sublist.c: New file.
54683
54684 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54685
54686         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
54687         name (relative to the original working directory) and the file
54688         name component (relative to the temporary working directory).  All
54689         callers changed.
54690         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
54691         * lib/mkdir-p.c (make_dir_parents): Likewise.
54692         * lib/mkdir-p.h (make_dir_parents): Likewise.
54693
54694 2006-10-06  Eric Blake  <ebb9@byu.net>
54695
54696         Define several macros for use by the clean-temp module.
54697         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
54698         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
54699         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
54700
54701         * lib/clean-temp.h (close_stream_temp): New declaration.
54702         * lib/clean-temp.c (includes): Pull in headers according to what
54703         other modules are in use.
54704         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
54705
54706 2006-10-06  Bruno Haible  <bruno@clisp.org>
54707
54708         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
54709         instead of fopen, fwriteerror.
54710
54711 2006-10-06  Bruno Haible  <bruno@clisp.org>
54712
54713         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
54714         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
54715         int.
54716         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
54717         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
54718         Return an error indicator.
54719         Suggested by Eric Blake.
54720
54721 2006-10-06  Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
54724         Reported by Eric Blake.
54725
54726 2006-10-06  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/closeout (Description): Mention stderr too.
54729
54730 2006-10-06  Bruno Haible  <bruno@clisp.org>
54731         and Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         * lib/closeout.c (close_stdout): Also close stderr.
54734         * lib/closeout.h: Update comment.
54735
54736 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54737
54738         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
54739         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
54740         * lib/dirchownmod.c: Include lchown.h.
54741         * lib/lchown.c: Don't include files that lchown.h now includes.
54742         Don't declare chown, since lchown.h now does that.
54743         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
54744         (lchown): Define to rpl_chown if lchown is declared but
54745         does not exist.  Declare using a prototype if lchown is not
54746         declared.  Add a copyright notice.
54747         * lib/mkstemp.h: Include <unistd.h>.
54748         * lib/openat.c: Include lchown.h.
54749
54750         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
54751         we now test for that separately.
54752         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
54753         rather than O_NOFOLLOW, when testing whether it's possible to
54754         avoid a race condition reliably.
54755         * lib/savewd.c (savewd_chdir): Likewise.
54756
54757         Remove macros that are no longer needed now that stdint.h is
54758         reliable.
54759         * lib/fsusage.c (UINTMAX_MAX): Remove.
54760         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
54761         * lib/utimecmp.c (SIZE_MAX): Remove.
54762
54763         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
54764
54765         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
54766         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
54767         O_NOATIME works.
54768
54769 2006-10-05  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/gl_list.h (gl_sortedlist_search_from_to,
54772         gl_sortedlist_indexof_from_to): New declarations.
54773         (gl_list_implementation): New fields sortedlist_search_from_to,
54774         sortedlist_indexof_from_to.
54775         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
54776         inline functions.
54777         * lib/gl_list.c (gl_sortedlist_search_from_to,
54778         gl_sortedlist_indexof_from_to): New functions.
54779         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
54780         function.
54781         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
54782         (gl_array_sortedlist_search_from_to): New function.
54783         (gl_array_list_implementation): Update.
54784         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
54785         function.
54786         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
54787         (gl_carray_sortedlist_search_from_to): New function.
54788         (gl_carray_list_implementation): Update.
54789         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
54790         gl_linked_sortedlist_indexof_from_to): New functions.
54791         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54792         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54793         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
54794         gl_tree_sortedlist_indexof_from_to): New functions.
54795         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54796         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54797         Update.
54798         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54799         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
54800         Update.
54801
54802 2006-10-05  Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
54805         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
54806         (struct gl_list_implementation): Add fields search_from_to,
54807         indexof_from_to. Remove fields search, indexof.
54808         (gl_list_search): Use the search_from_to method.
54809         (gl_list_search_from, gl_list_search_from_to): New functions.
54810         (gl_list_indexof): Use the indexof_from_to method.
54811         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54812         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
54813         (gl_list_search_from, gl_list_search_from_to): New functions.
54814         (gl_list_indexof): Use the indexof_from_to method.
54815         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54816         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
54817         gl_array_indexof. Add start_index, end_index arguments.
54818         (gl_array_search_from_to): Renamed from gl_array_search. Add
54819         start_index, end_index arguments.
54820         (gl_array_remove, gl_array_list_implementation): Update.
54821         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
54822         gl_carray_indexof. Add start_index, end_index arguments.
54823         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
54824         start_index, end_index arguments.
54825         (gl_carray_remove, gl_carray_list_implementation): Update.
54826         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
54827         gl_linked_search. Add start_index, end_index arguments.
54828         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
54829         start_index, end_index arguments.
54830         (gl_linked_remove): Update.
54831         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54832         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54833         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
54834         field to 'size_t'.
54835         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
54836         gl_tree_search. Add start_index, end_index arguments.
54837         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54838         start_index, end_index arguments.
54839         (gl_tree_remove): Update.
54840         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54841         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54842         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
54843         function.
54844         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
54845         gl_tree_search. Add start_index, end_index arguments.
54846         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54847         start_index, end_index arguments.
54848         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54849         Update.
54850         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54851
54852 2006-10-05  Bruno Haible  <bruno@clisp.org>
54853
54854         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
54855
54856         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
54857         fwriteerror_temp): New declarations.
54858         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
54859         (descriptors): New variable.
54860         (cleanup): First, close the descriptors.
54861         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
54862         fclose_temp, fwriteerror_temp): New functions.
54863
54864 2006-10-04  Jim Meyering  <jim@meyering.net>
54865
54866         * lib/fts.c (fts_open): Tiny comment change.
54867
54868 2006-10-04  Bruno Haible  <bruno@clisp.org>
54869
54870         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
54871         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
54872         gl_LOCK_BODY.
54873         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
54874         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
54875         gl_LOCK_EARLY_BODY.
54876         (gl_LOCK): Require gl_LOCK_BODY.
54877
54878 2006-10-04  Bruno Haible  <bruno@clisp.org>
54879
54880         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
54881         (gl_oset_search_atleast): New declaration.
54882         (struct gl_oset_implementation): Add field 'search_atleast'.
54883         (gl_oset_search_atleast): New inline function.
54884         * lib/gl_oset.c (gl_oset_search_atleast): New function.
54885         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
54886         (gl_array_oset_implementation): Update.
54887         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
54888         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
54889         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
54890
54891 2006-10-04  Bruno Haible  <bruno@clisp.org>
54892
54893         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
54894
54895 2006-10-03  Bruno Haible  <bruno@clisp.org>
54896
54897         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
54898         from gl_avltreehash_list_implementation.
54899
54900 2006-10-03  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/gl_oset.c (gl_oset_add): Fix return type.
54903
54904 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
54905
54906         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
54907
54908 2006-10-02  Eric Blake  <ebb9@byu.net>
54909
54910         * modules/strnlen (Depends-on): Add extensions.
54911
54912 2006-10-02  Eric Blake  <ebb9@byu.net>
54913
54914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
54915         definition in 2.60+.
54916
54917 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
54918
54919         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
54920         checks.
54921
54922 2006-10-02  Bruno Haible  <bruno@clisp.org>
54923
54924         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
54925         to the AUTOMAKE_OPTIONS.
54926         Reported by Jim Meyering.
54927
54928 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         Work around bug in Solaris 10 /proc file system:
54931         /proc/self/fd/NNN/.. isn't the parent directory of
54932         the directory whose file descriptor is NNN.  This needs to
54933         be worked around at run time, not compile time, since a
54934         program might be built on Solaris 8, where things work, and
54935         run on Solaris 10.
54936         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
54937         to use the following interface instead:
54938         (OPENAT_BUFFER_SIZE): New macro.
54939         (openat_proc_name): New function.
54940         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
54941         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
54942         Likewise.
54943         * lib/openat-proc.c: New file.
54944         * modules/openat (Files): Add lib/openat-proc.c.
54945         (Depends-on): Add same-inode, stdbool.
54946         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
54947
54948 2006-09-29  Bruno Haible  <bruno@clisp.org>
54949
54950         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
54951         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
54952         argument. Set stdout_closed before testing for ferror, not after.
54953         (fwriteerror, fwriteerror_no_ebadf): New functions.
54954
54955 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54956
54957         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
54958
54959 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
54960
54961         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
54962         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
54963
54964 2006-09-28  Jim Meyering  <jim@meyering.net>
54965
54966         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
54967         Include <unistd.h>.
54968
54969 2006-09-28  Bruno Haible  <bruno@clisp.org>
54970
54971         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
54972         * modules/linkedhash-list (Depends-on): Likewise.
54973         * modules/rbtreehash-list (Depends-on): Likewise.
54974
54975 2006-09-28  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/strndup.h: Simplify the redefinition of strndup.
54978         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
54979         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
54980
54981 2006-09-28  Bruno Haible  <bruno@clisp.org>
54982
54983         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
54984         * lib/gl_linkedhash_list.c: Likewise.
54985         * lib/gl_rbtreehash_list.c: Likewise.
54986
54987 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
54990         getaddrinfo.
54991
54992         * lib/__fpending.h: Don't include <stdio_ext.h> unless
54993         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
54994         it causes <stdio_ext.h> to cause a compile-time error.
54995         Problem reported by Nelson H. F. Beebe.
54996         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
54997         of HAVE_DECL___PENDING.
54998
54999         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
55000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
55001         declaration.
55002
55003 2006-09-27  Jim Meyering  <jim@meyering.net>
55004
55005         This file could end up with a definition for a function
55006         named __strndup, rather than rpl_strndup on a system with
55007         incomplete weak_alias support.
55008         * lib/strndup.c (strndup): Rename from __strndup.
55009         Remove #defines that used to map __strndup to strndup.
55010         Don't use K&R prototypes.
55011         Remove LIBC-related code, since this file is not sync'd with glibc.
55012         * lib/strndup.h: Revamp, accordingly.
55013         * m4/strndup.m4: Modernize.
55014
55015 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55016
55017         * modules/savewd (Depends-on): Add 'raise'.
55018         * lib/savewd.c: Include <signal.h>, for 'raise'.
55019
55020 2006-09-26  Jim Meyering  <jim@meyering.net>
55021
55022         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
55023         when we detect Darwin 8.7.0's acl_get_file bug.
55024         Rearrange to perform the new (below) run-test while $LIBS
55025         contains any acl-related library.  Set USE_ACL at the end.
55026         (gl_ACL_GET_FILE): New function.
55027
55028 2006-09-26  Eric Blake  <ebb9@byu.net>
55029
55030         * lib/verror.c: Include <config.h> unconditionally.
55031
55032 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
55033
55034         * modules/clock-time (Maintainer): Add self.
55035         * modules/getlogin_r (Depends-on): Add extensions.
55036
55037 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55038
55039         * modules/clock-time: New module.
55040         * modules/nanosleep (Depends-on): Add clock-time.
55041         * modules/gethrxtime (Depends-on): Likewise.
55042         * modules/gettime (Depends-on): Likewise.
55043         * modules/settime (Depends-on): Likewise.
55044
55045         * modules/fts-lgpl: Depend on openat.
55046         * modules/mkancesdirs: Depend on savewd.
55047         * modules/mkdir-p: Likewise.
55048
55049 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55050
55051         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
55052
55053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
55054         `gl_have_arbitrary_file_name_length_limit' to
55055         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
55056         actually works between configure runs.
55057
55058 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55059             Bruno Haible  <bruno@clisp.org>
55060
55061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
55062
55063 2006-09-25  Jim Meyering  <jim@meyering.net>
55064
55065         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
55066         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
55067
55068 2006-09-25  Eric Blake  <ebb9@byu.net>
55069
55070         * gnulib-tool (func_import, func_create_testdir): Fix typos in
55071         exec's in 2006-09-18 patch when shuffling fds.
55072
55073 2006-09-25  Bruno Haible  <bruno@clisp.org>
55074
55075         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
55076         Reported by Jim Meyering.
55077
55078 2006-09-24  Jim Meyering  <jim@meyering.net>
55079
55080         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
55081         compare a pointer against a literal "0".  That caused failures with
55082         at least HP-UX's hpcc.
55083
55084 2006-09-22  Simon Josefsson  <jas@extundo.com>
55085
55086         * modules/gc-sha1:
55087         * modules/gc-md4:
55088         * modules/gc-hmac-sha1:
55089         * modules/gc-hmac-md5:
55090         * modules/gc-des:
55091         * modules/gc-arcfour: Distribute more files.
55092
55093 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55094
55095         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
55096         (gl_linked_iterator_from_to): Initialize struct completely.
55097         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
55098         (gl_tree_iterator_from_to): Likewise
55099         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
55100         * lib/gl_array_list.c [lint] (gl_array_iterator)
55101         (gl_array_iterator_from_to): Likewise.
55102         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
55103         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
55104         (gl_carray_iterator_from_to): Likewise.
55105
55106         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
55107         * lib/md4.c (md4_process_block): Remove unused variable.
55108         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
55109         parentheses for clarity.
55110
55111 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55112
55113         * modules/bison-i18n (Depends-on): Add gettext.
55114
55115 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55116
55117         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
55118         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55119         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
55120         also add missing comma that caused broken test.
55121         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55122         stdlib.h, for `abort'.
55123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55124         variables.
55125         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55126         include unistd.h if present, for `rmdir'.
55127         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55128         variables.
55129         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55130         in the process include standard headers for prototypes.
55131         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55132         gets declared on GNU/Linux.
55133         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
55134         unistd.h, for `rmdir'.
55135         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
55136
55137         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
55138         always true.
55139         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
55140
55141         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
55142
55143 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55144
55145         * gnulib-tool (func_version): Create output all at once.  This
55146         may help avoid triggering unnecessary SIGPIPEs, and at any
55147         rate it doesn't hurt.
55148
55149 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55150             Bruno Haible  <bruno@clisp.org>
55151
55152         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
55153         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55154         * m4/signed.m4 (bh_C_SIGNED): Likewise.
55155
55156         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
55157         (gl_FUNC_VASPRINTF): Invoke it.
55158
55159 2006-09-22  Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
55162         getloadavg.c as first argument.
55163
55164 2006-09-22  Bruno Haible  <bruno@clisp.org>
55165
55166         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
55167         at the beginning of the gl_INIT macro.
55168         * modules/getloadavg (configure.ac): Pass $gl_source_base to
55169         gl_GETLOADAVG.
55170
55171 2006-09-22  Bruno Haible  <bruno@clisp.org>
55172
55173         * gnulib-tool (func_create_megatestdir): Don't include the config-h
55174         module.
55175         Suggested by Ralf Wildenhues.
55176
55177 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         Import this patch from libc:
55180
55181         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
55182
55183         * lib/regex_internal.c (re_string_reconstruct): Handle
55184         offset < pstr->valid_raw_len && pstr->offsets_needed case.
55185         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
55186         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
55187         re_string_context_at.
55188
55189         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
55190         now requires it.
55191         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
55192         gl_REGEX now does it for us.
55193         (gl_REGEX): Add test taken from
55194         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
55195
55196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
55197         Check that large offsets work.  Modernize Autoconf usages.
55198         Prefer "yes" to mean a good thing rather than a bad.
55199         Don't put "#define mkstemp" in config.h, as this might interfere
55200         with standard system headers that "#define mkstemp mkstemp64".
55201
55202         * modules/mkstemp (Depends-on): Add extensions, so that
55203         mkstemp is visible on some platforms.
55204         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
55205         (Include): Change to "mkstemp.h" from <stdlib.h>.
55206         (Files): Add mkstemp.h.
55207
55208         * lib/mkstemp.h: New file, since some standard headers
55209         #define mkstemp.
55210         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
55211         Include "mkstemp.h".
55212         Make the _LIBC code resemble glibc original more,
55213         e.g., use K&R style.
55214         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
55215         (mkstemp): Remove, since mkstemp.h does this for us.
55216         * lib/stdlib--.h: Include mkstemp.h.
55217
55218         Import this patch from libc:
55219
55220         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55221
55222         * lib/tempname.c (__gen_tempname): Change attempts_min
55223         into a macro.  Use preprocessor to decide how to initialize
55224         attempts [Coverity CID 67].
55225
55226 2006-09-20  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/mkdtemp.c: Import from libc.
55229         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55230                 * sysdeps/posix/tempname.c (__gen_tempname): Change
55231                 attempts_min into a macro.  Use preprocessor to decide how to
55232                 initialize attempts [Coverity CID 67].
55233         2001-11-27  Paul Eggert  <eggert@twinsun.com>
55234                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
55235                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
55236
55237 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55238
55239         * gnulib-tool (func_exit): New function, to allow to pass the
55240         exit status portably through the trap.  Use everywhere.
55241         (--help, --version): Signal a write error.
55242         (trap): catch SIGPIPE, for write errors.
55243         Exit at the end of the trap, with the correct exit status.
55244
55245 2006-09-19  Karl Berry  <karl@gnu.org>
55246
55247         * doc/gnulib.texi: note about the license texinfo files.
55248
55249 2006-09-19  Eric Blake  <ebb9@byu.net>
55250
55251         * gnulib-tool: Avoid space-tab.
55252
55253 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55254
55255         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
55256         that prevented coreutils 6.1 from building.  Problem reported
55257         by Petter Reinholdtsen.
55258
55259 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55260
55261         * gnulib-tool (avoidlist): Fix typo that broke options like
55262         --avoid=lock that are used by coreutils bootstrap.
55263
55264 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
55265
55266         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
55267         more systematically.
55268
55269 2006-09-18  Jim Meyering  <jim@meyering.net>
55270
55271         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
55272
55273 2006-09-18  Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
55276
55277 2006-09-18  Bruno Haible  <bruno@clisp.org>
55278
55279         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
55280         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
55281         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
55282         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
55283         * m4/gettext.m4: Require autoconf >= 2.52.
55284         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
55285         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
55286         of gl_cv_header_inttypes_h.
55287
55288 2006-09-18  Bruno Haible  <bruno@clisp.org>
55289
55290         * lib/javaversion.c: Include configmake.h.
55291
55292 2006-09-18  Bruno Haible  <bruno@clisp.org>
55293
55294         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
55295         avoid that the while loops be executed in a subshell.
55296
55297 2006-09-18  Bruno Haible  <bruno@clisp.org>
55298
55299         * MODULES.html.sh (func_module): Break long lines.
55300         Suggested by Bruce Korb <bkorb@gnu.org>.
55301
55302 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55303
55304         Speed up by a factor of 1.12.
55305         * gnulib-tool (nl): New variable.
55306         (func_import): Rewrite include directive extraction to only read each
55307         directive once.
55308
55309 2006-09-17  Bruno Haible  <bruno@clisp.org>
55310
55311         * modules/javaversion (Makefile.am): Remove DEFS setting.
55312         (Depends-on): Add configmake, for PKGDATADIR definition.
55313
55314 2006-09-17  Bruno Haible  <bruno@clisp.org>
55315
55316         * gnulib-tool (func_create_testdir): Rewrite all files at once.
55317
55318 2006-09-17  Bruno Haible  <bruno@clisp.org>
55319
55320         * gnulib-tool (func_append): New function, stolen from libtool.m4.
55321         (func_modules_transitive_closure, func_modules_add_dummy,
55322         func_modules_to_filelist, func_import, func_create_testdir,
55323         func_create_megatestdir, ...): Use it wherever possible.
55324         Suggested by Ralf Wildenhues.
55325
55326 2006-09-16  Karl Berry  <karl@gnu.org>
55327
55328         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
55329         to avoid sectioning errors.
55330         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
55331         [ifinfo]: blank line after @center-ed titles.
55332         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55333         Spell FSF address consistently with others.
55334         (These changes approved by rms.)
55335
55336 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55337
55338         Speed up by a factor of 1.61.
55339         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55340         already checked module names again.
55341
55342 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55343
55344         Speed up by a factor of 1.13.
55345         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55346         for new_files, and the input to func_add_or_update.
55347
55348 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55349
55350         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55351         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55352
55353 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55354
55355         * modules/mkancesdirs (Depends-on): Add fcntl.
55356         * modules/savewd: New file.
55357         * MODULES.html.sh (File system functions): Add savewd.
55358
55359         * modules/configmake (Makefile.am): Add support for the
55360         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
55361
55362 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55363
55364         * m4/savewd.m4: New file.
55365
55366 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55367
55368         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
55369         (dirchownmod): New arg FD.  All callers changed.
55370         Use FD rather than opening the directory ourself, as opening is
55371         now the caller's responsibility.
55372         * lib/dirchownmod.h: Likewise.
55373         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
55374         hosts that require <sys/types.h> before <sys/stat.h>.  Include
55375         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
55376         (test_dir): Remove.
55377         (mkancesdirs): Return length of prefix of FILE that has already
55378         been made, or -2 if there is a child doing the work.  Redo
55379         algorithm so that it is O(N) rather than O(N**2).  Optimize away
55380         ".", and treat ".." specially since it might stray back into
55381         already-created areas.  Use a subprocess if necessary.  New arg
55382         WD; all users changed.  MAKE_DIR function should now return 1
55383         if it creates a directory that is not readable.  Return -2 if
55384         a child process is spun off.
55385         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
55386         Adjust signature to match code.
55387         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
55388         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
55389         all users changed.
55390         * lib/savewd.c, lib/savewd.h: New files.
55391
55392 2006-09-15  Jim Meyering  <jim@meyering.net>
55393
55394         * modules/rename-dest-slash: New module.
55395         * MODULES.html.sh (posix_compat): Add it here.
55396
55397         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
55398
55399 2006-09-15  Jim Meyering  <jim@meyering.net>
55400
55401         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
55402         file.
55403
55404         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
55405
55406 2006-09-15  Jim Meyering  <jim@meyering.net>
55407
55408         * lib/rename-dest-slash.c (has_trailing_slash): Use
55409         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
55410         (rpl_rename_dest_slash): Perform the cheaper trailing slash
55411         test before testing whether SRC is a directory.
55412         Suggestions from Bruno Haible.
55413
55414         Avoid a warning about an unused variable.
55415         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
55416         into the #ifdef block where it's used.
55417
55418         * lib/rename-dest-slash.c: New file.
55419
55420 2006-09-14  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/allocsa.c: Include <config.h> unconditionally.
55423         * lib/asnprintf.c: Likewise.
55424         * lib/asprintf.c: Likewise.
55425         * lib/c-strcasecmp.c: Likewise.
55426         * lib/c-strcasestr.c: Likewise.
55427         * lib/c-strncasecmp.c: Likewise.
55428         * lib/c-strstr.c: Likewise.
55429         * lib/classpath.c: Likewise.
55430         * lib/clean-temp.c: Likewise.
55431         * lib/concatpath.c: Likewise.
55432         * lib/copy-file.c: Likewise.
55433         * lib/csharpcomp.c: Likewise.
55434         * lib/csharpexec.c: Likewise.
55435         * lib/execute.c: Likewise.
55436         * lib/fatal-signal.c: Likewise.
55437         * lib/findprog.c: Likewise.
55438         * lib/fwriteerror.c: Likewise.
55439         * lib/gl_array_list.c: Likewise.
55440         * lib/gl_array_oset.c: Likewise.
55441         * lib/gl_avltree_list.c: Likewise.
55442         * lib/gl_avltree_oset.c: Likewise.
55443         * lib/gl_avltreehash_list.c: Likewise.
55444         * lib/gl_carray_list.c: Likewise.
55445         * lib/gl_linked_list.c: Likewise.
55446         * lib/gl_linkedhash_list.c: Likewise.
55447         * lib/gl_list.c: Likewise.
55448         * lib/gl_oset.c: Likewise.
55449         * lib/gl_rbtree_list.c: Likewise.
55450         * lib/gl_rbtree_oset.c: Likewise.
55451         * lib/gl_rbtreehash_list.c: Likewise.
55452         * lib/imaxabs.c: Likewise.
55453         * lib/imaxdiv.c: Likewise.
55454         * lib/javacomp.c: Likewise.
55455         * lib/javaexec.c: Likewise.
55456         * lib/javaversion.c: Likewise.
55457         * lib/linebreak.c: Likewise.
55458         * lib/localcharset.c: Likewise.
55459         * lib/lock.c: Likewise.
55460         * lib/mbchar.c: Likewise.
55461         * lib/mbswidth.c: Likewise.
55462         * lib/mkdtemp.c: Likewise.
55463         * lib/pipe.c: Likewise.
55464         * lib/printf-args.c: Likewise.
55465         * lib/printf-parse.c: Likewise.
55466         * lib/progname.c: Likewise.
55467         * lib/progreloc.c: Likewise.
55468         * lib/readlink.c: Likewise.
55469         * lib/sh-quote.c: Likewise.
55470         * lib/stpcpy.c: Likewise.
55471         * lib/stpncpy.c: Likewise.
55472         * lib/strcasecmp.c: Likewise.
55473         * lib/strcasestr.c: Likewise.
55474         * lib/strcspn.c: Likewise.
55475         * lib/striconv.c: Likewise.
55476         * lib/strncasecmp.c: Likewise.
55477         * lib/strnlen1.c: Likewise.
55478         * lib/strstr.c: Likewise.
55479         * lib/strtok_r.c: Likewise.
55480         * lib/tls.c: Likewise.
55481         * lib/tmpdir.c: Likewise.
55482         * lib/unicodeio.c: Likewise.
55483         * lib/unsetenv.c: Likewise.
55484         * lib/vasnprintf.c: Likewise.
55485         * lib/vasprintf.c: Likewise.
55486         * lib/wait-process.c: Likewise.
55487         * lib/xallocsa.c: Likewise.
55488         * lib/xsetenv.c: Likewise.
55489         * lib/xstriconv.c: Likewise.
55490
55491 2006-09-13  Simon Josefsson  <jas@extundo.com>
55492
55493         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55494         that internally, suggested by Ralf Wildenhues
55495         <Ralf.Wildenhues@gmx.de>.
55496
55497 2006-09-13  Simon Josefsson  <jas@extundo.com>
55498
55499         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55500         @LIBOBJS@.
55501         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55502
55503 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55506         longer worry about uses that don't define HAVE_CONFIG_H.
55507         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
55508         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
55509         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
55510         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
55511         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
55512         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
55513         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
55514         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
55515         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
55516         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
55517         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
55518         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
55519         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
55520         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
55521         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
55522         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
55523         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
55524         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
55525         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
55526         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
55527         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
55528         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
55529         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
55530         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
55531         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
55532         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
55533         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
55534         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
55535         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
55536         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
55537         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
55538         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
55539         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
55540         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
55541         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
55542         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
55543         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
55544         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
55545         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
55546         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
55547         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
55548         Likewise.
55549
55550 2006-09-13  Eric Blake  <ebb9@byu.net>
55551
55552         * lib/getopt.c: Fix typo in last commit.
55553
55554 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55555
55556         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
55557         dgettext.
55558
55559 2006-09-12  Jim Meyering  <jim@meyering.net>
55560
55561         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
55562         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
55563         Reported by Nelson H. F. Beebe.
55564
55565 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55566
55567         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
55568         program_invocation_name and program_invocation_short_name are
55569         initialized.
55570         * lib/argp-namefrob.h: Move declarations of program_invocation_name
55571         and program_invocation_short_name to argp.h, so they are visible
55572         to user programs.
55573         * lib/argp.h: Likewise
55574
55575 2006-09-10  Bruno Haible  <bruno@clisp.org>
55576
55577         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55578         m4/inttypes_h.m4, m4/uintmax_t.m4.
55579
55580 2006-09-10  Bruno Haible  <bruno@clisp.org>
55581
55582         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
55583         gl_AC_TYPE_UINTMAX_T.
55584
55585 2006-09-10  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
55588
55589 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55590
55591         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
55592         convention.  Text proposed by Bruno Haible.
55593         (struct argp_option): Document the use of N_() wrappers.
55594
55595         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
55596         '\v', and translate the two parts separately, instead of feeding
55597         the whole string to gettext.  This allows to exclude
55598         '\v' from the strings visible to the translator by writing doc
55599         strings as N_("..") "\v" N_("..").
55600
55601 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
55602
55603         * config/srclist.txt: Undo latest change; the bug was fixed.
55604
55605 2006-09-09  Bruno Haible  <bruno@clisp.org>
55606
55607         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
55608         assignments if building a library without libtool.
55609         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
55610         in func_emit_lib_Makefile_am.
55611         (func_import): When building a static library libfoo.a, arrange to
55612         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
55613         (func_create_testdir): Likewise.
55614         * modules/gc (configure.ac, Makefile.am): If building statically,
55615         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
55616         * modules/iconvme (configure.ac, Makefile.am): Likewise.
55617         * modules/striconv (configure.ac, Makefile.am): Likewise.
55618         Based on a suggestion by Ralf Wildenhues.
55619
55620 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55621
55622         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55623         Check for unistd.h too, since Autoconf doesn't assume POSIX.
55624         Also:
55625
55626         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55627         Add year_2050_test to catch glibc bug 2821
55628         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55629
55630         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55631         Prefer #ifdef to #if.
55632
55633         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
55634         Return from 'main' instead of calling 'exit'.
55635
55636 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * lib/mktime.c (guess_time_tm): Fix bug where mktime
55639         returned the maximum time_t value rather than (time_t) -1.
55640         Problem originally reported by William Bardwell
55641         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55642
55643         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55644         Moved to here ...
55645         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55646         ... from here.
55647
55648 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55649
55650         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
55651         2821 is fixed.
55652
55653 2006-09-08  Jim Meyering  <jim@meyering.net>
55654
55655         Don't make generated files read-only.  That would bother too many
55656         people.  However, do retain the ability to work when targets are
55657         read-only: remove the destination and temporary files before writing
55658         them (when generated via sed or echo), or by using the -f option for
55659         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
55660         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55661         * modules/byteswap, modules/configmake, modules/fcntl:
55662         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55663         * modules/localcharset, modules/netinet_in, modules/poll:
55664         * modules/stdbool, modules/stdint, modules/sys_select:
55665         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55666
55667 2006-09-08  Jim Meyering  <jim@meyering.net>
55668
55669         Avoid new build failure on FreeBSD 6.0.
55670         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
55671         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
55672         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
55673
55674 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55675
55676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
55677
55678 2006-09-07  Jim Meyering  <jim@meyering.net>
55679
55680         Fix global typo in last change: use chmod u-w, not chmod u-x.
55681         Spotted by Paul Eggert and Bruce Korb.
55682         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55683         * modules/byteswap, modules/configmake, modules/fcntl:
55684         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55685         * modules/localcharset, modules/netinet_in, modules/poll:
55686         * modules/stdbool, modules/stdint, modules/sys_select:
55687         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55688
55689 2006-09-06  Jim Meyering  <jim@meyering.net>
55690
55691         Make generated files be read-only.
55692         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
55693         Ensure that each generated file is now read-only.
55694         * modules/argz: Likewise.
55695         * modules/arpa_inet: Likewise.
55696         * modules/byteswap: Likewise.
55697         * modules/configmake: Likewise.
55698         * modules/fcntl: Likewise.
55699         * modules/fnmatch: Likewise.
55700         * modules/getopt: Likewise.
55701         * modules/glob: Likewise.
55702         * modules/inttypes: Likewise.
55703         * modules/netinet_in: Likewise.
55704         * modules/poll: Likewise.
55705         * modules/stdbool: Likewise.
55706         * modules/stdint: Likewise.
55707         * modules/sys_select: Likewise.
55708         * modules/sys_socket: Likewise.
55709         * modules/sys_stat: Likewise.
55710         * modules/sysexits: Likewise.
55711         * modules/localcharset: Same as above, but continue using temporary
55712         file named "t-$@" (why different?) rather than the "$@-t" used
55713         everywhere else.
55714
55715         * modules/sysexits (Makefile.am): Replace literal occurrences
55716         of "sysexit.h" more readable, and more consistent, "$@".
55717
55718 2006-09-06  Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/striconv: New file.
55721         * modules/xstriconv: New file.
55722         * MODULES.html.sh (Internationalization functions): Add striconv,
55723         xstriconv.
55724
55725 2006-09-06  Bruno Haible  <bruno@clisp.org>
55726
55727         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
55728         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
55729         not using libtool correctly.
55730
55731 2006-09-06  Bruno Haible  <bruno@clisp.org>
55732
55733         * lib/striconv.h: New file.
55734         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
55735         iconvstring.c.
55736         * lib/xstriconv.h: New file.
55737         * lib/xstriconv.c: New file.
55738
55739 2006-09-06  Bruno Haible  <bruno@clisp.org>
55740
55741         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55742         lib_..._LDFLAGS.
55743
55744 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55745
55746         * lib/argz_.h: Sync from Libtool.
55747
55748         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
55749                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55750
55751         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
55752
55753 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55754
55755         * modules/trim: New file.
55756
55757 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55758
55759         * lib/trim.h: New file.
55760         * lib/trim.c: New file.
55761
55762 2006-09-05  Bruno Haible  <bruno@clisp.org>
55763
55764         * MODULES.html.sh (String handling): Add trim.
55765
55766 2006-09-04  Karl Berry  <karl@gnu.org>
55767
55768         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
55769         until next release.
55770
55771 2006-09-03  Bruno Haible  <bruno@clisp.org>
55772
55773         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
55774         correctly.
55775
55776 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
55779         not gl_GETLOADAVG.  Omit unneeded semicolons.
55780         Problems reported by Ralf Wildenhues in
55781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55782         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
55783         at the end, which is the usual gnulib style.
55784
55785         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
55786         of doing all the work ourselves.
55787         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
55788         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
55789
55790 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
55793         Problem reported by Ralf Wildenhues in
55794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55795
55796         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
55797         HAVE_STRUCT_STATFS_F_FSTYPENAME.
55798
55799 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55800
55801         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
55802         yesterday's patch by changing test -n to test -z.
55803
55804 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         * modules/getloadavg (Files): Add m4/getloadavg.m4.
55807         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
55808         the former is now obsolescent.
55809
55810         * modules/chdir-long (Depends-on): Add fcntl.
55811
55812 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
55815         obsolescent, and programs should use gnulib instead.
55816         * m4/getloadavg.m4: New file, with contents taken from Autoconf
55817         but with prefixes changed.
55818
55819 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55820
55821         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
55822         or stdbool.h, because they might not exist while configuring.
55823
55824         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
55825         Don't include unistd.h or limits.h; not needed, since chdir-long.h
55826         does that for us.
55827         (O_DIRECTORY): Remove.
55828
55829 2006-08-31  Eric Blake  <ebb9@byu.net>
55830
55831         * gnulib-tool: Don't let emacs change spaces to TAB.
55832
55833 2006-08-31  Bruno Haible  <bruno@clisp.org>
55834
55835         * gnulib-tool: When calling func_import more than once, do it in a
55836         subshell.
55837         Reported by Eric Blake <ebb9@byu.net>.
55838
55839 2006-08-31  Bruno Haible  <bruno@clisp.org>
55840
55841         * gnulib-tool (nl): Remove variable.
55842         (sed_transform_lib_file): Use more robust test for config-h module.
55843         (func_import): Fix typo in 2006-08-25 patch.
55844
55845 2006-08-31  Bruno Haible  <bruno@clisp.org>
55846
55847         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
55848         specified, augment Makefile.am variables instead of assigning them.
55849
55850 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55851
55852         Work around a bug in both the Linux and SunOS 64-bit kernels:
55853         nanosleep mishandles sleeps for longer than 2**31 seconds.
55854         Problem reported by Frank v Waveren in
55855         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
55857         Check for nanosleep bug.
55858         (LIB_NANOSLEEP): Append clock_gettime library if needed.
55859
55860 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55861
55862         Work around a bug in both the Linux and SunOS 64-bit kernels:
55863         nanosleep mishandles sleeps for longer than 2**31 seconds.
55864         Problem reported by Frank v Waveren in
55865         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55866         * lib/nanosleep.c (BILLION): New constant.
55867         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
55868         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
55869         implementation.
55870
55871 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55872
55873         * modules/nanosleep (Depends-on): Add gettime.
55874
55875 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55876         and Simon Josefsson  <jas@extundo.com>
55877         and Oskar Liljeblad  <oskar@osk.mine.nu>
55878
55879         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
55880         * gnulib-tool (func_import): New license type 'unmodifiable license
55881         text'.
55882         * modules/fdl: Use it.  Longer description.
55883         * module/gpl, module/lgpl: New files.
55884
55885 2006-08-30  Jim Meyering  <jim@meyering.net>
55886
55887         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
55888         shadowing the parameter.
55889
55890 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55891
55892         Sync from Libtool:
55893
55894         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55895
55896         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
55897         sharing with gnulib.  Report by Eric Blake.
55898
55899 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * modules/isapipe: New file.
55902         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
55903
55904 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55905
55906         * modules/configmake (Makefile.am): Add a comment, and omit
55907         the CONFIGMAKE_ prefix from generated macro names.  Suggested
55908         by Bruno Haible.
55909
55910 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55911
55912         * m4/isapipe.m4: New file.
55913
55914 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         * lib/isapipe.c, lib/isapipe.h: New files.
55917
55918 2006-08-29  Jim Meyering  <jim@meyering.net>
55919
55920         * modules/configmake (Makefile.am): Make configmake.h depend on
55921         Makefile.  Otherwise, a stale configmake.h could hang around.
55922
55923 2006-08-29  Eric Blake  <ebb9@byu.net>
55924
55925         * lib/error.c (error_at_line, print_errno_message): Match libc, after
55926         resolution of upstream bug 3044.
55927
55928 2006-08-29  Bruno Haible  <bruno@clisp.org>
55929
55930         * modules/localcharset (Depends-on): Add configmake.
55931         (Makefile.am): Remove setting of LIBDIR through DEFS.
55932
55933 2006-08-29  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
55936         defined.
55937
55938 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55939
55940         * modules/fcntl: New file.
55941         * modules/chdir-safer (Depends-on): Add fcntl.
55942         * modules/fts: Likewise.
55943         * modules/mkdir-p: Likewise.
55944
55945         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
55946         This undoes the most recent change, since we're now addressing the
55947         problem in a different way.
55948
55949         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
55950         into output, since the output might be called Makefile.am even
55951         if $makefile_name is something different.
55952         (func_import): Use $makefile_am rather than
55953         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
55954         empty.
55955
55956         * modules/inttypes (Files): Add m4/inttypes-h.m4.
55957
55958 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55959
55960         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
55961         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
55962         recent change to stdint.m4, since we're now addressing the problem in a
55963         different way.
55964
55965 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         * m4/fcntl_h.m4: New file.
55968
55969 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55970
55971         * lib/fcntl_.h: New file.
55972         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
55973         the fcntl module.
55974         * lib/dirchownmod.c: Likewise.
55975         * lib/fts.c: Likewise.
55976
55977         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
55978         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
55979         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
55980         just before including <inttypes.h>, to avoid circular inclusion.
55981
55982 2006-08-28  Jim Meyering  <jim@meyering.net>
55983
55984         * doc/visibility.texi: Actually read and correct the grammar of the
55985         sentence affected by yesterday's change.
55986
55987 2006-08-28  Eric Blake  <ebb9@byu.net>
55988
55989         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
55990         needs wrapper.
55991
55992 2006-08-28  Eric Blake  <ebb9@byu.net>
55993
55994         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
55995
55996 2006-08-28  Eric Blake  <ebb9@byu.net>
55997
55998         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
55999
56000 2006-08-28  Bruno Haible  <bruno@clisp.org>
56001
56002         * modules/c-strstr: New file, from GNU gettext.
56003         * MODULES.html.sh (String handling): Add c-strstr.
56004
56005 2006-08-28  Bruno Haible  <bruno@clisp.org>
56006
56007         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
56008         macros.
56009         Reported by Eric Blake.
56010
56011 2006-08-28  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
56014         (VASNPRINTF): Return a string of length > INT_MAX without failing.
56015         * lib/vasprintf.c: Include errno.h, limits.h.
56016         (EOVERFLOW): New fallback definition.
56017         (vasprintf): Test here whether the string length is > INT_MAX.
56018         * lib/vsnprintf.c: Include errno.h, limits.h.
56019         (EOVERFLOW): New fallback definition.
56020         (vsnprintf): Fix bug when generated string was too long for the buffer.
56021         Test here whether the string length is > INT_MAX.
56022
56023 2006-08-28  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/inttypes_.h (SCNX*): Remove definitions.
56026         Reported by Eric Blake.
56027
56028 2006-08-28  Bruno Haible  <bruno@clisp.org>
56029
56030         * lib/c-strstr.h: New file, from GNU gettext.
56031         * lib/c-strstr.c: New file, from GNU gettext.
56032
56033 2006-08-28  Bruno Haible  <bruno@clisp.org>
56034
56035         * gnulib-tool: Reorder some statements.
56036
56037 2006-08-28  Bruno Haible  <bruno@clisp.org>
56038
56039         * gnulib-tool: New option --makefile-name.
56040         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
56041         $makefile_name.
56042         (func_import): Write $makefile_name to the cache file, and read it from
56043         there unless explicitly specified. Use $makefile_name as file name
56044         instead of Makefile.am. Adjust the recommendations accordingly.
56045
56046 2006-08-28  Bruno Haible  <bruno@clisp.org>
56047
56048         * gnulib-tool (func_verify_module): Check against misapplying patch.
56049
56050 2006-08-28  Bruno Haible  <bruno@clisp.org>
56051
56052         * gnulib-tool (func_relativize, func_relconcat): New functions.
56053         Give an error if --local-dir is given with --update.
56054         Remove trailing slashes from $local_gnulib_dir.
56055         (func_import): Store the relativized $local_gnulib_dir in
56056         gnulib-cache.m4, and read it from there if not specified explicitly.
56057
56058 2006-08-28  Bruno Haible  <bruno@clisp.org>
56059
56060         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
56061         is the current directory. Respect also $local_gnulib_dir.
56062
56063 2006-08-28  Bruno Haible  <bruno@clisp.org>
56064             Simon Josefsson  <jas@extundo.com>
56065
56066         BeOS portability.
56067         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
56068
56069 2006-08-27  Jim Meyering  <jim@meyering.net>
56070
56071         * doc/visibility.texi: Remove duplicate word: "pointer".
56072
56073 2006-08-26  Bruno Haible  <bruno@clisp.org>
56074
56075         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
56076         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
56077         (Makefile.am): Create inttypes.h from inttypes_.h.
56078         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
56079
56080         * modules/imaxabs: New file.
56081
56082         * modules/imaxdiv: New file.
56083
56084 2006-08-26  Bruno Haible  <bruno@clisp.org>
56085
56086         * m4/inttypes.m4: New file.
56087         * m4/_inttypes_h.m4: Remove file.
56088         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
56089         PRI_MACROS_BROKEN.
56090         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
56091
56092         * m4/imaxabs.m4: New file.
56093
56094         * m4/imaxdiv.m4: New file.
56095
56096 2006-08-26  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/inttypes_.h: New file.
56099         * lib/inttypes.h: Remove file.
56100         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
56101
56102         * lib/imaxabs.c: New file.
56103
56104         * lib/imaxdiv.c: New file.
56105
56106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56107
56108         New config-h module, so that "make" output needn't be cluttered
56109         by -DHAVE_CONFIG_H.
56110         * MODULES.html.sh (Support for building libraries and executables):
56111         Add config-h.
56112         * modules/config-h: New file.
56113         * gnulib-tool (nl, sed_transform_lib_file): New vars.
56114         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
56115         the config-h module is used.
56116
56117         New configmake module, so that "make" output needn't be cluttered
56118         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
56119         * MODULES.html.sh (Support for building libraries and executables):
56120         Add configmake.
56121         * modules/configmake: New file.
56122
56123 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56124
56125         * m4/config-h.m4: New file.
56126
56127 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         * config/srclist.txt: Add elisp-comp.
56130
56131 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56132
56133         * MODULES.html.sh (Support for building libraries and executables):
56134         Add elisp-comp.
56135         * build-aux/elisp-comp: New file.
56136         * modules/elisp-comp: New file.
56137
56138 2006-08-24  Bruno Haible  <bruno@clisp.org>
56139
56140         * gnulib-tool (func_create_testdir): Use non-default values of
56141         sourcebase and m4base.
56142
56143 2006-08-24  Bruno Haible  <bruno@clisp.org>
56144
56145         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
56146         HTML structure.
56147
56148 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56149
56150         * modules/openat (Depends-on): Add lchown.
56151
56152 2006-08-23  Bruno Haible  <bruno@clisp.org>
56153
56154         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
56155         of gl_LOCK_EARLY instead of gl_LOCK.
56156
56157 2006-08-23  Bruno Haible  <bruno@clisp.org>
56158
56159         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
56160         on OSF/1 to no.
56161         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
56162
56163 2006-08-23  Bruno Haible  <bruno@clisp.org>
56164
56165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
56166         as unusable.
56167
56168         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
56169         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
56170         (gl_LOCK): New macro.
56171
56172 2006-08-22  Simon Josefsson  <jas@extundo.com>
56173
56174         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
56175         to md5 module.
56176
56177 2006-08-22  Simon Josefsson  <jas@extundo.com>
56178
56179         * MODULES.html.sh: Add "Support for maintaining and release
56180         projects".
56181
56182         * build-aux/gnupload: New file, from coreutils.
56183
56184 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56185
56186         Avoid the need for AC_LIBSOURCES in m4 macros.
56187         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
56188         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
56189         * modules/check-version (EXTRA_DIST): Add check-version.h.
56190         * modules/crc (EXTRA_DIST): Add crc.h.
56191         * modules/des (EXTRA_DIST): Add des.h.
56192         * modules/gc (EXTRA_DIST): Add gc.h.
56193         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
56194         * modules/getline (EXTRA_DIST): Add getline.h.
56195         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
56196         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
56197         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
56198         * modules/md2 (EXTRA_DIST): Add md2.h.
56199         * modules/md4 (EXTRA_DIST): Add md4.h.
56200         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
56201         * modules/read-file (EXTRA_DIST): Add read-file.h.
56202         * modules/readline (EXTRA_DIST): Add readline.h.
56203         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
56204         rijndael-api-fst.h.
56205
56206 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56207
56208         * m4/rijndael.m4 (gl_ARCFOUR):
56209         * m4/arctwo.m4 (gl_ARCTWO):
56210         * m4/check-version.m4 (gl_CHECK_VERSION):
56211         * m4/crc.m4 (gl_CRC):
56212         * m4/des.m4 (gl_DES):
56213         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
56214         * m4/gc.m4 (gl_GC):
56215         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
56216         * m4/getline.m4 (gl_FUNC_GETLINE):
56217         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
56218         * m4/hmac-md5.m4 (gl_HMAC_MD5):
56219         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
56220         * m4/md2.m4 (gl_MD2):
56221         * m4/md4.m4 (gl_MD4):
56222         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
56223         * m4/read-file.m4 (gl_FUNC_READ_FILE):
56224         * m4/readline.m4 (gl_FUNC_READLINE):
56225         * m4/rijndael.m4 (gl_RIJNDAEL):
56226         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56227         to get the necessary .h files and whatnot.
56228
56229 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56230
56231         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
56232         gnulib rather than the other way around.
56233         * config/srclistvars.sh (COREUTILS): Remove.
56234
56235 2006-08-22  Jim Meyering  <jim@meyering.net>
56236
56237         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
56238
56239         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
56240
56241 2006-08-22  Eric Blake  <ebb9@byu.net>
56242
56243         * modules/regexprops-generic: New file.
56244         * MODULES.html.sh (Support for building documentation): List it.
56245
56246 2006-08-22  Eric Blake  <ebb9@byu.net>
56247
56248         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
56249         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
56250         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
56251         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
56252
56253 2006-08-22  Bruno Haible  <bruno@clisp.org>
56254
56255         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
56256         and lib_LTLIBRARIES like the other lib_* variables.
56257
56258 2006-08-22  Bruno Haible  <bruno@clisp.org>
56259
56260         * build-aux/x-to-1.in: New file, from GNU gettext.
56261
56262 2006-08-22  Bruno Haible  <bruno@clisp.org>
56263
56264         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
56265         <utmpx.h> exists.
56266
56267 2006-08-22  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
56270         <utmpx.h> exists.
56271
56272 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56273
56274         BeOS portability.
56275         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
56276         exist.
56277         Problem reported by Bruno Haible.
56278
56279 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56280
56281         Avoid the need for AC_LIBSOURCES in m4 macros.
56282         * modules/acl (EXTRA_DIST): Add acl.h.
56283         * modules/argmatch (Files): Add m4/argmatch.m4.
56284         (configure.ac): Add gl_ARGMATCH.
56285         (EXTRA_DIST): Renamed from lib_SOURCES, for
56286         consistency with the other modules.  Remove argmatch.c.
56287         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
56288         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
56289         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
56290         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
56291         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
56292         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
56293         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
56294         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
56295         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
56296         * modules/closeout (EXTRA_DIST): Add closeout.h.
56297         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
56298         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
56299         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
56300         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
56301         dirname.h; remove basename.c and stripslash.c.
56302         * modules/exclude (EXTRA_DIST): Add exclude.h.
56303         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
56304         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
56305         * modules/file-type (EXTRA_DIST): Add file-type.h.
56306         * modules/filemode (EXTRA_DIST): Add filemode.h.
56307         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
56308         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56309         * modules/fpending (EXTRA_DIST): Add __fpending.h.
56310         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
56311         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
56312         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
56313         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
56314         * modules/getdate (EXTRA_DIST): Add getdate.c.
56315         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
56316         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
56317         * modules/getpass (EXTRA_DIST): Add getpass.h.
56318         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
56319         * modules/group-member (EXTRA_DIST): Add group-member.h.
56320         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
56321         * modules/hash (EXTRA_DIST): Add hash.h.
56322         * modules/human (EXTRA_DIST): Add human.h.
56323         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
56324         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
56325         * modules/lchown (EXTRA_DIST): Add lchown.h.
56326         * modules/long-options (EXTRA_DIST): Add long-options.h.
56327         * modules/lstat (EXTRA_DIST): Add lstat.h.
56328         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
56329         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
56330         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
56331         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
56332         * modules/memxor (EXTRA_DIST): Add memxor.h.
56333         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56334         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56335         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56336         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56337         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56338         * modules/physmem (EXTRA_DIST): Add physmem.h.
56339         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56340         * modules/posixver (EXTRA_DIST): Add posixver.h.
56341         * modules/quote (EXTRA_DIST): Add quote.h.
56342         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56343         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56344         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56345         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56346         regex_internal.h regexec.c.
56347         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56348         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56349         * modules/same (EXTRA_DIST): Add same.h.
56350         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56351         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56352         * modules/savedir (EXTRA_DIST): Add savedir.h.
56353         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56354         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56355         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56356         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56357         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56358         * modules/strdup (EXTRA_DIST): Add strdup.h.
56359         * modules/strftime (EXTRA_DIST): Add strftime.h.
56360         * modules/strndup (EXTRA_DIST): Add strndup.h.
56361         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
56362         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
56363         * modules/time_r (EXTRA_DIST): Add time_r.h.
56364         * modules/timespec (EXTRA_DIST): Add timespec.h.
56365         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56366         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
56367         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
56368         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
56369         * modules/userspec (EXTRA_DIST): Add userspec.h.
56370         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
56371         * modules/utimens (EXTRA_DIST): Add utimens.h.
56372         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
56373         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
56374         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
56375         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
56376         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
56377         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
56378         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
56379         * modules/yesno (EXTRA_DIST): Add yesno.h.
56380
56381 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56382
56383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
56384
56385         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
56386         * m4/dev-ino.m4, same-inode.m4: Remove.
56387
56388         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
56389         * m4/acl.m4 (AC_FUNC_ACL):
56390         * m4/backupfile.m4 (gl_BACKUPFILE):
56391         * m4/c-strtod.m4 (gl_C99_STRTOLD):
56392         * m4/canon-host.m4 (gl_CANON_HOST):
56393         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56394         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
56395         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
56396         * m4/cloexec.m4 (gl_CLOEXEC):
56397         * m4/close-stream.m4 (gl_CLOSE_STREAM):
56398         * m4/closeout.m4 (gl_CLOSEOUT):
56399         * m4/dirfd.m4 (gl_FUNC_DIRFD):
56400         * m4/dirname.m4 (gl_DIRNAME):
56401         * m4/exclude.m4 (gl_EXCLUDE):
56402         * m4/exitfail.m4 (gl_EXITFAIL):
56403         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
56404         * m4/file-type.m4 (gl_FILE_TYPE):
56405         * m4/filemode.m4 (gl_FILEMODE):
56406         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
56407         * m4/fpending.m4 (gl_FUNC_FPENDING):
56408         * m4/fprintftime.m4 (gl_FPRINTFTIME):
56409         * m4/fts.m4 (gl_FUNC_FTS):
56410         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
56411         * m4/getdate.m4 (gl_GETDATE):
56412         * m4/gethrxtime.m4 (gl_GETHRXTIME):
56413         * m4/getpagesize.m4 (gl_GETPAGESIZE):
56414         * m4/getpass.m4 (gl_FUNC_GETPASS):
56415         * m4/gettime.m4 (gl_GETTIME):
56416         * m4/getugroups.m4 (gl_GETUGROUPS):
56417         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
56418         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
56419         * m4/hard-locale.m4 (gl_HARD_LOCALE):
56420         * m4/hash.m4 (gl_HASH):
56421         * m4/idcache.m4 (gl_IDCACHE):
56422         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
56423         * m4/lchown.m4 (gl_FUNC_LCHOWN):
56424         * m4/long-options.m4 (gl_LONG_OPTIONS):
56425         * m4/lstat.m4 (gl_FUNC_LSTAT):
56426         * m4/md5.m4 (gl_MD5):
56427         * m4/memcasecmp.m4 (gl_MEMCASECMP):
56428         * m4/memcoll.m4 (gl_MEMCOLL):
56429         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
56430         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
56431         * m4/memxor.m4 (gl_MEMXOR):
56432         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
56433         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
56434         * m4/modechange.m4 (gl_MODECHANGE):
56435         * m4/mountlist.m4 (gl_MOUNTLIST):
56436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56437         * m4/openat.m4 (gl_FUNC_OPENAT):
56438         * m4/pathmax.m4 (gl_PATHMAX):
56439         * m4/physmem.m4 (gl_PHYSMEM):
56440         * m4/posixtm.m4 (gl_POSIXTM):
56441         * m4/posixver.m4 (gl_POSIXVER):
56442         * m4/quote.m4 (gl_QUOTE):
56443         * m4/quotearg.m4 (gl_QUOTEARG):
56444         * m4/readtokens.m4 (gl_READTOKENS):
56445         * m4/readutmp.m4 (gl_READUTMP):
56446         * m4/regex.m4 (gl_REGEX):
56447         * m4/safe-read.m4 (gl_SAFE_READ):
56448         * m4/safe-write.m4 (gl_SAFE_WRITE):
56449         * m4/same.m4 (gl_SAME):
56450         * m4/save-cwd.m4 (gl_SAVE_CWD):
56451         * m4/savedir.m4 (gl_SAVEDIR):
56452         * m4/settime.m4 (gl_SETTIME):
56453         * m4/sha1.m4 (gl_SHA1):
56454         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
56455         * m4/stat-macros.m4 (gl_STAT_MACROS):
56456         * m4/stat-time.m4 (gl_STAT_TIME):
56457         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
56458         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
56459         * m4/strdup.m4 (gl_FUNC_STRDUP):
56460         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
56461         * m4/strndup.m4 (gl_FUNC_STRNDUP):
56462         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
56463         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
56464         * m4/time_r.m4 (gl_TIME_R):
56465         * m4/timespec.m4 (gl_TIMESPEC):
56466         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
56467         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56468         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56469         * m4/userspec.m4 (gl_USERSPEC):
56470         * m4/utimecmp.m4 (gl_UTIMECMP):
56471         * m4/utimens.m4 (gl_UTIMENS):
56472         * m4/xalloc.m4 (gl_XALLOC):
56473         * m4/xgetcwd.m4 (gl_XGETCWD):
56474         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56475         * m4/xreadlink.m4 (gl_XREADLINK):
56476         * m4/xstrtod.m4 (gl_XSTRTOD):
56477         * m4/yesno.m4 (gl_YESNO):
56478         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56479         to get the necessary .h files and whatnot.
56480
56481 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56482             Bruno Haible  <bruno@clisp.org>
56483
56484         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56485         /bin/sh understanding of '!' conditional negation.
56486
56487 2006-08-21  Jim Meyering  <jim@meyering.net>
56488
56489         * modules/openat (Depends-on): Really alphabetize.
56490
56491         * modules/acl (Depends-on): Add error and quote.
56492
56493         * check-module (find_included_lib_files): Add at-func.c to the
56494         ok-to-include-more-than-once white list.
56495
56496         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56497
56498 2006-08-21  Bruno Haible  <bruno@clisp.org>
56499
56500         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56501         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56502         Reported by Martin Lambers <marlam@marlam.de>.
56503
56504 2006-08-21  Bruno Haible  <bruno@clisp.org>
56505
56506         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
56507         specify an installation location, don't emit a noinst_LIBRARIES or
56508         noinst_LTLIBRARIES assignment.
56509
56510 2006-08-21  Bruno Haible  <bruno@clisp.org>
56511
56512         BeOS portability.
56513         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
56514         BeOS has mbrtowc() but no <wctype.h>.
56515
56516 2006-08-21  Bruno Haible  <bruno@clisp.org>
56517
56518         BeOS portability.
56519         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
56520         exist.
56521
56522 2006-08-21  Bruno Haible  <bruno@clisp.org>
56523
56524         BeOS portability.
56525         * lib/mbchar.h: Include <wctype.h> only if it exists.
56526
56527 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56528
56529         Remove files that are no longer needed by their respective modules.
56530         * m4/obstack.m4: Remove.
56531         * m4/strerror_r.m4: Remove.
56532         * m4/uint32_t.m4: Remove.
56533         * m4/uintptr_t.m4: Remove.
56534         * m4/ullong_max.m4: Remove.
56535         * m4/xstrtoimax.m4: Remove.
56536         * m4/xstrtoumax.m4: Remove.
56537
56538         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
56539         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
56540         dependencies now capture this.
56541
56542         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
56543         Do not use AC_LIBSOURCES, since gnulib modules now do this.
56544         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
56545         * m4/human.m4 (gl_HUMAN): Likewise.
56546         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
56547         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
56548
56549         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
56550
56551         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
56552         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
56553         stdint.
56554         * m4/human.m4 (gl_HUMAN): Likewise.
56555         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
56556         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
56557         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56558         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56559         * m4/xstrtol (gl_XSTRTOL): Likewise.
56560
56561         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
56562         AC_TYPE_LONG_LONG_INT.
56563         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56564         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
56565         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
56566         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56567
56568         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
56569         on stdbool.
56570
56571         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
56572         (gl_PREREQ_XSTRTOUL): Remove.
56573
56574         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
56575
56576         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
56577         mode.
56578
56579 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56580
56581         Add and change modules to make it easier for coreutils to use
56582         gnulib-tool.
56583         * modules/backupfile (Files): Remove m4/d-ino.m4.
56584         (Depends-on): Add d-ino.
56585         * modules/cycle-check (Depends-on): Add stdint.
56586         (lib_SOURCES): Add cycle-check.h.
56587         * modules/d-ino: New module.
56588         * modules/d-type: New module.
56589         * modules/error (Files): Remove m4/strerror_r.m4.
56590         * modules/filemode (Files): Add m4/st_dm_mode.m4.
56591         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56592         m4/inttypes_h.m4, m4/uintmax_t.m4.
56593         (Depends-on): Add stdint.
56594         (lib_SOURCES): Add fsusage.h.
56595         * modules/getcwd (Files): Remove d-ino.m4.
56596         (Depends-on): Add d-ino.
56597         * modules/getndelim2 (Depends-on): Add stdint.
56598         * modules/glob (Files): Remove m4/d-type.m4.
56599         (Depends-on): Add d-type.
56600         * modules/host-os: New module.
56601         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
56602         m4/inttypes_h.m4, m4/uintmax_t.m4.
56603         * Depends-on: Add stdint.
56604         (lib_SOURCES): Add human.h.
56605         * modules/inttostr (Files): Remove m4/intmax_t.m4,
56606         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
56607         m4/uintmax_t.m4, m4/ulonglong.m4.
56608         (Depends-on): Add stdint.
56609         (EXTRA_DIST): Add inttostr.h.
56610         * modules/lchmod: New module.
56611         * modules/link-follow: New module.
56612         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
56613         (Depends-on): Add lchmod.
56614         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
56615         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
56616         (Depends-on): Add stdint.
56617         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
56618         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
56619         (Depends-on): Add stdint.
56620         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
56621         * modules/perl: New module.
56622         * modules/regex (Depends-on): Add stdint.
56623         * modules/rmdir-errno: New module.
56624         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56625         m4/intmax_t.m4.
56626         (Depends-on): Add stdint.
56627         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56628         m4/uintmax_t.m4.
56629         (Depends-on): Add stdint.
56630         * modules/unlink-busy: New module.
56631         * modules/utimecmp (Depends-on): Add stdint.
56632         * modules/uptime: New module.
56633         * modules/winsz-ioctl: New module.
56634         * modules/winsz-termios: New module.
56635         * modules/xnanosleep (Depends-on): Add nanosleep.
56636         * modules/ullong_max: Remove.
56637         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
56638         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
56639         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
56640         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
56641         (Depends-on): Add inttypes.
56642         (lib_SOURCES): Add xstrtol.h.
56643         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
56644         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
56645         * MODULES.html.sh: Move 'assert' into the assert section.
56646         Move 'dummy' into the linking section.
56647         Remove ullong_max.
56648         Add section for compatibility checks for POSIX:2001 functions,
56649         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
56650         winsz-ioctl, and winsz-termios into it.
56651         Add lchmod.
56652         Add top-level Misc section and put host-os, perl, and uptime
56653         into it.
56654
56655 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56656
56657         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
56658         now assume the stdint module.  Do not include inttypes.h.
56659         * lib/fsusage.h: Likewise.
56660         * lib/getndelim2.c: Likewise.
56661         * lib/human.h: Likewise.
56662         * lib/inttostr.h: Likewise.
56663         * lib/obstack.c: Likewise.
56664         * lib/regex_internal.h: Likewise.
56665         * lib/tempname.c: Likewise.
56666         * lib/utimecmp.c: Likewise.
56667         * lib/xstrtol.h: Likewise.
56668
56669         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
56670
56671         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
56672         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
56673         * lib/xtime.h: Likewise.
56674
56675 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56676
56677         * modules/openat (Files): Add lib/fchmodat.c.
56678         Fixes problem reported by Jay Youngman.
56679
56680 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
56683         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
56684
56685 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
56686             Bruno Haible  <bruno@clisp.org>
56687
56688         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
56689         and is a script that invokes bison. Tighten the code. Add comments.
56690
56691 2006-08-18  Jim Meyering  <jim@meyering.net>
56692
56693         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
56694         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
56695         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
56696         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
56697
56698 2006-08-18  Bruno Haible  <bruno@clisp.org>
56699
56700         * modules/bison-i18n: New file.
56701         * MODULES.html.sh (Internationalization functions): Add it.
56702
56703 2006-08-18  Bruno Haible  <bruno@clisp.org>
56704
56705         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
56706         sys/statvfs.h. When getmntinfo was found, check its declaration and
56707         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
56708
56709 2006-08-18  Bruno Haible  <bruno@clisp.org>
56710
56711         * m4/bison-i18n.m4: New file, from bison.
56712
56713 2006-08-18  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
56716         (ME_DUMMY): Treat "kernfs" as a dummy.
56717         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
56718
56719 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56720
56721         Update from coreutils.
56722
56723         2006-08-15  Jim Meyering  <jim@meyering.net>
56724
56725         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
56726
56727         2006-01-17  Jim Meyering  <jim@meyering.net>
56728
56729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
56730
56731         2006-01-11  Jim Meyering  <jim@meyering.net>
56732
56733         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
56734         Check for the lchmod function.
56735
56736 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56737
56738         Update from coreutils.
56739
56740         * lib/__fpending.h: Add copyright notice.
56741         * lib/fprintftime.h: Likewise.
56742         * lib/savedir.c: Use (C) in copyright notice.
56743         * lib/savedir.h: Likewise.
56744
56745         2006-08-15  Jim Meyering  <jim@meyering.net>
56746
56747         * lib/at-func.c: New file, with the logic of all emulated at-functions.
56748         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
56749         in support of the EXPECTED_ERRNO macro.
56750         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
56751         definitions.  Instead, define the appropriate symbols and include
56752         "at-func.c".
56753         * lib/mkdirat.c (mkdirat): Likewise.
56754         * lib/fchmodat.c (fchmodat): Likewise.
56755         (ENOSYS): Remove definition.
56756         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
56757         it.  Don't include "unistd--.h" -- it wasn't ever used.
56758
56759         2006-01-17  Jim Meyering  <jim@meyering.net>
56760
56761         Rewrite fts.c not to change the current working directory,
56762         by using openat, fstatat, fdopendir, etc..
56763
56764         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
56765         (HAVE_OPENAT_SUPPORT): Define.
56766         [_LIBC] (fchdir): Don't undef or define; no longer used.
56767         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
56768         Now, this `function' always succeeds, and consumes its file descriptor
56769         parameter -- so callers must not close such FDs.  Update callers.
56770         (diropen_fd, opendirat, cwd_advance_fd): New functions.
56771         (diropen): Add parameter, SP.  Adjust all callers.
56772         Implement using diropen_fd, rather than open.
56773         (fts_open): Initialize new member, fts_cwd_fd.
56774         Remove fts_rft-setting code.
56775         (fts_close): Close fts_cwd_fd, if necessary.
56776         (__opendir2): Define in terms of opendir or opendirat,
56777         depending on whether the FST_NOCHDIR flag is set.
56778         (fts_build): Since fts_safe_changedir consumes its FD, and since
56779         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
56780         and close the dup'd file descriptor upon failure.
56781         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
56782         (fts_safe_changedir): Tweak semantics to reflect that this function
56783         now calls cwd_advance_fd and hence consumes its FD argument.
56784         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
56785         [struct FTS] (fts_rft): Remove now-unused member.
56786         [struct FTS] (fts_cycle.state): Improve comment.
56787
56788         * lib/openat.c (openat_needs_fchdir): New function.
56789         * lib/openat.h (openat_needs_fchdir): Declare it.
56790
56791 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56792
56793         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
56794         Problem and fix reported by Pádraig Brady in
56795         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
56796
56797 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56798
56799         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
56800
56801 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56802
56803         * lib/memcoll.c (memcoll): Optimize for the common case where the
56804         arguments are bytewise equal.
56805
56806 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * doc/regexprops-generic.texi: Add a copyright notice.
56809
56810 2006-08-15  Bruno Haible  <bruno@clisp.org>
56811
56812         * modules/tmpdir (License): Change to LGPL.
56813
56814 2006-08-15  Bruno Haible  <bruno@clisp.org>
56815
56816         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
56817         module.
56818
56819 2006-08-14  Simon Josefsson  <jas@extundo.com>
56820
56821         * config/srclist.txt: Add gnupload.
56822
56823 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56824
56825         Change copyright notice from LGPL 2 to GPL 2, since that's the
56826         standard form used in the gnulib repository.
56827         * tests/test-lock.c: Likewise.
56828         * tests/test-stdint.c: Likewise.
56829         * tests/test-tls.c: Likewise.
56830
56831         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
56832         prelude-manager.  User shorter URLs for GNU projects, without '?'.
56833         Add copyright notice.
56834
56835         * check-module: Add copyright notice.  Output a copyright
56836         notice if "--version" is specified.
56837         * modules/COPYING: New file.
56838         * tests/test-getaddrinfo.c: Add copyright notice.
56839         * tests/test-verify.c: Likewise.
56840
56841 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56842
56843         Change copyright notice from LGPL 2 to GPL 2, since that's the
56844         standard form used in the gnulib repository.
56845         * lib/lock.c: LGPL -> GPL.
56846         * lib/lock.h: Likewise.
56847         * lib/strnlen1.c: Likewise.
56848         * lib/strnlen1.h: Likewise.
56849         * lib/tls.c: Likewise.
56850         * lib/tls.h: Likewise.
56851         * lib/tmpdir.c: Likewise.
56852
56853         * lib/TODO: Remove; this belongs only in coreutils.
56854
56855 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56856
56857         Add copyright notices to long-enough files that lack them, since
56858         otherwise the files aren't clearly free.  Use the same notice that
56859         getdate.texi already uses.
56860         * doc/alloca-opt.texi: Add copyright notice.
56861         * doc/alloca.texi: Likewise.
56862         * doc/ctime.texi: Likewise.
56863         * doc/functions.texi: Likewise.
56864         * doc/gcd.texi: Likewise.
56865         * doc/gnulib-tool.texi: Likewise.
56866         * doc/inet_ntoa.texi: Likewise.
56867         * doc/visibility.texi: Likewise.
56868
56869         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
56870         * doc/quote.texi: Add copyright notice.
56871
56872         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
56873         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
56874         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
56875         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
56876         is now obsolete, and give a pointer to the Sun list.
56877         Add copyright notice.
56878
56879 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56880
56881         * config/srclistvars.sh: Add copyright notice.
56882
56883 2006-08-14  Eric Blake  <ebb9@byu.net>
56884
56885         Import the following change from libc:
56886
56887         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
56888
56889         Upstream bug 2997.
56890         * lib/misc/error.c: Add space between program name and message if file
56891         name is missing.
56892
56893 2006-08-12  Karl Berry  <karl@gnu.org>
56894
56895         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
56896         remove, these originate in gnulib now.
56897
56898 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56899
56900         * doc/Makefile (standards.info standards.html standards.dvi):
56901         Also depend on make-stds.texi.
56902
56903 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
56906         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
56907
56908         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
56909         in wchar_t.  Problem reported by Eric Blake.
56910
56911         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
56912         LEN is smaller than SIZE.  Suggested by Bruno Haible.
56913         Also, help the compiler to keep LEN in a register.
56914
56915 2006-08-11  Eric Blake  <ebb9@byu.net>
56916
56917         * users.txt: Sort.  Add tar.
56918
56919 2006-08-11  Bruno Haible  <bruno@clisp.org>
56920
56921         * users.txt: New file.
56922
56923 2006-08-11  Bruno Haible  <bruno@clisp.org>
56924
56925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
56926         before <wchar.h>. Needed for OSF/1 and BSD/OS.
56927
56928 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         * modules/snprintf (Depends-on): Remove minmax.
56931         (Maintainer): Add self and Bruno.
56932
56933 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56934
56935         * lib/.cppi-disable: Add snprintf.h, socket_.h.
56936         * lib/snprintf.c: Include <errno.h> and <limits.h>.
56937         (EOVERFLOW): Define if the system does not.
56938         Do not include "minmax.h"; it wasn't used.
56939         (snprintf): Don't assume size_t promotes to an unsigned type.
56940         Fix bug when generated string was too long for the buffer: the
56941         buffer's contents are supposed to be the initial prefix of the
56942         output.  Don't assume vasnprintf returns EOVERFLOW if the size
56943         exceeds INT_MAX; do the check ourselves.
56944
56945         Import the following changes from libc:
56946
56947         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
56948
56949         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
56950         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
56951         set wc to the byte which couldn't be converted.
56952         (re_string_reconstruct): Don't clear valid_raw_len before calling
56953         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
56954         tip_context using re_string_context_at.
56955
56956         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
56957
56958         * lib/posix/regex.h: g++ still cannot handled [restrict].
56959
56960         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
56961
56962         * lib/posix/regex.h: Remove special handling for VMS.
56963
56964 2006-08-10  Jim Meyering  <jim@meyering.net>
56965
56966         * modules/same-inode: New module.
56967         * modules/dev-ino: New module.
56968         * modules/cycle-check: Depend on these modules, rather than simply
56969         including their .h files.
56970         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
56971         required via m4/cycle-check.m4.
56972         * modules/same: Depend on new same-inode module, rather than
56973         including same-inode.h.
56974         * modules/chdir-safer: New file.
56975
56976         * modules/chown (Depends-on): Add stat-macros.
56977
56978 2006-08-10  Jim Meyering  <jim@meyering.net>
56979
56980         * m4/cycle-check.m4: New file.
56981         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
56982         * m4/dev-ino.m4, m4/same-inode.m4: New files.
56983
56984 2006-08-10  Eric Blake  <ebb9@byu.net>
56985
56986         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
56987         in from original proposal.
56988
56989 2006-08-10  Eric Blake  <ebb9@byu.net>
56990         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56991
56992         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
56993         namespace.
56994
56995 2006-08-10  Bruno Haible  <bruno@clisp.org>
56996
56997         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
56998         as well.
56999
57000 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57001
57002         Sync from coreutils.
57003
57004         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
57005
57006         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
57007         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
57008
57009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57010
57011         * modules/restrict: Remove; no longer needed now that we assume
57012         Autoconf 2.59 or later.
57013         * MODULES.html.sh: Remove 'restrict'.
57014         * modules/argp (Depends-on): Remove 'restrict'.
57015         * modules/base64 (Depends-on): Likewise.
57016         * modules/gc (Depends-on): Likewise.
57017         * modules/getaddrinfo (Depends-on): Likewise.
57018         * modules/glob (Depends-on): Likewise.
57019         * modules/inet_ntop (Depends-on): Likewise.
57020         * modules/inet_pton (Depends-on): Likewise.
57021         * modules/memxor (Depends-on): Likewise.
57022         * modules/regex (Depends-on): Likewise.
57023         * modules/strtok_r (Depends-on): Likewise.
57024         * modules/time_r (Depends-on): Likewise.
57025
57026 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
57029         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
57030         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57031         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
57032         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57033         * m4/memxor.m4 (gl_MEMXOR): Likewise.
57034         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
57035         gl_C_RESTRICT replaced by AC_C_RESTRICT.
57036
57037         Merge from coreutils.
57038         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
57039         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
57040         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57041         * m4/time_r.m4 (gl_TIME_R): Likewise.
57042
57043 2006-08-09  Karl Berry  <karl@gnu.org>
57044
57045         * config/srclist.txt: no more gettext-tools, per Bruno.
57046
57047 2006-08-08  Eric Blake  <ebb9@byu.net>
57048
57049         * modules/verror: New module.
57050         * MODULES.html.sh: Document it.
57051
57052 2006-08-08  Eric Blake  <ebb9@byu.net>
57053
57054         * lib/verror.h, lib/verror.c: New files.
57055
57056 2006-08-08  Eric Blake  <ebb9@byu.net>
57057
57058         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
57059         verror_at_line output complies with GNU Coding Standards even when
57060         file is NULL.
57061
57062 2006-08-07  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
57065         versions of AIX.
57066         Reported by Ralf Wildenhues.
57067
57068 2006-08-07  Bruno Haible  <bruno@clisp.org>
57069
57070         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
57071         in an AC_DEFUN. Needed so that the autoconf snippets can use
57072         AC_REQUIRE.
57073
57074 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57075
57076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57077         Initialize pkgdata_DATA.
57078         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
57079         overriding it.
57080
57081 2006-08-06  Eric Blake  <ebb9@byu.net>
57082
57083         * lib/error.h: Fold in some upstream changes from glibc.
57084         * lib/error.c: Likewise.
57085
57086 2006-08-04  Bruno Haible  <bruno@clisp.org>
57087
57088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57089         Make the mostlyclean-local rule depend on mostlyclean-generic.
57090         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
57091
57092 2006-07-31  Bruno Haible  <bruno@clisp.org>
57093
57094         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
57095         <stdlib.h>, <string.h>.
57096
57097 2006-07-30  Bruno Haible  <bruno@clisp.org>
57098
57099         * modules/readlink (License): Change to LGPL.
57100
57101 2006-07-30  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/javaversion (Makefile.am): Distribute javaversion.java and
57104         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
57105         set PKGDATADIR to point to it.
57106
57107 2006-07-30  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/csharpexec (configure.ac): Comment out macro invocation.
57110         * modules/javaexec (configure.ac): Likewise.
57111         * modules/javacomp-script (configure.ac): Likewise.
57112
57113         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
57114
57115 2006-07-30  Bruno Haible  <bruno@clisp.org>
57116
57117         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
57118         linked-list.
57119
57120 2006-07-30  Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57123
57124 2006-07-30  Bruno Haible  <bruno@clisp.org>
57125
57126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57127         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57128         get removed.
57129
57130 2006-07-29  Bruno Haible  <bruno@clisp.org>
57131
57132         Make it possible for gnulib-tool to work with locally modified or
57133         augmented gnulib repositories.
57134         * gnulib-tool (func_usage): Document --local-dir option.
57135         (local_gnulib_dir): New variable.
57136         Handle --local-dir option.
57137         (func_lookup_file): New function.
57138         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
57139         (func_get_description, func_get_filelist, func_get_description,
57140         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
57141         func_get_automake_snippet, func_get_include_directive,
57142         func_get_license, func_get_maintainer): Use func_lookup_file.
57143         (func_import, func_create_testdir): Use func_lookup_file.
57144
57145 2006-07-29  Bruno Haible  <bruno@clisp.org>
57146
57147         * modules/setenv (Depends-on): Add unistd.
57148
57149 2006-07-29  Bruno Haible  <bruno@clisp.org>
57150
57151         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
57152
57153 2006-07-29  Bruno Haible  <bruno@clisp.org>
57154
57155         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
57156
57157 2006-07-29  Bruno Haible  <bruno@clisp.org>
57158
57159         * gnulib-tool (import, update): If there is no Makefile.am, look at
57160         aclocal.m4, instead of bailing out.
57161
57162 2006-07-29  Bruno Haible  <bruno@clisp.org>
57163
57164         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
57165         Categorize the options by when they are useful.
57166
57167 2006-07-29  Bruno Haible  <bruno@clisp.org>
57168
57169         * gnulib-tool (func_usage): Document option --no-libtool.
57170         Handle option --no-libtool.
57171         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
57172         for changed semantics of $libtool variable.
57173         (func_import): Likewise. If libtool is not used, show this through
57174         an option --no-libtool.
57175         (func_create_testdir): Update.
57176
57177 2006-07-29  Bruno Haible  <bruno@clisp.org>
57178
57179         * gnulib-tool (func_import): Extend error message about missing
57180         --doc-base.
57181
57182 2006-07-29  Bruno Haible  <bruno@clisp.org>
57183
57184         * gnulib-tool (func_import): Don't create the $docbase directory if
57185         there is no file to store there.
57186
57187 2006-07-29  Bruno Haible  <bruno@clisp.org>
57188
57189         * gnulib-tool (autoconf_minversion): If a --dir option is given and
57190         relevant, look for configure.ac there, not in the current directory.
57191         Also use a simple search for AC_PREREQ, not "autoconf --trace".
57192
57193 2006-07-29  Bruno Haible  <bruno@clisp.org>
57194
57195         * gnulib-tool (SORT): New variable.
57196         (func_usage): Undocument --assume-autoconf option.
57197         Remove --assume-autoconf option handling.
57198         (autoconf_minversion): Determine from the contents of configure.ac.
57199         (func_import): Remove autoconf_minversion handling.
57200         Suggested by Eric Blake.
57201
57202 2006-07-29  Bruno Haible  <bruno@clisp.org>
57203
57204         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
57205
57206 2006-07-29  Bruno Haible  <bruno@clisp.org>
57207
57208         * config/srclist.txt (*setenv.[ch]): Remove rules.
57209
57210 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57211
57212         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
57213
57214 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57215
57216         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
57217         arpa/inet.h.
57218
57219 2006-07-28  Simon Josefsson  <jas@extundo.com>
57220
57221         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
57222         * modules/inet_pton (Depends-on): Likewise.
57223
57224 2006-07-28  Simon Josefsson  <jas@extundo.com>
57225
57226         * m4/netinet_in_h.m4: New file.
57227
57228 2006-07-28  Simon Josefsson  <jas@extundo.com>
57229
57230         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
57231         #include's.
57232
57233 2006-07-28  Simon Josefsson  <jas@extundo.com>
57234
57235         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
57236         #include's.
57237
57238 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
57241         setgid on directories only if they set these bits.
57242         * lib/modechange.h: Remove obsolete comment about masks.
57243
57244 2006-07-28  Eric Blake  <ebb9@byu.net>
57245
57246         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
57247         macro expansion.
57248
57249 2006-07-28  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
57252
57253 2006-07-28  Bruno Haible  <bruno@clisp.org>
57254
57255         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
57256
57257 2006-07-28  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57260         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57261         Define fallbacks.
57262         Avoids link error on FreeBSD 4.x.
57263         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57264
57265         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
57266         encoding.
57267         * lib/mbswidth.c (iswcntrl): Likewise.
57268
57269 2006-07-27  Bruno Haible  <bruno@clisp.org>
57270
57271         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
57272         test.
57273
57274 2006-07-27  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
57277         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
57278         defined.
57279
57280 2006-07-26  Eric Blake  <ebb9@byu.net>
57281
57282         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
57283
57284 2006-07-26  Eric Blake  <ebb9@byu.net>
57285
57286         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
57287         like mingw that lack mkstemp.
57288         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
57289         avoid compilation warning on mingw.
57290
57291 2006-07-26  Bruno Haible  <bruno@clisp.org>
57292
57293         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
57294         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
57295         INT_FAST*_MIN, INTPTR_MIN.
57296
57297 2006-07-25  Bruno Haible  <bruno@clisp.org>
57298
57299         * modules/version-etc (Depends-on): Add stdarg.
57300
57301 2006-07-25  Bruno Haible  <bruno@clisp.org>
57302
57303         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
57304         complex commands.
57305
57306 2006-07-25  Bruno Haible  <bruno@clisp.org>
57307
57308         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
57309         defined in <stdarg.h> or config.h.
57310
57311 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
57314         (gl_STDIO_SAFER): Remove.
57315
57316 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * MODULES.html.sh (File stream based Input/Output):
57319         Add fopen-safer, tmpfile-safer; remove stdio-safer.
57320         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
57321         * modules/fopen-safer, modules/tmpfile-safer: New files.
57322         * modules/stdio-safer: Remove.
57323
57324 2006-07-24  Bruno Haible  <bruno@clisp.org>
57325
57326         * modules/tmpdir: New file.
57327         * MODULES.html.sh (File system functions): Add it.
57328
57329 2006-07-24  Bruno Haible  <bruno@clisp.org>
57330
57331         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
57332         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57333
57334 2006-07-24  Bruno Haible  <bruno@clisp.org>
57335
57336         * modules/clean-temp: New file.
57337
57338 2006-07-24  Bruno Haible  <bruno@clisp.org>
57339
57340         * m4/tmpdir.m4: New file, from GNU gettext.
57341
57342 2006-07-24  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/tmpdir.h: New file, from GNU gettext.
57345         * lib/tmpdir.c: New file, from GNU gettext.
57346
57347 2006-07-24  Bruno Haible  <bruno@clisp.org>
57348
57349         * lib/clean-temp.h: New file, from GNU gettext.
57350         * lib/clean-temp.c: New file, from GNU gettext.
57351
57352 2006-07-23  Eric Blake  <ebb9@byu.net>
57353
57354         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57355         (Depends-on): Add binary-io.
57356
57357 2006-07-23  Eric Blake  <ebb9@byu.net>
57358
57359         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
57360
57361 2006-07-23  Eric Blake  <ebb9@byu.net>
57362
57363         * lib/tmpfile-safer.c: New file.
57364         * lib/stdio-safer.h (fopen_safer): Add prototype.
57365         * lib/stdio--.h (tmpfile): Make safer.
57366
57367 2006-07-23  Bruno Haible  <bruno@clisp.org>
57368
57369         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
57370         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
57371         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
57372         gl_linked_remove_at): Use it.
57373
57374 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57375         and Simon Josefsson <jas@extundo.com>
57376
57377         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
57378
57379         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
57380
57381 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57382
57383         * modules/close-stream: New file.
57384         * modules/closeout (Description): Make it clear that it exits
57385         with a diagnostic on error.
57386         (Depends-on): Add close-stream.  Remove fpending, stdbool.
57387         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
57388
57389 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57390
57391         * m4/close-stream.m4: New file.
57392
57393 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         * lib/close-stream.c, lib/close-stream.h: New files.
57396
57397 2006-07-22  Bruno Haible  <bruno@clisp.org>
57398
57399         Merge from GNU gettext 0.15.
57400
57401         2006-05-01  Bruno Haible  <bruno@clisp.org>
57402
57403                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
57404
57405         2006-07-22  Bruno Haible  <bruno@clisp.org>
57406
57407                 * modules/javaversion: New file.
57408                 * MODULES.html.sh (Java): Add javaversion.
57409
57410         2006-03-12  Bruno Haible  <bruno@clisp.org>
57411
57412                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
57413
57414         2005-12-04  Bruno Haible  <bruno@clisp.org>
57415
57416                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
57417                 (untested).
57418
57419         2006-06-21  Bruno Haible  <bruno@clisp.org>
57420
57421                 Avoid warnings from recent versions of mcs.
57422                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
57423                 -o, -L, -r any more. Use options documented since mcs-1.0
57424                 instead. Similarly for -g.
57425
57426         2005-12-04  Bruno Haible  <bruno@clisp.org>
57427
57428                 * build-aux/csharpcomp.sh.in: Suffix for resources is
57429                 .resources, not .resource.
57430
57431         2005-07-09  Bruno Haible  <bruno@clisp.org>
57432
57433                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
57434                 add a .dll suffix.
57435                 Reported by Mark Junker <mjscod@gmx.de>.
57436
57437         2006-07-22  Bruno Haible  <bruno@clisp.org>
57438
57439                 * modules/gettext: Upgrade to gettext-0.15.
57440                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
57441                 m4/visibility.m4.
57442                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
57443
57444 2006-07-22  Bruno Haible  <bruno@clisp.org>
57445
57446         Merge from GNU gettext 0.15.
57447
57448         2006-03-25  Bruno Haible  <bruno@clisp.org>
57449
57450                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
57451
57452         2006-07-21  Bruno Haible  <bruno@clisp.org>
57453
57454                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
57455                 "1.1".
57456
57457         2006-05-09  Bruno Haible  <bruno@clisp.org>
57458
57459                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
57460                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
57461                 for the conftestver execution.
57462
57463         2006-05-01  Bruno Haible  <bruno@clisp.org>
57464
57465                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
57466                 optional target-version argument. Verify that the compiler
57467                 groks source of the specified source-version, or add -source
57468                 option as necessary. Verify that the compiler produces
57469                 bytecode in the specified target-version, or add -target and
57470                 -source options as necessary. Make the result of the test
57471                 available as variable CONF_JAVAC. Also log error output in
57472                 config.log.
57473
57474         2006-03-11  Bruno Haible  <bruno@clisp.org>
57475
57476                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57477
57478         2006-05-09  Bruno Haible  <bruno@clisp.org>
57479
57480                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57481                 CLASSPATH_SEPARATOR to a semicolon.
57482
57483         2006-03-12  Bruno Haible  <bruno@clisp.org>
57484
57485                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57486                 available as variable CONF_JAVA, for subsequent autoconf
57487                 tests. Also log error output in config.log.
57488
57489         2006-07-19  Bruno Haible  <bruno@clisp.org>
57490
57491                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57492                 that getline works on glibc2 systems. Needed to avoid trouble
57493                 in relocatable.c.
57494                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57495
57496         2005-12-04  Bruno Haible  <bruno@clisp.org>
57497
57498                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57499                 launcher (untested).
57500
57501         2005-12-04  Bruno Haible  <bruno@clisp.org>
57502
57503                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57504
57505         2006-07-22  Bruno Haible  <bruno@clisp.org>
57506
57507                 * gettext.m4: Update from GNU gettext-0.15.
57508                 * nls.m4: Likewise.
57509                 * po.m4: Likewise.
57510                 * inttypes-pri.m4: Likewise.
57511                 * inttypes-h.m4: Renamed from inttypes.m4.
57512                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
57513
57514 2006-07-22  Bruno Haible  <bruno@clisp.org>
57515
57516         Merge from GNU gettext 0.15.
57517
57518         2005-07-05  Bruno Haible  <bruno@clisp.org>
57519
57520                 * printf-args.c (printf_fetchargs): Work around broken
57521                 definition of wint_t on mingw.
57522
57523         2005-02-12  Bruno Haible  <bruno@clisp.org>
57524
57525                 * xallocsa.h: Add extern "C" for C++.
57526
57527         2006-05-17  Bruno Haible  <bruno@clisp.org>
57528
57529                 Cygwin portability.
57530                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
57531
57532         2006-04-30  Bruno Haible  <bruno@clisp.org>
57533
57534                 * progreloc.c: Include <mach-o/dyld.h> if available.
57535                 (find_executable): Use _NSGetExecutablePath when possible.
57536
57537         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57538
57539                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
57540                 function.
57541
57542         2005-12-29  Bruno Haible  <bruno@clisp.org>
57543
57544                 * progreloc.c (set_program_name_and_installdir): Fix
57545                 compilation error.
57546
57547         2005-12-04  Bruno Haible  <bruno@clisp.org>
57548
57549                 Cygwin portability.
57550                 * progreloc.c: Include <windows.h> also on Cygwin.
57551                 (find_executable): Add support for Cygwin.
57552                 (set_program_name_and_installdir): Handle also platforms with
57553                 nonempty EXEEXT.
57554
57555         2006-07-11  Bruno Haible  <bruno@clisp.org>
57556
57557                 * javacomp.c: Fix a comment.
57558                 Reported by Jim Meyering.
57559
57560         2006-04-30  Bruno Haible  <bruno@clisp.org>
57561
57562                 * javacomp.h (compile_java_class): Add source_version,
57563                 target_version arguments.
57564                 * javacomp.c: Rewritten to choose only a compiler that
57565                 respects the specified source_version and target_version.
57566
57567         2006-06-27  Bruno Haible  <bruno@clisp.org>
57568
57569                 Assume correct S_ISDIR macro.
57570                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
57571
57572         2006-07-22  Bruno Haible  <bruno@clisp.org>
57573
57574                 * javaversion.h: New file, from GNU gettext.
57575                 * javaversion.c: New file, from GNU gettext.
57576                 * javaversion.java: New file, from GNU gettext.
57577                 * javaversion.class: New file, from GNU gettext.
57578
57579         2006-05-17  Bruno Haible  <bruno@clisp.org>
57580
57581                 Cygwin portability.
57582                 * javaexec.c (execute_java_class): Test for jview program
57583                 also on Cygwin.
57584
57585         2006-04-09  Bruno Haible  <bruno@clisp.org>
57586
57587                 * fatal-signal.c: Don't include string.h.
57588                 (at_fatal_signal): Use a copying loop instead of memcpy.
57589
57590         2005-12-04  Bruno Haible  <bruno@clisp.org>
57591
57592                 * csharpexec.c: Add support for 'clix' launcher (untested).
57593                 (execute_csharp_using_sscli): New function.
57594                 (execute_csharp_program): Call it.
57595
57596         2006-06-21  Bruno Haible  <bruno@clisp.org>
57597
57598                 Avoid warnings from recent versions of mcs.
57599                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
57600                 -o, -L, -r any more. Use options documented since mcs-1.0
57601                 instead. Similarly for -g.
57602
57603         2005-07-09  Bruno Haible  <bruno@clisp.org>
57604
57605                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
57606                 add a .dll suffix.
57607                 Reported by Mark Junker <mjscod@gmx.de>.
57608
57609         2006-06-17  Bruno Haible  <bruno@clisp.org>
57610
57611                 * config.charset: Update for NetBSD 3.0.
57612
57613         2006-05-17  Bruno Haible  <bruno@clisp.org>
57614
57615                 Cygwin portability.
57616                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
57617
57618         2006-05-16  Bruno Haible  <bruno@clisp.org>
57619
57620                 * localcharset.c [CYGWIN]: Include <windows.h>.
57621                 (get_charset_aliases): For Cygwin, return the same CPxxx
57622                 aliases list as under WIN32.
57623                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
57624                 the environment variables. Fall back to GetACP().
57625
57626         2006-04-05  Bruno Haible  <bruno@clisp.org>
57627
57628                 * config.charset: Update Juan Manuel Guerrero's address.
57629
57630         2005-02-12  Bruno Haible  <bruno@clisp.org>
57631
57632                 * allocsa.h: Add extern "C" for C++.
57633
57634         2005-02-10  Bruno Haible  <bruno@clisp.org>
57635
57636                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
57637                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
57638
57639         2006-07-22  Bruno Haible  <bruno@clisp.org>
57640
57641                 * gettext.h: Update to GNU gettext-0.15.
57642
57643 2006-07-22  Bruno Haible  <bruno@clisp.org>
57644
57645         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
57646         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
57647         lib-prefix.m4, longdouble.m4, ssize_t.m4.
57648
57649 2006-07-21  Eric Blake  <ebb9@byu.net>
57650
57651         * modules/stdlib-safer: New file.
57652         * MODULES.html.sh (File stream based Input/Output): Add
57653         stdlib-safer.
57654
57655 2006-07-21  Eric Blake  <ebb9@byu.net>
57656
57657         * lib/stdlib-safer.h: New file from coreutils, required by
57658         stdlib--.h.
57659
57660 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
57663
57664 2006-07-20  Bruno Haible  <bruno@clisp.org>
57665
57666         * gnulib-tool: Recognize new option --assume-autoconf.
57667         (autoconf_minversion): New variable.
57668         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
57669
57670 2006-07-20  Bruno Haible  <bruno@clisp.org>
57671
57672         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
57673
57674 2006-07-19  Derek R. Price  <derek@ximbiot.com>
57675
57676         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
57677         Reindent and repaginate.
57678
57679 2006-07-19  Derek Price  <derek@ximbiot.com>
57680
57681         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
57682         Correct grammar.
57683
57684 2006-07-17  Bruno Haible  <bruno@clisp.org>
57685
57686         * modules/list: New file.
57687         * modules/array-list: New file.
57688         * modules/carray-list, modules/carray-list-tests: New files.
57689         * modules/linked-list, modules/linked-list-tests: New files.
57690         * modules/avltree-list, modules/avltree-list-tests: New files.
57691         * modules/rbtree-list, modules/rbtree-list-tests: New files.
57692         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
57693         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
57694         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
57695         * modules/oset: New file.
57696         * modules/array-oset: New file.
57697         * modules/avltree-oset, modules/avltree-oset-tests: New files.
57698         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
57699         * tests/test-carray_list.c: New file.
57700         * tests/test-linked_list.c: New file.
57701         * tests/test-avltree_list.c: New file.
57702         * tests/test-rbtree_list.c: New file.
57703         * tests/test-linkedhash_list.c: New file.
57704         * tests/test-avltreehash_list.c: New file.
57705         * tests/test-rbtreehash_list.c: New file.
57706         * tests/test-avltree_oset.c: New file.
57707         * tests/test-rbtree_oset.c: New file.
57708         * MODULES.html.sh (Container data structures): New section.
57709
57710 2006-07-17  Bruno Haible  <bruno@clisp.org>
57711
57712         * m4/gl_list.m4: New file.
57713
57714 2006-07-17  Bruno Haible  <bruno@clisp.org>
57715
57716         * lib/gl_list.h: New file.
57717         * lib/gl_list.c: New file.
57718         * lib/gl_array_list.h: New file.
57719         * lib/gl_array_list.c: New file.
57720         * lib/gl_carray_list.h: New file.
57721         * lib/gl_carray_list.c: New file.
57722         * lib/gl_linked_list.h: New file.
57723         * lib/gl_linked_list.c: New file.
57724         * lib/gl_anylinked_list1.h: New file.
57725         * lib/gl_anylinked_list2.h: New file.
57726         * lib/gl_avltree_list.h: New file.
57727         * lib/gl_avltree_list.c: New file.
57728         * lib/gl_anyavltree_list1.h: New file.
57729         * lib/gl_anyavltree_list2.h: New file.
57730         * lib/gl_rbtree_list.h: New file.
57731         * lib/gl_rbtree_list.c: New file.
57732         * lib/gl_anyrbtree_list1.h: New file.
57733         * lib/gl_anyrbtree_list2.h: New file.
57734         * lib/gl_anytree_list1.h: New file.
57735         * lib/gl_anytree_list2.h: New file.
57736         * lib/gl_linkedhash_list.h: New file.
57737         * lib/gl_linkedhash_list.c: New file.
57738         * lib/gl_anyhash_list1.h: New file.
57739         * lib/gl_anyhash_list2.h: New file.
57740         * lib/gl_avltreehash_list.h: New file.
57741         * lib/gl_avltreehash_list.c: New file.
57742         * lib/gl_rbtreehash_list.h: New file.
57743         * lib/gl_rbtreehash_list.c: New file.
57744         * lib/gl_anytreehash_list1.h: New file.
57745         * lib/gl_anytreehash_list2.h: New file.
57746
57747         * lib/gl_oset.h: New file.
57748         * lib/gl_oset.c: New file.
57749         * lib/gl_array_oset.h: New file.
57750         * lib/gl_array_oset.c: New file.
57751         * lib/gl_avltree_oset.h: New file.
57752         * lib/gl_avltree_oset.c: New file.
57753         * lib/gl_rbtree_oset.h: New file.
57754         * lib/gl_rbtree_oset.c: New file.
57755         * lib/gl_anytree_oset.h: New file.
57756
57757 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57758
57759         * m4/mkancesdirs.m4: New file.
57760         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
57761         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
57762         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
57763         it.
57764
57765 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57766
57767         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
57768         * lib/mkancesdirs.h: New files.
57769         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
57770         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
57771         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
57772         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
57773         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
57774         callers changed.  Revamp internals significantly, by not
57775         attempting to create directories that are temporarily more
57776         permissive than the final results.  Do not attempt to use
57777         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
57778         This removes some race conditions, fixes some bugs, and simplifies
57779         things.  Use new dirchownmod function to do owner and mode changes.
57780         * lib/mkdir-p.h: Likewise.
57781         * lib/modechange.c (octal_to_mode): New function.
57782         (struct mode_change): New member mentioned.
57783         (make_node_op_equals): New arg mentioned.  All callers changed.
57784         (mode_compile): Keep track of which mode bits the user has explicitly
57785         mentioned.
57786         (mode_adjust): New arg DIR, so that we implement the X op correctly.
57787         New arg PMODE_BITS, to keep track of which mode bits the user
57788         mentioned; it treats S_ISUID and S_ISGID speciall.
57789         All callers changed.
57790         * lib/modechange.h: Likewise.
57791
57792 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57793
57794         * MODULES.html.sh: Add mkancestors.
57795         * modules/mkancesdirs: New module.
57796         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
57797         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
57798         The chdir-safer and afs files are now orphans; I'll remove them
57799         unless someone speaks up.
57800         Add lib/dirchownmod.c, lib/dirchownmod.h.
57801         (Depends-on): Remove alloca, chown, save-cwd, dirname.
57802         Add lchown, mkancesdirs.
57803         (Maintainer): Add self.
57804
57805 2006-07-15  Karl Berry  <karl@gnu.org>
57806
57807         * gnulib-tool: help message wording/arrangement.
57808
57809 2006-07-14  Simon Josefsson  <jas@extundo.com>
57810
57811         * doc/gnulib.texi (Libtool and Windows): New section.
57812
57813 2006-07-12  Simon Josefsson  <jas@extundo.com>
57814
57815         * modules/gendocs (License): Fix license, approved by Karl.
57816
57817 2006-07-12  Eric Blake  <ebb9@byu.net>
57818
57819         * MODULES.html.sh: Add gendocs.
57820
57821 2006-07-11  Eric Blake  <ebb9@byu.net>
57822
57823         * modules/fdl: New module, to install doc/fdl.texi.
57824         * MODULES.html.sh: Add new section for documentation modules.
57825         * gnulib-tool: Avoid space-tab.
57826         (--doc-base): New option, to manage files from doc.
57827
57828 2006-07-11  Eric Blake  <ebb9@byu.net>
57829
57830         * m4/absolute-header.m4: Fix comments to match recent change.
57831
57832 2006-07-11  Eric Blake  <ebb9@byu.net>
57833
57834         * gnulib-tool: List --doc-base before --tests-base.
57835
57836 2006-07-11  Derek R. Price  <derek@ximbiot.com>
57837
57838         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
57839
57840 2006-07-11  Bruno Haible  <bruno@clisp.org>
57841
57842         * README: Mention where to put documentation.
57843
57844 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57845
57846         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
57847
57848 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57849
57850         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
57851         to stdint.m4.
57852
57853 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57854
57855         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
57856         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
57857         "no/such/file/stdint.h" when there is no such file, so that
57858         the resulting C code can be parsed by dodgy compilers.
57859         Problems reported by Bob Proulx.
57860
57861 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57862
57863         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
57864         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57865         macros into the GNU _D_EXACT_NAMLEN.
57866         * lib/savedir.c:  Likewise.
57867         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
57868
57869 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57870         and Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
57873         * m4/savedir.m4:
57874         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57875         macros into the GNU _D_EXACT_NAMLEN.
57876
57877 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57878
57879         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
57880         around the absolute name, to work around a problem with the HP-UX
57881         11.23 native C compiler, reported by Bob Proulx.
57882
57883 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57884
57885         * doc/maintain.texi, make-stds.texi: Sync from
57886         <http://savannah.gnu.org/projects/gnustandards>.
57887
57888 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57889
57890         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
57891
57892 2006-07-09  Jim Meyering  <jim@meyering.net>
57893
57894         * m4/glob.m4: Remove a doubled word in a comment.
57895
57896 2006-07-09  Jim Meyering  <jim@meyering.net>
57897
57898         * lib/argp-pv.c: Remove a doubled word in a comment.
57899         * lib/check-version.c (check_version): Likewise.
57900         * lib/javacomp.c (compile_java_class): Likewise.
57901
57902 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
57905         for the benefit of people using Autoconf 2.60.  If you want to
57906         support older Autoconf versions you can copy m4/onceonly_2_57.m4
57907         (or m4/onceonly.m4, if pre-2.57) manually.
57908
57909 2006-07-08  Jim Meyering  <jim@meyering.net>
57910
57911         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
57912         comment.
57913         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
57914         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
57915         comment.
57916
57917 2006-07-08  Jim Meyering  <jim@meyering.net>
57918
57919         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
57920
57921 2006-07-07  Simon Josefsson  <jas@extundo.com>
57922
57923         * tests/test-crc.c: Change expected crc value, the test vector
57924         were probably computed using the old broken crc.c?
57925
57926 2006-07-06  Simon Josefsson  <jas@extundo.com>
57927
57928         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
57929         now the canonical place for the M4 file).
57930
57931         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
57932         from the sys_socket dependency now.
57933
57934         * modules/inet_pton (Files): Ditto.
57935
57936         * modules/inet_ntop (Files): Ditto.
57937
57938 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57939
57940         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
57941         not gl_PREREQ_GETUSERSHELL.
57942
57943 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57944
57945         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
57946         with only one argument, for Autoconf 2.60.
57947         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
57948         expand to nothing, so add a shell command to avoid syntax error.
57949         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57950
57951 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57952
57953         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
57954
57955 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57956
57957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
57958         no longer needed.  Check for isblank decl.
57959         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
57960         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
57961         of existence.
57962
57963 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57964
57965         * lib/getloadavg.c: Use __VMS, not VMS.
57966         * lib/getopt.c: Likewise.
57967         * lib/getpagesize.h: Likewise.
57968         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
57969         and probably does not work.
57970
57971 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57972
57973         * lib/.cppi-disable: Add wcwidth.
57974         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
57975         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
57976         (ISGRAPH): Remove.  All uses changed to isgraph.
57977         (FOLD) [!defined _LIBC]: Remove special case.
57978         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
57979         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
57980         HAVE_ISBLANK.
57981         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
57982         case.
57983
57984 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57985
57986         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
57987         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
57988         brackets.  Other minor changes to suppress some compiler
57989         warnings.
57990
57991 2006-07-06  Derek R. Price  <derek@ximbiot.com>
57992         and Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
57995         of invoking obsolescent AC_HEADER_DIRENT macro.
57996         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
57997         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
57998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
57999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58000         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
58001         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58002         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
58003         * m4/readdir.m4: Remove; no longer needed.
58004
58005 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58006         and Paul Eggert  <eggert@cs.ucla.edu>
58007
58008         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
58009         Don't worry about this obsolete case any more.
58010         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
58011         directories.
58012         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
58013         worry about this obsolete case any more.
58014         * lib/fts.c: Likewise.
58015         * lib/getcwd.c: Likewise.
58016         * lib/glob.h: Likewise.
58017         * lib/savedir.c: Likewise.
58018
58019 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58020
58021         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
58022         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
58023         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
58024         needed.
58025         All uses removed.
58026         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58027         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58028         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
58029         needed.
58030         * m4/getdate.m4 (gl_GETDATE): Likewise.
58031         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58032         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58033         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58034         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58035         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58036         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58037         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
58038         needed.
58039
58040 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         * lib/memcasecmp.c: Include <limits.h>.
58043         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
58044         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
58045         Don't assume isdigit succeeds only on '0' through '9'.
58046
58047 2006-07-05  Eric Blake  <ebb9@byu.net>
58048
58049         * modules/getaddrinfo (Depends-on): Add snprintf.
58050
58051 2006-07-05  Eric Blake  <ebb9@byu.net>
58052
58053         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
58054         to avoid 'header present but could not be compiled' on cygwin.
58055
58056 2006-07-05  Eric Blake  <ebb9@byu.net>
58057
58058         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
58059         missing from netdb.h.
58060         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
58061
58062 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58063
58064         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
58065         no longer needed.
58066         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
58067         * m4/getdate.m4 (gl_GETDATE): Likewise.
58068         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58069         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58070         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58071         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58072         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58073
58074 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58075
58076         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
58077         All uses of is_space replaced by isspace.
58078         * lib/exit.h: Don't talk about STDC_HEADERS.
58079         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
58080         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
58081         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
58082         replaced by isprint etc.
58083         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
58084         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58085         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
58086         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
58087         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
58088         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58089
58090 2006-07-05  Bruno Haible  <bruno@clisp.org>
58091
58092         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
58093         the function exists, before testing against AIX.
58094         Reported by Martin Lambers <marlam@marlam.de>.
58095
58096 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58097
58098         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
58099         From Mark D. Baushke.
58100
58101 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
58104         to the absolute name, not just one, to bypass Sun C 5.8's
58105         "warning: #include of /usr/include/... may be non-portable".
58106
58107 2006-07-04  Eric Blake  <ebb9@byu.net>
58108
58109         * modules/dirname-tests: New test module.
58110         * tests/test-dirname.c: New file, replacing dirname.c
58111         TEST_DIRNAME section that was recently deleted.
58112
58113 2006-07-04  Bruno Haible  <bruno@clisp.org>
58114
58115         Assume ANSI C header files and <ctype.h> functions.
58116         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
58117         (mbsnwidth): Use isprint, iscntrl instead.
58118
58119 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         Merge from coreutils.
58122         * MODULES.html.sh: Add xstrtold.
58123         * modules/xstrtold: New file.
58124         * modules/cycle-check (Files): Add lib/same-inode.h.
58125         * modules/dirname (Files): Add m4/double-slash-root.m4.
58126         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58127         * modules/mkdir-p (Files): Add lib/same-inode.h.
58128         * modules/same (Files): Add lib/same-inode.h.
58129
58130 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * m4/absolute-header.m4: Renamed from full-header-path.m4.
58133         This is to keep the terminology clean; POSIX talks about
58134         "absolute pathnames", not "full pathnames", but the GNU
58135         Coding Standards say to use "path" for something else;
58136         so use "absolute" to keep both sides happy.
58137         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
58138         Set gl_absolute_header, not gl_full_header_path.
58139         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
58140         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
58141         All uses changed.
58142
58143         Merge from coreutils.
58144
58145         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58146
58147         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
58148         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
58149         want to require the building of c-strtod.o.
58150         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
58151         needs -lm directly.
58152         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
58153
58154         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
58157         --as-needed option if available.  Problem reported by Albert Chin in
58158         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
58159         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
58160         cc merely issues a bunch of annoying warnings for --as-needed
58161         (this problem was reported by Bob Proulx).  Also, try linking with
58162         -lm to detect a bug in binutils 2.16 (this problem was reported
58163         by Ralf Wildenhues).
58164
58165         2006-06-18  Jim Meyering  <jim@meyering.net>
58166
58167         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
58168         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
58169         macro.
58170         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
58171         also check for glibc-2.4's abort-inducing bug.
58172
58173         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
58174         Low-probability clean-up should be to use rmdir to get rid of
58175         the just-created directory, not unlink.
58176
58177         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
58178         configure fail, and request a bug report to inform us about it.
58179         Add a comment that, barring reports to the contrary, in 2007 we'll
58180         assume ftruncate is universally available.
58181
58182         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58183
58184         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
58185
58186         2006-03-12  Jim Meyering  <jim@meyering.net>
58187
58188         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
58189         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
58190         * m4/same.m4 (gl_SAME): Likewise.
58191         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
58192
58193         2006-03-11  Eric Blake  <ebb9@byu.net>
58194
58195         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
58196         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
58197         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
58198         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
58199
58200 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58201
58202         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
58203         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
58204         reported by Mark D. Baushke, one in
58205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
58206
58207         Merge from coreutils.
58208
58209         * lib/.cppi-disable: Add stdint_.h.
58210         * lib/.cvsignore: Add stdint.h.
58211
58212         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
58215         both double and long double versions.
58216         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
58217         * lib/xstrtold.c: New file.
58218         * lib/xstrtod.h (xstrtold): New decl.
58219
58220         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58221
58222         * lib/filemode.c (setst): Remove.
58223         (strmode): Rewrite to avoid setst.  This makes the code shorter,
58224         (arguably) clearer, and the generated code is a bit smaller on my
58225         Debian GNU/Linux stable x86 host.
58226
58227         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * lib/filemode.c: Include "filemode.h" first, to test the interface.
58230         Assume that filemode.h includes sys/types.h and sys/stat.h.
58231         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
58232         (ftypelet): Reorder to put common cases first, for efficiency.
58233         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
58234         to do 'M'.
58235         (strmode): Renamed from mode_string, and now stores 12 bytes instead
58236         of 10, for compatibility with FreeBSD.  All callers changed.
58237         (filemodestring): Now stores 12 bytes instead of 10, and sets file
58238         types that can't be deduced solely from st_mode.  First arg is now a
58239         const pointer.
58240         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
58241         (strmode): Renamed from mode_string.
58242         (filemodestring): New decl.
58243         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
58244         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
58245         needed.
58246         (S_ISPORT, S_ISWHT): New macros, if not already defined.
58247
58248         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58249
58250         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
58251         fsusage.h now does that.  Include fsusage.h first, to test interface.
58252         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
58253         at most one method (the old code could have generated decls that
58254         didn't conform to C89, not that this was ever exercised).
58255         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
58256
58257         2006-03-19  Jim Meyering  <jim@meyering.net>
58258
58259         Work even in a chroot where d_ino values for entries in "/"
58260         don't match the stat.st_ino values for the same names.
58261         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
58262         number, iterate through all entries again, using lstat instead.
58263         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
58264         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
58265
58266         * lib/getcwd.c (__getcwd): Clarify a comment.
58267         Use memcpy in place of a call to strcpy.
58268
58269         2006-03-12  Jim Meyering  <jim@meyering.net>
58270
58271         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
58272         matches that of the current directory (which we're about to chdir ".."
58273         out of), then save the dev-ino of the parent, instead.
58274
58275         * lib/same-inode.h (SAME_INODE): New file/macro.
58276         * lib/chdir-safer.c (SAME_INODE): Remove definition.
58277         Include "same-inode.h", instead.
58278         * lib/same.c: Likewise.
58279         * lib/cycle-check.h: Include "same-inode.h".
58280         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
58281         * lib/cycle-check.c (SAME_INODE): Remove definition.
58282         * lib/root-dev-ino.h: Include "same-inode.h".
58283
58284         2006-03-11  Eric Blake  <ebb9@byu.net>
58285
58286         * lib/same.c (same_name): s/base_name/last_component/
58287         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
58288         * lib/filenamecat.c (file_name_concat): Likewise.
58289
58290         2006-03-11  Eric Blake  <ebb9@byu.net>,
58291                     Paul Eggert  <eggert@cs.ucla.edu>
58292
58293         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
58294         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
58295         drive prefix.
58296         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
58297         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
58298         (last_component): New method.
58299         * lib/dirname.c (dir_len): Determine when drive letters need a
58300         subsequent slash.  Preserve // when it is special.
58301         (dir_name): Don't append dot when drive letter is absolute.
58302         [TEST_DIRNAME]: Move into a full-blown gnulib test.
58303         * lib/basename.c (base_name): New semantics - malloc the result.
58304         Preserve // when it is special.  Preserve relative files that look
58305         like drive letters.
58306         (base_len): Preserve // when it is special.
58307         (last_component): New method, similar to old base_name semantics.
58308         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
58309         base_name.  Strip redundant slashes from ///.
58310
58311 2006-07-03  Jim Meyering  <jim@meyering.net>
58312
58313         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
58314         macro is used before the first cycle_check call.
58315
58316 2006-07-03  Eric Blake  <ebb9@byu.net>
58317
58318         * modules/dirname (Depends-on): Add xstrndup.
58319
58320 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
58323         test cases, so that config.log is a bit easier to follow.
58324
58325 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58326
58327         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
58328         both are 64 bits, since this seems to be the tradition, and this
58329         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
58330         we ever run into a host that prefers long long to long in this
58331         case, we'll need another configure-time test.  Problem reported by
58332         Jim Meyering.
58333
58334 2006-07-02  Eric Blake  <ebb9@byu.net>
58335
58336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58337
58338 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58339
58340         * modules/inttypes (Depends-on): No longer depends on stdint.
58341         * modules/stdint (Description): Say more about assumptions.
58342         Say that the fast types might differ.  Say macros are used.
58343         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58344         (Makefile.am): Revise list of substituted symbols to match
58345         new stdint.m4.
58346         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58347         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58348         * tests/test-stdint.c (verify_same_types)
58349         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58350         the code conforms to C99/C89.
58351         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58352         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58353
58354 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58355
58356         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58357         but fix a bug, by requiring at least 64 bits.
58358         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58359         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
58360         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
58361         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
58362
58363         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
58364         changes.  Make 2.59 a prerequisite.  Check and substitute for
58365         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
58366         inttypes.h.  Do not use special include files; just use the
58367         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
58368         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
58369         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
58370         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
58371         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
58372         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
58373         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
58374         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
58375         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
58376         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
58377         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
58378         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
58379         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
58380         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
58381         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
58382         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
58383         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
58384         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
58385         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
58386         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
58387         WINT_MAX.  Check for C99 conformance more strictly, by detecting
58388         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
58389         not check for things that C99 does not require, e.g., int8_t.  If
58390         a test isn't needed unless <stdint.h> isn't working, and is
58391         unlikely to be needed for any other reason, then don't do it
58392         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
58393         size_t, since we assume C89 freestanding at least.  Do not check
58394         for sig_atomic_t, wchar_t, or wint_t, since the code now does
58395         the right thing even if the types are not defined.  Instead use:
58396         (gl_STDINT_TYPE_PROPERTIES): New macro.
58397         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
58398         testing whether <sys/types.h> clashes, as Autoconf does this for
58399         us now.  All uses removed.
58400         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
58401         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
58402         (gl_CHECK_TYPE_SAME):
58403         Remove; no longer needed.
58404         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
58405         exists, since we'll return 0 anyway in that case.
58406         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
58407
58408 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58409
58410         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
58411         possible collision with system files.
58412         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
58413         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
58414         WCHAR_MIN and WCHAR_MAX in this case.
58415         (<stddef.h>): Do not include; no longer needed.
58416         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
58417         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
58418         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
58419         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
58420         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
58421         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
58422         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
58423         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
58424         !defined(__c99))]: Include in this case too, since it's harmless
58425         now.
58426         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
58427         dangerous to do so.
58428         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
58429         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
58430         (_STDINT_MIN, _STDINT_MAX): New macros.
58431         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
58432         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
58433         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
58434         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
58435         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
58436         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
58437         macros, not typedefs; this simplifies things quite a bit.
58438         Use long int for all types narrower than int64_t.
58439         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
58440         Define in terms of long long int or int64_t or long int,
58441         not int64_t or int32_t.  This saves some compile-time testing.
58442         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
58443         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
58444         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
58445         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
58446         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
58447         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
58448         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
58449         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
58450         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
58451         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
58452         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58453         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58454         undef any previous version and define our own version, for
58455         simplicity and consistency with the new macros for types.
58456         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58457         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58458         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
58459         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
58460         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
58461         @WINT_T_SUFFIX@ to keep things simple here.
58462         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
58463         Simplify by assuming typical 8/16/32/64 host, since we're
58464         already doing that elsewhere anyway.
58465         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
58466         and assume long long int is 64 bits if available.  This
58467         speeds up 'configure'.
58468
58469 2006-07-01  Eric Blake  <ebb9@byu.net>
58470
58471         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58472         Reported by Andreas Buening.
58473
58474 2006-07-01  Eric Blake  <ebb9@byu.net>
58475
58476         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58477
58478 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58479
58480         * lib/getaddrinfo.c: fixed typo
58481
58482 2006-06-29  Jim Meyering  <jim@meyering.net>
58483
58484         * modules/strftime (Maintainer): Add my name, since with the
58485         FPRINTFTIME changes strftime.c has forked from glibc.
58486
58487 2006-06-29  Eric Blake  <ebb9@byu.net>
58488
58489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58490
58491 2006-06-29  Eric Blake  <ebb9@byu.net>
58492
58493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58494
58495 2006-06-29  Eric Blake  <ebb9@byu.net>
58496
58497         * lib/stat_.h: New file.
58498
58499 2006-06-29  Eric Blake  <ebb9@byu.net>
58500
58501         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58502         unused static function.
58503
58504 2006-06-29  Eric Blake  <ebb9@byu.net>
58505
58506         * doc/functions.texi (Function Portability): Document missing lstat
58507         on mingw.
58508
58509 2006-06-29  Eric Blake  <ebb9@byu.net>
58510
58511         * MODULES.html.sh: Add sys_stat.
58512         * modules/sys_stat: New module.
58513         * modules/mkstemp (Depends-on): Add sys_stat.
58514
58515 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58516
58517         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
58518
58519 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58520
58521         * m4/c-bs-a.m4: Removed.
58522
58523 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58524
58525         * lib/strftime.c: Assume strftime() exists.
58526
58527 2006-06-29  Derek Price  <derek@ximbiot.com>
58528
58529         * modules/c-bs-a: Removed - \a is C89.
58530         * MODULES.html.sh: Remove c-bs-a.
58531
58532 2006-06-29  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/wcwidth (License): Change to LGPL.
58535
58536 2006-06-28  Simon Josefsson  <jas@extundo.com>
58537
58538         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
58539         on _WIN32.
58540
58541         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
58542         getnameinfo.
58543
58544 2006-06-28  Simon Josefsson  <jas@extundo.com>
58545
58546         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
58547
58548 2006-06-28  Simon Josefsson  <jas@extundo.com>
58549
58550         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
58551         functions there.  It will succeed on Windows XP, but on Windows
58552         2000 and (presumably) earlier, it will fail, and use the internal
58553         re-implementation.
58554         (use_win32_p): New function.
58555         (getaddrinfo): Use strtoul on servname, to support numeric ports.
58556         Support AI_NUMERICSERV to disable getservbyname.
58557         (getnameinfo): New function, only supports
58558         NI_NUMERICHOST|NI_NUMERICSERV for now.
58559
58560         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
58561         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
58562         getnameinfo.
58563
58564 2006-06-28  Eric Blake  <ebb9@byu.net>
58565
58566         * modules/wcwidth: New file.
58567         * modules/mbchar (Depends-on): Add wcwidth.
58568         * modules/mbswidth (Depends-on): Add wcwidth.
58569         * MODULES.html.sh: Add wcwidth.
58570
58571 2006-06-28  Eric Blake  <ebb9@byu.net>
58572
58573         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
58574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
58575
58576 2006-06-28  Eric Blake  <ebb9@byu.net>
58577
58578         * lib/xvasprintf.h: Fix comments.
58579
58580 2006-06-28  Eric Blake  <ebb9@byu.net>
58581
58582         * lib/mbchar.h (wcwidth): Include wcwidth.h.
58583         * lib/mbswidth.c (wcwidth): Move from here...
58584         * lib/wcwidth.h: ...to this new file.
58585
58586 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58587
58588         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
58589
58590         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
58591         it's obsolete.
58592         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
58593
58594 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58595
58596         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
58597         Autoconf 2.60 says this stuff was obsolete.
58598
58599 2006-06-28  Bruno Haible  <bruno@clisp.org>
58600
58601         * modules/wcwidth (Files): Add m4/wchar_t.m4.
58602
58603 2006-06-28  Bruno Haible  <bruno@clisp.org>
58604
58605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
58606         gt_TYPE_WCHAR_T.
58607
58608 2006-06-28  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
58611         declaration for wcwidth.
58612         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
58613
58614 2006-06-28  Bruno Haible  <bruno@clisp.org>
58615
58616         * lib/mkdtemp.c [MINGW]: Include <io.h>.
58617         (mkdir): Define using _mkdir.
58618
58619 2006-06-28  Bruno Haible  <bruno@clisp.org>
58620
58621         * lib/getaddrinfo.h: Fix POSIX URL.
58622         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
58623         _WIN32.
58624         (use_win32_p): Make static.
58625         (getaddrinfo): Reject service name if it is empty or does not consist
58626         solely of decimal digits, or if its value is > 65535.
58627         (getnameinfo): Remove useless casts.
58628
58629 2006-06-27  Simon Josefsson  <jas@extundo.com>
58630
58631         * modules/sys_select: New file, suggested by Bruno Haible, Paul
58632         Eggert and Martin Lambers.
58633
58634 2006-06-27  Simon Josefsson  <jas@extundo.com>
58635
58636         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
58637         Eggert and Martin Lambers.
58638
58639 2006-06-27  Bruno Haible  <bruno@clisp.org>
58640
58641         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
58642         result to 0, not to empty.
58643         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
58644
58645 2006-06-27  Bruno Haible  <bruno@clisp.org>
58646
58647         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
58648
58649 2006-06-26  Simon Josefsson  <jas@extundo.com>
58650
58651         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
58652         present.
58653
58654 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
58657         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
58658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
58659
58660 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
58661
58662         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
58663
58664 2006-06-26  Bruno Haible  <bruno@clisp.org>
58665
58666         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
58667
58668 2006-06-26  Bruno Haible  <bruno@clisp.org>
58669
58670         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
58671
58672 2006-06-26  Bruno Haible  <bruno@clisp.org>
58673
58674         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
58675         SGI C compiler in pre-C99 mode.
58676         Suggested by Mark D. Baushke and Larry Jones.
58677
58678 2006-06-26  Bruno Haible  <bruno@clisp.org>
58679
58680         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
58681         WCHAR_MAX.
58682         Reported by Mark D. Baushke and Larry Jones.
58683
58684 2006-06-26  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
58687         in pre-C99 mode.
58688         Suggested by Mark D. Baushke and Larry Jones.
58689
58690 2006-06-23  Simon Josefsson  <jas@extundo.com>
58691             Bruno Haible  <bruno@clisp.org>
58692
58693         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
58694         Emit mostlyclean-local rule.
58695         (func_emit_tests_Makefile_am): Likewise.
58696         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
58697
58698 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
58699
58700         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
58701
58702 2006-06-23  Bruno Haible  <bruno@clisp.org>
58703
58704         * tests/test-stdint.c: Update to match ISO C 99 Technical
58705         Corrigendum 1.
58706
58707 2006-06-23  Bruno Haible  <bruno@clisp.org>
58708
58709         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
58710
58711 2006-06-23  Bruno Haible  <bruno@clisp.org>
58712
58713         * lib/stdint_.h: Treat IRIX like OpenBSD.
58714
58715 2006-06-23  Bruno Haible  <bruno@clisp.org>
58716
58717         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
58718         ISO C 99 Technical Corrigendum 1.
58719
58720 2006-06-22  Simon Josefsson  <jas@extundo.com>
58721
58722         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
58723         MinGW.
58724
58725 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
58728         needed.  Some compiler complained about some of them.  Problem reported
58729         by Larry Jones in
58730         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
58731
58732 2006-06-21  Simon Josefsson  <jas@extundo.com>
58733
58734         * tests/test-getaddrinfo.c: New file.
58735
58736         * modules/getaddrinfo-tests: New file.
58737
58738         * MODULES.html.sh: Add inet_pton.
58739
58740         * modules/inet_pton: New file.
58741
58742 2006-06-21  Simon Josefsson  <jas@extundo.com>
58743
58744         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
58745         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
58746         of using the (limited) gnulib implementation on Windows XP.
58747
58748         * m4/inet_pton.m4: New file.
58749
58750 2006-06-21  Simon Josefsson  <jas@extundo.com>
58751
58752         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
58753         variable.
58754
58755         * lib/socket_.h: Don't define WINVER.
58756
58757         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
58758         slightly modified to work in gnulib.
58759
58760 2006-06-21  Simon Josefsson  <jas@extundo.com>
58761
58762         * doc/gnulib.texi (Windows sockets): Add.
58763
58764 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         * lib/read-file.c (fread_file): Start with buffer allocation of
58767         0 bytes rather than 1 byte; this simplifies the code.
58768         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
58769         code to free buffer and save/restore errno.
58770         (internal_read_file): Remove unused local.
58771
58772 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58773
58774         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
58775         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
58776         Problem reported by Denis Excoffier in
58777         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
58778
58779 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58780
58781         * modules/sys_socket, modules/socklen: Include sys/types since
58782         FreeBSD 4.x's sys/socket.h needs it.
58783
58784 2006-06-19  Simon Josefsson  <jas@extundo.com>
58785
58786         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
58787
58788 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58789
58790         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
58791
58792 2006-06-19  Bruno Haible  <bruno@clisp.org>
58793
58794         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
58795         and FULL_PATH_INTTYPES_H in angle brackets.
58796         Reported by Mark D. Baushke <mdb@gnu.org>.
58797
58798 2006-06-17  Eric Blake  <ebb9@byu.net>
58799
58800         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
58801         errno.
58802
58803 2006-06-17  Bruno Haible  <bruno@clisp.org>
58804
58805         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
58806         <sys/inttypes.h>.
58807
58808 2006-06-17  Bruno Haible  <bruno@clisp.org>
58809
58810         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
58811         whether errno is declared. Assume <errno.h> declares errno.
58812
58813 2006-06-17  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
58816
58817 2006-06-17  Bruno Haible  <bruno@clisp.org>
58818
58819         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
58820         problem on Solaris 2.5.1.
58821
58822 2006-06-16  Eric Blake  <ebb9@byu.net>
58823
58824         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
58825         * lib/unicodeio.c [!defined errno]: Likewise.
58826         * lib/strtol.c [!defined errno]: Likewise.
58827         * lib/strtod.c [!defined errno]: Likewise.
58828
58829 2006-06-15  Eric Blake  <ebb9@byu.net>
58830
58831         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
58832
58833 2006-06-15  Eric Blake  <ebb9@byu.net>
58834
58835         * config/srclist.txt (ssize_t.m4): Lose sync.
58836
58837 2006-06-15  Bruno Haible  <bruno@clisp.org>
58838
58839         * modules/stdint (Files): Include m4/full-header-path.m4,
58840         m4/size_max.m4, m4/wchar_t.m4.
58841         (Makefile.am): Many more substitutions.
58842         * modules/stdint-tests: New file.
58843         * tests/test-stdint.c: New file.
58844
58845 2006-06-15  Bruno Haible  <bruno@clisp.org>
58846
58847         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
58848         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
58849         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
58850         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
58851         gl_CHECK_TYPE_SAME): New macros.
58852
58853 2006-06-15  Bruno Haible  <bruno@clisp.org>
58854
58855         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
58856
58857 2006-06-15  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/stdint_.h: Rewritten to be fully auto-configured.
58860         Fixes bug on HP-UX/IA64.
58861
58862 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         * lib/getdate.y (__attribute__): Don't define if already defined.
58865         Problem reported by Larry Jones.
58866         * lib/utimens.c (__attribute__): Likewise.
58867
58868 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
58869
58870         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
58871         reported by Andreas Schwab.
58872
58873 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58874             Bruno Haible  <bruno@clisp.org>
58875
58876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
58877         check for the declaration of strnlen and a run test that exposes the
58878         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
58879         rpl_strndup.
58880
58881 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58882             Bruno Haible  <bruno@clisp.org>
58883
58884         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
58885
58886 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58887
58888         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
58889         compile test, for Tru64 4.0D.
58890
58891 2006-05-28  Karl Berry  <karl@gnu.org>
58892
58893         * config/srclist.txt (printf-args.c): lose sync.
58894
58895 2006-05-26  Martin Lambers  <marlam@marlam.de>
58896
58897         * lib/getpass.c: Updates the test for the native W32 API, and adds
58898         missing includes, thus fixing compilation warnings.
58899
58900 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58901
58902         * lib/exclude.c (exclude_fnmatch): New function.
58903         (excluded_file_name): Call exclude_fnmatch.
58904         * lib/exclude.h (excluded_file_name): New prototype
58905
58906 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
58907
58908         * lib/tempname.c (small_open, large_open): New macros.
58909         (__open, __open64) [!_LIBC]: Remove.
58910         (__gen_tempname): Use small_open and large_open instead of __open
58911         and __open64.  This fixes a portability bug on HP-UX 11.11i
58912         reported by Simon Wing-Tang in
58913         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
58914
58915 2006-05-24  Bruno Haible  <bruno@clisp.org>
58916
58917         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
58918         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
58919         Reported by Thorsten Maerz <torte@netztorte.de> via
58920         Aaron Stone <aaron@serendipity.cx>.
58921
58922 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
58925         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
58926         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
58927         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
58928         not really conditional on the cache.
58929         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
58930
58931 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
58934         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
58935         (my_usleep): Don't mishandle maximum value.
58936
58937 2006-05-19  Jim Meyering  <jim@meyering.net>
58938
58939         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
58940
58941 2006-05-17  Bruno Haible  <bruno@clisp.org>
58942
58943         Cygwin portability.
58944         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
58945
58946 2006-05-17  Bruno Haible  <bruno@clisp.org>
58947
58948         * lib/stdint_.h: Fix recognition of Cygwin.
58949
58950 2006-05-15  Bruno Haible  <bruno@clisp.org>
58951
58952         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
58953         on libtool patch by Ralf Wildenhues.
58954
58955 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58956
58957         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
58958         test for C99 conformance; (bool) 0.5 is an integer constant
58959         expression, but (bool) -0.5 is not.  Problem reported by Fedor
58960         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
58961
58962 2006-05-11  Simon Josefsson  <jas@extundo.com>
58963
58964         * m4/xvasprintf.m4: Fix obvious typo.
58965
58966 2006-05-11  Jim Meyering  <jim@meyering.net>
58967
58968         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
58969         James Lemley.
58970
58971 2006-05-10  Simon Josefsson  <jas@extundo.com>
58972
58973         * lib/md4.c: Typo fix, update copyright years.
58974         (K1, K2): Don't use L because it turn computations into 64-bit on
58975         64-bit platforms.
58976
58977 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
58980         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
58981         unwanted sign propagation, e.g., on hosts with 64-bit int.
58982         There still are some problems with reeelly weird theoretical hosts
58983         (e.g., 33-bit int) but it's not worth worrying about now.
58984         * lib/sha1.c (rol): Likewise.
58985         (K1, K2, K3, K4): Remove unnecessary L suffix.
58986
58987 2006-05-10  Bruno Haible  <bruno@clisp.org>
58988
58989         * lib/des.c: Cast to avoid warnings.
58990
58991 2006-05-09  Bruno Haible  <bruno@clisp.org>
58992
58993         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
58994         (Depends-on): Depend also on xsize, stdarg.
58995         (configure.ac): Add gl_XVASPRINTF.
58996
58997 2006-05-09  Bruno Haible  <bruno@clisp.org>
58998
58999         * m4/xvasprintf.m4: New file.
59000
59001 2006-05-09  Bruno Haible  <bruno@clisp.org>
59002
59003         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
59004         (EOVERFLOW): Define fallback value.
59005         (xstrcat): New function.
59006         (xvasprintf): Recognize the special case of a string concatenation.
59007
59008 2006-05-08  Eric Blake  <ebb9@byu.net>
59009
59010         * gnulib-tool (func_version): Base copyright year on CVS date.
59011         (func_emit_copyright_notice): New function.
59012         (func_emit_lib_Makefile_am): Use it.
59013         (func_emit_tests_Makefile_am): Likewise.
59014         (func_import): Likewise.
59015
59016 2006-05-08  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/stdarg: New file.
59019         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
59020
59021 2006-05-08  Bruno Haible  <bruno@clisp.org>
59022
59023         * m4/stdarg.m4: New file, from GNU gettext.
59024
59025 2006-05-08  Bruno Haible  <bruno@clisp.org>
59026
59027         * config/srclist.txt (build-aux/config.rpath): different from latest
59028         release.
59029
59030 2006-05-08  Bruno Haible  <bruno@clisp.org>
59031
59032         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
59033
59034 2006-05-05  Jim Meyering  <jim@meyering.net>
59035
59036         * m4/warning.m4: New file, derived from bison's file by the same name.
59037
59038 2006-05-03  Bruno Haible  <bruno@clisp.org>
59039
59040         * lib/stdint_.h: Shorter URL.
59041         * lib/inttypes.h: Likewise.
59042
59043 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59044
59045         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
59046
59047 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59048
59049         * lib/verify.h: Document the internals better.  Most of this change
59050         was written by Bruno Haible.
59051
59052 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59053
59054         * doc/verify.texi: New file, partly based on a proposal by
59055         Bruno Haible.
59056
59057 2006-05-02  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
59060         test from here...
59061         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
59062
59063 2006-04-29  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
59066         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
59067
59068 2006-04-29  Bruno Haible  <bruno@clisp.org>
59069
59070         * gnulib-tool: Make --update option actually work.
59071
59072 2006-04-29  Bruno Haible  <bruno@clisp.org>
59073
59074         * doc/gcd.texi: New file.
59075         * doc/gnulib.texi: Include it.
59076
59077 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
59078
59079         * lib/getdate.y (get_date): When adding relative date, start with the
59080         initial time, not with the result of the first mktime call.
59081
59082 2006-04-25  Bruno Haible  <bruno@clisp.org>
59083
59084         * gnulib-tool (func_import): Output the include directives in three
59085         blocks, sorted separately.
59086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59087
59088 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59089
59090         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
59091         to define main with arguments, for C++.  Reported by Eric Blake.
59092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
59093         Prefer 'int main ()' to 'int main (void)', for C++.
59094         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59095         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
59096         for 'main', for C99 and C++.
59097
59098 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59099
59100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
59101         Don't assume that exit status -1 is valid.
59102         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59103         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59105         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
59106         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
59107         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
59108         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
59109         functions can be used without declaring them, or that you can
59110         exit with status -1.
59111         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59112
59113 2006-04-24  Karl Berry  <karl@gnu.org>
59114
59115         * config/srclist.txt (longdouble.m4): sync lost.
59116
59117 2006-04-24  Eric Blake  <ebb9@byu.net>
59118
59119         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
59120
59121 2006-04-24  Bruno Haible  <bruno@clisp.org>
59122
59123         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59124         poll() implementation in AIX.
59125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59126
59127 2006-04-24  Bruno Haible  <bruno@clisp.org>
59128
59129         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59130         assigned exactly once.
59131
59132 2006-04-23  Claudio Fontana  <claudio@gnu.org>
59133             Bruno Haible  <bruno@clisp.org>
59134
59135         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
59136         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
59137         for AM_CPPFLAGS.
59138
59139 2006-04-23  Bruno Haible  <bruno@clisp.org>
59140
59141         * modules/copy-file: Depend on unistd.
59142         * modules/execute: Likewise.
59143         * modules/fatal-signal: Likewise.
59144         * modules/findprog: Likewise.
59145         * modules/mkdtemp : Likewise.
59146         * modules/pipe: Likewise.
59147         * modules/wait-process: Likewise.
59148
59149 2006-04-23  Bruno Haible  <bruno@clisp.org>
59150
59151         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
59152         condition was already detected.
59153         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59154
59155 2006-04-23  Bruno Haible  <bruno@clisp.org>
59156
59157         * lib/copy-file.c: Include <unistd.h> unconditionally.
59158         * lib/execute.c: Likewise.
59159         * lib/fatal-signal.c: Likewise.
59160         * lib/findprog.c: Likewise.
59161         * lib/mkdtemp.c: Likewise.
59162         * lib/pipe.h: Likewise.
59163         * lib/pipe.c: Likewise.
59164         * lib/wait-process.h: Likewise.
59165
59166 2006-04-23  Bruno Haible  <bruno@clisp.org>
59167
59168         * gnulib-tool (func_usage): Fix --import description. Document
59169         --update.
59170         (func_import): Create temporary file in a temporary directory, if
59171         --dry-run is specified. Silence errors from 'grep' when there are no
59172         m4 files in $m4dir.
59173         (func_create_testdir): Silence errors from 'grep' when there are no
59174         m4 files in $m4dir.
59175         Reported by Karl Berry <karl@freefriends.org>.
59176
59177 2006-04-20  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
59180         one argument, so that the code will be portable to Autoconf 2.60.
59181         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
59182         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59183         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
59184
59185 2006-04-19  Derek Price  <derek@ximbiot.com>
59186             Eric Blake  <ebb9@byu.net>
59187
59188         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
59189         rather than "/full/path.h".  Update comment to match.  Shorten &
59190         generalize m4_translit call via AS_TR_CPP.
59191
59192 2006-04-19  Derek Price  <derek@ximbiot.com>
59193             Eric Blake  <ebb9@byu.net>
59194
59195         * lib/inttypes.h: Correct grammar in comment.
59196
59197 2006-04-18  Derek Price  <derek@ximbiot.com>
59198             Paul Eggert  <eggert@cs.ucla.edu>
59199
59200         * modules/inttypes: New file.
59201         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
59202
59203 2006-04-18  Derek Price  <derek@ximbiot.com>
59204             Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
59207         New files.
59208
59209 2006-04-18  Derek Price  <derek@ximbiot.com>
59210             Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * lib/inttypes.h: New file.
59213         * lib/strtoimax.c: Assume <inttypes.h>.
59214
59215 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
59218         isn't mounted.  Problem reported by Kir Kolyshkin.
59219
59220 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59221
59222         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
59223         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
59224         Derek R. Price.
59225         * lib/regex.h (RE_DUP_MAX): Update comment to match current
59226         implementation.
59227
59228 2006-04-12  Eric Blake  <ebb9@byu.net>
59229
59230         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
59231         is now done automatically by the corresponding Autoconf macro.
59232
59233 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
59236         time_r.h.
59237
59238 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59239
59240         Merge regex changes from libc, removing some of our
59241         POSIX-conformance changes that were rejected and redoing them in a
59242         less-intrusive way.
59243
59244         * lib/regcomp.c (re_compile_internal, init_dfa):
59245         Length arg is now size_t, not Idx.  All uses changed.
59246         (peek_token): Forward decl now says internal_function.
59247         (__re_error_msgid, __re_error_msgid_idx):
59248         Now static rather than extern with attribute_hidden.
59249         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
59250         For some reason libc prefers K&R style defns for external functions.
59251         (regerror) [!defined _LIBC]: Likewise.
59252         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
59253         (seek_collating_symbol_entry, lookup_collation_sequence_value):
59254         (build_range_exp, build_collating_symbol):
59255         Use K&R-style defn.
59256         (re_compile_fastmap): Use '\0' to memset, not 0.
59257         (utf8_sb_map): Make the calculations more obvious.
59258         (init_dfa, parse_bracket_exp, build_charclass_op):
59259         Call calloc and cast result, as glibc does.
59260         (init_word_char, fetch_token, peek_token, peek_token_bracket):
59261         (build_range_exp, build_collating_symbol):
59262         Now internal functions.
59263
59264         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
59265
59266         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
59267         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
59268         Don't depend on VMS; depend on __VMS instead, for POSIX
59269         namespace cleanness.
59270         (regoff_t): Define to ssize_t, not long int.
59271
59272         Remove the REG_ macros named below.  Instead, make the old names
59273         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
59274         __USE_GNU_REGEX.
59275         (REG_BACKSLASH_ESCAPE_IN_LISTS):
59276         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
59277         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
59278         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
59279         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
59280         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
59281         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
59282         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
59283         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
59284         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
59285         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
59286         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
59287         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
59288         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
59289         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
59290         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
59291         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
59292         (REG_NREGS):
59293         Remove.  All uses replaced by the old RE_* names.
59294         (RE_BACKSLASH_ESCAPE_IN_LISTS):
59295         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
59296         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
59297         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
59298         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
59299         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
59300         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
59301         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
59302         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
59303         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
59304         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
59305         Don't bother having these macros be independent of each others'
59306         values, since they no longer exist in the POSIX name space.
59307
59308         Rename the following member names back to their old names,
59309         unless !__USE_GNU_REGEX.  All uses changed back.
59310         (buffer): Renamed from re_buffer.
59311         (allocated): Renamed from re_allocated.
59312         (used): Renamed from re_used.
59313         (syntax): Renamed from re_syntax.
59314         (fastmap): Renamed from re_fastmap.
59315         (translate): Renamed from re_translate.
59316         (can_be_null): Renamed from re_can_be_null.
59317         (regs_allocated): Renamed from re_regs_allocated.
59318         (fastmap_accurate): Renamed from re_fastmap_accurate.
59319         (no_sub): Renamed from re_no_sub.
59320         (not_bol): Renamed from re_not_bol.
59321         (not_eol): Renamed from re_not_eol.
59322         (newline_anchor): Renamed from re_newline_anchor.
59323         (num_regs): Renamed from rm_num_regs.
59324         (start): Renamed from rm_start.
59325         (end): Renamed from rm_end.
59326
59327         (free_state): Move up a bit.
59328
59329         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
59330         #define to be empty.
59331         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
59332         when that is what is intended.
59333         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59334         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59335         (MAX): New macro.
59336         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59337         All uses changed back to re_malloc, etc.  It's now the caller's
59338         responsibility to check for overflow; all callers changed.
59339         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59340         (re_x2nrealloc): Remove.
59341         (free_state): Remove decl.
59342
59343         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59344         (re_set_registers, re_exec):
59345         Use K&R-style defn.
59346
59347         2006-01-31  Roland McGrath  <roland@redhat.com>
59348
59349         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59350         Reported by Mike Frysinger <vapier@gentoo.org>.
59351
59352         2006-01-15  Andreas Jaeger  <aj@suse.de>
59353
59354         [BZ #1950]
59355         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59356         build_wcs_upper_buffer change.
59357         (build_wcs_upper_buffer): Change return type.
59358
59359         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
59360
59361         * lib/regex_internal.h: Include <stdint.h> if available.
59362
59363         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
59364
59365         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
59366
59367         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59368
59369         * lib/regcomp.c: Adjust for changed secondary hash function.
59370
59371         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
59372
59373         * lib/regex.h: Pretty printing.
59374         Clean up namespace a bit.
59375
59376         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
59377
59378         * lib/regexec.c (update_cur_sifted_state, check_arrival,
59379         check_arrival_add_next_nodes): Avoid using uninitialized variable.
59380
59381         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59382                     Ulrich Drepper  <drepper@redhat.com>
59383
59384         [BZ #1302]
59385         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
59386         changed.
59387         (bitset_word_t): Renamed from bitset_word.  All uses changed.
59388
59389         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
59390
59391         [BZ #281]
59392         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
59393         * lib/regcomp.c: Remove unnecessary uses of
59394         unsigned RE_TRANSLATE_TYPE.
59395         * lib/regex_internal.h: Likewise.
59396         * lib/regex_internal.c: Likewise.
59397         * lib/regexec.c: Likewise.
59398         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
59399
59400         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
59401
59402         * lib/regexec.c (find_recover_state): Remove unnecessary
59403         initialization.
59404         (transit_state_bkref): Make DFA a const pointer.
59405         (get_subexp): Likewise.
59406         (check_arrival): Likewise.
59407         (update_cur_sifted_state): Likewise.
59408         (re_search_internal): Likewise.
59409         (prune_impossible_nodes): Likewise.
59410         (acquire_init_state_context): Likewise.
59411         (proceed_next_node): Likewise.
59412         (set_regs): Likewise.
59413         (free_fail_stack_return): Likewise.
59414         (check_arrival_expand_ecl): Mark DFA parameter as const.
59415         (check_arrival_expand_ecl_sub): Likewise.
59416         (check_subexp_limits): Likewise.
59417         (sub_epsilon_src_nodes):  Likewise.
59418         (add_epsilon_src_nodes):  Likewise.
59419         (merge_state_array): Likewise.
59420         (update_regs): Likewise.
59421         (build_trtable): Likewise.
59422         (sift_states_backward): Mark MCTX parameter as const.
59423         (build_sifted_states): Likewise.
59424         (update_cur_sifted_state): Likewise.
59425         (sift_states_mkref): Likewise.
59426         (check_arrival_expand_ecl): Mark eclosure as const.
59427         (check_dst_limits_calc_pos_1): Likewise.
59428         * lib/regex_internal.h (re_match_context_t): Make dfa a const
59429         pointer.
59430
59431         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
59432
59433         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
59434         (transit_state_sb): Likewise.
59435         (transit_state_mb): Likewise.
59436         (sift_states_iter_mb): Likewise.
59437         (check_arrival_add_next_nodes): Likewise.
59438         (check_node_accept_bytes): Change first parameter to pointer-to-const.
59439         [_LIBC] (re_search_2_stub): Use mempcpy.
59440
59441         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
59442         mbrtowc for very simple UTF-8 case.
59443
59444         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
59445         a pointer-to-const.
59446         (re_acquire_state_context): Likewise.
59447         * lib/regex_internal.h: Adjust prototypes.
59448
59449         * lib/regex.c: Prevent using C++ compilers.
59450
59451         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
59452         (re_acquire_state_context): Likewise.
59453
59454 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59455
59456         * modules/regex (Depends-on): Add ssize_t.
59457
59458 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59459
59460         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
59461         translation table.
59462
59463 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59464
59465         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
59466
59467 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59468             Bruno Haible  <bruno@clisp.org>
59469
59470         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59471         <sys/types.h> and <inttypes.h>.
59472
59473 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59474
59475         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59476         `__error_t_defined', so argp.h will not typedef the former.
59477
59478 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59481         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59482         glibc names.  Even if glibc is changed to conform to POSIX, the
59483         traditional names will be available anyway, since regex depends on
59484         the extensions module.  Also, fix a longstanding typo in the
59485         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59486         reported by Emanuele Giaquinta.  Also, change sense of cached
59487         variable, so that the message makes sense.
59488
59489 2006-03-24  Simon Josefsson  <jas@extundo.com>
59490
59491         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59492         including some doc fixes.
59493         (base64_encode_alloc): Fix +1 bug on allocation failures.
59494
59495 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59496
59497         * lib/base64.c (base64_encode): Do not read past end of array with
59498         unsanitized input on systems with CHAR_BIT > 8.
59499
59500 2006-03-24  Eric Blake  <ebb9@byu.net>
59501
59502         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59503
59504 2006-03-22  Karl Berry  <karl@gnu.org>
59505
59506         * config/srclist.txt (*setenv.[ch]): get from coreutils.
59507         * config/srclistvars.sh (COREUTILS): new var.
59508
59509 2006-03-17  Jim Meyering  <jim@meyering.net>
59510
59511         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
59512         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
59513
59514 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
59517         no longer needs it.  Instead, check that regoff_t is as least
59518         as wide as ptrdiff_t.
59519
59520         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
59521         so that our regex.h stays compatible with the installed regex.
59522         This is helpful for installers who configure --without-included-regex.
59523         Problem reported by Emanuele Giaquinta.
59524
59525 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
59528         Typedef to long int, not to off_, as POSIX will likely change
59529         in that direction.
59530
59531 2006-03-15  Eric Blake  <ebb9@byu.net>
59532
59533         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
59534
59535 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59536
59537         * lib/argp-help.c (validate_uparams): Fix typo
59538         * lib/argp-parse.c (argp_default_options): Consistently begin help
59539         messages with a lowercase letter.
59540
59541 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
59542
59543         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
59544         overrun buffers and shouldn't be used (much as gets shouldn't be
59545         used).
59546         * lib/time_r.c (asctime_r, ctime_r): Likewise.
59547
59548 2006-03-08  Simon Josefsson  <jas@extundo.com>
59549
59550         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
59551         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59552
59553 2006-03-08  Simon Josefsson  <jas@extundo.com>
59554
59555         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
59556         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59557
59558 2006-03-08  Simon Josefsson  <jas@extundo.com>
59559
59560         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
59561         signal that configure disabled the device.
59562
59563 2006-03-08  Simon Josefsson  <jas@extundo.com>
59564
59565         * build-aux/maint.mk: Fix refresh-po, to handle no translated
59566         languages.
59567
59568 2006-03-07  Simon Josefsson  <jas@extundo.com>
59569
59570         * modules/getopt (Depends-on): Add unistd.
59571
59572         * modules/unistd: New file.
59573
59574 2006-03-07  Simon Josefsson  <jas@extundo.com>
59575
59576         * modules/gc-random: New file.
59577
59578 2006-03-07  Simon Josefsson  <jas@extundo.com>
59579
59580         * m4/unistd_h.m4: New file.
59581
59582 2006-03-07  Simon Josefsson  <jas@extundo.com>
59583
59584         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
59585         test to be side-effect free by storing the result in the cache
59586         variable gl_cv_lib_readline, and moving the assignment of
59587         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
59588         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59589
59590 2006-03-07  Simon Josefsson  <jas@extundo.com>
59591
59592         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
59593         error on missing devices (the functions will return an error).
59594
59595         * m4/gc.m4: Move random stuff to gc-random.m4
59596
59597 2006-03-07  Simon Josefsson  <jas@extundo.com>
59598
59599         * lib/unistd_.h: New file.
59600
59601 2006-03-07  Simon Josefsson  <jas@extundo.com>
59602
59603         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
59604
59605 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
59608         Problem reported by Juan Manuel Guerrero.
59609
59610 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
59613         the unistd module.
59614         * lib/getlogin_r.c: Likewise.
59615         * lib/getlogin_r.h: Likewise.
59616         * lib/glob.c: Likewise.
59617         * lib/pagealign_alloc.c: Likewise.
59618         * lib/unistd_.h: Remove; no longer needed.
59619
59620 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * MODULES.html.sh (Support for systems lacking POSIX:2001):
59623         Add unistd.
59624         * modules/c-stack (Depends-on): Add unistd.
59625         * modules/getlogin_r: Likewise.
59626         * modules/glob: Likewise.
59627         * modules/pagealign_alloc: Likewise.
59628         * modules/unistd (Files): Remove lib/unistd_.h.
59629         (EXTRA_DIST): Remove.
59630         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
59631         need unistd_.h.
59632         (MOSTLYCLEANFILES): Remove unistd.h-t.
59633
59634 2006-03-03  Simon Josefsson  <jas@extundo.com>
59635
59636         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
59637
59638 2006-03-03  Simon Josefsson  <jas@extundo.com>
59639
59640         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
59641         libidn and bison.
59642
59643 2006-03-03  Simon Josefsson  <jas@extundo.com>
59644
59645         * build-aux/maint.mk: Add indent target.
59646
59647 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
59648
59649         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
59650         our replacement poll.h in any case, to avoid a differing
59651         declaration from a system header.  Seen on AIX.
59652
59653 2006-03-01  Simon Josefsson  <jas@extundo.com>
59654
59655         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
59656         <kasal@ucw.cz>.
59657
59658 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * modules/gettime (Depends-on): Add extensions module.
59661         * modules/nanosleep (Depends-on): Likewise.
59662         * modules/settime (Depends-on): Likewise.
59663
59664 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
59667         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
59668         pedantically.
59669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59670         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
59671
59672         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
59673         not "==".  Reported by Ralf Wildenhues.
59674
59675 2006-03-01  Karl Berry  <karl@gnu.org>
59676
59677         * doc/Copyright/request-*: new files, synced from gnuorg.
59678
59679 2006-03-01  Karl Berry  <karl@gnu.org>
59680
59681         * config/srclist.txt (Copyright/*): new entries.
59682
59683 2006-02-28  Simon Josefsson  <jas@extundo.com>
59684
59685         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
59686
59687 2006-02-27  Simon Josefsson  <jas@extundo.com>
59688
59689         * lib/base64.h: Indent #define's.  From Jim Meyering
59690         <jim@meyering.net>.
59691
59692 2006-02-27  Jim Meyering  <jim@meyering.net>
59693
59694         Revert the change of 2006-02-24, so these files can continue
59695         to be sync'd from gettext.
59696         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
59697         of `config.h'.
59698
59699 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59700
59701         * modules/intprops: New file.
59702         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59703         Add intprops.
59704         * modules/getloadavg (Files): Remove lib/intprops.h.
59705         (Depends-on): Add intprops.
59706         * modules/human: Likewise.
59707         * modules/inttostr: Likewise.
59708         * modules/openat: Likewise.
59709         * modules/sig2str: Likewise.
59710         * modules/userspec: Likewise.
59711         * modules/utimecmp: Likewise.
59712         * modules/xnanosleep: Likewise.
59713         * modules/xstrtol: Likewise.
59714
59715 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
59716
59717         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
59718         * modules/lock-tests (TESTS): Use $(EXEEXT).
59719         * modules/tls-tests: Likewise.
59720         * modules/argp-tests: Likewise.
59721         (check_PROGRAMS): New var, replacing...
59722         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
59723
59724 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59725
59726         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
59727         `config.h'.
59728
59729 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
59732
59733 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59734
59735         Sync from coreutils.
59736         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
59737         gl_CHDIR_SAFER.
59738
59739 2006-02-22  Jim Meyering  <jim@meyering.net>
59740
59741         Sync from coreutils.
59742         * m4/chdir-safer.m4: New file.
59743
59744 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59745
59746         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
59747         AT_FDCWD exceeds INT_MAX.
59748         * lib/openat.h (AT_FDCWD): Likewise.
59749
59750 2006-02-17  Eric Blake  <address@hidden>
59751
59752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
59753
59754 2006-02-16  Simon Josefsson  <jas@extundo.com>
59755
59756         * modules/getaddrinfo (Depends-on): Add sys_socket.
59757
59758 2006-02-15  Simon Josefsson  <jas@extundo.com>
59759
59760         * build-aux/maint.mk: Add dsyntax-check rule.
59761
59762 2006-02-15  Eric Blake  <ebb9@byu.net>
59763
59764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
59765         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
59766         'present but cannot compile' warnings on cygwin.
59767         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
59768         use ws2tcpip.h if sys/socket.h works.
59769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
59770         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
59771
59772 2006-02-14  Simon Josefsson  <jas@extundo.com>
59773
59774         * modules/maintainer-makefile (Files): Rename.
59775
59776         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
59777         and (the local) Makefile.cfg to maint-cfg.mk.
59778
59779         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
59780         to the latter.
59781
59782         * modules/maintainer-makefile: New module.
59783
59784         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
59785         severaly stripped to make it possible to build it up from scratch
59786         with reliable tests.
59787
59788         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
59789         fixes to permit overriding the default actions when configure and
59790         makefile are not available.
59791
59792 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59793
59794         Sync from coreutils.
59795         * modules/lstat (Depends-on): Don't depend on xalloc.
59796         (License): Change from GPL to LGPL, since this is now simply a
59797         replacement for a libc function.
59798
59799 2006-02-14  Jim Meyering  <jim@meyering.net>
59800
59801         Sync from coreutils.
59802
59803         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
59804         failure on deficient systems, and simplify gnulib lgpl dependencies.
59805         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
59806         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
59807
59808         * lib/xalloc-die.c: Remove unused definition of N_.
59809
59810 2006-02-14  Jim Meyering  <jim@meyering.net>
59811
59812         Sync from coreutils.
59813         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
59814         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
59815         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
59816         double-quote uses of that variable, to accommodate the rare case in
59817         which getmntent is available in none of the libraries checked.  This
59818         happens at least on FreeBSD 5.0.
59819
59820 2006-02-13  Simon Josefsson  <jas@extundo.com>
59821
59822         * gnulib-tool (Usage): Fix --import, from
59823         karl@freefriends.org (Karl Berry).
59824
59825 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59826
59827         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
59828
59829 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
59830
59831         * lib/argp-namefrob.h: Restore changes accidentally lost during the
59832         "autoupdate" on 2005-12-12.
59833
59834 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         * modules/closeout (Depends-on): Remove atexit.
59837
59838 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59839
59840         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
59841         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
59842
59843 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
59846         __EXTENSIONS__ if this causes compilation to fail.  Problem
59847         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
59848         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
59849
59850 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
59853         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
59854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
59855         All uses changed.
59856
59857 2006-01-26  Simon Josefsson  <jas@extundo.com>
59858
59859         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
59860         prototype is visible on mingw32.
59861
59862         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
59863         for mingw32.
59864
59865         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
59866         mingw32).
59867
59868 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59869
59870         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
59871         attempt to open for write; this always fails, at least on POSIX
59872         hosts.  This reinstates the 2006-01-09 change, which was
59873         inadvertently removed.
59874
59875 2006-01-26  Bruno Haible  <bruno@clisp.org>
59876
59877         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
59878         Reported by Paul Eggert.
59879
59880 2006-01-26  Bruno Haible  <bruno@clisp.org>
59881             Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * lib/stdbool_.h (_Bool)
59884         [(! (defined __cplusplus || defined __BEOS__)
59885           && !defined __GNUC__
59886           && !(defined __HP_cc || defined __xlc__
59887                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
59888                || defined __sgi))]:
59889         #define to signed char in these cases too; this simplifies
59890         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
59891         etc., separately) and makes it more conservative.
59892
59893 2006-01-25  Simon Josefsson  <jas@extundo.com>
59894
59895         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
59896         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
59897         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
59898
59899 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59900
59901         * lib/argp-namefrob.h: Bugfix. Remove stray #
59902
59903 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59904
59905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
59906         so that we test the test.
59907         Check for yet another HP-UX cc bug involving *bool |= bool.
59908
59909 2006-01-25  Karl Berry  <karl@gnu.org>
59910
59911         * config/srclist.txt (vasnprintf.c): sync lost.
59912
59913 2006-01-25  Jim Meyering  <jim@meyering.net>
59914
59915         Sync from the stable (b5) branch of coreutils:
59916
59917         * lib/fts.c (fts_children): Don't let close() clobber errno from
59918         failed fchdir().
59919
59920         * lib/fts.c (fts_stat): When following a symlink-to-directory,
59921         don't necessarily interpret stat-fails+lstat-succeeds as indicating
59922         a dangling symlink.  That can also happen at least for ELOOP.
59923         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
59924         FYI, this bug predates the inclusion of fts.c in coreutils.
59925
59926         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
59927         in their own block, so pre-c99 compilers don't object.
59928
59929         Avoid the double-free (first in fts_read, second in fts_close) that
59930         would occur when an `active' directory is made inaccessible (e.g.,
59931         via chmod a-x) during a traversal.
59932         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59933         before returning.  Reproduce this failure by
59934         mkdir -p a/b; cd a; chmod a-x . b
59935         Reported by Stavros Passas.
59936
59937 2006-01-25  Jim Meyering  <jim@meyering.net>
59938
59939         * lib/fileblocks.c: Remove more useless parentheses.
59940         * lib/readutmp.h: Likewise.
59941
59942 2006-01-25  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
59945         warnings.
59946         Reported by Paul Eggert.
59947
59948 2006-01-25  Bruno Haible  <bruno@clisp.org>
59949
59950         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
59951         rid of a trap command. For Solaris sh.
59952         Reported by Mark D. Baushke <mdb@gnu.org>.
59953
59954 2006-01-24  Simon Josefsson  <jas@extundo.com>
59955
59956         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
59957         Bruno.
59958
59959 2006-01-24  Karl Berry  <karl@gnu.org>
59960
59961         * config/srclist.txt (argp-namefrob.h): sync lost.
59962
59963 2006-01-24  Jim Meyering  <jim@meyering.net>
59964
59965         * modules/openat (Files): Add lib/intprops.h.
59966         From Mark D. Baushke.
59967
59968 2006-01-24  Jim Meyering  <jim@meyering.net>
59969
59970         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
59971         Reported by Mark D. Baushke.
59972
59973 2006-01-24  Jim Meyering  <jim@meyering.net>
59974
59975         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
59976
59977 2006-01-24  Bruno Haible  <bruno@clisp.org>
59978
59979         * modules/strnlen (Maintainer): Change from glibc to all.
59980
59981 2006-01-24  Bruno Haible  <bruno@clisp.org>
59982
59983         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
59984         Patch by Paul Eggert.
59985
59986 2006-01-24  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
59989         already has it.
59990         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
59991         2005-11-26.
59992
59993         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
59994         'signed char' to avoid problems with the built-in _Bool type.
59995         Reported by Paul Eggert on 2005-11-26.
59996
59997 2006-01-24  Bruno Haible  <bruno@clisp.org>
59998
59999         * gnulib-tool (func_import): Avoid constructing complicated sed
60000         expressions inside backquote.
60001         Report and solution by Mark D. Baushke <mdb@gnu.org>.
60002
60003 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
60004
60005         These changes imported from libc.
60006         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
60007         test and two separate function calls.
60008         * lib/strndup.c (__strndup): Add libc_hidden_def.
60009
60010 2006-01-23  Simon Josefsson  <jas@extundo.com>
60011
60012         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
60013         Remove the test_*_SOURCES variable: automake infers it by default.
60014         * modules/tls-tests: Likewise.
60015
60016 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60017
60018         Work around porting bugs reported by Dieter in
60019         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
60020         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
60021         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
60022         Include "getopt.h" first, to check interface.
60023         (getenv): Declare only if defined HAVE_DECL_GETENV &&
60024         !HAVE_DECL_GETENV.
60025         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
60026         (__strndup): Revert to K&R-style function dfns, the glibc style.
60027         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
60028         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
60029         Include strnlen.h first, to get prototype properly.
60030         (strnlen): Renamed from __strnlen.
60031         Remove weak alias.
60032
60033 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
60036
60037 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         * config/srclist.txt: Adjust to reflect glibc reorganization.
60040         This affects only comments.
60041
60042 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60043
60044          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
60045          Reported by Bruce Korb <bkorb@gnu.org>.
60046
60047 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
60050         to pacify gcc -Wswitch-default.
60051
60052 2006-01-22  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
60055         temporary buffer for sprintf, take into account the precision also
60056         for 'd', 'i', 'u', 'o', 'x', 'X'.
60057
60058 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60059
60060         * modules/argp-tests: New module
60061         * tests/test-argp.c: New file
60062         * tests/test-argp-2.sh: New file
60063
60064 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60065
60066         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
60067         (__argp_base_name): Removed
60068         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
60069         typo.
60070         (__argp_base_name): Provide macro definition or extern declaration
60071         depending on the configuration
60072
60073 2006-01-20  Simon Josefsson  <jas@extundo.com>
60074
60075         * modules/inet_ntop (Depends-on): Depend on sys_socket.
60076
60077 2006-01-20  Simon Josefsson  <jas@extundo.com>
60078
60079         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
60080
60081 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60082
60083         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
60084         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
60085         Suggested by Bruno Haible.
60086
60087 2006-01-20  Karl Berry  <karl@gnu.org>
60088
60089         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
60090         until changes propagate, I guess.
60091
60092 2006-01-19  Simon Josefsson  <jas@extundo.com>
60093
60094         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
60095
60096 2006-01-19  Simon Josefsson  <jas@extundo.com>
60097
60098         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
60099
60100 2006-01-19  Simon Josefsson  <jas@extundo.com>
60101
60102         * gnulib-tool: Set check_PROGRAMS.
60103
60104         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60105         modules/des-tests, modules/gc-arcfour-tests,
60106         modules/gc-arctwo-tests, modules/gc-des-tests,
60107         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60108         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60109         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60110         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60111         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60112         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
60113         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
60114         test_*_SOURCES.
60115
60116 2006-01-18  Simon Josefsson  <jas@extundo.com>
60117
60118         * modules/socklen (Depends-on): Depend on sys_socket.
60119
60120 2006-01-18  Simon Josefsson  <jas@extundo.com>
60121
60122         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60123         modules/des-tests, modules/gc-arcfour-tests,
60124         modules/gc-arctwo-tests, modules/gc-des-tests,
60125         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60126         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60127         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60128         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60129         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60130         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60131         $(EXEEXT) to automake TESTS variable, for mingw32.
60132
60133 2006-01-17  Simon Josefsson  <jas@extundo.com>
60134
60135         * modules/socklen (Include): Need sys/socket.h.
60136
60137 2006-01-17  Bruno Haible  <bruno@clisp.org>
60138
60139         * modules/ssize_t (Include): Add <sys/types.h>.
60140
60141 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
60142
60143         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
60144         it's not portable and it doesn't work with cross-compiles.
60145         Problem reported by Bruno Haible.  Fix missing-$ typo in
60146         'test "gl_cv_ignore_unused_libraries" ...' that prevented
60147         -zignore from being used with Sun's C compiler.
60148
60149 2006-01-12  Simon Josefsson  <jas@extundo.com>
60150
60151         * lib/base64.c: Fix warning, reported by Bruno Haible
60152         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
60153
60154 2006-01-12  Bruno Haible  <bruno@clisp.org>
60155
60156         * modules/ldd: New file.
60157         * build-aux/ldd.sh.in: New file.
60158         * MODULES.html.sh (Support for building libraries and executables): Add
60159         ldd.
60160
60161 2006-01-12  Bruno Haible  <bruno@clisp.org>
60162
60163         * m4/ldd.m4: New file.
60164
60165 2006-01-12  Bruno Haible  <bruno@clisp.org>
60166
60167         * gnulib-tool (func_import, func_create_testdir): Don't go into an
60168         endless loop while replacing $auxdir with build-aux.
60169
60170 2006-01-11  Simon Josefsson  <jas@extundo.com>
60171
60172         * lib/stdint_.h (SIZE_MAX): Add missing (.
60173
60174 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60175
60176         Sync from coreutils.
60177         * lib/md5.c: Fix commentary typos.
60178         (alignof, UNALIGNED_P): No need for a GCC-specific version.
60179         * lib/md5.h (__attribute__): Remove; unused.
60180         * lib/sha1.c: Fix commentary to match md5 better.
60181         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
60182         so that we don't need to worry about alignment.  All uses changed.
60183         This merges the 2005-10-28 md5 change into sha1.
60184
60185 2006-01-11  Jim Meyering  <jim@meyering.net>
60186
60187         Sync from coreutils.
60188         * lib/md5.c (OP): Fix spacing.
60189
60190 2006-01-11  Bruno Haible  <bruno@clisp.org>
60191
60192         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60193         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
60194         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
60195
60196 2006-01-11  Bruno Haible  <bruno@clisp.org>
60197
60198         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60199         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
60200         the "early" section as well.
60201
60202 2006-01-11  Bruno Haible  <bruno@clisp.org>
60203
60204         Avoid "ar: no archive members specified" error on MacOS X.
60205         * gnulib-tool (func_modules_add_dummy): New function.
60206         (func_import, func_create_testdir): Invoke it.
60207
60208 2006-01-11  Bruno Haible  <bruno@clisp.org>
60209
60210         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
60211         with $auxdir in AC_CONFIG_FILES statements.
60212
60213 2006-01-11  Bruno Haible  <bruno@clisp.org>
60214
60215         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60216         Initialize also noinst_HEADERS to empty.
60217
60218 2006-01-11  Bruno Haible  <bruno@clisp.org>
60219
60220         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
60221         variables.
60222         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
60223         autoreconf.
60224
60225 2006-01-11  Bruno Haible  <bruno@clisp.org>
60226
60227         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
60228         overridable by the user.
60229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60230
60231 2006-01-10  Simon Josefsson  <jas@extundo.com>
60232
60233         * modules/sys_socket: New file.
60234
60235 2006-01-10  Simon Josefsson  <jas@extundo.com>
60236
60237         * m4/sys_socket_h.m4: New file.
60238
60239 2006-01-10  Simon Josefsson  <jas@extundo.com>
60240
60241         * lib/socket_.h: New file.
60242
60243 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         * modules/readutmp (Maintainer): Add myself.
60246
60247 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60248
60249         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
60250         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
60251         People who are still concerned with buggy memcmp implementations
60252         can invoke gl_FUNC_MEMCMP themselves.
60253
60254 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60255
60256         * lib/regex_internal.h (BITSET_WORD_BITS):
60257         Work around a bug in 64-bit PGC (before version 6.1-2), where the
60258         preprocessor mishandles large unsigned values as if they were signed.
60259         Problem reported by Claudio Fontana in
60260         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
60261
60262 2006-01-10  Jim Meyering  <jim@meyering.net>
60263
60264         Avoid the double-free (first in fts_read, second in fts_close) that
60265         would occur when an `active' directory is made inaccessible (e.g.,
60266         via chmod a-x) during a traversal.
60267         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60268         before returning.  Reproduce this failure by
60269         mkdir -p a/b; cd a; chmod a-x . b
60270         Reported by Stavros Passas.
60271
60272         Sync from coreutils.
60273         * lib/sha1.c: Tweak grammar in a comment.
60274
60275 2006-01-10  Jim Meyering  <jim@meyering.net>
60276
60277         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
60278         Patch by Joerg Sonnenberger.
60279
60280 2006-01-10  Bruno Haible  <bruno@clisp.org>
60281
60282         * modules/readutmp: Depend on module free.
60283         * modules/strtok_r: Depend on module restrict.
60284
60285 2006-01-10  Bruno Haible  <bruno@clisp.org>
60286
60287         * modules/gettext (configure.ac): Add an invocation of
60288         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
60289
60290 2006-01-10  Bruno Haible  <bruno@clisp.org>
60291
60292         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
60293         Reported by Werner Lemberg <wl@gnu.org>.
60294
60295 2006-01-10  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/localcharset.c: Update from GNU gettext.
60298
60299 2006-01-10  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/argp.h (__const): Remove macro. Use const instead.
60302         * lib/argp-fmtstream.h (__const): Likewise.
60303         * lib/glob_.h (__const): Remove macro.
60304         * lib/glob-libc.h: Use const instead of __const.
60305
60306 2006-01-10  Bruno Haible  <bruno@clisp.org>
60307
60308         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
60309         variable.
60310         Needed to avoid an automake error regarding the 'gettext' module.
60311
60312 2006-01-09  Simon Josefsson  <jas@extundo.com>
60313
60314         * modules/inet_ntop (Depends-on): Add restrict.
60315
60316 2006-01-09  Simon Josefsson  <jas@extundo.com>
60317
60318         * modules/gc-rijndael-tests (License): Put under LGPL.
60319
60320         * modules/gc-des-tests (License): Likewise.
60321
60322         * modules/gc-arcfour-tests (License): Likewise.
60323
60324         * modules/gc-arctwo-tests (License): Likewise.
60325
60326         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
60327
60328         * modules/gc-hmac-sha1-tests (Files): Likewise.
60329
60330         * modules/gc-hmac-md5-tests (License): Likewise.
60331
60332         * modules/gc-sha1-tests (License): Likewise.
60333
60334         * modules/gc-md5-tests (License): Likewise.
60335
60336         * modules/gc-md4-tests (License): Likewise.
60337
60338         * modules/gc-md2-tests (License): Likewise.
60339
60340         * modules/gc-tests (License): Likewise.
60341
60342         * modules/des-tests (License): Likewise.
60343
60344         * modules/md4-tests (License): Likewise.
60345
60346         * modules/md2-tests (License): Likewise.
60347
60348 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         Sync from coreutils:
60351
60352         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60353         * modules/lib-ignore: New file.
60354         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60355         chdir-safer.m4, lchmod.m4.
60356         * modules/openat: Add mkdirat.c, openat-priv.h.
60357
60358 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60359
60360         Sync from coreutils.
60361         * m4/lib-ignore.m4: New file.
60362         * m4/lchmod.m4: New file.
60363
60364 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         Sync from coreutils.
60367         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
60368         for write access: POSIX says that must fail.
60369         * lib/fts.c (diropen): Likewise.
60370         * lib/save-cwd.c (save_cwd): Likewise.
60371         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
60372         well, for minor improvements on hosts that lack O_DIRECTORY.
60373         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
60374         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
60375         Fall back on chown if open failed with EACCES.
60376
60377         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
60378         Report an error at compile-time if only a 1-second nominal clock
60379         resolution is found.
60380
60381         * lib/lchmod.h: New file.
60382         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
60383         (make_dir_parents): Use lchown rather than chown, and
60384         lchmod rather than chmod.
60385
60386         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
60387         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
60388         "proc" reported by n0dalus.
60389
60390         * lib/mountlist.c: Include <limits.h>.
60391         (dev_from_mount_options)
60392         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
60393         New function.  It no longer assumes "dev=" has the System V meaning
60394         on Linux (since it doesn't).  It also parses "dev=" more carefully.
60395         (read_file_system_list)
60396         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
60397         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
60398         dev= in that case.
60399
60400         * lib/posixtm.h (PDS_PRE_2000): New macro.
60401         * lib/posixtm.c (year): Arg is now syntax_bits rather than
60402         allow_century.  All usages changed.  Reject dates outside the range
60403         1969-1999 if PDS_PRE_2000 is used.
60404
60405 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         Sync from coreutils.
60408         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
60409         (Time of day items): Mention the possibility of leap seconds.
60410         Problem reported by Dr. David Alan Gilbert.
60411
60412 2006-01-09  Jim Meyering  <jim@meyering.net>
60413
60414         Sync from coreutils.
60415
60416         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
60417
60418         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
60419
60420         * lib/modechange.c (mode_compile): Reject an invalid mode string
60421         that starts with an octal digit.  From Andreas Gruenbacher.
60422
60423         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
60424         and dup to open_safer and dup_safer, respectively.
60425         (openat_permissive): Fix typo in comment.
60426
60427         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
60428         "gettext.h"; either no longer needed or are guaranteed by openat.h.
60429         (_): Remove; no longer needed.
60430         (openat): Renamed from rpl_openat; no need for rpl_openat
60431         since openat.h renames openat for us.
60432         Replace most of the body with a call to openat_permissive,
60433         to avoid duplicate code.
60434         Port to (probably hypothetical) environments were mode_t is
60435         wider than int.
60436         (openat_permissive): Require mode arg, so that we can check
60437         types better.  Put it just after flags.  Change cwd failure
60438         indicator from pointer-to-bool to pointer-to-errno-value.
60439         All callers changed.
60440         Invoke openat_save_fail and/or openat_restore_fail if
60441         cwd_errno is null, so that openat can call us.
60442         (openat_permissive, fdopendir, fstatat, unlinkat):
60443         Simplify errno handling to avoid some duplicate code,
60444         as it's OK to set errno on success.
60445         * lib/openat.h: Revamp code so that function macros depend on
60446         __OPENAT_PREFIX only, not also on AT_FDCWD.
60447         (openat_ro): Remove.  Caller changed to use openat_permissive.
60448         (openat_permissive): Now a macro, if not a function.
60449         (openat_restore_fail, openat_save_fail): Now always functions,
60450         since mkdirat needs them even if __OPENAT_PREFIX is defined.
60451
60452         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
60453         and openat.c.
60454         * lib/mkdirat.c: Include openat-priv.h.
60455         Remove definitions of macros defined therein.
60456         * lib/openat.c: Likewise.
60457
60458         * lib/mkdirat.c (mkdirat): New file and function.
60459         * lib/openat.h (mkdirat): Declare.
60460
60461         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
60462
60463         * lib/openat.h (openat_permissive): Declare.
60464         (openat_ro): Define.
60465
60466         * lib/openat.c (EXPECTED_ERRNO): New macro.
60467         (openat_permissive): New function -- used in remove.c rewrite.
60468         (all functions): Set errno just before returning, only if there
60469         was an actual failure.
60470         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60471
60472         Emulate openat-family functions using Linux's procfs, if possible.
60473         Idea and some code based on Ulrich Drepper's glibc changes.
60474
60475         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60476         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60477         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60478         before falling back on save_cwd and restore_cwd.
60479         (fdopendir, fstatat, unlinkat): Likewise.
60480
60481         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60482         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60483
60484         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60485         as second argument to va_arg.  Otherwise, some versions of gcc
60486         warn that `if this code is reached, the program will abort'.
60487
60488 2006-01-09  Jim Meyering  <jim@meyering.net>
60489
60490         Sync from coreutils.
60491         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60492         Require openat-priv.h.
60493
60494 2006-01-09  Bruno Haible  <bruno@clisp.org>
60495
60496         * modules/strnlen (Include): Use strnlen.h.
60497
60498 2006-01-09  Bruno Haible  <bruno@clisp.org>
60499
60500         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60501
60502 2006-01-09  Bruno Haible  <bruno@clisp.org>
60503
60504         * lib/sysexit_.h (EX_OK): New macro.
60505         Suggested by Martin Lambers <marlam@marlam.de>.
60506
60507 2006-01-09  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
60510         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
60511
60512 2006-01-09  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
60515         numbers.
60516
60517 2006-01-09  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
60520         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
60521         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
60522         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
60523
60524 2006-01-09  Bruno Haible  <bruno@clisp.org>
60525
60526         * build-aux/javacomp.sh.in: New file, moved from lib/.
60527         * modules/javacomp-script (Files): Update.
60528         (configure.ac): Add AC_CONFIG_FILES invocation.
60529         (EXTRA_DIST): Remove variable.
60530
60531         * build-aux/javaexec.sh.in: New file, moved from lib/.
60532         * modules/javaexec (Files): Update.
60533         (configure.ac): Add AC_CONFIG_FILES invocation.
60534         (EXTRA_DIST): Remove javaexec.sh.in.
60535
60536         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
60537         * modules/csharpcomp-script (Files): Update.
60538         (configure.ac): Add AC_CONFIG_FILES invocation.
60539         (EXTRA_DIST): Remove variable.
60540
60541         * build-aux/csharpexec.sh.in: New file, moved from lib/.
60542         * modules/csharpexec (Files): Update.
60543         (configure.ac): Add AC_CONFIG_FILES invocation.
60544         (EXTRA_DIST): Remove csharpexec.sh.in.
60545
60546 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60547
60548         Sync from coreutils.
60549
60550         Add POSIX ACL support
60551         * lib/acl.h (copy_acl, set_acl): Add declarations.
60552         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
60553         systems other than Linux.
60554         (chmod_or_fchmod): New function: use fchmod when possible,
60555         and chmod otherwise.
60556         (file_has_acl): Add a POSIX ACL implementation, with a
60557         Linux-specific subcase.
60558         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
60559         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
60560         acls are unsupported.
60561         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
60562         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
60563         are unsupported.
60564
60565 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60566
60567         Sync from coreutils.
60568         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
60569
60570 2006-01-07  Bruno Haible  <bruno@clisp.org>
60571
60572         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
60573         gl_EARLY.
60574
60575 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * lib/strftime.c (tzname): Don't declare if it is already #defined.
60578         Problem reported for Mingw by Mark Junker.
60579
60580 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * README: Gnulib normally doesn't generate a tarball.
60583
60584 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
60585
60586         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
60587         long int, not int, for nanosecond counts, so that people who are
60588         used to POSIX struct timespec won't be surprised.  Reported by Jim
60589         Meyering.
60590
60591 2005-12-28  Bruno Haible  <bruno@clisp.org>
60592
60593         * build-aux/config.rpath: Update from GNU gettext.
60594
60595 2005-12-16  Jim Meyering  <jim@meyering.net>
60596
60597         * modules/fprintftime: New module.
60598         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
60599
60600 2005-12-16  Jim Meyering  <jim@meyering.net>
60601
60602         * m4/fprintftime.m4: New file.
60603
60604 2005-12-16  Jim Meyering  <jim@meyering.net>
60605
60606         * lib/fprintftime.c, lib/fprintftime.h: New files.
60607
60608 2005-12-15  Simon Josefsson  <jas@extundo.com>
60609
60610         * modules/socklen (configure.ac): Fix M4 macro name, to align with
60611         new m4/socklen.m4.
60612
60613 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60614
60615         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
60616         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
60617
60618 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60619
60620         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
60621         * lib/argp-help.c (fill_in_uparams): Check if the constructed
60622         struct uparams is valid. Fall back to the default values if it is
60623         not.
60624
60625 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60626
60627         * modules/argp (Files): Add argp-pin.c
60628         (Depends-on): dirname
60629         (lib_SOURCES): Add argp-pin.c
60630
60631 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60632
60633         * m4/argp.m4:  Check if program_invocation_name and
60634         program_invocation_short_name are declared and define appropriate
60635         macros if they are not.
60636
60637 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60638
60639         * lib/argp-help.c (__argp_base_name): New function
60640         (__argp_short_program_name): Rewrite using __argp_base_name
60641         * lib/argp-namefrob.h: Define program_invocation_name and
60642         program_invocation_short_name if requested
60643         (__argp_base_name): Add prototype
60644         * lib/argp-parse.c (argp_def): Use gettext wrappers
60645         (argp_default_parser): Use __argp_base_name
60646         * lib/argp-pin.c: New file. Defines program_invocation_name and
60647         program_invocation_short_name on systems that lack them.
60648
60649 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60650
60651         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
60652         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60653         porting problem reported by Georg Schwarz in
60654         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60655
60656 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60657
60658         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
60659         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60660         porting problem reported by Georg Schwarz in
60661         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60662
60663 2005-12-05  Bruno Haible  <bruno@clisp.org>
60664
60665         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
60666         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
60667         Reported by Mark Junker <mjscod@gmx.de>.
60668
60669 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
60670
60671         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
60672         Use implementation from Albert Chin, with some
60673         comments/corrections by Stepan Kasal and myself.
60674
60675 2005-12-02  Bruno Haible  <bruno@clisp.org>
60676
60677         * gnulib-tool (func_import): Accept GPLed build tool modules when
60678         --lgpl is given.
60679         * modules/csharpcomp-script: New file.
60680         * modules/csharpcomp: Depend on it.
60681         * modules/javacomp-script: New file.
60682         * modules/javacomp: Depend on it.
60683         Suggested by Simon Josefsson.
60684
60685 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60686
60687         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
60688         statement, to work around an HP-UX 10.20 compiler bug reported by
60689         Peter O'Gorman.
60690
60691 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60692
60693         * modules/savedir (Depends-on): Add openat.
60694
60695 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60696
60697         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
60698         (uintmax_t) [defined uintmax_t]: Do not declare.
60699         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
60700         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
60701         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
60702         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
60703         sake of portability to weird hosts that C allows (though we don't
60704         know of any practical examples).
60705
60706         * lib/savedir.h (fdsavedir): New decl.
60707         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
60708         contains most of the former guts of savedir.
60709         (savedir): Use savedirstream.
60710         Include "openat.h".
60711
60712 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * modules/obstack (Files): Add m4/ulonglong.m4.
60715         Problem reported by Davide Angelocola.
60716
60717 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60718
60719         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
60720         coreutils no longer futzes with rounding modes.
60721
60722 2005-11-14  Jim Meyering  <jim@meyering.net>
60723
60724         * lib/mkstemp-safer.c: Include <config.h>, required for possible
60725         replacement of mkstemp.
60726
60727 2005-11-10  Simon Josefsson  <jas@extundo.com>
60728
60729         * lib/readline.c: Remove EOL.
60730
60731 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * modules/gethrxtime (Depends-on): Add gettime.
60734
60735 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60736
60737         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
60738         or gettimeofday; no longer needed.
60739
60740 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
60743         time business.
60744         (gethrxtime) [! (HAVE_NANOUPTIME
60745         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
60746         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
60747         our own approximation.
60748
60749 2005-11-08  Eric Blake  <ebb9@byu.net>
60750
60751         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60752
60753 2005-11-08  Eric Blake  <ebb9@byu.net>
60754
60755         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60756
60757 2005-11-04  Bruno Haible  <bruno@clisp.org>
60758
60759         * gnulib-tool: Implement --update mode.
60760
60761 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60762
60763         Fix porting problem reported by Theodoros V. Kalamatianos.
60764         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
60765         Don't assume that futimes failing means we must fail.
60766
60767 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60768
60769         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
60770         variables to suggest the intended function of the PATH_MAX check.
60771
60772 2005-10-30  Kean Johnston  <jkj@sco.com>
60773
60774         Trivial changes to support SCO systems.
60775         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
60776         as PATH_MAX.
60777         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
60778         where __ptr is null when no I/O is pending.
60779
60780 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
60783         leave errno alone.  Problem reported by Dmitry V. Levin.
60784
60785 2005-10-28  Simon Josefsson  <jas@extundo.com>
60786
60787         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
60788         Test more.
60789
60790         * tests/test-gc-md2.c, tests/test-md2.c: New files.
60791
60792         * modules/md2, modules/md2-tests: New files.
60793
60794 2005-10-28  Simon Josefsson  <jas@extundo.com>
60795
60796         * m4/inet_ntop.m4: More tests.
60797
60798         * m4/gc-md2.m4, md2.m4: New file.
60799
60800 2005-10-28  Simon Josefsson  <jas@extundo.com>
60801
60802         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
60803         "restrict" keywords, as per POSIX.  Protect the function
60804         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
60805         Don't use K&R prototypes.  Check the sprintf return values.
60806         Re-define EAFNOSUPPORT if not present.  Indent.
60807
60808         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
60809         suggested by Bruno Haible <bruno@clisp.org>.
60810
60811         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
60812
60813         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
60814
60815         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
60816         libgcrypt).
60817
60818         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
60819
60820         * lib/md2.h, lib/md2.c: New files.
60821
60822 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
60823
60824         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
60825         errno alone.  Problem reported by Frederic Jolliton.
60826
60827 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * modules/verify (License): Change from GPL to LGPL.  This is a
60830         tiny module and there are apparently near-equivalents that are
60831         under the BSD license.
60832
60833 2005-10-24  Simon Josefsson  <jas@extundo.com>
60834
60835         * modules/sha1: Relicense to LGPL.
60836
60837 2005-10-24  Simon Josefsson  <jas@extundo.com>
60838
60839         * lib/md4.h: Shrink buffer size, now that we changed the type.
60840
60841 2005-10-23  Simon Josefsson  <jas@extundo.com>
60842
60843         * gnulib-tool (func_import): Fix --tests-base.
60844
60845 2005-10-22  Simon Josefsson  <jas@extundo.com>
60846
60847         * modules/arcfour (Depends-on): Need stdint.
60848
60849 2005-10-22  Simon Josefsson  <jas@extundo.com>
60850
60851         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
60852         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
60853
60854 2005-10-22  Simon Josefsson  <jas@extundo.com>
60855
60856         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
60857         suggested by Bruno Haible <bruno@clisp.org>.
60858
60859 2005-10-22  Simon Josefsson  <jas@extundo.com>
60860
60861         * lib/crc.h: Include stddef.h, for size_t.
60862
60863 2005-10-22  Simon Josefsson  <jas@extundo.com>
60864
60865         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
60866         arcfour_context struct (simplify test vector testing in GNU
60867         Shishi).
60868
60869 2005-10-21  Simon Josefsson  <jas@extundo.com>
60870
60871         * modules/des, modules/des-tests: New files.
60872
60873         * modules/gc-des, modules/gc-des-tests: New files.
60874
60875         * tests/test-des.c, tests/test-gc-des.c: New file.
60876
60877 2005-10-21  Simon Josefsson  <jas@extundo.com>
60878
60879         * modules/arctwo, modules/arctwo-tests: New files.
60880
60881         * tests/test-arctwo.c: New file.
60882
60883         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
60884
60885         * tests/test-gc-arctwo.c: New file.
60886
60887 2005-10-21  Simon Josefsson  <jas@extundo.com>
60888
60889         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
60890         Bruno Haible <bruno@clisp.org>.
60891
60892         * m4/gc-des.m4: New file.
60893
60894 2005-10-21  Simon Josefsson  <jas@extundo.com>
60895
60896         * m4/arctwo.m4: New file.
60897
60898         * m4/gc-arctwo.m4: New file.
60899
60900 2005-10-21  Simon Josefsson  <jas@extundo.com>
60901
60902         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
60903         block.
60904
60905 2005-10-21  Simon Josefsson  <jas@extundo.com>
60906
60907         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
60908         <bruno@clisp.org>.
60909
60910         * lib/hmac-sha1.c (hmac_sha1): Likewise.
60911
60912         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
60913         Bruno Haible <bruno@clisp.org>.
60914
60915         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
60916         <bruno@clisp.org>.
60917
60918 2005-10-21  Simon Josefsson  <jas@extundo.com>
60919
60920         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
60921
60922 2005-10-21  Simon Josefsson  <jas@extundo.com>
60923
60924         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
60925
60926 2005-10-21  Simon Josefsson  <jas@extundo.com>
60927
60928         * lib/des.h, lib/des.c: New files.
60929
60930         * lib/gc-gnulib.c: Support DES.c
60931
60932 2005-10-21  Simon Josefsson  <jas@extundo.com>
60933
60934         * lib/arctwo.h, lib/arctwo.c: New files.
60935
60936         * lib/gc-gnulib.c: Support ARCTWO.
60937
60938 2005-10-21  Simon Josefsson  <jas@extundo.com>
60939
60940         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
60941         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60942
60943 2005-10-21  Simon Josefsson  <jas@extundo.com>
60944
60945         * gnulib-tool (func_import, func_create_testdir): Define automake
60946         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
60947         Makefile.am snippet),
60948         suggested by Bruno Haible <bruno@clisp.org>.
60949
60950         * modules/gc (Makefile.am): Use it.
60951
60952 2005-10-21  Bruno Haible  <bruno@clisp.org>
60953
60954         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
60955         patch.
60956
60957 2005-10-19  Simon Josefsson  <jas@extundo.com>
60958
60959         * tests/test-gc-rijndael.c: New file.
60960
60961         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
60962
60963 2005-10-19  Simon Josefsson  <jas@extundo.com>
60964
60965         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
60966         interface too.
60967
60968 2005-10-19  Simon Josefsson  <jas@extundo.com>
60969
60970         * tests/test-gc-arcfour.c: New file.
60971
60972         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
60973
60974 2005-10-19  Simon Josefsson  <jas@extundo.com>
60975
60976         * modules/gc-md4, modules/gc-md4-tests: New file.
60977
60978         * tests/test-gc-md4.c: New file.
60979
60980 2005-10-19  Simon Josefsson  <jas@extundo.com>
60981
60982         * m4/gc-md4.m4: New file.
60983
60984 2005-10-19  Simon Josefsson  <jas@extundo.com>
60985
60986         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
60987         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
60988         <kasal@ucw.cz>.
60989
60990 2005-10-19  Simon Josefsson  <jas@extundo.com>
60991
60992         * m4/gc-arcfour.m4: New file.
60993
60994         * m4/gc-rijndael.m4: New file.
60995
60996 2005-10-19  Simon Josefsson  <jas@extundo.com>
60997
60998         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
60999
61000 2005-10-19  Simon Josefsson  <jas@extundo.com>
61001
61002         * lib/gc-gnulib.c: Support ARCFOUR.
61003
61004 2005-10-19  Simon Josefsson  <jas@extundo.com>
61005
61006         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
61007         support.
61008
61009         * lib/gc.h: Add ECB enum type.
61010
61011         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
61012
61013 2005-10-18  Simon Josefsson  <jas@extundo.com>
61014
61015         * tests/test-md5.c: New file.
61016
61017         * modules/md5-tests: New file.
61018
61019 2005-10-18  Simon Josefsson  <jas@extundo.com>
61020
61021         * tests/test-md4.c: New file.
61022
61023         * modules/md4, modules/md4-tests: New files.
61024
61025 2005-10-18  Simon Josefsson  <jas@extundo.com>
61026
61027         * m4/md4.m4: New file.
61028
61029 2005-10-18  Simon Josefsson  <jas@extundo.com>
61030
61031         * lib/md4.h, lib/md4.c: New files, based on md5.?.
61032
61033 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
61034
61035         * gnulib-tool (func_create_testdir): Omit the second check whether
61036         BUILT_SOURCES in nonempty.
61037
61038 2005-10-17  Simon Josefsson  <jas@extundo.com>
61039
61040         * tests/test-rijndael.c: New file.
61041
61042 2005-10-17  Simon Josefsson  <jas@extundo.com>
61043
61044         * modules/sha1: Depend on stdint instead of md5.
61045
61046         * modules/md5: Depend on stdint, remove uint32_t.
61047
61048 2005-10-17  Simon Josefsson  <jas@extundo.com>
61049
61050         * modules/gc-sha1-tests: New file.
61051
61052         * tests/test-gc-sha1.c: New file.
61053
61054 2005-10-17  Simon Josefsson  <jas@extundo.com>
61055
61056         * m4/md5.m4: Remove call to uint32_t.m4.
61057
61058 2005-10-17  Simon Josefsson  <jas@extundo.com>
61059
61060         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
61061
61062         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
61063         md5.h.
61064
61065         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
61066
61067         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
61068
61069 2005-10-17  Simon Josefsson  <jas@extundo.com>
61070
61071         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
61072
61073 2005-10-17  Simon Josefsson  <jas@extundo.com>
61074
61075         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
61076
61077 2005-10-17  Simon Josefsson  <jas@extundo.com>
61078
61079         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
61080
61081         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
61082
61083 2005-10-17  Bruno Haible  <bruno@clisp.org>
61084
61085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
61086         that it can also be used in a test.
61087
61088 2005-10-16  Bruno Haible  <bruno@clisp.org>
61089
61090         * gnulib-tool (func_emit_tests_Makefile_am): Also define
61091         TESTS_ENVIRONMENT, so that individual tests can augment it.
61092
61093         * gnulib-tool (func_create_testdir): Use an intermediate target for
61094         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
61095         macros, like $(ALLOCA_H), which cannot be passed through the command
61096         line.
61097
61098 2005-10-15  Simon Josefsson  <jas@extundo.com>
61099
61100         * modules/rijndael-tests: New file.
61101
61102         * modules/rijndael: New file.
61103
61104 2005-10-15  Simon Josefsson  <jas@extundo.com>
61105
61106         * m4/rijndael.m4: New file.
61107
61108 2005-10-15  Simon Josefsson  <jas@extundo.com>
61109
61110         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
61111
61112         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
61113
61114 2005-10-14  Simon Josefsson  <jas@extundo.com>
61115
61116         * tests/test-arcfour.c: New file.
61117
61118         * modules/arcfour, modules/arcfour-tests: New files.
61119
61120 2005-10-14  Simon Josefsson  <jas@extundo.com>
61121
61122         * m4/arcfour.m4: New file.
61123
61124 2005-10-14  Simon Josefsson  <jas@extundo.com>
61125
61126         * lib/arcfour.h, lib/arcfour.c: New files.
61127
61128 2005-10-14  Roland McGrath  <roland@redhat.com>
61129
61130         Import from libc.  [BZ #1331]
61131         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61132         macro argument.
61133         Reported by Matej Vela <vela@debian.org>.
61134
61135 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
61138         include <wchar.h>; no longer needed.
61139
61140 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
61143
61144 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
61145         and  Ulrich Drepper  <drepper@redhat.com>
61146
61147         Import from libc.
61148         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
61149         instead of inline stream orientation test and two separate
61150         function calls.  Pay no attention to USE_IN_LIBIO.
61151
61152 2005-10-13  Simon Josefsson  <jas@extundo.com>
61153
61154         * modules/gc-hmac-md5-tests: New file.
61155
61156         * tests/test-gc-hmac-sha1.c: New file.
61157
61158         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
61159
61160         * modules/gc-hmac-md5-tests: New file.
61161
61162         * tests/test-gc-md5.c: New file.
61163
61164         * modules/gc-md5-tests: New file.
61165
61166 2005-10-13  Simon Josefsson  <jas@extundo.com>
61167
61168         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
61169         Move memory allocation outside of loop.
61170
61171 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
61174         intermediate directory is in a read-only file system.  Problem
61175         reported by Eric Blake.
61176
61177 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
61178
61179         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
61180
61181 2005-10-12  Simon Josefsson  <jas@extundo.com>
61182
61183         * tests/test-hmac-sha1.c: New file.
61184
61185         * modules/hmac-sha1-tests: New file.
61186
61187         * modules/hmac-sha1: New file.
61188
61189 2005-10-12  Simon Josefsson  <jas@extundo.com>
61190
61191         * modules/gc-sha1: New file.
61192
61193 2005-10-12  Simon Josefsson  <jas@extundo.com>
61194
61195         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
61196
61197         * tests/test-gc-pbkdf2-sha1.c: New file.
61198
61199 2005-10-12  Simon Josefsson  <jas@extundo.com>
61200
61201         * modules/gc-md5, modules/gc-hmac-md5: New files.
61202
61203         * modules/gc (Files): Remove md5, memxor and hmac files.
61204
61205 2005-10-12  Simon Josefsson  <jas@extundo.com>
61206
61207         * m4/gc-pbkdf2-sha1.m4: New file.
61208
61209         * m4/gc-hmac-sha1.m4: New file.
61210
61211         * m4/gc-sha1: New file.
61212
61213         * m4/hmac-sha1.m4: New file.
61214
61215 2005-10-12  Simon Josefsson  <jas@extundo.com>
61216
61217         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
61218
61219         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
61220
61221 2005-10-12  Simon Josefsson  <jas@extundo.com>
61222
61223         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
61224         suggested by Bruno Haible <bruno@clisp.org>.
61225
61226 2005-10-12  Simon Josefsson  <jas@extundo.com>
61227
61228         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
61229
61230 2005-10-12  Simon Josefsson  <jas@extundo.com>
61231
61232         * lib/gc-pbkdf2-sha1.c: New file.
61233
61234         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
61235
61236 2005-10-12  Simon Josefsson  <jas@extundo.com>
61237
61238         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
61239
61240         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
61241
61242 2005-10-12  Simon Josefsson  <jas@extundo.com>
61243
61244         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
61245         GC_USE_HMAC_MD5, respectively.
61246
61247         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
61248         (gc_md5): Fix typo.
61249
61250         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
61251
61252         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
61253
61254         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
61255
61256 2005-10-12  Bruno Haible  <bruno@clisp.org>
61257
61258         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
61259         Reported by Stepan Kasal <kasal@ucw.cz>.
61260
61261 2005-10-11  Simon Josefsson  <jas@extundo.com>
61262
61263         * tests/test-crc.c: New file.
61264
61265         * modules/crc, modules/crc-tests: New files.
61266
61267 2005-10-11  Simon Josefsson  <jas@extundo.com>
61268
61269         * m4/crc.m4: New file.
61270
61271 2005-10-11  Simon Josefsson  <jas@extundo.com>
61272
61273         * lib/gc.h: Add gc_hash and gc_hash_buffer.
61274
61275         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
61276
61277         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
61278
61279 2005-10-11  Simon Josefsson  <jas@extundo.com>
61280
61281         * lib/crc.h, lib/crc.c: New files.
61282
61283         * lib/gc.h (gc_hash_buffer): Add doc.
61284
61285 2005-10-11  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/c-strcasestr: New file.
61288         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
61289
61290 2005-10-11  Bruno Haible  <bruno@clisp.org>
61291
61292         * modules/c-strcase: New file.
61293         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
61294
61295 2005-10-11  Bruno Haible  <bruno@clisp.org>
61296
61297         * lib/strcasecmp.c: Include limits.h.
61298         (strcasecmp): Avoid integer overflow on exotic platforms.
61299         * lib/strncasecmp.c: Include limits.h.
61300         (strncasecmp): Avoid integer overflow on exotic platforms.
61301         Reported by Paul Eggert.
61302
61303 2005-10-11  Bruno Haible  <bruno@clisp.org>
61304
61305         * lib/c-strcasestr.h: New file, from GNU gettext.
61306         * lib/c-strcasestr.c: New file, from GNU gettext.
61307
61308 2005-10-11  Bruno Haible  <bruno@clisp.org>
61309
61310         * lib/c-strcase.h: New file, from GNU gettext.
61311         * lib/c-strcasecmp.c: New file, from GNU gettext.
61312         * lib/c-strncasecmp.c: New file, from GNU gettext.
61313
61314 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61315
61316         * modules/mempcpy (License): GPL -> LGPL.
61317         * modules/strchrnul (License): Likewise.
61318         * modules/sysexits (License): Likewise.
61319
61320 2005-10-08  Simon Josefsson  <jas@extundo.com>
61321
61322         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
61323
61324 2005-10-07  Simon Josefsson  <jas@extundo.com>
61325
61326         * m4/memxor.m4: Remove gl_C_RESTRICT call.
61327
61328 2005-10-06  Simon Josefsson  <jas@extundo.com>
61329
61330         * tests/test-hmac-md5.c: New file.
61331
61332         * modules/hmac-md5-tests: New file.
61333
61334         * modules/hmac-md5: New file.
61335
61336 2005-10-06  Simon Josefsson  <jas@extundo.com>
61337
61338         * m4/hmac-md5.m4: New file.
61339
61340         * m4/memxor.m4: Require gl_C_RESTRICT.
61341
61342 2005-10-06  Simon Josefsson  <jas@extundo.com>
61343
61344         * lib/memxor.c (memxor): Avoid casts and warnings.
61345
61346 2005-10-06  Simon Josefsson  <jas@extundo.com>
61347
61348         * lib/hmac-md5.c: New file.
61349
61350         * lib/hmac.h: New file.
61351
61352 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61353
61354         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61355         promotes to int, not unsigned int, to catch the AIX 5.3
61356         compiler bug.
61357
61358 2005-10-05  Simon Josefsson  <jas@extundo.com>
61359
61360         * modules/memxor: New file.
61361
61362         * modules/iconv (Files): Move config.rpath to havelib, it is used
61363         there.
61364
61365         * modules/havelib (Files): Add config.rpath.
61366
61367 2005-10-05  Simon Josefsson  <jas@extundo.com>
61368
61369         * m4/memxor.m4: New file.
61370
61371 2005-10-05  Simon Josefsson  <jas@extundo.com>
61372
61373         * lib/memxor.c (memxor): Fix compiler error.
61374
61375         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
61376         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
61377
61378         * lib/memxor.h, lib/memxor.c: New files.
61379
61380         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
61381         we assume all systems have it, suggested by Jim Meyering
61382         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
61383         any systems lack sys/socket.h; mingw32 is known to lack it, but we
61384         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
61385         same reasons.
61386
61387 2005-10-05  Simon Josefsson  <jas@extundo.com>
61388
61389         * config/srclist.txt: Add glibc bug 1423 for md5.h.
61390
61391 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61392
61393         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
61394         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
61395         needed, since the source code now assumes these .h files.
61396
61397 2005-10-05  Derek Price  <derek@ximbiot.com>
61398
61399         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
61400
61401 2005-10-05  Bruno Haible  <bruno@clisp.org>
61402
61403         * modules/stdint (License): Change to LGPL.
61404
61405 2005-10-04  Simon Josefsson  <jas@extundo.com>
61406
61407         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
61408         D. Baushke" <mdb@gnu.org>.
61409
61410 2005-10-04  Bruno Haible  <bruno@clisp.org>
61411
61412         * lib/verify.h (verify_true): Provide alternative definition for C++.
61413
61414 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
61417         (SSIZE_MAX): New macro, if not already defined.
61418         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
61419         than 2 GiB.
61420
61421 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         Sync from coreutils.
61424         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
61425         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
61426         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
61427         ULLONG_MAX doesn't work with 2.7.2.1.
61428
61429 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61430
61431         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
61432         From Ben Pfaff.
61433
61434         * modules/exclude (Depends-on): Depend on verify.
61435         * modules/strtoimax (Depends-on): Likewise.
61436         * modules/utimecmp (Depends-on): Likewise.
61437
61438 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * lib/exclude.c: Include verify.h.
61441         (verify): Remove.  All callers changed to use verify.h's version.
61442         * lib/strtoimax.c: Likewise.
61443         * lib/utimecmp.c: Likewis.e
61444
61445         Sync from coreutils.
61446         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
61447         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
61448         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
61449         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
61450         bother returning ENOSYS if settimeofday or stime fails; just let
61451         them return whatever errno they want to return.
61452         * lib/utimens.c: Include unistd.h, for dup2.
61453         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
61454         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
61455
61456 2005-10-02  Jim Meyering  <jim@meyering.net>
61457
61458         Sync from coreutils.
61459         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
61460         from glibc-2.2.5 that fails for read-only files.
61461
61462 2005-10-02  Jim Meyering  <jim@meyering.net>
61463
61464         Sync from coreutils.
61465         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
61466         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
61467         `#if HAVE_CONFIG_H'.
61468         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61469         Remove AT_FDCWD test.
61470         Do not consume the fd unless successful.
61471         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61472         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61473         block, so that we don't even try to compile it if settimeofday is
61474         available.  This works around a compilation failure on OSF1 V5.1,
61475         due to stime requiring a `long int*' while tv_sec is `int'.
61476
61477 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61478
61479         Sync from coreutils.
61480         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61481         against `yes', rather than just testing for nonempty.
61482
61483 2005-10-01  Simon Josefsson  <jas@extundo.com>
61484
61485         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61486         and Darwin.
61487
61488         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61489         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61490         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61491         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61492         Check if struct addrinfo is declared.
61493
61494 2005-10-01  Simon Josefsson  <jas@extundo.com>
61495
61496         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61497         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61498         AI_* and EAI_* definitions.  Protect function declarations.
61499
61500 2005-10-01  Jim Meyering  <jim@meyering.net>
61501
61502         Sync from coreutils.
61503
61504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61505         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61506         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
61507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61508         in the inet and nsl libraries.  Required on Solaris 5.7.
61509
61510 2005-10-01  Jim Meyering  <jim@meyering.net>
61511
61512         Sync from coreutils.
61513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61514         in the inet and nsl libraries.  Required on Solaris 5.7.
61515
61516 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
61517
61518         * lib/getdelim.c (getdelim): Remove unused variables.
61519
61520 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
61523         so that the code works even with ancient cpp.  Portability problem
61524         with GCC 2.7.2.1 reported by Thomas M.Ott.
61525
61526 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         * modules/regex (Depends-on): Add strcase.
61529
61530         * modules/gethostname (Licence): Change from GPL to LGPL, since
61531         gethostname.c is a trivial implementation of a standard library
61532         function.
61533         * modules/poll (License): Change from GPL to LGPL, since it's
61534         derived from LGPL code.
61535
61536 2005-09-27  Jim Meyering  <jim@meyering.net>
61537
61538         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
61539         HAVE_CONFIG_H.
61540
61541         * lib/intprops.h (signed_type_or_expr__): Define.
61542         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
61543         for unsigned types.
61544
61545 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         * lib/verify.h (verify_expr): Remove, replacing with:
61548         (verify_true): New macro that returns true instead of void.
61549         (verify_type__): Remove.
61550         (verify): Use verify_true rather than verify_type__.
61551
61552 2005-09-26  Bruno Haible  <bruno@clisp.org>
61553
61554         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
61555         is necessary.
61556         (lib_SOURCES): Remove mbchar.c.
61557         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
61558         (Files): Add m4/mbrtowc.m4.
61559         * modules/mbiter: Likewise.
61560         * modules/mbuiter: Likewise.
61561
61562 2005-09-26  Bruno Haible  <bruno@clisp.org>
61563
61564         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
61565         compile mbchar.c if they are not both present.
61566         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
61567         * m4/mbiter.m4 (gl_MBITER): Likewise.
61568         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
61569         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
61570         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
61571
61572 2005-09-25  Jim Meyering  <jim@meyering.net>
61573
61574         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
61575         also uses socklen_t.
61576
61577 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
61578
61579         * lib/utimens.c (ENOSYS): Define if not already defined.
61580         (futimens): Support having a null PATH if the file descriptor
61581         is nonnegative.
61582
61583         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
61584         Remove.
61585         (__attribute): Define to empty unless GCC 3.1 or later.
61586         This works around a core dump on OpenBSD 3.4, which has GCC
61587         2.95.3, which dumps core when given __attribute__(()).  It also
61588         simplifies other tests, since we really don't want to bother with
61589         worrying about which ancient version of GCC supported what.
61590         Original problem reported by Yoann Vandoorselaere, with part of
61591         the fix suggested by Derek Price.
61592
61593 2005-09-24  Jim Meyering  <jim@meyering.net>
61594
61595         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
61596         so we can once again use a positive bitfield width of 1 -- now we
61597         don't have to explain why we were using a bitfield width of 2.
61598
61599 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
61602         and similarly for the other external symbols.  Problem reported
61603         by James Gallager.
61604
61605         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
61606         bug reported by Jim Meyering.
61607
61608         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
61609         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
61610         not needed, since socklen is a prerequisite module.
61611
61612 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
61615         Problem reported by Eric Blake.
61616         (getaddrinfo): Initialize se so that it's not garbage.
61617         Redo internal storage allocation so that it doesn't make unportable
61618         assumptions about alignment.
61619         Fix a memory leak.
61620
61621         * lib/utimens.c (futimens): Use futimesat if available.
61622         Prefer it to futimes since it doesn't have the futimes bug.
61623
61624         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
61625         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
61626         Instead, declare a function that returns a pointer to an array,
61627         and use verify_type__ to declare the size of the array.
61628         Problem and germ of a solution reported by Bruno Haible.
61629         (verify_type__): Use 2, not 1, for bitfield size, to avoid
61630         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
61631
61632 2005-09-23  Jim Meyering  <jim@meyering.net>
61633
61634         Sync from coreutils.
61635         Correct build failure (socklen_t not defined) on at least
61636         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
61637         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
61638
61639 2005-09-23  Jim Meyering  <jim@meyering.net>
61640
61641         * modules/getaddrinfo (Depends-on): Add socklen.
61642
61643 2005-09-23  Bruno Haible  <bruno@clisp.org>
61644
61645         * tests/test-verify.c: New file.
61646
61647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         Sync from coreutils.
61650
61651         * modules/argmatch (Depends-on): Add verify.
61652         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
61653         unistd-safer.
61654         * modules/save-cwd (Depends-on): Likewise.
61655
61656         * modules/openat (Files): Add lib/openat-die.c.
61657         (Depends-on): Remove error, exitfail.
61658         Add dirname.
61659
61660         * modules/verify: New file.
61661         * MODULES.html.sh (Diagnostics <assert.h>): New section,
61662         with "verify" module.
61663
61664 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         Sync from coreutils.
61667
61668         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
61669         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
61670         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
61671         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
61672         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
61673         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
61674         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
61675         Don't bother checking for string.h, stdlib.h, unistd.h.
61676         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
61677         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
61678         module's job.
61679         * m4/jm-macros.m4 (gl_MACROS): Likewise.
61680         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
61681
61682         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
61683         (gl_GETDATE): Use it.
61684
61685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
61686
61687 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         Sync from coreutils.
61690
61691         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
61692         stat-time.h.
61693         * lib/argmatch.h: Include verify.h
61694         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
61695         (ARGMATCH_ASSERT): Remove; unused.
61696         * lib/canonicalize.c: Assume STDC_HEADERS.
61697         * lib/exclude.c: Include "strcase.h".
61698         * lib/regex_internal.h [!defined _LIBC]: Likewise.
61699         * lib/getusershell.c: Include stdio--.h rather than stdio.h
61700         and stdio-safer.h.
61701         (getusershell): Call fopen, not fopen_safer.
61702         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
61703         Do not include unistd-safer.h.
61704         (save_cwd): Don't call fd_safer; no longer needed
61705         now that we include fcntl--.h.
61706
61707         * lib/getdate.y (relative_time): New type.
61708         (RELATIVE_TIME_0): New constant.
61709         (parser_control): Use relative_time instead of doing it ourselves.
61710         (%union): Add new relative_time rel member.
61711         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
61712         Now typeless.
61713         (relunit, relunit_snumber): Now of type rel.
61714         (zone, rel, relunit, get_date): Adjust to above changes.
61715
61716         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
61717         Do not include unistd-safer.h.
61718         (getloadavg): Don't call fd_safer; no longer needed
61719         now that we include fcntl--.h.
61720
61721         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
61722         (make_dir_parents): Treat ENOSYS like EEXIST.
61723
61724         Improve quality of diagnostics on restore_cwd failure.
61725         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
61726         (make_dir_parents): Last arg is now int * (for errno), not bool *.
61727         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
61728         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
61729         each time through the loop.  Do not diagnose restore_cwd failure;
61730         that is the caller's job (and perhaps the caller does not care).
61731
61732         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
61733         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
61734         If the file already exists but is not a directory, don't bother
61735         to try to make its parents.
61736         Close potential file descriptor leak if we can't chdir("/") (!).
61737         Don't always return true if chdir($PWD) fails; return true only
61738         if the requested action was done successfully (except for the
61739         chdir($PWD)).
61740         Don't log final directory unless we actually made it.
61741         Refactor to avoid duplicate code to fix up permissions.
61742         Don't attempt to fix up parent permissions if chdir($PWD) fails.
61743
61744         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
61745         to make it a bit faster and (I hope) clearer.
61746         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
61747         Fix bug in formats like %2N.
61748
61749         * lib/verify.h: New file.
61750
61751 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61752
61753         Sync from coreutils.
61754         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
61755
61756 2005-09-22  Jim Meyering  <jim@meyering.net>
61757
61758         Sync from coreutils.
61759
61760         * m4/lstat.m4 (gl_FUNC_LSTAT):
61761         Use AC_LIBSOURCES to require lstat.c and lstat.h.
61762         Remove obsolete comment.
61763         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
61764         * m4/xstrtod.m4: Likewise.
61765
61766         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
61767
61768 2005-09-22  Jim Meyering  <jim@meyering.net>
61769
61770         Sync from coreutils.
61771
61772         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
61773
61774         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
61775         the .tm_year member, since otherwise gcc-4.0 would now warn about
61776         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
61777
61778         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
61779         order to avoid an unsuppressible warning from gcc on 64-bit systems.
61780
61781         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
61782         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
61783         when run in a time zone for which daylight savings time is in effect
61784         for the starting date.
61785
61786         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
61787         stop us from restricting permissions of just-created absolute-named
61788         directories.
61789         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
61790         to restore initial working directory.
61791         * lib/mkdir-p.c (make_dir_parents): New parameter:
61792         different_working_dir, to tell caller if/when we change the working
61793         directory and are unable to return to the initial one.
61794         * lib/mkdir-p.h (make_dir_parents): Update prototype.
61795         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
61796         `return false'.  This fixes a bug introduced on 2004-07-30.
61797
61798         * lib/openat.c (fdopendir): Be sure to close the supplied
61799         file descriptor before returning.  This makes our replacement
61800         implementation a little closer to Solaris's, where fdopendir
61801         ties the file descriptor to the returned DIR* pointer.
61802         * lib/openat.c (unlinkat): New function.
61803         * lib/openat.h (unlinkat): Add prototype.
61804         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
61805         (openat_restore_fail): Rename from openat_restore_die.
61806         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
61807
61808         Provide an alternative to exiting immediately upon save_cwd or
61809         restore_cwd failure.  Now, an application can arrange e.g.,
61810         to perform a longjump in that case.
61811         * lib/openat.c: Include dirname.h.
61812         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
61813         (rpl_openat, fdopendir, fstatat): Call openat_save_die
61814         and openat_restore_die rather than calling error directly.
61815         Don't include "error.h" or "exitfail.h"; they're no longer needed.
61816
61817         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
61818         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
61819         define.
61820
61821         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
61822         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
61823                             int utc, int nanoseconds);
61824         Background:
61825         date should not have to allocate a megabyte of virtual memory to
61826         handle a format argument like +%1048575T.  When implemented with
61827         strftime, it must allocate such a buffer, use strftime to fill it
61828         in, print it, then free it.
61829         With fprintftime, it simply prints everything and exits.
61830         With no need for memory allocation, that's one fewer way to fail.
61831         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
61832         optional field width, not before, so we accept %9:z, not %:9z.
61833         (my_strftime): Be sure to use L_('x') for literals.
61834
61835         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
61836         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
61837         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
61838         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
61839         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
61840         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
61841         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
61842         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
61843         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
61844         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
61845         * lib/xgethostname.c, lib/xreadlink.c:
61846         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
61847
61848         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
61849         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
61850         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
61851         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61852         and don't include <sys/file.h>).
61853
61854 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
61855
61856         Sync from coreutils.
61857
61858         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
61859         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
61860         [!LDAV_DONE]: Avoid unused variable warning.
61861
61862 2005-09-21  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/unicodeio.h (unicode_to_mb): New declaration.
61865
61866 2005-09-20  Derek Price  <derek@ximbiot.com>
61867
61868         * lib/getaddrinfo.c: Don't include <netdb.h> included from
61869         getaddrinfo.h.
61870
61871 2005-09-20  Bruno Haible  <bruno@clisp.org>
61872
61873         * gnulib-tool: Remove trailing slashes from the values specified for
61874         --source-base, --m4-base, --tests-base, --aux-dir.
61875         Suggested by Simon Josefsson <jas@extundo.com>.
61876
61877 2005-09-20  Bruno Haible  <bruno@clisp.org>
61878
61879         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
61880         func_modules_to_filelist, func_import, func_create_testdir): Make all
61881         sorting results locale-independent, so that gnulib-cache.m4 doesn't
61882         change when gnulib-tool is invoked in a different locale.
61883
61884 2005-09-19  Simon Josefsson  <jas@extundo.com>
61885
61886         * m4/socklen.m4: Fix typo.
61887
61888 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61889
61890         Use a consistent style for including <config.h>.
61891         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
61892         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
61893         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
61894         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
61895         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
61896         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
61897         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
61898         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
61899         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
61900         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
61901         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
61902         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
61903         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
61904         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
61905         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
61906         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
61907         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
61908         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
61909         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
61910         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
61911         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
61912         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
61913         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
61914         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
61915         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
61916         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
61917         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
61918         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
61919         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
61920         lib/xstrtoumax.c, lib/yesno.c:
61921         Standardize inclusion of config.h.
61922         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
61923         lib/inttostr.h:  Removed inclusion of config.h from header files.
61924         * lib/inttostr.c:  Adjusted in-tree users.
61925         * lib/timespec.h: Remove superfluous warning to include config.h.
61926         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
61927         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
61928         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
61929         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
61930         config.h with HAVE_CONFIG_H.
61931
61932 2005-09-19  Jim Meyering  <jim@meyering.net>
61933
61934         * modules/pathmax (License): Change to LGPL.
61935
61936 2005-09-19  Derek Price  <derek@ximbiot.com>
61937
61938         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
61939
61940 2005-09-19  Bruno Haible  <bruno@clisp.org>
61941
61942         * gnulib-tool (import): Provide default for --tests-base.
61943
61944 2005-09-19  Bruno Haible  <bruno@clisp.org>
61945
61946         * doc/quote.texi: New file, extracted from gnulib.texi.
61947         * doc/ctime.texi: New file, extracted from gnulib.texi.
61948         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
61949         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
61950         * doc/gnulib.texi: Include them.
61951
61952 2005-09-18  Bruno Haible  <bruno@clisp.org>
61953
61954         Portability fix.
61955         * gnulib-tool (func_readlink): New function.
61956         (func_ln_if_changed): Use it.
61957
61958 2005-09-18  Bruno Haible  <bruno@clisp.org>
61959
61960         * gnulib-tool: Support --with-tests also with --import.
61961         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
61962         (func_import): Use variables $testsbase and $inctests. Emit a
61963         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
61964         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
61965         SUBDIRS += $testsdir.
61966         (func_create_testdir): Update.
61967
61968 2005-09-18  Bruno Haible  <bruno@clisp.org>
61969
61970         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
61971         instead of $dry_run.
61972         (func_cp_if_changed, func_mv_if_changed): Remove functions.
61973         (func_ln_if_changed): Don't handle dry-run here.
61974         (func_import): In dry-run mode, detect more precisely which actions
61975         would be performed, and don't use "...ing" verbs.
61976
61977 2005-09-18  Bruno Haible  <bruno@clisp.org>
61978
61979         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
61980         (func_import): Use join on two temporary files instead of three nested
61981         loops, in order to determine which files are new or old.
61982
61983 2005-09-18  Bruno Haible  <bruno@clisp.org>
61984
61985         * gnulib-tool (func_import): Comment out code that spits out the
61986         new files with --dry-run.
61987
61988 2005-09-18  Bruno Haible  <bruno@clisp.org>
61989
61990         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
61991
61992 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61993
61994         * lib/stat-time.h: New file.
61995         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
61996         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
61997         in a different way.
61998         (timespec_cmp): New function.
61999         * lib/utimecmp.c: Include stat-time.h.
62000         (SYSCALL_RESOLUTION): Depend on whether various struct stat
62001         members exist, not on the obsolescent ST_MTIM_NSEC.
62002         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
62003
62004 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
62007
62008 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * MODULES.html.sh (File system functions): Add stat-time.
62011         * modules/stat-time: New file.
62012         * modules/timespec (Files): Remove m4/st_mtim.m4; this
62013         is now done in a different way, by the stat-time module.
62014         * modules/utimecmp (Depends-on): Add stat-time.
62015
62016 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62017
62018         * m4/st_mtim.m4: Remove.  Superseded by...
62019         * m4/stat-time.m4: New file.
62020         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
62021         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
62022
62023 2005-09-15  Derek Price  <derek@ximbiot.com>
62024
62025         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
62026
62027 2005-09-15  Derek Price  <derek@ximbiot.com>
62028
62029         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
62030         * lib/regex_internal.c: Ditto, using this...
62031         (__GNUC_PREREQ): ...new macro.
62032         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
62033         using...
62034         (__GNUC_PREREQ): ...this new macro.
62035
62036         * lib/strstr.h: Include string.h. Define strstr as a macro here.
62037
62038 2005-09-15  Derek Price  <derek@ximbiot.com>
62039             Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
62042         changes, consolidating in...
62043         * lib/regex_internal.h: ...this file.
62044
62045 2005-09-13  Jim Meyering  <jim@meyering.net>
62046
62047         * lib/canon-host.c: Filter through gnu indent and reword comments
62048         slightly.
62049         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
62050
62051 2005-09-13  Derek Price  <derek@ximbiot.com>
62052
62053         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
62054         failure.
62055         Reported by Jim Meyering  <jim@meyering.net>.
62056
62057 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62058
62059         * lib/base64.c: Typo.
62060         (base64_encode): Put b64str in initialized data section.
62061
62062 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62063
62064         Merge glibc and coreutils changes into gnulib, plus a few
62065         extra fixes.
62066         * lib/md5.c: Use #error rather than a string.
62067         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
62068         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
62069         (__attribute__): Define to empty for non recent-GCC.
62070         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
62071         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
62072         Renamed from their non-__ counterparts, with new macros replacing
62073         them if not _LIBC.  Add __THROW attribute.
62074         (rol): Remove.
62075         (struct md5_ctx): Align buffer if using GCC.
62076         * lib/sha1.h (struct sha1_ctx): Likewise.
62077         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
62078         The old name was backwards.
62079         (NOTSWAP): Remove; not used.
62080         (rol): New macro, moved here from md5.h.
62081         (sha1_process_block): Remove a FIXME that doesn't make sense.
62082
62083 2005-09-12  Derek Price  <derek@ximbiot.com>
62084
62085         Return usable errors from canon-host.
62086         * lib/canon-host.h: New file.
62087         * lib/canon-host.c (canon_host): Wrap...
62088         (canon_host_r): ...this new function, which now relies exclusively on
62089         getaddrinfo.
62090         (ch_strerror): New function.
62091         (last_cherror): New global.
62092         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
62093         interface.
62094         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
62095         void *.
62096         (freeaddrinfo): Free ai->ai_canonname when set.
62097
62098 2005-09-12  Derek Price  <derek@ximbiot.com>
62099
62100         Make canon-host require getaddrinfo.
62101         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
62102         AC_LIBSOURCE canon-host.h.  Call...
62103         (gl_PREREQ_CANON_HOST): ...this new function, which requires
62104         gl_GETADDRINFO.
62105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
62106
62107 2005-09-12  Derek Price  <derek@ximbiot.com>
62108
62109         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
62110         LGPL.
62111         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
62112
62113 2005-09-12  Derek Price  <derek@ximbiot.com>
62114
62115         * lib/gai_strerror.c: Include config.h when available.  Include
62116         getaddrinfo.h before other headers to test interface.
62117         Reported by Larry Jones <lawrence.jones@ugs.com>.
62118
62119 2005-09-12  Derek Price  <derek@ximbiot.com>
62120             Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         * modules/glob (Files): Add glob-libc.h.
62123
62124 2005-09-12  Derek Price  <derek@ximbiot.com>
62125             Paul Eggert  <eggert@cs.ucla.edu>
62126
62127         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62128         glob_.h, glob-libc.h.
62129         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62130
62131 2005-09-12  Derek Price  <derek@ximbiot.com>
62132             Paul Eggert  <eggert@cs.ucla.edu>
62133
62134         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
62135         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
62136         protecting things that should be done only in gnulib contexts.
62137         * lib/glob_.h: New file, containing only the glob things needed for
62138         gnulib.
62139         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
62140         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
62141         (glob, globfree, glob_pattern_p): Now defined simply in terms of
62142         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
62143         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
62144         and to respect the namespace rules better.
62145
62146 2005-09-08  Simon Josefsson  <jas@extundo.com>
62147
62148         * modules/socklen: New file.
62149
62150 2005-09-08  Simon Josefsson  <jas@extundo.com>
62151
62152         * m4/socklen.m4: New file.
62153
62154 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * modules/utimens (Files): Add m4/utimbuf.m4, since
62157         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
62158         Reported by Sergey Poznyakoff.
62159
62160 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62161
62162         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
62163         definitions, since that's the preferred style in glibc.
62164         Fix a minor spacing issue, and update copyright notice to match
62165         glibc's.
62166
62167 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
62170
62171 2005-09-06  Simon Josefsson  <jas@extundo.com>
62172
62173         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
62174         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
62175
62176 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
62179         warning.
62180
62181 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62182
62183         * config/srclist.txt: Add glibc bug 1302.
62184
62185 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
62186
62187         Change bitset word type from unsigned int to unsigned long int,
62188         as this has better performance on typical 64-bit hosts.
62189         Port bitset code to hosts with unusual word sizes.
62190         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
62191         (build_collating_symbol):
62192         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
62193         argument is a bitset.  This is merely a style issue, but it makes
62194         it clearer that an entire array is expected.
62195         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
62196         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
62197         Port to the case where bitset_word is not the same as unsigned int.
62198         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62199         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
62200         Likewise.
62201         * lib/regexec.c (check_dst_limits_calc_pos_1,
62202         check_subexp_matching_top):
62203         (build_trtable, group_nodes_into_DFAstates):
62204         Likewise.
62205         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
62206         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
62207         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
62208         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
62209         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
62210         * lib/regcomp.c (optimize_subexps, lower_subexp):
62211         Work even if bitset_word has holes in its bitwise representation.
62212         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
62213         * lib/regexec.c (check_dst_limits_calc_pos_1,
62214         check_subexp_matching_top):
62215         Likewise.
62216         * lib/regex_internal.c (re_string_reconstruct):
62217         Don't assume UCHAR_MAX == 255.
62218         * lib/regex_internal.h (bitset_set_all): Likewise.
62219         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
62220         All uses changed.
62221         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
62222         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
62223         All uses changed.
62224         (BITSET_WORD_MAX): New macro.
62225         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
62226         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
62227         (bitset_empty, bitset_copy):
62228         Prefer sizeof (bitset) to multiplying it out ourselves.
62229         (bitset_not_merge): Remove; unused.
62230         (bitset_contain): Return bool, not unsigned int with one bit on.
62231         All callers changed.
62232         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
62233         alignment than re_node_set; do this by defining a new internal
62234         type struct dests_alloc and using it to allocate memory.
62235
62236 2005-09-05  Bruno Haible  <bruno@clisp.org>
62237
62238         * gnulib-tool (func_import): Fix comparison in handling of symbolic
62239         links.
62240
62241 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
62242
62243         * modules/size_max (Makefile.am): Add size_max.h
62244
62245 2005-09-04  Derek Price  <derek@ximbiot.com>
62246
62247         * gnulib-tool (func_import): Fix reversed $symbolic logic.
62248
62249 2005-09-03  Simon Josefsson  <jas@extundo.com>
62250
62251         * gnulib-tool: Fix typo.
62252
62253 2005-09-03  Simon Josefsson  <jas@extundo.com>
62254
62255         * config/srclist.txt: Add glibc bug 1293.
62256
62257 2005-09-03  Derek Price  <derek@ximbiot.com>
62258
62259         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
62260         From Larry Jones <lawrence.jones@ugs.com>.
62261
62262 2005-09-02  Simon Josefsson  <jas@extundo.com>
62263
62264         * modules/socklen: New file.
62265
62266 2005-09-02  Simon Josefsson  <jas@extundo.com>
62267
62268         * modules/havelib: New module.
62269
62270         * modules/gettext, modules/iconv, modules/lock, modules/readline:
62271         Use havelib.
62272
62273 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         Check for arithmetic overflow when calculating sizes, to prevent
62276         some buffer-overflow issues.  These patches are conservative, in the
62277         sense that when I couldn't determine whether an overflow was possible,
62278         I inserted a run-time check.
62279         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
62280         macros.
62281         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
62282         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
62283         (re_xnrealloc, re_x2nrealloc): New inline functions.
62284         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
62285         parse_bracket_exp):
62286         (build_equiv_class, build_charclass): Check for arithmetic overflow
62287         in size expression calculations.
62288         * lib/regex_internal.c (re_string_realloc_buffers):
62289         (build_wcs_upper_buffer, re_node_set_add_intersect):
62290         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
62291         (re_dfa_add_node, register_state): Likewise.
62292         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
62293         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
62294         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
62295         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
62296
62297 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62298
62299         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62300         m4/ulonglong.m4.  Problem reported by Martin Lambers.
62301
62302 2005-09-02  Bruno Haible  <bruno@clisp.org>
62303
62304         Support for lib vs. lib64 distinction on biarch platforms.
62305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
62306         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
62307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
62308
62309 2005-09-02  Bruno Haible  <bruno@clisp.org>
62310
62311         * gnulib-tool (import): In the other first-use case, provide defaults
62312         as well.
62313
62314 2005-09-02  Bruno Haible  <bruno@clisp.org>
62315
62316         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
62317         patches not yet found in the latest gettext release.
62318
62319 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62320
62321         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
62322         to avoid a collision with bits/local_lim.h in glibc.
62323         All uses changed.  Problem reported by Dmitry V. Levin in
62324         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
62325
62326         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
62327         bugs in int versus size_t comparisons.
62328         (re_string_context_at): Fix bug where the code assumed that
62329         Idx is signed.
62330
62331         Use bool where appropriate.
62332         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62333         All callers changed.
62334         (calc_eclosure_iter): Likewise, for ROOT arg.
62335         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62336         (build_charclass_op): Likewise, for NON_MATCH arg.
62337         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62338         (re_string_construct_common): Likewise, for ICASE arg.
62339         * lib/regexec.c (re_search_2_stub, re_search_stub):
62340         Likewise, for RET_LEN arg.
62341         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62342         (set_regs): Likewise, for FL_BACKTRACK arg.
62343         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62344         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62345         (calc_eclosure_iter, parse_bracket_exp):
62346         Use bool for internal variables that are booleans.
62347         * lib/regexec.c (re_search_internal, check_matching,
62348         proceed_next_node):
62349         (set_regs, build_sifted_states, sift_states_bkref):
62350         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62351         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62352         (find_collation_sequence_value):
62353         Likewise.
62354         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62355         (re_node_set_compare):
62356         Return bool, not int. All callers changed.
62357         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62358         (build_trtable, check_node_accept): Likewise.
62359         * lib/regex_internal.h: Include stdbool.h.
62360
62361         Fix bugs uncovered when converting to bool.
62362         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
62363         failure instead of charging ahead blindly.
62364         * lib/regex_internal.c (register_state): Likewise.
62365         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
62366         for freeing internal storage.
62367         (group_nodes_into_DFA_states): Use unsigned int, not int, for
62368         bitset pieces used as boolean, to avoid undefined behavior
62369         on hosts that do int overflow checking.
62370
62371 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62372
62373         * config/srclist.txt: Add glibc bugs 1285-1287.
62374
62375 2005-09-01  Jim Meyering  <jim@meyering.net>
62376
62377         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
62378         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
62379         Require gl_STAT_MACROS, too.
62380
62381 2005-09-01  Bruno Haible  <bruno@clisp.org>
62382
62383         * gnulib-tool (import): In the first-use case, provide defaults.
62384
62385 2005-09-01  Bruno Haible  <bruno@clisp.org>
62386
62387         * gnulib-tool (func_import): Remove the .tmp files.
62388
62389 2005-09-01  Bruno Haible  <bruno@clisp.org>
62390
62391         * gnulib-tool (func_import): Fix handling of symbolic links.
62392
62393 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62394
62395         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
62396         old glibc regex code mishandles strings longer than 2**31 bytes.
62397         This patch fixes this when the regex code is used in gnulib
62398         (i.e., outside glibc).
62399
62400         This patch should not affect the use of the regex code inside
62401         glibc.  No doubt this problem also needs to be handled for glibc
62402         as well, but the result will be an incompatible change to the
62403         glibc ABI, and the old ABI will have to be supported too.  That
62404         can be the the subject for another patch.
62405
62406         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
62407         governing whether the rest of this patch is active.  By default,
62408         the macro is disabled and the patch has no effect.
62409         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
62410         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
62411         (struct re_pattern_buffer, re_search, re_search_2, re_match):
62412         (re_match_2, re_set_registers): Use the new types.
62413         * lib/regex_internal.h (Idx, re_hashval_t): New types.
62414         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
62415         New macros.
62416         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
62417         (re_string_context_at, bin_tree_t, re_dfastate_t):
62418         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
62419         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
62420         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
62421         (re_string_char_size_at, re_string_wchar_at):
62422         (re_string_elem_size_at):
62423         Use the new types and macros to port to 64-bit hosts.
62424         Use unsigned types for internal values, so that the code
62425         mostly works even for arrays larger than SSIZE_MAX.
62426         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
62427         (search_duplicated_node, calc_eclosure_iter, fetch_number):
62428         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
62429         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
62430         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
62431         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
62432         (calc_inveclosure, parse_dup_op, build_range_exp):
62433         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
62434         (fetch_number, create_token_tree, mark_opt_subexp):
62435         Likewise.
62436         * lib/regex_internal.c (re_string_construct_common,
62437         create_ci_newstate):
62438         (create_cd_newstate, re_string_allocate, re_string_construct):
62439         (re_string_realloc_buffers, build_wcs_upper_buffer):
62440         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62441         (re_string_reconstruct, re_string_peek_byte_case):
62442         (re_string_fetch_byte_case, re_string_context_at):
62443         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62444         (re_node_set_init_copy, re_node_set_add_intersect):
62445         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62446         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62447         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62448         (re_acquire_state, re_acquire_state_context, register_state):
62449         Likewise.
62450         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
62451         search_cur_bkref_entry):
62452         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
62453         (re_search_internal, re_search_2_stub, re_search_stub)
62454         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
62455         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
62456         (update_cur_sifted_state, check_dst_limits):
62457         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62458         (check_subexp_limits, sift_states_bkref, merge_state_array):
62459         (check_subexp_matching_top, get_subexp, get_subexp_sub):
62460         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
62461         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62462         (expand_bkref_cache, check_node_accept_bytes):
62463         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
62464         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
62465         (acquire_init_state_context, check_halt_node_context):
62466         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
62467         (sift_states_backward, clean_state_log_if_needed):
62468         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62469         (find_recover_state, transit_state_sb, transit_state_mb):
62470         (transit_state_bkref, build_trtable, match_ctx_clean):
62471         Likewise.
62472         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62473         to work around an assumption that REG_MISSING is negative.
62474
62475         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62476         (seek_collating_symbol_entry) [defined _LIBC]:
62477         (lookup_collation_sequence_value) [defined _LIBC]:
62478         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62479         Use prototypes rather than old-style function definitions.
62480         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62481         (transit_state_sb) [0]:
62482         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62483
62484         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62485         rm_eo.
62486
62487         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62488         (optimize_subexps, lower_subexp):
62489         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62490         since the signed shift might overflow.  Use 1u<<31 instead.
62491         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62492         Likewise.
62493         * lib/regexec.c (check_dst_limits_calc_pos_1,
62494         check_subexp_matching_top): Likewise.
62495
62496         * lib/regcomp.c (optimize_subexps, lower_subexp):
62497         Use CHAR_BIT rather than 8, for clarity.
62498         * lib/regexec.c (check_dst_limits_calc_pos_1):
62499         (check_subexp_matching_top): Likewise.
62500         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62501         have to worry about portability issues when shifting it left.
62502         Remove no-longer-needed test for table_size > 0.
62503         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62504         in a word, as the resulting behavior is undefined.
62505         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62506         in one case, a <= should have been an <, and in another case the
62507         whole test was missing.
62508         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
62509         the standard name CHAR_BIT.
62510         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
62511         this is not true on one's complement and signed-magnitude hosts.
62512
62513         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
62514         next_last_offset.
62515         (struct re_dfa_t): Remove unused member states_alloc.
62516         * lib/regcomp.c (init_dfa): Don't initialize unused members.
62517
62518 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62519
62520         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
62521         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
62522         and large-file glibc and in 32-bit large-file Solaris.
62523
62524 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62525
62526         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
62527         lengths fit in regoff_t; this isn't true if regoff_t is the same
62528         width as size_t.
62529         * lib/regex.c (re_search_internal): 5th arg is LAST_START
62530         (= START + RANGE) instead of RANGE.  This avoids overflow
62531         problems when regoff_t is the same width as size_t.
62532         All callers changed.
62533         (re_search_2_stub): Check for overflow when adding the
62534         sizes of the two strings.
62535         (re_search_stub): Check for overflow when adding START
62536         to RANGE; if it occurs, substitute the extreme value.
62537
62538 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62539
62540         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
62541
62542 2005-08-31  Jim Meyering  <jim@meyering.net>
62543
62544         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
62545         a pointer-to-const.
62546         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
62547         (register_state): Likewise.
62548         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
62549         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62550         (group_nodes_into_DFAstates): Likewise.
62551
62552 2005-08-31  Jim Meyering  <jim@meyering.net>
62553
62554         * check-module: Add a FIXME comment.
62555
62556 2005-08-31  Eric Blake  <ebb9@byu.net>
62557
62558         * modules/unistd-safer (Files): Add unistd--.h.
62559         * modules/stdio-safer (Files): Add stdio--.h.
62560
62561 2005-08-31  Derek Price  <derek@ximbiot.com>
62562
62563         * lib/getdelim.c (getdelim): Return EOF on EOF.
62564         Reported by Larry Jones <lawrence.jones@ugs.com>.
62565
62566 2005-08-31  Bruno Haible  <bruno@clisp.org>
62567
62568         Avoid unnecessary diffs in the generated lib/Makefile.am.
62569         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
62570         the generated files.
62571         (func_import): Don't set cmd.
62572
62573 2005-08-31  Bruno Haible  <bruno@clisp.org>
62574
62575         * lib/strstr.c: Include <stddef.h>, for NULL.
62576         * lib/strcasestr.c: Likewise.
62577         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62578
62579 2005-08-31  Bruno Haible  <bruno@clisp.org>
62580
62581         * gnulib-tool: New option --macro-prefix.
62582         (func_import): Use macro_prefix.
62583         (import): Handle option --macro-prefix.
62584
62585 2005-08-31  Bruno Haible  <bruno@clisp.org>
62586
62587         * gnulib-tool (import): Rename most ac_* variables to cached_*.
62588         Also use new variables cached_lgpl, cached_libtool.
62589
62590 2005-08-31  Bruno Haible  <bruno@clisp.org>
62591
62592         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
62593         always instantiating them.
62594
62595 2005-08-31  Bruno Haible  <bruno@clisp.org>
62596
62597         * gnulib-tool (func_import): Read the previous cached settings
62598         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
62599         earlier added by gnulib but are now dropped. Warn when a gnulib file
62600         overwrites a non-gnulib file.
62601
62602 2005-08-31  Bruno Haible  <bruno@clisp.org>
62603
62604         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
62605         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
62606         projects that don't keep autogenerated files in CVS. Put into
62607         actioncmd only the specified modules, not the transitive closure.
62608
62609 2005-08-31  Bruno Haible  <bruno@clisp.org>
62610
62611         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
62612         Create directories that shall be filled.
62613         (import): Don't look for gl_* macros in configure.ac. Recurse across
62614         all directories containing a gnulib-cache.m4 files, if meaningful.
62615
62616 2005-08-31  Bruno Haible  <bruno@clisp.org>
62617
62618         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
62619         (import): Set seen_libtool when we see gl_LIBTOOL.
62620
62621 2005-08-31  Bruno Haible  <bruno@clisp.org>
62622
62623         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
62624         declaration macro definitions from generated gnulib.m4.
62625
62626 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
62627
62628         * lib/iconvme.h: Add prototype for iconv_alloc.
62629
62630 2005-08-29  Simon Josefsson  <jas@extundo.com>
62631
62632         * lib/iconvme.c: Fix errno.
62633
62634 2005-08-29  Bruno Haible  <bruno@clisp.org>
62635
62636         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
62637         that it works when the directory contains spaces.
62638
62639 2005-08-29  Bruno Haible  <bruno@clisp.org>
62640
62641         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
62642
62643 2005-08-29  Bruno Haible  <bruno@clisp.org>
62644
62645         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
62646         Emit more advice.
62647
62648 2005-08-29  Bruno Haible  <bruno@clisp.org>
62649         and Stepan Kasal  <kasal@ucw.cz>
62650
62651         * check-module: If more parameters are given, check each of them
62652         separately; add more exceptions, as noted by Jim Meyering.
62653         (check_module): New procedure.
62654         (%exempt_header): Now contains all exceptions.
62655
62656 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
62657
62658         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
62659
62660 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62661
62662         * lib/iconvme.c: Split iconv_string into iconv_alloc.
62663
62664 2005-08-28  Bruno Haible  <bruno@clisp.org>
62665
62666         * m4/gnulib-tool.m4: New file.
62667
62668 2005-08-27  Jim Meyering  <jim@meyering.net>
62669
62670         * modules/unistd-safer (Files): Add pipe-safer.c.
62671         * modules/fcntl-safer (Files): Add creat-safer.c.
62672
62673 2005-08-27  Jim Meyering  <jim@meyering.net>
62674
62675         * m4/stdlib-safer.m4: New file.  From coreutils.
62676         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
62677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
62678         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
62679         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
62680         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
62681
62682 2005-08-27  Jim Meyering  <jim@meyering.net>
62683
62684         * lib/fopen-safer.c: Merge minor changes from coreutils.
62685         * lib/dup-safer.c: Likewise.
62686         * lib/fd-safer.c: Likewise.
62687
62688         Merge from coreutils.
62689         * lib/stdio--.h: New file.
62690         * lib/stdlib--.h: New file.
62691         * lib/mkstemp-safer.c: New file.
62692
62693         GNU tar needs these.
62694         * lib/pipe-safer.c: New file.
62695         * lib/creat-safer.c: New file.
62696         * lib/fcntl--.h (creat): Define to creat_safer.
62697         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
62698         * lib/unistd--.h (pipe): Define to pipe_safer.
62699         * lib/unistd-safer.h: Declare pipe_safer.
62700
62701 2005-08-26  Simon Josefsson  <jas@extundo.com>
62702
62703         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
62704         Haible <bruno@clisp.org>.
62705
62706 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
62707
62708         * lib/regex_internal.h: Remove all references to
62709         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
62710         or better.
62711         (bitset_not, bitset_merge, bitset_not_merge):
62712         (bitset_mask, re_string_allocate, re_string_construct):
62713         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
62714         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
62715         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
62716         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
62717         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62718         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62719         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
62720         (re_acquire_state_context):
62721         Remove unnecessary forward decls.
62722         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
62723         Put __attribute at function definition,
62724         now that the function decl has been removed.
62725         * lib/regex_internal.c (re_string_peek_byte_case):
62726         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
62727         Likewise.
62728
62729 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
62730
62731         * m4/regex.m4: Add AC_PREREQ(2.50).
62732         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
62733
62734 2005-08-25  Simon Josefsson  <jas@extundo.com>
62735
62736         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
62737         __fsetlocking.
62738
62739 2005-08-25  Simon Josefsson  <jas@extundo.com>
62740
62741         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
62742         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
62743         GLIBC specific code.
62744
62745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62746
62747         Make regex safe for g++.  This fixes one real bug (an "err"
62748         that should have been "*err").  g++ problem reported by
62749         Sam Steingold.
62750         * lib/regex_internal.h (re_calloc): New macro, consistent with
62751         re_malloc etc.  All callers of calloc changed to use re_calloc.
62752         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
62753         not int.  All callers changed.
62754         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
62755         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
62756         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
62757         (find_recover_state): Change "err" to "*err"; this fixes what
62758         appears to be a real bug.
62759         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
62760         versus int.
62761
62762 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62763
62764         * modules/regex (Depends-on): Add malloc, since the code
62765         assumes that !malloc(0) means failure.
62766
62767 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62768
62769         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
62770
62771         alloca modernization/simplification for regex.
62772         * lib/regex.c: Remove portability cruft for alloca.  This no longer
62773         needs to be at the start of the file, and can be moved into
62774         regex_internal.h and simplified.
62775         * lib/regex_internal.h: Include <alloca.h>.
62776         (__libc_use_alloca) [!defined _LIBC]: New macro.
62777         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
62778         now works outside glibc.
62779
62780 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         * config/srclist.txt: Add glibc bugs 1241, 1245.
62783
62784 2005-08-25  Jim Meyering  <jim@meyering.net>
62785
62786         * lib/open-safer.c: Include <config.h>.
62787         Otherwise, we'd lose LARGEFILE support in any file using
62788         e.g. "fcntl--.h"
62789
62790 2005-08-25  Bruno Haible  <bruno@clisp.org>
62791
62792         * m4/minmax.m4: Require autoconf 2.52.
62793         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
62794         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
62795         alternatives of translit over the alphabet.
62796         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
62797
62798 2005-08-24  Simon Josefsson  <jas@extundo.com>
62799
62800         * tests/test-getpass.c: New file.
62801
62802 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62803
62804         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
62805         for GNU regex features.
62806
62807 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
62810         * lib/regex.h (regerror): Likewise.
62811
62812         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
62813         requires this.  (The code never needed it.)
62814
62815         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
62816         All uses of recently-renamed identifiers changed to use the new,
62817         POSIX-compliant names.  The code will build and run just fine
62818         without these changes, but it's better to eat our own dog food
62819         and use the standard-conforming names.
62820
62821         * lib/regex.h: Fix a multitude of POSIX name space violations.
62822         These changes have an effect only for programs that define
62823         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
62824         do not change anything for programs compiled in the normal way.
62825         Also, there is no effect on the ABI.
62826
62827         (_REGEX_SOURCE): New macro.
62828         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
62829         defined and _GNU_SOURCE is not; this fixes a name space violation.
62830
62831         Rename the following macros to obey POSIX requirements.
62832         The old names are still visible as macros if _REGEX_SOURCE is defined.
62833         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
62834         RE_BACKSLASH_ESCAPE_IN_LISTS.
62835         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
62836         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
62837         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
62838         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
62839         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
62840         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
62841         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
62842         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
62843         (REG_INTERVALS): renamed from RE_INTERVALS.
62844         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
62845         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
62846         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
62847         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
62848         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
62849         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
62850         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
62851         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
62852         RE_UNMATCHED_RIGHT_PAREN_ORD.
62853         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
62854         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
62855         (REG_DEBUG): renamed from RE_DEBUG.
62856         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
62857         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
62858         unusual, since we can't clash with the POSIX REG_ICASE.
62859         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
62860         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
62861         (REG_NO_SUB): renamed from RE_NO_SUB.
62862         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
62863         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
62864         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
62865         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
62866         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
62867         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
62868         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
62869         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
62870         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
62871         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
62872         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
62873         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
62874         RE_SYNTAX_POSIX_MINIMAL_BASIC.
62875         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
62876         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
62877         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
62878         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
62879         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
62880         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
62881         (REG_FIXED): Renamed from REGS_FIXED.
62882         (REG_NREGS): Renamed from RE_NREGS.
62883
62884         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
62885         of other REG_* macros, since POSIX says the user is allowed to
62886         #undef these macros selectively.
62887
62888         (reg_errcode_t): Update comment stating what other tables need
62889         to be consistent.
62890
62891         Rename the following enum values to obey POSIX requirements.
62892         The old names are still visible as macros.
62893         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
62894         is not defined, since GNU is supposed to be a superset of POSIX as
62895         much as possible, and since we want reg_errcode_t to be a signed
62896         type for implementation consistency.
62897         (_REG_NOERROR): Renamed from REG_NOERROR.
62898         (_REG_NOMATCH): Renamed from REG_NOMATCH.
62899         (_REG_BADPAT): Renamed from REG_BADPAT.
62900         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
62901         (_REG_ECTYPE): Renamed from REG_ECTYPE.
62902         (_REG_EESCAPE): Renamed from REG_EESCAPE.
62903         (_REG_ESUBREG): Renamed from REG_ESUBREG.
62904         (_REG_EBRACK): Renamed from REG_EBRACK.
62905         (_REG_EPAREN): Renamed from REG_EPAREN.
62906         (_REG_EBRACE): Renamed from REG_EBRACE.
62907         (_REG_BADBR): Renamed from REG_BADBR.
62908         (_REG_ERANGE): Renamed from REG_ERANGE.
62909         (_REG_ESPACE): Renamed from REG_ESPACE.
62910         (_REG_BADRPT): Renamed from REG_BADRPT.
62911         (_REG_EEND): Renamed from REG_EEND.
62912         (_REG_ESIZE): Renamed from REG_ESIZE.
62913         (_REG_ERPAREN): Renamed from REG_ERPAREN.
62914         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
62915         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
62916         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
62917         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
62918
62919         (_REG_RE_NAME, _REG_RM_NAME): New macros.
62920         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
62921         changed.  But support the old name if the new one is not defined
62922         and if _REGEX_SOURCE.
62923
62924         Change the following member names in struct re_pattern_buffer.
62925         The old names are still supported if !_REGEX_SOURCE.
62926         The new names are always supported, regardless of _REGEX_SOURCE.
62927         (re_buffer): Renamed from buffer.
62928         (re_allocated): Renamed from allocated.
62929         (re_used): Renamed from used.
62930         (re_syntax): Renamed from syntax.
62931         (re_fastmap): Renamed from fastmap.
62932         (re_translate): Renamed from translate.
62933         (re_can_be_null): Renamed from can_be_null.
62934         (re_regs_allocated): Renamed from regs_allocated.
62935         (re_fastmap_accurate): Renamed from fastmap_accurate.
62936         (re_no_sub): Renamed from no_sub.
62937         (re_not_bol): Renamed from not_bol.
62938         (re_not_eol): Renamed from not_eol.
62939         (re_newline_anchor): Renamed from newline_anchor.
62940
62941         Change the following member names in struct re_registers.
62942         The old names are still supported if !_REGEX_SOURCE.
62943         The new names are always supported, regardless of _REGEX_SOURCE.
62944         (rm_num_regs): Renamed from num_regs.
62945         (rm_start): Renamed from start.
62946         (rm_end): Renamed from end.
62947
62948         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
62949         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
62950         Prepend __ to parameter names.
62951
62952         Undo yesterday's changes.
62953
62954 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62955
62956         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
62957         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
62958         lib/regex.c.
62959
62960 2005-08-24  Jim Meyering  <jim@meyering.net>
62961
62962         Sync from coreutils.
62963         * m4/fcntl-safer.m4: New file.
62964
62965         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
62966         and object files for this module.
62967
62968 2005-08-24  Jim Meyering  <jim@meyering.net>
62969
62970         Sync from coreutils.
62971         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
62972
62973 2005-08-24  Jim Meyering  <jim@meyering.net>
62974
62975         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
62976         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
62977
62978 2005-08-24  Jim Meyering  <jim@meyering.net>
62979
62980         * modules/fcntl-safer: New module.
62981         * modules/fts (Depends-on): Add fcntl-safer.
62982         * MODULES.html.sh (File descriptor based Input/Output):
62983         Add fcntl-safer.
62984
62985 2005-08-24  Bruno Haible  <bruno@clisp.org>
62986
62987         Support for unit test modules.
62988         * modules/README: Mention tests modules.
62989         * modules/TEMPLATE-TESTS: New file.
62990         * gnulib-tool: New options --extract-tests-module, --with-tests and
62991         --tests-base (unused for the moment).
62992         (testsbase, inctests): New variables.
62993         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
62994         (func_verify_module): Exclude TEMPLATE-TESTS.
62995         (func_verify_nontests_module, func_verify_tests_module): New functions.
62996         (func_get_dependencies): Add implicit dependency for tests modules.
62997         (func_get_tests_module): New function.
62998         (func_modules_transitive_closure): When --with-tests was specified,
62999         include the unit tests as well, unless explicitly avoided.
63000         (func_emit_lib_Makefile_am): Ignore the tests modules here.
63001         (func_emit_tests_Makefile_am): New function.
63002         (func_create_testdir): When --with-tests was specified, emit a
63003         tests/ directory.
63004         * MODULES.html.sh (Future developments): Update.
63005
63006 2005-08-24  Bruno Haible  <bruno@clisp.org>
63007
63008         * modules/tls-tests: New file.
63009         * tests/test-tls.c: New file, from GNU gettext.
63010
63011 2005-08-24  Bruno Haible  <bruno@clisp.org>
63012
63013         * modules/lock-tests: New file.
63014         * tests/test-lock.c: New file, from GNU gettext.
63015
63016 2005-08-24  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/lock.h: Add multiple inclusion guard.
63019         * lib/tls.h: Add multiple inclusion guard.
63020
63021 2005-08-24  Bruno Haible  <bruno@clisp.org>
63022
63023         * gnulib-tool: Add support for the --aux-dir option to
63024         --create-testdir, --create-megatestdir, --test, --megatest.
63025         (func_create_testdir, func_create_megatestdir): Optionally emit a
63026         AC_CONFIG_AUX_DIR directive.
63027         (create-testdir, create-megatestdir, test, megatest): Provide a
63028         default value for $auxdir.
63029
63030 2005-08-24  Bruno Haible  <bruno@clisp.org>
63031
63032         * gnulib-tool (import): Use compound statement instead of subshell
63033         where possible.
63034
63035 2005-08-24  Bruno Haible  <bruno@clisp.org>
63036
63037         * gnulib-tool (import): Change --aux-dir default to "build-aux".
63038
63039 2005-08-24  Bruno Haible  <bruno@clisp.org>
63040
63041         * gnulib-tool (func_version): Update.
63042
63043 2005-08-24  Bruno Haible  <bruno@clisp.org>
63044
63045         * gnulib-tool (func_import, func_create_testdir,
63046         func_create_megatestdir): Quote all autoconf macro arguments.
63047
63048 2005-08-24  Bruno Haible  <bruno@clisp.org>
63049
63050         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
63051         option --force, because --force causes the aclocal.m4 of each
63052         subdirectory to be newer than the corresponding config.h.in.
63053
63054 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
63057         All contents moved to gl_REGEX.
63058         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
63059         assume that it does.
63060
63061 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63062
63063         * lib/regex.h (REG_NOSYS)
63064         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
63065         Define, since POSIX requires it as of 2001.
63066         (_REG_ENOSYS)
63067         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
63068         New private symbol, used to keep the enum signed in all cases.
63069         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
63070         Youngman in
63071         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
63072
63073         * lib/regex_internal.c (re_string_skip_chars, register_state):
63074         (calc_state_hash):
63075         Remove forward decls; no longer needed now that we use prototypes.
63076         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
63077         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
63078         (clean_state_log_if_needed): Likewise.
63079
63080 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63081
63082         * config/srclist.txt: Add glibc bugs 1231-1233.
63083
63084 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         Fix problems reported by Sam Steingold in
63087         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
63088         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
63089         assumed that reg_errcode_t is a signed type, which is not
63090         necessarily true if _XOPEN_SOURCE is not defined.
63091         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
63092         since some compilers warn about it otherwise.
63093
63094 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
63097         (init_word_char, create_initial_state, duplicate_node_closure):
63098         (fetch_token, peek_token_bracket, build_range_exp):
63099         (build_collating_symbol): Remove forward decls; no longer needed
63100         now that we use prototypes.
63101
63102         * lib/regcomp.c:
63103         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
63104         (re_compile_fastmap_iter, regcomp, regerror, regfree):
63105         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
63106         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
63107         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
63108         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
63109         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
63110         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
63111         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
63112         (build_range_exp, build_collating_symbol, parse_bracket_exp):
63113         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
63114         (build_charclass, build_charclass_op, fetch_number, create_tree):
63115         (create_token_tree, mark_opt_subexp, duplicate_tree):
63116         Use prototypes rather than old-style definitions.
63117
63118         * lib/regex_internal.c:
63119         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
63120         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63121         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63122         (re_string_reconstruct, re_string_peek_byte_case):
63123         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63124         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63125         (re_node_set_init_copy, re_node_set_add_intersect):
63126         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63127         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63128         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63129         (re_acquire_state, re_acquire_state_context, register_state):
63130         (create_ci_newstate, create_cd_newstate, free_state):
63131         Likewise.
63132         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
63133         re_search_2):
63134         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
63135         (re_search_internal, prune_impossible_nodes):
63136         (acquire_init_state_context, check_matching, static):
63137         (check_halt_node_context, check_halt_state_context, proceed_next_node):
63138         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
63139         (update_regs, sift_states_backward, build_sifted_states):
63140         (clean_state_log_if_needed, merge_state_array):
63141         (update_cur_sifted_state, add_epsilon_src_nodes):
63142         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
63143         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
63144         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
63145         (find_recover_state, check_subexp_matching_top, transit_state_mb):
63146         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
63147         (check_arrival, check_arrival_add_next_nodes):
63148         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63149         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63150         (check_node_accept_bytes, check_node_accept, extend_buffers):
63151         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
63152         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
63153         (sift_ctx_init):
63154         Likewise.
63155
63156         * lib/regex_internal.h:
63157         (re_string_allocate, re_string_construct, re_string_reconstruct):
63158         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
63159         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
63160         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
63161         (re_string_context_at, re_string_peek_byte_case):
63162         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
63163         is defined, since we now use prototypes always.
63164
63165         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
63166         C89 or better.  All uses removed.
63167
63168 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63169
63170         * config/srclist.txt: Add glibc bugs 1220-1227.
63171
63172 2005-08-20  Jim Meyering  <jim@meyering.net>
63173
63174         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
63175         of unused local, dfa.
63176
63177 2005-08-20  Bruno Haible  <bruno@clisp.org>
63178
63179         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
63180
63181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
63184         (re_node_set_insert_last, re_dfa_add_node):
63185         Rename local variables to avoid GCC shadowing warnings.
63186
63187 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
63190         [defined lint]: Suppress bogus uninitialized-variable warnings.
63191
63192         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
63193         and let the caller return REG_ESPACE if out of space.  This
63194         removes an uninitialied-variable warning with GCC 4.0.1, and also
63195         avoids taking the address of a local variable.  All callers
63196         changed.
63197
63198 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
63201         $LIBCSRC/posix/regexec.c.
63202         Add glibc bug 1217 for regcomp.c.
63203
63204 2005-08-19  Jim Meyering  <jim@meyering.net>
63205
63206         * lib/regexec.c (proceed_next_node): Redo local variables to
63207         avoid GCC shadowing warnings.
63208
63209 2005-08-18  Bruno Haible  <bruno@clisp.org>
63210
63211         * lib/strstr.c (strstr): Fix return value in multibyte case.
63212         * lib/strcasestr.c (strcasestr): Likewise.
63213
63214 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
63217
63218 2005-08-17  Jim Meyering  <jim@meyering.net>
63219
63220         Make the %s format (seconds since the epoch) work for a negative
63221         number and when used with a zero-padded field width, e.g. %015s.
63222
63223         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
63224         label so that it precedes the code to set `digits'.  Otherwise,
63225         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
63226         print `00-22'.  Now, it prints `-0022', as it should.
63227
63228 2005-08-17  Bruno Haible  <bruno@clisp.org>
63229
63230         * modules/strstr (Files): Add m4/mbrtowc.m4.
63231         (Depends-on): Add mbuiter.
63232
63233 2005-08-17  Bruno Haible  <bruno@clisp.org>
63234
63235         * modules/strcasestr: New file.
63236         * MODULES.html.sh (String handling, based on ANSI C 89): Add
63237         strcasestr.
63238
63239 2005-08-17  Bruno Haible  <bruno@clisp.org>
63240
63241         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
63242
63243 2005-08-17  Bruno Haible  <bruno@clisp.org>
63244
63245         * modules/mbuiter: New file.
63246         * MODULES.html.sh (Extended multibyte and wide character utilities):
63247         Add mbuiter.
63248
63249 2005-08-17  Bruno Haible  <bruno@clisp.org>
63250
63251         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
63252         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
63253
63254 2005-08-17  Bruno Haible  <bruno@clisp.org>
63255
63256         * m4/strcasestr.m4: New file.
63257
63258 2005-08-17  Bruno Haible  <bruno@clisp.org>
63259
63260         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
63261         * lib/strstr.c: Completely rewritten, with multibyte locale support.
63262
63263 2005-08-17  Bruno Haible  <bruno@clisp.org>
63264
63265         * lib/strcasestr.h: New file.
63266         * lib/strcasestr.c: New file.
63267
63268 2005-08-17  Bruno Haible  <bruno@clisp.org>
63269
63270         * lib/strcasecmp.c: Use mbuiter.h.
63271
63272 2005-08-17  Bruno Haible  <bruno@clisp.org>
63273
63274         * lib/mbuiter.h: New file.
63275
63276 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
63279         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
63280         and gl_GETOPT are both invoked via different paths (as happens
63281         with GNU tar CVS because it uses both argp and getopt), the former
63282         wins.
63283
63284 2005-08-16  Bruno Haible  <bruno@clisp.org>
63285
63286         * modules/tls: New file.
63287         * MODULES.html.sh (Multithreading): Add tls.
63288
63289 2005-08-16  Bruno Haible  <bruno@clisp.org>
63290
63291         * modules/strnlen1: New file.
63292         * MODULES.html.sh (String handling): Add strnlen1.
63293
63294 2005-08-16  Bruno Haible  <bruno@clisp.org>
63295
63296         * modules/strcase (Files): Add m4/mbrtowc.m4.
63297         (Depends-on): Add strnlen1, mbchar.
63298
63299 2005-08-16  Bruno Haible  <bruno@clisp.org>
63300
63301         * modules/mbiter: New file.
63302         * MODULES.html.sh (Extended multibyte and wide character utilities):
63303         Add mbiter.
63304
63305 2005-08-16  Bruno Haible  <bruno@clisp.org>
63306
63307         * modules/mbfile: New file.
63308         * MODULES.html.sh (Extended multibyte and wide character utilities):
63309         Add mbfile.
63310
63311 2005-08-16  Bruno Haible  <bruno@clisp.org>
63312
63313         * modules/mbchar: New file.
63314         * MODULES.html.sh (Extended multibyte and wide character utilities):
63315         New section.
63316
63317 2005-08-16  Bruno Haible  <bruno@clisp.org>
63318
63319         * m4/tls.m4: New file, from GNU gettext.
63320
63321 2005-08-16  Bruno Haible  <bruno@clisp.org>
63322
63323         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
63324         always.
63325         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
63326
63327 2005-08-16  Bruno Haible  <bruno@clisp.org>
63328
63329         * m4/mbiter.m4: New file.
63330
63331 2005-08-16  Bruno Haible  <bruno@clisp.org>
63332
63333         * m4/mbfile.m4: New file.
63334
63335 2005-08-16  Bruno Haible  <bruno@clisp.org>
63336
63337         * m4/mbchar.m4: New file.
63338
63339 2005-08-16  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/tls.h: New file, from GNU gettext.
63342         * lib/tls.c: New file, from GNU gettext.
63343
63344 2005-08-16  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/strnlen1.h: New file.
63347         * lib/strnlen1.c: New file.
63348
63349 2005-08-16  Bruno Haible  <bruno@clisp.org>
63350
63351         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63352         (mbi_init): Update.
63353         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63354         NUL byte, not after it.
63355
63356 2005-08-16  Bruno Haible  <bruno@clisp.org>
63357
63358         * lib/strcase.h (strcasecmp): Add note in comments.
63359         * lib/strncasecmp.c: Use code from strcasecmp.c.
63360         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
63361         (strcasecmp): Work correctly in multibyte locales.
63362
63363 2005-08-16  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/mbiter.h: New file.
63366
63367 2005-08-16  Bruno Haible  <bruno@clisp.org>
63368
63369         * lib/mbfile.h: New file.
63370
63371 2005-08-16  Bruno Haible  <bruno@clisp.org>
63372
63373         * lib/mbchar.h: New file.
63374         * lib/mbchar.c: New file.
63375
63376 2005-08-16  Bruno Haible  <bruno@clisp.org>
63377
63378         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
63379         the valid ones. Makes the comparison operations transitive:
63380         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
63381         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
63382
63383 2005-08-15  Simon Josefsson  <jas@extundo.com>
63384
63385         * modules/ssize_t (License): Change to 'unlimited'.
63386
63387         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
63388
63389 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
63392         Add comments for each pending glibc patch.
63393
63394 2005-08-15  Bruno Haible  <bruno@clisp.org>
63395
63396         * lib/regex.h (__restrict_arr): Don't define to __restrict if
63397         __cplusplus is defined.
63398
63399 2005-08-14  Jim Meyering  <jim@meyering.net>
63400
63401         Sync from coreutils.
63402
63403         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
63404         Use the hash-table-based cycle-detection code not just when
63405         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
63406         Reported by James Youngman in
63407         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
63408         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
63409         FTS_TIGHT_CYCLE_CHECK.
63410         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
63411         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
63412         once again.
63413         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
63414         * lib/fts.c (fd_safer): Remove decl.
63415         Include fcntl--.h rather than unistd-safer.h
63416         (fts_safe_changedir): Don't call fd_safer; no longer needed
63417         now that we include fcntl--.h.
63418
63419 2005-08-12  Simon Josefsson  <jas@extundo.com>
63420
63421         * modules/getndelim2: Use ssize_t module.
63422         * modules/getnline: Likewise.
63423         * modules/safe-read: Likewise.
63424         * modules/xreadlink: Likewise.
63425
63426         * modules/ssize_t: New file.
63427
63428 2005-08-12  Simon Josefsson  <jas@extundo.com>
63429
63430         * m4/readline.m4: Look for termcap, curses or ncurses if required.
63431
63432 2005-08-12  Simon Josefsson  <jas@extundo.com>
63433
63434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63435         ssize_t.
63436
63437 2005-08-12  Simon Josefsson  <jas@extundo.com>
63438
63439         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
63440         readline, getdelim and check_version.
63441         (Support for systems lacking ISO C 99: Sizes of integer types):
63442         Add size_max.
63443
63444 2005-08-12  Bruno Haible  <bruno@clisp.org>
63445
63446         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
63447
63448 2005-08-11  Simon Josefsson  <jas@extundo.com>
63449
63450         * modules/readline: New file.
63451
63452         * modules/strnlen (Files): Add strnlen.h.
63453
63454 2005-08-11  Simon Josefsson  <jas@extundo.com>
63455
63456         * m4/readline.m4: New file.
63457
63458 2005-08-11  Simon Josefsson  <jas@extundo.com>
63459
63460         * lib/readline.h, readline.c: New file.
63461
63462 2005-08-11  Simon Josefsson  <jas@extundo.com>
63463
63464         * doc/gnulib.texi (Initial import, Finishing touches): Mention
63465         gl_AVOID.
63466
63467 2005-08-11  Bruno Haible  <bruno@clisp.org>
63468
63469         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63470
63471 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63472
63473         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63474
63475 2005-08-10  Simon Josefsson  <jas@extundo.com>
63476
63477         * tests/test-iconvme.c: New file.
63478
63479 2005-08-10  Simon Josefsson  <jas@extundo.com>
63480
63481         * m4/strnlen.m4: New file.
63482
63483         * m4/strndup.m4: Don't check for strnlen declaration, done in
63484         strnlen.m4.
63485
63486 2005-08-10  Simon Josefsson  <jas@extundo.com>
63487
63488         * lib/strndup.c: Use strnlen.h.
63489
63490         * lib/strnlen.h: New file.
63491
63492 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63493
63494         * README: Typos.
63495
63496 2005-08-02  Simon Josefsson  <jas@extundo.com>
63497
63498         * modules/readline: New file.
63499
63500 2005-08-02  Simon Josefsson  <jas@extundo.com>
63501
63502         * modules/getdelim: New file.
63503
63504         * modules/getline: Rewrite, don't use getndelim2.
63505
63506 2005-08-02  Simon Josefsson  <jas@extundo.com>
63507
63508         * m4/getline.m4: Separate out getdelim stuff into separate module.
63509
63510         * m4/getdelim.m4: New file.
63511
63512 2005-08-02  Simon Josefsson  <jas@extundo.com>
63513
63514         * lib/getline.h, getline.c: Rewrite.
63515
63516         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
63517
63518 2005-07-31  Bruno Haible  <bruno@clisp.org>
63519
63520         * lib/lock.h (gl_lock_initializer): New macro.
63521         (gl_lock_define_initialized): Use it.
63522         (gl_rwlock_initializer): New macro.
63523         (gl_rwlock_define_initialized): Use it.
63524         (gl_recursive_lock_initializer): New macro.
63525         (gl_recursive_lock_define_initialized): Use it.
63526
63527 2005-07-30  Karl Berry  <karl@gnu.org>
63528
63529         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
63530         Report from Ben Pfaff, regarding getopt.
63531
63532 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
63533
63534         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
63535         normal way.
63536         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
63537         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
63538         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
63539         (gl_GETOPT): Use the new macros.  Most of the implementation
63540         is moved to the new macros.  This is for programs like Emacs
63541         that don't want all the functionality of gl_GETOPT.
63542
63543 2005-07-26  Bruno Haible  <bruno@clisp.org>
63544
63545         * m4/lock.m4: Update from GNU gettext.
63546
63547 2005-07-26  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/lock.h: Update from GNU gettext.
63550         * lib/lock.c: Update from GNU gettext.
63551
63552 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
63555         obsolescent AC_TRY_RUN.  Include the default includes files, for
63556         'exit'.
63557
63558 2005-07-24  Bruno Haible  <bruno@clisp.org>
63559
63560         * modules/visibility: New file.
63561         * MODULES.html.sh (Misc): Add visibility.
63562
63563 2005-07-24  Bruno Haible  <bruno@clisp.org>
63564
63565         * m4/visibility.m4: New file.
63566
63567 2005-07-24  Bruno Haible  <bruno@clisp.org>
63568
63569         * doc/visibility.texi: New file.
63570
63571 2005-07-22  Bruno Haible  <bruno@clisp.org>
63572
63573         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
63574         $(ALLOCA_H), redundant through BUILT_SOURCES.
63575         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
63576         redundant through BUILT_SOURCES.
63577         * modules/byteswap (Makefile.am): Remove explicit dependency on
63578         $(BYTESWAP_H), redundant through BUILT_SOURCES.
63579         * modules/fnmatch (Makefile.am): Remove explicit dependency on
63580         $(FNMATCH_H), redundant through BUILT_SOURCES.
63581         * modules/getopt (Makefile.am): Remove explicit dependency on
63582         $(GETOPT_H), redundant through BUILT_SOURCES.
63583         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
63584         redundant through BUILT_SOURCES.
63585         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
63586         redundant through BUILT_SOURCES.
63587         * modules/stdbool (Makefile.am): Remove explicit dependency on
63588         $(STDBOOL_H), redundant through BUILT_SOURCES.
63589         * modules/stdint (Makefile.am): Remove explicit dependency on
63590         $(STDINT_H), redundant through BUILT_SOURCES.
63591         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
63592         Remove explicit dependency on $(SYSEXITS_H).
63593         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
63594
63595 2005-07-18  Simon Josefsson  <jas@extundo.com>
63596
63597         * lib/check-version.c (check_version): Accept identical versions too.
63598
63599 2005-07-18  Bruno Haible  <bruno@clisp.org>
63600
63601         * modules/lock: New file.
63602         * MODULES.html.sh (Multithreading): New section.
63603
63604 2005-07-18  Bruno Haible  <bruno@clisp.org>
63605
63606         * m4/lock.m4: New file, from GNU gettext.
63607
63608 2005-07-18  Bruno Haible  <bruno@clisp.org>
63609
63610         * lib/lock.h: New file, from GNU gettext.
63611         * lib/lock.c: New file, from GNU gettext.
63612
63613 2005-07-18  Bruno Haible  <bruno@clisp.org>
63614
63615         * lib/lock.h (gl_once_t): New type.
63616         (gl_once_define, gl_once): New macros.
63617         * lib/lock.c (fresh_once): New variable.
63618         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
63619         functions.
63620
63621 2005-07-16  Simon Josefsson  <jas@extundo.com>
63622
63623         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
63624         workaround, suggested by Bruno.
63625
63626 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         * modules/xalloc (Depends-on): Add xalloc-die.
63629         * modules/xvasprintf (Depends-on): Add xalloc-die.
63630
63631 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
63634         with a minor change.
63635
63636 2005-07-15  Bruno Haible  <bruno@clisp.org>
63637
63638         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
63639         When using lib/poll.c, define poll as rpl_poll.
63640
63641 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * modules/argp (Depends-on): Remove unlocked-io.
63644
63645 2005-07-14  Derek Price  <derek@ximbiot.com>
63646
63647         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
63648         for glob symlink bug.
63649
63650 2005-07-14  Bruno Haible  <bruno@clisp.org>
63651
63652         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
63653         Instead, test for *_unlocked function declarations directly.
63654
63655 2005-07-11  Simon Josefsson  <jas@extundo.com>
63656
63657         * modules/size_max: New file.
63658
63659         * modules/xsize: Depend on size_max module for size_max.m4.
63660
63661 2005-07-11  Simon Josefsson  <jas@extundo.com>
63662
63663         * lib/size_max.h: New file.
63664
63665 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
63668         copyright symbol and the year.
63669         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
63670         (version_etc_va): Use parameterized copyright notice.
63671         Reword to conform to the current GNU coding standards.
63672
63673 2005-07-11  Karl Berry  <karl@gnu.org>
63674
63675         * doc/gnulib.texi (Quoting): new node.
63676         (Initial import): more info, from Patrice.
63677
63678 2005-07-11  Bruno Haible  <bruno@clisp.org>
63679
63680         * gnulib-tool (func_usage): Document option --avoid.
63681         (Command line options): Handle --avoid.
63682         (func_acceptable): New function.
63683         (func_modules_transitive_closure): Use it.
63684
63685 2005-07-11  Bruno Haible  <bruno@clisp.org>
63686
63687         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
63688         Reported by Jim Meyering.
63689
63690 2005-07-10  Bruno Haible  <bruno@clisp.org>
63691
63692         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
63693         Needed when size_t is smaller than 'unsigned int'.
63694         Reported by Paul Eggert.
63695
63696 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63697
63698         * modules/argp (Depends-on): Add unlocked-io
63699
63700 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63701
63702         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
63703         block of defines.
63704
63705 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * config/srclist.txt: Comment out regcomp.c, since we have a porting
63708         fix now.
63709
63710 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
63711         and Paul Eggert  <eggert@cs.ucla.edu>
63712
63713         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
63714         in wint_t, not wchar_t.  Remove now-unnecessary cast.
63715
63716 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         * modules/regex (Files): Add lib/regex_internal.c,
63719         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
63720         (Depends-on): Add extensions.
63721         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
63722
63723 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63724
63725         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
63726         pathconf.
63727         * m4/same.m4 (gl_SAME): Likewise.
63728         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
63729
63730         * m4/regex.m4: Adjust to new libc regex implementation.
63731         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
63732         all the .c and .h parts of (the new) regex.
63733         Quote the m4 stuff better.
63734         Check for RE_ICASE bug of old gnulib.
63735         Check for REG_STARTEND of recent libc.
63736         Rename local variables from jm_* to gl_*.
63737         Quote operand of "test -f".
63738         Say "recent enough" version of libc, not "version 2".
63739         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
63740         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
63741         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
63742         Remove check for btowc, isascii.
63743         Require AM_LANGINFO_CODESET.
63744
63745 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         * lib/regex.c, regex.h: Sync from libc.
63748         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
63749         * lib/regexec.c:
63750         New files, synced from libc, except that regex_internal.h
63751         currently has a small porting fix.
63752
63753 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63754
63755         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
63756         regex_internal.c, regexec.c.
63757         Add regex_internal.h too, but as a comment, since the libc version
63758         is currently broken in gnulib mode.
63759
63760 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         Support programs like Emacs that use gnulib but not gettext.
63763         * MODULES.html.sh (Internationalization functions): Add gettext-h.
63764         * modules/gettext-h: New file.
63765         * modules/gettext (Files): Remove lib/gettext.h.
63766         (Depends-on): Add gettext-h.
63767         (Makefile.am): Remove lib_SOURCES.
63768         * modules/argmatch, modules/c-stack, modules/closeout:
63769         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
63770         * modules/execute, modules/file-type, modules/getaddrinfo:
63771         * modules/getopt, modules/human, modules/javacomp:
63772         * modules/javaexec, modules/mkdir-p, modules/obstack:
63773         * modules/openat, modules/pagealign_alloc, modules/pipe:
63774         * modules/quotearg, modules/regex, modules/rpmatch:
63775         * modules/unicodeio, modules/userspec, modules/version-etc:
63776         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
63777         * modules/xsetenv:
63778         Depend on gettext-h, not gettext.
63779
63780 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63781
63782         * gnulib-tool (func_import): Add support for 'public domain' license.
63783         * modules/alloca, modules/atexit, modules/memmove:
63784         Now public domain, not GPL.
63785         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
63786         * modules/realloc, modules/strerror, modules/strtod:
63787         Now LGPL, not GPL.
63788
63789 2005-07-05  Bruno Haible  <bruno@clisp.org>
63790
63791         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
63792         autoconf CVS. Needed for mingw.
63793
63794 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63795
63796         Remove the dependency of the strftime module on the tzset module.
63797         * modules/strftime (Depends-on): Remove dependency on tzset.
63798
63799 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63800
63801         Remove the dependency of the strftime module on the tzset module.
63802         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
63803         gl_FUNC_TZSET_CLOBBER.
63804
63805 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         Remove the dependency of the strftime module on the tzset module.
63808         * lib/strftime.c (my_strftime)
63809         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
63810         Copy the input structure, to work around some of the bug with
63811         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
63812         Solaris releases, you should also use the tzset module, but we won't
63813         require it as a dependency any more since we don't want LGPLed code
63814         to depend on GPLed code.
63815
63816 2005-07-02  Jim Meyering  <jim@meyering.net>
63817
63818         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
63819         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
63820         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
63821         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
63822
63823 2005-07-02  Jim Meyering  <jim@meyering.net>
63824
63825         * lib/backupfile.c (backup_args): Change a `0' to NULL.
63826
63827 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63828
63829         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
63830         declares only 'struct timespec;' (!).
63831
63832 2005-07-01  Jim Meyering  <jim@meyering.net>
63833
63834         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
63835         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
63836         * lib/save-cwd.c, tempname.c:
63837         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63838         and don't include <sys/file.h>).
63839
63840 2005-06-29  Jim Meyering  <jim@meyering.net>
63841
63842         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
63843         type name.  Use the variable name instead.
63844         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
63845         Likewise.
63846
63847 2005-06-28  Simon Josefsson  <jas@extundo.com>
63848
63849         * modules/check-version (Files): Add check-version.m4.
63850
63851 2005-06-28  Simon Josefsson  <jas@extundo.com>
63852
63853         * m4/check-version.m4: New file, suggested by Jim Meyering
63854         <jim@meyering.net>.
63855
63856 2005-06-28  Simon Josefsson  <jas@extundo.com>
63857
63858         * lib/check-version.h, lib/check-version.c: New files.
63859
63860 2005-06-28  Simon Josefsson  <jas@extundo.com>
63861
63862         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
63863         collision with global variable.  Better indentation.  Don't
63864         increment buffer pointer beyond buffer end.  Based on comments
63865         from Paul Eggert <eggert@cs.ucla.edu>.
63866
63867         * lib/base64.h: Indent.
63868
63869 2005-06-28  Simon Josefsson  <jas@extundo.com>
63870
63871         * doc/gnulib.texi (Library version handling): New section.
63872
63873 2005-06-28  Jim Meyering  <jim@meyering.net>
63874
63875         * check-module (find_included_lib_files): Hard-code another
63876         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
63877         but modules/fts-lgpl (correctly) does not list those files.
63878
63879         * modules/canonicalize (Files): Add lib/pathmax.h.
63880
63881 2005-06-25  Simon Josefsson  <jas@extundo.com>
63882
63883         * modules/check-version: New file.
63884
63885 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
63886
63887         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
63888         initializer of struct addrinfo, as an indication that we don't
63889         care how many members the structure has.
63890
63891 2005-06-24  Derek Price  <derek@ximbiot.com>
63892         and Bruno Haible  <bruno@clisp.org>
63893
63894         Remove stat module & update lstat.
63895         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
63896         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63897         * m4/stat.m4: Remove this file.
63898
63899 2005-06-24  Derek Price  <derek@ximbiot.com>
63900         and Bruno Haible  <bruno@clisp.org>
63901
63902         Remove stat module & update lstat.
63903         * lib/stat.c: Remove this file...
63904         (slash_aware_lstat): ...moving this content and its support...
63905         * lib/lstat.c (rpl_lstat): ...into here.
63906         * lib/lstat.h: New file.
63907
63908 2005-06-24  Derek Price  <derek@ximbiot.com>
63909         and Bruno Haible  <bruno@clisp.org>
63910
63911         Remove stat module & update lstat.
63912         * config/srclist.txt (libc sources): Remove stat.
63913
63914 2005-06-24  Derek Price  <derek@ximbiot.com>
63915         and Bruno Haible  <bruno@clisp.org>
63916
63917         Remove stat module & update lstat.
63918         * MODULES.html.sh (stat): Remove.
63919         * MODULES.html: Regenerated.
63920         * modules/lstat (Description): Correct function name.
63921         (Files): Add "lstat.h".
63922         (Depends-on): Remove stat, add xalloc, stat-macros.
63923         * modules/stat: Remove this file.
63924         (Include): Add "lstat.h", remove <sys/stat.h>.
63925
63926 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63927
63928         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
63929         (ranged_convert): Don't save conversion in a temporary struct.
63930         This causes a warning with GCC 4.0.0, and anyway in the typical
63931         case it's not worth the extra 100 bytes or so of code.
63932         (ranged_convert, __mktime_internal): When calling a function via a
63933         pointer P, use P () rather than (*P) (), as we now assume C89 or
63934         better.
63935
63936 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
63939         "who -r" failed to give output.  Problem reported by Tim Waugh.
63940
63941         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
63942         (xcalloc): Use it to avoid needless tests.
63943         Problem reported by Jim Meyering.
63944
63945 2005-06-20  Derek Price  <derek@ximbiot.com>
63946
63947         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
63948         unnecessary for Autoconfs > 2.59c.
63949
63950 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63951
63952         * lib/argp.h (__option_is_short): Check upper limit of
63953         __key. Isprint() requires its argument to have the value
63954         of an unsigned char or EOF.
63955
63956 2005-06-16  Jim Meyering  <jim@meyering.net>
63957
63958         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
63959         when either N or S is zero.
63960
63961 2005-06-16  Derek Price  <derek@ximbiot.com>
63962
63963         * m4/bison.m4: Declare YACC & YFLAGS precious.
63964
63965 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
63966
63967         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
63968         multibyte string or pattern, fall back on unibyte matching.
63969         Problem reported by James Youngman.
63970
63971 2005-06-08  Bruno Haible  <bruno@clisp.org>
63972
63973         * modules/csharpcomp: New file.
63974         * MODULES.html.sh (C#): Add csharpcomp.
63975
63976 2005-06-08  Bruno Haible  <bruno@clisp.org>
63977
63978         * m4/csharpcomp.m4: New file, from GNU gettext.
63979
63980 2005-06-08  Bruno Haible  <bruno@clisp.org>
63981
63982         * lib/csharpcomp.h: New file, from GNU gettext.
63983         * lib/csharpcomp.c: New file, from GNU gettext.
63984         * lib/csharpcomp.sh.in: New file, from GNU gettext.
63985
63986 2005-06-08  Bruno Haible  <bruno@clisp.org>
63987
63988         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
63989         warning on mingw.
63990
63991 2005-06-07  Derek Price  <derek@ximbiot.com>
63992
63993         Sync from CVS.
63994         * lib/glob_.h: Indent nested #ifdef.
63995
63996 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63997
63998         Sync from coreutils.
63999         Use "file name" when talking about file names, instead of "filename"
64000         or "path", as per the GNU coding standards.
64001         * lib/mkdir-p.c: Renamed from makepath.c.
64002         (make_dir_parents): Renamed from make_path.  All callers changed.
64003         * lib/mkdir-p.h: Likewise.  All includers changed.
64004         * lib/filenamecat.c: Renamed from path-concat.c.
64005         (file_name_concat): Renamed from path_concat.  All callers changed.
64006         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
64007         * lib/filenamecat.h: Likewise.  All includers changed.
64008         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
64009         in comments or local variable names.
64010         * lib/basename.c: Likewise.
64011         * lib/canonicalize.c, canonicalize.h: Likewise.
64012         * lib/dirname.c, dirname.h: Likewise.
64013         * lib/euidaccess.c: Likewise.
64014         * lib/exclude.c: Likewise
64015         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
64016         * lib/fsusage.c, fsuage.h: Likewise.
64017         * lib/fts.c, fts_.h: Likewise.
64018         * lib/getcwd.c: Likewise.
64019         * lib/getloadavg.c: Likewise.
64020         * lib/mkstemp.c: Likewise.
64021         * lib/mountlist.c, mountlist.h: Likewise.
64022         * lib/openat.c, openat.h: Likewise.
64023         * lib/readlink-stub.c: Likewise.
64024         * lib/readutmp.c, readutmp.h: Likewise.
64025         * lib/rename.c: Likewise.
64026         * lib/rmdir.c: Likewise.
64027         * lib/same.c: Likewise.
64028         * lib/savedir.c: Likewise.
64029         * lib/stripslash.c: Likewise.
64030         * lib/tempname.c: Likewise.
64031         * lib/xreadlink.c: Likewise.
64032         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
64033         All uses changed.
64034         * lib/exclude.h: Likewise.
64035
64036         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
64037         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64038         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
64039         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64040         * lib/pathmax.h: Include <limits.h> unconditionally, since other
64041         files have been getting away with it for years (MORE/BSD 4.3
64042         is extinct now).
64043         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
64044         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64045
64046         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
64047         Define to 256, not 255, as per modern POSIX.
64048
64049 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         Sync from coreutils.
64052         Use "file name" when talking about file names, instead of "filename"
64053         or "path", as per the GNU coding standards.
64054         * MODULES.html.sh: mkdir-p renamed from makepath.
64055         filenamecat renamed from path-concat.
64056         * modules/filenamecat: Renamed from modules/path-concat.
64057         (Files): filenamecat.h and filenamecat.c renamed from
64058         path-concat.h and path-concat.c.
64059         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
64060         (Include): filenamecat.h, not path-concat.h.
64061         * modules/mkdir-p: Renamed from modules/makepath.
64062         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
64063         makepath.c.
64064         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
64065         (Include): mkdir-p.h, not makepath.h.
64066
64067 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         Sync from coreutils.
64070         * m4/mkdir-p.m4: Renamed from makepath.m4.
64071         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
64072         Rename files from makepath.c to mkdir-p.c, and from
64073         makepath.h to mkdir-p.h.
64074         * m4/filenamecat.m4: Renamed from path-concat.m4.
64075         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
64076         Rename files from path-concat.c to filenamecat.c,
64077         and from path-concat.h to filenamecat.h.
64078         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
64079         "file name" in local variables or comments.
64080         * m4/rename.m4: Likewise.
64081
64082 2005-06-01  Bruno Haible  <bruno@clisp.org>
64083
64084         * modules/csharpexec: New file.
64085         * MODULES.html.sh (C#): New section.
64086
64087 2005-06-01  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/csharp.m4: New file, from GNU gettext.
64090         * m4/csharpexec.m4: New file, from GNU gettext.
64091
64092 2005-06-01  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/csharpexec.h: New file, from GNU gettext.
64095         * lib/csharpexec.c: New file, from GNU gettext.
64096         * lib/csharpexec.sh.in: New file, from GNU gettext.
64097
64098 2005-05-31  Derek Price  <derek@ximbiot.com>
64099             Paul Eggert  <eggert@cs.ucla.edu>
64100
64101         Sync from cvs.
64102         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64103
64104 2005-05-31  Derek Price  <derek@ximbiot.com>
64105             Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         Sync from cvs.
64108         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64109
64110 2005-05-29  Derek Price  <derek@ximbiot.com>
64111
64112         * config/srclist.txt (glob_.h, glob.c): Add these files.
64113
64114 2005-05-29  Derek Price  <derek@ximbiot.com>
64115
64116         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
64117         * modules/glob: New file.
64118         * modules/getlogin_r: Add link to POSIX spec in description.
64119
64120 2005-05-29  Derek Price  <derek@ximbiot.com>
64121             Paul Eggert  <eggert@cs.ucla.edu>
64122
64123         * m4/glob.m4: New file.
64124
64125 2005-05-29  Derek Price  <derek@ximbiot.com>
64126             Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * lib/glob_.h, lib/glob.c: New files.
64129
64130 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * modules/fts (Files): Remove m4/inttypes-pri.m4.
64133         * modules/fts-lgpl (Depends-on): Remove gettext.
64134
64135 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
64138         and don't require gt_INTTYPES_PRI.
64139
64140 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
64143
64144         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
64145         the configuration hassle isn't worth it.
64146         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
64147         (LONGEST_MODIFIER, PRIuMAX): Remove.
64148
64149 2005-05-27  Bruno Haible  <bruno@clisp.org>
64150
64151         * lib/getlogin_r.h: Remove second include of <stddef.h>.
64152
64153 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
64154
64155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
64156         _POSIX_PTHREAD_SEMANTICS for Solaris.
64157
64158 2005-05-25  Derek Price  <derek@ximbiot.com>
64159
64160         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
64161
64162 2005-05-25  Derek Price  <derek@ximbiot.com>
64163             Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * modules/getlogin_r, m4/getlogin_r.m4: New files.
64166         * lib/getlogin_r.c, getlogin_r.h: New files.
64167
64168 2005-05-25  Bruno Haible  <bruno@clisp.org>
64169             Derek Price  <derek@ximbiot.com>
64170
64171         * lib/getlogin_r.h: Simplify API documentation.
64172
64173 2005-05-23  Derek Price  <derek@ximbiot.com>
64174
64175         * modules/minmax (Files): Add m4/minmax.m4.
64176         (configure.ac): Add gl_MINMAX.
64177
64178 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
64181         so that unistd-safer.h (GPL'ed code) need not be included.
64182
64183 2005-05-22  Bruno Haible  <bruno@clisp.org>
64184
64185         * m4/minmax.m4: New file.
64186         Based on a patch by Derek Price <derek@ximbiot.com>.
64187
64188 2005-05-22  Bruno Haible  <bruno@clisp.org>
64189
64190         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
64191         (INT64_MIN): Fix definition.
64192         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
64193
64194         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
64195         NEED_SIGNED_INT_TYPES.
64196
64197         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
64198         HAVE_SYSTEM_INTTYPES.
64199
64200 2005-05-22  Bruno Haible  <bruno@clisp.org>
64201
64202         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
64203         Also include <sys/param.h> if it defines MIN, MAX.
64204         Based on a patch by Derek Price <derek@ximbiot.com>.
64205
64206 2005-05-21  Jim Meyering  <jim@meyering.net>
64207
64208         * modules/fts (Files): Add m4/inttypes-pri.m4.
64209         (Depends-on): Add lstat and remove gettext.  Alphabetize.
64210
64211 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         New fts module.
64214         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
64215         (setup_dir, free_dir): New functions.
64216         (enter_dir, leave_dir): Define trivial
64217         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
64218         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
64219         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
64220         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
64221         Move to fts-cycle.c.
64222         (fts_open): Use setup_dir.
64223         (fts_close): Use free_dir.
64224         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
64225         This adds a label and some gotos, but the alternatives were messier.
64226         Check for memory allocation failure when entering a dir.
64227         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
64228         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
64229         (FTS): New member fts_cycle, that is a union that contains the
64230         old active_dir_ht and cycle_state.  All uses changed to mention
64231         fts_cycle.ht and fts_cycle.state.
64232         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
64233         fts.c, with the following changes:
64234         (setup_dir, free_dir): New functions.
64235         (enter_dir): Now returns bool.  Return true if successful, false
64236         if memory exhausted.  All callers changed.
64237         Do not bother partly cleaning up on
64238         memory allocation failure; that is free_dir's job.
64239         However, free ad if hash_insert fails, to avoid memory leak.
64240         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
64241         fts->fts_options to see which union member to use.
64242
64243 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64244
64245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
64246         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
64247
64248 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64249
64250         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
64251
64252 2005-05-20  Jim Meyering  <jim@meyering.net>
64253
64254         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
64255         Now a macro, to pacify GCC.
64256
64257 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64258
64259         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
64260         of -1.
64261
64262 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64263
64264         * lib/chown.c (rpl_chown): Return -1 on failure.
64265
64266 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64267
64268         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
64269         Don't check for stddef.h.
64270         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
64271         don't use its results.
64272         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
64273         since we include them unconditionally.  Don't require
64274         AM_STDBOOL_H, since stdbool is a prerequisite.
64275         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
64276         since we assume C89 or better.
64277         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
64278         as we don't use their results.
64279         Don't check for fchdir, memmove, memset, strrchr, as we use
64280         them unconditionally.
64281         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
64282         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
64283
64284 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64285
64286         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
64287         Include <stddef.h> unconditionally, since we assume C89 now.
64288         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
64289         * lib/fts.c: Include fts_.h first, to check interface.
64290         Do not include intprops.h; no longer needed.
64291         Include cycle-check.h and hash.h, since fts_.h no longer does.
64292         Remove unnecessary casts of closedir to void.
64293         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
64294         decide whether to decrement nlinks.
64295         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
64296         (FTS): Use struct hash_table * instead of Hash_table, so that
64297         we no longer need to include hash.h here.
64298
64299 2005-05-18  Jim Meyering  <jim@meyering.net>
64300
64301         * modules/dirfd (License): Change to LGPL.  Most of the code
64302         is already in the public domain.
64303
64304 2005-05-18  Jim Meyering  <jim@meyering.net>
64305
64306         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
64307         Reported by Yoann Vandoorselaere.
64308
64309 2005-05-17  Jim Meyering  <jim@meyering.net>
64310
64311         * m4/fts.m4: New file, from coreutils.
64312
64313 2005-05-17  Jim Meyering  <jim@meyering.net>
64314
64315         * lib/fts.c, lib/fts_.h: New files, from coreutils.
64316
64317 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         Sync from coreutils.
64320         * m4/unlinkdir.m4: New file.
64321
64322 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64323
64324         Sync from coreutils.
64325         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
64326         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
64327         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
64328         White space changes only.
64329         * lib/makepath.c (make_path): Port to hosts where leading "//" is
64330         special.
64331         * lib/yesno.c: Include getline.h, not ctype.h.
64332         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64333         Use getline to remove arbitrary restriction on response length.
64334
64335 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * config/srclist-update: Spell out "Street" in FSF postal
64338         mail address; this is the style the FSF seems to prefer.
64339
64340         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64341         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64342         this updates FSF postal mail address.
64343
64344         Sync from coreutils.
64345         * modules/unlinkdir: New file.
64346         * modules/yesno (Depends-on): Add getline.
64347         * MODULES.html.sh (File system functions): Add unlinkdir.
64348
64349 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64350
64351         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64352         lib/strsep.h:
64353         Change the initial comment to refer to GPL, not LGPL.
64354         gnulib-tool will change it to LGPL as needed.
64355
64356         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64357         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64358         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
64359         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
64360         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
64361         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
64362         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
64363         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
64364         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
64365         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
64366         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
64367         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
64368         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
64369         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
64370         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
64371         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
64372         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
64373         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
64374         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
64375         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
64376         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
64377         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
64378         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
64379         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
64380         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
64381         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
64382         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
64383         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
64384         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
64385         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
64386         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
64387         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
64388         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
64389         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
64390         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
64391         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
64392         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
64393         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
64394         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
64395         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
64396         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
64397         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
64398         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
64399         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
64400         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
64401         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
64402         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
64403         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
64404         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
64405         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
64406         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64407         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
64408         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
64409         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
64410         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
64411         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
64412         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
64413         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
64414         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
64415         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
64416         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
64417         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
64418         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
64419         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
64420         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
64421         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
64422         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
64423         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
64424         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
64425         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
64426         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
64427         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
64428         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
64429         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
64430         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
64431         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
64432         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
64433         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
64434         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
64435         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
64436         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
64437         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
64438         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
64439         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
64440         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
64441         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
64442         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
64443         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
64444         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
64445         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
64446         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
64447         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
64448         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
64449         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
64450         lib/yesno.c, lib/yesno.h:
64451         Update FSF postal mail address.
64452
64453 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
64456         tests/test-memmem.c, tests/test-stpncpy.c:
64457         Update FSF postal mail address.
64458
64459 2005-05-13  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
64462         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
64463         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
64464         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
64465         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
64466         Add support for 64-bit integers in the MSVC compiler.
64467
64468 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64469
64470         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64471
64472 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64473
64474         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64475
64476 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * doc/getdate.texi (General date syntax): Don't say that date
64479         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64480         Problem reported by Nic Ferrier.
64481
64482 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64483
64484         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64485         specified in ai_socktype. Fix invalid ai_protocol
64486         check. ai_protocol is usually set to 0 or depending on
64487         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64488         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64489         ai_socktype / ai_protocol in the returned addrinfo structure.
64490
64491 2005-05-10  Simon Josefsson  <jas@extundo.com>
64492
64493         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64494         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64495
64496 2005-05-10  Karl Berry  <karl@gnu.org>
64497
64498         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64499         (from http://www.gnu.org/licenses).
64500         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64501         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64502         fdl.texi suffices.
64503
64504 2005-05-10  Karl Berry  <karl@gnu.org>
64505
64506         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
64507         (COPYING.DOC): remove.
64508
64509         * config/srclist-update: new FSF address.
64510
64511 2005-05-10  Derek Price  <derek@ximbiot.com>
64512
64513         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
64514         possible.
64515
64516 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64517             Bruno Haible  <bruno@clisp.org>
64518
64519         * modules/inet_ntop: New file.
64520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64521         inet_ntop.
64522
64523 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64524             Bruno Haible  <bruno@clisp.org>
64525
64526         * m4/inet_ntop.m4: New file.
64527
64528 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64529             Bruno Haible  <bruno@clisp.org>
64530
64531         * lib/inet_ntop.h: New file.
64532         * lib/inet_ntop.c: New file, from glibc with modifications.
64533
64534 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
64535
64536         * modules/time_r (License): Change to LGPL.
64537         * modules/extensions (License): Change to LGPL.  Actually,
64538         the license is more permissive than that, but currently gnulib-tool
64539         doesn't know how to handle more-permissive licenses.
64540
64541         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
64542         Problem reported by Dave Love.
64543
64544 2005-05-08  Jim Meyering  <jim@meyering.net>
64545
64546         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
64547         blank.
64548
64549 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         * modules/argmatch (Depends-on): Add stdbool.
64552         * modules/backupfile (Depends-on): Likewise.
64553         * modules/chdir-long (Depends-on): Likewise.
64554         * modules/closeout (Depends-on): Likewise.
64555         * modules/cycle-check (Depends-on): Likewise.
64556         * modules/dirname (Depends-on): Likewise.
64557         * modules/fnmatch (Depends-on): Likewise.
64558         * modules/fsusage (Depends-on): Likewise.
64559         * modules/fwriteerror (Depends-on): Likewise.
64560         * modules/getcwd (Depends-on): Likewise.
64561         * modules/getloadavg (Depends-on): Likewise.
64562         * modules/hard-locale (Depends-on): Likewise.
64563         * modules/makepath (Depends-on): Likewise.
64564         * modules/mountlist (Depends-on): Likewise.
64565         * modules/nanosleep (Depends-on): Likewise.
64566         * modules/posixtm (Depends-on): Likewise.
64567         * modules/quotearg (Depends-on): Likewise.
64568         * modules/readtokens (Depends-on): Likewise.
64569         * modules/readtokens0 (Depends-on): Likewise.
64570         * modules/readutmp (Depends-on): Likewise.
64571         * modules/save-cwd (Depends-on): Likewise.
64572         * modules/strftime (Depends-on): Likewise.
64573         * modules/userspec (Depends-on): Likewise.
64574         * modules/utimecmp (Depends-on): Likewise.
64575         * modules/xgetcwd (Depends-on): Likewise.
64576         * modules/xnanosleep (Depends-on): Likewise.
64577         * modules/xstrtod (Depends-on): Likewise.
64578         * modules/yesno (Depends-on): Likewise.
64579
64580 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64581
64582         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
64583         needless checks.
64584
64585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64586
64587         Merge from coreutils.  Among other things,
64588         add bulletproofing for cases where stdin, stdout, or stderr are closed.
64589         * lib/fd-safer.c: New file.
64590         * lib/fcntl-safer.h, open-safer.c: Remove.
64591         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
64592         * lib/dup-safer.c: Include unistd-safer.h first.
64593         Don't include errno.h.
64594         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
64595         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
64596         * lib/file-type.c: Rely on file-type.h change.
64597         * lib/getloadavg.c: Include unistd-safer.h.
64598         (getloadavg): Use safer open.
64599         * lib/getusershell.c: Include "stdio-safer.h".
64600         (getusershell): Use safer fopen.
64601         * lib/long-options.c (long_options): Use NULL rather than 0.
64602         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
64603         'free'.
64604         * lib/modechange.c: Likewise.
64605         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
64606         (MODE_DONE): New constant.
64607         (struct mode_change): Remove 'next' member.
64608         (make_node_op_equals): New function; like the old one of the
64609         same name, except it allocates an array.
64610         (mode_compile, mode_create_from_ref): Use it.
64611         (mode_compile): Allocate result as an array, not a linked list.
64612         Parse octal string ourself, so that we catch mistakes like "+0".
64613         (mode_adjust): Arg is an array, not a linked list.
64614         * lib/modechange.c: Include stat-macros.h, xalloc.h.
64615         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
64616         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
64617         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
64618         Remove.  This is now stat-macros.h's job.
64619         (talloc): Remove.  All callers replaced by xalloc, so that
64620         our invokers don't have to worry about reporting memory failures.
64621         (make_node_op_equals): Remove.
64622         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64623         New constants.
64624         (struct mode_change): Moved here from modechange.h.
64625         (mode_append_entry): Remove.
64626         (mode_compile): Remove MASKED_OPS arg, since it encouraged
64627         apps to have incorrect behavior.  Use simpler algorithm for head
64628         and tail.  Don't futz with umask; that's now the job of mode_adjust.
64629         Detect more invalid usages rather than having somewhat-random behavior.
64630         Don't insert an "a=" action, as that leads to incorrect behavior.
64631         (mode_compile, mode_create_from_ref): Return NULL on error instead
64632         of an enum, since now there's only one way to have an error.  All
64633         callers changed.
64634         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
64635         at the correct time.  Simplify calculation of "+u" and its ilk.
64636         Don't mishandle "+X".
64637         (mode_free): Remove "register" and localize decls.
64638         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64639         (struct mode_change): Move to modechange.c; callers don't
64640         need to see this stuff.
64641         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
64642         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
64643         (mode_change, mode_adjust): Reflect the new signatures noted above.
64644         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
64645         that might redefine system include files.
64646         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
64647         (my_usleep): Use NULL rather than (void *) 0.
64648         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
64649         Use siginterrupt to specify that system calls should be interrupted.
64650         (rpl_nanosleep): Move initialization of suspended closer to call of
64651         my_usleep.
64652         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
64653         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
64654         (desirable_utmp_entry): New function.
64655         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
64656         using x2nrealloc, to simplify logic.
64657         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
64658         size calculation.  Do not assume utmp file is a regular file.
64659         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
64660         (READ_UTMP_CHECK_PIDS): New constant.
64661         * lib/save-cwd.c: Include unistd-safer.h.
64662         (save_cwd): Use fd_safer.
64663         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
64664         [!_LIBC] Include "stat-macros.h" instead.
64665         * lib/unistd-safer.h (fd_safer): New decl.
64666
64667 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         * modules/getloadavg (Depends-on): Add unistd-safer.
64670         * modules/getusershell (Depends-on): Add stdio-safer.
64671         * modules/lstat (Depends-on): Remove xalloc.
64672         * modules/mkstemp (Depends-on): Add stat-macros.
64673         * modules/modechange (Depends-on): Remove xstrtol.
64674         Add stat-macros, xalloc.
64675         * modules/save-cwd (Depends-on): Add unistd-safer.
64676         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
64677         * modules/unistd-safer (Files): Add lib/fd-safer.c
64678         (Makefile.am): Remove lib_SOURCES.
64679
64680         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
64681         Remove fcntl-safer; unistd-safer supersedes it.
64682
64683 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
64686         AC_HEADER_STAT.
64687         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
64688         (gl_PREREQ_CHOWN): Remove.
64689         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
64690         it.  Don't require AC_HEADER_STAT.
64691         (gl_PREREQ_LSTAT): Remove.
64692         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
64693         Don't require AC_HEADER_STAT.
64694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
64695         (gl_PREREQ_RMDIR): Remove.
64696         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
64697         mention stat-macros.h or AC_HEADER_STAT, since we'll make
64698         the stat-macros module a prerequisite.
64699         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
64700         * m4/filemode.m4 (gl_FILEMODE): Likewise.
64701         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
64702         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
64703         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
64704         variable names.
64705         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
64706         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
64707         variable prefixes.
64708         * m4/fcntl-safer.m4: Remove.
64709         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
64710         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
64711         Invoke gl_PREREQ_FD_SAFER.
64712         (gl_PREREQ_FD_SAFER): New macro.
64713         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
64714         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
64715         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
64716         Remove duplicate call to AC_LIBOBJ(readutmp).
64717         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
64718
64719         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
64720         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
64721
64722 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * MODULES.html.sh (Misc): Add byteswap.
64725
64726 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64727
64728         * modules/getcwd (Depends-on): Add extensions.
64729         * modules/openat (Depends-on): Likewise.
64730
64731 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64732
64733         * modules/byteswap: New file.
64734
64735 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64736
64737         * m4/byteswap.m4: New file.
64738
64739 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64740
64741         * lib/byteswap_.h: New file.
64742
64743 2005-04-25  Karl Berry  <karl@gnu.org>
64744
64745         * m4/gettext.m4: Update from GNU gettext 0.14.4.
64746
64747 2005-04-25  Albert Chin  <china@thewrittenword.com>
64748
64749         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
64750         Toolkit C bug.
64751
64752 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
64753
64754         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
64755         (func_ln_if_changed) Remove forcibly for no error message
64756         in case file does not exist.
64757
64758 2005-04-19  Simon Josefsson  <jas@extundo.com>
64759
64760         * gnulib-tool (Options): Make --symlink mean --symbolic.
64761
64762 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
64763
64764         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
64765
64766 2005-04-16  Simon Josefsson  <jas@extundo.com>
64767
64768         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
64769
64770 2005-04-15  Simon Josefsson  <jas@extundo.com>
64771
64772         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
64773
64774 2005-04-15  Simon Josefsson  <jas@extundo.com>
64775
64776         * gnulib-tool: Rename --symlink to --symbolic.
64777
64778 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
64779
64780         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
64781         symbolic links to files instead of copying/moving.  Add --aux-dir,
64782         specifying directory relative --dir where auxiliary build tools
64783         are placed.
64784
64785 2005-04-14  Bruno Haible  <bruno@clisp.org>
64786
64787         * modules/allocsa (License): Change to LGPL.
64788         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
64789
64790 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
64793         that "UTC +1 second" continues to work.  Problem reported
64794         by Dmitry V. Levin.
64795         (relunit_snumber): New rule.
64796         (relunit): Use it.
64797
64798 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64799
64800         * lib/getdate.y (universal_time_zone_table): New constant.
64801         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
64802         universal_time_zone_table.
64803         (lookup_zone): Prefer universal_time_zone_table to
64804         local_time_zone_table, so that "GMT" time stamps are allowed in
64805         London during the summer.  Problem reported by Ian Abbott.
64806
64807 2005-04-12  Jim Meyering  <jim@meyering.net>
64808
64809         * lib/human.c (humblock): Set *options even when returning due to
64810         xstrtoumax conversion failure.  Thanks to a used-uninitialized
64811         warning from gcc-4.
64812
64813 2005-04-09  Jim Meyering  <jim@meyering.net>
64814
64815         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
64816         -Wuninitialized: initialize tm0.tm_year.
64817
64818 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
64821         count, since there's no maximum.  All uses changed.
64822         Add member dsts_seen.
64823         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
64824         not being INT_MAX.
64825         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
64826         Use pc_rels_seen to decide whther a date is absolute.
64827
64828         * lib/getdate.y (number): Don't overwrite year.
64829         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
64830         check.
64831
64832 2005-04-02  Simon Josefsson  <jas@extundo.com>
64833
64834         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
64835         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
64836
64837 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
64838
64839         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
64840         where no absolute path name can be longer than PATH_MAX.
64841
64842 2005-03-27  Jim Meyering  <jim@meyering.net>
64843
64844         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
64845
64846 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
64849         "one's complement" -> "ones' complement" in comment, as per Knuth.
64850         "value of type" -> "type or expression" in comment.
64851         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
64852
64853 2005-03-26  Jim Meyering  <jim@meyering.net>
64854
64855         Comment nits.
64856         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
64857         Correct typos: s/or/of/.
64858
64859 2005-03-26  Jim Meyering  <jim@meyering.net>
64860
64861         * modules/check-include-files: Move to ../ and rename to...
64862         * check-module: ...this.
64863
64864 2005-03-25  Jim Meyering  <jim@meyering.net>
64865
64866         * modules/xvasprintf (Files): Add xalloc.h.
64867
64868 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * modules/gettext (Files): config/config.rpath ->
64871         build-aux/config.rpath
64872         * modules/iconv (Files): Likewise.
64873         Problem reported by Oskar Liljeblad.
64874
64875 2005-03-23  Jim Meyering  <jim@meyering.net>
64876
64877         * modules/check-include-files: New script to check for
64878         missing dependencies, multiple includes, etc.
64879
64880         * modules/c-strtold (Depends-on): Add xalloc.
64881         * modules/c-strtod (Depends-on): Add xalloc.
64882         * modules/hash (Depends-on): Add xalloc.
64883         (Files): Remove lib/xalloc.h.
64884
64885         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
64886         * modules/userspec (Files): Add lib/inttostr.h.
64887
64888 2005-03-23  Jim Meyering  <jim@meyering.net>
64889
64890         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
64891
64892 2005-03-22  Jim Meyering  <jim@meyering.net>
64893
64894         * modules/stat-macros: New module.
64895         * modules/canonicalize, modules/euidaccess, modules/file-type,
64896         * modules/filemode, modules/lchown, modules/makepath,
64897         * modules/rmdir, modules/stat: Depend on new stat-macros module
64898         rather than listing lib/stat-macros.h manually.
64899         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
64900
64901 2005-03-22  Jim Meyering  <jim@meyering.net>
64902
64903         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
64904
64905 2005-03-22  Bruno Haible  <bruno@clisp.org>
64906
64907         * config/srclist.txt: Replace target directory 'config' with
64908         'build-aux'.
64909         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
64910         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
64911         ../build-aux/.
64912
64913 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
64914
64915         * modules/chdir-long (Depends-on): Add mempcpy.
64916
64917         * modules/acl, modules/backupfile, modules/c-strtod,
64918         modules/c-strtold, modules/canon-host, modules/canonicalize,
64919         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
64920         modules/exclude, modules/exitfail, modules/file-type,
64921         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
64922         modules/getdate, modules/getline, modules/getpagesize,
64923         modules/getpass, modules/getugroups, modules/group-member,
64924         modules/hard-locale, modules/hash, modules/human, modules/idcache,
64925         modules/inttostr, modules/long-options, modules/makepath,
64926         modules/md5, modules/memcasecmp, modules/memcoll,
64927         modules/modechange, modules/mountlist, modules/path-concat,
64928         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
64929         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
64930         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
64931         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
64932         modules/strftime, modules/strndup, modules/strverscmp,
64933         modules/timespec, modules/unlocked-io, modules/userspec,
64934         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
64935         modules/yesno:
64936         Remove lib_SOURCES line from Makefile.am section, as this is now
64937         done automatically by the corresponding Autoconf macro.
64938
64939 2005-03-21  Jim Meyering  <jim@meyering.net>
64940
64941         Changes imported from coreutils.
64942
64943         * lib/cycle-check.c: Don't include xalloc.h.
64944
64945         * lib/path-concat.c: Don't include assert.h.
64946         (path_concat): Remove assertion that would have triggered
64947         for ABASE starting with more than one slash.
64948         Reported by Andreas Schwab.
64949
64950         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
64951         properly when ABASE is an absolute file name.
64952         Correct the description of this function.
64953         Include <assert.h>.
64954         Add an assertion and a test driver.
64955         This fixes a bug introduced on 2004-07-02.
64956         Andreas Schwab reported the resulting failure of cp --parents:
64957         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
64958
64959 2005-03-21  Jim Meyering  <jim@meyering.net>
64960
64961         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
64962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
64963
64964 2005-03-21  Jim Meyering  <jim@meyering.net>
64965         and  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
64968         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
64969         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
64970         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
64971         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
64972         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
64973         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
64974         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
64975         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
64976         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
64977         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
64978         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
64979         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
64980         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
64981         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
64982         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
64983         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
64984         for these modules.
64985
64986 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
64987
64988         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
64989         (which shouldn't happen), generate nothing instead of returning 0
64990         immediately, so that nstrftime (NULL, ...) doesn't return 0.
64991
64992 2005-03-16  Bruno Haible  <bruno@clisp.org>
64993
64994         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
64995         HAVE_LONGLONG_64BIT.
64996
64997 2005-03-16  Bruno Haible  <bruno@clisp.org>
64998
64999         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
65000         HAVE_LONGLONG_64BIT.
65001
65002 2005-03-16  Bruno Haible  <bruno@clisp.org>
65003
65004         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
65005         HAVE_LONGLONG_64BIT.
65006
65007 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         * lib/strftime.c (my_strftime): Prepend space to format so that we can
65010         reliably distinguish strftime failure from empty output on POSIX
65011         hosts.
65012
65013 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
65016         (iconv_string): Don't guess a size-zero buffer, as that might cause
65017         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
65018         result would be 'too large', where 'too large' is (heuristically)
65019         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
65020         overflow concerns.  This will prevent some unwanted malloc failures
65021         when the inputs are very large.
65022
65023 2005-03-15  Karl Berry  <karl@gnu.org>
65024
65025         * config/srclist.txt (config.rpath): from gettext.
65026         * config/config.rpath: update.
65027
65028 2005-03-15  Bruno Haible  <bruno@clisp.org>
65029
65030         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
65031         to 'negate'.
65032
65033         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
65034         variable.
65035
65036         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
65037         results.
65038
65039 2005-03-14  Simon Josefsson  <jas@extundo.com>
65040
65041         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
65042         <fx@gnu.org>.
65043
65044 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
65045
65046         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
65047         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
65048         intprops.h.
65049         * lib/strtol.c: Likewise.
65050
65051 2005-03-14  Jim Meyering  <jim@meyering.net>
65052
65053         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
65054         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
65055         to be nonzero so that we (and caller) can detect the difference
65056         between a valid zero-length expansion and an error return, even
65057         when the underlying strftime fails before writing anything into
65058         that location.
65059
65060 2005-03-14  Bruno Haible  <bruno@clisp.org>
65061
65062         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
65063         Update from GNU gettext 0.14.3.
65064
65065 2005-03-10  Jim Meyering  <jim@meyering.net>
65066
65067         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
65068
65069 2005-03-10  Jim Meyering  <jim@meyering.net>
65070
65071         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
65072         so that this module works on systems without fchdir.
65073
65074 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         Factor int-properties macros into a single file, except for
65077         glibc-related files.
65078         * lib/intprops.h: New file.
65079         * lib/getloadavg.c: Include it instead of limits.h.
65080         (INT_STRLEN_BOUND): Remove.
65081         * lib/human.c: Include intprops.h.
65082         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
65083         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
65084         302/1000.
65085         * lib/inttostr.h: Include intprops.h instead of limits.h.
65086         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
65087         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
65088         for consistency with intprops.h.
65089         (time_t_is_integer, twos_complement_arithmetic): Use them.
65090         * lib/sig2str.h: Include <signal.h>, intprops.h.
65091         (INT_STRLEN_BOUND): Remove.
65092         * lib/strftime.c (TYPE_SIGNED): Remove.
65093         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
65094         * lib/strtol.c: Adjust comments to match intprops.h.
65095         * lib/userspec.c: Include intprops.h.
65096         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
65097         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
65098         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
65099         instead of rolling our own expressions.
65100         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
65101
65102         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
65103         instead of int.
65104         (my_strftime): Do not mishandle years close to INT_MAX, by doing
65105         the right thing even if adding 1900 would overflow.  Similarly
65106         for tm_mon + 1 and tm_yday + 1.
65107         Make %Y always equivalent to %C%y, and similarly for %G and %g.
65108         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
65109         (DO_SIGNED_NUMBER): New macro.
65110         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
65111
65112 2005-03-07  Bruno Haible  <bruno@clisp.org>
65113
65114         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
65115
65116 2005-03-07  Bruno Haible  <bruno@clisp.org>
65117
65118         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
65119
65120 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65121
65122         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65123         (func_import): Only replace files via --import when they have actually
65124         changed.
65125
65126 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65127
65128         * m4/mmap-anon.m4: New file.
65129         * m4/pagealign_alloc.m4: New file.
65130
65131 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65132             Bruno Haible  <bruno@clisp.org>
65133
65134         * modules/pagealign_alloc: New file.
65135         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
65136
65137 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65138             Bruno Haible  <bruno@clisp.org>
65139
65140         * lib/pagealign_alloc.h: New file.
65141         * lib/pagealign_alloc.c: New file.
65142
65143 2005-03-03  Bruno Haible  <bruno@clisp.org>
65144
65145         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
65146         Use an all-permissive copyright notice, recommended by RMS.
65147
65148 2005-03-02  Bruno Haible  <bruno@clisp.org>
65149
65150         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
65151         of AIX, the replacement has to be done only after <string.h> is
65152         included, therefore not in config.h. stpncpy.h does the replacement,
65153         and stpncpy.c uses it.
65154
65155 2005-03-02  Bruno Haible  <bruno@clisp.org>
65156
65157         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
65158         stpncpy.c uses it.
65159
65160 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
65163         The workaround isn't strictly needed for POSIX conformance, and
65164         it's too much of a pain to configure and maintain.  We'll ask
65165         people to fix their kernels instead.
65166         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
65167         (NANOSLEEP_BUG_WORKAROUND): Remove.
65168         (xnanosleep): Remove the workaround.
65169
65170 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65171
65172         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
65173         Reported by Derek Price.
65174         (Include): Add "timespec.h".
65175
65176         * modules/xnanosleep (Depends-on): Remove gethrxtime.
65177
65178 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
65181         to detect nanosleep bug.
65182
65183 2005-03-01  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
65186
65187 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65188
65189         * modules/gethrxtime: New file.
65190         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
65191         (Depends-on): Add gethrxtime.
65192         (configure.ac): Add gl_XNANOSLEEP.
65193         (Makefile.am): Remove lib_SOURCES line.
65194
65195 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
65198         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
65199
65200 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65201
65202         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
65203         * lib/timespec.h (gettime): Return void, since it always
65204         succeeds now.  All uses changed.
65205         * lib/gettime.c (gettime) Likewise.
65206         [HAVE_NANOTIME]: Prefer nanotime.
65207         Assume gettimeofday succeeds, as POSIX requires.
65208         Assime time () succeeds, since other code already does.
65209         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
65210         (timespec_subtract): Remove.
65211         (NANOSLEEP_BUG_WORKAROUND): New constant.
65212         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
65213         things considerably.  Use it only on GNU/Linux hosts, since the
65214         workaround shouldn't be needed elsewhere.
65215
65216 2005-02-24  Bruno Haible  <bruno@clisp.org>
65217
65218         * modules/gettext (Files): Add m4/glibc2.m4.
65219
65220 2005-02-24  Bruno Haible  <bruno@clisp.org>
65221
65222         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
65223         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
65224         * m4/progtest.m4:
65225         Update from GNU gettext 0.14.2.
65226         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
65227
65228 2005-02-24  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/localcharset.c: Update from GNU gettext 0.14.2.
65231         * lib/config.charset: Update from GNU gettext 0.14.2.
65232
65233 2005-02-24  Bruno Haible  <bruno@clisp.org>
65234
65235         * lib/gettext.h: Update from GNU gettext 0.14.2.
65236
65237 2005-02-23  Simon Josefsson  <jas@extundo.com>
65238
65239         * m4/iconvme.m4: New file.
65240
65241 2005-02-23  Jim Meyering  <jim@meyering.net>
65242
65243         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
65244         change.
65245         Thanks to Bruno Haible for catching it.
65246
65247 2005-02-22  Simon Josefsson  <jas@extundo.com>
65248
65249         * modules/iconvme: New file.
65250
65251         * MODULES.html.sh: Add iconvme.
65252
65253 2005-02-22  Simon Josefsson  <jas@extundo.com>
65254
65255         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
65256
65257 2005-02-22  Simon Josefsson  <jas@extundo.com>
65258
65259         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
65260
65261 2005-02-22  Jim Meyering  <jim@meyering.net>
65262
65263         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
65264         s/ifndef/ifdef/.
65265
65266 2005-02-20  Neil Conway  <neilc@samurai.com>
65267
65268         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
65269         returned by OSX/Darwin if the specified buffer is not large
65270         enough for the hostname.
65271
65272 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65273
65274         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
65275         pass it to _help, otherwise the latter coredumps trying to
65276         dereference state.root_argp.
65277
65278 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65279
65280         * modules/chdir-long (Depends-on): Add memrchr.
65281         * modules/memrchr (Files): Add lib/memrchr.h.
65282         (Include): "memrchr.h".
65283
65284 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65285
65286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
65287
65288 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65289
65290         * lib/memrchr.h: New file.
65291         * lib/chdir-long.c: Include it.
65292         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
65293         Don't bother including stddef.h.
65294
65295 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
65298         inclusion.
65299         Include <sys/types.h>, for dev_t.
65300         (ME_DUMMY, ME_REMOTE): Move from here....
65301         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
65302         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
65303         Dmitry V. Levin.
65304         Include mountlist.h first, to test the interface.
65305
65306 2005-01-29  Bruno Haible  <bruno@clisp.org>
65307
65308         * lib/progname.c (program_name): Initialize.
65309         Needed when linking statically on MacOS X.
65310
65311 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         Sync from coreutils.
65314         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
65315         (Depends-on): Add c-strtod.
65316         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
65317
65318 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65319
65320         Sync from coreutils.
65321         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
65322
65323         Remove files that are specific to coreutils.
65324         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
65325
65326 2005-01-28  Bruno Haible  <bruno@clisp.org>
65327
65328         * modules/javacomp: New file.
65329         * MODULES.html.sh (Java): Add javacomp.
65330
65331 2005-01-28  Bruno Haible  <bruno@clisp.org>
65332
65333         * m4/javacomp.m4: New file, from GNU gettext.
65334
65335 2005-01-28  Bruno Haible  <bruno@clisp.org>
65336
65337         * lib/javacomp.sh.in: New file, from GNU gettext.
65338         * lib/javacomp.h: New file, from GNU gettext.
65339         * lib/javacomp.c: New file, from GNU gettext.
65340
65341 2005-01-26  Simon Josefsson  <jas@extundo.com>
65342
65343         * lib/gai_strerror.c: Use GPL in header.
65344
65345 2005-01-26  Bruno Haible  <bruno@clisp.org>
65346
65347         * modules/javaexec: New file.
65348         * MODULES.html.sh (Java): Add javaexec.
65349
65350 2005-01-26  Bruno Haible  <bruno@clisp.org>
65351
65352         * m4/javaexec.m4: New file, from GNU gettext.
65353
65354 2005-01-26  Bruno Haible  <bruno@clisp.org>
65355
65356         * lib/javaexec.sh.in: New file, from GNU gettext.
65357         * lib/javaexec.h: New file, from GNU gettext.
65358         * lib/javaexec.c: New file, from GNU gettext.
65359
65360 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65361
65362         * modules/lchown (Depends-on): Remove lchown.h
65363
65364 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65365
65366         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
65367         must be defined if the header file was not found, in order
65368         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
65369
65370 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65371
65372         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
65373         initializers for struct pentry_state.
65374         (__argp_error): Check return value of __asprintf
65375         (__argp_failure): Translate error message
65376
65377         * lib/argp-parse.c: Removed braces around the expansion of N_()
65378
65379 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65380
65381         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
65382         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
65383         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
65384         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
65385         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
65386         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
65387         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
65388         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
65389         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
65390         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
65391         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
65392         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
65393         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
65394         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
65395         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
65396         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
65397         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
65398         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
65399         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
65400         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
65401         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
65402         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
65403         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
65404         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
65405         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
65406         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
65407         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
65408         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
65409         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
65410         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
65411         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
65412         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
65413         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
65414         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
65415         xstrtol.m4, xstrtoumax.m4, yesno.m4:
65416         Use an all-permissive copyright notice, recommended by RMS.
65417
65418 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
65419
65420         * modules/chdir-long (Depends-on): Remove mempcpy.
65421
65422 2005-01-21  Jim Meyering  <jim@meyering.net>
65423
65424         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
65425         same value as for Solaris 9.
65426
65427         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
65428         component length.  This included changing the parameter to be
65429         of type `char *' rather than `char const *'.
65430         * lib/chdir-long.h (chdir_long): Update prototype.
65431
65432         * lib/openat.c (fdopendir, fstatat): New functions.
65433         * lib/openat.h: Include headers required for use of DIR and struct
65434         stat.
65435         [AT_SYMLINK_NOFOLLOW]: Define.
65436         (fdopendir, fstatat): Add prototypes.
65437
65438 2005-01-21  Bruno Haible  <bruno@clisp.org>
65439
65440         * modules/classpath: New file.
65441         * MODULES.html.sh (Java): Add classpath.
65442
65443 2005-01-21  Bruno Haible  <bruno@clisp.org>
65444
65445         * lib/classpath.h: New file, from GNU gettext.
65446         * lib/classpath.c: New file, from GNU gettext.
65447
65448 2005-01-20  Simon Josefsson  <jas@extundo.com>
65449
65450         * modules/version-etc-fsf: New file.
65451
65452 2005-01-20  Simon Josefsson  <jas@extundo.com>
65453
65454         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
65455         * lib/version-etc.c: Remove version_etc_copyright.
65456         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
65457         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
65458
65459 2005-01-20  Simon Josefsson  <jas@extundo.com>
65460
65461         * lib/base64.h (isbase64): Add.
65462
65463         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
65464         using a unsigned prototype, don't inline.
65465         (base64_decode): Use it.
65466
65467 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65468
65469         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65470         it.
65471
65472 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65473
65474         * lib/save-cwd.c (save_cwd): Remove code to support the case
65475         where fchdir is missing or flaky.
65476
65477 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65478
65479         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65480
65481 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65484         AC_LIBSOURCES now does this.
65485         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65486         with new ullong_max module.
65487
65488 2005-01-19  Bruno Haible  <bruno@clisp.org>
65489
65490         * modules/sh-quote: New file.
65491         * MODULES.html.sh (Executing programs): Add sh-quote.
65492
65493 2005-01-19  Bruno Haible  <bruno@clisp.org>
65494
65495         * lib/sh-quote.h: New file, from GNU gettext.
65496         * lib/sh-quote.c: New file, from GNU gettext.
65497
65498 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         Merge from coreutils.
65501         * m4/ullong_max.m4: New file.
65502         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65503         (gl_MACROS): Assume localeconv exists.
65504
65505 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         Merge changes from coreutils, as described below in several
65508         changelogs dated today.
65509
65510         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
65511         (O_DIRECTORY): Remove; not needed here, since "." must be
65512         a directory.  All uses removed.
65513         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
65514         universal on Suns, and we also need to test for IRIX.
65515         Revamp code to use 'if' rather than '#if'.
65516         Avoid unnecessary comparison of cwd->desc to 0.
65517
65518         * lib/utimens.c (futimens): Robustify the previous patch, by checking
65519         for known valid error numbers rather than observed invalid ones.
65520
65521 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65522
65523         * modules/ullong_max: New file.
65524
65525         * modules/chdir-long, modules/openat: New files.
65526         * modules/save-cwd (Depends-on): Depend on chdir-long.
65527         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
65528
65529 2005-01-18  Jim Meyering  <jim@meyering.net>
65530
65531         Merge from coreutils.
65532         * m4/chdir-long.m4, m4/openat.m4: New files.
65533         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
65534         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
65535         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
65536         is sane and DOES follow symlinks.  Besides, testing 20 different
65537         systems found no broken chown implementations.
65538         Prompted by a change in rsync's copy of this macro.
65539         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
65540
65541         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
65542
65543         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
65544         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
65545         NULL-means-set-to-current-time semantics.
65546         Remove temporary file immediately, rather than waiting
65547         for configure's at-exit trap code to do it.
65548
65549 2005-01-18  Jim Meyering  <jim@meyering.net>
65550
65551         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65552
65553         * lib/utimens.c (futimens): Account for the fact that futimes
65554         can also fail with errno == ENOSYS or errno == ENOENT.
65555         Patch from Dmitry V. Levin.
65556
65557         Change the name of the robust chdir function from chdir to chdir_long.
65558         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
65559         (restore_cwd): Use chdir_long, not chdir.
65560         * lib/chdir-long.c: Renamed from chdir.c.
65561         * lib/chdir-long.h: Renamed from chdir.h.
65562         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
65563         Hurd.
65564
65565 2005-01-18  Bruno Haible  <bruno@clisp.org>
65566
65567         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
65568         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
65569         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
65570         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
65571         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
65572         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
65573         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
65574         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
65575         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
65576         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
65577         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
65578         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
65579         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
65580         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
65581         Use an all-permissive copyright notice, recommended by RMS.
65582
65583 2005-01-18  Bob Proulx  <bob@proulx.com>
65584
65585         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
65586         simplify offsetof() macro construct to avoid compile failure with
65587         native HP-UX 11.0 ANSI C compiler.
65588
65589 2005-01-17  Bruno Haible  <bruno@clisp.org>
65590
65591         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
65592         redundant because stpncpy.m4 takes care of it.
65593
65594 2005-01-17  Bruno Haible  <bruno@clisp.org>
65595
65596         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
65597
65598 2005-01-17  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
65601         used.
65602
65603 2005-01-17  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/fwriteerror.h (fwriteerror): Change specification to include
65606         fclose.
65607         * lib/fwriteerror.c: Include <stdbool.h>.
65608         (fwriteerror): At the end, close the file stream. Record whether
65609         stdout was already closed.
65610
65611 2005-01-17  Bruno Haible  <bruno@clisp.org>
65612
65613         * lib/execute.c (environ): Declare if needed.
65614         * lib/pipe.c (environ): Likewise.
65615         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
65616
65617 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65618
65619         * modules/argp: Depend on vsnprintf
65620
65621 2005-01-10  Jim Meyering  <jim@meyering.net>
65622
65623         * modules/closeout (Depends-on): Add atexit.
65624
65625 2005-01-06  Bruno Haible  <bruno@clisp.org>
65626
65627         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
65628
65629 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
65632         definitions to be after all include files, to avoid collisions.
65633         Problem reported by Bob Proulx.
65634
65635 2005-01-04  Jim Meyering  <jim@meyering.net>
65636
65637         Changes imported from coreutils.
65638         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
65639         as the mkstemp template, use a temporary directory and an
65640         8.3-friendly template to avoid trouble on systems like DJGPP.
65641         Reported by Juan M. Guerrero via Stepan Kasal.
65642         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
65643         close. Remove the temporary directory right away, rather than waiting
65644         for configure's at-exit trap code to do it.
65645         Suggestion from Stepan Kasal.
65646
65647 2005-01-01  Simon Josefsson  <jas@extundo.com>
65648
65649         * gnulib-tool: Print #include directives when --import'ing.
65650
65651 2004-12-28  Simon Josefsson  <jas@extundo.com>
65652
65653         * tests/test-base64.c: Include required header files.  Remove
65654         unused variables.
65655
65656 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65657
65658         * modules/error (Depends-on): Remove gettext.
65659
65660 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65661
65662         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
65663         not needed.  This removes a dependency on the gettext module.
65664         [defined _LIBC]: Do not include <libintl.h>; not needed.
65665
65666 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
65669         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
65670
65671 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
65674         HAVE_DECL_STRTOLD.
65675
65676 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * modules/getdate (Depends-on): Remove alloca-opt.
65679
65680 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
65683
65684 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * lib/argp-parse.c: Include <stddef.h>.
65687         (alignof, alignto): New macros.
65688         (parser_init): Don't assume that void * is aligned sufficiently
65689         for struct option.
65690
65691         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
65692         need to extend the stack.
65693         (YYINITDEPTH): New macro, so that the initial stack isn't overly
65694         large.
65695
65696 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65697
65698         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
65699
65700 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65701
65702         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
65703         (2004-10-24) change.  Apparently this was a false alarm.
65704
65705         * modules/getdate: Depend on alloca-opt, not alloca.
65706
65707 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65708
65709         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
65710         Remove now-obsolete comment about AIX.
65711         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
65712         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
65713         (YYMAXDEPTH): New macro.
65714
65715 2004-12-18  Simon Josefsson  <jas@extundo.com>
65716
65717         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
65718
65719 2004-12-18  Bruno Haible  <bruno@clisp.org>
65720
65721         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
65722
65723 2004-12-18  Bruno Haible  <bruno@clisp.org>
65724
65725         * lib/fatal-signal.c (fatal_signals): Make non-const.
65726         (init_fatal_signals): New function.
65727         (uninstall_handlers, install_handlers): Ignore signals that were set to
65728         SIG_IGN.
65729         (at_fatal_signal): Call init_fatal_signals.
65730         (init_fatal_signal_set): Likewise. Ignore signals that were set to
65731         SIG_IGN.
65732         Reported by Paul Eggert.
65733
65734 2004-12-18  Bruno Haible  <bruno@clisp.org>
65735
65736         * doc/alloca.texi: New file.
65737         * doc/alloca-opt.texi: New file.
65738
65739 2004-12-17  Jim Meyering  <jim@meyering.net>
65740
65741         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
65742         Otherwise, install-sh could exit with improper exit status when
65743         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
65744
65745 2004-12-16  Simon Josefsson  <jas@extundo.com>
65746
65747         * tests/test-base64.c: Add license.
65748
65749 2004-12-15  Stepan Kasal  <address@hidden>
65750
65751         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
65752
65753 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         * modules/getcwd (Files): Add m4/d-ino.m4.
65756         Suggested by Mark D. Baushke.
65757
65758 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * lib/getdate.y (textint): New member "negative".
65761         (time_zone_hhmm): New function.
65762         Expect 14 shift-reduce conflicts, not 13.
65763         (o_colon_minutes): New rule.
65764         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
65765         (yylex): Set the "negative" member of signed numbers.
65766
65767 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * doc/getdate.texi (Time of day items, Time zone items):
65770         Describe new formats +00:00, UTC+00:00.
65771
65772 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
65775         spurious "-l"s.  Problem reported by Stepan Kasal.
65776
65777 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
65780         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
65781
65782 2004-12-04  Simon Josefsson  <jas@extundo.com>
65783
65784         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
65785         Vandoorselaere <yoann@prelude-ids.org>.
65786
65787 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65788
65789         Changes imported from coreutils.
65790         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
65791         exist.
65792         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
65793
65794 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65795
65796         Changes imported from coreutils.
65797         * lib/hard-locale.c: Assume <locale.h> exists.
65798         Include "strdup.h".
65799         (GLIBC_VERSION): New macro.
65800         (hard_locale): Assume setlocale exists.
65801         Rewrite to avoid #ifdef.
65802         Use strdup rather than malloc + strcpy.
65803         * lib/human.c: Assume <locale.h> exists.
65804         (human_readable): Assume localeconv exists.
65805
65806 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * modules/hard-locale (Depends-on): Add strdup.
65809
65810 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65811
65812         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
65813         convert T2, not T.  (Imported from libc.)
65814
65815 2004-11-30  Simon Josefsson  <jas@extundo.com>
65816
65817         * modules/restrict (License): Change to LGPL.
65818
65819 2004-11-30  Simon Josefsson  <jas@extundo.com>
65820
65821         * m4/restrict.m4: Add copyright and copying conditions.
65822
65823 2004-11-30  Simon Josefsson  <jas@extundo.com>
65824
65825         * m4/base64.m4: New file.
65826
65827 2004-11-30  Simon Josefsson  <jas@extundo.com>
65828
65829         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
65830         base64.
65831
65832         * tests/test-base64.c: New file.
65833
65834         * modules/base64: New file.
65835
65836 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65837
65838         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
65839         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
65840
65841         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
65842
65843 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65844
65845         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
65846         (__getcwd.c): Don't restore errno; glibc doesn't.
65847         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
65848         first, falling back to our code only if its results look suspicious.
65849         Ensure that the resulting buffer is only as large as necessary.
65850
65851         * lib/readutmp.c: Include readutmp.h first.
65852         Include <errno.h>, since readutmp.h no longer does that.
65853         * lib/readutmp.h: Don't include <errno.h>,
65854         <sys/param.h>, <time.h>; not needed to establish interface.
65855         (errno): Remove decl.
65856         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
65857         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
65858         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
65859
65860 2004-11-28  Simon Josefsson  <jas@extundo.com>
65861
65862         * lib/base64.h, base64.c: New file.
65863
65864 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65865
65866         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
65867
65868 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
65871         (Depends-on): Remove pathmax, same.  Add mempcpy.
65872         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
65873         (Makefile.am): Append getcwd.h to lib_SOURCES.
65874         (Include): Add getcwd.h.
65875         (Maintainer): Change from Jim Meyering to "all, glibc",
65876         since getdate now uses intended-for-glibc code.
65877         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
65878         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
65879
65880 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65881
65882         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
65883         HP's ANSI C compiler.
65884         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
65885         Declaring int functions causes warnings on some modern systems and
65886         shouldn't be needed to compile on ancient ones.
65887         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
65888         defined.
65889
65890         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
65891         with the following changes.
65892         (__set_errno): Parenthesize properly.
65893         Include <stdbool.h>.
65894         (MIN, MAX, MATCHING_INO): New macros.
65895         (__getcwd): Define with prototype, not K&R form.
65896         Use heuristics to allocate default buffer on stack if possible.
65897         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
65898         behavior, and to avoid the PATH_MAX limit when computing
65899         ../../../../...
65900         Use MATCHING_INO to compare inode number to file.
65901         Check for arithmetic overflow in size calculations.
65902         Fix bug in reallocation of dot array that caused getcwd to fail
65903         on directories nested deeper than 75.
65904         Be more careful about saving errno on error.
65905         Do not use realloc; use only free+malloc, as this is a bit
65906         more flexible and avoids a needless copy operation.
65907         Do not inspect st_dev and st_ino for symbolic links; POSIX
65908         doesn't specify the latter.
65909         Check for closedir errors.
65910         Avoid needless casts.
65911         Use "#ifdef weak_alias" around weak_alias, to be like other
65912         glibc code.
65913         The following changes to getcwd.c have effect only when used in
65914         gnulib; they have no effect inside glibc proper.
65915         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
65916         as alloca isn't used.
65917         (alloca, __alloca): Likewise.
65918         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
65919         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65920         unconditionally, as gnulib assumes C89 or better.
65921         Do not include <sys/param.h>.
65922         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
65923         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
65924         better.
65925         (NULL) [!defined NULL]: Remove; we assume C89 or better.
65926         Include <dirent.h> in a way that is compatible with modern Autoconf.
65927         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
65928         New macros, if not already defined.
65929         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
65930         Use "_LIBC", not "defined _LIBC", for consistency.
65931         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
65932         a mempcpy module.
65933         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
65934         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
65935         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
65936         credit only to Jim Meyering and adjust the copyright dates.
65937         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
65938         <stdlib.h>, <unistd.h>, "pathmax.h".
65939         Instead, include "xgetcwd.h" (first) and "getcwd.h".
65940         (INITIAL_BUFFER_SIZE): Remove.
65941         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
65942
65943 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
65946         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
65947         Use the _ONCE methods, for efficiency.
65948         Check for fcntl.h.  In test program, include <errno.h>
65949         and <fcntl.h> if available.  Remove old K&R cruft from
65950         test program.  Check for common errors in GNU/Linux,
65951         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
65952         don't do AC_LIBOBJ, as that's getcwd.m4's job.
65953         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
65954         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
65955         name accordingly.
65956         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
65957         accommodate new getcwd.c.
65958         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
65959         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
65960         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
65961         that's all we need now.
65962
65963 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65964
65965         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
65966         argp-parse.c depends on getopt internals, that means we should
65967         always use our getopt, to be on the safe side.
65968         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
65969         order not to spoil the result of an eventual previous invocation
65970         of gl_GETOPT_SUBSTITUTE.
65971
65972 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65973
65974         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
65975         redefinition warnings. To avoid them, include the defines
65976         in `#if !defined __need_getopt ... #endif'. The only place
65977         where __getopt_argv_const is used is in definitions
65978         of getopt_long and getopt_long_only below, which are as well
65979         protected by `#ifndef __need_getopt'.
65980         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
65981         __need_getopt after including <stdio.h> and <unistd.h> These
65982         headers might have defined it.
65983
65984 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
65987
65988 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65989
65990         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
65991         (futimens): New function, which uses futimes if available.
65992         (futimens, utimens): Support timespec==NULL, with same semantics
65993         as utime and utimens.
65994         * lib/utimens.h (futimens): New decl.
65995
65996 2004-11-23  Jim Meyering  <jim@meyering.net>
65997
65998         * lib/getopt_.h: Remove trailing blanks.
65999
66000 2004-11-23  Jim Meyering  <jim@meyering.net>
66001
66002         * lib/__fpending.c: Add comment.
66003
66004 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * modules/canonicalize (Depends-on): Add xreadlink.
66007         Problem reported by James Youngman.
66008
66009 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66010
66011         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
66012         New macros.
66013         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
66014         optopt): Use them instead of invoking ## directly; otherwise, the
66015         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
66016
66017 2004-11-19  Bruno Haible  <bruno@clisp.org>
66018
66019         * lib/strtok_r.c: Move comments from here...
66020         * lib/strtok_r.h: ... to here.
66021
66022 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
66025         implementations that mishandle size_t overflow.
66026
66027 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66028
66029         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
66030         might fail.  Problem reported by Yoann Vandoorselaere.
66031         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
66032         implementations that mishandle size_t overflow.
66033
66034 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66035
66036         * modules/canon-host (Depends-on): Add strdup.
66037
66038 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
66041
66042 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66043
66044         * lib/canon-host.c: Include "strdup.h".
66045         (canon_host): Use getaddrinfo if available, so that IPv6 works.
66046         Use strdup instead of malloc/strcpy to duplicate strings.
66047
66048         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
66049         (human_space_before_unit): New constant.
66050         * lib/human.c (human_readable): Support it.
66051
66052         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
66053         (xgetcwd): Set errno correctly when failing.
66054         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
66055         the failure is actually due to a PATH_MAX problem.
66056
66057         Further getopt changes to make it more likely that glibc will
66058         buy the changes back.
66059         * lib/getopt.c (POSIXLY_CORRECT): New constant.
66060         (getopt): Use it, so to preserve glibc semantic
66061         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
66062         when compiling for libc.
66063         * lib/getopt_.h (__getopt_argv_const): Bring it back.
66064         (getopt_long, getopt_long_only): Use it.
66065
66066         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66067         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
66068         (getopt): Argv is now char * const *, as per standard.
66069         (_getopt_internal_r, _getopt_internal): Argv is now char **,
66070         not char *__getopt_argv_const *.
66071         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66072         _getopt_long_only_r): Likewise.
66073         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
66074         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66075         _getopt_long_r, _getopt_long_only_r): Likewise.
66076         * lib/getopt_.h (__getopt_argv_const): Remove.
66077         (getopt): Argv is now char * const *, as per standard.
66078
66079         * lib/getdate.y (tORDINAL): New token.
66080         (day, relunit): Allow it for relative times.
66081         (relative_time_table): Use tORDINAL for ordinals.
66082
66083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
66086         Document that "second" isn't allowed as an ordinal number.
66087
66088 2004-11-16  Jim Meyering  <jim@meyering.net>
66089
66090         * modules/closeout (Depends-on): Add fpending.
66091
66092 2004-11-15  Jim Meyering  <jim@meyering.net>
66093
66094         * lib/closeout.c: Include "__fpending.h" once again.
66095         Include <stdbool.h>.
66096         (close_stdout): Don't fail just because stdout was closed initially,
66097         since some programs don't write to stdout in the normal course of
66098         operation (other than --version and --help), and we don't want this
66099         function to make e.g. `touch file >&-' fail.
66100         But do fail if it was closed and someone has tried to write to it.
66101         E.g., `printf foo >&-' must fail.
66102
66103 2004-11-13  Jim Meyering  <jim@meyering.net>
66104
66105         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
66106
66107 2004-11-12  Simon Josefsson  <jas@extundo.com>
66108
66109         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
66110         small doc fix is still pending.
66111
66112 2004-11-11  Simon Josefsson  <jas@extundo.com>
66113
66114         * modules/strtok_r: New file.
66115
66116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66117         strtok_r.
66118
66119 2004-11-11  Simon Josefsson  <jas@extundo.com>
66120
66121         * m4/strtok_r.m4: New file.
66122
66123         * m4/getopt.m4: Replace opterr.
66124
66125 2004-11-11  Simon Josefsson  <jas@extundo.com>
66126
66127         * lib/strtok_r.h, strtok_r.c: New file.
66128
66129 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66130
66131         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66132         of replacing opterr, getopt, etc.  This should handle the
66133         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
66134
66135 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66136
66137         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
66138         we can stop lying to compilers about the constness of argv when we
66139         are compiled outside glibc.
66140         (getopt, getopt_long, getopt_long_only): Use it.
66141         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66142         _getopt_internal, getopt): Likewise.
66143         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66144         _getopt_long_only_r): Likewise.
66145         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66146         _getopt_long_r, _getopt_long_only_r): Likewise.
66147
66148         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
66149         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
66150         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
66151         the other external symbols.
66152         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
66153         declaration, since the above renaming now works around collisions.
66154
66155 2004-11-11  Jim Meyering  <jim@meyering.net>
66156
66157         * lib/linebreak.c: Remove trailing blanks.
66158         * lib/alloca_.h: Likewise.
66159         * lib/acosl.c: Likewise.
66160         * lib/euidaccess.c: Likewise.
66161         * lib/allocsa.h: Likewise.
66162
66163 2004-11-10  Simon Josefsson  <jas@extundo.com>
66164
66165         * m4/getaddrinfo.m4: New file.
66166
66167 2004-11-10  Simon Josefsson  <jas@extundo.com>
66168
66169         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
66170
66171 2004-11-10  Simon Josefsson  <jas@extundo.com>
66172
66173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66174         getaddrinfo.
66175
66176         * modules/getaddrinfo: New file.
66177
66178 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66179
66180         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66181
66182 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66183
66184         * lib/mktime.c (SHR): New macro, which is a portable
66185         substitute for >> that should work even on Crays.
66186         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
66187         Problem reported by Mark D. Baushke in
66188         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
66189         * lib/getdate.y (SHR): Likewise.
66190         (tm_diff): Use it.
66191         * lib/strftime.c (SHR): Likewise.
66192         (tm_diff): Use it.
66193         * lib/quotearg.c (struct quoting_options): Use unsigned int for
66194         quote_these_too, so that right shifts are well defined.  All uses
66195         changed.
66196
66197 2004-11-10  Jim Meyering  <jim@meyering.net>
66198
66199         Ensure that no close failure goes unreported.
66200         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
66201         return early when it seems there's nothing to flush.
66202         Don't include __fpending.h.
66203
66204 2004-11-10  Jim Meyering  <jim@meyering.net>
66205
66206         * modules/closeout (Depends-on): Remove fpending.
66207
66208 2004-11-10  Jim Meyering  <jim@meyering.net>
66209
66210         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
66211
66212 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
66215         gl_FUNC_STRFTIME.
66216         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
66217         and AC_REQUIRE when possible, to avoid duplicate checks.
66218         Check for <wchar.h>.
66219
66220 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66221
66222         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
66223
66224 2004-11-09  Bruno Haible  <bruno@clisp.org>
66225
66226         * m4/sockpfaf.m4: New file.
66227
66228 2004-11-05  Bruno Haible  <bruno@clisp.org>
66229
66230         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
66231         Reported by Mark D. Baushke <mdb@cvshome.org>.
66232
66233 2004-11-04  Bruno Haible  <bruno@clisp.org>
66234
66235         2004-09-11  Bruno Haible  <bruno@clisp.org>
66236                 * allocsa.valgrind: New file.
66237         2004-02-06  Bruno Haible  <bruno@clisp.org>
66238                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
66239                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
66240                 Reported by Christopher Seip <chris.seip@hp.com>.
66241
66242 2004-11-04  Bruno Haible  <bruno@clisp.org>
66243
66244         * modules/allocsa (Files): Add lib/allocsa.valgrind.
66245         (Makefile.am): Distribute it.
66246
66247 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
66250         with errno == ERANGE if the buffer is too small.
66251         Problem reported by Mark D. Baushke.
66252
66253 2004-11-03  Albert Chin  <china@thewrittenword.com>
66254             Paul Eggert  <eggert@cs.ucla.edu>
66255
66256         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
66257         equivalent, substitute $ac_type for equivalent type rather than
66258         blindly using uint32_t *always* which won't work if uint32_t is not
66259         available.  Define _UINT32_T to work around typedef of uint32_t if
66260         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
66261         2.5.1.
66262
66263 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         * m4/jm-macros.m4: Sync from coreutils.
66266         (gl_MACROS): Check for mbrlen, for pathchk.
66267         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
66268
66269 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * lib/xreadlink.c (MAXSIZE): New macro.
66272         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
66273         size does not exceed MAXSIZE.  Avoid cast.
66274         As suggested by Mark D. Baushke in
66275         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
66276         if readlink fails with buffer size just under MAXSIZE, try again
66277         with MAXSIZE.
66278
66279 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66280
66281         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
66282
66283 2004-11-02  Derek R. Price  <derek@ximbiot.com>
66284         and  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
66287         (get_date): Overparenthesize to avoid GCC warning.
66288
66289 2004-11-02  Bruno Haible  <bruno@clisp.org>
66290
66291         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
66292         returns void.
66293
66294 2004-11-02  Bruno Haible  <bruno@clisp.org>
66295
66296         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
66297         function returns void.
66298
66299 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
66302         fflush_unlocked, flockfile, funlockfile, funlockfile,
66303         fputs_unlocked, putc_unlocked.
66304
66305 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66308         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
66309         already declared.
66310
66311 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66312
66313         * modules/getdate (Files): Add doc/getdate.texi.
66314         (Depends-on): Add setenv, xalloc.
66315
66316 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66317
66318         * lib/getdate.y: Add support for TZ="foo" within a date string.
66319         Fix some bugs near time_t boundaries.  Reject dates with
66320         out-of-range components, e.g., "Sept 31".
66321         Include <stdlib.h>, "setenv.h", "xalloc.h".
66322         (ISDIGIT_LOCALE): Remove; unused.
66323         Note that the TZ and time functions used here are not reentrant.
66324         (mktime_ok, get_tz): New functions.
66325         (TZBUFSIZE): New constant.
66326         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
66327         This requires that we sometimes generate our own TZ="XXX..." setting.
66328
66329 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66330
66331         * doc/getdate.texi: New file, from coreutils with modifications for
66332         the new TZ parsing.
66333
66334 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66335
66336         * lib/mktime.c (not_equal_tm): Remove redundant check.
66337
66338 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66339
66340         * modules/regex (lib_SOURCES): Add regex.c.
66341         Reported by James Youngman in
66342         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66343
66344 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * lib/getdate.y: Use Bison 1.875 features, and some minor
66347         code cleanups.  This change does not affect semantics.
66348         Don't include <stdlib.h>; no longer needed.
66349         Don't include unlocked-io.h; only the "#if TEST" code uses
66350         stdio, and performance isn't crucial there.
66351         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66352         Bison 1.875 features as described below.
66353         All uses of "PC." replaced by "pc->".
66354         (YYSTYPE): Add a forward declaration.
66355         (yylex, yyerror): Use full prototypes in forward decls.
66356         Use "%pure-parser" rather than obsolescent "%pure_parser".
66357         Use %parse-param and %lex-param instead of obsolescent
66358         YYPARSE_PARAM and YYLEX_PARAM.
66359         (meridian_table, month_and_day_table, time_units_table,
66360         relative_time_table, time_zone_table, military_table,
66361         lookup_zone, lookup_word, get_date):
66362         Use NULL instead of 0 where appropriate.
66363         (to_hour): Avoid abort (), to avoid a dependency on
66364         stdlib.h.
66365         (yyerror, yylex): Now accepts parser_control * arg.
66366         (main) [TEST]: Use '\0' rather than 0 for char.
66367
66368 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66369
66370         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
66371
66372 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66373
66374         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
66375         It's now the caller's responsibility to handle the case where
66376         !HAVE_GETPAGESIZE && !defined getpagesize.
66377
66378         * lib/mktime.c (leapyear): Arg is long int, not int.
66379
66380 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
66383
66384 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66385
66386         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
66387         missing.  Problem reported by James Youngman.
66388
66389 2004-10-16  Simon Josefsson  <jas@extundo.com>
66390
66391         * gnulib-tool: Fix comments.  Fix parse problem.
66392         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
66393
66394 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
66397         implementation of getopt_long.  Problem reported by Alexander Taler in:
66398         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
66399
66400 2004-10-15  Bruno Haible  <bruno@clisp.org>
66401
66402         * gnulib-tool: Untabify. Initialize supplied_libname.
66403         (func_usage): More homogenous output.
66404         (func_modules_transitive_closure, func_modules_to_filelist,
66405         func_emit_lib_Makefile_am): New functions.
66406         (func_import): New function, extracted from big case statement. Use
66407         func_get_license, func_modules_transitive_closure,
66408         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
66409         opt_lgpl. Don't use test -a, as it's not portable.
66410         (func_create_testdir): Use func_modules_transitive_closure,
66411         func_modules_to_filelist, func_emit_lib_Makefile_am.
66412
66413 2004-10-15  Bruno Haible  <bruno@clisp.org>
66414
66415         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
66416
66417 2004-10-15  Bruno Haible  <bruno@clisp.org>
66418
66419         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
66420         the portions belonging to each module.
66421         Suggested by Derek Robert Price <derek@ximbiot.com>.
66422
66423 2004-10-12  Simon Josefsson  <jas@extundo.com>
66424
66425         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66426         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
66427         to real functions.
66428
66429 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66430
66431         * modules/vsnprintf: New file.
66432
66433 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66434
66435         * m4/vsnprintf.m4: New file.
66436
66437 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66438
66439         * lib/vsnprintf.h: New file.
66440         * lib/vsnprintf.c: New file.
66441
66442 2004-10-11  Bruno Haible  <bruno@clisp.org>
66443
66444         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
66445         vsnprintf.
66446
66447 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
66450
66451 2004-10-07  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
66454         fits into the provided buffer.
66455
66456 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * lib/diacrit.c, diacrit.h: Add GPL notice.
66459
66460         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
66461         notice.
66462         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
66463         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
66464         This avoids a potential constant-folding bug.
66465
66466 2004-10-05  Bruno Haible  <bruno@clisp.org>
66467
66468         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66469         for the declaration of strsep.
66470
66471 2004-10-05  Bruno Haible  <bruno@clisp.org>
66472
66473         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66474
66475 2004-10-04  Simon Josefsson  <jas@extundo.com>
66476
66477         * modules/memmem: New file.
66478         * tests/test-memmem.c: New file.
66479         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66480
66481 2004-10-04  Simon Josefsson  <jas@extundo.com>
66482
66483         * m4/memmem.m4: New file.
66484
66485 2004-10-04  Simon Josefsson  <jas@extundo.com>
66486
66487         * lib/memmem.h: New file.
66488         * lib/memmem.c: New file, taken from glibc.
66489
66490 2004-10-04  Simon Josefsson  <jas@extundo.com>
66491
66492         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66493         '#ifdef USE_UNLOCKED_IO'.
66494
66495 2004-10-04  Simon Josefsson  <jas@extundo.com>
66496
66497         * config/srclist.txt: Add memmem from glibc.
66498
66499 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66502
66503         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66504         modules/exclude, modules/getdate, modules/getline,
66505         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66506         modules/getusershell, modules/linebuffer, modules/md5,
66507         modules/mountlist, modules/posixtm, modules/readtokens,
66508         modules/readutmp, modules/regex, modules/sha1,
66509         modules/version-etc, modules/yesno:
66510         Remove dependency on unlocked-io.
66511
66512 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66513
66514         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
66515
66516         * m4/unlocked-io.m4: Add copyright notice.
66517         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
66518
66519 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
66522         * lib/xmalloc.c (xmemdup): Likewise.
66523         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
66524         XFREE): Remove these long-obsolescent macros.
66525         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
66526         * lib/xstrdup.c: Remove.
66527
66528         * lib/regex.c (re_comp): Cast gettext return value to char *,
66529         Problem reported by Martin Neitzel via Mark D. Baushke.
66530
66531 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
66534         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
66535         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
66536         regex.c, sha1.c, version-etc.c, yesno.c:
66537         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
66538         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
66539         the includer's responsibility.
66540
66541         Sync from coreutils.
66542
66543         * lib/modechange.c (mode_compile): Don't decrement a pointer that
66544         points to the start of a string, as the C Standard says the
66545         resulting behavior is undefined.
66546
66547         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
66548         simple -> simple_backups, numbered_existing ->
66549         numbered_existing_backups, numbered -> numbered_backups
66550         to avoid shadowing problems.  All uses changed.
66551         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
66552         * lib/backupfile.c (check_extension, numbered_backup):
66553         Rename locals to avoid shadowing 'basename'.
66554         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
66555         once.
66556
66557         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
66558         * lib/.cvsignore: Add getopt.h.
66559
66560 2004-10-04  Bruno Haible  <bruno@clisp.org>
66561
66562         * modules/README: New file.
66563         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
66564         not a module.
66565
66566 2004-10-02  Jim Meyering  <jim@meyering.net>
66567
66568         * lib/dirfd.h, getpagesize.h: Add copyright notice.
66569
66570 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66571
66572         * modules/strsep: New file.
66573
66574 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66575
66576         * m4/strsep.m4: New file.
66577
66578 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66579
66580         * lib/strsep.h: New file.
66581         * lib/strsep.c: New file.
66582
66583 2004-10-01  Simon Josefsson  <jas@extundo.com>
66584
66585         * lib/snprintf.c (snprintf): Handle size==0.
66586
66587 2004-10-01  Simon Josefsson  <jas@extundo.com>
66588             Bruno Haible  <bruno@clisp.org>
66589
66590         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
66591         (snprintf): Declare 'args'.
66592
66593 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * lib/snprintf.c: Remove comments as to why each header is needed.
66596
66597 2004-10-01  Bruno Haible  <bruno@clisp.org>
66598
66599         * MODULES.html.sh: Add strsep.
66600
66601 2004-09-30  Simon Josefsson  <jas@extundo.com>
66602
66603         * modules/snprintf: New file.
66604
66605 2004-09-30  Simon Josefsson  <jas@extundo.com>
66606
66607         * m4/snprintf.m4: New file.
66608
66609 2004-09-30  Simon Josefsson  <jas@extundo.com>
66610
66611         * lib/snprintf.h, lib/snprintf.c: New files.
66612
66613 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66614
66615         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
66616         (hol_entry_help): Never translate an empty string.
66617         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
66618         * lib/argp.h (OPTION_NO_TRANS): New option.
66619
66620 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         * modules/argp (Maintainer): Replace Simon Josefsson
66623         by Sergey Poznyakoff.
66624
66625 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
66628         changes merged back into glibc.
66629
66630 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
66633
66634 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66635
66636         * lib/xvasprintf.c: Include xalloc.h.
66637         (xvasprintf): Use xalloc_die, not xmalloc_die.
66638
66639 2004-09-29  Bruno Haible  <bruno@clisp.org>
66640
66641         * modules/alloca-opt: New file, derived from modules/alloca.
66642         * modules/allocsa: Depend on alloca-opt instead of alloca.
66643         * modules/setenv: Likewise.
66644         * modules/vasnprintf: Likewise.
66645         * MODULES.html.sh: Add alloca-opt.
66646
66647 2004-09-28  Simon Josefsson  <jas@extundo.com>
66648
66649         * gnulib-tool: New parameter --lgpl, to asseert that modules are
66650         LGPL, and to replace license template from GPL to LGPL.
66651
66652 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66653
66654         * modules/dummy: Change license to LGPL.
66655
66656 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66657
66658         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
66659
66660 2004-09-24  Simon Josefsson  <jas@extundo.com>
66661
66662         * modules/minmax (License): Change from GPL to LGPL.
66663
66664 2004-09-23  Simon Josefsson  <jas@extundo.com>
66665
66666         * gnulib-tool (--import): Typo.
66667
66668 2004-09-23  Simon Josefsson  <jas@extundo.com>
66669
66670         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
66671
66672 2004-09-22  Bruno Haible  <bruno@clisp.org>
66673
66674         * modules/*: Add 'License' field.
66675         * gnulib-tool: Accept --extract-license option.
66676         (func_get_license): New function.
66677
66678 2004-09-21  Bruno Haible  <bruno@clisp.org>
66679
66680         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
66681         Reported by Simon Josefsson.
66682
66683 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66684
66685         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
66686         gl_AC_TYPE_LONG_LONG.
66687
66688 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
66691
66692 2004-09-18  Simon Josefsson  <jas@extundo.com>
66693         and  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
66696         calls with autoreconf.  Define GL_LIB.
66697
66698 2004-09-14  Karl Berry  <karl@gnu.org>
66699
66700         * config/srclist.txt: unsync setenv.c, sigh.
66701
66702 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
66705         Problem reported by Bruno Haible in:
66706         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
66707
66708 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66709
66710         * config/srclist.txt: Comment out argp-pvh.c.
66711
66712 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
66715         in case some system header has #define'd it.  Problem reported by
66716         Soeren D. Schulze in
66717         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
66718
66719 2004-09-09  Karl Berry  <karl@gnu.org>
66720
66721         * regex.[ch]: delete from the root.  These were supposed to be
66722                 synced with emacs cvs, but this has not happened for about
66723                 a year, and anyway nothing else uses emacs regex.[ch].
66724                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
66725                 lib/regex[.ch] is untouched.
66726
66727 2004-09-09  Bruno Haible  <bruno@clisp.org>
66728
66729         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
66730
66731 2004-09-09  Bruno Haible  <bruno@clisp.org>
66732
66733         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
66734         modifications.
66735         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
66736
66737 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66738
66739         * modules/xvasprintf: New file.
66740         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
66741
66742 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66743
66744         * lib/xvasprintf.h: New file.
66745         * lib/xvasprintf.c: New file.
66746         * lib/xasprintf.c: New file.
66747
66748 2004-09-08  Bruno Haible  <bruno@clisp.org>
66749
66750         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
66751
66752 2004-09-08  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
66755         length is > INT_MAX.
66756         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
66757         more.
66758
66759 2004-09-08  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/stdint_.h: New file, taken from GNU clisp.
66762
66763 2004-09-08  Bruno Haible  <bruno@clisp.org>
66764             Oskar Liljeblad  <oskar@osk.mine.nu>
66765
66766         * modules/stdint: New file.
66767         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
66768
66769 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         Import from coreutils.
66772         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
66773         strings on unbounded length.  alloca's performance benefits aren't
66774         that important here.
66775         (V_STRDUP): Remove.
66776         (parse_with_separator): New function, with most of the internals
66777         of the old parse_user_spec.  Allow user to omit both user and group,
66778         for compatibility with FreeBSD.
66779         Clone only the user name, not the entire spec.
66780         Do not set *uid, *gid unless entirely successful.
66781         Avoid memory leak in some failing cases.
66782         Fix regression for USER.GROUP reported by Dmitry V. Levin in
66783         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
66784         (parse_user_spec): Rewrite to use parse_with_separator.
66785
66786 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66787
66788         * modules/userspec: Don't depend on alloca.
66789
66790 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66791
66792         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
66793
66794 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66795
66796         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
66797         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
66798         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
66799
66800 2004-08-16  Simon Josefsson  <jas@extundo.com>
66801
66802         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
66803         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
66804         Add --dry-run for --import.
66805         Let user provided command line parameters override configure.ac
66806         settings.
66807
66808 2004-08-12  Simon Josefsson  <jas@extundo.com>
66809
66810         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
66811         as discussed with Paul Eggert in threads rooted at
66812         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
66813         and
66814         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
66815         Before, the test was empty, and relied on ELIDE_CODE in source
66816         code.)
66817         (gl_PREREQ_GETOPT): New macro.
66818         (gl_GETOPT): Use them.
66819
66820 2004-08-12  Simon Josefsson  <jas@extundo.com>
66821
66822         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
66823         * lib/getopt_.h: Renamed from getopt.h.
66824
66825 2004-08-12  Simon Josefsson  <jas@extundo.com>
66826
66827         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
66828         Change default library name from libfoo to libgnu.
66829         Now, if you have a configure.ac that says:
66830                 gl_SOURCE_BASE(gl)
66831                 gl_M4_BASE(gl/m4)
66832                 gl_MODULES(error getopt etcetera)
66833                 gl_INIT
66834         you can import all you need by running:
66835                 ../gnulib/gnulib-tool --import
66836
66837         * modules/getopt (Files): Rename getopt.h to getopt_.h.
66838         (Makefile.am): Rewrite, use logic from argz.
66839         (Include): Use <getopt.h> instead of "getopt.h".
66840
66841 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66842
66843         * modules/argp (Files): Add m4/unlocked-io.m4.
66844         (Depends-on): Add extensions.
66845
66846 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
66849         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
66850         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
66851         Check for program_invocation_name, program_invocation_short_name,
66852         flockfile, funlockfile, features.h, _getopt_long_only_r.
66853
66854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66855
66856         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
66857         its complicated substitute.
66858         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
66859         and program_invocation_name.
66860         (__argp_basename) [!_LIBC]: Remove; the only use was
66861         replaced by its body.
66862         (__argp_short_program_name): Change condition from
66863         !defined __argp_short_program_name to
66864         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
66865         to match argp-namefrob.h.
66866         (__argp_failure): Don't assume strerror_r returns char *.
66867         * lib/argp-parse.c (N_): Define unconditionally.
66868         (argp_default_options): Fill out initializers with 0 to avoid
66869         gcc warnings.
66870
66871 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66872
66873         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
66874         getopt1.c.
66875
66876 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66877
66878         Merge from coreutils.
66879
66880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
66881
66882         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
66883         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
66884
66885 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         Merge from coreutils.
66888
66889         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
66890         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
66891         for Reliant Unix 5.43.
66892
66893         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
66894         (union fooround): Use uintmax_t, not long int.
66895         The rest is a merge from libc:
66896         [defined _LIBC]: Include <shlib-compat.h>.
66897         (_obstack) [defined _LIBC]: Remove after 2.3.4.
66898
66899         * lib/settime.c (settime): Recode to avoid warning with
66900         Sun Forte C 6U2.
66901
66902         * lib/strverscmp.c: Convert to UTF-8.
66903
66904 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66907         m4/uintmax_t.m4.
66908
66909 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * modules/xalloc-die: New file.
66912         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
66913
66914         * modules/md5 (Files): Add m4/uint32_t.m4.
66915         * modules/sha1: Renamed from modules/sha.
66916         (Files):
66917         Rename lib/sha.h to lib/sha1.h.
66918         Rename lib/sha.c to lib/sha1.c.
66919         Rename m4/sha.m4 to m4/sha1.m4.
66920         (lib_SOURCES): Likewise.
66921         (configure.ac): Rename gl_SHA to gl_SHA1.
66922         (Include): sha.h -> sha1.h.
66923
66924 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66925
66926         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
66927         * m4/sha1.m4: Renamed from sha.m4.
66928         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
66929
66930 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * lib/obstack.h (obstack_empty_p):
66933         Don't assume that chunk->contents is suitably aligned.
66934         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
66935         Likewise. Problem reported by Benno in
66936         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
66937
66938         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
66939         readable.  This could be improved further but it'd take some work.
66940
66941 2004-08-08  Simon Josefsson  <jas@extundo.com>
66942
66943         * modules/xgethostname (Depends-on): Remove exit and error (not
66944         used).
66945
66946         * modules/getpass-gnu: Add getpass.h.
66947         (Depends-on): Add stdbool.
66948         * modules/getpass: Add getpass.h.
66949
66950 2004-08-08  Simon Josefsson  <jas@extundo.com>
66951
66952         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
66953         Check getpass declaration.
66954
66955 2004-08-08  Simon Josefsson  <jas@extundo.com>
66956
66957         * lib/xgethostname.c: Don't include error.h (not used).
66958
66959         * lib/getpass.h: Add.
66960         * lib/getpass.c: Include getpass.h first.
66961
66962 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         * lib/xalloc-die.c: New file.
66965         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
66966         All uses removed.
66967         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
66968         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
66969         xalloc-die.c.
66970         (_, N_, xalloc_die): Move to xalloc-die.c.
66971         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
66972         so that we needn't mess with xalloc_msg_memory_exhausted.
66973
66974         * lib/sha1.h: Renamed from sha.h.
66975         (SHA1_H): Renamed from _SHA_H.
66976         (sha1_ctx): Renamed from sha_ctx.
66977         (sha1_init_ctx): Renamed from sha_init_ctx.
66978         (sha1_process_block): Renamed from sha_process_block.
66979         (sha1_process_bytes): Renamed from sha_process_bytes.
66980         (sha1_finish_ctx): Renamed from sha_finish_ctx.
66981         (sha1_read_ctx): Renamed from sha_read_ctx.
66982         (sha1_stream): Renamed from sha_stream.
66983         (sha1_buffer): Renamed from sha_buffer.
66984         * lib/sha1.c: Likewise; renamed from sha.c.
66985         Do not include <sys/types.h>.
66986         Include <stddef.h> rather than <stdlib.h>.
66987
66988 2004-08-08  Bruno Haible  <bruno@clisp.org>
66989
66990         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
66991         FILESYSTEM_PREFIX_LEN.
66992         * lib/progreloc.c: Likewise.
66993         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
66994
66995 2004-08-06  Simon Josefsson  <jas@extundo.com>
66996
66997         * modules/progname (Depends-on): Don't depend on stdbool.
66998
66999 2004-08-06  Simon Josefsson  <jas@extundo.com>
67000
67001         * modules/getsubopt: New file.
67002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67003         getsubopt.
67004
67005 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         More merge from coreutils.
67008
67009         * m4/utimens.m4, m4/utimecmp.m4: New files.
67010         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
67011         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
67012         prereq.m4, sha.m4: Import changes from coreutils.
67013
67014 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         More merge from coreutils.
67017         * modules/raise, modules/readtokens0, modules/utimens:
67018         * modules/utimecmp, module/xnanosleep: New files.
67019         * modules/strftime: Add lib/strftime.h.
67020         Change include from <time.h> to "strftime.h".
67021         * modules/yesno: Add lib/yesno.h.
67022         * modules/backupfile: Remove lib/addext.c.
67023         * modules/euidaccess: Add stat-macros.h.
67024         * modules/canonicalize, modules/euidaccess,
67025         modules/filemode, modules/lchown, modules/makepath,
67026         modules/rmdir, modules/stat: Likewise.
67027
67028 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67029
67030         Merge from tar.
67031         * lib/argp-help.c (make_hol, hol_append): Don't assume that
67032         SIZE_MAX is a valid preprocessor constant.
67033         (__argp_basename): Change from "#ifndef _LIBC"
67034         to "#ifndef __argp_short_program_name", so that
67035         we don't compile these functions for tar.
67036
67037         More merges from coreutils.
67038         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
67039         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
67040         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
67041         * lib/addext.c: Remove; no longer needed.
67042         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
67043         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
67044         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
67045         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
67046         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
67047         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
67048         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
67049         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
67050         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
67051         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67052         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
67053         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
67054         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
67055         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
67056         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
67057         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
67058         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
67059         Import changes from coreutils.
67060
67061 2004-08-05  Simon Josefsson  <jas@extundo.com>
67062
67063         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
67064
67065 2004-08-05  Simon Josefsson  <jas@extundo.com>
67066
67067         * m4/getsubopt.m4: New file.
67068
67069 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67070
67071         Merge from coreutils.
67072
67073         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
67074         * m4/getcwd-path-max.m4: New files.
67075
67076         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
67077         FILESYSTEM_PREFIX_LEN ->
67078         FILE_SYSTEM_PREFIX_LEN.
67079         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
67080         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
67081         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
67082         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
67083
67084         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
67085         prerequisite modules now handle the DOS stuff.
67086         Don't check for unistd.h.
67087
67088 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         Merge from coreutils.
67091
67092         * lib/.gdb-history: Remove; this doesn't belong here.
67093
67094         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
67095         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
67096         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
67097         * lib/getcwd.c: New files.
67098
67099         * lib/dirname.h: Include <stdbool.h>.
67100         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
67101         for consistency with POSIX terminology.  All uses changed.
67102         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
67103         (strip_trailing_slashes): Use bool for booleans.
67104         * lib/stripslash.c (strip_trailing_slashes): Likewise.
67105
67106         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
67107         sometimes returns a positive errno value even when it succeeds.
67108         (print_errno_message) [!LIBC]: Fall back on strerror if
67109         __strerror_r fails.
67110
67111         * lib/path-concat.c (mempcpy): Don't define if a system header defines
67112         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
67113         (longest_relative_suffix): New function.
67114         (path_concat): Use it.  Assume first argument is not NULL.
67115         Port to DOS.  Omit redundant separators.
67116         Report an error instead of returning NULL.
67117         Use mempcpy instead of memcpy.
67118         (xpath_concat): Remove: not declared or used.
67119
67120         * lib/same.h: Include <stdbool.h>
67121         (same_name): Return bool, not int.
67122         * lib/same.c (same_name): Likewise.
67123         (errno): Don't declare; we assume C89 or better now.
67124
67125         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67126         if not already defined.
67127
67128         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67129         * lib/dup-safer.c (errno): Likewise.
67130
67131 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67132
67133         Merge from coreutils.
67134         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
67135         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
67136         * modules/path-concat: Don't depend on strdup.
67137
67138 2004-08-03  Simon Josefsson  <jas@extundo.com>
67139
67140         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
67141         * lib/progname.h: Don't include stdbool.h.
67142
67143 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67144
67145         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
67146         * MODULES.html.sh (func_all_modules): Remove fatal.
67147
67148 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
67151
67152 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67153
67154         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
67155         working.
67156
67157 2004-08-02  Simon Josefsson  <jas@extundo.com>
67158
67159         * lib/getsubopt.h: New file, with comments from Bruno Haible.
67160         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
67161         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
67162
67163 2004-08-01  Simon Josefsson  <jas@extundo.com>
67164
67165         * lib/xgetdomainname.c: Include stdlib.h, for free().
67166
67167 2004-07-19  Bruno Haible  <bruno@clisp.org>
67168
67169         * MODULES.html.sh (func_all_modules): Add dummy.
67170
67171 2004-07-16  Simon Josefsson  <jas@extundo.com>
67172
67173         * modules/dummy: New file.
67174
67175 2004-07-16  Simon Josefsson  <jas@extundo.com>
67176
67177         * lib/dummy.c: New file.
67178
67179 2004-07-16  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/backupfile.h: Add extern "C" for C++.
67182         * lib/closeout.h: Likewise.
67183         * lib/copy-file.h: Likewise.
67184         * lib/findprog.h: Likewise.
67185         * lib/full-write.h: Likewise.
67186         * lib/pathname.h: Likewise.
67187         * lib/progname.h: Likewise.
67188         * lib/stpcpy.h: Likewise.
67189         * lib/stpncpy.h: Likewise.
67190         * lib/strcase.h: Likewise.
67191         * lib/strstr.h: Likewise.
67192         * lib/xalloc.h: Likewise.
67193
67194         * lib/mbswidth.h: Add extern "C" for C++.
67195         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
67196
67197 2004-07-13  Robert Millan  <robertmh@gnu.org>
67198
67199         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
67200
67201 2004-07-09  Simon Josefsson  <jas@extundo.com>
67202
67203         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
67204         failed without this.)
67205
67206 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * modules/chown (Files): Add lib/fchown-stub.c, since
67209         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
67210
67211 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67212
67213         * lib/fchown-stub.c: New file.
67214
67215 2004-06-24  Jim Meyering  <jim@meyering.net>
67216
67217         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
67218
67219 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         * modules/argz: Omit "#include".
67222
67223         * MODULES.html.sh (func_all_modules): Add calloc, to match
67224         2004-06-01 addition of calloc module.
67225
67226 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * m4/argz.m4: New file, which is autoupdated from libtool.
67229
67230 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
67233         libtool.
67234
67235 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         * config/srclist-update: Don't insist on "USA." before the
67238         close-comment, as libtool omits the period and puts the */ on a
67239         separate line.
67240         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
67241         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
67242
67243 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
67244
67245         * modules/argz: New file.
67246         * MODULES.html.sh (func_all_modules): Add argz.
67247
67248 2004-06-12  Jim Meyering  <jim@meyering.net>
67249         and  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * modules/hash (Files): Add lib/xalloc.h.
67252         * modules/pipe (Depends-on): Add wait-process.
67253         * modules/stat (Depends-on): Add xalloc.
67254         * modules/userspec (Files): Add lib/userspec.h.
67255         * modules/xstrto
67256
67257         Upgrade from gettext-0.13.
67258         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
67259         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
67260         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
67261
67262 2004-06-10  Jim Meyering  <jim@meyering.net>
67263
67264         * lib/calloc.c: New file.
67265
67266 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * lib/getdate.y (yylex): Allow space between sign and number.
67269         Problem reported by Dan Jacobson.
67270
67271 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         Merge from coreutils CVS.
67274
67275         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
67276         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
67277         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
67278         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
67279         xstrtol.m4: Fix copyright date and/or serial number.
67280
67281         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
67282         See if we need an fchown replacement.
67283         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
67284         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
67285         and use the replacement function if we detect either defect.
67286
67287         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
67288         gl_UTIMECMP.
67289
67290 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67291         and  Jim Meyering  <jim@meyering.net>
67292
67293         Merge from coreutils CVS.
67294
67295         * lib/stat-macros.h: New file, with contents from file-type.h
67296         and coreutils' system.h.
67297         * lib/file-type.c: Include "stat-macros.h".
67298         * lib/file-type.h (file_type): Move all macro definitions to new file,
67299         stat-macros.h.
67300
67301         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
67302         Wrap old code with this conditional.
67303         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
67304         function that does not dereference symlinks.
67305         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
67306
67307         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
67308         dependency problems.
67309         (xreadlink): Accept new arg SIZE, for efficiency.
67310         All decls and uses changed.
67311         * lib/xreadlink.h: Include <stddef.h>, for size_t.
67312
67313         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
67314         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
67315
67316         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
67317         sysexits.h.
67318
67319 2004-06-01  Jim Meyering  <jim@meyering.net>
67320
67321         * m4/calloc.m4: New file.
67322
67323 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
67326         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
67327         Also, fix a typo in a diagnostic.
67328
67329 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
67332         or AC_FUNC_REALLOC.
67333
67334 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67337         macros to be defined.
67338         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67339         the allocator returns NULL because the requested size is zero.
67340
67341 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67344         var.  Add comment explaining why libc still defines it.  This
67345         merges the following patch from glibc:
67346         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67347
67348 2004-05-20  Andreas Schwab  <schwab@suse.de>
67349
67350         * m4/free.m4: Replace free if it not known to work, not the other
67351         way round.
67352
67353 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67356         present in glibc since revision 1.1 of this file.
67357         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67358         obstack_alignment_mask, obstack_alloc, obstack_base,
67359         obstack_blank, obstack_blank_fast, obstack_chunk_size,
67360         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
67361         obstack_grow0, obstack_init, obstack_int_grow,
67362         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
67363         obstack_next_free, obstack_object_size, obstack_ptr_grow,
67364         obstack_ptr_grow_fast, obstack_room): Remove declarations of
67365         nonexistent functions.
67366
67367 2004-05-18  Karl Berry  <karl@gnu.org>
67368
67369         * config/srclist.txt: break link for vasnprintf.c.
67370
67371 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         Port obstack to the AS/400, where pointers are 16 bytes wide and
67374         you cannot cast an integer to a valid pointer.  This patch is
67375         currently waiting to be integrated into glibc; see
67376         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
67377
67378         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
67379         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
67380         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
67381         (struct obstack): temp member is now a union of a pointer and
67382         an integer, instead of an integer.  All integer uses changed.
67383         This does not affect the physical layout of struct obstack,
67384         except on hosts (like the AS/400) where the size or alignment of
67385         void * is greater than that of ptrdiff_t.
67386         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
67387         __STDC__)]: Store temporary in pointer member of union, not
67388         integer member.
67389         * lib/obstack.c: Include <stddef.h>, for offsetof.
67390         (struct fooalign): Remove; it doesn't need a name.
67391         (union fooround): Change double to long double, and add void *.
67392         (DEFAULT_ALIGNMENT): Use offsetof to compute.
67393         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
67394         not a macro.  Hence the values are always int; so remove all
67395         casts-to-int in uses.
67396
67397 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
67400         we can get this patch merged into glibc.
67401
67402 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67403             Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         * m4/argp: Depend on alloca.
67406
67407 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67408             Paul Eggert  <eggert@cs.ucla.edu>
67409
67410         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
67411         freecoding.
67412
67413 2004-05-17  Bruno Haible  <bruno@clisp.org>
67414
67415         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
67416         precision that consists of a '.' followed by an empty digit string.
67417         Patch by Tor Lillqvist <tml@iki.fi>.
67418
67419 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67420
67421         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
67422         for backward compatibility with older code.  We need our own
67423         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
67424         it under some other name, and our alloca.h will define it.
67425
67426 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67427             Derek Price  <derek@ximbiot.com>
67428
67429         * lib/alloca.c: Include <alloca.h>, to get our interface.
67430         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
67431         include <alloca.h> first.  Use C89 prototype for alloca; this
67432         requires including <stddef.h> for size_t.  Use extern "C" if C++.
67433         Use #elif for simplicity, since we can assume C89 now.
67434         Don't try to source the system alloca.h since it will not be found
67435         and to prevent recursively including its replacement.
67436         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
67437         * lib/regex.c: Likewise.
67438
67439 2004-05-16  Derek Price  <derek@ximbiot.com>
67440             Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         getline cleanup.  This changes the getndelim2 API: both order of
67443         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
67444         no delimiter).
67445
67446         * lib/getline.c: Don't include stddef.h or stdio.h, since our
67447         interface does that.
67448         (getline): Always use getdelim, so that we don't have two
67449         copies of this code.
67450         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
67451         if available.
67452         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
67453         (GETNDELIM2_MAXIMUM): New macro.
67454         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
67455         instead of the old practice of delim2==0.  All callers changed.
67456         Return -1 on overflow, instead of returning junk.
67457         Do not set *linesize unless allocation succeeds.
67458         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
67459         that we include sys/types.h.
67460         * lib/getnline.h: Likewise.
67461         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
67462         (getndelim2): Reorder arguments.
67463         * lib/getnline.c (getnline, getndelim):
67464         Don't discard the NMAX argument.
67465         (getnline): Invoke getndelim, to avoid code duplication.
67466         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
67467         of (size_t) -1 by callers of the getnline family.
67468
67469 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67472         Check for gettimeofday.
67473         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67474         Check for settimeofday, stime.
67475
67476 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         * lib/nanosleep.c (suspended): Change its type from int to
67479         sig_atomic_t volatile.
67480         (first_call): Make it private to rpl_nanosleep, and have it
67481         be zero initially as that's a bit faster.
67482         (my_usleep): Round up fractional times instead of truncating them,
67483         as this is the usual meaning for 'sleep'.
67484
67485         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67486         doesn't work.
67487         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67488         (ENOSYS): Define if not defined.
67489         (settime): Fall back on stime if it exists and settimeofday fails.
67490         But don't bother with fallbacks if a method fails with errno == EPERM.
67491
67492 2004-05-11  Jim Meyering  <jim@meyering.net>
67493
67494         Prior to this change, the save_cwd caller required read access to the
67495         current directory on most systems (ones with the fchdir function).
67496
67497         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67498         fails, try write-only, and finally, resort to using xgetcwd.
67499
67500 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * lib/obstack.c, obstack.h: Import changes from libc.
67503
67504 2004-04-28  Bruno Haible  <bruno@clisp.org>
67505
67506         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
67507         also implicitly appends .exe to executables.
67508         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
67509         accepts Windows pathnames.
67510         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67511         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67512         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67513         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67514         Reported by Derek Robert Price <derek@ximbiot.com>.
67515
67516 2004-04-21  Karl Berry  <karl@gnu.org>
67517
67518         * config/srclist.txt (localcharset.c): break sync.
67519
67520 2004-04-20  Paul Eggert  <eggert@twinsun.com>
67521
67522         * m4/host-os.m4: Add a copyright notice.
67523
67524 2004-04-20  Jim Meyering  <jim@meyering.net>
67525
67526         Change UTILS_ to gl_ in AC_DEFINE'd names.
67527         Change utils_- and jm_-prefixed variables, too.
67528         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
67529         UTILS_FUNC_MKDIR_TRAILING_SLASH.
67530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
67531
67532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
67533         Don't emit trailing blanks.
67534         Also rename jm_-prefixed variables to have gl_ prefix.
67535
67536         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
67537         Also rename jm_-prefixed variables to have gl_ prefix.
67538
67539         * m4/jm-macros.m4: Reflect the renamings.
67540         * m4/prereq.m4: Likewise.
67541
67542 2004-04-20  Jim Meyering  <jim@meyering.net>
67543
67544         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
67545         memory.
67546
67547 2004-04-20  Jim Meyering  <jim@meyering.net>
67548             Bruno Haible  <bruno@clisp.org>
67549
67550         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
67551         memory when realloc fails.
67552
67553 2004-04-19  Jim Meyering  <jim@meyering.net>
67554
67555         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
67556         now that readutmp.c may call `free (0)'.
67557
67558 2004-04-19  Bruno Haible  <bruno@clisp.org>
67559
67560         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
67561         * m4/inttypes_h.m4: Likewise.
67562         * m4/stdint_h.m4: Likewise.
67563         * m4/intmax_t.m4: Likewise.
67564         * m4/uintmax_t.m4: Likewise.
67565
67566 2004-04-18  Jim Meyering  <jim@meyering.net>
67567
67568         * m4/prereq.m4: Don't forbid jm_ prefix.
67569
67570         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
67571         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
67572         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
67573         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
67574         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
67575         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
67576         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
67577         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
67578         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
67579         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
67580         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
67581         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
67582         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
67583         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
67584         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
67585         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
67586         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
67587         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
67588         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
67589
67590 2004-04-18  Jim Meyering  <jim@meyering.net>
67591
67592         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
67593         failure, don't leak memory and do call END_UTMP_ENT.
67594
67595 2004-04-16  Jim Meyering  <jim@meyering.net>
67596
67597         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
67598         coreutils' stat program.
67599         (gl_PREREQ): Don't require jm_PREREQ_STAT.
67600
67601 2004-04-11  Paul Eggert  <eggert@twinsun.com>
67602
67603         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
67604         C89.
67605         (CHAR_BIT): Remove, since we assume C89.
67606         Include <stdint.h> if available, as per current Autoconf CVS advice.
67607
67608 2004-03-31  Jim Meyering  <jim@meyering.net>
67609
67610         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
67611         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
67612         * m4/xalloc.m4: Likewise.
67613
67614 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67615
67616         Merge from coreutils.
67617
67618         * m4/inttostr.m4: New file.
67619         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
67620         Require AM_STDBOOL_H and gl_TIMESPEC instead.
67621         Require gl_CLOCK_TIME.
67622         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
67623
67624 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67625
67626         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
67627         not bool, to be more consistent with Unix conventions.
67628         Suggested by Bruno Haible.
67629
67630         Merge from coreutils.
67631
67632         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
67633         * lib/umaxtostr.c: New files.
67634
67635         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
67636         the usual <time.h> dance.
67637         (get_date): Change signature to support fractional time stamps.
67638         All callers changed.
67639         * lib/getdate.y: Include "getdate.h" first, as we can now
67640         assume C89 and don't need to worry about 'const'.
67641         Similarly, include "unlocked-io.h" near start, not in middle.
67642         Include <limits.h>.
67643         (textint.value): Use long int rather than int.
67644         (textint.digits): Use size_t rather than int.
67645         (BILLION, LOG10_BILLION): New constants.
67646         (parser_control): New member rel_ns.  Members day_ordinal,
67647         time_zone, month, day, hour, minutes, rel_year, rel_month,
67648         rel_day, rel_hour, rel_minutes, rel_seconds
67649         are now long int, not int.  Member seconds is now struct timespec,
67650         not int.  New member timespec_seen.  Members dates_seen, days_seen,
67651         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
67652         not int.
67653         (%union.intval): Now long int, not int.
67654         New member timespec.
67655         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
67656         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
67657         (spec): Now is a timespec or an item list.
67658         (timespec, items): New nonterminals.
67659         (time, rel, relunit, number, get_date):
67660         Add support for fractional seconds.
67661         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
67662         (gmtime, localtime, mktime): Remove decls; not needed with C89.
67663         (to_hour): First arg is now long int, not int.
67664         (to_year): Returns long int, not int.
67665         Don't treat year -70 like 70.
67666         (tm_diff): Returns long int, not int.
67667         (lookup_word): Use bool instead of int when appropriate.
67668         (yylex): Use size_t for count, not int.
67669         Detect overflow when parsing large integer constants.
67670         Add support for fractions.
67671         (get_date): Make pointers 'const' if possible.
67672         Use more-portable code to detect integer overflow.
67673         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
67674         Don't use ctime; it's not reliable if the year has >4 digits.
67675
67676         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
67677         This is for compatibility with BSD.
67678
67679         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
67680         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
67681         From coreutils' system.h.
67682
67683         * lib/userspec.c: Don't include "posixver.h".
67684         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
67685         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
67686         compatible extension.  Simplify code by removing a boolean int
67687         that was always nonzero if a string was nonnull.
67688
67689 2004-03-30  Jim Meyering  <jim@meyering.net>
67690
67691         Merge from coreutils.
67692
67693         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
67694         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
67695         on some systems one must include <grp.h> before it.
67696         Reported by Christian Krackowizer.
67697
67698 2004-03-30  Jim Meyering  <jim@meyering.net>
67699
67700         Merge from coreutils.
67701
67702         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
67703
67704         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
67705         an empty input stream.
67706
67707         * lib/readtokens.c: Include <stdbool.h>.
67708         (readtoken): Use `size_t' rather than int/long.
67709         All callers adjusted.
67710         Use `bool' rather than `int' where appropriate.
67711         Use memset rather than an explicit loop.
67712         Use x2nrealloc rather than xrealloc.
67713         Allow the use of `\0' as a delimiter.
67714         (readtokens): Likewise.
67715         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
67716
67717 2004-03-30  Jim Meyering  <jim@meyering.net>
67718
67719         * m4/realloc.m4: Remove file, since now it does no more than
67720         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
67721         the `configure.ac' section of module/realloc.
67722         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
67723
67724 2004-03-30  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
67727         nonnull.
67728
67729 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67730
67731         Merge changes to getloadavg.c from coreutils and Emacs.
67732
67733         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
67734         Define to an expression, not to the empty string.
67735         Include cloexec.h and xalloc.h.
67736         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
67737         Use set_cloexec_flag rather than rolling our own.
67738         * lib/cloexec.c, lib/cloexec.h: New files.
67739
67740 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67741
67742         * m4/cloexec.m4: New file.
67743
67744 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67745
67746         * lib/getopt.h: Sync with libc CVS.
67747
67748 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67749             Bruno Haible  <bruno@clisp.org>
67750
67751         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
67752         mbswidth.
67753
67754 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67755             Bruno Haible  <bruno@clisp.org>
67756
67757         * lib/mbswidth.h: Include <wchar.h> only if
67758         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
67759         <wchar.h>.
67760         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
67761
67762 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67763
67764         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
67765         Sync with libc CVS.
67766         * lib/getopt_int.h: New file, also synced from libc.
67767
67768 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67769
67770         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
67771         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
67772         Bring back getopt.c, getopt.h, getopt1.c.
67773
67774 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67775
67776         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
67777         All uses changed.  Check for sa_sigaction member; this fixes
67778         a bug first reported by Jason Andrade in
67779         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67780
67781 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67782
67783         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
67784         '#if' expressions.  Unlike the code it replaces, it does not
67785         depend on (defined _SC_PAGESIZE).  However, it does depend on
67786         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
67787         first reported by Jason Andrade in
67788         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67789
67790 2004-02-25  Simon Josefsson  <jas@extundo.com>
67791
67792         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
67793
67794 2004-02-25  Simon Josefsson  <jas@extundo.com>
67795
67796         * lib/strdup.h: New file.
67797         * lib/strdup.c: Include it.
67798         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
67799         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
67800
67801 2004-02-23  Karl Berry  <karl@gnu.org>
67802
67803         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
67804         (from fencepost.gnu.org:/gd/gnuorg).
67805
67806 2004-02-23  Karl Berry  <karl@gnu.org>
67807
67808         * config/srclistvars.sh (GNUORG) [karl]: redefine.
67809         * config/srclist.txt: add maintain/standards documents.
67810
67811 2004-02-18  Bruno Haible  <bruno@clisp.org>
67812
67813         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
67814         Reported by Derek Robert Price <derek@ximbiot.com>.
67815
67816 2004-02-16  Karl Berry  <karl@gnu.org>
67817
67818         * config/mkinstalldirs, install-sh: update from automake.
67819
67820 2004-02-06  Karl Berry  <karl@gnu.org>
67821
67822         * m4/po.m4: update from gettext 0.14.1.
67823
67824 2004-02-06  Karl Berry  <karl@gnu.org>
67825
67826         * lib/config.charset: update from gettext 0.14.1.
67827
67828 2004-02-05  Paul Eggert  <eggert@twinsun.com>
67829
67830         Add comments and code, prompted by suggestions from Bruno Haible
67831         for sh-quote.
67832         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
67833         describing the enum quoting_style values.
67834         * lib/quotearg.c (quotearg_alloc): New function.
67835         (quotearg_buffer_restyled): Treat lone { and } as special.
67836         Treat = as special.  Work around bug with older shells
67837         that "see" a '\' that is really the 2nd byte of a multibyte char.
67838         Quote empty string with shell_quoting_style.
67839
67840 2004-02-03  Bruno Haible  <bruno@clisp.org>
67841
67842         * m4/pipe.m4: New file, from GNU gettext.
67843
67844 2004-02-03  Bruno Haible  <bruno@clisp.org>
67845
67846         * lib/pipe.h: New file, from GNU gettext.
67847         * lib/pipe.c: New file, from GNU gettext.
67848
67849 2004-01-27  Bruno Haible  <bruno@clisp.org>
67850
67851         * m4/execute.m4: New file, from GNU gettext.
67852
67853 2004-01-27  Bruno Haible  <bruno@clisp.org>
67854
67855         * lib/execute.h: New file, from GNU gettext.
67856         * lib/execute.c: New file, from GNU gettext.
67857         * lib/w32spawn.h: New file, from GNU gettext.
67858
67859 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67860
67861         Merge from diffutils.
67862
67863         * lib/file-type.c (file_type): Add typed memory objects.
67864         * lib/file-type.h (S_TYPEISTMO): New macro.
67865
67866         * lib/c-stack.h (c_stack_action): Remove argv argument.
67867         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
67868         (die): Don't calculate message unless segv_action returns.
67869         (get_stack_location, min_address_from_argv, max_address_from_argv,
67870         volatile stack_base, volatile_stack_size): Remove.
67871         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
67872         that every segmentation violation is a stack overflow.  (Ouch!)
67873         See Debian bug 136249 (still outstanding) for more info about why
67874         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
67875
67876 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67877
67878         Exit-status fix from coreutils.
67879
67880         Use exit_failure consistently in place of EXIT_FAILURE,
67881         so that program exit statuses are consistent on failure.
67882
67883         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
67884         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
67885         * lib/argmatch.h: Comment fix to match the above.
67886         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
67887         Now a macro referring to exit_failure, instead of a separate
67888         variable.  Include "exitfail.h" to get it.
67889         * lib/xstrtol.h: Include "exitfail.h".
67890         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
67891
67892         * lib/long-options.c (parse_long_options): Use prototype
67893         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
67894         for clarity.
67895
67896 2004-01-21  Jim Meyering  <jim@meyering.net>
67897
67898         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
67899         so as not to conflict with a different-sized __mktime_internal
67900         function in GNU libc.
67901         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
67902         Problem building statically-linked `ls' reported by Michael Brunnbauer.
67903
67904 2004-01-20  Karl Berry  <karl@gnu.org>
67905
67906         * config/config.guess: update from config.
67907
67908         * config/srclistvars.sh: GNUWWWLICENSES for karl.
67909
67910 2004-01-20  Bruno Haible  <bruno@clisp.org>
67911
67912         Safer stack allocation.
67913         * lib/setenv.c: Include allocsa.h.
67914         (alloca): Remove fallback definition.
67915         (freea): Remove macro.
67916         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
67917         instead of freea.
67918
67919 2004-01-20  Bruno Haible  <bruno@clisp.org>
67920
67921         * m4/eealloc.m4: New file, from GNU gettext.
67922
67923 2004-01-20  Bruno Haible  <bruno@clisp.org>
67924
67925         * m4/allocsa.m4: New file, from GNU gettext.
67926
67927 2004-01-20  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/xallocsa.h: New file, from GNU gettext.
67930         * lib/xallocsa.c: New file, from GNU gettext.
67931
67932 2004-01-20  Bruno Haible  <bruno@clisp.org>
67933
67934         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
67935
67936 2004-01-20  Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
67939         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
67940         specially.
67941
67942 2004-01-20  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
67945         patch.
67946
67947 2004-01-20  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
67950
67951 2004-01-20  Bruno Haible  <bruno@clisp.org>
67952
67953         * lib/eealloc.h: New file.
67954
67955 2004-01-20  Bruno Haible  <bruno@clisp.org>
67956
67957         * lib/binary-io.h: Avoid warnings on Cygwin.
67958
67959 2004-01-20  Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/allocsa.h: New file, from GNU gettext.
67962         * lib/allocsa.c: New file, from GNU gettext.
67963
67964 2004-01-18  Karl Berry  <karl@gnu.org>
67965
67966         * doc/gpl.texi, doc/lgpl.texi: new files.
67967
67968 2004-01-18  Karl Berry  <karl@gnu.org>
67969
67970         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
67971         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
67972
67973 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67974
67975         Merge from coreutils.
67976
67977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
67978         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
67979         (gl_DEFAULT_POSIX2_VERSION): Move
67980         the documentation from 'configure' into 'config.hin',
67981         so that 'configure --help' isn't burdened by it and
67982         we don't have to worry about its formatting there.
67983         Reword the documentation so that it's more succinct
67984         and can be run together into a single paragraph.
67985         * m4/same.m4 (gl_SAME): Check for pathconf.
67986
67987 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67988
67989         Merge from coreutils.
67990
67991         * lib/posixver.c: Include posixver.h.
67992
67993         * lib/same.c: Include <stdbool.h>, <limits.h>.
67994         (_POSIX_NAME_MAX): Define if not defined.
67995         (MIN): New macro.
67996         (same_name): If file names are silently truncated, report
67997         that the file names are the same if they are the same after
67998         the silent truncation.
67999
68000         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
68001         conversion function.
68002         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
68003         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
68004         longer needed.
68005
68006 2004-01-15  Jim Meyering  <jim@meyering.net>
68007
68008         Merge from coreutils.
68009
68010         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
68011         if no library is required.
68012         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
68013         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
68014         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
68015         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
68016         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
68017         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
68018         value, $ac_cv_search_crypt, if it's "none required".
68019         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
68020         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
68021         not gl_FUNC_GETLOADAVG.
68022         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
68023         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
68024
68025 2004-01-15  Jim Meyering  <jim@meyering.net>
68026
68027         Merge from coreutils.
68028
68029         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
68030         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
68031         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
68032
68033         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
68034         optional configure-time default.
68035
68036         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68037
68038         * lib/xreadlink.c (xreadlink): Correct outdated comment.
68039
68040 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
68041
68042         Merge from coreutils.
68043
68044         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
68045         value, $ac_cv_search_nanosleep, if it's "none required".
68046
68047 2004-01-14  Paul Eggert  <eggert@twinsun.com>
68048
68049         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
68050         with like-named macro in fnmatch.c.
68051         (EXT): Use an internal constant instead.
68052
68053         Merge fnmatch patches from glibc.
68054         * lib/fnmatch.c (mbsinit): Remove define.
68055         Add libc_hidden_ver (__fnmatch, fnmatch).
68056         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
68057         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
68058
68059 2004-01-14  Karl Berry  <karl@gnu.org>
68060
68061         * config/install-sh: update from automake.
68062
68063 2004-01-13  Karl Berry  <karl@gnu.org>
68064
68065         * config/install-sh: update from automake.
68066
68067 2004-01-09  Karl Berry  <karl@gnu.org>
68068
68069         * config/install-sh: update from automake.
68070
68071 2004-01-05  Karl Berry  <karl@gnu.org>
68072
68073         * config/config.{sub,guess}: update from config.
68074
68075 2003-12-31  Karl Berry  <karl@gnu.org>
68076
68077         * config/depcomp: update from automake.
68078
68079 2003-12-14  Karl Berry  <karl@gnu.org>
68080
68081         * lib/config.charset: update from gettext-runtime.
68082
68083 2003-12-03  Paul Eggert  <eggert@twinsun.com>
68084
68085         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
68086         Bug reported by Alfred M. Szmidt.
68087
68088 2003-12-03  Bruno Haible  <bruno@clisp.org>
68089
68090         * m4/gettext.m4: Upgrade from gettext-0.13.
68091         * m4/po.m4: Upgrade from gettext-0.13.
68092         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
68093         * m4/intmax.m4: New file, from gettext-0.13.
68094         * m4/printf-posix.m4: New file, from gettext-0.13.
68095
68096 2003-11-29  Karl Berry  <karl@gnu.org>
68097
68098         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
68099
68100 2003-11-25  Paul Eggert  <eggert@twinsun.com>
68101             Bruno Haible  <bruno@clisp.org>
68102
68103         * lib/printf-parse.h: Don't include sys/types.h.
68104         (ARG_NONE): New macro.
68105         (char_directive): Change type of *arg_index fields to size_t.
68106         * lib/printf-parse.c: Don't include sys/types.h.
68107         (SSIZE_MAX): Remove macro.
68108         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
68109         Remove unnecessary overflow check.
68110         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
68111         fields.
68112
68113 2003-11-25  Bruno Haible  <bruno@clisp.org>
68114
68115         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
68116
68117 2003-11-25  Bruno Haible  <bruno@clisp.org>
68118
68119         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
68120         gt_TYPE_SSIZE_T.
68121
68122 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68123
68124         * modules/alloca: Remove dependency on xalloc.
68125
68126 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68127
68128         * lib/alloca.c: Remove dependency on xalloc module.
68129         (xalloc_die): Remove.
68130         (memory_full) [!defined emacs]: New macro.
68131         [!defined emacs]: Don't include xalloc.h.
68132         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
68133         address arithmetic overflows.  Change datatypes a bit to avoid
68134         unnecessary casts.
68135
68136 2003-11-22  Jim Meyering  <jim@meyering.net>
68137
68138         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
68139         s/size/size_t/.
68140
68141 2003-11-21  Karl Berry  <karl@gnu.org>
68142
68143         * config/config.{sub,guess}: update from config.
68144
68145 2003-11-18  Karl Berry  <karl@gnu.org>
68146
68147         * config/config.{sub,guess}: update from config.
68148
68149         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
68150
68151 2003-11-17  Paul Eggert  <eggert@twinsun.com>
68152
68153         * README: Mention that S+T cannot overflow if S is the size of
68154         an existing object and T is sufficiently small.
68155
68156 2003-11-17  Jim Meyering  <jim@meyering.net>
68157
68158         On systems without utime and without a utimes function capable of
68159         dealing with a NULL struct utimbuf* argument, this utime replacement
68160         could -- in unusual circumstances -- leak a file descriptor.
68161         * lib/utime.c: Include <unistd.h> and <errno.h>.
68162         (utime_null): Be sure to close `fd' and to preserve errno.
68163         Reported by Geoff Collyer via Arnold Robbins.
68164
68165 2003-11-17  Bruno Haible  <bruno@clisp.org>
68166
68167         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
68168         (Depends-on): Add xsize.
68169
68170 2003-11-17  Bruno Haible  <bruno@clisp.org>
68171
68172         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
68173
68174 2003-11-17  Bruno Haible  <bruno@clisp.org>
68175
68176         * lib/vasnprintf.c (alloca): Remove fallback definition.
68177         (freea): Remove definition.
68178         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
68179         Reported by Paul Eggert.
68180
68181 2003-11-16  Paul Eggert  <eggert@twinsun.com>
68182             Bruno Haible  <bruno@clisp.org>
68183
68184         Protect against address arithmetic overflow.
68185         * lib/printf-args.h: Include stddef.h.
68186         (arguments): Change type of field 'count' to size_t.
68187         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
68188         'unsigned int' where appropriate.
68189         * lib/printf-parse.h: Include sys/types.h.
68190         (char_directive): Change type of *arg_index fields to ssize_t.
68191         (char_directives): Change type of fields 'count', max_*_length to
68192         size_t.
68193         * lib/printf-parse.c: Include sys/types.h and xsize.h.
68194         (SSIZE_MAX): Define fallback value.
68195         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
68196         instead of 'int' where appropriate. Check a_allocated, d_allocated
68197         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
68198         * lib/vasnprintf.c: Include xsize.h.
68199         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
68200         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
68201         overflow. Avoid wraparound when converting a width or precision from
68202         decimal to binary.
68203
68204 2003-11-16  Bruno Haible  <bruno@clisp.org>
68205
68206         Update from GNU gettext.
68207         * lib/printf-parse.c: Generalize to it can be compiled for wide
68208         strings.
68209         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
68210         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
68211         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
68212         SNPRINTF): New macros.
68213         Don't include <alloca.h> if the file is used inside libintl.
68214         (local_wcslen): New function, for Solaris 2.5.1.
68215         (VASNPRINTF): Use it instead of wcslen.
68216
68217 2003-11-16  Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/xsize.h (xmax): New function.
68220         (xsum, xsum3, xsum4): Declare as "pure" functions.
68221
68222 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68223
68224         * modules/xalloc (Files): Undo latest change, since xalloc.h
68225         no longer needs SIZE_MAX or PTRDIFF_MAX.
68226
68227 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68228
68229         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
68230         gl_PTRDIFF_MAX.
68231
68232 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68233
68234         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
68235         "return", to pacify some unknown compiler.  Problem reported
68236         by Joerg Schilling.
68237
68238 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68239
68240         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
68241         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
68242         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
68243         heuristic is just as accurate as far as we know, and it removes a
68244         dependency on size_max.m4 and ptrdiff_max.m4.
68245
68246 2003-11-11  Bruno Haible  <bruno@clisp.org>
68247
68248         * modules/xsize (Files): Add m4/size_max.m4.
68249         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
68250
68251 2003-11-11  Bruno Haible  <bruno@clisp.org>
68252
68253         * m4/size_max.m4: New file.
68254         * m4/ptrdiff_max.m4: New file.
68255         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
68256         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
68257         (gl_XALLOC): Invoke it.
68258
68259 2003-11-11  Bruno Haible  <bruno@clisp.org>
68260
68261         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
68262         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
68263         defined.
68264
68265 2003-11-10  Paul Eggert  <eggert@twinsun.com>
68266
68267         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
68268         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
68269         rejected some allocations of exactly SIZE_MAX - 2 bytes.
68270         From Bruno Haible.
68271         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
68272         not (size_t) -1, since it's defined here.
68273
68274 2003-11-09  Karl Berry  <karl@gnu.org>
68275
68276         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
68277
68278 2003-11-06  Paul Eggert  <eggert@twinsun.com>
68279
68280         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
68281         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
68282         Reject sizes of exactly SIZE_MAX bytes.
68283         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
68284         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
68285
68286 2003-11-05  Bruno Haible  <bruno@clisp.org>
68287
68288         * lib/xsize.h: Include limits.h, to avoid a possible collision with
68289         SIZE_MAX defined in <limits.h> on Solaris.
68290
68291 2003-11-04  Jim Meyering  <jim@meyering.net>
68292
68293         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
68294         variable names, rather than @VAR@.
68295         * modules/poll: Likewise.
68296
68297 2003-11-04  Bruno Haible  <bruno@clisp.org>
68298
68299         * modules/xsize: New file.
68300         * modules/linebreak: Depend on xsize.
68301         * MODULES.html.sh (func_all_modules): Add xsize.
68302
68303 2003-11-04  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/xsize.m4: New file.
68306
68307 2003-11-04  Bruno Haible  <bruno@clisp.org>
68308
68309         * lib/xsize.h: New file.
68310         * lib/linebreak.c: Include xsize.h.
68311         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
68312         argument for overflow.
68313         Suggested by Paul Eggert.
68314
68315 2003-11-03  Karl Berry  <karl@gnu.org>
68316
68317         * config/config.{guess,sub}: update from config.
68318
68319 2003-11-03  Jim Meyering  <jim@meyering.net>
68320
68321         * modules/userspec (lib_SOURCES): Add userspec.h.
68322         (Include): Add "userspec.h".
68323         Improve description.
68324
68325 2003-11-03  Jim Meyering  <jim@meyering.net>
68326
68327         * lib/userspec.c: Include "userspec.h".
68328         * lib/userspec.h: New file.
68329
68330 2003-11-03  Bruno Haible  <bruno@clisp.org>
68331
68332         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68333
68334 2003-11-03  Bruno Haible  <bruno@clisp.org>
68335
68336         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68337         available, to avoid (extremely rare) race condition.
68338         Suggested by Paul Eggert.
68339
68340 2003-11-02  Karl Berry  <karl@gnu.org>
68341
68342         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68343
68344 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68345
68346         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68347         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68348         (read_filesystem_list): Set and use me_type_malloced.
68349         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68350         whatever the type happens to be), for brevity and consistency.
68351         Check for size calculation overflow on Alphas running OSF/1.
68352
68353 2003-10-31  Jim Meyering  <jim@meyering.net>
68354
68355         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68356
68357         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68358
68359 2003-10-30  Paul Eggert  <eggert@twinsun.com>
68360             Bruno Haible  <bruno@clisp.org>
68361
68362         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
68363         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
68364
68365 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
68368         netbsd*-gnu*.  Suggested by Robert Millan.
68369
68370 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68371
68372         * modules/group-member: Depend on stdbool.
68373
68374 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68375
68376         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
68377
68378 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68379
68380         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
68381         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
68382         after the 'gnu' in these cases.  This fixes some bugs in the
68383         previous change, and is based on suggestions by Robert Millan.
68384
68385 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68386
68387         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
68388         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
68389         no longer needed.
68390         * lib/quotearg.c (quotearg_n_options): Use it.
68391         * lib/group-member.c: Include <stdbool.h>.
68392         (free_group_info): Arg is now const *; don't free arg.
68393         (get_group_info): Now returns bool and accepts struct group_info *,
68394         rather than returning a malloc'ed struct group_info *.
68395         All uses changed.  Check for overflow in internal size calculation.
68396
68397         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
68398         rather than xmalloc/xrealloc.
68399         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
68400         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
68401         conformance bug: the old code used a pointer after freeing the
68402         storage that it addressed.
68403         * lib/hash.c (hash_initialize): Simplify the code by using
68404         xalloc_oversized rather than doing it by hand.
68405         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
68406         the buffer preserved.  Use free and xmalloc instead.
68407         * lib/quotearg.c (quotearg_n_options): Likewise.
68408         Use a simpler test for size overflow.  Don't use xalloc_oversized
68409         because unsigned int might be wider than size_t (!); this suggests
68410         that we should switch from unsigned int to size_t for slot numbers.
68411
68412 2003-10-28  Paul Eggert  <eggert@twinsun.com>
68413
68414         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
68415         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
68416         NetBSD kernels.  Requested by Richard Stallman.
68417
68418 2003-10-27  Paul Eggert  <eggert@twinsun.com>
68419
68420         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
68421         to allocate the returned structure.  Do not allocate a subarray,
68422         as x2nrealloc will do that.
68423         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
68424         instead of xnrealloc.
68425         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
68426
68427 2003-10-27  Bruno Haible  <bruno@clisp.org>
68428
68429         * lib/stdbool_.h: Better support for BeOS.
68430
68431 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68432
68433         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
68434         now uses inline.
68435
68436 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68437
68438         * lib/xalloc.h (xalloc_oversized): New static inline function, for
68439         callers that want to do their own size-overflow checking.  Include
68440         <stdbool.h>, since xalloc_oversized returns bool.
68441         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
68442         to use xalloc_oversized.
68443
68444         Add two functions x2realloc, x2nrealloc, for programs that grow
68445         arrays dynamically by doubling their sizes.
68446         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
68447         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
68448         New functions.
68449
68450         Port to C99 semantics for 'inline' of external functions.
68451         Bug reported by Bruno Haible.
68452         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
68453         with the old contents of xnmalloc.
68454         (xnmalloc, xmalloc): Use it.
68455         (xnrealloc_inline): New static inline function,
68456         with the old contents of xnrealloc.
68457         (xnrealloc, xrealloc): Use it.
68458
68459         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
68460         that.
68461
68462 2003-10-26  Karl Berry  <karl@gnu.org>
68463
68464         * config/srclist.txt (COPYING.DOC): no longer available from
68465         /gd/gnuorg; don't know where the ultimate source is.
68466
68467 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68468
68469         Fix several address-calculation bugs in the hash modules,
68470         plus some minor code cleanup.
68471
68472         * lib/hash.h: Include <stdbool.h>, for bool.
68473         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68474         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68475         hash_get_n_entries, hash_get_max_bucket_length,
68476         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68477         hash_rehash): Use size_t rather than unsigned.
68478         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68479         hash_get_n_buckets_used, hash_get_n_entries,
68480         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68481         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68482         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68483         Likewise.
68484         (SIZE_MAX): Define if not defined.
68485         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68486         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68487         hash_print):
68488         Use const * when possible.
68489         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68490         (check_tuning): Fix bug: if tuning parameters were very close to
68491         0 or 1, rounding errors could have caused subscript violations.
68492         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68493         (hash_initialize): Add 'fail:' label
68494         to free table and return NULL, and use it to simplify code.
68495         Use calloc rather than clearing the storage ourself.
68496         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68497         buffer size calculations.
68498         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68499         Include <stddef.h>, for size_t.
68500         * lib/hash-pjw.c (hash_pjw): Likewise.
68501         Switch to method described by Bruno Haible.
68502         Include <limits.h>, for CHAR_BIT.
68503         (SIZE_BITS): New macro.
68504
68505 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68506
68507         * m4/getline.m4 (AM_FUNC_GETLINE):
68508         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
68509         hosts.  Problem reported by Derek Robert Price in
68510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
68511         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
68512         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
68513
68514 2003-10-21  Paul Eggert  <eggert@twinsun.com>
68515
68516         * lib/getndelim2.c (getndelim2): When size calculation overflows,
68517         ceiling the allocation at NMAX bytes rather than silently
68518         discarding input bytes before NMAX is reached.  This makes
68519         a difference only if NMAX exceeds SIZE_MAX / 2.
68520
68521         * lib/obstack.c: Merge from glibc.
68522         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
68523         Add libc_hidden_def (_obstack_newchunk).
68524         (_obstack_free) [! defined _LIBC]: Remove.
68525         [defined _LIBC]: Make a strong alias from obstack_free, rather than
68526         a clone of the function body.
68527         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
68528         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
68529
68530         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
68531         glibc.
68532         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
68533         arg to memcpy.
68534
68535         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
68536         (obstack_ptr_grow_fast, obstack_int_grow_fast):
68537         Don't use lvalue casts, as GCC plans to remove support for them
68538         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
68539         was also present in the non-GCC version, indicating that this
68540         code had always been buggy and had never been widely used.
68541         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
68542         Use the fast variant of each macro, rather than copying the
68543         definiens of the fast variant; that way, we'll be more likely to
68544         catch future bugs in the fast variants.
68545
68546 2003-10-20  Bruno Haible  <bruno@clisp.org>
68547
68548         * modules/wait-process: New file.
68549         * MODULES.html.sh (func_all_modules): Add wait-process.
68550
68551 2003-10-20  Bruno Haible  <bruno@clisp.org>
68552
68553         * m4/wait-process.m4: New file.
68554
68555 2003-10-20  Bruno Haible  <bruno@clisp.org>
68556
68557         * lib/wait-process.h: New file, from GNU gettext.
68558         * lib/wait-process.c: New file, from GNU gettext.
68559
68560 2003-10-19  Jim Meyering  <jim@meyering.net>
68561
68562         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
68563         HPUX 10.20.
68564
68565 2003-10-18  Karl Berry  <karl@gnu.org>
68566
68567         * config/config.guess: update from config.
68568
68569 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68570
68571         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
68572         (getgroups): First arg is int, not size_t.
68573         Don't let 'free' mangle errno.
68574
68575 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68576
68577         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
68578
68579 2003-10-16  Karl Berry  <karl@gnu.org>
68580
68581         * config/config.{guess,sub}: update from config.
68582
68583 2003-10-16  Jim Meyering  <jim@meyering.net>
68584
68585         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
68586         memcpy.
68587
68588 2003-10-15  Paul Eggert  <eggert@twinsun.com>
68589
68590         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
68591         (SIZE_MAX): Remove.
68592         (new_exclude, add_exclude_file): Initial size no longer needs to
68593         be a power of 2.
68594         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
68595         our own address arithmetic overflow checking.
68596
68597         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
68598         (fnmatch): Do not alloca more than 2000 wide characters;
68599         instead, use malloc for large buffers.
68600         Check for address arithmetic overflow, and return -1
68601         with errno set to ENOMEM in that case.
68602         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
68603         (NEW_PATTERN): Do not alloca more than 8000 bytes;
68604         instead, return -1.  Check for address arithmetic overflow.
68605
68606 2003-10-14  Paul Eggert  <eggert@twinsun.com>
68607
68608         Handle invalid suffixes and overflow independently, so that
68609         callers can treat them independently as needed.  Fix some bugs in
68610         suffix handling, e.g., "100k@" was not diagnosed as an invalid
68611         suffix for a human-readable blocksize.  The major caller-visible
68612         change is the addition of a new
68613         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
68614         that both overflow and suffix chars were found.
68615
68616         * lib/human.c (humblock): Don't check separately for invalid suffix
68617         char; that is xstrtoumax's job (now that its bug is fixed).
68618         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
68619         INTMAX_MAX]: New macros.
68620         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
68621         TYPE_MAXIMUM): New macros.
68622         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
68623         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
68624         if overflow occurs, as it's what __strtol does and it's more useful
68625         in practice.
68626         (__xstrtol): If __strtol reports some error other than ERANGE,
68627         reflect it to the caller as LONGINT_INVALID.  If it reports
68628         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
68629         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
68630         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
68631         value.
68632         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
68633         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
68634         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
68635         [defined UINTMAX_MAX]: New macros.
68636
68637 2003-10-14  Bruno Haible  <bruno@clisp.org>
68638
68639         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
68640
68641 2003-10-14  Bruno Haible  <bruno@clisp.org>
68642
68643         * m4/sig_atomic_t: New file, from GNU gettext.
68644         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
68645
68646 2003-10-14  Bruno Haible  <bruno@clisp.org>
68647
68648         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
68649         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
68650         Also use volatile where needed.
68651
68652 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68653
68654         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
68655         Change maintainer from Bruno Haible to 'all'.
68656
68657 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68658
68659         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
68660
68661 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68662
68663         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
68664         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
68665         and define in terms of the other primitives.
68666         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
68667         (SIZE_MAX): Define if not already defined.
68668         (array_size_overflow): New function.
68669         (xalloc_die): Abort instead of exiting if 'error' returns.
68670         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
68671         (xmalloc, xrealloc): Use them.
68672         (xcalloc): Check for address arithmetic overflow.
68673         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
68674         a bit faster than strcpy.
68675
68676 2003-10-10  Simon Josefsson  <jas@extundo.com>
68677
68678         * modules/argp (Depends-on): Add restrict and strcase.
68679
68680 2003-10-10  Simon Josefsson  <jas@extundo.com>
68681
68682         * m4/argp.m4: Add AC_C_INLINE.
68683
68684 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68685
68686         Merge getpass from libc, plus a few fixes.
68687
68688         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
68689         Include <stdbool.h>.
68690         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
68691         __fsetlocking to empty.
68692         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
68693         do include <bits/libc-lock.h>.
68694         Do not include <fcntl.h>; not needed.
68695         [_LIBC]: Include <wchar.h>.
68696         (NOTCANCEL_MODE): New macro.
68697         (flockfile, funlockfile) [_LIBC]: New macros.
68698         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
68699         [!_LIBC]: New macros.
68700         (call_fclose): New function.
68701         (getpass): Use it.  Save tty stream separately; this simplifies the
68702         code and makes it more reliable if stdin happens to equal stdout.
68703         Invoke __fsetlocking on tty.
68704         Handle thread cancellation if needed.
68705         Namespace cleanup (use __tcgetattr, __getline).
68706         Use bool for Booleans.
68707         [USE_IN_LIBIO]: Handle wide streams.
68708         [!_LIBC]: Unconditionally do the fseek, since we don't know what
68709         stream might go where.
68710
68711         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
68712         doesn't have to include <stdio.h> before us.
68713         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
68714         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
68715         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
68716         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
68717         if not declared, so that we can use getpass.c code from libc without
68718         rewriting it.
68719         (flockfile, ftrylockfile, funlockfile): New macros.
68720
68721 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68722
68723         * modules/getpass: Depend on stdbool.
68724
68725 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68726
68727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
68728
68729 2003-10-07  Karl Berry  <karl@gnu.org>
68730
68731         * config/config.{guess,sub}: update from config.
68732
68733 2003-10-06  Jim Meyering  <jim@meyering.net>
68734             Bruno Haible  <bruno@clisp.org>
68735
68736         This lets translators provide better translations for the
68737         "Written by ..." part of --version output.
68738         * lib/version-etc.h: Include stdarg.h.
68739         (version_etc_copyright): Declare as readonly.
68740         (version_etc): Make this function variadic with a NULL-terminated list
68741         of author name strings.
68742         (version_etc_va): New declaration.
68743         * lib/version-etc.c: Include stdarg.h, stdlib.h.
68744         (version_etc_copyright): Declare as readonly.
68745         (version_etc_va): New function. Provide a different translatable string
68746         for each possible number of authors < 10. Abbreviate when there are 10
68747         authors or more.
68748         (version_etc): Make this function variadic. Call version_etc_va.
68749         Suggestion from Gary V. Vaughan.
68750
68751         * lib/long-options.h (parse_long_options): Change prototype: the
68752         authors string is moved to the end and becomes variadic.
68753         * lib/long-options.c: Include stdarg.h.
68754         (parse_long_options): Make this function variadic, too.
68755         Call version_etc_va, not version_etc.
68756
68757 2003-10-06  Bruno Haible  <bruno@clisp.org>
68758
68759         * modules/version-etc-2: Remove file.
68760         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
68761
68762 2003-10-06  Bruno Haible  <bruno@clisp.org>
68763
68764         * modules/fatal-signal: New file.
68765         * MODULES.html.sh (func_all_modules): Add fatal-signal.
68766
68767 2003-10-06  Bruno Haible  <bruno@clisp.org>
68768
68769         * m4/fatal-signal.m4: New file.
68770         * m4/signalblocking.m4: New file, from GNU gettext.
68771
68772 2003-10-06  Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/version-etc-2.h: Remove file.
68775         * lib/version-etc-2.c: Remove file.
68776
68777 2003-10-06  Bruno Haible  <bruno@clisp.org>
68778
68779         * lib/fatal-signal.h: New file, from GNU gettext.
68780         * lib/fatal-signal.c: New file, from GNU gettext.
68781
68782 2003-10-05  Paul Eggert  <eggert@twinsun.com>
68783
68784         * README: Rework advice for preventing empty .o files.
68785         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
68786         not <sys/types.h>.
68787
68788 2003-10-04  Karl Berry  <karl@gnu.org>
68789
68790         * lib/argp*: update from libc.
68791
68792 2003-10-04  Karl Berry  <karl@gnu.org>
68793
68794         * config/config.{guess,sub}: update from config.
68795
68796 2003-10-02  Bruno Haible  <bruno@clisp.org>
68797
68798         * modules/lchown (Include): Add lchown.h.
68799         * modules/time_r (Include): Use "..." syntax.
68800         * modules/xgetdomainname (Include): Add xgetdomainname.h.
68801
68802 2003-10-01  Simon Josefsson  <jas@extundo.com>
68803
68804         * MODULES.html.sh (func_all_modules): Move gethostname from section
68805         'based on' to section 'lacking' POSIX:2001.
68806
68807 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
68808
68809         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
68810         to output mode on the same stream.
68811
68812 2003-09-29  Paul Eggert  <eggert@twinsun.com>
68813
68814         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
68815         Fix arg typo in previous patch.
68816
68817 2003-09-28  Jim Meyering  <jim@meyering.net>
68818
68819         * lib/error.c: Correct cpp indentation.
68820
68821 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68822
68823         * modules/free: New file.
68824
68825 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68826
68827         * m4/free.m4: New file.
68828
68829 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68830
68831         * lib/minmax.h (MIN, MAX)
68832         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
68833         Omit the special code that used __typeof__, since we worry that
68834         it could be more trouble than it's worth.  See:
68835         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
68836         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
68837
68838         * lib/free.c: New file.
68839
68840 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
68841
68842         Trivial fixes to Makefile.am parts of module listings.
68843         * modules/strstr: Append strstr.h to lib_SOURCES.
68844         * modules/strcase: Likewise, for strcase.h.
68845
68846 2003-09-27  Karl Berry  <karl@gnu.org>
68847
68848         * config/mkinstalldirs: update from automake.
68849
68850 2003-09-26  Paul Eggert  <eggert@twinsun.com>
68851
68852         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
68853         (error_tail): Do not loop, reallocating temporary buffer, since
68854         the output cannot contain more wide characters than the input
68855         contains bytes, the size must be big enough already.  This avoids
68856         one potential size overflow calculation.  Check for size overflow
68857         when calculating temporary buffer size.  Free temporary buffer
68858         when done, if it was allocated with malloc; this plugs a memory
68859         leak.  Remove casts from void * to pointers, that are no longer
68860         needed now that we're assuming C89 or better.
68861
68862         Merge error changes from glibc.
68863
68864         * lib/error.c, error.h: Update copyright notice header to match glibc.
68865         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
68866         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
68867         Disable cancellation while printing error.
68868         * lib/error.h: Prepend __ to parameter names.
68869
68870 2003-09-26  Jim Meyering  <jim@meyering.net>
68871
68872         * lib/error.c (error_tail): Move some declarations
68873         into inner scope where the local variables are used.
68874
68875 2003-09-26  Bruno Haible  <bruno@clisp.org>
68876
68877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
68878         stpncpy().
68879         Don't define stpncpy through config.h; it's now done through stpncpy.h.
68880
68881 2003-09-26  Bruno Haible  <bruno@clisp.org>
68882
68883         * lib/stpncpy.h (gnu_stpncpy): New declaration.
68884         (stpncpy): Define as alias for gnu_stpncpy.
68885         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
68886
68887 2003-09-25  Simon Josefsson  <jas@extundo.com>
68888
68889         * lib/xgetdomainname.h: New file.
68890         * lib/xgetdomainname.c: New file.
68891
68892 2003-09-25  Simon Josefsson  <jas@extundo.com>
68893             Bruno Haible  <bruno@clisp.org>
68894
68895         * modules/getdomainname: New file.
68896         * modules/xgetdomainname: New file.
68897         * MODULES.html.sh (func_all_modules): Add getdomainname,
68898         xgetdomainname.
68899
68900 2003-09-25  Simon Josefsson  <jas@extundo.com>
68901             Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/getdomainname.m4: New file.
68904
68905 2003-09-25  Simon Josefsson  <jas@extundo.com>
68906             Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/getdomainname.h: New file.
68909         * lib/getdomainname.c: New file.
68910
68911 2003-09-25  Karl Berry  <karl@gnu.org>
68912
68913         * lib/argp-fmtstream.c, argp-help.c: update from libc.
68914
68915 2003-09-25  Karl Berry  <karl@gnu.org>
68916
68917         * config/install-sh: update from automake.
68918
68919 2003-09-25  Bruno Haible  <bruno@clisp.org>
68920
68921         * modules/version-etc-2: New file, from modules/version-etc with
68922         modifications.
68923         * MODULES.html.sh (func_all_modules): Add version-etc-2.
68924
68925 2003-09-25  Bruno Haible  <bruno@clisp.org>
68926
68927         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
68928         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
68929
68930 2003-09-24  Simon Josefsson  <jas@extundo.com>
68931
68932         * modules/xgethostname: Add xgethostname.h.
68933
68934 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68935
68936         * lib/linebuffer.c (freebuffer): Don't free the argument, just
68937         the buffer associated with the argument.  Bug reported by
68938         Simon Josefsson.
68939
68940 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68941
68942         * README: Document assumptions that 'int' is at least 32 bits
68943         wide, that integer arithmetic is 2's complement without overflow,
68944         that there are no holes in integer values, that adding sizes of
68945         two nonoverlapping objects can't overflow, and that all-bits-zero
68946         yields scalar zero.  Fix spelling and capitalization typos.
68947
68948 2003-09-19  Karl Berry  <karl@gnu.org>
68949
68950         * lib/argp.h: update from libc.
68951
68952 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68953
68954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
68955         to avoid spurious warnings like "AC_RUN_IFELSE was called before
68956         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
68957
68958 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68959
68960         * gnulib-tool: Use "test -h", not "test -L", for portability
68961         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
68962         (tags_regexp): Remove, since \| doesn't conform to POSIX.
68963         (sed_extract_prog): Issue s commands one-by-one, rather than
68964         using \| in one s command.
68965
68966 2003-09-16  Paul Eggert  <eggert@twinsun.com>
68967
68968         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
68969         input error, instead of returning NULL the next time we are called
68970         (and therefore losing track of errno).
68971
68972 2003-09-16  Bruno Haible  <bruno@clisp.org>
68973
68974         * gnulib-tool (func_create_testdir): Warn about duplicated
68975         dependencies.
68976
68977 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68978
68979         * modules/argmatch, modules/fatal, modules/obstack,
68980         modules/xalloc, modules/xgethostname: Sort dependencies by
68981         importance, not alphabetically.
68982
68983 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68984
68985         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
68986         fails, so that the caller gets the proper errno.
68987
68988         * lib/readutmp.c (read_utmp): Likewise.
68989         Check for fstat error.  Close stream and free storage
68990         when failing.
68991
68992 2003-09-14  Karl Berry  <karl@gnu.org>
68993
68994         * config/srclist.txt (strdup.c): disable for c89 changes.
68995
68996 2003-09-14  Jim Meyering  <jim@meyering.net>
68997
68998         * lib/getloadavg.c: Correct cpp indentation.
68999         * lib/strdup.c: Likewise.
69000         * lib/vasnprintf.c: Likewise.
69001
69002 2003-09-14  Bruno Haible  <bruno@clisp.org>
69003
69004         * modules/fwriteerror: New file.
69005         * MODULES.html.sh (func_all_modules): Add fwriteerror.
69006
69007 2003-09-14  Bruno Haible  <bruno@clisp.org>
69008
69009         * lib/fwriteerror.h: New file.
69010         * lib/fwriteerror.c: New file.
69011
69012 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69013
69014         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
69015         modules/xgethostname, modules/xalloc: Depend on exit.
69016
69017 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69018
69019         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
69020
69021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
69022         and AC_MINIX, too, so that their extensions are available.
69023
69024         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
69025         This macro has been superseded by gl_BACKUPFILE.
69026
69027         More patches to assume C89 or better.
69028
69029         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
69030
69031         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
69032         unconditionally.
69033         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
69034         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
69035         Include <string.h>, <stdlib.h> unconditionally.
69036         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
69037         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
69038         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
69039         headers or for string.h.
69040         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
69041         or strtoul.
69042
69043         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
69044         headers.
69045         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
69046         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69047         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
69048         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
69049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69050         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
69051         memcpy, memset.
69052         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
69053         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
69054         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
69055         strtol.
69056         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
69057         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
69058         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
69059         strtoul.
69060
69061 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69062
69063         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
69064         * lib/obstack.c [!defined _LIBC]: Likewise.
69065         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
69066         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
69067         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
69068
69069         More changes to assume C89 or better.
69070
69071         * lib/error.c (error_tail): Assume vprintf.
69072
69073         * lib/argmatch.c (getenv): Remove decl.
69074         * lib/progreloc.c (get_full_program_name): Define via prototype.
69075         * lib/setenv.c (clearenv): Likewise.
69076         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
69077         needed.
69078         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
69079         (malloc, memcpy): Remove decls.
69080         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
69081         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
69082         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69083         (memcpy): Remove macro.
69084         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
69085         (__P): Remove.  All uses removed.
69086         (PTR): Remove.  All uses changed to void *.
69087         (CHAR_BIT, NULL): Remove.
69088         (spaces, zeros, memset_space, memset_zero)
69089         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
69090         Remove.
69091         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
69092         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
69093         Define with prototype.
69094         Remove now-unnecessary prototype decl.
69095         (extra_args_spec): Assume ANSI C.  All uses changed.
69096         (extra_args_spec_iso): Remove.
69097         (my_strftime, emacs_strftimeu): Define via prototype.
69098         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
69099         unconditionally.
69100         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
69101         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
69102         (strtoul, strtol): Remove decls.
69103         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
69104         LONG_MAX): Remove.
69105         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69106         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
69107         (LOCALE_PARAM_PROTO): New macro.
69108         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
69109         (INTERNAL (strtol), strtol): Define with a prototype.
69110         (PARAMS): Remove.  All uses removed.
69111         * lib/tempname.c: Include <string.h> unconditionally.
69112         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
69113         * lib/xgethostname.c (main): Define with a prototype.
69114         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
69115         Include <stdlib.h> unconditionally.
69116         (calloc, malloc, realloc, free): Remove decls.
69117         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
69118         Include <stdlib.h> unconditionally.  Sort include file names.
69119         (strtod): Remove.
69120         (xstrtod): Define with a prototype.
69121         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69122         (strtol, strtoul): Remove decls.
69123
69124 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69125
69126         More patches to assume C89 or better.
69127         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69128         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69129         string.h, memchr, STDC_HEADERS.
69130
69131 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69132
69133         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
69134         Include <stdlib.h>, <string.h> unconditionally.
69135         Remove now-unnecessary cast to char *.
69136         * lib/strnlen.c: Include <string.h> unconditionally.
69137         * lib/yesno.c (yesno): Define with a prototype.
69138
69139 2003-09-11  Bruno Haible  <bruno@clisp.org>
69140
69141         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
69142
69143 2003-09-10  Jim Meyering  <jim@meyering.net>
69144
69145         * lib/error.c: Correct indentation of cpp directives.
69146
69147 2003-09-10  Bruno Haible  <bruno@clisp.org>
69148
69149         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
69150         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
69151         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
69152         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
69153         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
69154         <stdlib.h> and <string.h> checks.
69155         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
69156         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
69157
69158 2003-09-10  Bruno Haible  <bruno@clisp.org>
69159
69160         * lib/strcspn.c: Include <string.h> unconditionally.
69161         * lib/strpbrk.c: Include <string.h> unconditionally.
69162         * lib/strstr.c: Include <string.h> unconditionally.
69163         * lib/unicodeio.c: Include <string.h> unconditionally.
69164         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
69165         * lib/unsetenv.c: Likewise.
69166         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
69167         * lib/yesno.c: Include <stdlib.h> unconditionally.
69168         (rpmatch): Add prototype.
69169
69170 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69171
69172         More patches to assume C89 or better.
69173         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
69174         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
69175         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
69176         or for string.h.
69177         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
69178         stdlib.h.
69179         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
69180         C headers.
69181         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
69182         string.h.
69183         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
69184         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
69185         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
69186         or for string.h.
69187         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
69188         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
69189         C headers.
69190         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
69191         memcpy.
69192         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
69193         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
69194         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
69195         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
69196         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
69197         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
69198         string.h, free.
69199         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
69200         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
69201         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
69202         C headers, or for string.h.
69203         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
69204         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
69205         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
69206         headers, memory.h, stdlib.h, string.h, strings.h.
69207         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
69208         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
69209         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
69210         strchr.
69211         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
69212         headers, memory.h, string.h.
69213         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
69214         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
69215         free.
69216         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
69217         headers.
69218         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
69219         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
69220         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
69221         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
69222         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
69223
69224 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69225
69226         More K&R removal.
69227
69228         * lib/acosl.c (main): Use a prototype.
69229         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
69230         tanl.c: Likewise.
69231
69232         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
69233
69234         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
69235         (getopt, etopt_long, getopt_long_only, _getopt_internal)
69236         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
69237         with a prototype.
69238         * lib/getopt.c (const): Remove macro.
69239         Include <string.h> unconditionally.
69240         (my_index): Remove; all uses changed to strchr.
69241         (strlen): Remove decl.
69242         (exchange): Remove forward decl; no longer needed.
69243         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
69244         Define with prototype.
69245         * lib/getopt1.c (const): Remove macro.
69246         (getopt_long, getopt_long_only, main): Define with prototype.
69247
69248         * lib/getugroups.c: Include <string.h> unconditionally.
69249
69250         * lib/getusershell.c: Include <stdlib.h> unconditionally.
69251         (getusershell, setusershell, endusershell, readname, main):
69252         Define with prototypes.
69253
69254         * lib/group-member.c: Include group-member.h first.
69255         Include <stdlib.h> unconditionally.
69256
69257         * lib/hard-locale.c: Include hard-locale.h first.
69258         Include <stdlib.h>, <string.h> unconditionally.
69259
69260         * lib/hash.c (free, malloc): Remove decls.
69261         Include <stdlib.h> unconditionally.
69262
69263         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
69264         (getenv): Do not declare.
69265
69266         * lib/idcache.c: Include <string.h> unconditionally.
69267
69268         * lib/long-options.c: Include long-options.h first, to test interface.
69269         Include <stdlib.h> unconditionally.
69270
69271         * lib/makepath.c: Include makepath.h first, to test interface.
69272         Include <stdlib.h> and <string.h> unconditionally.
69273
69274         * lib/linebuffer.c: Include <stdlib.h>.
69275         (free): Remove decl.
69276
69277         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
69278         stddef.h. rpl_malloc returns void *, not char *.
69279         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
69280         prototype.
69281
69282         * lib/md5.h: Include <limits.h> unconditionally.
69283         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
69284         (__P): Remove; all uses removed.
69285         * lib/md5.c: Include "md5.h" first.
69286         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
69287         md5_buffer, md5_process_bytes, md5_process_block):
69288         Define with prototypes.
69289         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
69290         * lib/sha.c: Include "sha.h" first.
69291         Include <stdlib.h>, <string.h> unconditionally.
69292
69293         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
69294         * lib/memcmp.c (__ptr_t): Likewise.
69295         * lib/memrchr.c (__ptr_t): Likewise.
69296         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
69297         Include <string.h> unconditionally.
69298         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
69299         * lib/memchr.c: Include <stdlib.h> unconditionally.
69300         * lib/memchr.c (LONG_MAX): Remove.
69301         * lib/memrchr.c (LONG_MAX): Likewise.
69302         * lib/memchr.c (__memchr): Define via a prototype.
69303         * lib/memrchr.c (__memrchr): Likewise.
69304         * lib/memcmp.c (__P): Remove, and remove all uses.
69305         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
69306         Remove forward decls; no longer needed.
69307         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
69308         Use types required by C89 in prototype.
69309
69310         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
69311         * lib/savedir.c: Likewise.
69312         * lib/mkdir.c (free): Remove decl.
69313         * lib/rmdir.c (rmdir): Define with a prototype.
69314         * lib/savedir.c: Include savedir.h first, to test interface.
69315
69316         * lib/mktime.c (STDC_HEADERS): Remove.
69317         Include <stdlib.h>, <string.h> unconditionally.
69318
69319         * lib/modechange.c: Include <stdlib.h> unconditionally.
69320         (malloc): Remove decl.
69321
69322         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
69323         (free): Remove decl.
69324
69325         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
69326         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
69327         (This type really should be intptr_t, but that's a C99ism.)
69328         (_obstack_memcpy): Remove: all uses changed to memcpy.
69329         Include <string.h> unconditionally.
69330         (struct obstack): Assume __STDC__ for types of members
69331         chunkfun, freefun, extra_arg.
69332         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69333         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69334         obstack_begin, obstack_specify_allocation,
69335         obstack_specify_allocation_with_arg, obstack_chunkfun,
69336         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69337         Remove unprototyped decls and the macros that use them.
69338         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69339         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69340         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69341         (defined __STDC__ && __STDC__)]:
69342         Remove nonprototyped code.
69343         Include <stdlib.h> unconditionally.
69344         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69345         _obstack_allocated_p, _obstack_free, obstack_free,
69346         _obstack_memory_used, print_and_abort):
69347         Define using prototypes.
69348         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69349         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69350         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69351         obstack_next_free, obstack_object_size, obstack_room) [0]:
69352         Remove unused, unprototyped code.
69353
69354         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69355
69356         * lib/physmem.c (physmem_total, physmem_available, main): Define
69357         with prototypes.
69358
69359         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
69360         (main): Define with a prototype.
69361
69362         * lib/posixver.c (getenv): Remove decl.
69363
69364         * lib/putenv.c (malloc): Returns void *, not char *.
69365         Include <string.h> unconditionally.
69366         (strchr, memcpy, NULL): Do not define.
69367
69368         * lib/readtokens.c: Include readtokens.h first, to test interface.
69369         Include <stdlib.h>, <string.h> unconditionally.
69370         (init_tokenbuffer): Define with a prototype.
69371
69372         * lib/regex.c (PARAMS): Remove.  All uses removed.
69373         All uses of _RE_ARGS removed, too.
69374         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69375         unconditionally.
69376         (bzero): Assume memset exists.
69377         (memcmp, memcpy, NULL): Remove.
69378         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
69379         char, or assignments to local vars of type signed char.
69380         (init_syntax_once, PREFIX(extract_number_and_incr),
69381         PREFIX(print_partial_compiled_pattern),
69382         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
69383         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
69384         PREFIX(regex_grow_registers), PREFIX(regex_compile),
69385         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
69386         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
69387         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
69388         wcs_compile_range, byte_compile_range, truncate_wchar,
69389         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
69390         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
69391         count_mbs_length, wcs_re_match_2_internal,
69392         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
69393         PREFIX(alt_match_null_string_p),
69394         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
69395         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
69396         regfree, PREFIX(extract_number)): Define with prototype.  Remove
69397         now-unnecessary declaration, if any.
69398         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
69399         regcomp, regexec):
69400         Remove now-unnecessary casts among pointer types.
69401         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
69402
69403         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
69404         (free): Remove decl.
69405
69406         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
69407
69408         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
69409         (free): Remove decl.
69410
69411         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
69412         * lib/xgetcwd.c: Likewise.
69413
69414         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
69415         (free): Remove decl.
69416
69417         * lib/strchrnul.c (strchrnul): Define with a prototype.
69418         Fix bug: c_in was not converted to char before searching.
69419
69420         The following changes are not K&R related:
69421
69422         * lib/group-member.h: Include <sys/types.h>, so that this file is
69423         self-contained.
69424         * lib/makepath.h: Likewise.
69425
69426         * lib/getusershell.c (readname, default_index, line_size, readname):
69427         Use size_t, not int, for sizes.
69428         (readname): If the size overflows, report an error instead of
69429         looping forever.
69430
69431 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69432
69433         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
69434         libc.
69435
69436 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69437
69438         * README: New section: portability guidelines.
69439
69440 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69441
69442         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
69443         C89 spec.
69444
69445 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69446
69447         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
69448
69449 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69450
69451         Assume C89 or better; remove K&R cruft.
69452         A few of these changes were first proposed by Derek Robert Price
69453         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
69454
69455         * lib/addext.c: Include <string.h> unconditionally.
69456         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
69457         Don't declare getenv or malloc.
69458
69459         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
69460         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
69461         (NULL): Remove.
69462         (find_stack_direction, alloca): Use prototypes.
69463
69464         * lib/atexit.c (atexit): Define using a prototype.
69465
69466         * lib/basename.c, dirname.c, stripslash.c:
69467         Include <string.h> unconditionally.
69468
69469         * lib/bcopy.c: Include <stddef.h>.
69470         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69471
69472         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69473
69474         * lib/error.h (error, error_at_line, error_print_progname)
69475         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69476         * lib/error.c: Include error.h first, to check interface.
69477         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69478         (VA_START): Remove; all uses changeed to va_start.
69479         (exit, strerror): Remove decls.
69480         (error_print_progname): Prototype uncondionally.
69481         Don't include <errno.h>; no longer needed.
69482         (private_strerror): Remove.
69483         (error_tail): Always define.
69484         (error, error_at_line): Assume C89 or better; always use prototypes.
69485         * lib/fatal.c: Include "fatal.h" first, to test interface.
69486         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69487         (VA_START): Remove; all uses changed to va_start.
69488         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69489         this case.
69490         (exit): Remove decl.
69491         (fatal): Prototype unconditionally.  Assume va_start works.
69492         Abort at end, to pacify gcc.
69493
69494         * lib/euidaccess.c (main): Define with a prototype.
69495
69496         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69497
69498         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69499
69500         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69501         prototypes.
69502         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69503         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69504         (getenv): Remove decl.
69505         (fnmatch): Define using a prototype.
69506         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
69507         (FCT): Define using a prototype.
69508
69509         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
69510
69511         * lib/gethostname.c: Include <stddef.h>.
69512         (gethostname): Define with prototype.  Length is size_t, not int.
69513
69514 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69515
69516         Assume C89 or better; remove K&R cruft.
69517         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
69518         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
69519         string.h, getenv, malloc.
69520         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
69521         headers.
69522         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
69523         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
69524         do not check for strerror.
69525         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
69526         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
69527         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
69528         do not check for doprnt or vprintf.
69529         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
69530         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
69531
69532 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69533
69534         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
69535         getversion.c should have been removed then, but was accidentally
69536         preserved.
69537
69538         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
69539         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
69540
69541 2003-09-08  Karl Berry  <karl@gnu.org>
69542
69543         * config/config.sub, config.guess, srclistvars.sh: update from savannah
69544                 config, forget about prep.
69545
69546         * config/depcomp, missing: update from automake.
69547
69548 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69549
69550         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
69551         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69552
69553 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69554
69555         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
69556         copy_tm_result.  Bug reported by Simon Josefsson in
69557         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69558
69559 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69560
69561         * m4/time_r.m4: New file.
69562         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
69563         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
69564         is. Check for timegm declaration.
69565         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
69566         Do not check for gmtime_r.
69567         Replace mktime if __mktime_internal does not exist and if mktime
69568         hasn't been replaced already.
69569
69570 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69571
69572         * lib/time_r.c, lib/time_r.h: New files.
69573
69574         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
69575         __localtime_r.
69576         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
69577         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
69578
69579         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
69580         __gmtime_r.
69581         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
69582         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
69583         Include <time_r.h>.
69584
69585         * lib/timegm.c: Switch to glibc implementation, with the following
69586         changes:
69587         [defined HAVE_CONFIG_H]: Include <config.h>.
69588         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
69589         (__mktime_internal) [!defined _LIBC]: New decl.
69590         (__gmtime_r) [!defined _LIBC]: New macro and function.
69591         (timegm): Use a prototype, since gnulib assumes C89.
69592         Do not bother declaring tmp to be const, as it's not really usefu.
69593         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
69594         (timegm): Declare only if HAVE_DECL_TIMEGM.
69595
69596 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69597
69598         * MODULES.html.sh (func_all_modules): Add time_r.
69599         * modules/time_r: New file.
69600         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
69601         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
69602
69603 2003-09-03  Paul Eggert  <eggert@twinsun.com>
69604
69605         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
69606         Bug reported by Lute Kamstra in
69607         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
69608
69609         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
69610         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
69611         course with correspondingly smaller numbers for tomorrow and
69612         yesterday.  From Tadayoshi Funaba.  Originally installed into
69613         sh-utils on 1999-08-07, but the patch got lost (I guess during the
69614         coreutils merge?).
69615
69616 2003-08-31  Simon Josefsson  <jas@extundo.com>
69617
69618         * modules/timegm: New file.
69619         * MODULES.html.sh (func_all_modules): Add timegm.
69620
69621 2003-08-31  Simon Josefsson  <jas@extundo.com>
69622
69623         * m4/timegm.m4: New file.
69624
69625 2003-08-31  Simon Josefsson  <jas@extundo.com>
69626
69627         * lib/timegm.h: New file.
69628         * lib/timegm.c: New file.  Based on
69629         wget-1.8.2/src/http.c:mktime_from_utc.
69630
69631 2003-08-31  Karl Berry  <karl@gnu.org>
69632
69633         * lib/argp.h: update from libc.
69634
69635 2003-08-28  Bruno Haible  <bruno@clisp.org>
69636
69637         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
69638         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
69639         followed by '#define fnmatch fnmatch_posix' gives an error.
69640
69641 2003-08-28  Bruno Haible  <bruno@clisp.org>
69642
69643         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
69644         warning on QNX, which defines O_BINARY to 000000.
69645
69646 2003-08-27  Jim Meyering  <jim@meyering.net>
69647
69648         * m4/mkstemp.m4: Require that the system mkstemp be able to create
69649         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
69650         would fail after 32.  Reported by Danny Levinson.  Details here:
69651         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
69652
69653 2003-08-24  Bruno Haible  <bruno@clisp.org>
69654
69655         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
69656         MSVC7 <stdio.h> is included later.
69657
69658 2003-08-22  Simon Josefsson  <jas@extundo.com>
69659
69660         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
69661
69662 2003-08-20  Karl Berry  <karl@gnu.org>
69663
69664         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
69665
69666 2003-08-20  Bruno Haible  <bruno@clisp.org>
69667
69668         * modules/progname: New file.
69669         * MODULES.html.sh (func_all_modules): Add progname.
69670
69671 2003-08-20  Bruno Haible  <bruno@clisp.org>
69672
69673         * lib/progname.h: New file, from GNU gettext.
69674         * lib/progname.c: New file, from GNU gettext.
69675         * lib/progreloc.c: New file, from GNU gettext.
69676
69677 2003-08-19  Jim Meyering  <jim@meyering.net>
69678
69679         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
69680         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
69681
69682 2003-08-19  Bruno Haible  <bruno@clisp.org>
69683
69684         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
69685         more.
69686
69687 2003-08-19  Bruno Haible  <bruno@clisp.org>
69688
69689         * lib/xstrdup.c: Assume <string.h> exists.
69690
69691 2003-08-18  Paul Eggert  <eggert@twinsun.com>
69692
69693         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
69694         in makefile rules.
69695
69696 2003-08-18  Jim Meyering  <jim@meyering.net>
69697
69698         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
69699         * m4/lib-ld.m4: Likewise.
69700
69701 2003-08-18  Jim Meyering  <jim@meyering.net>
69702
69703         * lib/setenv.h: Indent nested cpp directive.
69704         * lib/vasnprintf.c: Remove trailing blanks.
69705
69706 2003-08-17  Simon Josefsson  <jas@extundo.com>
69707
69708         * modules/xstrndup: New file.
69709         * MODULES.html.sh (func_all_modules): Add xstrndup.
69710
69711 2003-08-17  Simon Josefsson  <jas@extundo.com>
69712
69713         * modules/argp: Fix autoconf macro name. Add more dependencies.
69714
69715 2003-08-17  Simon Josefsson  <jas@extundo.com>
69716
69717         * m4/xstrndup.m4: New file.
69718
69719 2003-08-17  Simon Josefsson  <jas@extundo.com>
69720
69721         * m4/argp.m4: New file.
69722
69723 2003-08-17  Simon Josefsson  <jas@extundo.com>
69724             Bruno Haible  <bruno@clisp.org>
69725
69726         * lib/xstrndup.h: New file.
69727         * lib/xstrndup.c: New file.
69728
69729 2003-08-17  Bruno Haible  <bruno@clisp.org>
69730
69731         * modules/strndup (Files, Include): Add lib/strndup.h.
69732
69733 2003-08-17  Bruno Haible  <bruno@clisp.org>
69734
69735         * modules/euidaccess (Files): Add lib/euidaccess.h.
69736
69737 2003-08-17  Bruno Haible  <bruno@clisp.org>
69738
69739         * lib/strndup.h: New file.
69740
69741 2003-08-17  Bruno Haible  <bruno@clisp.org>
69742
69743         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
69744         like AC_GNU_SOURCE.
69745         * modules/extensions (configure.ac): Comment out the invocation of
69746         gl_USE_SYSTEM_EXTENSIONS.
69747
69748 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69749
69750         Merges from coreutils, etc.
69751         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
69752         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
69753         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
69754         fixing a typo.
69755         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
69756         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
69757
69758 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69759
69760         Document merge from coreutils.
69761         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
69762         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
69763         * modules/utime: Add m4/utimes-null.m4.
69764
69765 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69766
69767         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
69768         space, undoing this 2003-08-12 change:
69769         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69770
69771 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69772
69773         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
69774         strtoul.c from libc, undoing this 2003-08-12 change:
69775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69776
69777 2003-08-16  Jim Meyering  <jim@meyering.net>
69778
69779         Merges from coreutils.
69780         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
69781         prefix.  Adjust cache variables similarly.  Create 500 rather than
69782         just 300 files, to exercise bug on Darwin6.5, too.
69783         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
69784         $missing_dir.
69785         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
69786         AM_SYS_POSIX_TERMIOS.
69787         Reported by mkc@mathdogs.com.
69788         Also change use of $am_cv_sys_posix_termios
69789         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
69790         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
69791         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
69792         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
69793         in /proc/mounts until it finds one with matching device number.  This
69794         is unnecessary when the FILE argument *is* a mount point.  No stat call
69795         is necessary in that case.  So, disable the statvfs-testing code on
69796         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
69797         as RedHat bug# 84846.
69798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69799         to 1MB, so as not to render systems with no stack size limit (e.g.,
69800         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69801         Include <unistd.h>.  On some systems,
69802         it is required for the definition of _SC_PAGESIZE.
69803
69804 2003-08-16  Jim Meyering  <jim@meyering.net>
69805
69806         Merge from coreutils.
69807         * lib/xstrtoimax.c: #else #if -> #elif.
69808         * lib/xstrtoumax.c: Likewise.
69809
69810 2003-08-16  Jim Meyering  <jim@meyering.net>
69811
69812         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
69813         * m4/utimes.m4: Removed.
69814         * m4/utimes-null.m4: Renamed from utimes.m4.
69815
69816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69817         to 1MB, so as not to render systems with no stack size limit (e.g.,
69818         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69819         Include <unistd.h>.  On some systems,
69820         it is required for the definition of _SC_PAGESIZE.
69821
69822 2003-08-16  Jim Meyering  <jim@meyering.net>
69823         and Paul Eggert  <eggert@cs.ucla.edu>
69824
69825         Merges from coreutils, etc.
69826
69827         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
69828         using the latest version from cvs.  This avoids problems with #line
69829         directives using a vendor (Sun) compiler.
69830         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
69831         Don't set GETGROUPS_LIB here; now it's
69832         done via getgroups.m4's wrapper function.
69833         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
69834         rather than just in sh-util/configure.in, so that the
69835         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
69836         same.
69837         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
69838         AC_FUNC_GETLOADAVG where to find getloadavg.c.
69839         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
69840         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
69841         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
69842         Remove code that is now done by the newly-required macros.
69843         Append $(EXEEXT) to DF_PROG.
69844         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
69845         Do not invoke or require the following here,
69846         since prereq.m4 or some gnulib .m4 now does this for us:
69847         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
69848         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
69849         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
69850         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
69851         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
69852         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
69853         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
69854         AC_FUNC_OBSTACK.
69855         Do not replace the following functions, as this is now the job
69856         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
69857         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
69858         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
69859         atexit getpass, strdup, getpagesize.
69860         Replace 'raise'.
69861         Do not check for the following functions, as this is now the job
69862         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
69863         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
69864         setregid.
69865         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
69866         Check for sys/sysctl.h.
69867         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
69868         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
69869         of checking for ssize_t ourselves.
69870
69871         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
69872         Require every macro that gnulib/modules/* suggests for us.
69873         (jm_PREREQ_ADDEXT): New macro.
69874         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
69875         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
69876
69877         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
69878         (gl_PHYSMEM): Use it.
69879         Also check for `table' function.
69880         Check for new headers and functions.
69881         Add check for sys/sysmp.h.
69882         With suggestions from Kaveh Ghazi.
69883         Ignore headers that are present but cannot be compiled.  This
69884         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
69885         C 5.4.
69886
69887 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69888
69889         Document merge from coreutils.
69890         * modules/userspec: Depend on posixver.
69891         * modules/strftime: Depend on tzset.
69892
69893 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69894
69895         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
69896         rather than tab, after '#' in shell-script copyright notices.
69897         Suggested by Bruno Haible.
69898
69899 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69900
69901         * config/srclist-update: Use three spaces, rather than tab, after '#'
69902         in shell-script copyright notices.  Suggested by Bruno Haible.
69903         Remove unnecessary parenthesization in regular expression.
69904
69905 2003-08-15  Jim Meyering  <jim@meyering.net>
69906
69907         Merge from coreutils.
69908         * lib/xgethostname.c: Include <stdlib.h>.
69909         (xghostname): Don't exit for anything other than memory-related
69910         failure; just return NULL.
69911         * lib/userspec.c: Include "posixver.h".
69912         (parse_user_spec): Accept `.' as a separator only
69913         in pre-POSIX-200112 mode.
69914         * lib/strtoimax.c: Use #elif rather than #else #if.
69915         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
69916         Remove function, now that we can rely on a working tzset function.
69917         [!_LIBC]: Ensure that the required autoconf test has been run.
69918         [!defined _NL_CURRENT && HAVE_STRFTIME]:
69919         Use underlying_strftime for %r.
69920         * lib/sha.c: Merge in some clean-up and optimization changes from
69921         glibc.
69922         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
69923         Ensure that it is a multiple of 64.
69924         Rearrange loop exit tests so as to avoid performing an
69925         additional fread after encountering an error or EOF.
69926         * lib/realloc.c: Update copyright date.
69927
69928 2003-08-15  Jim Meyering  <jim@meyering.net>
69929         and Paul Eggert  <eggert@twinsun.com>
69930
69931         Merge from coreutils.
69932         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
69933         member but strut utmpx does not.  Needed for AIX 4.3.3.
69934         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
69935
69936 2003-08-15  Jim Meyering  <jim@meyering.net>
69937         and Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         Merges from coreutils, etc.
69940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
69941         Require gl_FUNC_TZSET_CLOBBER.
69942         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
69943         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
69944         members.
69945
69946 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69947
69948         Help the merge from coreutils.
69949         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
69950         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
69951         * m4/tzset.m4: Use it too.
69952
69953 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69954
69955         * modules/tzset: New file.
69956
69957 2003-08-14  Jim Meyering  <jim@meyering.net>
69958
69959         Merges from coreutils.
69960         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
69961         variable names, rather than @FNMATCH_H@.
69962         * modules/alloca: Likewise for $(ALLOCA_H).
69963
69964         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
69965         the three copies of the literal target, `fnmatch.h'.
69966         * modules/alloca (alloca.h): Likewise.
69967
69968 2003-08-14  Jim Meyering  <jim@meyering.net>
69969
69970         Merge from coreutils.
69971         * m4/tzset.m4: New file.
69972         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
69973         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
69974         otherwise, AIX 5.1 systems would end up using the latter.
69975         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
69976         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
69977         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
69978         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
69979
69980 2003-08-14  Jim Meyering  <jim@meyering.net>
69981
69982         Merge from coreutils.
69983         * lib/obstack.h: Whitespace changes.
69984         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
69985         and xcalloc return values.
69986         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
69987         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
69988         hang on OSF/1 5.1 for DIR on both local and remote file systems.
69989         Reported by (and fix confirmed by) Nelson H. F. Beebe.
69990         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69991         error from mntctl.
69992         Use mntctl's return value to drive the entry-processing loop, since
69993         we can't rely on the value of the vmt_length member in the last
69994         entry.  On some systems doing so could result in exhausting
69995         virtual memory.  Based in part on a patch from Mike Jetzer.
69996
69997 2003-08-14  Jim Meyering  <jim@meyering.net>
69998         and Paul Eggert  <eggert@twinsun.com>
69999
70000         Merges from coreutils, plus other fixes.
70001         * lib/physmem.c: Merge in portability changes from gcc/libiberty
70002         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
70003         for credits and details.  Thanks to Kaveh Ghazi for helping
70004         to keep these files in sync.
70005         (ARRAY_SIZE): Define it.
70006         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
70007         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
70008         (memcasecmp): Don't assume size_t fits in unsigned int.
70009         Remove casts and duplicate code.
70010         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
70011         (memcpy): Remove definition.
70012         Merge in some clean-up and optimization changes from glibc.
70013         [BLOCKSIZE]: Move definition to top of file.
70014         Ensure that it is a multiple of 64.
70015         Rearrange loop exit tests so as to avoid performing an
70016         additional fread after encountering an error or EOF.
70017         * lib/md5.h (md5_uintptr): Define.
70018         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
70019         return to the initial working directory.  Preserve errno
70020         for caller.
70021         * lib/idcache.c: Include "xalloc.h".
70022         (xmalloc, xrealloc): Remove decls.
70023         (getuser): Remove casts no longer required in C89.
70024         * lib/human.c: Include stdio.h, for sprintf.
70025         * lib/group-member.c: Include "xalloc.h".
70026         (xmalloc, xrealloc): Remove decls.
70027         (get_group_info): Remove casts no longer required in C89.
70028         * lib/getusershell.c (readname): Remove casts no longer required in
70029         C89.
70030         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
70031         * lib/getline.c: Whitespace fix, from coreutils.
70032
70033 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70034
70035         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
70036         Check for isascii.
70037
70038         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70039         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70040         Undo previous (whitespace-only) change.
70041
70042 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70043
70044         * lib/exclude.c: Include <ctype.h>
70045         (IN_CTYPE_DOMAIN): New macro.
70046         (is_space): New fn.
70047         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
70048         and empty lines.
70049
70050         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70051         Undo previous (whitespace-only) change.
70052
70053 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70054
70055         * config/srclist-update: Change update back to the old behavior,
70056         leaving whitespace alone.  Use one 'sed' command rather than a
70057         pipeline.
70058         (fixlicense): Now a variable, not a function.
70059         (remove_trailing_blanks): Remove.
70060         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
70061         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70062         Undo previous (whitespace-only) change.
70063
70064 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70065
70066         Merge from coreutils.
70067         * modules/euidaccess: Add lib_SOURCES, include for new
70068         file euidaccess.h
70069
70070 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70071
70072         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70073         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70074         Normalize leading white space and remove trailing white space.
70075
70076         Merge from coreutils
70077         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
70078
70079         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
70080         0.12.1.  These files are now being upgraded automatically by
70081         ../config/srclist-update.
70082
70083 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70084
70085         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70086         Normalize leading white space and remove trailing white space.
70087         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
70088         notice, as per ../config/srclist-update.
70089
70090         Merge from coreutils.
70091         * lib/euidaccess.h: New file.
70092         * lib/euidaccess.c: Include it.
70093         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
70094         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
70095         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
70096
70097 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70098
70099         * config/srclist-update: Add copyright notice.
70100         (remove_id_lines, remove_trailing_blanks): New constants.
70101         (fixfile): Use them to normalize spacing a bit in copied files.
70102         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70103         Normalize leading white space and remove trailing white space.
70104
70105         * config/texinfo.tex: Sync with texinfo.
70106
70107         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
70108         strtoul.c from libc, to merge coreutils whitespace changes.
70109
70110         * config/srclist.txt: Get the following m4 files from gettext:
70111         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
70112         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
70113         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
70114         wint_t.m4.
70115
70116 2003-08-12  Karl Berry  <karl@gnu.org>
70117
70118         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
70119         been made.
70120
70121 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70122
70123         * modules/gnu-source, m4/gnu-source.m4:
70124         Remove; we're assuming Autoconf 2.54 or later now.
70125         Suggested by Bruno Haible.
70126         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70127
70128 2003-08-11  Bruno Haible  <bruno@clisp.org>
70129
70130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70131
70132 2003-08-11  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
70135         (vasnprintf): Use it instead of wcslen.
70136
70137 2003-08-11  Bruno Haible  <bruno@clisp.org>
70138
70139         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
70140         value to ensure that _Bool promotes to int. Use #define for _Bool when
70141         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
70142
70143 2003-08-10  Karl Berry  <karl@gnu.org>
70144
70145         * lib/regex.h: update from libc (whitespace fix).
70146
70147 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70148
70149         Merge some files from coreutils.  These changes were
70150         originally made by Jim Meyering.
70151         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
70152         many older Unixes require this.
70153         * lib/alloca.c (alloca): Remove cast to argument of free;
70154         no longer needed in C89.
70155         * lib/alloca_.h, regex.h: Fix white space to match
70156         what GNU indent does.
70157
70158 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70159
70160         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
70161         apparently Emacs's Unicode mode got confused before my 2003-08-05
70162         checkin.
70163
70164 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70165
70166         * m4/extensions.m4: New file.
70167         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
70168         Require gl_USE_SYSTEM_EXTENSIONS.
70169         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
70170         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
70171
70172 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70173
70174         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
70175         * modules/extensions, modules/gnu-source: New files.
70176         * modules/timespec, modules/unlocked-io: Depend on extensions.
70177
70178 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70179
70180         * modules/restrict: New file.
70181         * MODULES.html.sh (func_all_modules): Add restrict.
70182         * modules/regex: Depend on restrict.
70183
70184 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70185
70186         * m4/restrict.m4: New file.
70187         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
70188
70189 2003-08-07  Bruno Haible  <bruno@clisp.org>
70190
70191         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
70192         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
70193
70194 2003-08-07  Bruno Haible  <bruno@clisp.org>
70195
70196         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
70197         makes the module 'getndelim2' compatible with the module 'getline'.
70198
70199 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70200
70201         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
70202         byte with "\201" to avoid glitches when editing that source file
70203         with multi-gnome-terminal.
70204
70205 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70206
70207         * lib/bumpalloc.h: Remove.
70208
70209 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70210
70211         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
70212         * modules/bumpalloc: Remove.
70213
70214 2003-08-04  Paul Eggert  <eggert@twinsun.com>
70215
70216         * lib/getloadavg.c: Change copyright notice and spacing to conform to
70217         GNU coding style.
70218
70219         Merge from coreutils.
70220         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
70221         1. From glibc.
70222         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
70223         from Karl Berry, implemented by Jim Meyering.
70224         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
70225         from Dmitry V. Levin.
70226         Remove anachronistic cast of xrealloc.
70227         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
70228         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
70229         type. Otherwise, it wouldn't compile with at least /bin/cc on
70230         ymp-cray-unicos9.0.2.X.
70231         Combine two mostly-identical uses of alloca into one.
70232         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
70233
70234 2003-08-04  Dave Love  <d.love@dl.ac.uk>
70235
70236         [From Emacs.]
70237
70238         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
70239         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
70240         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
70241         obsolete NLIST_NAME_UNION.
70242         [__GNU__]: Undef BSD and FSCALE.
70243         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
70244
70245 2003-08-03  Paul Eggert  <eggert@twinsun.com>
70246
70247         * lib/stdbool_.h (_Bool): Make it signed char, instead of
70248         an enum type, so that it's guaranteed to promote to int.  See:
70249         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
70250
70251 2003-08-03  Karl Berry  <karl@gnu.org>
70252
70253         * config/depcomp: update from automake.
70254
70255 2003-07-31  Paul Eggert  <eggert@twinsun.com>
70256
70257         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
70258         (strerror): Don't assume that a printable int fits in 14 bytes.
70259
70260 2003-07-31  Bruno Haible  <bruno@clisp.org>
70261
70262         * modules/getpass-gnu: New file.
70263         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
70264
70265 2003-07-31  Bruno Haible  <bruno@clisp.org>
70266
70267         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
70268
70269 2003-07-24  Karl Berry  <karl@gnu.org>
70270
70271         * config/missing: update from automake.
70272
70273 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
70274             Bruno Haible  <bruno@clisp.org>
70275
70276         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
70277         * lib/getline.c (getline, getdelim): Likewise.
70278         Remove _GNU_SOURCE define; now it's defined in config.h through
70279         m4/getline.m4.
70280
70281 2003-07-23  Karl Berry  <karl@gnu.org>
70282
70283         * config/config.sub: update from prep.
70284
70285 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70286
70287         * modules/xalloc (Depends-on): Add exitfail.
70288         * modules/xmemcoll: Likewise.
70289
70290 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70291
70292         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
70293         over-parenthesization in macros.
70294
70295         Sync with coreutils.
70296
70297         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
70298         required by C99.
70299
70300         Use `exit_failure' for xalloc and xmemcoll instead of their own
70301         private exit-failure variables.
70302         * lib/xalloc.h (xalloc_exit_failure): Remove.
70303         * lib/xmalloc.c: Likewise.  Include exitfail.h.
70304         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
70305         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
70306         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
70307         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
70308
70309 2003-07-20  Jim Meyering  <jim@meyering.net>
70310
70311         * modules/closeout (Depends-on): Add exitfail.
70312         Suggestion from Bruno Haible.
70313
70314 2003-07-19  Karl Berry  <karl@gnu.org>
70315
70316         * config/config.sub: update from prep.
70317
70318 2003-07-18  Paul Eggert  <eggert@twinsun.com>
70319
70320         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
70321         Remove.
70322         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
70323         to test that it can stand by itself.  Include "exitfail.h".
70324         Clients should set exit_failure instead.
70325         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
70326
70327 2003-07-18  Bruno Haible  <bruno@clisp.org>
70328
70329         * modules/getndelim2: New file.
70330         * modules/getline: Share files with module getndelim2.
70331         * modules/getnline: Depend on getndelim2 instead of sharing files with
70332         it. Add getnline.c to lib_SOURCES.
70333         * MODULES.html.sh (func_all_modules): Add getndelim2.
70334
70335 2003-07-18  Bruno Haible  <bruno@clisp.org>
70336
70337         * m4/getndelim2.m4: New file.
70338         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70339         invoke gl_PREREQ_GETNDELIM2.
70340         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70341         gl_PREREQ_GETNDELIM2.
70342         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70343         gl_GETNDELIM2.
70344
70345 2003-07-18  Bruno Haible  <bruno@clisp.org>
70346
70347         * lib/getndelim2.h: New file.
70348         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70349         getndelim2.h.
70350         (getndelim2): Make non-static. Change return type to ssize_t.
70351         * lib/getline.h: Change argument names.
70352         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70353         * lib/getnline.c: Include getndelim2.h.
70354
70355 2003-07-18  Andreas Schwab  <schwab@suse.de>
70356
70357         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70358
70359 2003-07-17  Karl Berry  <karl@gnu.org>
70360
70361         * config/config.sub: update from prep.
70362
70363 2003-07-17  Bruno Haible  <bruno@clisp.org>
70364
70365         * modules/getnline: New file.
70366         * modules/getline: Add lib/getndelim2.c to source file list.
70367         * MODULES.html.sh (func_all_modules): Add getnline.
70368
70369 2003-07-17  Bruno Haible  <bruno@clisp.org>
70370
70371         * m4/getnline.m4: New file.
70372
70373 2003-07-17  Bruno Haible  <bruno@clisp.org>
70374
70375         * m4/Makefile.am.in: Remove file.
70376         * m4/Makefile.am: Remove file.
70377         * m4/Makefile.in: Remove file.
70378
70379 2003-07-17  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/getnline.h: New file.
70382         * lib/getnline.c: New file.
70383         * lib/getndelim2.c: New file, extracted from getline.c.
70384         (getndelim2): Renamed from getdelim2, with added nmax argument.
70385         * lib/getline.c: Include getndelim2.c.
70386         (getdelim2): Moved out to getndelim2.c.
70387         (getline, getdelim): Update.
70388
70389 2003-07-17  Bruno Haible  <bruno@clisp.org>
70390
70391         * lib/Makefile.am: Remove file.
70392         * lib/Makefile.in: Remove file.
70393
70394 2003-07-17  Bruno Haible  <bruno@clisp.org>
70395
70396         * configure.in: Remove file.
70397         * Makefile.in: Remove file.
70398
70399 2003-07-17  Bruno Haible  <bruno@clisp.org>
70400
70401         * MODULES.html.sh: Put the </BODY> right before </HTML>.
70402
70403 2003-07-16  Karl Berry  <karl@gnu.org>
70404
70405         * config/srclist-update: was running fixlicense twice, which caused
70406                 texinfo.tex to be nullified for some reason.  Simplify,
70407                 $gplsrc is no longer needed as far as I can see?
70408
70409 2003-07-16  Jim Meyering  <jim@meyering.net>
70410
70411         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
70412
70413 2003-07-15  Paul Eggert  <eggert@twinsun.com>
70414
70415         * config/srclist.txt: Get the following files from gettext-runtime/intl
70416         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
70417         ref-del.sin.  From Bruno Haible.
70418         * config/srclist-update (fixfile): Change grep pattern again, since the
70419         previous fix didn't work (there was another trailing $).  Use
70420         '[$]' to escape the $s.
70421
70422 2003-07-15  Karl Berry  <karl@gnu.org>
70423
70424         * lib/vasnprintf.c: update from gettext.
70425
70426 2003-07-15  Karl Berry  <karl@gnu.org>
70427
70428         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
70429         gets expanded when surrounded by '$'.
70430
70431 2003-07-15  Jim Meyering  <jim@meyering.net>
70432
70433         * modules/save-cwd: Don't depend on error.  From Derek Price.
70434
70435 2003-07-15  Jim Meyering  <jim@meyering.net>
70436
70437         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
70438
70439 2003-07-14  Simon Josefsson  <jas@extundo.com>
70440
70441         * modules/mempcpy: New file.
70442         * MODULES.html.sh (func_all_modules): Add mempcpy.
70443
70444 2003-07-14  Simon Josefsson  <jas@extundo.com>
70445
70446         * m4/mempcpy.m4: New file.
70447
70448 2003-07-14  Simon Josefsson  <jas@extundo.com>
70449
70450         * lib/mempcpy.h: New file.
70451         * lib/mempcpy.c: New file.
70452
70453 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70454
70455         * modules/getdate, modules/posixtm: Depend on mktime.
70456
70457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70458
70459         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
70460         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
70461         unicodeio.c, unicodeio.h, unlocked-io.h:
70462         Switch from LGPL to GPL.
70463
70464 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70465
70466         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
70467         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70468         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70469         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70470         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70471         updated automatically by ../config/srclist-update.  This changes
70472         their license from LPGL to GPL.
70473
70474 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70475
70476         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70477         assumed to refer to the root of the most recent stable gettext version.
70478         * config/srclistvars.sh: Add defaults for eggert.
70479         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70480         Match "This program" as well as "The program".  This is needed
70481         for gettext.
70482
70483 2003-07-14  Jim Meyering  <jim@meyering.net>
70484
70485         Don't emit diagnostics.  Let callers do that.
70486         * lib/save-cwd.c: Don't include "error.h".
70487         (save_cwd): Don't call error.  Ensure that errno is valid
70488         when returning nonzero.
70489
70490         * lib/save-cwd.h (restore_cwd): Update prototype.
70491         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70492         Simplify.  Don't call error upon failure.  Let callers do that.
70493         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70494         when auditing is enabled.  But don't bother updating the #if.
70495
70496 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70497
70498         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70499         it breaks C++ compilation.
70500         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70501
70502 2003-07-10  Simon Josefsson  <jas@extundo.com>
70503
70504         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70505
70506 2003-07-10  Jim Meyering  <jim@meyering.net>
70507
70508         * m4/clock_time.m4: Remove trailing blank.
70509         * m4/intmax_t.m4: Likewise.
70510
70511 2003-07-10  Jim Meyering  <jim@meyering.net>
70512
70513         * lib/vasnprintf.c: Remove trailing blanks.
70514         Make cpp indentation consistent.
70515
70516 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70517
70518         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
70519         posixver.c, strftime.c, strnlen.c, strverscmp.c:
70520         Switch from LGPL to GPL.
70521
70522 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70523
70524         * config/srclist.txt: Sort sublists.  Add
70525         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
70526         that differ from gnulib for one reason or another; we'd like this list
70527         to be smaller but for now let's document what we have.
70528
70529 2003-07-08  Paul Eggert  <eggert@twinsun.com>
70530
70531         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
70532         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
70533         and sweeter "eval x=$x".
70534         * config/srclist.txt: Get lib/argp* from glibc.
70535
70536 2003-07-07  Paul Eggert  <eggert@twinsun.com>
70537
70538         * lib/mktime.c: Fix some boundary cases and remove need for floating
70539         point.
70540
70541         Issue a compile-time diagnostic if time_t is floating point, or if
70542         two's complement arithmetic is not in effect, or if arithmetic
70543         right shift does not propagate the sign.  These assumptions were
70544         all in the original code but they weren't checked.
70545
70546         (TIME_T_MIDPOINT, verify): New macros.
70547         (__isleap): Remove; it has integer overflow problems.
70548         (leapyear): New function, without those problems.
70549         (ydhms_tm_diff): Remove; splitting into two parts.
70550         (ydhms_diff): New function, containing the arithmetic part of
70551         the old ydhms_tm_diff function.  Issue a compile-time
70552         diagnostic if we are not using C99 integer division.
70553         Avoid casts when possible.
70554         (guess_time_tm): New function, containing the checking part of
70555         the old ydhms_tm_diff function.  Return the new value, rather than
70556         the difference between it and the old.  Accept a new argument T
70557         so that *T specifies the old value.  Check for overflow in the result.
70558
70559         (__mktime_internal): Use a time_t offset, not a long int offset.
70560         This undoes the 2003-06-04 change, which is no longer needed now
70561         that we have better overflow checking.
70562         (localtime_offset): Likewise.
70563
70564         (__mktime_internal): Avoid harmful overflow on hosts where time_t
70565         and long are 64-bit but int is only 32-bit.
70566         (ydhms_diff): Use long int to store year1 and yday1.
70567         Issue a compile-time diagnostic if long int is not wide enough.
70568
70569         (__mktime_internal): Use long int to store adjusted year and yday.
70570         Use plain C rather than preprocessor commands, if that doesn't
70571         affect efficiency.
70572         Check for overflow (and try to repair) after each probe
70573         rather than checking only at the very end.  This avoids some bugs
70574         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
70575         does not equal GMT offset at maximum time).
70576         Use integer to check for overflow rather than floating point; this
70577         is more portable to non-IEEE hosts, and is a tad faster.
70578         When we detect that we are oscillating between two values,
70579         don't check whether tm_isdst has the requested value, since
70580         we already know the answer.  When tm_isdst has the wrong value,
70581         use a different heuristic to find the right one, based on the
70582         extreme values actually observed in practice in tz2003a,
70583         rather than the (overly optimistic) "previous 3 calendar quarters".
70584
70585         (not_equal_tm, print_tm, check_result): Use "const T" rather than
70586         "T const" to accommodate glibc style.
70587         (check_result): Use less-confusing report format.  "long" -> "long int.
70588         (main): Likewise.
70589         Don't loop if the iteration overflows time_t.
70590         Allow a negative step in the iteration.
70591
70592 2003-07-06  Karl Berry  <karl@gnu.org>
70593
70594         * config/depcomp: update from automake.
70595         * config/config.sub: update from prep.
70596
70597 2003-07-03  Karl Berry  <karl@gnu.org>
70598
70599         * config/config.guess: update from prep.
70600
70601 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70602
70603         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
70604         xreadlink.c now includes it unconditionally.
70605
70606 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70607
70608         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
70609         having it depend on HAVE_SYS_TYPES_H.
70610
70611 2003-07-01  Bruno Haible  <bruno@clisp.org>
70612
70613         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
70614         <sys/types.h> should be sufficient.
70615         Reported by Paul Eggert.
70616
70617 2003-06-26  Karl Berry  <karl@gnu.org>
70618
70619         * config/depcomp: update from automake.
70620
70621 2003-06-26  Bruno Haible  <bruno@clisp.org>
70622
70623         * modules/human: Depend on module stdbool.
70624
70625 2003-06-25  Bruno Haible  <bruno@clisp.org>
70626
70627         * modules/readlink: New file.
70628         * modules/xreadlink: Depend on it.
70629         * MODULES.html.sh (func_all_modules): Add readlink.
70630
70631 2003-06-25  Bruno Haible  <bruno@clisp.org>
70632
70633         * m4/readlink.m4: New file.
70634
70635 2003-06-25  Bruno Haible  <bruno@clisp.org>
70636
70637         * lib/readlink.c: New file.
70638
70639 2003-06-22  Karl Berry  <karl@gnu.org>
70640
70641         * config/srclist.txt: update mkinstalldirs from automake.
70642         * config/mkinstalldirs: update.
70643
70644 2003-06-22  Bruno Haible  <bruno@clisp.org>
70645
70646         Portability to mingw32.
70647         * m4/ssize_t.m4: New file, from GNU gettext.
70648         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
70649         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
70650
70651 2003-06-22  Bruno Haible  <bruno@clisp.org>
70652
70653         * modules/safe-read: Add m4/ssize_t.m4.
70654         * modules/xreadlink: Add m4/ssize_t.m4.
70655
70656 2003-06-20  Bruno Haible  <bruno@clisp.org>
70657
70658         Assume C89, so PARAMS isn't needed.
70659         * lib/unicodeio.h (PARAMS): Remove.
70660         * lib/unicodeio.c: Don't use PARAMS.
70661
70662 2003-06-18  Karl Berry  <karl@gnu.org>
70663
70664         * config/config.{guess,sub}: update from prep.
70665
70666 2003-06-18  Jim Meyering  <jim@meyering.net>
70667
70668         Merge changes from coreutils.
70669         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
70670         Remove explicit declarations of xmalloc and realloc.
70671         Include xalloc.h.
70672         (read_utmp): Remove anachronistic cast of xmalloc.
70673
70674 2003-06-17  Paul Eggert  <eggert@twinsun.com>
70675
70676         Assume C89, so PARAMS isn't needed.
70677         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
70678         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
70679         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
70680         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
70681         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
70682         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
70683         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
70684         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
70685         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
70686         lib/xstrtod.h, lib/xstrtol.h: Likewise.
70687         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
70688         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
70689         no longer needed. Anyway, config.h should always be included before any
70690         other file.
70691
70692 2003-06-11  Simon Josefsson  <jas@extundo.com>
70693
70694         * modules/sysexits: New file.
70695         * MODULES.html.sh (func_all_modules): Add sysexits.
70696
70697 2003-06-11  Simon Josefsson  <jas@extundo.com>
70698
70699         * lib/sysexit_.h: New file.
70700
70701 2003-06-11  Derek Price  <derek@ximbiot.com>
70702
70703         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
70704         necessary.
70705
70706 2003-06-11  Bruno Haible  <bruno@clisp.org>
70707
70708         * m4/sysexits.m4: New file.
70709
70710 2003-06-10  Simon Josefsson  <jas@extundo.com>
70711
70712         * lib/argp.h: New file, from glibc.
70713         * lib/argp-ba.c: New file, from glibc.
70714         * lib/argp-eexst.c: New file, from glibc.
70715         * lib/argp-fmtstream.c: New file, from glibc.
70716         * lib/argp-fmtstream.h: New file, from glibc.
70717         * lib/argp-fs-xinl.c: New file, from glibc.
70718         * lib/argp-help.c: New file, from glibc.
70719         * lib/argp-namefrob.h: New file, from glibc.
70720         * lib/argp-parse.c: New file, from glibc.
70721         * lib/argp-pv.c: New file, from glibc.
70722         * lib/argp-pvh.c: New file, from glibc.
70723         * lib/argp-xinl.c: New file, from glibc.
70724
70725 2003-06-10  Simon Josefsson  <jas@extundo.com>
70726
70727         * modules/strchrnul: New file.
70728
70729 2003-06-10  Simon Josefsson  <jas@extundo.com>
70730
70731         * modules/argp: New file.
70732
70733 2003-06-10  Simon Josefsson  <jas@extundo.com>
70734
70735         * m4/strchrnul.m4: New file.
70736
70737 2003-06-10  Simon Josefsson  <jas@extundo.com>
70738
70739         * lib/strchrnul.h: New file.
70740         * lib/strchrnul.c: New file.
70741
70742 2003-06-10  Bruno Haible  <bruno@clisp.org>
70743
70744         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
70745
70746 2003-06-07  Karl Berry  <karl@gnu.org>
70747
70748         * config/config.{guess,sub}: update from prep.
70749
70750 2003-06-07  Jim Meyering  <jim@meyering.net>
70751
70752         * modules/strtod: Use $(...) notation, not @...@ for
70753         AC_REPLACE'd variables.
70754         * modules/localcharset: Likewise.
70755
70756 2003-06-07  Jim Meyering  <jim@meyering.net>
70757
70758         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
70759         in place of my name in the copyright comment.
70760         Remove definition and uses of __P.
70761
70762         From coreutils.
70763         * lib/stat.c: Don't declare xmalloc explicitly.
70764         Instead, include "xalloc.h".
70765         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
70766         xrealloc, and xcalloc return values.
70767         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
70768         Improve comment.
70769         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
70770
70771 2003-06-07  Bruno Haible  <bruno@clisp.org>
70772
70773         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
70774         avoid AC_CONFIG_LINKS.
70775         * modules/fnmatch (Makefile.am): Use explicit creation rule for
70776         fnmatch.h, to avoid AC_CONFIG_LINKS.
70777         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
70778
70779 2003-06-07  Bruno Haible  <bruno@clisp.org>
70780
70781         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
70782         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
70783         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70784         directory.
70785         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
70786         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70787         directory.
70788
70789 2003-06-06  Jim Meyering  <jim@meyering.net>
70790
70791         Merge from coreutils.
70792         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
70793         Consolidate declarations and initializations of *_base* locals.
70794
70795         Merge from coreutils.
70796         This avoids a core dump on systems without GNU putenv,
70797         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
70798         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
70799         (unsetenv): New static function, from GNU libc.
70800         (rpl_putenv): Use it.
70801
70802         * lib/modechange.c: Remove trailing blanks.
70803
70804         Merge from coreutils.
70805         * lib/fsusage.c: Remove declaration of statfs.
70806         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
70807
70808         * lib/posixtm.c: Include <stdbool.h> unconditionally.
70809
70810 2003-06-06  Jim Meyering  <jim@meyering.net>
70811
70812         * lib/stdbool_.h: Renamed from stdbool.h.in.
70813
70814 2003-06-06  Jim Meyering  <jim@meyering.net>
70815             Bruno Haible  <bruno@clisp.org>
70816
70817         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
70818         Adjust Makefile.am snippet not to redirect directly to target.
70819         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
70820
70821 2003-06-05  Paul Eggert  <eggert@twinsun.com>
70822
70823         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
70824         mismatch, look in future quarters as well as past.  This fixes a
70825         bug when processing fall-backwards gaps immediately after a long
70826         period of daylight-saving time.
70827
70828         * lib/mktime.c: Assume freestanding C89 or better.
70829         (HAVE_LIMITS_H): Remove.  Assume it's 1.
70830         (__P): Remove; not used.
70831         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
70832         (mktime, not_equal_tm, print_tm, check_result,
70833         main): Use prototypes.  Use const * where appropriate.
70834         (main): Fix typo in testing code that uncovered by above changes.
70835         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
70836
70837 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70838
70839         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
70840         locale.h, localeconv.  This merges changes from coreutils.
70841
70842         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
70843         It can be removed after the next Autoconf is released.
70844         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
70845         needed.
70846
70847 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70848
70849         * lib/mktime.c: Fix Debian bug 177940
70850         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
70851         (localtime_offset): Now long int, not time_t, because we want it
70852         to be guaranteed to be signed.  All uses changed.
70853         (__mktime_internal): If overflow would occur when adding offset,
70854         don't add it.
70855
70856         Merge 'human' changes from coreutils.  Rewrite to support
70857         locale-specific notations like thousands separators.
70858         * lib/human.c: Simplify authorship notice.
70859         Include human.h immediately after config.h.
70860         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
70861         <limits.h>: Do not include, since human.h does.
70862         (SIZE_MAX, UINTMAX_MAX): New macros.
70863         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
70864         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
70865         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
70866         (power_letter): Renamed from suffixes.
70867         (generate_suffix_backwards): Remove.
70868         (adjust_value): Now takes int style (because of human.h changes)
70869         and long double value (for greater precision on some platforms).
70870         (group_number): New function.
70871         (human_readable): Use it.  Use integer options, not enum.
70872         Put the options before the sizes in the arg list.
70873         Support all the new options.
70874         The old human_readable function has been removed;
70875         use inttostr.h instead.
70876         (human_readable, default_block_size, humblock):
70877         Use uintmax_t, not int, for block sizes.
70878         (human_readable_inexact, block_size_types): Remove.
70879         (block_size_opts): New constant.
70880         (human_options): Renamed from human_block_size, with new signature
70881         that allows block sizes up to UINTMAX_MAX.  All callers changed.
70882         * lib/human.h: Add copyright and authorship notice.
70883         Include <limits.h> and <stdbool.h> unconditionally.
70884         (PARAMS): Remove.  All uses removed.
70885         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
70886         (enum human_inexact_style): Remove tag; now a nameless enum.
70887         (human_floor, human_ceiling, human_round_to_even): Now have
70888         values 2, 0, 1 rather than -1, 1, 0.
70889         (human_group_digits, human_suppress_point_zero, human_autoscale,
70890         human_base_1024, human_SI, human_B): New constants.
70891         (human_readable_inexact, human_block_size): Remove.
70892         (human_readable): Size args are now uintmax_t, not int.
70893         (human_options): New decl.
70894
70895         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
70896         unnecessary now that we assume C89 or better.  This change
70897         imported from coreutils.
70898
70899         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
70900         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
70901         in the 2003-05-30 sync from glibc.
70902
70903         .h files should stand alone, but we shouldn't include <sys/types.h>
70904         if we can get away with just <stddef.h>.
70905
70906         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
70907         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
70908         rather than <sys/types.h>, as we merely need size_t.
70909         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
70910         to get size_t.
70911         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
70912         Include <stdio.h>, to get FILE.
70913         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
70914         memcasecmp.h has included <stddef.h> and all we need is size_t.
70915         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
70916         our interface, instead of including <sys/types.h>
70917
70918 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70919
70920         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
70921         now, as glibc mktime is buggy on non-glibc systems.
70922
70923 2003-06-03  Karl Berry  <karl@gnu.org>
70924
70925         * config/config.sub: update from prep.
70926
70927 2003-06-02  Paul Eggert  <eggert@twinsun.com>
70928
70929         [from coreutils]
70930         Fix some minor time-related bugs with POSIX time arguments.
70931         Some valid time stamps were being rejected (notably -1, and
70932         time stamps before 1900 on 64-bit hosts).  And some invalid
70933         time stamps were being accepted, e.g. September 31.
70934
70935         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
70936         that we can return (time_t) -1 successfully.
70937         * lib/posixtm.c: Likewise.
70938         [HAVE_STDBOOL_H]: Include <stdbool.h>.
70939         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
70940         (t): Remove static var.
70941         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
70942         of static var.  All uses changed.
70943         (year): Do not reject years before 1900; they can occur with
70944         64-bit time_t.
70945         (posix_time_parse): Do not check for out-of-range components;
70946         that is now the caller's responsibility, since our checks were
70947         only approximations.
70948         (posixtime): Use mktime to check for out-of-range components,
70949         since it knows them exactly.
70950         If mktime returns (time_t) -1, check whether an error actually occurred
70951         by invoking localtime on -1.
70952         (main) [TEST_POSIXTIME]: Check for input data errors, and report
70953         posixtime failures better.
70954         Improve the test data (in comments only).
70955
70956 2003-06-02  Karl Berry  <karl@gnu.org>
70957
70958         * config/mkinstalldirs (version): new variable.
70959         (--version): new option.
70960         (usage): improve message.
70961
70962 2003-05-30  Karl Berry  <karl@gnu.org>
70963
70964         * lib/mktime.c: update from libc.
70965
70966 2003-05-30  Bruno Haible  <bruno@clisp.org>
70967
70968         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
70969         * config/config.rpath: Upgrade to gettext-0.12.1.
70970
70971 2003-05-30  Bruno Haible  <bruno@clisp.org>
70972
70973         * m4/gettext.m4: Upgrade to gettext-0.12.1.
70974         * m4/nls.m4: New file, from gettext-0.12.1.
70975         * m4/po.m4: New file, from gettext-0.12.1.
70976         * m4/progtest.m4: Upgrade to gettext-0.12.1.
70977
70978 2003-05-30  Bruno Haible  <bruno@clisp.org>
70979
70980         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
70981         * lib/localcharset.h: Likewise.
70982         * lib/localcharset.c: Likewise.
70983
70984 2003-05-29  Karl Berry  <karl@gnu.org>
70985
70986         * config/config.rpath: update from gettext.
70987
70988 2003-05-28  Paul Eggert  <eggert@twinsun.com>
70989
70990         Assume the headers required for C89 freestanding compilers.
70991         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
70992         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
70993         * m4/human.m4 (gl_HUMAN): Likewise.
70994         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
70995         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
70996         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70997         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
70998         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70999         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
71000
71001 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71002
71003         Assume the headers required for C89 freestanding compilers.
71004         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
71005         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
71006         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
71007         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
71008         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
71009         define, since <limits.h> is guaranteed to do that.
71010         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
71011         * lib/exclude.c: Include <stdbool.h> unconditionally.
71012         * lib/tempname.c: Include <stddef.h> unconditionally.
71013         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
71014         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
71015         <stddef.h> does that.
71016         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
71017         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
71018         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
71019         needed.
71020         * lib/xstrtol.c: Likewise.
71021         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
71022         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
71023
71024         * lib/addext.c (addext): Use assignment rather than cast, to avoid
71025         warnings on some platforms.
71026
71027         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71028         arbitrarily.
71029
71030 2003-05-26  Jim Meyering  <jim@meyering.net>
71031
71032         Merge in a change from coreutils:
71033         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
71034         that is guaranteed to be `no'.  Use `no_such_member' to indicate
71035         that condition, rather than `-1' which is slightly misleading.
71036         Change the name of the cache variable to have the gl_ prefix.
71037         Prompted by a patch from Richard Dawe for DJGPP.
71038
71039 2003-05-24  Karl Berry  <karl@gnu.org>
71040
71041         * config/config.guess: update from prep.
71042
71043 2003-05-22  Karl Berry  <karl@gnu.org>
71044
71045         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
71046
71047 2003-05-20  Karl Berry  <karl@gnu.org>
71048
71049         * config/config.guess: update from prep.
71050
71051 2003-05-18  Karl Berry  <karl@gnu.org>
71052
71053         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
71054         might actually be set by the user.
71055
71056         * config/depcomp, install-sh, mdate-sh: update from automake.
71057
71058 2003-05-17  Bruno Haible  <bruno@clisp.org>
71059
71060         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
71061         invalid expansion for AC_EGREP_CPP.
71062         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
71063         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
71064         Suggested by Akim Demaille <akim@epita.fr> in
71065         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
71066
71067 2003-05-12  Jim Meyering  <jim@meyering.net>
71068
71069         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
71070         the space-padded-by-default conversion specifiers, %e, %k, %l.
71071
71072 2003-05-12  Bruno Haible  <bruno@clisp.org>
71073
71074         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
71075         the string is longer than 4 KB.
71076
71077 2003-05-11  Karl Berry  <karl@gnu.org>
71078
71079         * config/config.{guess,sub}: update from prep.
71080
71081 2003-05-09  Bruno Haible  <bruno@clisp.org>
71082
71083         * modules/error: Add m4/strerror_r.m4 to file list.
71084
71085 2003-05-03  Bruno Haible  <bruno@clisp.org>
71086
71087         Upgrade to Unicode-4.0.
71088         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
71089         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
71090         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
71091         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
71092         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
71093         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
71094         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
71095         Change width of U+E0100..U+E01EF from 1 to 0.
71096
71097 2003-04-25  Jim Meyering  <jim@meyering.net>
71098
71099         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
71100         of type size_t, not int.
71101
71102 2003-04-25  Bruno Haible  <bruno@clisp.org>
71103
71104         * lib/copy-file.c: Include <stddef.h>, for size_t.
71105
71106 2003-04-21  Paul Eggert  <eggert@twinsun.com>
71107
71108         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
71109         code which expansion is under static control.  Patch imported from
71110         Akim Demaille's patch to Bison; see
71111         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
71112
71113 2003-04-14  Bruno Haible  <bruno@clisp.org>
71114
71115         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
71116
71117 2003-04-11  Jim Meyering  <jim@meyering.net>
71118
71119         Merge changes from Coreutils.
71120
71121         2003-03-22  Jim Meyering  <jim@meyering.net>
71122
71123         * lib/strftime.c (widen): Cast alloca return value to proper type.
71124
71125         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71126
71127         From GNU libc.
71128         * lib/strftime.c (my_strftime): Handle very large width
71129         specifications for numeric values correctly.  Improve checks for
71130         overflow.
71131
71132         2003-01-19  Jim Meyering  <jim@meyering.net>
71133
71134         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
71135         definitions.
71136         (nl_get_alt_digit) [! defined my_strftime]: Define.
71137         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
71138         _nl_get_alt_digit and _nl_get_walt_digit.
71139
71140         * lib/strftime.c (my_strftime): Merge in locale-related changes from
71141         libc. These changes have no effect outside of _LIBC.
71142
71143 2003-04-10  Bruno Haible  <bruno@clisp.org>
71144
71145         * modules/findprog: New file.
71146         * MODULES.html.sh (func_all_modules): Add it.
71147
71148 2003-04-10  Bruno Haible  <bruno@clisp.org>
71149
71150         * m4/findprog.m4: New file.
71151         * m4/eaccess.m4: New file.
71152
71153 2003-04-10  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/findprog.h: New file, from GNU gettext.
71156         * lib/findprog.c: New file, from GNU gettext.
71157
71158 2003-04-05  Jim Meyering  <jim@meyering.net>
71159
71160         Merge changes from Coreutils.
71161
71162         * lib/exclude.h (PARAMS): Remove definition and uses.
71163         * lib/exclude.c: Remove uses of `PARAMS'.
71164
71165         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
71166         Add test-cases for DOS filenames. Declare program_name.
71167         (main): Set up program_name.  Patch by Rich Dawe.
71168
71169         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71170         error from mntctl.
71171         Use mntctl's return value to drive the entry-processing loop, since
71172         we can't rely on the value of the vmt_length member in the last
71173         entry.  On some systems doing so could result in exhausting
71174         virtual memory.  Based in part on a patch from Mike Jetzer.
71175
71176 2003-04-04  Bruno Haible  <bruno@clisp.org>
71177
71178         * modules/linebreak: New file.
71179         * MODULES.html.sh (func_all_modules): Add it.
71180
71181 2003-04-04  Bruno Haible  <bruno@clisp.org>
71182
71183         * m4/linebreak.m4: New file.
71184
71185 2003-04-04  Bruno Haible  <bruno@clisp.org>
71186
71187         * lib/linebreak.h: New file, from GNU gettext.
71188         * lib/linebreak.c: New file, from GNU gettext with slight
71189         modifications.
71190         * lib/lbrkprop.h: New file, from GNU gettext.
71191
71192 2003-04-03  Bruno Haible  <bruno@clisp.org>
71193
71194         * modules/utf8-ucs4: New file.
71195         * modules/utf16-ucs4: New file.
71196         * modules/ucs4-utf8: New file.
71197         * modules/ucs4-utf16: New file.
71198         * MODULES.html.sh (func_all_modules): Add them.
71199
71200 2003-04-03  Bruno Haible  <bruno@clisp.org>
71201
71202         * m4/utf-ucs4.m4: New file.
71203         * m4/ucs4-utf.m4: New file.
71204
71205 2003-04-03  Bruno Haible  <bruno@clisp.org>
71206
71207         * lib/utf8-ucs4.h: New file, from GNU gettext.
71208         * lib/utf16-ucs4.h: New file, from GNU gettext.
71209         * lib/ucs4-utf8.h: New file, from GNU gettext.
71210         * lib/ucs4-utf16.h: New file, from GNU gettext.
71211
71212 2003-04-02  Bruno Haible  <bruno@clisp.org>
71213
71214         * modules/binary-io: New file.
71215         * MODULES.html.sh (func_all_modules): Add it.
71216
71217 2003-04-02  Bruno Haible  <bruno@clisp.org>
71218
71219         * lib/binary-io.h: New file, from GNU gettext.
71220
71221 2003-04-01  Bruno Haible  <bruno@clisp.org>
71222
71223         * modules/pathname: New file.
71224         * MODULES.html.sh (func_all_modules): Add it.
71225
71226 2003-04-01  Bruno Haible  <bruno@clisp.org>
71227
71228         * lib/pathname.h: New file, from GNU gettext.
71229         * lib/concatpath.c: New file, from GNU gettext.
71230
71231 2003-03-30  Bruno Haible  <bruno@clisp.org>
71232
71233         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
71234
71235 2003-03-30  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
71238         function chown() doesn't exist.
71239
71240 2003-03-28  Bruno Haible  <bruno@clisp.org>
71241
71242         * modules/copy-file: New file.
71243         * MODULES.html.sh (func_all_modules): Add it.
71244
71245 2003-03-28  Bruno Haible  <bruno@clisp.org>
71246
71247         * m4/copy-file.m4: New file.
71248
71249 2003-03-28  Bruno Haible  <bruno@clisp.org>
71250
71251         * lib/copy-file.h: New file, from GNU gettext.
71252         * lib/copy-file.c: New file, from GNU gettext.
71253
71254 2003-03-18  Jim Meyering  <jim@meyering.net>
71255
71256         * lib/quote.c (quote_n): Fix typo in comment.
71257
71258 2003-03-18  Bruno Haible  <bruno@clisp.org>
71259
71260         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
71261         checking.
71262         * m4/onceonly_2_57.m4: Likewise.
71263
71264 2003-03-17  Bruno Haible  <bruno@clisp.org>
71265
71266         * m4/onceonly.m4: Require autoconf 2.54 or newer.
71267         (m4_quote): Remove macro.
71268         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
71269
71270 2003-03-14  Jim Meyering  <jim@meyering.net>
71271
71272         Merge changes from Coreutils.
71273         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
71274         to be const, in order to avoid warnings.
71275         (obstack_room): Likewise.
71276         (obstack_empty_p): Likewise.
71277
71278 2003-03-14  Bruno Haible  <bruno@clisp.org>
71279
71280         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
71281         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
71282
71283 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71284
71285         Merge changes from Bison.
71286         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
71287         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
71288         when compiling Bison 1.875's `bitset bset = obstack_alloc
71289         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
71290         * lib/hash.c: Include <stdbool.h> unconditionally.
71291
71292 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71293
71294         * m4/onceonly.m4 (m4_quote): New macro.
71295         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
71296         Quote AC_FOREACH variable-expansions properly.
71297
71298 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71299
71300         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
71301
71302 2003-03-09  Paul Eggert  <eggert@twinsun.com>
71303
71304         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
71305         Reported by Bruce Becker; see:
71306         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
71307
71308 2003-03-03  Paul Eggert  <eggert@twinsun.com>
71309             Bruno Haible  <bruno@clisp.org>
71310
71311         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
71312         Reported by John Hughes, see
71313         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
71314
71315 2003-02-20  Bruno Haible  <bruno@clisp.org>
71316
71317         * MODULES.html.sh (func_all_modules): Add poll.
71318
71319 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71320
71321         * modules/poll: New file.
71322
71323 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71324
71325         * lib/poll_.h: New file.
71326         * lib/poll.c: New file.
71327
71328 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71329
71330         * m4/poll.m4: New file.
71331
71332 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71333
71334         * modules/mathl: New file.
71335
71336 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71337
71338         * lib/mathl.h: New file.
71339         * lib/acosl.c: New file.
71340         * lib/asinl.c: New file.
71341         * lib/atanl.c: New file.
71342         * lib/ceill.c: New file.
71343         * lib/cosl.c: New file.
71344         * lib/expl.c: New file.
71345         * lib/floorl.c: New file.
71346         * lib/frexpl.c: New file.
71347         * lib/ldexpl.c: New file.
71348         * lib/logl.c: New file.
71349         * lib/sincosl.c: New file.
71350         * lib/sinl.c: New file.
71351         * lib/sqrtl.c: New file.
71352         * lib/tanl.c: New file.
71353         * lib/trigl.c: New file.
71354         * lib/trigl.h: New file.
71355
71356 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71357
71358         * m4/mathl.m4: New file.
71359
71360 2003-02-18  Bruno Haible  <bruno@clisp.org>
71361
71362         * MODULES.html.sh (func_all_modules): Add mathl.
71363
71364 2003-02-17  Bruno Haible  <bruno@clisp.org>
71365
71366         * modules/mkdtemp: New module.
71367         * MODULES.html.sh (func_all_modules): Add it.
71368
71369 2003-02-17  Bruno Haible  <bruno@clisp.org>
71370
71371         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
71372
71373 2003-02-17  Bruno Haible  <bruno@clisp.org>
71374
71375         * lib/mkdtemp.h: New file, from GNU gettext.
71376         * lib/mkdtemp.c: New file, from GNU gettext.
71377
71378 2003-02-02  Jim Meyering  <jim@meyering.net>
71379
71380         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
71381         e.g. glibc-2.2.93.
71382
71383 2003-01-31  Bruno Haible  <bruno@clisp.org>
71384
71385         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
71386         'rpl_rename'.
71387         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
71388         'rpl_strnlen'.
71389         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
71390         'rpl_strtod'.
71391         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
71392         'rpl_utime'.
71393
71394 2003-01-31  Bruno Haible  <bruno@clisp.org>
71395
71396         * lib/rename.c: #undef rename before defining rpl_rename.
71397         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
71398
71399 2003-01-30  Bruno Haible  <bruno@clisp.org>
71400
71401         * modules/vasnprintf, modules/vasprintf: New modules.
71402         * MODULES.html.sh (func_all_modules): Add them.
71403
71404 2003-01-30  Bruno Haible  <bruno@clisp.org>
71405
71406         * m4/signed.m4: New file, from GNU gettext.
71407         * m4/longdouble.m4: New file, from GNU gettext.
71408         * m4/wchar_t.m4: New file, from GNU gettext.
71409         * m4/wint_t.m4: New file, from GNU gettext.
71410         * m4/vasnprintf.m4: New file.
71411         * m4/vasprintf.m4: New file.
71412
71413 2003-01-30  Bruno Haible  <bruno@clisp.org>
71414
71415         * lib/printf-args.h: New file, from GNU gettext.
71416         * lib/printf-args.c: New file, from GNU gettext.
71417         * lib/printf-parse.h: New file, from GNU gettext.
71418         * lib/printf-parse.c: New file, from GNU gettext.
71419         * lib/vasnprintf.h: New file, from GNU gettext.
71420         * lib/vasnprintf.c: New file, from GNU gettext.
71421         * lib/asnprintf.c: New file, from GNU gettext.
71422         * lib/vasprintf.h: New file, from GNU gettext with modifications.
71423         * lib/vasprintf.c: New file, from GNU gettext.
71424         * lib/asprintf.c: New file, from GNU gettext.
71425
71426 2003-01-29  Bruno Haible  <bruno@clisp.org>
71427
71428         * modules/stpncpy: New module.
71429         * MODULES.html.sh (func_all_modules): Add it.
71430
71431 2003-01-29  Bruno Haible  <bruno@clisp.org>
71432
71433         * m4/stpncpy.m4: New file.
71434
71435 2003-01-29  Bruno Haible  <bruno@clisp.org>
71436
71437         * lib/stpncpy.h: New file, from GNU gettext with modifications.
71438         * lib/stpncpy.c: New file, from GNU gettext with modifications.
71439
71440 2003-01-28  Bruno Haible  <bruno@clisp.org>
71441
71442         * modules/c-ctype: New module.
71443         * MODULES.html.sh (func_all_modules): Add it.
71444
71445 2003-01-28  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
71448         Paul Eggert.
71449         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
71450         Paul Eggert.
71451
71452 2003-01-27  Bruno Haible  <bruno@clisp.org>
71453
71454         * modules/xsetenv: New module.
71455         * MODULES.html.sh (func_all_modules): Add it.
71456
71457 2003-01-27  Bruno Haible  <bruno@clisp.org>
71458
71459         * lib/xsetenv.h: New file, from GNU gettext.
71460         * lib/xsetenv.c: New file, from GNU gettext.
71461
71462 2003-01-23  Jim Meyering  <jim@meyering.net>
71463
71464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
71465         from working on systems without dirfd (at least Irix and OSF1/Tru64).
71466
71467 2003-01-23  Bruno Haible  <bruno@clisp.org>
71468
71469         * modules/minmax: New module.
71470         * MODULES.html.sh (func_all_modules): Add it.
71471
71472 2003-01-23  Bruno Haible  <bruno@clisp.org>
71473
71474         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71475         Eggert.
71476
71477 2003-01-22  Bruno Haible  <bruno@clisp.org>
71478
71479         * modules/exit: New module.
71480         * MODULES.html.sh (func_all_modules): Add it.
71481
71482 2003-01-22  Bruno Haible  <bruno@clisp.org>
71483
71484         * lib/exit.h: New file, from GNU gettext.
71485
71486 2003-01-19  Bruno Haible  <bruno@clisp.org>
71487
71488         * gnulib-tool: Recognize option --extract-maintainer.
71489         (func_get_maintainer): New function.
71490         * modules/*: Add Maintainer entry.
71491
71492 2003-01-16  Jim Meyering  <jim@meyering.net>
71493
71494         * m4/regex.m4: The `regex' struct is both input and output.
71495         Initialize it before each use.  Patch by Tim Waugh.
71496
71497 2003-01-16  Bruno Haible  <bruno@clisp.org>
71498
71499         * MODULES.html.sh: Add a table of contents. Add the module name as
71500         leftmost column. Add hyperlinks.
71501
71502 2003-01-15  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71505
71506 2003-01-15  Bruno Haible  <bruno@clisp.org>
71507
71508         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
71509         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
71510         suffix.
71511
71512 2003-01-15  Bruno Haible  <bruno@clisp.org>
71513
71514         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
71515
71516 2003-01-15  Bruno Haible  <bruno@clisp.org>
71517
71518         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
71519         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
71520
71521 2003-01-14  Jim Meyering  <jim@meyering.net>
71522
71523         * lib/same.c (same_name): Tweak a comment.
71524
71525 2003-01-14  Bruno Haible  <bruno@clisp.org>
71526
71527         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
71528         when a string comparison is sufficient.
71529
71530 2003-01-14  Bruno Haible  <bruno@clisp.org>
71531
71532         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
71533         'unsigned int'.
71534
71535 2003-01-14  Bruno Haible  <bruno@clisp.org>
71536
71537         * lib/hash-pjw.c: Add comment about low quality of this function.
71538
71539 2003-01-13  Bruno Haible  <bruno@clisp.org>
71540
71541         * modules/stpcpy: Distribute lib/stpcpy.h.
71542         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
71543
71544 2003-01-13  Bruno Haible  <bruno@clisp.org>
71545
71546         * modules/*: Add a description.
71547         * modules/strpbrk: Fix Makefile.am snippet.
71548         * modules/strtoimax: Fix dependencies.
71549         * modules/strtoumax: Likewise.
71550
71551 2003-01-13  Bruno Haible  <bruno@clisp.org>
71552
71553         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
71554         * modules/alloca (Makefile.am): All object files depend on alloca.h.
71555         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
71556
71557 2003-01-13  Bruno Haible  <bruno@clisp.org>
71558
71559         * gnulib-tool (func_create_testdir): Store config/* files in the main
71560         directory.
71561         * config.rpath: Move to ...
71562         * config/config.rpath: ... here.
71563         * modules/gettext: Contains config/config.rpath, not config.rpath.
71564         * modules/iconv: Likewise.
71565
71566 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71567
71568         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71569         to avoid collisions with libcurses and libreadline.
71570
71571         * m4/getstr.m4: Remove.
71572         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
71573
71574 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71575
71576         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71577         to avoid collisions with libcurses and libreadline.
71578
71579         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
71580         * lib/getstr.h, getstr.c: Remove.
71581         * lib/getline.c: Include "getline.h", to check interface.
71582         Move body of old getstr.c here: this defines MIN_CHUNK and
71583         declares getdelim2, which is renamed from getstr.
71584         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
71585
71586         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
71587         All uses changed.
71588         * lib/linebuffer.h: Likewise.
71589         (readline): Remove backward-compatibility macro.
71590
71591 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71592
71593         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71594         to avoid collisions with libcurses and libreadline.
71595         * getstr: Remove.
71596         * MODULES.html.sh: Remove getstr.
71597         * modules/getline: Depend on unlocked-io, not getstr.
71598
71599 2003-01-12  Jim Meyering  <jim@meyering.net>
71600
71601         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
71602
71603 2003-01-10  Bruno Haible  <bruno@clisp.org>
71604
71605         * modules/alloca: Change Makefile.am requirements. Simplify Include
71606         requirements. Add lib/alloca_.h to file list.
71607
71608 2003-01-10  Bruno Haible  <bruno@clisp.org>
71609
71610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
71611
71612 2003-01-10  Bruno Haible  <bruno@clisp.org>
71613
71614         * lib/alloca_.h: New file.
71615         * lib/getdate.y: Unconditionally include alloca.h.
71616         * lib/makepath.c: Likewise.
71617         * lib/setenv.c: Likewise.
71618         * lib/userspec.c: Likewise.
71619
71620 2003-01-09  Karl Berry  <karl@gnu.org>
71621
71622         * MODULES.html.sh: include `dirname $0` in PATH, to find
71623         gnulib-tool.
71624
71625 2003-01-09  Bruno Haible  <bruno@clisp.org>
71626
71627         * modules/stdbool: Change configure.ac, Makefile.am requirements.
71628         Simplify Include requirements. Add lib/stdbool.h.in to file list.
71629
71630 2003-01-09  Bruno Haible  <bruno@clisp.org>
71631
71632         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
71633
71634 2003-01-09  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/stdbool.h.in: New file.
71637
71638 2003-01-09  Bruno Haible  <bruno@clisp.org>
71639
71640         * gnulib-tool (func_all_modules): Ignore files ending in ~.
71641         * MODULES.html.sh: Likewise.
71642
71643 2003-01-08  Jim Meyering  <jim@meyering.net>
71644
71645         * lib/full-write.c: Undefine and define-away `const' after inclusion
71646         of errno.h, not before.  Suggestion from Bruno Haible.
71647
71648 2003-01-08  Bruno Haible  <bruno@clisp.org>
71649
71650         * modules/full-read: Depend on full-write.
71651
71652 2003-01-08  Bruno Haible  <bruno@clisp.org>
71653
71654         * lib/safe-read.c: Include specification header first, to ensure its
71655         selfcontainedness.
71656         * lib/full-write.c: Likewise.
71657
71658 2003-01-07  Jim Meyering  <jim@meyering.net>
71659
71660         * lib/full-write.c: Rework so that it may serve to define full_read,
71661         too.
71662         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
71663
71664 2003-01-07  Bruno Haible  <bruno@clisp.org>
71665
71666         * lib/strtoimax.c: Include <stdint.h> as an alternative to
71667         <inttypes.h>.
71668         * lib/xstrtol.h: Likewise.
71669         * lib/xstrtoimax.c: Likewise.
71670         * lib/xstrtoumax.c: Likewise.
71671         * lib/human.h: Likewise.
71672
71673         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
71674         on systems that have <inttypes.h> but not <stdint.h>.
71675
71676 2003-01-07  Bruno Haible  <bruno@clisp.org>
71677
71678         * MODULES.html.sh: Add copyright notice.
71679         (missed_files): Omit CVS directory entries.
71680         (func_module): Make it work with sed-3.02.
71681         * MODULES.txt: Remove file.
71682
71683 2003-01-06  Jim Meyering  <jim@meyering.net>
71684
71685         * lib/version-etc.c: Update year in translatable copyright string.
71686
71687 2003-01-03  Karl Berry  <karl@gnu.org>
71688
71689         * config/config.{guess,sub}: update from prep.
71690
71691 2003-01-02  Karl Berry  <karl@gnu.org>
71692
71693         * doc/COPYING.DOC: belatedly updated to 1.2.
71694
71695 2003-01-01  Karl Berry  <karl@gnu.org>
71696
71697         * gnulib-tool (func_verify_module): report module name $module in
71698         error message, not $1.
71699         * gnulib-tool (create-testdir): don't complain if destdir couldn't
71700         be created, only if it doesn't exist.
71701         * gnulib-tool (last_checkin_date): don't expand the $Date here.
71702
71703 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71704
71705         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
71706
71707 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71708
71709         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
71710         memcmp if strcoll doesn't work.
71711
71712 2002-12-31  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/utime.c (utime_null): No need to call ftruncate if the file was
71715         nonempty.
71716
71717 2002-12-31  Bruno Haible  <bruno@clisp.org>
71718
71719         * lib/memcoll.c (STRCOLL): New macro.
71720         (memcoll): Use it.
71721
71722 2002-12-31  Bruno Haible  <bruno@clisp.org>
71723
71724         * lib/localcharset.h: New file.
71725         * lib/localcharset.c: Include it.
71726         * lib/unicodeio.c: Likewise.
71727
71728 2002-12-31  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
71731         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
71732
71733 2002-12-31  Bruno Haible  <bruno@clisp.org>
71734
71735         * lib/getline.h: Include <stddef.h>, for size_t.
71736
71737         * lib/unicodeio.h: Include <stddef.h>, for size_t.
71738         * lib/unicodeio.c: Don't include <stddef.h>.
71739
71740 2002-12-31  Bruno Haible  <bruno@clisp.org>
71741
71742         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
71743         HAVE_TM_ZONE.
71744
71745 2002-12-24  Karl Berry  <karl@gnu.org>
71746
71747         * config/config.guess: update from prep.
71748
71749 2002-12-24  Bruno Haible  <bruno@clisp.org>
71750
71751         General infrasructure.
71752         * m4/README: Rewritten.
71753         * m4/onceonly.m4: New file.
71754         * m4/onceonly_2_57.m4: New file.
71755
71756         Module atexit.
71757         * m4/atexit.m4: New file.
71758
71759         Module strtod.
71760         * m4/strtod.m4: New file.
71761
71762         Module strtol.
71763         * m4/strtol.m4: New file.
71764
71765         Module strtoul.
71766         * m4/strtoul.m4: New file.
71767
71768         Module memchr.
71769         * m4/memchr.m4: New file.
71770
71771         Module memcmp.
71772         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
71773         (jm_FUNC_MEMCMP): Invoke it.
71774
71775         Module memcpy.
71776         * m4/memcpy.m4: New file.
71777
71778         Module memmove.
71779         * m4/memmove.m4: New file.
71780
71781         Module memset.
71782         * m4/memset.m4: New file.
71783
71784         Module strcspn.
71785         * m4/strcspn.m4: New file.
71786
71787         Module strpbrk.
71788         * m4/strpbrk.m4: New file.
71789
71790         Module strstr.
71791         * m4/strstr.m4: New file.
71792
71793         Module strerror.
71794         * m4/strerror.m4: New file.
71795
71796         Module mktime.
71797         * m4/mktime.m4: Renamed from jm-mktime.m4.
71798         (gl_PREREQ_MKTIME): New macro.
71799         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
71800
71801         Module malloc.
71802         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
71803         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
71804         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
71805
71806         Module realloc.
71807         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
71808         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
71809         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
71810
71811         Module strftime.
71812         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
71813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
71814         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
71815         gl_TM_GMTOFF.
71816         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
71817
71818         Module xalloc.
71819         * m4/xalloc.m4: New file.
71820
71821         Module alloca.
71822         * m4/alloca.m4: New file.
71823
71824         Module putenv.
71825         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
71826         (jm_FUNC_PUTENV): Invoke it.
71827
71828         Module setenv.
71829         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
71830         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
71831         when invoked twice.
71832         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
71833         gt_FUNC_SETENV.
71834
71835         Module memrchr.
71836         * m4/memrchr.m4: New file.
71837
71838         Module stpcpy.
71839         * m4/stpcpy.m4: New file.
71840
71841         Module strcase.
71842         * m4/strcase.m4: New file.
71843
71844         Module strdup.
71845         * m4/strdup.m4: New file.
71846
71847         Module strnlen.
71848         * m4/strnlen.m4: New file.
71849
71850         Module strndup.
71851         * m4/strndup.m4: New file.
71852
71853         Module xstrtod.
71854         * m4/xstrtod.m4: New file.
71855
71856         Module xstrtol.
71857         * m4/xstrtol.m4: New file.
71858
71859         Module getdate.
71860         * m4/getdate.m4: New file.
71861
71862         Module unlocked-io.
71863         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
71864         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
71865         * m4/jm-glibc-io.m4n: Remove file.
71866
71867         Module long-options.
71868         * m4/long-options.m4: New file.
71869
71870         Module md5.
71871         * m4/md5.m4: New file.
71872
71873         Module sha.
71874         * m4/sha.m4: New file.
71875
71876         Module getstr.
71877         * m4/getstr.m4: New file.
71878
71879         Module getline.
71880         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
71881         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
71882         <sys/types.h>, for size_t. Use the function name gnu_getline, not
71883         simply getline. Infoke gl_PREREQ_GETLINE.
71884
71885         Module obstack.
71886         * m4/obstack.m4: New file.
71887
71888         Module hash.
71889         * m4/hash.m4: New file.
71890
71891         Module readtokens.
71892         * m4/readtokens.m4: New file.
71893
71894         Module strverscmp.
71895         * m4/strverscmp.m4: New file.
71896
71897         Module stdbool.
71898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
71899         OSF/1.
71900
71901         Module strtoll.
71902         * m4/strtoll.m4: New file.
71903
71904         Module strtoull.
71905         * m4/strtoull.m4: New file.
71906
71907         Module strtoimax.
71908         * m4/strtoimax.m4: New file.
71909
71910         Module strtoumax.
71911         * m4/strtoumax.m4: New file.
71912
71913         Module xstrtoimax.
71914         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
71915         jm_AC_PREREQ_XSTRTOIMAX.
71916         Moved the strtol prerequisites to strtol.m4.
71917         Moved the strtoll prerequisites to strtoll.m4.
71918         Moved the strtoimax prerequisites to strtoimax.m4.
71919
71920         Module xstrtoumax.
71921         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
71922         jm_AC_PREREQ_XSTRTOUMAX.
71923         Moved the strtoul prerequisites to strtoul.m4.
71924         Moved the strtoull prerequisites to strtoull.m4.
71925         Moved the strtoumax prerequisites to strtoumax.m4.
71926
71927         Module chown.
71928         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
71929         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
71930
71931         Module dup2.
71932         * m4/dup2.m4: New file.
71933
71934         Module ftruncate.
71935         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
71936         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
71937
71938         Module getgroups.
71939         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
71940         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
71941
71942         Module gettimeofday.
71943         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
71944         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
71945         gl_PREREQ_GETTIMEOFDAY.
71946
71947         Module mkdir.
71948         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
71949         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
71950
71951         Module mkstemp.
71952         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
71953         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
71954         jm_AC_TYPE_UINTMAX_T.
71955         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
71956
71957         Module stat.
71958         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
71959         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
71960
71961         Module lstat.
71962         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
71963         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
71964
71965         Module timespec.
71966         * m4/timespec.m4 (gl_TIMESPEC): New macro.
71967         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
71968         * m4/st_mtim.m4: Indentation.
71969
71970         Module nanosleep.
71971         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
71972         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
71973         gl_PREREQ_NANOSLEEP.
71974
71975         Module regex.
71976         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
71977         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
71978         (gl_REGEX): New macro.
71979
71980         Module rename.
71981         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
71982         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
71983
71984         Module rmdir.
71985         * m4/rmdir.m4: New file.
71986
71987         Module utime.
71988         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
71989         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
71990         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
71991
71992         Module dirname.
71993         * m4/dirname.m4: New file.
71994
71995         Module getopt.
71996         * m4/getopt.m4: New file.
71997
71998         Module unistd-safer.
71999         * m4/unistd-safer.m4: New file.
72000
72001         Module fnmatch.
72002         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
72003         declaration.
72004         (gl_PREREQ_FNMATCH_EXTRA): New macro.
72005         (gl_FUNC_FNMATCH_POSIX): New macro.
72006         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
72007         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
72008         simply fnmatch.
72009
72010         Module exclude.
72011         * m4/exclude.m4: New file.
72012
72013         Module human.
72014         * m4/human.m4: New file.
72015
72016         Module acl.
72017         * m4/acl.m4: Nop.
72018
72019         Module backupfile.
72020         * m4/backupfile.m4: New file.
72021         * m4/d-ino.m4: Indentation.
72022
72023         Module fsusage.
72024         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
72025         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
72026         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
72027
72028         Module dirfd.
72029         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
72030         requirements.
72031
72032         Module euidaccess.
72033         * m4/euidaccess.m4: New file.
72034
72035         Module file-type.
72036         * m4/file-type.m4: New file.
72037
72038         Module fileblocks.
72039         * m4/fileblocks.m4: New file.
72040
72041         Module filemode.
72042         * m4/filemode.m4: New file.
72043
72044         Module isdir.
72045         * m4/isdir.m4: New file.
72046
72047         Module lchown.
72048         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
72049         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
72050
72051         Module makepath.
72052         * m4/makepath.m4: New file.
72053
72054         Module modechange.
72055         * m4/modechange.m4: New file.
72056
72057         Module mountlist.
72058         * m4/mountlist.m4: New file.
72059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
72060         Indentation.
72061
72062         Module path-concat.
72063         * m4/path-concat.m4: New file.
72064
72065         Module pathmax.
72066         * m4/pathmax.m4: New file.
72067
72068         Module same.
72069         * m4/same.m4: New file.
72070
72071         Module save-cwd.
72072         * m4/save-cwd.m4: New file.
72073
72074         Module savedir.
72075         * m4/savedir.m4: New file.
72076
72077         Module xgetcwd.
72078         * m4/xgetcwd.m4: New file.
72079         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
72080
72081         Module xreadlink.
72082         * m4/xreadlink.m4: New file.
72083
72084         Module safe-read.
72085         * m4/safe-read.m4: New file.
72086
72087         Module safe-write.
72088         * m4/safe-write.m4: New file.
72089
72090         Module closeout.
72091         * m4/closeout.m4: New file.
72092
72093         Module stdio-safer.
72094         * m4/stdio-safer.m4: New file.
72095
72096         Module getpass.
72097         * m4/getpass.m4: New file.
72098
72099         Module getugroups.
72100         * m4/getugroups.m4: New file.
72101
72102         Module group-member.
72103         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
72104         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
72105
72106         Module idcache.
72107         * m4/idcache.m4: New file.
72108
72109         Module userspec.
72110         * m4/userspec.m4: New file.
72111
72112         Module gettime.
72113         * m4/clock_time.m4: New file.
72114         * m4/gettime.m4: New file.
72115
72116         Module settime.
72117         * m4/settime.m4: New file.
72118
72119         Module posixtm.
72120         * m4/posixtm.m4: New file.
72121
72122         Module gethostname.
72123         * m4/gethostname.m4: New file.
72124
72125         Module canon-host.
72126         * m4/canon-host.m4: New file.
72127
72128         Module gettext.
72129         * m4/codeset.m4: New file, from gettext-0.11.5.
72130         * m4/gettext.m4: New file, from gettext-0.11.5.
72131         * m4/glibc21.m4: New file, from gettext-0.11.5.
72132         * m4/iconv.m4: New file, from gettext-0.11.5.
72133         * m4/intdiv0.m4: New file, from gettext-0.11.5.
72134         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
72135         * m4/inttypes.m4: New file, from gettext-0.11.5.
72136         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
72137         * m4/isc-posix.m4: New file, from gettext-0.11.5.
72138         * m4/lcmessage.m4: New file, from gettext-0.11.5.
72139         * m4/lib-ld.m4: New file, from gettext-0.11.5.
72140         * m4/lib-link.m4: New file, from gettext-0.11.5.
72141         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
72142         * m4/progtest.m4: New file, from gettext-0.11.5.
72143         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
72144         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
72145         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
72146
72147         Module localcharset.
72148         * m4/localcharset.m4: New file.
72149
72150         Module hard-locale.
72151         * m4/hard-locale.m4: New file.
72152
72153         Module mbswidth.
72154         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
72155         onceonly macros.
72156         * m4/mbrtowc.m4: Add comment.
72157
72158         Module memcasecmp.
72159         * m4/memcasecmp.m4: New file.
72160
72161         Module memcoll.
72162         * m4/memcoll.m4: New file.
72163
72164         Module unicodeio.
72165         * m4/unicodeio.m4: New file.
72166
72167         Module rpmatch.
72168         * m4/rpmatch.m4: New file.
72169
72170         Module yesno.
72171         * m4/yesno.m4: New file.
72172
72173         Module exitfail.
72174         * m4/exitfail.m4: New file.
72175
72176         Module c-stack.
72177         * m4/c-stack.m4 (gl_C_STACK): New macro.
72178         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
72179
72180         Module error.
72181         * m4/error.m4 (gl_ERROR): New macro.
72182         (jm_PREREQ_ERROR): Use onceonly macros.
72183
72184         Module fatal.
72185         * m4/fatal.m4: New file.
72186
72187         Module getloadavg.
72188         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
72189         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
72190
72191         Module getpagesize.
72192         * m4/getpagesize.m4: New file.
72193
72194         Module getusershell.
72195         * m4/getusershell.m4: New file.
72196
72197         Module physmem.
72198         * m4/physmem.m4: New file.
72199
72200         Module posixver.
72201         * m4/posixver.m4: New file.
72202
72203         Module quotearg.
72204         * m4/quotearg.m4: New file.
72205
72206         Module quote.
72207         * m4/quote.m4: New file.
72208
72209         Module readutmp.
72210         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
72211
72212         Module sig2str.
72213         * m4/sig2str.m4: New file.
72214
72215         Other.
72216         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
72217         ulonglong.m4.
72218         * m4/intmax_t.m4: New file.
72219         * m4/d-type.m4: Indentation.
72220         * m4/jm-macros.m4: Update.
72221         * m4/prereq.m4 (jm_PREREQ): Update.
72222         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
72223         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
72224         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
72225         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
72226         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
72227         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
72228         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
72229         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
72230         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
72231         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
72232         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
72233         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
72234         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
72235         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
72236         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
72237         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
72238         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
72239         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
72240         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
72241
72242 2002-12-24  Bruno Haible  <bruno@clisp.org>
72243
72244         * MODULES.txt: Update according to m4/ changes.
72245
72246         Module gettext.
72247         * config.rpath: New file, from gettext-0.11.5.
72248
72249         * modules/*: New module descriptions.
72250         * gnulib-tool: New file.
72251         * MODULES.html.sh: New file.
72252
72253 2002-12-21  Karl Berry  <karl@gnu.org>
72254
72255         * doc/fdl.texi: update to version 1.2.
72256
72257 2002-12-19  Karl Berry  <karl@gnu.org>
72258
72259         * config/config.guess: update from prep.
72260
72261 2002-12-18  Bruno Haible  <bruno@clisp.org>
72262
72263         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
72264         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
72265
72266 2002-12-17  Bruno Haible  <bruno@clisp.org>
72267
72268         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
72269         stdlib.h, string.h.
72270
72271 2002-12-17  Bruno Haible  <bruno@clisp.org>
72272
72273         * lib/canon-host.c (strdup): Remove unused declaration.
72274
72275         * lib/fsusage.c: Include full_read.h.
72276         (get_fs_usage): Use full_read instead of safe_read.
72277
72278         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
72279
72280 2002-12-12  Karl Berry  <karl@gnu.org>
72281
72282         * config/config.guess: update from prep.
72283
72284 2002-12-11  Bruno Haible  <bruno@clisp.org>
72285
72286         * m4/setenv.m4: New file, from gettext-0.11.5.
72287
72288 2002-12-11  Bruno Haible  <bruno@clisp.org>
72289
72290         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
72291         not unsetenv().
72292         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
72293         modifications:
72294
72295         2002-12-11  Bruno Haible  <bruno@clisp.org>
72296
72297                 * setenv.c (alloca): Fall back to malloc.
72298                 (freea): New macro.
72299                 (setenv): Use freea() to free memory allocated with alloca().
72300
72301         2002-11-13  Bruno Haible  <bruno@clisp.org>
72302
72303                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
72304                 function declarations.
72305                 * unsetenv.c (unsetenv): Likewise.
72306
72307         2002-03-04  Bruno Haible  <bruno@clisp.org>
72308
72309                 Portability to AIX 4.3.3.
72310                 * unsetenv.c: New file, extracted from setenv.c.
72311                 * setenv.c: Move the unsetenv() function to unsetenv.c.
72312
72313         2001-12-20  Bruno Haible  <bruno@clisp.org>
72314
72315                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
72316                 use malloc instead. For SunOS 4.
72317
72318         2001-12-11  Bruno Haible  <bruno@clisp.org>
72319
72320                 * setenv.c: Declare alloca.
72321                 (compar_fn_t): New typedef.
72322                 (KNOWN_VALUE, STORE_VALUE): Use it.
72323
72324         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
72325         setenv.h.
72326
72327 2002-12-10  Paul Eggert  <eggert@twinsun.com>
72328
72329         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
72330         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
72331         Choose values that are less likely to collide with system fnmatch
72332         options.
72333         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72334         defined (e.g., a pure POSIX system).
72335         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72336         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72337
72338 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72339
72340         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72341         a pain in practice to deal with generated m4 files.  This change
72342         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72343
72344         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72345         and jm-glibc-io.m4, as they are no longer a special case.
72346         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72347         kludge and the auto-generation stuff.  Check only whether the
72348         functions are declared, not whether they exist, since older hosts
72349         that don't declare the functions can't use the optimization anyway.
72350
72351 2002-12-06  Jim Meyering  <jim@meyering.net>
72352
72353         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72354
72355         Merge in changes from libc's misc/error.c, in preparation
72356         for the merge of gnulib's changes back into libc.
72357
72358         * lib/error.c (_): Define only if not already defined.
72359         Move definition to follow all #include directives.
72360         Include unlocked-io.h only if !_LIBC.
72361         [_LIBC]: Include <libio/libioP.h>.
72362         [USE_IN_LIBIO]: Include <libio/iolibio.h>
72363         (fflush): Tweak definition to use INTUSE.
72364         (putc): Define.
72365
72366 2002-12-05  Paul Eggert  <eggert@twinsun.com>
72367
72368         * lib/alloca.c [defined emacs]: Include "lisp.h".
72369         (xalloc_die) [defined emacs]: New macro.
72370         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
72371         [! defined emacs]: Include <xalloc.h>.
72372         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
72373         (pointer): Typedef to POINTER_TYPE *.
72374         (malloc): Remove decl; we now always use xmalloc.
72375         (alloca): Use old-style definition, since Emacs needs this.
72376         Check for arithmetic overflow when computing combined size.
72377
72378 2002-12-04  Paul Eggert  <eggert@twinsun.com>
72379
72380         Do not generate unlocked-io.h automatically, since it's easier to
72381         maintain it by hand.
72382
72383         * lib/unlocked-io.h: New file, from GNU diffutils,
72384         but with proper copyright notice and attribution.
72385         * lib/gen-uio: Remove.
72386         * lib/Makefile.am: Add copyright notice.
72387         (libfetish_a_SOURCES): Add unlocked-io.h.
72388         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
72389         (DISTCLEANFILES, io_functions): Remove macros.
72390         (EXTRA_DIST): Remove gen_uio.
72391         (unlocked-io.h): Remove rule.
72392
72393 2002-12-04  Jim Meyering  <jim@meyering.net>
72394
72395         Reflect the fact that stat.c and lstat.c are no longer generated.
72396         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
72397         (DISTCLEANFILES): Likewise.
72398         (EXTRA_DIST): Likewise.
72399         (all_local): Don't depend on stat.c or lstat.c.
72400         (stat.c, lstat.c): Remove rules.
72401         (EXTRA_DIST): Remove xstat.in.
72402
72403         * lib/xstat.in: Remove file.  Contents moved into stat.c.
72404         * lib/stat.c: New file.  Contents mostly from xstat.in.
72405         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
72406         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
72407
72408         * lib/safe-read.c: Rework so that it may serve to define safe_write,
72409         too.
72410         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
72411
72412 2002-12-03  Jim Meyering  <jim@meyering.net>
72413
72414         * lib/safe-read.c, safe-write.c: Change variable names and comments,
72415         but not semantics, to minimize the differences between these two files.
72416         (safe_read): Change comment to mention SAFE_READ_ERROR.
72417
72418         * lib/safe-read.c (IS_EINTR): Define.
72419         (safe_read): Use IS_EINTR in place of in-function cpp directives.
72420
72421 2002-12-02  Jim Meyering  <jim@meyering.net>
72422
72423         * lib/safe-read.c (EINTR): Define.
72424         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72425         (INT_MAX): Provide fallback.
72426         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
72427
72428         * lib/safe-read.h (SAFE_READ_ERROR): Define.
72429
72430 2002-12-02  Bruno Haible  <bruno@clisp.org>
72431
72432         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
72433         Define, taken from safe-read.c.
72434         (INT_MAX): Provide fallback.
72435         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
72436         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
72437
72438         * lib/safe-read.c (EINTR): Remove definition.
72439         (safe_read): Don't use EINTR if it is absent.
72440
72441 2002-12-01  Jim Meyering  <jim@meyering.net>
72442
72443         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
72444         zero.
72445         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
72446
72447 2002-11-27  Paul Eggert  <eggert@twinsun.com>
72448
72449         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
72450         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
72451         with `if (! (value < limit)) abort ();', for readability.
72452
72453 2002-11-26  Karl Berry  <karl@gnu.org>
72454
72455         * lib/strdup.c: copy from libc again, with jim's ok.
72456         * lib/.cppi-disable: re-add strdup.c
72457
72458 2002-11-25  Karl Berry  <karl@gnu.org>
72459
72460         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
72461         instead of "strtol.c".
72462
72463 2002-11-25  Karl Berry  <karl@gnu.org>
72464
72465         * config/install-sh: update from automake for variable quoting, $0 in
72466         error msgs, etc.
72467
72468         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72469         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72470         entry.
72471
72472 2002-11-25  Jim Meyering  <jim@meyering.net>
72473
72474         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72475
72476 2002-11-24  Karl Berry  <karl@gnu.org>
72477
72478         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72479         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72480
72481 2002-11-24  Jim Meyering  <jim@meyering.net>
72482
72483         Update from coreutils:
72484
72485         * lib/mktime.c: Merge in changes from libc.
72486
72487         Avoid a link-time failure on some Linux systems.
72488         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72489         (otherwise).
72490         (__mon_yday): Declare with the STATIC attribute.
72491         (__mktime_internal): Likewise.
72492         Based on a report from Greg Schafer.
72493
72494 2002-11-23  Jim Meyering  <jim@meyering.net>
72495
72496         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72497         Use `unsigned', not `int', as type of index.
72498
72499         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72500
72501         * lib/fsusage.c: Remove unneeded parentheses around operands of
72502         `defined'.
72503
72504 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72505
72506         * lib/quotearg.h: Allow multiple inclusion by surrounding with
72507         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
72508         so that we can be included first.
72509         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
72510         * lib/quotearg.c: Include quotearg.h immediately after config.h.
72511         No need to include stddef.h or sys/types.h any more.
72512         Surround local include files with "", not "<>".
72513         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
72514         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
72515         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
72516         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
72517         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
72518         (ISPRINT): Remove; no longer needed now that we assume C89.
72519
72520         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
72521         Preserve errno.
72522
72523         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
72524         quotearg_char): Use SIZE_MAX rather than
72525         (size_t) -1 when we are talking about "infinity".
72526
72527         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
72528
72529 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72530
72531         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
72532         hint that one should use `if (! x) abort ();' rather than `assert
72533         (x);', and anyway it's one less thing to worry about configuring.
72534         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
72535         hash_rehash, hash_insert): Use abort rather than assert.
72536
72537 2002-11-22  Bruno Haible  <bruno@clisp.org>
72538
72539         * lib/safe-read.h: Assume C89. Add comments.
72540         (safe_read): Change return type to size_t.
72541         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
72542         byte counts > SSIZE_MAX correctly.
72543         * lib/safe-write.h: New file.
72544         * lib/safe-write.c: New file.
72545         * lib/full-read.h: New file.
72546         * lib/full-read.c: New file.
72547         * lib/full-write.h: Assume C89. Add comments.
72548         * lib/full-write.c: Include safe-write.h.
72549         (full_write): Rewritten to use safe_write.
72550         Suggested by Jim Meyering and Paul Eggert.
72551
72552 2002-11-21  Jim Meyering  <jim@meyering.net>
72553
72554         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
72555
72556         Merge in changes from the coreutils.
72557
72558         2002-09-25  Paul Eggert  <eggert@twinsun.com>
72559         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
72560         <stdint.h>.
72561         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
72562         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
72563         int.  Work more efficiently if X is the same width as uintmax_t.
72564         Do not compare X to -1, to avoid bogus compiler warning.
72565         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
72566         Don't assume that f_frsize and f_bsize are the same type.
72567
72568         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
72569         warning on FreeBSD.
72570
72571         * lib/makepath.c (make_path): Restore umask *before* creating the final
72572         component.
72573         (make_path): Minor reformatting.
72574
72575         * lib/xmalloc.c: Adjust to work with new autoconf macros,
72576         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
72577         HAVE_MALLOC/HAVE_REALLOC.
72578
72579         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
72580         dummy ones.  At least on GNU/Linux systems, `auto' means something
72581         else.
72582         From Michael Stone.
72583
72584 2002-11-21  Bruno Haible  <bruno@clisp.org>
72585
72586         Remove case insensitive option matching.
72587         * lib/argmatch.h (argcasematch): Remove declaration.
72588         (ARGCASEMATCH): Remove macro.
72589         (__xargmatch_internal): Remove case_sensitive argument.
72590         (XARGMATCH): Update.
72591         (XARGCASEMATCH): Remove macro.
72592         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
72593         case_sensitive argument.
72594         (argcasematch): Remove function.
72595         (__xargmatch_internal): Remove case_sensitive argument.
72596         (main): Use XARGMATCH instead of XARGCASEMATCH.
72597
72598         * lib/xmalloc.c: Change compile-time error message. Add comment about
72599         required autoconf version.
72600
72601 2002-11-20  Paul Eggert  <eggert@twinsun.com>
72602
72603         Merge argmatch cleanups from Bison.  Assume C89.
72604
72605         * lib/argmatch.c: Include config.h here, not in argmatch.h.
72606         Include stdlib.h, for EXIT_FAILURE.
72607         Always include <string.h>, since we assume C89.
72608         (EXIT_FAILURE): Remove pre-C89 bug workaround.
72609         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
72610         Include <stddef.h> instead, since it's all we need for size_t.
72611         (PARAMS): Remove.  All uses removed.
72612         (ARRAY_CARDINALITY): Do not bother to #undef.
72613         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
72614         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72615         Remove unnecessary parentheses.
72616         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72617         Insert necessary parentheses.
72618         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
72619         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
72620
72621 2002-11-19  Bruno Haible  <bruno@clisp.org>
72622
72623         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
72624         * lib/mbswidth.h: Include <stddef.h>, for size_t.
72625
72626         * lib/mbswidth.h (PARAMS): Remove macro.
72627         (mbswidth, mbsnwidth): Use ANSI C function declarations.
72628         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
72629
72630         * lib/gcd.h (PARAMS): Remove macro.
72631         (gcd): Use ANSI C function declarations.
72632         * lib/gcd.c (gcd): Likewise.
72633
72634 2002-11-15  Bruno Haible  <bruno@clisp.org>
72635
72636         * lib/strcspn.c: Include <stddef.h>.
72637         (strcspn): Use ANSI C function declaration. Change return type to
72638         size_t. Use NULL.
72639         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
72640         (strpbrk): Use NULL.
72641         * lib/strpbrk.h (PARAMS): Remove macro.
72642         (strpbrk): Use ANSI C function declaration.
72643         * lib/strstr.c: Don't include <sys/types.h>.
72644         * lib/strstr.h (PARAMS): Remove macro.
72645         (strstr): Use ANSI C function declarations.
72646
72647 2002-11-14  Karl Berry  <karl@gnu.org>
72648
72649         * config/mkinstalldirs: `do' on separate line, instead of
72650         `for var; do'.
72651
72652 2002-11-06  Bruno Haible  <bruno@clisp.org>
72653
72654         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
72655         * lib/gcd.c (gcd): Likewise.
72656
72657 2002-11-05  Bruno Haible  <bruno@clisp.org>
72658
72659         * lib/gcd.h: New file, from gettext-0.11.5.
72660         * lib/gcd.c: New file, from gettext-0.11.5.
72661
72662 2002-11-05  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72665         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72666         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72667         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72668
72669         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
72670         <libintl.h>.
72671         * lib/makepath.c: Include gettext.h instead of <locale.h> and
72672         <libintl.h>.
72673
72674         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
72675         * lib/human.c: Include gettext.h instead of <libintl.h>.
72676         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
72677         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
72678         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
72679         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
72680         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
72681         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
72682         (textdomain): Remove definition.
72683         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
72684
72685         * lib/long-options.c: Remove include of <libintl.h> and definition of
72686         _.
72687         * lib/same.c: Remove include of <libintl.h> and definition of _.
72688
72689 2002-11-04  Owen Taylor  <otaylor@redhat.com>
72690
72691         * lib/config.charset: A few additions for Solaris.
72692
72693 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72694
72695         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
72696         * lib/localcharset.c (locale_charset): Declare as extern "C".
72697
72698 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72699
72700         * lib/config.charset: msdos in uk_UA uses CP1125.
72701
72702 2002-11-04  Bruno Haible  <bruno@clisp.org>
72703
72704         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
72705         * lib/strcase.h: New file, from GNU gettext-0.11.5.
72706         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
72707         * lib/strstr.h: New file, from GNU gettext-0.11.5.
72708         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
72709
72710 2002-11-04  Bruno Haible  <bruno@clisp.org>
72711
72712         * lib/localcharset.c (locale_charset): Don't return an empty string.
72713
72714 2002-11-04  Bruno Haible  <bruno@clisp.org>
72715
72716         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
72717         aliases.
72718
72719 2002-11-04  Bruno Haible  <bruno@clisp.org>
72720
72721         * lib/config.charset: Update for newest glibc. Add canonical names
72722         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
72723
72724 2002-11-04  Bruno Haible  <bruno@clisp.org>
72725
72726         * lib/config.charset: Add support for NetBSD.
72727
72728 2002-11-04  Bruno Haible  <bruno@clisp.org>
72729
72730         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
72731
72732 2002-11-01  Bruno Haible  <bruno@clisp.org>
72733
72734         * configure.in: Add AC_CONFIG_AUX_DIR call.
72735         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
72736         test/Makefile.
72737         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
72738
72739 2002-09-28  Karl Berry  <karl@gnu.org>
72740
72741         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
72742         installed automake until the next release, since changes have been
72743         made.
72744
72745 2002-09-25  Karl Berry  <karl@gnu.org>
72746
72747         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
72748         * lib/getopt*: copy from libc/posix.
72749         * lib/gettext.h: copy from gettext.
72750         * lib/.cppi-disable: add strdup.c, gettext.h.
72751
72752 2002-09-25  Karl Berry  <karl@gnu.org>
72753
72754         * config/srclist.txt: enable gettext.h check.
72755         * config/config.{guess,sub}: update from prep.
72756         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
72757                 from automake 1.6.3.
72758         See srclist*.
72759
72760 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
72761
72762         * regex.c (PATFETCH): Remove the translating fetch.
72763         (PATFETCH_RAW): Rename to PATFETCH.
72764         (set_image_of_range): New fun.
72765         (SET_RANGE_TABLE_WORK_AREA): Use it.
72766         (regex_compile): Don't translate the pattern chars so eagerly.
72767         Only do it when inserting an `exactn' bytecode or when handling
72768         a char-range.
72769         (mutually_exclusive_p): Avoid empty statement.
72770
72771 2002-07-06  Jim Meyering  <meyering@lucent.com>
72772
72773         * m4/README: Don't mention Makefile.am.in.
72774         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
72775
72776 2002-07-01  Jim Meyering  <meyering@lucent.com>
72777
72778         * lib/c-stack.c: Include sys/time.h.
72779         From Volker Borchert.
72780
72781 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72782
72783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
72784
72785 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72786
72787         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
72788         New macro.  Use it uniformly instead of
72789         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
72790         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
72791         reported by Vin Shelton.
72792
72793 2002-06-22  Paul Eggert  <eggert@twinsun.com>
72794
72795         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
72796         Do not assume SA_SIGINFO behavior.
72797         Bug reported by Jim Meyering on NetBSD 1.5.2.
72798
72799 2002-06-22  Jim Meyering  <meyering@lucent.com>
72800
72801         * m4/c-stack.m4: New file, from diffutils-2.8.2.
72802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
72803
72804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
72805         now that configure.ac uses AC_GNU_SOURCE.
72806         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
72807         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
72808
72809         Update to latest tools.  Suggestions from Paul Eggert.
72810         * m4/stdbool.m4: New file, from diffutils-2.8.2.
72811         * m4/gnu-source.m4: Update from diffutils-2.8.2.
72812         * m4/fnmatch.m4: Likewise.
72813         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
72814         to AC_HEADER_STDBOOL
72815
72816 2002-06-22  Jim Meyering  <meyering@lucent.com>
72817
72818         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
72819         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
72820
72821 2002-06-22  Jim Meyering  <meyering@lucent.com>
72822
72823         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
72824
72825         * lib/exitfail.c, exitfail.h: Likewise.
72826         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
72827
72828         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
72829         of fnmatch.h.
72830         (EXTRA_DIST): Add fnmatch_loop.c.
72831         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
72832
72833         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
72834         * lib/fnmatch.c: Update from diffutils-2.8.2.
72835         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
72836         * lib/fnmatch.h: Remove file.
72837
72838 2002-06-21  Jim Meyering  <meyering@lucent.com>
72839
72840         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
72841         * m4/mbrtowc.m4: Likewise.
72842
72843         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
72844         * m4/mbswidth.m4: Reflect name change:
72845         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
72846         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72847
72848         * m4/lib-link.m4: Update from gettext-0.11.2.
72849         * m4/gettext.m4: Likewise.
72850
72851         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
72852         From Alfred M. Szmidt.
72853
72854 2002-06-18  Paul Eggert  <eggert@twinsun.com>
72855
72856         * lib/file-type.h: Report an error if neither S_ISREG nor
72857         S_IFREG is defined, instead of using a test specific to glibc
72858         2.2.  This should be safe, since POSIX requires S_ISREG and
72859         Unix Version 7 had S_IFREG.  We don't need to check for
72860         <sys/types.h> since we don't use any symbols that it defines.
72861
72862 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
72863
72864         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
72865         $@-t, so that each temporary file name is unique and valid in the first
72866         8 characters, for operation under DOS.
72867
72868 2002-06-15  Paul Eggert  <eggert@twinsun.com>
72869
72870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
72871
72872 2002-06-15  Jim Meyering  <meyering@lucent.com>
72873
72874         Work even with DJGPP 2.03, which lacks support for symlinks.
72875         From Richard Dawe.
72876         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
72877         is defined.
72878         * lib/lchown.c (S_ISLNK): Likewise.
72879
72880 2002-06-15  Jim Meyering  <meyering@lucent.com>
72881
72882         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
72883         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
72884         have been included before this file.
72885
72886 2002-06-14  Jim Meyering  <meyering@lucent.com>
72887
72888         * lib/file-type.h: Use the version from diffutils-2.8.2.
72889         * lib/file-type.c: Likewise.
72890
72891 2002-06-07  Jim Meyering  <meyering@lucent.com>
72892
72893         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
72894         They're needed at least for NetBSD 1.5.2.
72895         ($statxfs_includes): Include those same headers.
72896         ($statxfs_includes): Include sys/vfs.h if available.
72897         ($statxfs_includes): Likewise for sys/statvfs.h.
72898         Check for the following members in both structs statfs and statvfs:
72899         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
72900
72901 2002-06-01  Jim Meyering  <meyering@lucent.com>
72902
72903         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
72904         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
72905
72906 2002-05-28  Jim Meyering  <meyering@lucent.com>
72907
72908         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
72909         Reported by Volker Borchert.
72910
72911 2002-05-27  Jim Meyering  <meyering@lucent.com>
72912
72913         Fix a problem seen only on nonconforming systems whereby ls.c's
72914         use of localtime, and then of gettimeofday would cause trouble:
72915         the localtime call used to initialize rpl_gettimeofday's save
72916         mechanism would clobber ls's current local time information so
72917         that in any long listing the first file would always be listed
72918         with date 1970-01-01.  Analysis by Volker Borchert.
72919
72920         * lib/gettimeofday.c (localtime): Undefine.
72921         (rpl_localtime): New function.
72922
72923 2002-05-27  Jim Meyering  <meyering@lucent.com>
72924
72925         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
72926         localtime.
72927
72928         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
72929         use the replacement function; it wouldn't resolve at link time.
72930         Reported by Volker Borchert.
72931
72932 2002-05-22  Jim Meyering  <meyering@lucent.com>
72933
72934         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
72935         file-type.h.
72936         * lib/file-type.h: New file.
72937         * lib/file-type.c (file_type): New file/function.  Extracted from
72938         diffutils.
72939
72940 2002-04-30  Jim Meyering  <meyering@lucent.com>
72941
72942         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
72943
72944 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72945
72946         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
72947
72948 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72949
72950         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
72951         Do not check for alloca.h (no longer used) or stdbool.h (was never
72952         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
72953
72954 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72955
72956         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
72957
72958 2002-04-29  Jim Meyering  <meyering@lucent.com>
72959
72960         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
72961         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
72962         Use AC_FUNC_STRNLEN here instead.
72963
72964         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
72965         With autoconf-2.53a, it's part of AC_PROG_CC.
72966
72967 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72968
72969         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
72970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
72971
72972 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72973
72974         * lib/sig2str.h, lib/sig2str.c: New files.
72975         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
72976
72977 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72978
72979         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
72980         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
72981         of 127, since 64 is the largest conceivable number for ancient
72982         nonstandard hosts.
72983         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
72984
72985 2002-04-28  Jim Meyering  <meyering@lucent.com>
72986
72987         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
72988
72989 2002-04-24  Jim Meyering  <meyering@lucent.com>
72990
72991         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
72992         (jm_PREREQ): Use it.
72993
72994         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
72995         mach/mach.h fcntl.h.
72996         Check for this function: setlocale.
72997
72998 2002-04-24  Jim Meyering  <meyering@lucent.com>
72999
73000         * lib/gettext.h: New file, from Gettext.
73001         * lib/Makefile.am (INCLUDES): Remove -I../intl.
73002         (libfetish_a_SOURCES): Add gettext.h.
73003
73004 2002-04-16  Jim Meyering  <meyering@lucent.com>
73005
73006         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
73007         ut_pid, ut_id, ut_exit.
73008
73009 2002-04-16  Jim Meyering  <meyering@lucent.com>
73010
73011         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
73012         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
73013         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
73014
73015 2002-04-12  Jim Meyering  <meyering@lucent.com>
73016
73017         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
73018         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
73019         existence of the getmntinfo function.  Needed for Darwin 5.3.
73020
73021         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
73022         This is necessary at least on Darwin 5.3.
73023
73024         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
73025         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
73026         strnlen.o in the library, and that makes some versions of ranlib
73027         object.
73028
73029 2002-04-12  Jim Meyering  <meyering@lucent.com>
73030
73031         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
73032
73033 2002-04-09  Jim Meyering  <meyering@lucent.com>
73034
73035         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
73036         to be more precise.  Rather than saying we're checking whether the
73037         function `works', say what we're testing.
73038         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
73039         Reported by Bruno Haible.
73040
73041 2002-03-10  Jim Meyering  <meyering@lucent.com>
73042
73043         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
73044         Suggestion from Santiago Vila.
73045
73046 2002-03-08  Jim Meyering  <meyering@lucent.com>
73047
73048         * lib/rename.c: Mention that this wrapper is needed also on
73049         mips-dec-ultrix4.4 systems.
73050
73051 2002-03-02  Jim Meyering  <meyering@lucent.com>
73052
73053         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
73054         not HAVE_CLOCK_SETTIME.
73055
73056 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73057
73058         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
73059         Check for clock_settime.
73060
73061 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73062
73063         * lib/nanosleep.h: Rename to....
73064         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
73065
73066         * lib/gettime.c: New file.
73067         * lib/settime.c: New file.
73068         * lib/stime.c: Remove.
73069
73070         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
73071         timespec.h.  Remove nanosleep.h.
73072
73073 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73074
73075         * m4/acl.m4: New file.
73076         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
73077         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
73078
73079 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73080
73081         * lib/acl.c, lib/acl.h: New files.
73082         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
73083
73084 2002-02-24  Jim Meyering  <meyering@lucent.com>
73085
73086         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
73087         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
73088         cause trouble.  Reported by Nelson Beebe.
73089
73090 2002-02-23  Paul Eggert  <eggert@twinsun.com>
73091
73092         * lib/path-concat.c (xpath_concat): Reorder code to pacify
73093         compilers that don't know that xalloc_die never returns.
73094
73095 2002-02-20  Jim Meyering  <meyering@lucent.com>
73096
73097         * lib/getdate.c: Regenerate using bison-1.33.
73098
73099 2002-02-17  Jim Meyering  <meyering@lucent.com>
73100
73101         * config/config.guess (main): Don't use `head -1'; it's no longer
73102         portable. Use `sed 1q' instead.
73103
73104 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
73105
73106         * m4/codeset.m4: Upgrade to gettext-0.11.
73107         * m4/gettext.m4: Upgrade to gettext-0.11.
73108         * m4/glibc21.m4: Upgrade to gettext-0.11.
73109         * m4/iconv.m4: Upgrade to gettext-0.11.
73110         * m4/isc-posix.m4: Upgrade to gettext-0.11.
73111         * m4/lcmessage.m4: Upgrade to gettext-0.11.
73112         * m4/lib-ld.m4: New file, from gettext-0.11.
73113         * m4/lib-link.m4: New file, from gettext-0.11.
73114         * m4/lib-prefix.m4: New file, from gettext-0.11.
73115         * m4/progtest.m4: Upgrade to gettext-0.11.
73116
73117 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73118
73119         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
73120         (jm_PREREQ): Use it.
73121
73122 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73123
73124         * lib/posixver.c, lib/posixver.h: New files.
73125         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73126
73127 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73128             Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73131         (fwrite_success_callback): New declaration.
73132         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
73133         print_unicode_char. Call failure callback instead of error.
73134         (fwrite_success_callback): New function.
73135         (exit_failure_callback): New function.
73136         (fallback_failure_callback): New function.
73137         (print_unicode_char): Call unicode_to_mb.
73138
73139 2002-01-26  Jim Meyering  <meyering@lucent.com>
73140
73141         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
73142         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
73143
73144 2002-01-26  Jim Meyering  <meyering@lucent.com>
73145
73146         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
73147
73148 2002-01-22  Paul Eggert  <eggert@twinsun.com>
73149
73150         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
73151
73152 2002-01-22  Jim Meyering  <meyering@lucent.com>
73153
73154         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
73155         Otherwise, some versions of automake would omit the rule that makes
73156         Makefile from Makefile.in.
73157
73158 2002-01-21  Paul Eggert  <eggert@twinsun.com>
73159
73160         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
73161         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73162         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
73163         (memcoll): Set errno to zero if there is no error.
73164
73165         * lib/quotearg.c (quotearg_buffer_restyled):
73166         Fix bug with quoting buffers containing NUL when backslashing escapes.
73167         This bug was exposed by the other changes in this patch.
73168         (quotearg_n_options): New arg ARGSIZE.
73169         All callers changed.
73170         (quoting_options_from_style): New function.
73171         (quotearg_n_style): Use it.
73172         (quotearg_n_style_mem): New function.
73173
73174         * lib/quotearg.h (quotearg_n_style_mem): New function.
73175
73176 2002-01-19  Jim Meyering  <meyering@lucent.com>
73177
73178         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
73179         Remove useless quotes: DF_PROG="df".
73180         * m4/strnlen.m4: New file.
73181
73182 2002-01-16  Paul Eggert  <eggert@twinsun.com>
73183
73184         * lib/backupfile.c (ISDIGIT): Comment fix.
73185         * lib/getdate.y (ISDIGIT): Likewise.
73186         * lib/posixtm.c (ISDIGIT, year): Likewise.
73187         * lib/strverscmp.c (ISDIGIT): Likewise.
73188         * lib/userspec.c (ISDIGIT): Likewise.
73189
73190 2002-01-16  Jim Meyering  <meyering@lucent.com>
73191
73192         * lib/getdate.y: Add three semicolons, each just before a closing
73193         brace. Bison (as of version 1.31) no longer papers over that mistake.
73194
73195 2002-01-05  Jim Meyering  <meyering@lucent.com>
73196
73197         * lib/version-etc.c (version_etc_copyright): Update copyright year.
73198
73199 2001-12-19  Paul Eggert  <eggert@twinsun.com>
73200
73201         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
73202         not silently exit merely because the output buffer happens to
73203         have nothing pending.
73204
73205 2001-12-18  Paul Eggert  <eggert@twinsun.com>
73206
73207         See the big note in ../ChangeLog.
73208         * lib/human.c (suffixes): Prefer K to k for 1024.
73209         (generate_suffix_backwards): New function.
73210         (human_readable_inexact): Use it.
73211         * lib/xstrtol.c (__xstrtol): If there is no number but there
73212         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
73213         Accept 'K' as well as 'k'.
73214
73215 2001-12-15  Jim Meyering  <meyering@lucent.com>
73216
73217         * lib/regex.h (__restrict_arr): Update from libc.
73218
73219         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
73220         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
73221         (STREQ): Define.
73222
73223 2001-12-14  Jim Meyering  <meyering@lucent.com>
73224
73225         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
73226         Suggestion from Bruno Haible.
73227
73228 2001-12-10  Jim Meyering  <meyering@lucent.com>
73229
73230         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
73231         xrealloc, Instead, include "xalloc.h".
73232         (initbuffer): Don't cast xmalloc return value to char*.
73233         (readline): Reword comment.
73234         Don't cast xrealloc return value to char*
73235         Return NULL, not 0.
73236
73237 2001-12-09  Jim Meyering  <meyering@lucent.com>
73238
73239         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
73240         about `signed and unsigned type in conditional expression'.
73241         * lib/posixtm.c (posix_time_parse): Likewise.
73242
73243         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
73244
73245         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
73246         to avoid a pedantic warning.
73247
73248         * lib/getstr.c: Don't include assert.h.
73249         (getstr): Remove warning-evoking assertions.
73250         Return -1 if offset parameter is out of bounds.
73251         Change the type of a local from int to size_t.
73252
73253         * lib/strftime.c (my_strftime_localtime_r): Include this function
73254         definition in the `#if ! HAVE_TM_GMTOFF' block.
73255
73256         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
73257         Include xalloc.h instead.
73258
73259 2001-12-02  Jim Meyering  <meyering@lucent.com>
73260
73261         * lib/tempname.c: Don't declare getenv, thus reverting the change of
73262         2001-11-18.  It's no longer necessary, now that stdlib.h is always
73263         included.
73264
73265         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
73266         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
73267
73268 2001-11-30  Akim Demaille  <akim@epita.fr>
73269
73270         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
73271         before being defined.
73272
73273 2001-11-27  Paul Eggert  <eggert@twinsun.com>
73274
73275         * lib/quotearg.h (quotearg_n, quotearg_n_style):
73276         First arg is int, not unsigned.
73277         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
73278         (SIZE_MAX, UINT_MAX): New macros.
73279         (quotearg_n_options): Abort if N is negative.
73280         Avoid overflow check on hosts where size_t is 64 bits and int
73281         is 32 bits, as overflow is impossible there.
73282         Fix off-by-one typo that caused unnecessary reallocation.
73283
73284 2001-11-27  Jim Meyering  <meyering@lucent.com>
73285
73286         * lib/tempname.c: Merge with version from libc.
73287         * lib/regex.c: Likewise.
73288
73289         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
73290         systems for which STDC_HEADERS is 0, it was not included, resulting in
73291         a warning about an integer-to-pointer conversion problem with getenv.
73292         Reported by Volker Borchert.
73293
73294 2001-11-26  Jim Meyering  <meyering@lucent.com>
73295
73296         * lib/gtod.h: Remove file.
73297         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
73298         * lib/gettimeofday.c: Don't include gtod.h.
73299         (GTOD_init): Remove function.
73300         (rpl_gettimeofday): Do its job here instead, rather than aborting.
73301         Suggestion from Volker Borchert.
73302
73303 2001-11-23  Jim Meyering  <meyering@lucent.com>
73304
73305         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
73306         it.
73307         * lib/hash.c (struct hash_table): Define it here instead.
73308
73309 2001-11-22  Jim Meyering  <meyering@lucent.com>
73310
73311         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
73312
73313 2001-11-20  Jim Meyering  <meyering@lucent.com>
73314
73315         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
73316         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
73317
73318 2001-11-19  Jim Meyering  <meyering@lucent.com>
73319
73320         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
73321         directory.  Use "conftestXXXXXX" as the template.
73322         Suggestion from Paul Eggert.
73323
73324         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
73325         immediately, so the test doesn't mistakenly hit the max-open-files
73326         limit.
73327
73328 2001-11-18  Paul Eggert  <eggert@twinsun.com>
73329
73330         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
73331         (TEMPORARIES): New macro.
73332         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73333         removes an artificial limitation (e.g. HP-UX 10.20, where
73334         TMP_MAX is 17576).
73335
73336 2001-11-18  Jim Meyering  <meyering@lucent.com>
73337
73338         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73339
73340 2001-11-18  Jim Meyering  <meyering@lucent.com>
73341
73342         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73343         on SunOS 4.
73344
73345         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73346         files will be created before anything else.
73347
73348 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73349
73350         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73351         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73352
73353 2001-11-17  Jim Meyering  <meyering@lucent.com>
73354
73355         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73356         Prompted by a report from Bob Proulx.
73357
73358         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
73359         Instead, require UTILS_FUNC_MKSTEMP.
73360
73361 2001-11-17  Jim Meyering  <meyering@lucent.com>
73362
73363         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
73364         Now, that's done as part of AC_FUNC_STRTOD.
73365
73366 2001-11-17  Jim Meyering  <meyering@lucent.com>
73367
73368         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
73369         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
73370         rather than group writable.  Patch by Juan F. Codagnone.
73371
73372         * lib/readtokens.c: Remove explicit declarations of xmalloc and
73373         xrealloc, Instead, include "xalloc.h".
73374
73375         * lib/mountlist.c: Include unlocked-io.h after all system headers.
73376         Remove explicit declarations of xmalloc, xrealloc,
73377         and xstrdup.  Instead, include "xalloc.h".
73378
73379         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
73380         unlocked-io.h.
73381         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
73382         Likewise.
73383         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
73384
73385         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
73386         Reported by Padraig Brady.
73387
73388         * lib/mkstemp.c: #undef mkstemp.
73389         Include config.h.
73390         (rpl_mkstemp): Rename from mkstemp.
73391         Protoize.
73392
73393 2001-11-16  Jim Meyering  <meyering@lucent.com>
73394
73395         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
73396         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
73397         determine the amount of total physical memory, use pstat_getstatic.
73398         HPUX-11 doesn't define _SC_PHYS_PAGES.
73399         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
73400         If sysconf couldn't be used to determine the amount of available
73401         physical memory, use both pstat_getstatic and pstat_getdynamic.
73402         Based on a patch from Bob Proulx.
73403
73404 2001-11-10  Jim Meyering  <meyering@lucent.com>
73405
73406         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
73407         (jm_PREREQ): Use it.
73408
73409 2001-11-09  Jim Meyering  <meyering@lucent.com>
73410
73411         * m4/jm-macros.m4: Require autoconf-2.52f.
73412         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
73413         Use these AC_-prefixed names, not the AM_-prefixed ones.
73414
73415         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
73416
73417 2001-11-05  Jim Meyering  <meyering@lucent.com>
73418
73419         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
73420
73421 2001-11-04  Jim Meyering  <meyering@lucent.com>
73422
73423         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
73424         $DEFS.
73425
73426 2001-11-03  Jim Meyering  <meyering@lucent.com>
73427
73428         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
73429         of AC_DEFUN.
73430
73431         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
73432         know the name of the variable in the macro definition.
73433
73434 2001-11-03  Jim Meyering  <meyering@lucent.com>
73435
73436         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
73437         in argmatch_to_argument call.
73438
73439         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
73440         argument.
73441
73442         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
73443         e.g., a fault due to an attempt to free a NULL pointer.
73444
73445 2001-11-01  Jim Meyering  <meyering@lucent.com>
73446
73447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
73448         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
73449
73450 2001-11-01  Jim Meyering  <meyering@lucent.com>
73451
73452         * lib/dirfd.c, lib/dirfd.h: New files.
73453         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
73454
73455         * lib/hash.c (hash_print) [TESTING]: Clean up.
73456
73457 2001-10-22  Paul Eggert  <eggert@twinsun.com>
73458
73459         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
73460         to avoid a warning if -Wall.
73461
73462 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
73463
73464         * README: New file
73465         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
73466         (per RMS's instructions, this is now the canonical source)
73467         * lgpl/, gpl/: New directories.
73468
73469 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73470
73471         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73472
73473 2001-10-21  Jim Meyering  <meyering@lucent.com>
73474
73475         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73476         this code would end up calling gettext even in packages built
73477         with --disable-nls.
73478         * lib/getopt.c (_): Likewise.
73479         * lib/regex.c (_): Likewise.
73480
73481 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73482
73483         * m4/error.m4 (jm_PREREQ_ERROR):
73484         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73485         AC_FUNC_STRERROR_R does that.
73486         Check for strerror declaration.
73487
73488         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73489         are supposed to have them these days.
73490         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73491         Merge changes from latest Autoconf CVS.
73492         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73493         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73494         POSIX decided to standardize on the int flavor of strerror_r.
73495
73496 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73497
73498         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73499         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73500         Use strerror_r that is only a macro, even if it is not a function.
73501         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73502         (private_strerror): Use prototypes, not old-style function definition.
73503         (print_errno_message): New function.
73504         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73505         char*-flavored one.
73506         (error_tail, error, error_at_line): Use it.
73507
73508 2001-10-11  Jim Meyering  <meyering@lucent.com>
73509
73510         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
73511         and quote_n (1, ... to avoid clobbering a buffer.
73512
73513 2001-10-05  Jim Meyering  <meyering@lucent.com>
73514
73515         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
73516         hash-pjw.h.
73517         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
73518         * lib/hash-pjw.h: New file.
73519
73520 2001-09-30  Jim Meyering  <meyering@lucent.com>
73521
73522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
73523         `struct fsstat' has the `f_fstypename' member.
73524         Use that to define FS_TYPE, which is now used to make
73525         the getfsstat link test tighter.
73526
73527 2001-09-30  Jim Meyering  <meyering@lucent.com>
73528
73529         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
73530         Include <sys/ucred.h>, for Apple Darwin.
73531         Include sys/mount.h and sys/fs_types.h only if available.
73532         (FS_TYPE): Define.
73533         (read_filesystem_list): Use FS_TYPE.
73534
73535 2001-09-29  Paul Eggert  <eggert@twinsun.com>
73536
73537         * lib/exclude.c (excluded_filename): 0 -> false, since it's
73538         a boolean context.
73539
73540 2001-09-29  Jim Meyering  <meyering@lucent.com>
73541
73542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73543         [one-argument getmntent function]): Include stdio.h before mntent.h.
73544         SunOS 4.1.x needs it for the declaration of `FILE'.
73545         Patch by Volker Borchert.
73546
73547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73548         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
73549         sys/fs_types.h, and make the link-test for getfsstat guard #include
73550         directives with appropriate #if HAVE_*_H tests so that we can
73551         detect getfsstat on Apple Darwin1.3.7 systems.
73552         Reported by Nelson Beebe.
73553         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
73554
73555 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73556
73557         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73558         #defines strtoimax.  Also treat the other strto* functions
73559         like strtoimax.
73560
73561         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73562         Check for strtoul and strtoumax,
73563         as those declarations are made even in the signed case.
73564         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
73565         Likewise, for strtol and strtoimax.
73566
73567 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73568
73569         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73570         #defines strtoimax.  Also treat the other strto* functions
73571         like strtoimax.
73572
73573         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
73574         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
73575         (strtoimax, strtoumax): Do not declare if already defined as a macro.
73576
73577 2001-09-26  Jim Meyering  <meyering@lucent.com>
73578
73579         Most macros in unlocked-io.h had the wrong number of arguments.
73580         * lib/gen-uio: New script.
73581         (USE_UNLOCKED_IO): Define to 1 if not already defined.
73582         * lib/unlocked-io.hin: Remove file.
73583         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
73584         rather than trying to embed it here.
73585         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
73586         Reported by Padraig Brady.
73587
73588 2001-09-25  Volker Borchert  <bt@teknon.de>
73589
73590         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
73591         `result'.
73592
73593 2001-09-24  Jim Meyering  <meyering@lucent.com>
73594
73595         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
73596
73597 2001-09-23  Jim Meyering  <meyering@lucent.com>
73598
73599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
73600         instead of the mere test for existence of mntent.h.  The latter
73601         would get a false-positive on AIX 3.4 systems.
73602         In the outer getmntent if-block, don't die if neither of the getmntent
73603         tests succeeds.  Instead, just fall through and continue with the
73604         remaining tests.
73605
73606 2001-09-23  Jim Meyering  <meyering@lucent.com>
73607
73608         * lib/mountlist.c: Remove useless parentheses in #if directives.
73609         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
73610         the deprecated MOUNTED symbol is no longer defined in mntent.h.
73611
73612 2001-09-22  Jim Meyering  <meyering@lucent.com>
73613
73614         * m4/gettext.m4: New file.  From gettext.
73615         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
73616         * m4/progtest.m4: Likewise
73617         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
73618         * m4/glibc21.m4: Likewise.
73619
73620         * m4/libintl.m4: Remove.  No longer used.
73621
73622 2001-09-22  Jim Meyering  <meyering@lucent.com>
73623
73624         * lib/localcharset.c: Update from latest gettext.
73625         * lib/config.charset: Likewise.
73626
73627 2001-09-20  Jim Meyering  <meyering@lucent.com>
73628
73629         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
73630         strtoimax.
73631         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
73632         strtoumax.
73633
73634 2001-09-20  Jim Meyering  <meyering@lucent.com>
73635
73636         * lib/xstrtol.c (strtoimax): Guard declaration with
73637         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
73638         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
73639         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
73640         (strtoumax): Likewise, for completeness (it wasn't necessary).
73641
73642 2001-09-17  Paul Eggert  <eggert@twinsun.com>
73643
73644         * lib/strtoimax.c (HAVE_LONG_LONG):
73645         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
73646         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
73647         to work around bug in IBM C compiler.
73648
73649 2001-09-17  Jim Meyering  <meyering@lucent.com>
73650
73651         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
73652         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
73653         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
73654         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
73655         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
73656         whenever the right hand side need not be expanded by the shell.
73657
73658 2001-09-16  Paul Eggert  <eggert@twinsun.com>
73659
73660         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
73661         library.  It's not correct, as some older glibcs are buggy.
73662         fnmatch wasn't fixed until glibc 2.2.
73663
73664         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
73665         special shell magic here.
73666
73667 2001-09-16  Jim Meyering  <meyering@lucent.com>
73668
73669         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
73670         * m4/jm-macros.m4: Require it.
73671
73672 2001-09-16  Jim Meyering  <meyering@lucent.com>
73673
73674         * lib/mkdir.c: New file.
73675
73676 2001-09-15  Jim Meyering  <meyering@lucent.com>
73677
73678         * m4/jm-macros.m4: Check for help2man.
73679
73680 2001-09-11  Jim Meyering  <meyering@lucent.com>
73681
73682         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
73683         The body, by Paul Eggert, was moved here from configure.in.
73684         * m4/jm-macros.m4: Require UTILS_HOST_OS.
73685
73686 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73687
73688         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
73689         (jm_PREREQ): Use it.
73690
73691 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73692
73693         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
73694         Use ssize_t, not int, to store result of readlink.
73695         Check for ssize_t overflow as well as size_t overflow,
73696         as POSIX says the result of readlink is implementation-defined
73697         when ssize_t overflows.
73698         Remove unnecessary cast to char*.
73699         Use free+malloc instead of realloc, as the storage doesn't need
73700         to be preserved and it's clearer and can be more efficient that way.
73701         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
73702         * lib/xreadlink.h (xreadlink): Update prototype.
73703
73704 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73705
73706         * lib/xgetcwd.c: Revert some of the previous change; intead,
73707         fix the HAVE_GETCWD_NULL code to behave more like the
73708         !HAVE_GETCWD_NULL code used to.
73709
73710         Include "xalloc.h".
73711         (xgetcwd): Do not return NULL when memory is exhausted; instead,
73712         invoke xalloc_die.
73713
73714 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73715
73716         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
73717         sys/param.h, as pathmax.h includes them.
73718
73719 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73720
73721         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
73722         (jm_PREREQ_XGETCWD): New macro.
73723
73724         * m4/getcwd.m4: New file.
73725
73726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73727
73728         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
73729         like the HAVE_GETCWD_NULL code.
73730         Include pathmax.h if not HAVE_GETCWD.
73731         Do not include xalloc.h.
73732         (INITIAL_BUFFER_SIZE): New symbol.
73733         Do not use xmalloc / xrealloc, since the caller is responsible for
73734         handling errors.  Preserve errno around `free' during failure.
73735         Do not overrun buffer when using getwd.
73736
73737 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73738
73739         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
73740         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
73741         getcwd (NULL, 0).
73742
73743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73744
73745         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
73746         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
73747         spotted by Jim Meyering.
73748
73749 2001-09-03  Jim Meyering  <meyering@lucent.com>
73750
73751         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
73752         failure.
73753
73754 2001-09-02  Jim Meyering  <meyering@lucent.com>
73755
73756         * lib/error.c: Update from GNU libc.
73757
73758 2001-09-01  Jim Meyering  <meyering@lucent.com>
73759
73760         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
73761         Used by df.
73762
73763 2001-09-01  Jim Meyering  <meyering@lucent.com>
73764
73765         * lib/xreadlink.c: New file.
73766         * lib/xreadlink.h: New file.
73767         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
73768         xreadlink.h.
73769
73770         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
73771         doesn't conflict with sparc Solaris 7's definition in
73772         /usr/include/sys/int_types.h.
73773
73774         * lib/exclude.c: Use `""', not `<>' to #include non-system header
73775         files.
73776         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
73777         and strncasecmp as r-values.  Unixware didn't have declarations.
73778
73779 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73780
73781         * lib/xstrtol.h: Add copyright notice.
73782         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
73783         LONGINT_INVALID_SUFFIX_CHAR.
73784
73785 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73786
73787         * lib/xstrtol.c (strtoimax): New decl.
73788
73789 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73790
73791         * lib/xgetcwd.c: Don't include pathmax.h.
73792         Include stdlib.h and unistd.h if available.
73793         Include xalloc.h.
73794         (xmalloc, xstrdup, free): Remove decls.
73795         (xgetcwd): Don't assume sizes fit in unsigned.
73796         Check for overflow when computing sizes.
73797         Simplify reallocation code.
73798
73799 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73800
73801         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
73802         a directory's st_size can have an arbitrary value, so the old
73803         usage could waste an arbitrary amount of memory.  All uses
73804         changed.
73805         * lib/savedir.h: Update prototype.
73806
73807 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73808
73809         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
73810
73811         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
73812         old strtoimax.c.
73813
73814         Also, make the following further changes to make this file's
73815         configuration more similar to that of strtol.c:
73816         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
73817         (strtoumax, uintmax_t, strtoull, strtol): Remove.
73818         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
73819         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
73820         changed to signed values.
73821
73822         And make the following changes as well:
73823         Fix copyright notice, as 1999 was missing.
73824         (verify): New macro.
73825         (strtoimax): Check sizes at compile-time, not run-time.
73826         Prefer strtol to strtoll if both work.
73827         (main): Remove; it was not that useful and was a pain to maintain.
73828
73829         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
73830
73831 2001-08-31  Jim Meyering  <meyering@lucent.com>
73832
73833         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
73834         Use an initial, malloc'd, buffer of length 128 rather than
73835         a statically allocated one of length 1024.
73836
73837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73838
73839         Simplify code, partly by assuming autoconf 2.52 semantics.
73840
73841         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
73842
73843         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
73844         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
73845         All uses removed.
73846         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
73847         Move AC_REQUIRE to next-to-top level, to avoid confusion.
73848         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
73849         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
73850         jm_AC_HEADER_INTTYPES_H.
73851         * m4/jm-macros.m4 (jm_MACROS): Likewise.
73852
73853         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
73854
73855         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73856         Quote first arg of AC_DEFUN.
73857         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
73858         since they are needed to parse the include file even if we need
73859         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
73860         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
73861         but with opposite signedness.
73862
73863 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73864
73865         Merge 'exclude' changes from tar 1.13.22.
73866         This fixes one or two unlikely storage allocation overflow bugs,
73867         but doesn't change user-visible behavior otherwise.
73868
73869 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73870
73871         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
73872         (jm_PREREQ_EXCLUDE): New macro.
73873
73874 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73875
73876         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
73877         tm to be declared.
73878
73879 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73880
73881         * lib/hash.c: Remove '2001' from copyright notice.
73882
73883 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73884
73885         * lib/full-write.h: New file.
73886         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
73887         * lib/full-write.c: Correct credits, as cccp.c no longer
73888         exists and anyway it was so heavily changed from the old cccp
73889         code as to be unrecognizable.  Include full-write.h.
73890         (full_write) Return size_t, with short writes meaning failure.
73891         All callers changed.  This fixes a bug with large buffers
73892         on 64-bit hosts.
73893         * lib/utime.c: Include full-write.h.
73894
73895 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73896
73897         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
73898         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
73899         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
73900         Include if available.
73901         (<xalloc.h>): Include
73902         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
73903         (verify): New macro.  Use it to verify that EXCLUDE macros do not
73904         collide with FNM macros.
73905         (struct patopts): New struct.
73906         (struct exclude): Use it, as exclude patterns now come with options.
73907         (new_exclude): Support above changes.
73908         (new_exclude, add_exclude_file):
73909         Initial size must now be a power of two to simplify overflow checking.
73910         (free_exclude, fnmatch_no_wildcards): New function.
73911         (excluded_filename): No longer requires options arg, as the options
73912         are determined by add_exclude.  Now returns bool, not int.
73913         (excluded_filename, add_exclude):
73914         Add support for the fancy new exclusion options.
73915         (add_exclude, add_exclude_file): Now takes int options arg.
73916         Check for arithmetic overflow when computing sizes.
73917         (add_exclude_file): xrealloc might modify errno, so don't
73918         realloc until after errno might be used.
73919
73920         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
73921         New macros.
73922         (free_exclude): New decl.
73923         (add_exclude, add_exclude_file): Now takes int options arg.
73924         (excluded_filename): No longer requires options arg, as the options
73925         are determined by add_exclude.  Now returns bool, not int.
73926
73927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73928
73929         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
73930
73931 2001-08-27  Jim Meyering  <meyering@lucent.com>
73932
73933         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
73934
73935         * lib/version-etc.c (N_): Remove definition.
73936         Revert most of last change.
73937         Instead, simply don't mark the `Copyright...' string for translation.
73938         Based on advice from Paul Eggert.
73939
73940         * lib/strtoxmax.c: Tweak comment.
73941
73942 2001-08-26  Jim Meyering  <meyering@lucent.com>
73943
73944         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
73945
73946         * m4/xstrtoimax.m4: New file.
73947         * m4/xstrtoumax.m4: Add comments explaining why we
73948         AC_REPLACE_FUNCS(strtol).
73949
73950 2001-08-26  Jim Meyering  <meyering@lucent.com>
73951
73952         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
73953         of copyright with `%s' so translators don't get an untranslated
73954         message in 2002.
73955         (COPYRIGHT_YEAR): Define.
73956         (version_etc): Use fprintf rather than fputs.
73957         Suggestion from Ulrich Drepper.
73958
73959         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
73960
73961         * lib/strtoll.c: New file, from GNU libc.
73962         * lib/xstrtoimax.c: New file.
73963
73964         * lib/xstrtol.h: Add xstrtoimax.
73965         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
73966         * lib/strtoimax.c: New file.  Likewise, but first define
73967         STRTOUXMAX_SIGNED.
73968
73969         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
73970         ...
73971         * lib/strtoxmax.c: ... then renamed to this.
73972
73973 2001-08-18  Paul Eggert  <eggert@twinsun.com>
73974
73975         * m4/inttypes.m4: Add AC_PREREQ(2.13).
73976         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
73977         (jm_AC_TYPE_INTMAX_T): New macro.
73978         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
73979
73980         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
73981
73982         * m4/longlong.m4: Renamed from ulonglong.m4.
73983         * m4/inttypes.m4: Renamed from inttypes_h.m4.
73984         * m4/uintmax_t.m4: Removed.
73985
73986 2001-08-13  Paul Eggert  <eggert@twinsun.com>
73987
73988         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
73989         Port to Solaris 8, where 'sed' requires a space after the 'r'
73990         command, and where sh dislikes "$/".  Clean up the spacing a bit.
73991         Redirect output to $tmp just once.
73992
73993 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
73994
73995         * lib/addext.c (<errno.h>): Include.
73996         (errno): Declare if not defined.
73997         (addext): Work correctly when pathconf returns -1 and leaves
73998         errno alone because there is no limit.  Also, work even if
73999         pathconf returns a value greater than SIZE_MAX.
74000
74001 2001-08-12  Jim Meyering  <meyering@lucent.com>
74002
74003         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
74004         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
74005         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
74006         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
74007         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
74008         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
74009         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
74010         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
74011         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
74012         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
74013         utime.m4, utimes.m4, xstrtoumax.m4:
74014         Quote the first argument in each use of AC_DEFUN.
74015
74016 2001-08-12  Jim Meyering  <meyering@lucent.com>
74017
74018         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
74019         Simply `return getcwd (NULL, 0);'.
74020         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
74021         Use 1300 as initial value for length, not PATH_MAX.
74022
74023         * lib/pathmax.h: Clean up cpp syntax.
74024
74025 2001-08-12  Jim Meyering  <meyering@lucent.com>
74026
74027         * lib/gettimeofday.c: New file.
74028         * lib/gtod.h: New file.
74029         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
74030
74031 2001-08-05  Jim Meyering  <meyering@lucent.com>
74032
74033         * m4/jm-macros.m4: Require autoconf-2.52.
74034
74035 2001-08-04  Jim Meyering  <meyering@lucent.com>
74036
74037         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
74038         stmt, to get in sync with glibc.
74039
74040 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74041
74042         The following changes are from gettext 0.10.39 as maintained by
74043         Bruno Haible.
74044
74045         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
74046         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
74047         with inverted sense.  All uses changed.
74048
74049         * lib/mbswidth.c: Don't include <limits.h>.
74050         Include <stdlib.h> and <string.h> unconditionally.
74051         (iswcntrl, mbsinit, ISCNTRL): New macros.
74052         (mbsnwidth): Use K&R style function declarations.
74053         Don't bother checking for MB_LEN_MAX == 1, since the compiler
74054         can optimize it when MB_CUR_MAX == 1.
74055         The width of control characters is zero, not 1.
74056
74057 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74058
74059         The following changes are from gettext 0.10.39 as maintained by
74060         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
74061
74062         * m4/codeset.m4: Upgrade to serial AM1.
74063         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
74064         all uses changed.  Quote first arg of AC_DEFUN.
74065         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
74066
74067         * m4/iconv.m4: Upgrade to serial AM2.
74068         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
74069         Add --with-libconv-prefix.
74070         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
74071         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
74072         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
74073         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
74074         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
74075
74076         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
74077         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
74078         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
74079         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
74080         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
74081         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
74082         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
74083         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
74084         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74085
74086         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
74087         string.h any more.
74088
74089         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
74090         not the default value.
74091
74092         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
74093         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
74094         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
74095         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
74096         Also check for iswcntrl, used for wcwidth fallback.
74097         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
74098         to Autoconf 2.13.
74099
74100 2001-08-03  Jim Meyering  <meyering@lucent.com>
74101
74102         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
74103         as it was in the original.  Reported by Paul Eggert.
74104
74105 2001-07-16  Jim Meyering  <meyering@lucent.com>
74106
74107         * m4/gettimeofday.m4: New file.
74108         Prompted by a report from Bernhard Baehr.
74109
74110 2001-07-15  Jim Meyering  <meyering@lucent.com>
74111
74112         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
74113         stuff. Now it's in ../Makefile.cfg.
74114
74115 2001-07-15  Jim Meyering  <meyering@lucent.com>
74116
74117         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
74118         (BUILT_SOURCES): Add unlocked-io.h.
74119         (io_functions): Define.
74120         (unlocked-io.h): New rule.
74121         (DISTCLEANFILES): Add unlocked-io.h.
74122         (all-local): Depend on unlocked-io.h, to ensure it is created.
74123
74124         * lib/unlocked-io.hin: New file
74125
74126         * lib/regex.c: Update from glibc.
74127
74128 2001-07-05  Jim Meyering  <meyering@lucent.com>
74129
74130         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74131         recommendation.
74132         (libfetish_a_SOURCES): Put all .h files here instead.
74133         Remove a thus-exposed (better checks in automake) duplicate and
74134         two unnecessary .h files.
74135
74136 2001-07-04  Jim Meyering  <meyering@lucent.com>
74137
74138         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
74139         that generates jm-glibc-io.m4 so that it doesn't trigger any make
74140         distcheck failure.
74141
74142 2001-07-02  Jim Meyering  <meyering@lucent.com>
74143
74144         The following changes were prompted by suggestions from Bruno Haible.
74145
74146         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
74147         is now generated.
74148         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
74149         definition of EXTRA_DIST.
74150         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
74151         ensure that the generated file is created/updated whenever the list
74152         of $(unlocked_functions) is changed.
74153         (jm-glibc-io.m4): New rule.
74154         (unlocked-io.h): New rule -- currently unused.
74155
74156 2001-06-24  Jim Meyering  <meyering@lucent.com>
74157
74158         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
74159         unmatched right bracket, rather than kludging it with an extra,
74160         falsely-matching quote in a comment.  Patch by Akim Demaille.
74161
74162 2001-06-11  Jim Meyering  <meyering@lucent.com>
74163
74164         * lib/regex.c: Update from GNU libc.
74165
74166 2001-05-27  Jim Meyering  <meyering@lucent.com>
74167
74168         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
74169         Check for ut_type in struct utmp.
74170
74171 2001-05-27  Jim Meyering  <meyering@lucent.com>
74172
74173         * lib/readutmp.h (UT_TYPE): Define.
74174
74175 2001-05-24  Jim Meyering  <meyering@lucent.com>
74176
74177         * lib/argmatch.c: Include "quote.h".
74178         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
74179         quote function.  Reported by Göran Uddeborg.
74180
74181 2001-05-22  Jim Meyering  <meyering@lucent.com>
74182
74183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
74184         now that we use the package-supplied version unconditionally.
74185         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
74186
74187 2001-05-21  Jim Meyering  <meyering@lucent.com>
74188
74189         * m4/regex.m4: Change a couple backticks to single quotes to avoid
74190         shell syntax errors.
74191
74192 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74193
74194         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
74195
74196 2001-05-20  Paul Eggert  <eggert@twinsun.com>
74197
74198         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
74199         Don't bother to check library strftime, since
74200         we'll be using our own my_strftime function anyway.
74201         Define my_strftime instead of strftime.
74202
74203 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
74204
74205         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
74206         which is not yet declared.
74207
74208 2001-05-15  Jim Meyering  <meyering@lucent.com>
74209
74210         * m4/regex.m4: Use proper quoting so brackets appear in the test
74211         program.
74212         Reported by, and with help from, Bruno Haible.
74213
74214 2001-05-13  Jim Meyering  <meyering@lucent.com>
74215
74216         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
74217         undefined.
74218
74219 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74220
74221         dirname code cleanup.  base_name now behaves more compatibly
74222         with POSIX basename when given file names that have trailing
74223         slashes, and similarly for dir_name.  Add new primitives
74224         base_len and dir_len.  Put the directory-name-related decls
74225         into dirname.h.
74226
74227         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
74228         * lib/backupfile.c (base_name): Likewise.
74229         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
74230         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
74231         * lib/makepath.c (strip_trailing_slashes): Likewise.
74232         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
74233         ISSLASH): Likewise.
74234         * lib/rename.c (strip_trailing_slashes): Likewise.
74235         * lib/same.c (base_name): Likewise.
74236         * lib/stripslash.c (ISSLASH): Likewise.
74237
74238         * lib/addext.c: Include <dirname.h> after size_t is defined.
74239         * lib/backupfile.c: Likewise.
74240
74241         * lib/addext.c (addext): Use base_len to trim redundant
74242         trailing slashes instead of doing it ourselves.
74243         But do not trim the last slash if it is not redundant.
74244
74245         * lib/backupfile.c (find_backup_file_name,
74246         max_backup_version): Use base_len instead of rolling it ourselves.
74247         Handle the case of "" and (on DOS) "C:" correctly.
74248
74249         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
74250         needed. Include <string.h>, <dirname.h>.
74251         (base_name): Allow file names ending in slashes, other than names
74252         that are all slashes.  In this case, return the basename followed
74253         by the slashes.  This is more general, and can be used in places
74254         where the original base_name purposely had an assertion failure.
74255         (base_len): New function.
74256
74257         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
74258         Do not include <assert.h>; no longer needed.
74259         Include xalloc.h.
74260         (memrchr): Remove decl.
74261         (dir_name_r): Remove.
74262         (dir_len): Renamed from dirlen.  All callers changed.
74263         Rewrite in terms of base_name, for simplicity and consistency.
74264         (dir_name): Never return NULL.  All callers changed.
74265         Do not include <stdlib.h> in test program; no longer needed.
74266         return 0; is fine for test program.
74267
74268         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
74269         New macros.
74270         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
74271
74272         * lib/path-concat.c (path_concat): Use base_len to compute
74273         base length, not strlen; this means we cannot rely on memcpy
74274         to null-terminate.
74275
74276         * lib/same.c (STREQ): Remove.
74277         (same_name): Handle the case where the basename ends in trailing '/'.
74278
74279         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
74280         a slash was stripped.  Do not strip the last slash after a
74281         file system prefix.
74282
74283 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74284
74285         * lib/Makefile.am (libfetish_a_SOURCES):
74286         Add strftime.c, since we now compile it on all hosts.
74287
74288         * lib/strftime.c (my_strftime):
74289         Define to nstrftime if emacs, but only if my_strftime is not defined.
74290         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
74291         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
74292         Add one more extra argument: a nanoseconds value.
74293         All uses changed.
74294         (ns): New macro.
74295         (my_strftime function): Add %N format.
74296         (emacs_strftimeu): Renamed from emacs_strftime,
74297         with extra ut argument.
74298
74299 2001-05-09  Paul Eggert  <eggert@twinsun.com>
74300
74301         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
74302
74303 2001-04-21  Jim Meyering  <meyering@lucent.com>
74304
74305         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
74306         doesn't interfere.
74307
74308 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74309
74310         * m4/ftruncate.m4: Check for chsize.
74311         Link with ftruncate.o unconditionally if ftruncate is missing.
74312         This was required when cross-compiling to i586-mingw32msvc.
74313
74314 2001-04-08  Jim Meyering  <meyering@lucent.com>
74315
74316         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
74317         recomputed; that's necessary when the offset spans a DST transition.
74318         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
74319
74320 2001-04-02  Jim Meyering  <meyering@lucent.com>
74321
74322         * lib/regex.h, regex.c: Update from GNU libc.
74323
74324 2001-03-24  Jim Meyering  <meyering@lucent.com>
74325
74326         * m4/jm-macros.m4: Require autoconf-2.49d.
74327
74328 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
74329
74330         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
74331
74332 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74333
74334         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74335
74336 2001-03-17  Jim Meyering  <meyering@lucent.com>
74337
74338         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74339         now that the version in autoconf is equivalent.
74340         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74341
74342         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74343         Suggestion from Akim Demaille.
74344
74345         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74346         (jm_PREREQ_TEMPNAME): New function.
74347
74348 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74349
74350         * lib/tempname.c (uint64_t): Define to uintmax_t if
74351         not defined, and if UINT64_MAX is not defined.
74352         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74353         Reported by John David Anglin.
74354
74355 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74356
74357         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74358         resolve alias if codeset is empty.
74359         * lib/config.charset (BeOS): Use wildcard syntax.
74360
74361 2001-03-13  Jim Meyering  <meyering@lucent.com>
74362
74363         * lib/path-concat.c (path_concat)
74364         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
74365         concatenating e.g., `C:' and `foo'.
74366         From Bruno Haible.
74367
74368 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74369
74370         * lib/localcharset.c (locale_charset): Don't use
74371         setlocale(LC_CTYPE,NULL). Don't return NULL.
74372         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
74373
74374 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74375
74376         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
74377         support for DOS/DJGPP.
74378
74379 2001-03-01  Paul Eggert  <eggert@twinsun.com>
74380
74381         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
74382         lacks mkstemp.  Compile our own tempname.c if we compile our own
74383         mkstemp.c, as mkstemp relies on tempname.
74384
74385 2001-03-01  Jim Meyering  <meyering@lucent.com>
74386
74387         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
74388         AH_VERBATIM really does output its argument verbatim.
74389
74390 2001-02-28  Paul Eggert  <eggert@twinsun.com>
74391
74392         * lib/Makefile.am (libfetish_a_SOURCES):
74393         Add dup-safer.c, fopen-safer.c.
74394         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
74395
74396         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
74397         * lib/unistd-safer.h: New files.
74398
74399 2001-02-25  Paul Eggert  <eggert@twinsun.com>
74400
74401         The mkstemp replacement is taken from glibc 2.2.2, with some
74402         portability fixes for use outside glibc, as follows:
74403
74404         * lib/tempname.c (struct_stat64): New macro.
74405         (direxists, __gen_tempname): Use it.
74406         This avoids a portability problem with Solaris 8.
74407
74408         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
74409         (<stddef.h>, <stdint.h>, <string.h>):
74410         Include only if STDC_HEADERS || _LIBC.
74411         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
74412         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
74413         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
74414         (__set_errno): Define this macro if <errno.h> doesn't.
74415         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
74416         Define these macros if <stdio.h> doesn't.
74417         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
74418         Define these macros if <sys/stat.h>
74419         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
74420         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
74421         __xstat64): Define if not _LIBC.
74422         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
74423         (__gen_tempname): Invoke gettimeofday only if
74424         HAVE_GETTIMEOFDAY || _LIBC;
74425         otherwise, fall back on plain "time".
74426         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
74427
74428         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
74429
74430         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
74431
74432 2001-02-18  Paul Eggert  <eggert@twinsun.com>
74433
74434         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
74435
74436 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74437
74438         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
74439         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
74440         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
74441         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74442
74443 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74444
74445         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
74446         Remove workaround macros for hosts that have mbrtowc but not
74447         mbstate_t, as we now insist on proper declarations for both
74448         before using mbrtowc.
74449
74450 2001-02-17  Jim Meyering  <meyering@lucent.com>
74451
74452         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
74453         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
74454         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
74455         UnixWare 7.1.1.
74456
74457         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
74458         rather than AC_CACHE_VAL.
74459
74460 2001-02-17  Jim Meyering  <meyering@lucent.com>
74461
74462         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
74463         around included file name.
74464
74465         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
74466
74467         * lib/strftime.c: Update from GNU libc (the only changes were to
74468         comments).
74469
74470 2001-02-17  Jim Meyering  <meyering@lucent.com>
74471
74472         * lib/regex.c: Update from libc.
74473
74474 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74475
74476         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74477         clash.
74478
74479 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74480
74481         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74482         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74483         Reported by Mark Hounschell via Paul Eggert.
74484
74485 2001-02-07  Jim Meyering  <meyering@lucent.com>
74486
74487         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74488
74489 2001-02-05  Jim Meyering  <meyering@lucent.com>
74490
74491         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74492         it includes the patch required for `large file' support with at least
74493         HP-UX's 10.20 /bin/cc.
74494
74495 2001-02-03  Jim Meyering  <meyering@lucent.com>
74496
74497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74498         AS_IF, now that it works once again (mysteriously).
74499         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74500
74501 2001-01-30  Jim Meyering  <meyering@lucent.com>
74502
74503         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74504         * m4/chown.m4: Rename conftestchown to conftest.chown.
74505         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74506         s/conftestdir2/conftest.d2/.
74507         * m4/utimes.m4: s/conftestdata/conftest.data/
74508         Inspired by Pavel Roskin's change in autoconf.
74509
74510 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
74511
74512         * lib/config.charset: Update for FreeBSD 4.2.
74513
74514 2001-01-27  Jim Meyering  <meyering@lucent.com>
74515
74516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
74517         a use of AS_IF.
74518         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74519
74520 2001-01-26  Jim Meyering  <meyering@lucent.com>
74521
74522         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
74523         quotearg.c includes it.
74524
74525 2001-01-26  Jim Meyering  <meyering@lucent.com>
74526
74527         * lib/quotearg.c: Include stddef.h.
74528         * lib/quote.c: Include stddef.h.
74529         Reported by Axel Kittenberger.
74530
74531         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
74532         line in double quotes so that it evokes a better diagnostic.
74533         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
74534         Reported by Axel Kittenberger.
74535
74536 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
74537
74538         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
74539         as if it was a `charset'.
74540
74541 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74542
74543         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
74544         has const.
74545
74546 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74547
74548         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
74549         to avoid a warning.  Add back 'const' to inptr.
74550
74551 2001-01-20  Jim Meyering  <meyering@lucent.com>
74552
74553         Be sure that headers are checked before used in code compiled
74554         for the type checks.
74555         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
74556         In place of that, invoke jm_CHECK_ALL_TYPES.
74557         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
74558         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
74559         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
74560         The check for ssize_t was mistakenly run before the test for unistd.h.
74561
74562         The configure-time check for stdbool.h was missing.
74563         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
74564         (jm_PREREQ_HASH): New function.
74565
74566 2001-01-17  Jim Meyering  <meyering@lucent.com>
74567
74568         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
74569         for autoconf-2.49c.
74570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
74571
74572 2001-01-16  Jim Meyering  <meyering@lucent.com>
74573
74574         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
74575         From Bruno Haible.
74576
74577 2001-01-14  Jim Meyering  <meyering@lucent.com>
74578
74579         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
74580         foo and bar.  Create conftestdir/ in the script, not in the C code.
74581         Remove directories in the script, not in the C code.
74582         Remove conftestdir{,2} before trying to create the directory.
74583         Make the entire configure script fail if the mkdir fails.
74584
74585 2001-01-14  Jim Meyering  <meyering@lucent.com>
74586
74587         * lib/rename.c: New file.  From Volker Borchert.
74588         Include stdlib.h, string.h or strings.h, and xalloc.h.
74589         Use strip_trailing_slashes rather than open-coding it.
74590
74591 2001-01-03  Paul Eggert  <eggert@twinsun.com>
74592
74593         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
74594
74595 2001-01-03  Jim Meyering  <meyering@lucent.com>
74596
74597         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
74598         of local `inptr' to avoid warning with some system declarations of
74599         iconv.
74600
74601 2001-01-02  Volker Borchert  <bt@teknon.de>
74602
74603         * m4/rename.m4: New file.
74604         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
74605
74606 2001-01-01  Jim Meyering  <meyering@lucent.com>
74607
74608         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
74609         even on systems with utmpx.h.  It's necessary for the declaration of
74610         utmp's ut_user member.  Reported by Andreas Jaeger.
74611
74612         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
74613         available. They are required for the declarations of getgrgid and
74614         getpwuid resp.
74615         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
74616         Reported by Andreas Jaeger.
74617
74618 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
74619
74620         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
74621         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
74622         so `make install' also works in VPATH builds.
74623
74624 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
74625
74626         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
74627         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
74628         can be used in subdirectories.
74629
74630 2000-12-29  Paul Eggert  <eggert@twinsun.com>
74631
74632         * lib/modechange.c: Do not assume that mode_t uses the
74633         traditional octal encoding.  E.g. "chmod 1 FOO" should set
74634         the other-execute bit of FOO even if S_IXOTH != 1.
74635
74636         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
74637         WOTH, XOTH, ALLM): New macros.
74638         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
74639          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
74640         Use them.
74641         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
74642         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
74643         (mode_compile):
74644         No need to use uintmax_t; unsigned long is long enough.
74645         Don't bother to get suffix since we don't use it.
74646
74647 2000-12-26  Jim Meyering  <meyering@lucent.com>
74648
74649         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
74650         better with autoheader.
74651
74652 2000-12-24  Jim Meyering  <meyering@lucent.com>
74653
74654         * lib/hash.c (is_prime): Return explicit boolean values.
74655         (hash_get_first): Return NULL to appease Irix5.6's 89.
74656         Reported by Nelson Beebe.
74657
74658 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
74659
74660         * lib/localcharset.c (locale_charset): Add support for Win32.
74661
74662 2000-12-18  Paul Eggert  <eggert@twinsun.com>
74663
74664         * lib/physmem.h, lib/physmem.c: New files.
74665
74666         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
74667         (noinst_HEADERS): Add physmem.h.
74668
74669         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
74670         't' for compatibility with Solaris 8 sort.
74671
74672 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
74673
74674         * lib/config.charset: Add support for BeOS.
74675
74676 2000-12-17  Jim Meyering  <meyering@lucent.com>
74677
74678         * m4/dos.m4 (jm_AC_DOS): New file and macro.
74679         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
74680
74681 2000-12-16  Jim Meyering  <meyering@lucent.com>
74682
74683         This bug had a serious impact on chown: `chown N:M FILE' (for integer
74684         N and M) would have treated it like `chown N:N FILE'.
74685
74686         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
74687
74688 2000-12-16  Jim Meyering  <meyering@lucent.com>
74689
74690         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
74691         SHELLS_FILE to a file name that's useful on djgpp systems.
74692         Include stdlib.h.
74693         (ADDITIONAL_DEFAULT_SHELLS): Define.
74694         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
74695         Based mostly on a patch from Prashant TR.
74696
74697 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
74698
74699         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
74700         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
74701         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
74702
74703 2000-12-08  Andreas Schwab  <schwab@suse.de>
74704
74705         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
74706         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
74707
74708 2000-12-07  Jim Meyering  <meyering@lucent.com>
74709
74710         * lib/stripslash.c (ISSLASH): Define.
74711         (strip_trailing_slashes): Use ISSLASH rather than comparing against
74712         `/'.
74713         From Prashant TR.
74714
74715         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
74716         (dir_name_r): Declare this function as static.
74717         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
74718         manifest itself on a name containing a mix of slashes and
74719         backslashes.
74720         Make this function work with names starting with a DOS-style
74721         drive letter and colon prefix.
74722         (dir_name): Append `.' if necessary.
74723         Based mostly on patches from Prashant TR and Eli Zaretskii.
74724
74725         * lib/dirname.h (dir_name_r): Remove prototype.
74726
74727 2000-12-06  Paul Eggert  <eggert@twinsun.com>
74728
74729         * m4/off_t-format.m4: Remove this file.
74730         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
74731
74732 2000-12-06  Jim Meyering  <meyering@lucent.com>
74733
74734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
74735         replacement strtoull, we may well need the replacement strtoul, too.
74736         Check for declarations of strtoul and strtoull.
74737         Check for strtol.  Mainly as a cue to cause automake to include
74738         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
74739         Check for limits.h -- strtol.c needs it.
74740
74741 2000-12-05  Jim Meyering  <meyering@lucent.com>
74742
74743         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
74744
74745 2000-12-04  Jim Meyering  <meyering@lucent.com>
74746
74747         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
74748         Also include memory.h, stdlib.h, unistd.h if appropriate.
74749         Reported by Andreas Jaeger (conflicting declaration of malloc).
74750
74751 2000-12-02  Jim Meyering  <meyering@lucent.com>
74752
74753         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
74754         * m4/jm-macros.m4 (jm_MACROS): require it.
74755
74756 2000-12-02  Jim Meyering  <meyering@lucent.com>
74757
74758         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
74759
74760 2000-12-01  Paul Eggert  <eggert@twinsun.com>
74761
74762         * lib/memrchr.c: Include <config.h> before any system include file.
74763
74764 2000-11-30  Jim Meyering  <meyering@lucent.com>
74765
74766         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
74767
74768 2000-11-30  Jim Meyering  <meyering@lucent.com>
74769
74770         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
74771
74772 2000-11-29  Paul Eggert  <eggert@twinsun.com>
74773
74774         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
74775
74776 2000-11-26  Jim Meyering  <meyering@lucent.com>
74777
74778         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
74779
74780 2000-11-22  Paul Eggert  <eggert@twinsun.com>
74781
74782         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
74783         size of (size_t) -1; it's not portable.
74784
74785 2000-11-17  Jim Meyering  <meyering@lucent.com>
74786
74787         * lib/strstr.c: Update from GNU libc.
74788
74789 2000-11-17  Akim Demaille  <akim@epita.fr>
74790
74791         * lib/obstack.h: Formatting changes.
74792         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
74793         prevent type checking.
74794         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
74795         cast the value to (void *): assigning a `foo *' to a `void *'
74796         variable is valid.
74797         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
74798
74799 2000-11-16  Jim Meyering  <meyering@lucent.com>
74800
74801         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
74802
74803 2000-11-11  Jim Meyering  <meyering@lucent.com>
74804
74805         * lib/error.c: Add a couple #includes, merging from GNU libc version.
74806
74807 2000-11-10  Jim Meyering  <meyering@lucent.com>
74808
74809         * lib/obstack.h: Update from GNU libc.
74810         * lib/obstack.c: Likewise.
74811
74812 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
74813
74814         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
74815
74816 2000-11-06  Paul Eggert  <eggert@twinsun.com>
74817
74818         * lib/getusershell.c (setusershell): Use rewind rather than
74819         fseek/fseeko, to avoid configuration hassles with fseeko.
74820         Don't bother opening SHELLS_FILE if shellstream is NULL;
74821         it's not necessary.
74822
74823 2000-11-05  Jim Meyering  <meyering@lucent.com>
74824
74825         * lib/makepath.h (make_dir): Declare.
74826         * lib/makepath.c (make_dir): Remove `static' attribute.
74827         Tweak a comment.
74828
74829 2000-11-04  Jim Meyering  <meyering@lucent.com>
74830
74831         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
74832
74833 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
74834
74835         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
74836         last one in a bucket, advance to the next bucket.
74837
74838 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
74839
74840         * lib/fnmatch.c: Do not comment out all the code if we are using
74841         the GNU C library, because in some cases we are replacing buggy
74842         code in the GNU C library itself.
74843
74844 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
74845
74846         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
74847         (regex_compile): Catch bogus \(\1\).
74848
74849 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74850
74851         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
74852         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
74853         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
74854
74855 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74856
74857         * lib/error.h, getline.h, modechange.h:
74858         Remove "2000" from Copyright line, as the file hasn't been
74859         changed this year other than in the copyright notice.
74860
74861         * lib/xalloc.h: Add "2000" to Copyright line, as this file
74862         was changed this year.
74863
74864 2000-10-29  Jim Meyering  <meyering@lucent.com>
74865
74866         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
74867         renaming.
74868         * m4/ls-mntd-fs.m4: Likewise
74869
74870 2000-10-29  Jim Meyering  <meyering@lucent.com>
74871
74872         * lib/xstat.in: Fix grammar in comment.
74873
74874 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
74875
74876         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
74877         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
74878         doesn't define __restrict_arr.
74879
74880 2000-10-28  Jim Meyering  <meyering@lucent.com>
74881
74882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
74883         (jm_PREREQ_MEMCHR): New function.
74884
74885 2000-10-28  Jim Meyering  <meyering@lucent.com>
74886
74887         * lib/memchr.c: Update from libc.
74888         Adjust for portability:
74889         [HAVE_STDLIB_H]: Include stdlib.h.
74890         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
74891         Undef __memchr, too.
74892         [!weak_alias]: Define __memchr to memchr.
74893
74894         * lib/regex.c: Update from libc.
74895         * lib/regex.h: Likewise.
74896         * lib/getopt1.c: Likewise.
74897         * lib/memcmp.c: Likewise.
74898
74899         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
74900         Avoid using fseek, when possible -- it's broken by design.
74901         Patch by Ulrich Drepper.
74902
74903 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
74904
74905         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
74906         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
74907         Giving in to popular pressure to shut up the compiler with casts.
74908
74909 2000-10-26  Jim Meyering  <meyering@lucent.com>
74910
74911         * lib/strftime.c: Update from libc.
74912
74913 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
74914
74915         * regex.c: More `unsigned char' -> `re_char' changes.
74916         Also change several `int' into `re_wchar_t'.
74917         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
74918         (PUSH_FAILURE_POINTER): Don't cast any more.
74919         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
74920         We want GCC to complain, since this piece of code makes
74921         re_match non-reentrant, which *should* be fixed.
74922         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
74923         (EXTEND_BUFFER): Use RETALLOC.
74924         (SET_LIST_BIT): Don't cast.
74925         (re_wchar_t): New type.
74926         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
74927         that those two functions will always properly return.
74928         (IMMEDIATE_QUIT_CHECK): Cast to void.
74929         (analyse_first): Use recursion rather than an explicit stack.
74930         (re_compile_fastmap): Can't fail anymore.
74931         (re_search_2): Don't check re_compile_fastmap for failure.
74932         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
74933         Now also sets the new value (passed in a new argument).
74934         (re_match_2_internal): Use it.
74935         Also, use a new var `reg' of type size_t when looping through regs
74936         rather than reuse the inappropriate `mcnt'.
74937
74938 2000-10-25  Jim Meyering  <meyering@lucent.com>
74939
74940         * lib/obstack.c: Update from libc.
74941
74942 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
74943
74944         * regex.c (regex_compile): Change the way of handling a range from
74945         a char less than 256 to a char not less than 256.
74946
74947 2000-10-24  Andrew Innes  <andrewi@gnu.org>
74948
74949         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
74950         NT-Emacs only.
74951         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
74952         so that re_search functions only quit when callers expect them to.
74953
74954 2000-10-23  Jim Meyering  <meyering@lucent.com>
74955
74956         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
74957         wrong.  That set_locale call must not have any side effects.
74958         From Paul Eggert.
74959
74960 2000-10-22  Jim Meyering  <meyering@lucent.com>
74961
74962         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
74963         [CYCLIC]: Remove now-unused definition.
74964
74965         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
74966         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
74967         Suggestion from Ulrich Drepper.
74968
74969 2000-10-21  Jim Meyering  <meyering@lucent.com>
74970
74971         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
74972         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
74973         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
74974
74975 2000-10-21  Jim Meyering  <meyering@lucent.com>
74976
74977         * lib/dirname.c (memrchr): Declare if necessary.
74978         (dir_name): Remove the restriction that there be no
74979         trailing slashes.  Now, this code skips past them, effectively
74980         ignoring them.
74981         [TEST_DIRNAME] (main): New unit tests.
74982
74983         * lib/memrchr.c: New file from GNU libc.
74984         Undef __memrchr, too.
74985         [!weak_alias]: Define __memrchr to memrchr.
74986         Guard weak_alias use with `#ifdef weak_alias'.
74987
74988 2000-10-21  Jim Meyering  <meyering@lucent.com>
74989
74990         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
74991         (dir_name): Use dir_name_r.
74992         * lib/dirname.h (dir_name_r): Declare it.
74993
74994 2000-10-17  Jim Meyering  <meyering@lucent.com>
74995
74996         * lib/quote.h (PARAMS): Define and use.
74997         Reported by Akim Demaille.
74998
74999         * lib/getopt.c: Update from libc.
75000
75001 2000-10-16  Jim Meyering  <meyering@lucent.com>
75002
75003         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
75004         setlocale.
75005         From Jan Fedak.
75006
75007 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
75008
75009         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
75010
75011 2000-09-25  Jim Meyering  <meyering@lucent.com>
75012
75013         * lib/md5.h (rol): Define (from GnuPG).
75014
75015         * lib/sha.c: Give credit (GnuPG) where due.
75016         (M): Use rol rather than open-coding it.
75017         Add a FIXME comment.
75018
75019 2000-09-21  Jim Meyering  <meyering@lucent.com>
75020
75021         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
75022         Reported by Michael Stone.
75023
75024 2000-09-20  Jim Meyering  <meyering@lucent.com>
75025
75026         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
75027         (noinst_HEADERS): Add sha.h.
75028         Based on code from Scott G. Miller and from GnuPG.
75029
75030 2000-09-18  Jim Meyering  <meyering@lucent.com>
75031
75032         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
75033         LIBS. Otherwise, everyone ends up linking with -lelf for some
75034         configurations.
75035         Reported by Mike Stone.
75036
75037 2000-09-15  Jim Meyering  <meyering@lucent.com>
75038
75039         * lib/regex.c: Update from libc.
75040
75041 2000-09-10  Jim Meyering  <meyering@lucent.com>
75042
75043         * lib/getopt.c (_getopt_internal): Update from glibc.
75044
75045 2000-09-09  Jim Meyering  <meyering@lucent.com>
75046
75047         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
75048         think it should be used as a general replacement for isascii.
75049         * lib/fnmatch.c: Likewise.
75050         * lib/mbswidth.c: Likewise
75051         * lib/regex.c: Likewise.
75052
75053         Don't use atoi.
75054         * lib/userspec.c: Include sys/param.h and limits.h.
75055         Include xstrtol.h.
75056         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75057         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
75058         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
75059         UID, GID.  Check range.
75060
75061 2000-09-06  Jim Meyering  <meyering@lucent.com>
75062
75063         * lib/getopt.c (_getopt_internal): Update from glibc.
75064
75065 2000-08-30  Jim Meyering  <meyering@lucent.com>
75066
75067         * lib/strftime.c: Merge in changes from GNU libc.
75068
75069 2000-08-26  Jim Meyering  <meyering@lucent.com>
75070
75071         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
75072         * m4/fpending.m4: New file.
75073
75074 2000-08-26  Jim Meyering  <meyering@lucent.com>
75075
75076         * lib/closeout.c: Include "__fpending.h".
75077         (close_stdout_status): Return right away if there's nothing to flush.
75078
75079         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
75080         * lib/__fpending.c: New file.
75081         * lib/__fpending.h: New file.
75082
75083 2000-08-20  Jim Meyering  <meyering@lucent.com>
75084
75085         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
75086         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
75087         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
75088
75089 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
75090
75091         Improve fileutils installation on systems where running
75092         programs (like install) can't be unlinked.
75093         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
75094         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
75095
75096 2000-08-07  Paul Eggert  <eggert@twinsun.com>
75097
75098         Standardize on "memory exhausted" instead of "Memory exhausted"
75099         or "virtual memory exhausted".
75100         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
75101         "virtual memory exhausted".
75102         * lib/same.c (same_name): Invoke xalloc_die instead of printing
75103         our own message.
75104         * lib/userspec.c (parse_user_spec): Likewise.
75105         * lib/bumpalloc.h: comment fix
75106         * lib/same.c, userspec.c: Include xalloc.h.
75107
75108         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
75109         not char *const and pointing to a constant array.
75110         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
75111         (xrealloc): Comment fix.
75112
75113         * lib/userspec.c (parse_user_spec):
75114         Don't translate a message until just before returning,
75115         to avoid unnecessary translation.
75116
75117 2000-08-07  Jim Meyering  <meyering@lucent.com>
75118
75119         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
75120         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75121         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75122         getgroups.c, gethostname.c, getopt.h, group-member.c,
75123         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75124         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75125         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75126         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75127         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75128         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75129         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75130         yesno.c: Back out Copyright date changes for each file with no change
75131         this year.  This eases coordination with other programs using the same
75132         source code modules.  From Paul Eggert.
75133
75134 2000-08-06  Paul Eggert  <eggert@twinsun.com>
75135
75136         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
75137         not char, for compatibility with glibc 2.1.3 strftime.c.
75138
75139 2000-08-03  Greg McGary  <greg@mcgary.org>
75140
75141         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
75142         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
75143         (EXTEND_BUFFER): Use them.
75144
75145 2000-08-01  Jim Meyering  <meyering@lucent.com>
75146
75147         * lib/dirname.c (ISSLASH): Define.
75148         (BACKSLASH_IS_PATH_SEPARATOR): Define.
75149         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
75150         both `\' and `/' may be use as path separators.
75151         Based on a patch from Prashant TR.
75152
75153 2000-07-31  Paul Eggert  <eggert@twinsun.com>
75154
75155         * lib/quotearg.c (quotearg_n_options): Don't make the initial
75156         slot vector a constant, since it might get modified.
75157
75158 2000-07-31  Jim Meyering  <meyering@lucent.com>
75159
75160         * lib/xmalloc.c: Use `virtual memory exhausted', not
75161         `Memory exhausted'.
75162         * lib/obstack.c (print_and_abort): Likewise.
75163
75164 2000-07-30  Paul Eggert  <eggert@twinsun.com>
75165
75166         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
75167         buffer, so that the caller can always quote one small
75168         component of a "memory exhausted" message in slot 0.
75169         From a suggestion by Jim Meyering.
75170
75171 2000-07-30  Jim Meyering  <meyering@lucent.com>
75172
75173         * lib/makepath.c (make_path): Quote the other instance, too.
75174
75175         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
75176         (STATIC_BUF_SIZE): Define.
75177         (quotearg_n_options): Use only statically allocated storage when
75178         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
75179         than STATIC_BUF_SIZE.
75180
75181 2000-07-29  Jim Meyering  <meyering@lucent.com>
75182
75183         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
75184         * lib/dirname.c (dir_name): Likewise.
75185
75186         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
75187         `/'.
75188
75189         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
75190         (dir_name): Assert that there are no trailing slashes.
75191
75192 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
75193
75194         * lib/mbswidth.h (mbswidth): Add a flags argument.
75195         (mbswidth): New declaration.
75196         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
75197         * lib/mbswidth.c (mbswidth): Add a flags argument.
75198         (mbsnwidth): New function.
75199
75200 2000-07-24  Jim Meyering  <meyering@lucent.com>
75201
75202         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
75203
75204 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75205
75206         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
75207
75208 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75209
75210         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
75211         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
75212         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
75213         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
75214         invoke multibyte primitives.
75215
75216 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75217
75218         * lib/quotearg.c:
75219         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
75220         so that mbstate_t is always defined.
75221
75222         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
75223         be 1 in at least one GCC installation, and this configuration
75224         error is likely to be common.  Ignoring MB_LEN_MAX hurts
75225         performance on hosts that have mbrtowc but have only unibyte
75226         locales, but I assume these hosts are rare.
75227
75228 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75229
75230         * lib/mbswidth.c (_XOPEN_SOURCE):
75231         Don't define; this causes problems on Solaris 7.
75232         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
75233
75234 2000-07-23  Jim Meyering  <meyering@lucent.com>
75235
75236         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
75237         too: getgrgid, getpwuid, getuid.
75238
75239 2000-07-23  Jim Meyering  <meyering@lucent.com>
75240
75241         * lib/basename.c (base_name): Add an assertion.
75242
75243 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
75244
75245         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
75246         shadow its mbsinit function.
75247
75248 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75249
75250         * lib/mbswidth.h: New file.
75251         * lib/mbswidth.c: New file.
75252         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
75253         (noinst_HEADERS): Add mbswidth.h.
75254
75255 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75256
75257         * lib/config.charset: Add support for FreeBSD. Improve support for
75258         HP-UX and IRIX 6.
75259
75260 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
75261
75262         * m4/mbswidth.m4: New file.
75263         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
75264
75265 2000-07-15  Jim Meyering  <meyering@lucent.com>
75266
75267         * lib/makepath.c: Include quote.h.
75268         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
75269         corresponding argument in a `quote (...)' call.
75270         Give better diagnostics.
75271
75272         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
75273         (noinst_HEADERS): Add quote.h.
75274
75275         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
75276         from tar's src/misc.c.
75277         * lib/quote.h: New file.  Prototypes for same.
75278
75279 2000-07-14  Paul Eggert  <eggert@twinsun.com>
75280
75281         From a suggestion by Bruno Haible.
75282         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
75283         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
75284         to decide whether to define the BeOS workaround macro;
75285         this adjusts to the change to AC_MBSTATE_T.
75286
75287 2000-07-14  Jim Meyering  <meyering@lucent.com>
75288
75289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
75290         jm_AC_TYPE_UINTMAX_T.
75291
75292 2000-07-13  Paul Eggert  <eggert@twinsun.com>
75293
75294         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
75295
75296         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
75297         quotearg_buffer_restyled): Add support for
75298         clocale_quoting_style.  Undo previous change to
75299         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
75300         and "{RIGHT QUOTATION MARK}" msgids.
75301
75302 2000-07-10  Paul Eggert  <eggert@twinsun.com>
75303
75304         From a suggestion by Bruno Haible.
75305         * m4/mbstate_t.m4 (AC_MBSTATE_T):
75306         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
75307         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
75308         and mbstate_t, to a single-part test that simply defines mbstate_t.
75309         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
75310         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
75311
75312 2000-07-10  Jim Meyering  <meyering@lucent.com>
75313
75314         * m4/strerror_r.m4: Mirror the correction made in autoconf.
75315
75316         * m4/gnu-source.m4: Output to confdefs.h directly.
75317         Suggestion from Akim Demaille.
75318
75319 2000-07-09  Paul Eggert  <eggert@twinsun.com>
75320
75321         The old behavior of quoting `like this' doesn't look good with
75322         newer, ISO-style fonts.  See:
75323         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
75324
75325         Instead, quote "like this" by default.  Let the translator
75326         tailor the locale-specific quoting behavior by providing
75327         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
75328
75329         * lib/quotearg.c (N_): New macro.
75330         (gettext_default): New function.
75331         (quotearg_buffer_restyled): Use
75332         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75333         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75334
75335 2000-07-09  Jim Meyering  <meyering@lucent.com>
75336
75337         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75338         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75339
75340         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75342
75343 2000-07-09  Jim Meyering  <meyering@lucent.com>
75344
75345         * lib/Most files: Update copyright dates to include 2000.
75346
75347 2000-07-08  Jim Meyering  <meyering@lucent.com>
75348
75349         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75350         if not defined.
75351         (xgethostname): Remove now-unnecessary #ifdef.
75352         Move declaration of `err' into loop where it's used.
75353
75354 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75355         and Bruno Haible  <haible@clisp.cons.org>
75356
75357         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75358         only if the test for an object-type mbstate_t fails.  This
75359         prevents us from mistakenly reporting that mbstate_t is a
75360         system object type after we "#define mbstate_t int" to work
75361         around its lack.
75362
75363 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75364         and Bruno Haible  <haible@clisp.cons.org>
75365
75366         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
75367
75368 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75369
75370         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
75371         to strerror_r.
75372         Include <ctype.h> for use of isalpha.
75373
75374 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75375
75376         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
75377         by allocating a larger buffer. Test the gethostname return value for
75378         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
75379         returns an error and ENAMETOOLONG isn't defined.
75380
75381 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75382
75383         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
75384         dimension.
75385
75386 2000-07-04  Jim Meyering  <meyering@lucent.com>
75387
75388         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
75389         of the deprecated AC_CHECKING.
75390
75391 2000-07-04  Jim Meyering  <meyering@lucent.com>
75392
75393         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
75394         Reported by Bruno Haible.
75395
75396 2000-07-04  Jim Meyering  <meyering@lucent.com>
75397
75398         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
75399         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
75400         lacks mbrtowc.
75401
75402 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75403
75404         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
75405         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
75406
75407 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75408         and Bruno Haible  <haible@clisp.cons.org>
75409
75410         * lib/quotearg.c (mbrtowc):
75411         Assign to *pwc, and return 1 only if result is nonzero.
75412         (iswprint): Use ISPRINT when substituting our own mbrtowc.
75413
75414 2000-07-03  Jim Meyering  <meyering@lucent.com>
75415
75416         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
75417
75418 2000-07-03  Jim Meyering  <meyering@lucent.com>
75419
75420         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
75421         This is necessary to get a definition of e.g., UTMP_FILE on
75422         HP-UX 10.20.
75423         From Bob Proulx.
75424
75425 2000-07-02  Jim Meyering  <meyering@lucent.com>
75426
75427         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
75428
75429         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
75430         AC_LIBOBJ(function_name).
75431         * m4/chown.m4: Likewise.
75432         * m4/fnmatch.m4: Likewise.
75433         * m4/ftruncate.m4: Likewise.
75434         * m4/getgroups.m4: Likewise.
75435         * m4/getline.m4: Likewise.
75436         * m4/group-member.m4: Likewise.
75437         * m4/jm-macros.m4: Likewise.
75438         * m4/lstat.m4: Likewise.
75439         * m4/malloc.m4: Likewise.
75440         * m4/memcmp.m4: Likewise.
75441         * m4/nanosleep.m4: Likewise.
75442         * m4/putenv.m4: Likewise.
75443         * m4/realloc.m4: Likewise.
75444         * m4/regex.m4: Likewise.
75445         * m4/stat.m4: Likewise.
75446         * m4/strftime.m4: Likewise.
75447
75448 2000-07-02  Jim Meyering  <meyering@lucent.com>
75449
75450         * lib/quotearg.c (mbstate_t): Don't define here.
75451
75452 2000-07-02  Jim Meyering  <meyering@lucent.com>
75453
75454         * lib/nanosleep.c (SIGCONT): Define if not already defined.
75455
75456 2000-07-01  Jim Meyering  <meyering@lucent.com>
75457
75458         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
75459
75460 2000-07-01  Jim Meyering  <meyering@lucent.com>
75461
75462         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
75463         problem.
75464
75465 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75466
75467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75468         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75469
75470 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75471
75472         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75473         per change in ../m4/ls-mntd-fs.m4.
75474         (read_filesystem_list): Ignore symbolic links.
75475
75476 2000-06-29  Jim Meyering  <meyering@lucent.com>
75477
75478         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75479         for declaration of strcmp.
75480
75481         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75482
75483         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75484         Avoid warning by casting result to `char *' to remove `const'.
75485
75486 2000-06-28  Jim Meyering  <meyering@lucent.com>
75487
75488         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75489         included by quotearg.c, for which we perform this test.  From
75490         Bruno Haible.
75491
75492 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75493
75494         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75495         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75496         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75497
75498 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75499
75500         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75501
75502 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75503
75504         savedir now sets errno on failure and invokes xmalloc to get memory.
75505         Fix a couple of other minor bugs while we're at it.
75506
75507         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
75508         (NAMLEN): Remove macro.
75509         (malloc, realloc): Remove decls.
75510         (stpcpy): Likewise.
75511         ("xalloc.h"): Include.
75512         (NAME_SIZE_DEFAULT): New macro.
75513         (savedir): Use xmalloc / xrealloc to allocate memory.
75514         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
75515         Skip "" directory entries.
75516         Use strlen to calculate directory entry length, since the old method
75517         is rarely used these days and isn't worth supporting.
75518         Don't use a pointer after freeing it.
75519         Check for integer overflow when calculating allocation size.
75520         Use memcpy to copy entries, instead of stpcpy.
75521         Set errno properly when returning NULL.
75522         Check for readdir error.
75523
75524 2000-06-26  Jim Meyering  <meyering@lucent.com>
75525
75526         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
75527
75528 2000-06-25  Jim Meyering  <meyering@lucent.com>
75529
75530         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
75531         Linux header bug when _XOPEN_SOURCE is defined to 500.
75532
75533 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75534
75535         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
75536         deficiency.
75537
75538 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75539
75540         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
75541         Include xalloc.h.
75542         Don't include <stdlib.h>.  Don't declare malloc, realloc.
75543
75544 2000-06-24  Jim Meyering  <meyering@lucent.com>
75545
75546         * m4/strerror_r.m4: Revive this file -- to try out an experimental
75547         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
75548         for which strerror does return char*, but which lacks a conveniently
75549         accessible declaration of the function.  If the compile-test says
75550         strerror_r doesn't work, then resort to a `run'-test that works on
75551         BeOS and segfaults on DEC Unix.
75552
75553 2000-06-24  Jim Meyering  <meyering@lucent.com>
75554
75555         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
75556
75557 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75558
75559         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
75560         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
75561
75562 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75563
75564         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
75565         (mbrtowc, mbstate_t): Define substitutes if
75566         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
75567         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
75568         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
75569
75570 2000-06-23  Jim Meyering  <meyering@lucent.com>
75571
75572         * m4/afs.m4: Add missing AC_MSG_RESULT.
75573         Reported by Bruno Haible.
75574
75575         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
75576         Suggestion from Bruno Haible.
75577
75578 2000-06-23  Jim Meyering  <meyering@lucent.com>
75579
75580         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
75581
75582 2000-06-21  Jim Meyering  <meyering@lucent.com>
75583
75584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
75585
75586 2000-06-21  Jim Meyering  <meyering@lucent.com>
75587
75588         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
75589         (noinst_HEADERS): Add getstr.h.
75590
75591         * lib/getline.c (getstr): Move into a separate file.
75592         * lib/getstr.c (getstr): New file, extracted from getline.c, with
75593         the following changes: new parameter, delim2; both delim[12]
75594         parameters have type `int', not `char'.  The latter would lose
75595         with 8-bit delimiters.
75596         * lib/getstr.h: New file.
75597
75598 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75599
75600         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
75601         than 1024, return a memory chunk of least possible size, instead
75602         of size PATH_MAX + 2. In the loop, increment the size proportionally.
75603         Use free/xmalloc instead of xrealloc to avoid copying for very long
75604         paths.
75605
75606 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75607
75608         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
75609         the empty string.
75610
75611 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75612
75613         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
75614         address, not strdup.  Include <stdlib.h> and don't declare free().
75615
75616 2000-06-19  Jim Meyering  <meyering@lucent.com>
75617
75618         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
75619
75620 2000-06-18  Jim Meyering  <meyering@lucent.com>
75621
75622         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
75623
75624         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
75625         `checking whether...' message to be consistent with that of the
75626         lstat test.
75627
75628 2000-06-18  Jim Meyering  <meyering@lucent.com>
75629
75630         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
75631         Besides, these days every porting target provides a mkdir function.
75632
75633         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
75634         needed. (this snippet comes from src/system.h).
75635
75636 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
75637
75638         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
75639
75640 2000-06-15  Paul Eggert  <eggert@twinsun.com>
75641
75642         * lib/human.c (adjust_value): New function.
75643         (human_readable_inexact): Apply rounding style even when
75644         printing approximate values.
75645
75646 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75647
75648         * lib/human.c (human_readable_inexact): Allow an input block
75649         size that is not a multiple of the output block size, and vice versa.
75650         Reported by Piergiorgio Sartor.
75651
75652 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75653
75654         * lib/getdate.y (get_date): Apply relative times after time
75655         zone indicator, not before.  Reported by Todd A. Jacobs.
75656
75657 2000-06-13  Jim Meyering  <meyering@lucent.com>
75658
75659         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
75660
75661         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
75662
75663 2000-06-12  Paul Eggert  <eggert@twinsun.com>
75664
75665         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
75666
75667 2000-06-12  Jim Meyering  <meyering@lucent.com>
75668
75669         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
75670         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
75671         optional argument.
75672         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
75673         the optional argument, `lib'.
75674
75675 2000-06-08  Jim Meyering  <meyering@lucent.com>
75676
75677         * m4/largefile.m4: Remove file (now that it's part of autoconf).
75678
75679 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75680
75681         Rewrite largefile configuration so that we don't need to run
75682         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
75683         AC_CANONICAL_HOST in configure.in -- jmm]
75684
75685         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
75686         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
75687         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
75688         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
75689         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
75690         All uses changed.
75691         Instead of inspecting the output of getconf, try to compile the
75692         test program without and with the macro definition.
75693         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
75694         for getconf.  Instead, check for the needed flags by compiling
75695         test programs.
75696
75697 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75698
75699         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
75700
75701 2000-06-04  Jim Meyering  <meyering@lucent.com>
75702
75703         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
75704         SunOS 4.1.4 for which gid_t is an unsigned type.
75705
75706 2000-06-03  Jim Meyering  <meyering@lucent.com>
75707
75708         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
75709         now that autoconf requires that.
75710
75711         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
75712         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
75713         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
75714
75715 2000-06-03  Jim Meyering  <meyering@lucent.com>
75716
75717         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
75718
75719 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75720
75721         * m4/glibc21.m4: New file.
75722         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
75723
75724 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75725
75726         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
75727         newer, don't install charset.alias.
75728         * lib/config.charset: Change the Linux/glibc rules so they become empty
75729         on glibc-2.1 or newer.
75730
75731 2000-06-02  Jim Meyering  <meyering@lucent.com>
75732
75733         * lib/mountlist.c: Back out last change.  Instead, do this...
75734         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
75735         me_dummy member using the same `ignore'-testing code.
75736         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
75737         fs_type strings.
75738         From Mark D. Roth.
75739
75740 2000-05-29  Jim Meyering  <meyering@lucent.com>
75741
75742         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
75743         mounts with the `ignore' attribute.  Based on a patch from
75744         Mark D. Roth.
75745
75746 2000-05-28  Jim Meyering  <meyering@lucent.com>
75747
75748         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
75749         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75750         * m4/stat.m4: Likewise.
75751         * m4/lstat.m4: Likewise.
75752         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
75753
75754         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
75755         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
75756
75757 2000-05-26  Jim Meyering  <meyering@lucent.com>
75758
75759         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
75760
75761 2000-05-24  Jim Meyering  <meyering@lucent.com>
75762
75763         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
75764         autoconf requires that.
75765         * m4/lib-check.m4: Likewise.
75766         * m4/jm-macros.m4: Likewise.
75767         * m4/strftime.m4: Likewise.
75768
75769         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
75770         AC_CHECK_DECLS, now that autoconf requires that.
75771
75772 2000-05-22  Jim Meyering  <meyering@lucent.com>
75773
75774         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75775         * m4/lstat.m4: Likewise.
75776
75777 2000-05-22  Jim Meyering  <meyering@lucent.com>
75778
75779         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
75780
75781 2000-05-20  Jim Meyering  <meyering@lucent.com>
75782
75783         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
75784         (jm_PREREQ): Use it.
75785
75786 2000-05-18  Jim Meyering  <meyering@lucent.com>
75787
75788         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
75789         back, too, since it may have been modified by allocate_entry.
75790         (hash_delete): Rewrite to use neither the assignment operator
75791         nor the comma operator in an if-expression.
75792
75793 2000-05-15  Paul Eggert  <eggert@twinsun.com>
75794
75795         * lib/closeout.c:
75796         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
75797         Remove; no longer needed.
75798         "quotearg.h": Add include.
75799         (file_name): Do not bother to explicitly initialize to NULL; it's less
75800         efficient on some hosts.
75801         (close_stdout_status): Remove test as to whether stdout was already
75802         closed; it breaks for the case "echo x | sort >&-".
75803         Quote file name colons.
75804         Do not assume that _("write error") lacks format strings.
75805
75806 2000-05-15  Jim Meyering  <meyering@lucent.com>
75807
75808         * lib/version-etc.c (version_etc_copyright): Update the copyright
75809         string used in all --version output.
75810
75811 2000-05-14  Jim Meyering  <meyering@lucent.com>
75812
75813         * lib/closeout.c (close_stdout_set_file_name): New function.
75814         (close_stdout_status): Use new file-scoped global.
75815         Return right away if fstat says the stdout file descriptor is invalid.
75816         * lib/closeout.h (close_stdout_set_file_name): Declare.
75817
75818 2000-05-10  Jim Meyering  <meyering@lucent.com>
75819
75820         * lib/closeout.c [default_exit_status]: New file-scoped variable.
75821         (close_stdout_set_status): New function.
75822         * lib/closeout.h (close_stdout_set_status): Declare.
75823
75824 2000-05-09  Jim Meyering  <meyering@lucent.com>
75825
75826         * m4/gettext.m4: Rename this...
75827         * m4/libintl.m4: ...to this.
75828
75829 2000-05-08  Jim Meyering  <meyering@lucent.com>
75830
75831         * lib/long-options.c: Don't include closeout.h.
75832         (parse_long_options): Don't call close_stdout for --version.
75833
75834 2000-05-06  Paul Eggert  <eggert@twinsun.com>
75835
75836         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
75837         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
75838         2.1.3 bug.  This avoids a clash when files like regex.c define
75839         _GNU_SOURCE.
75840
75841 2000-05-06  Jim Meyering  <meyering@lucent.com>
75842
75843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
75844         (AC_REPLACE_FUNCS): Add strnlen.
75845
75846         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
75847         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
75848
75849         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
75850         AC_SEARCH_LIBS call for nanosleep.
75851         (LIB_NANOSLEEP): Set and AC_SUBST.
75852
75853 2000-05-06  Jim Meyering  <meyering@lucent.com>
75854
75855         * lib/strnlen.c: Undefine __strnlen and strnlen.
75856         [!weak_alias]: Define __strnlen to strnlen.
75857
75858         * lib/atexit.c: New file, from libiberty.
75859
75860 2000-05-06  Jim Meyering  <meyering@lucent.com>
75861
75862         * lib/closeout.c (close_stdout_status): Also check for errors on the
75863         stderr stream.
75864
75865 2000-05-05  Jim Meyering  <meyering@lucent.com>
75866
75867         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
75868         AC_SEARCH_LIBS call for clock_gettime.
75869         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
75870
75871         * m4/search-libs.m4: Update from autoconf.
75872
75873         su doesn't work on Solaris 2.6.
75874         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
75875         <shadow.h>.  Reported by Dragos Harabor.
75876
75877 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
75878
75879         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
75880         memcpy instead of xmalloc, xrealloc, path_concat.
75881         (locale_charset): Treat empty environment variables as absent.
75882         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
75883
75884 2000-05-04  Jim Meyering  <meyering@lucent.com>
75885
75886         * lib/getopt.c: Update from glibc.
75887         * lib/obstack.c: Likewise.
75888         * lib/obstack.h: Likewise.
75889         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
75890         file
75891
75892         * lib/regex.h: Likewise.
75893         * lib/strndup.c: Likewise.
75894         * lib/strnlen.c: New file, from glibc.
75895
75896 2000-05-03  Jim Meyering  <meyering@lucent.com>
75897
75898         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
75899
75900 2000-05-02  Paul Eggert  <eggert@twinsun.com>
75901
75902         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
75903         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
75904         compile-time test, rather than inspecting host and OS, to
75905         decide whether to define _LARGEFILE_SOURCE.
75906
75907 2000-05-01  Jim Meyering  <meyering@lucent.com>
75908
75909         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
75910
75911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
75912         Based on a patch from Bruno Haible.
75913
75914 2000-05-01  Jim Meyering  <meyering@lucent.com>
75915
75916         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
75917
75918 2000-04-29  Jim Meyering  <meyering@lucent.com>
75919
75920         * lib/path-concat.c: Declare strdup only if it's not defined.
75921         * lib/canon-host.c: Likewise.
75922
75923 2000-04-28  Jim Meyering  <meyering@lucent.com>
75924
75925         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
75926         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
75927         is included first, then limits.h is included by locale.h by libintl.h.
75928         From John David Anglin.
75929
75930 2000-04-25  Jim Meyering  <meyering@lucent.com>
75931
75932         * lib/makepath.c (S_IRWXUGO): Define.
75933         (make_path): Always perform explicit chmod if MODE specifies any
75934         of the `special' permission bits.  Prompted by a bug report against
75935         install from Mate Wierdl and Joost van Baal.
75936
75937 2000-04-18  Jim Meyering  <meyering@lucent.com>
75938
75939         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
75940         (jm_PREREQ): Use it.
75941
75942 2000-04-18  Jim Meyering  <meyering@lucent.com>
75943
75944         * lib/README: New file.
75945
75946         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
75947         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
75948
75949 2000-04-17  Jim Meyering  <meyering@lucent.com>
75950
75951         Get it right :-)
75952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
75953         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
75954         Suggestion from Akim Demaille.
75955
75956 2000-04-17  Jim Meyering  <meyering@lucent.com>
75957
75958         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
75959         the definition of it to rpl_strftime also defined-away the system's
75960         declaration.
75961
75962 2000-04-15  Jim Meyering  <meyering@lucent.com>
75963
75964         Use `C' to denote so-called `contiguous' files, the same way
75965         that tar does.
75966         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
75967         (ftypelet): Use S_ISCTG.
75968         From Michael Deutschmann.
75969
75970 2000-04-14  Jim Meyering  <meyering@lucent.com>
75971
75972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
75973         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
75974         clobbered.
75975
75976 2000-04-14  Jim Meyering  <meyering@lucent.com>
75977
75978         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
75979
75980 2000-04-13  Jim Meyering  <meyering@lucent.com>
75981
75982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
75983         AH_VERBATIM to insert required #ifndef into config.h.in.
75984         Suggestion from Akim Demaille.
75985
75986 2000-04-12  Jim Meyering  <meyering@lucent.com>
75987
75988         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
75989         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
75990         Christian Krackowizer.
75991
75992         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
75993         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
75994         (AC_SYS_LARGEFILE): Require.
75995         (AM_C_PROTOTYPES): Require.
75996
75997 2000-04-08  Jim Meyering  <meyering@lucent.com>
75998
75999         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
76000         names don't conflict.  Reported by Eli Zaretskii.
76001
76002 2000-04-07  Jim Meyering  <meyering@lucent.com>
76003
76004         * lib/putenv.c: Move inclusion of errno.h so it follows that of
76005         sys/types.h, to work around system header problems on AIX 3.2.5.
76006         From Bruno Haible.
76007
76008 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
76009
76010         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
76011         bug.  Deal with the different error behavior of Irix iconv.
76012
76013 2000-04-05  Paul Eggert  <eggert@twinsun.com>
76014
76015         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
76016         IRIX if the installer said otherwise.
76017
76018 2000-04-05  Jim Meyering  <meyering@lucent.com>
76019
76020         Portability tweaks required for ultrix4.3.
76021         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
76022         (jm_CHECK_DECLS): Add getutent to the list of functions.
76023         (_jm_DECL_HEADERS): Add utmpx.h.
76024         From John David Anglin.
76025
76026         * m4/strftime.m4: Back out the 2000-04-02 change.
76027         Instead of that change, simply undefine putenv in the test program.
76028
76029 2000-04-05  Jim Meyering  <meyering@lucent.com>
76030
76031         Portability tweaks required for ultrix4.3.
76032         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
76033         getutent.
76034         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
76035         * lib/canon-host.c: Declare strdup.
76036         * lib/path-concat.c: Likewise.
76037         From John David Anglin.
76038
76039 2000-04-04  Jim Meyering  <meyering@lucent.com>
76040
76041         Be more DOS 8.3-friendly.
76042         * lib/ref-add.sin: Renamed from ref-add.sed.in.
76043         * lib/ref-del.sin: Renamed from ref-del.sed.in.
76044         * lib/Makefile.am: Reflect renaming.
76045         Reported by Eli Zaretskii.
76046
76047         Use a temporary file name that won't clash with `charset.alias'
76048         in the DOS 8.3 name space.
76049         * lib/Makefile.am (charset_tmp): Define.
76050         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
76051         (uninstall-local): Likewise.
76052         Reported by Eli Zaretskii.
76053
76054 2000-04-03  Jim Meyering  <meyering@lucent.com>
76055
76056         * m4/gettext.m4: Fix typo in comment.
76057
76058         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
76059         textutils/configure.in).  Suggestion from Paul Eggert.
76060         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
76061
76062 2000-04-02  Paul Eggert  <eggert@twinsun.com>
76063
76064         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
76065         variable in the shell rather than using putenv, which isn't
76066         portable.  This avoids the configure-time inter-test dependency
76067         on the potentially-renamed putenv function.
76068
76069 2000-03-30  Paul Eggert  <eggert@twinsun.com>
76070
76071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
76072         before checking struct stat.st_blksize, so that
76073         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
76074
76075 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76076
76077         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
76078         since strftime.c uses HAVE_STRFTIME to decide whether to use
76079         the underlying strftime.
76080
76081 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76082
76083         * lib/time/strftime.c (my_strftime): Make sure we call the system
76084         strftime, not ourselves, when invoking the underlying strftime.
76085
76086 2000-03-24  Jim Meyering  <meyering@lucent.com>
76087
76088         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
76089         (charset_alias): Define.
76090         (install-exec-local): Factor out common code.
76091         (uninstall-local): Split lines longer than 80.
76092         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
76093         (SUFFIXES): Define.
76094         (.sed.in.sed): New rule.  Don't redirect directly to $@.
76095         (CLEANFILES): Add ref-add.sed and ref-del.sed.
76096
76097 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
76098
76099         * lib/config.charset: Output a line containing "Packages using this
76100         file".
76101         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
76102         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
76103         ref-del.sed): New rules.
76104
76105 2000-03-17  Jim Meyering  <meyering@lucent.com>
76106
76107         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
76108         Otherwise, include <strings.h>
76109
76110 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
76111
76112         * lib/unicodeio.c (utf8_wctomb): New function.
76113         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
76114         format instead of in UCS-4 with platform dependent endianness.
76115
76116 2000-03-10  Jim Meyering  <meyering@lucent.com>
76117
76118         * m4/lib-check.m4: Look for getspnam in -lgen, too.
76119         From Marco Franzen.
76120
76121 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76122
76123         * lib/savedir.c (savedir): Work even if directory size is
76124         negative; this can happen with some screwy NFS configurations.
76125
76126 2000-03-06  Jim Meyering  <meyering@lucent.com>
76127
76128         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76129         if it's NULL (because we ran out of memory).  From Bruno Haible.
76130
76131 2000-03-05  Jim Meyering  <meyering@lucent.com>
76132
76133         * lib/localcharset.c ("path-concat.h"): Include.
76134         (get_charset_aliases): Use path_concat instead of ANSI string
76135         concatenation.
76136
76137         * lib/unicodeio.h (PARAMS): Define.
76138         Use it to guard prototype.
76139
76140 2000-03-04  Jim Meyering  <meyering@lucent.com>
76141
76142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
76143         for lib/localcharset.c.
76144
76145 2000-03-04  Jim Meyering  <meyering@lucent.com>
76146
76147         * lib/Makefile.am (install-exec-local): Create $(libdir) before
76148         installing into it.
76149         (uninstall-local): Uncomment this rule so `make distcheck' works
76150         once again.
76151
76152         * lib/unicodeio.c (<errno.h>): Include it.
76153         (errno): Declare if not defined.
76154
76155         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
76156
76157         * lib/config.charset: New version, incorporating remarks from a linux
76158         i18n mailing list.  From Bruno Haible.
76159
76160 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
76161
76162         * m4/codeset.m4: New file.
76163         * m4/iconv.m4: New file.
76164         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
76165
76166 2000-03-03  Jim Meyering  <meyering@lucent.com>
76167
76168         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
76169
76170 2000-03-02  Jim Meyering  <meyering@lucent.com>
76171
76172         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
76173         the messages come out on separate lines.
76174
76175         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
76176         rather than jm_CHECK_DECLARATIONS.
76177         * m4/decl.m4: Remove now-unused file.
76178
76179         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
76180         geteuid.
76181
76182 2000-03-02  Jim Meyering  <meyering@lucent.com>
76183
76184         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
76185
76186 2000-03-01  Jim Meyering  <meyering@lucent.com>
76187
76188         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
76189         * lib/unicodeio.c: Likewise.
76190
76191 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
76192
76193         * lib/config.charset: New file.
76194         * lib/localcharset.c: New file.
76195         * lib/unicodeio.h, lib/unicodeio.c: New files.
76196         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
76197         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
76198         (noinst_HEADERS): Add unicodeio.h.
76199         (all-local, install-exec-local, charset.alias): New targets.
76200
76201 2000-02-28  Paul Eggert  <eggert@twinsun.com>
76202
76203         * lib/quotearg.c (ALERT_CHAR): New macro.
76204         (quotearg_buffer_restyled): Use it.
76205
76206 2000-02-27  Jim Meyering  <meyering@lucent.com>
76207
76208         * m4/check-decl.m4: Add getenv to the list.
76209
76210 2000-02-27  Jim Meyering  <meyering@lucent.com>
76211
76212         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
76213         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
76214
76215         * lib/backupfile.c: Guard inclusion of stdlib.h with
76216         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
76217         Declare malloc if needed.
76218
76219         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
76220         `#ifndef HAVE_DECL..'
76221         now that autoconf always defines the HAVE_DECL_ symbols.
76222         * lib/human.c: Likewise.
76223         * lib/same.c: Likewise.
76224         * lib/strtoumax.c: Likewise.
76225
76226         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
76227         declaration check was not run.
76228         * lib/hash.c: Likewise.
76229         * lib/human.c: Likewise.
76230         * lib/same.c: Likewise.
76231         * lib/strtoumax.c: Likewise.
76232
76233         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
76234         `.', then first look up the entire `.'-containing string as a login
76235         name.
76236
76237 2000-02-23  Jim Meyering  <meyering@lucent.com>
76238
76239         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
76240         in place of my hack.
76241
76242 2000-02-18  Paul Eggert  <eggert@twinsun.com>
76243
76244         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
76245         (textint): New typedef.
76246         (parser_control): Member year changed from int to textint.
76247         All uses changed.
76248         (YYSTYPE): Removed; replaced by %union with int and textint members.
76249         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
76250         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
76251         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
76252         (tSNUMBER, tUNUMBER): Now of type <textintval>.
76253         (date, number, to_year): Use width of number in digits, not its value,
76254         to determine whether it's a 2-digit year, or a 2-digit time.
76255         (yylex): Store number of digits of numeric tokens.
76256         Reported by John Kendall.
76257
76258         (parser_control): Changed from struct parser_control to typedef (for
76259         consistency).  All uses changed.
76260
76261         (tID): Removed; not used.
76262         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
76263
76264 2000-02-14  Paul Eggert  <eggert@twinsun.com>
76265
76266         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
76267         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
76268
76269 2000-02-12  Jim Meyering  <meyering@lucent.com>
76270
76271         * lib/userspec.c (ISDIGIT): Define it.
76272         (isdigit): Remove definition.
76273         (is_number): Use ISDIGIT, not isdigit.
76274         <libintl.h>: Include.
76275         (_ and N_): Define.
76276         (parse_user_spec): Mark translatable strings.
76277
76278 2000-02-10  Jim Meyering  <meyering@lucent.com>
76279
76280         With these changes, nanosleep.[ch] are finally enough like the other
76281         lib/* replacement files to compile on a few more losing systems.
76282
76283         * lib/nanosleep.h: Don't include config.h.
76284         Remove prototype from declaration of nanosleep.
76285         (PARAMS): Remove now-unneeded definition.
76286         * lib/nanosleep.c: #undef nanosleep.
76287         (rpl_nanosleep): Rename from nanosleep.
76288
76289 2000-02-10  Jim Meyering  <meyering@lucent.com>
76290
76291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
76292         gnu_nanosleep to rpl_nanosleep.
76293
76294 2000-02-09  Jim Meyering  <meyering@lucent.com>
76295
76296         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
76297         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
76298
76299 2000-02-08  Akim Demaille  <akim@epita.fr>
76300
76301         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
76302         `[' and `]' and remove uses of `changequote'.
76303         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
76304         (AC_SYS_LARGEFILE): Likewise.
76305         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76306         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
76307         of changequote.
76308         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
76309         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
76310         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
76311         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
76312
76313 2000-02-05  Jim Meyering  <meyering@lucent.com>
76314
76315         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
76316         Remove explicit use of AC_HEADER_TIME.  It is required by
76317         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
76318         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
76319         in autoconf whereby the expansion of the latter ended up preceding
76320         the expansion of its prerequisite, AC_HEADER_TIME.
76321         Reported by Volker Borchert.
76322
76323 2000-02-03  Jim Meyering  <meyering@lucent.com>
76324
76325         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
76326
76327 2000-02-03  Jim Meyering  <meyering@lucent.com>
76328
76329         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
76330         rather than with `#if HAVE_UTMPNAME'.
76331
76332 2000-02-02  Jim Meyering  <meyering@lucent.com>
76333
76334         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76335         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76336         Reported by Eli Zaretskii.
76337
76338 2000-02-01  Jim Meyering  <meyering@lucent.com>
76339
76340         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76341
76342 2000-01-31  Jim Meyering  <meyering@lucent.com>
76343
76344         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76345         functions.  Add the time.h and sys/time.h headers along with the
76346         AC_REQUIRE'ment of AC_HEADER_TIME.
76347
76348 2000-01-31  Jim Meyering  <meyering@lucent.com>
76349
76350         * lib/nanosleep.h (nanosleep): Guard declaration with
76351         `#if ! HAVE_DECL_NANOSLEEP'.
76352         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76353         the declaration in that vendor's sys/timers.h.
76354         Reported by Christian Krackowizer.
76355
76356         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76357         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76358         (ISPRINT): Likewise.
76359         Reported by Tom Tromey.
76360
76361 2000-01-30  Jim Meyering  <meyering@lucent.com>
76362
76363         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
76364
76365         * m4/prereq.m4 (utmp_includes): Define.
76366         Check for ut_user and ut_name members in both struct utmpx
76367         and struct utmp.
76368
76369 2000-01-30  Jim Meyering  <meyering@lucent.com>
76370
76371         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
76372         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
76373         header files where only utmpx.ut_user is declared.
76374
76375         * lib/readutmp.h (UT_USER): Define.
76376
76377 2000-01-29  Jim Meyering  <meyering@lucent.com>
76378
76379         * m4/lib-check.m4: New file containing library-related checks from
76380         fileutils and sh-utils (textutils had none).
76381
76382 2000-01-28  Jim Meyering  <meyering@lucent.com>
76383
76384         * m4/perl.m4: Change format of warning message to look more like that
76385         from the missing script.  Suggestion from François Pinard.
76386
76387 2000-01-25  Jim Meyering  <meyering@lucent.com>
76388
76389         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
76390         well as time.h in the compile check.
76391         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
76392         Fix typo in cross-compiling case: s/yes/no/.
76393
76394 2000-01-23  Jim Meyering  <meyering@lucent.com>
76395
76396         * m4/jm-macros.m4: Move df-related tests here from
76397         fileutils/configure.in
76398
76399         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
76400         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
76401
76402         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
76403         s/space/ac_fsusage_space/.
76404         (jm_FILE_SYSTEM_USAGE): Take two parameters.
76405
76406         * m4/ftruncate.m4: New file (derived from part of
76407         fileutils/configure.in).
76408         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
76409         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
76410
76411         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
76412         AC_SUBST these here, rather than just in sh-util/configure.in, so
76413         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
76414         all the same.
76415         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
76416         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
76417         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
76418         (AC_SUBST(POW_LIBM)): Likewise.
76419         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
76420
76421 2000-01-23  Jim Meyering  <meyering@lucent.com>
76422
76423         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
76424         obstack.c.
76425
76426 2000-01-22  Jim Meyering  <meyering@lucent.com>
76427
76428         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
76429
76430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
76431
76432         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
76433         configure.in
76434         (AC_CHECK_HEADERS): Likewise for sh-utils.
76435         (AC_CHECK_HEADERS): Likewise for textutils.
76436         Merge the three lists of headers.
76437
76438         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
76439         from fileutils' configure.in.
76440
76441         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
76442         code. Moved tests into their own function (_jm_DECL_HEADERS) in
76443         check-decl.m4.
76444
76445         * m4/check-decl.m4: Use #if rather than #ifdef.
76446         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
76447         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
76448         (_jm_DECL_HEADERS): Define new function.
76449         (jm_CHECK_DECLARATIONS): Require it.
76450
76451 2000-01-22  Jim Meyering  <meyering@lucent.com>
76452
76453         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
76454         [! HAVE_DECL_STRTOULL]: Declare strtoull.
76455         Required for some AIX systems.  Reported by Christian Krackowizer.
76456         [TESTING] (main): New function.
76457
76458         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
76459         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
76460         letters.
76461
76462         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
76463         iswprint.
76464
76465         * lib/strverscmp.c (ISDIGIT): Define.
76466         (strverscmp): Use ISDIGIT, not isdigit.
76467
76468 2000-01-19  Jim Meyering  <meyering@lucent.com>
76469
76470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76471         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76472         defines `struct timespec' in <sys/time.h>
76473
76474         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76475         Thanks to Akim for explaining.
76476
76477 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76478
76479         * lib/nanosleep.c (nanosleep):
76480         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76481         POSIX.1 doesn't require SA_INTERRUPT and some systems
76482         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76483         it's been part of POSIX.1 since day 1 (in 1988).
76484
76485 2000-01-17  Jim Meyering  <meyering@lucent.com>
76486
76487         * lib/interlock: Remove unused file.  Reported by François Pinard.
76488
76489 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76490
76491         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76492         alert, backslash, formfeed, and vertical tab unnecessarily in
76493         shell quoting style.
76494
76495 2000-01-16  Jim Meyering  <meyering@lucent.com>
76496
76497         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76498         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76499         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76500         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76501
76502 2000-01-16  Jim Meyering  <meyering@lucent.com>
76503
76504         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76505         because the latter didn't work.
76506
76507 2000-01-15  Jim Meyering  <meyering@lucent.com>
76508
76509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
76510         (AC_REPLACE_FUNCS): Add memcpy and memset.
76511         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
76512         Add strpbrk.
76513         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
76514
76515 2000-01-12  Jim Meyering  <meyering@lucent.com>
76516
76517         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
76518         (jm_PREREQ): Use it.
76519         (jm_PREREQ_READUTMP): New macro.
76520         (jm_PREREQ): Use it.
76521
76522 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76523
76524         Quote multibyte characters correctly.
76525         * m4/c-bs-a.m4: New file.
76526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
76527         (jm_PREREQ): Use it.
76528
76529 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76530
76531         * m4/uintmax_t.m4: Port to autoconf 2.13.
76532
76533 2000-01-08  Jim Meyering  <meyering@ascend.com>
76534
76535         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
76536         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
76537
76538 2000-01-04  Jim Meyering  <meyering@ascend.com>
76539
76540         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
76541         jm_STRUCT_DIRENT_D_TYPE.
76542         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
76543         jm_STRUCT_DIRENT_D_INO.
76544         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
76545         jm_STRUCT_UTIMBUF.
76546         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
76547         renamings.
76548         * m4/utime.m4: Likewise.
76549
76550         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
76551         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
76552
76553 2000-01-03  Paul Eggert  <eggert@twinsun.com>
76554
76555         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
76556         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
76557
76558 2000-01-02  Jim Meyering  <meyering@ascend.com>
76559
76560         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
76561         remember if this is necessary.
76562
76563 1999-12-26  Jim Meyering  <meyering@ascend.com>
76564
76565         * m4/jm-macros.m4: Use it here.
76566         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
76567
76568 1999-12-23  Jim Meyering  <meyering@ascend.com>
76569
76570         * m4/jm-macros.m4: Check for clock_gettime (moved from
76571         fileutils/configure.in)
76572         Check for gettimeofday.
76573
76574 1999-12-20  Jim Meyering  <meyering@ascend.com>
76575
76576         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
76577         autoconf-2.14a-1999-12-20.
76578
76579 1999-12-19  Jim Meyering  <meyering@ascend.com>
76580
76581         * m4/lstat-slash.m4: New file.
76582         * m4/jm-macros.m4: Use the new macro:
76583         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76584
76585 1999-12-07  Jim Meyering  <meyering@ascend.com>
76586
76587         * m4/perl.m4: Require that File::Compare be available, too.
76588         Too many systems seem to lack it.
76589
76590         * m4/strftime.m4: Add checks for most of the cpp macros tested in
76591         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
76592
76593 1999-11-18  Paul Eggert  <eggert@twinsun.com>
76594
76595         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
76596         problem with the QNX 4.25 shell, which doesn't propagate exit
76597         status of failed commands inside shell assignments.
76598
76599 1999-11-17  Jim Meyering  <meyering@ascend.com>
76600
76601         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
76602
76603 1999-11-07  Jim Meyering  <meyering@ascend.com>
76604
76605         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
76606
76607 1999-11-06  Jim Meyering  <meyering@ascend.com>
76608
76609         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
76610         * m4/jm-macros.m4 (jm_MACROS): Use it here.
76611
76612 1999-11-05  Jim Meyering  <meyering@ascend.com>
76613
76614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
76615         configure.in of textutils, fileutils, and sh-utils into this one
76616         (shared between those packages) file.
76617         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
76618         AC_STRUCT_ST_BLKSIZE.
76619
76620 1999-11-03  Jim Meyering  <meyering@ascend.com>
76621
76622         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
76623         of AC_CHECK_TYPE checks includes unistd.h.
76624         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
76625         Suggestion from Akim Demaille.
76626
76627 1999-10-30  Jim Meyering  <meyering@ascend.com>
76628
76629         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
76630         m4-quoted string.
76631         * m4/ls-mntd-fs.m4: Likewise.
76632         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
76633         * m4/jm-winsz1.m4: Likewise.
76634
76635         * m4/const.m4: Remove file, since the fix made it into the experimental
76636         version of autoconf.
76637         * m4/mktime.m4: Likewise.
76638
76639         * m4/check-type.m4: Remove file, now that the latest version of
76640         AC_CHECK_TYPE takes a third arg to specify additional #includes.
76641
76642         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
76643         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
76644         AC_CHECK_TYPE.
76645
76646 1999-10-04  Jim Meyering  <meyering@ascend.com>
76647
76648         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
76649
76650 1999-09-22  Paul Eggert  <eggert@twinsun.com>
76651
76652         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
76653         2.95.1 bug with HP-UX 10.20.
76654
76655 1999-09-17  Jim Meyering  <meyering@ascend.com>
76656
76657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
76658         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
76659         due to missing strdup (against sh-utils-2.0).
76660
76661 1999-08-29  Jim Meyering  <meyering@ascend.com>
76662
76663         * m4/jm-macros.m4: Require jm_BISON.
76664         * m4/bison.m4: New file.
76665
76666 1999-08-17  Paul Eggert  <eggert@twinsun.com>
76667
76668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
76669         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
76670
76671 1999-08-05  Jim Meyering  <meyering@ascend.com>
76672
76673         * m4/getline.m4: Rename test file from conftestdata to conftest.data
76674         to avoid conflicts with `conftest' on 8+3 filesystems.
76675         Suggestion from Eli Zaretskii.
76676
76677 1999-08-04  Jim Meyering  <meyering@ascend.com>
76678
76679         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
76680         fileutils and sh-utils (textutils's getline test was inadequate).
76681         (AM_FUNC_GETLINE): Run this test.
76682         (AC_CHECK_FUNCS): Check for getdelim.
76683         Reported by Bob Proulx.
76684
76685 1999-08-02  Jim Meyering  <meyering@ascend.com>
76686
76687         * m4/jm-macros.m4: Add a comment.
76688
76689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76690
76691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
76692         <inttypes.h> defines strtoumax as a macro (and not as a
76693         function).
76694
76695 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76696
76697         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
76698         that we can shift, multiply and divide unsigned long long
76699         values; Ultrix cc can't do it.
76700
76701 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76702
76703         * m4/mktime.m4: New file, which is a preview of what should appear
76704         in the next public autoconf release.
76705
76706 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76707
76708         * m4/lfs.m4: Remove this file.
76709         * m4/largefile.m4: New file.  It contains the old contents of
76710         lfs.m4, except that all names with prefix AC_LFS have been
76711         changed to use the prefix AC_SYS_LARGEFILE instead, to be
76712         compatible with future autoconf versions.  Also, some minor m4
76713         quoting problems have been fixed.
76714
76715 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76716
76717         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
76718         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
76719         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
76720         and simplify the shell code.
76721
76722 1999-08-01  Jim Meyering  <meyering@ascend.com>
76723
76724         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
76725         m4.
76726
76727 1999-07-20  Jim Meyering  <meyering@ascend.com>
76728
76729         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
76730
76731 1999-07-15  Jim Meyering  <meyering@ascend.com>
76732
76733         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
76734
76735 1999-05-22  Jim Meyering  <meyering@ascend.com>
76736
76737         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
76738
76739 1999-05-20  Jim Meyering  <meyering@ascend.com>
76740
76741         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
76742         Add a colon after each `then' in case $4 is empty.
76743
76744 1999-05-16  Jim Meyering  <meyering@ascend.com>
76745
76746         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
76747
76748 1999-05-10  Jim Meyering  <meyering@ascend.com>
76749
76750         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
76751
76752         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
76753         AC_FUNC_MKTIME.
76754
76755 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
76756
76757         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
76758
76759 1999-05-04  Paul Eggert  <eggert@twinsun.com>
76760
76761         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
76762         not CPPFLAGS, so that linking works correctly in IRIX.
76763
76764 1999-04-30  Paul Eggert  <eggert@twinsun.com>
76765
76766         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
76767
76768 1999-04-20  Paul Eggert  <eggert@twinsun.com>
76769
76770         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
76771         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
76772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
76773         jm_AC_TYPE_UNSIGNED_LONG_LONG.
76774         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
76775
76776         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
76777
76778 1999-04-20  Jim Meyering  <meyering@ascend.com>
76779
76780         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
76781         AC_REPLACE xstroull if necessary.  From Paul Eggert.
76782         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
76783
76784 1999-04-18  Jim Meyering  <meyering@ascend.com>
76785
76786         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
76787         * m4/jm-macros.m4: Use it.
76788
76789 1999-04-06  Jim Meyering  <meyering@ascend.com>
76790
76791         * m4/strftime.m4: Remove test for %f.
76792
76793 1999-03-29  Jim Meyering  <meyering@ascend.com>
76794
76795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
76796         superset of the AC_TYPE_* checks in the textutils, fileutils,
76797         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
76798         AC_TYPE_PID_T.
76799
76800 1999-03-28  Jim Meyering  <meyering@ascend.com>
76801
76802         * m4/jm-macros.m4: Define GNU_PACKAGE here.
76803         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
76804         replaced e.g., in the *.sh files of the sh-utils.
76805
76806 1999-03-20  Jim Meyering  <meyering@ascend.com>
76807
76808         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
76809         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
76810         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
76811
76812 1999-03-19  Jim Meyering  <meyering@ascend.com>
76813
76814         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
76815
76816 1999-03-12  Jim Meyering  <meyering@ascend.com>
76817
76818         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
76819
76820 1999-03-07  Jim Meyering  <meyering@ascend.com>
76821
76822         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
76823         declared.
76824
76825 1999-02-17  Jim Meyering  <meyering@ascend.com>
76826
76827         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
76828         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
76829
76830 1999-02-07  Jim Meyering  <meyering@ascend.com>
76831
76832         * m4/group-member.m4: New file -- extracted from sh-utils'
76833         configure.in.
76834
76835         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
76836         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
76837
76838 1999-02-06  Jim Meyering  <meyering@ascend.com>
76839
76840         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
76841         * m4/fnmatch.m4: Likewise.
76842         * m4/getgroups.m4: Likewise.
76843         * m4/lstat.m4: Likewise.
76844         * m4/malloc.m4: Likewise.
76845         * m4/putenv.m4: Likewise.
76846         * m4/realloc.m4: Likewise.
76847         * m4/regex.m4: Likewise.
76848         * m4/stat.m4: Likewise.
76849         * m4/strftime.m4: Likewise.
76850         Suggestion from Alain Magloire.
76851
76852         * m4/chown.m4: Use `.$ac_objext', not `.o'.
76853         * m4/fnmatch.m4: Likewise.
76854         * m4/getgroups.m4: Likewise.
76855         * m4/getline.m4: Likewise.
76856         * m4/lstat.m4: Likewise.
76857         * m4/malloc.m4: Likewise.
76858         * m4/memcmp.m4: Likewise.
76859         * m4/putenv.m4: Likewise.
76860         * m4/realloc.m4: Likewise.
76861         * m4/regex.m4: Likewise.
76862         * m4/stat.m4: Likewise.
76863         * m4/strftime.m4: Likewise.
76864         Suggestion from Alain Magloire.
76865
76866         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
76867         an argument.
76868
76869         * m4/regex.m4: Add a run-time Test for proper operation of
76870         re_compile_pattern.
76871
76872 1999-01-31  Jim Meyering  <meyering@ascend.com>
76873
76874         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
76875
76876 1999-01-30  Jim Meyering  <meyering@ascend.com>
76877
76878         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
76879
76880         * m4/jm-mktime.m4: Make this a wrapper around the official
76881         AM_FUNC_MKTIME rather than my private copy, now that the official one
76882         is up to date.
76883         * m4/mktime.m4: Remove file.
76884
76885         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
76886         * m4/uptime.m4: Likewise.
76887         * m4/uintmax_t.m4: Likewise.
76888
76889 1999-01-28  Jim Meyering  <meyering@ascend.com>
76890
76891         * m4/jm-macros.m4: Use jm_AFS.
76892         * m4/afs.m4: New file (from fileutils' configure.in).
76893
76894         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
76895         * m4/chown.m4: Likewise.
76896         * m4/d-ino.m4: Likewise.
76897         * m4/d-type.m4: Likewise.
76898         * m4/fnmatch.m4: Likewise.
76899         * m4/getgroups.m4: Likewise.
76900         * m4/gettext.m4: Likewise.
76901         * m4/jm-mktime.m4: Likewise.
76902         * m4/jm-winsz2.m4: Likewise.
76903         * m4/lcmessage.m4: Likewise.
76904         * m4/ls-mntd-fs.m4: Likewise.
76905         * m4/malloc.m4: Likewise.
76906         * m4/memcmp.m4: Likewise.
76907         * m4/putenv.m4: Likewise.
76908         * m4/realloc.m4: Likewise.
76909         * m4/st_mtim.m4: Likewise.
76910         * m4/strftime.m4: Likewise.
76911
76912 1999-01-16  Jim Meyering  <meyering@ascend.com>
76913
76914         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
76915         (ARGMATCH_DIE_DECL): Define.
76916
76917 1999-01-12  Jim Meyering  <meyering@ascend.com>
76918
76919         * m4/Makefile.am.in: Rewrite to avoid using fmt.
76920         Reported by Lars Hecking.
76921
76922 1999-01-10  Jim Meyering  <meyering@ascend.com>
76923
76924         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
76925         gross kludge.
76926         * m4/inttypes_h.m4: Likewise.
76927         * m4/lstat.m4: Likewise.
76928         * m4/malloc.m4: Likewise.
76929         * m4/readdir.m4: Likewise.
76930         * m4/realloc.m4: Likewise.
76931         * m4/st_dm_mode.m4: Likewise.
76932         * m4/stat.m4: Likewise.
76933         * m4/utimbuf.m4: Likewise.
76934         * m4/utimes.m4: Likewise.
76935
76936         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
76937         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
76938         comments in config.h.in are meaningful.
76939
76940         * m4/jm-macros.m4: Require autoconf-2.13 here.
76941
76942         * m4/regex.m4: By default, don't use the included regex.c on systems
76943         with glibc 2.  Suggestion from Uli Drepper.
76944
76945 1999-01-02  Jim Meyering  <meyering@ascend.com>
76946
76947         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
76948
76949 1998-12-18  Jim Meyering  <meyering@ascend.com>
76950
76951         * m4/Makefile.am.in (Makefile.am): Simplify rule.
76952         Based on a suggestion from Lars Hecking.
76953
76954 1998-11-16  Paul Eggert  <eggert@twinsun.com>
76955
76956         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
76957
76958 1998-11-16  Jim Meyering  <meyering@ascend.com>
76959
76960         * m4/lfs.m4: Double-quote the `uname...` expression.
76961
76962 1998-11-14  Jim Meyering  <meyering@ascend.com>
76963
76964         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
76965         * m4/stat.m4: Likewise.
76966
76967 1998-11-03  Jim Meyering  <meyering@ascend.com>
76968
76969         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
76970         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
76971
76972 1998-10-18  Jim Meyering  <meyering@ascend.com>
76973
76974         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
76975
76976 1998-10-17  Jim Meyering  <meyering@ascend.com>
76977
76978         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
76979         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
76980         calls for those previously hard-coded headers.  Instead, take a new
76981         parameter.
76982         (jm_CHECK_DECLARATIONS): Reflect interface change.
76983         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
76984         (jm_CHECK_DECL_LOCALTIME_R): New macro.
76985
76986         * m4/mktime.m4: Test for spring-forward gap before long-running test.
76987
76988 1998-10-14  Jim Meyering  <meyering@ascend.com>
76989
76990         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
76991         instead of "TZ=America/Vancouver".  From Paul Eggert.
76992
76993 1998-10-11  Jim Meyering  <meyering@ascend.com>
76994
76995         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
76996         This adds a test for a recently added compatibility fix for mktime.c.
76997         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
76998
76999 1998-09-27  Jim Meyering  <meyering@ascend.com>
77000
77001         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
77002
77003         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
77004         ../configure.in, including a change from Gordon Matzigkeit to allow
77005         cross-compiling for the Hurd.
77006
77007         * m4/glibc.m4: New file/macro to test for the GNU C Library
77008         versions 1 and 2.  From Gordon Matzigkeit.
77009         Indent.
77010
77011 1998-09-21  Jim Meyering  <meyering@ascend.com>
77012
77013         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
77014
77015 1998-08-18  Paul Eggert  <eggert@twinsun.com>
77016
77017         Port nanosecond-resolution times to UnixWare 2.1.2 and
77018         pedantic Solaris 2.6.
77019
77020         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
77021         AC_STRUCT_ST_MTIM.
77022         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
77023         Generate name of ns member, instead of just 1 or undef.
77024         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
77025
77026 1998-08-15  Jim Meyering  <meyering@ascend.com>
77027
77028         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
77029         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
77030         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
77031         instead of jm_TYPE_SSIZE_T.
77032
77033 1998-08-12  Jim Meyering  <meyering@ascend.com>
77034
77035         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
77036
77037 1998-08-02  Jim Meyering  <meyering@ascend.com>
77038
77039         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
77040         in acconfig.h manually.
77041
77042 1998-07-31  Paul Eggert  <eggert@twinsun.com>
77043
77044         * m4/st_mtim.m4: New file.
77045
77046 1998-07-28  Jim Meyering  <meyering@ascend.com>
77047
77048         * m4/utimes.m4: Undef stat.
77049
77050 1998-07-25  Jim Meyering  <meyering@ascend.com>
77051
77052         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
77053         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
77054
77055 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
77056
77057         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
77058         uid and gid actually remain unchanged.
77059
77060 1998-07-07  Jim Meyering  <meyering@ascend.com>
77061
77062         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
77063
77064 1998-07-04  Jim Meyering  <meyering@ascend.com>
77065
77066         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
77067         to prove that this macro can be used in packages without regex.c.
77068
77069 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
77070
77071         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
77072         is to be used.
77073
77074 1998-07-03  Jim Meyering  <meyering@ascend.com>
77075
77076         * m4/gettext.m4: Add -lintl if it's found to be necessary.
77077
77078         * m4/gettext.m4: New file -- from gettext-0.10.35.
77079         * m4/lcmessage.m4: Likewise.
77080         * m4/progtest.m4: Likewise.
77081
77082         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
77083         * m4/jm-macros.m4: Require the new macro.
77084
77085 1998-06-29  Jim Meyering  <meyering@ascend.com>
77086
77087         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
77088         for the definition of NGROUPS (used in a system header included
77089         by sys/mount.h).
77090
77091 1998-06-28  Jim Meyering  <meyering@ascend.com>
77092
77093         * m4/ls-mntd-fs.m4: New file.
77094         * m4/fstypename.m4: New file.
77095
77096         * m4/jm-macros.m4: Require the new macro.
77097         * m4/jm-glibc-io.m4: New file.
77098
77099 1998-05-19  Jim Meyering  <meyering@ascend.com>
77100
77101         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
77102         * m4/lchown.m4: New file.
77103
77104         * m4/Makefile.am.in: New file.
77105         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
77106
77107 1998-05-14  Jim Meyering  <meyering@ascend.com>
77108
77109         * m4/Makefile.am (EXTRA_DIST): Add them.
77110         * m4/jm-macros.m4: New file.
77111         * m4/utimbuf.m4: New file.
77112
77113 1998-05-12  Jim Meyering  <meyering@ascend.com>
77114
77115         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
77116
77117 1998-05-11  Jim Meyering  <meyering@ascend.com>
77118
77119         * m4/isc-posix.m4: New file.
77120
77121 1998-05-10  Jim Meyering  <meyering@ascend.com>
77122
77123         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77124
77125 1998-05-09  Jim Meyering  <meyering@ascend.com>
77126
77127         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77128         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77129         with automake.
77130
77131         * m4/ssize_t.m4: New file.
77132         * m4/mktime.m4: Remove file -- the new automake has this now.
77133
77134 1998-04-26  Jim Meyering  <meyering@ascend.com>
77135
77136         * m4/assert.m4: New file.
77137         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
77138
77139 1998-04-05  Jim Meyering  <meyering@ascend.com>
77140
77141         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
77142         (jm_PREREQ): Use it here.
77143
77144 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
77145
77146         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
77147         in acconfig.h.
77148
77149 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
77150
77151         * m4/prereq.m4: New file.
77152         * m4/error.m4: New file.
77153         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
77154
77155 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
77156
77157         * m4/getline.m4: Don't set am_cv_func_working_getline before the
77158         cache-check for the same variable -- that defeated the purpose of
77159         the test; the test program was never run.  This was a problem only
77160         on systems with losing getline functions -- HP-UX 10.20 is one.
77161         Reported by Bjorn Helgaas.
77162
77163 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
77164
77165         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
77166
77167 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
77168
77169         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
77170
77171         * m4/const.m4: New file.  Use an initializer in this declaration
77172         typedef int charset[2]; const charset x;
77173         Reported by Bob Glickstein.
77174
77175 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
77176
77177         * m4/chown.m4: Fix reversed types on -1 args to chown.
77178         From Kaveh Ghazi.
77179
77180 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
77181
77182         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
77183         Add lseek and memchr.
77184
77185         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
77186         T.E.Dickey <dickey@clark.net> said that some older preprocessors
77187         have a 20-character limit on names.
77188
77189 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
77190
77191         * m4/inttypes_h.m4: New file.
77192         * m4/uintmax_t.m4: New file.
77193         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
77194
77195
77196         -----
77197
77198         Local Variables:
77199         coding: utf-8
77200         End:
77201
77202         Copyright (C) 1997-2011 Free Software Foundation, Inc.
77203
77204         Copying and distribution of this file, with or without
77205         modification, are permitted provided the copyright notice
77206         and this notice are preserved.